joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40a2a0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, edi
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40a2b0
sub eax, edx
mov ebx, eax
lea eax, [ebx + 3]
push eax
call fcn.00413fcd
mov esi, eax
mov edx, esi
add esp, 4
mov eax, edi
sub edx, edi
nop
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x40a2d0
push esi
call fcn.004087cf
push 0x42fc88
lea eax, [ebx + 3]
push eax
push esi
call fcn.0041995b
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push ebx
push 0
push esi
call fcn.00416670
push esi
call fcn.00414179
add esp, 0x10
pop edi
pop esi
pop ebx
pop ebp
ret 4

Function at 0x40c2fe
Capabilities:
Get thread local storage value

Disassembly:
push 0x14
mov eax, 0x42835b
call fcn.004162a3
mov eax, dword [0x438a2c]
or ebx, 0xffffffff
cmp eax, ebx
je 0x40c372
cmp dword [0x438a30], ebx
je 0x40c372
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x40c327
mov dword [ecx], eax
push 0x1a
push 6
call fcn.00409a80
pop ecx
pop ecx
test al, al
je 0x40c368
push dword [0x438a30]
push dword [0x438a2c]
push 0x4301b8
call fcn.00408be0
mov esi, eax
push esi
push 0x38d
push 0x4e
push 0x1a
push 6
call fcn.004094a0
push esi
call fcn.004141bd
add esp, 0x24
mov eax, dword [0x438a30]
jmp 0x40c44b
mov byte [ebp - 0x11], 0
mov dword [ebp - 0x1c], ebx
mov edi, ebx
mov dword [ebp - 0x20], edi
and dword [ebp - 0x18], 0
cmp dword [ebp - 0x18], 0x43e
jg 0x40c3d4
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x40c466
mov ecx, 0xf000baaa
cmp eax, ecx
jne 0x40c3b4
mov byte [ebp - 0x11], 1
mov edi, dword [ebp - 0x18]
mov dword [ebp - 0x20], edi
jmp 0x40c466
cmp byte [ebp - 0x11], 0
je 0x40c466
and dword [ebp - 4], 0
cmp dword [eax + 4], ecx
jne 0x40c451
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], ebx
mov eax, dword [ebp + 8]
test eax, eax
je 0x40c3dd
mov dword [eax], edi
push 0x1a
push 6
call fcn.00409a80
pop ecx
pop ecx
test al, al
je 0x40c422
push dword [0x438a30]
push dword [0x438a2c]
push dword [ebp - 0x1c]
push edi
push 0x430130
call fcn.00408be0
mov esi, eax
push esi
push 0x3b9
push 0x4e
push 0x1a
push 6
call fcn.004094a0
push esi
call fcn.004141bd
add esp, 0x2c
cmp edi, ebx
je 0x40c448
mov eax, dword [ebp - 0x1c]
cmp eax, ebx
je 0x40c448
cmp dword [0x438a2c], ebx
jne 0x40c448
cmp dword [0x438a30], ebx
jne 0x40c448
mov dword [0x438a2c], edi
mov dword [0x438a30], eax
mov eax, dword [ebp - 0x1c]
call fcn.00416348
ret
mov dword [ebp - 4], ebx
jmp 0x40c466
inc dword [ebp - 0x18]
jmp 0x40c382
Function at 0x40c615
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp dword [esi + 8], 0
je 0x40c6b1
xor eax, eax
cmp byte [esi + 0x78], al
push 0x1a
sete al
dec eax
and eax, 0xfffffffd
add eax, 4
push eax
call fcn.00409a80
pop ecx
pop ecx
test al, al
je 0x40c67d
mov eax, dword [esi + 0xc]
push edi
push eax
push eax
push 0x4302e8
call fcn.00408be0
mov edi, eax
xor eax, eax
cmp byte [esi + 0x78], al
push edi
sete al
push 0x2c4
push 0x4e
push 0x1a
dec eax
and eax, 0xfffffffd
add eax, 4
push eax
call fcn.004094a0
push edi
call fcn.004141bd
add esp, 0x24
pop edi
push dword [ebp + 8]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [0x43c180]
test ecx, ecx
je 0x40c6b1
mov eax, dword [ecx]
call dword [eax + 0x70]
test eax, eax
je 0x40c6b1
mov ecx, dword [0x43c180]
mov eax, dword [ecx]
call dword [eax + 0x70]
push dword [esi + 0xc]
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 4]
pop esi
pop ebp
ret 4

Function at 0x40c6b6
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
or dword [ebp - 4], 0xffffffff
push esi
lea eax, [ebp - 4]
push edi
push eax
xor esi, esi
call fcn.0040c2fe
mov edi, eax
pop ecx
cmp edi, 0xffffffff
je 0x40c6f5
cmp dword [ebp - 4], 0xffffffff
je 0x40c6f5
push edi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
je 0x40c6f5
cmp dword [esi + 0x68], 0xffffffff
jne 0x40c6f5
mov eax, dword [ebp - 4]
mov dword [esi + 0x64], eax
mov dword [esi + 0x68], edi
push 0x1a
push 6
call fcn.00409a80
pop ecx
pop ecx
test al, al
je 0x40c72f
push edi
push dword [ebp - 4]
push esi
push 0x430330
call fcn.00408be0
mov edi, eax
push edi
push 0x3e2
push 0x4e
push 0x1a
push 6
call fcn.004094a0
push edi
call fcn.004141bd
add esp, 0x28
pop edi
mov eax, esi
pop esi
leave
ret
Function at 0x40c735
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
or ebx, 0xffffffff
mov dword [ebp - 4], ebx
test edi, edi
jne 0x40c755
lea eax, [ebp - 4]
push eax
call fcn.0040c2fe
pop ecx
jmp 0x40c781
mov eax, dword [edi + 0x64]
cmp eax, ebx
jne 0x40c76a
lea eax, [ebp - 4]
push eax
call fcn.0040c2fe
pop ecx
mov esi, eax
jmp 0x40c770
mov esi, dword [edi + 0x68]
mov dword [ebp - 4], eax
cmp esi, ebx
jne 0x40c787
mov esi, dword [sym.imp.KERNEL32.dll_TlsAlloc]
call esi
mov dword [ebp - 4], eax
call esi
mov esi, eax
cmp esi, ebx
je 0x40c7a2
mov ebx, dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, edi
neg eax
sbb eax, eax
and eax, 0xf000baaa
push eax
push dword [ebp - 4]
call ebx
push edi
push esi
call ebx
mov ebx, dword [ebp - 4]
test edi, edi
je 0x40c7bd
mov dword [edi + 0x64], ebx
mov dword [edi + 0x68], esi
mov dword [0x438a34], ebx
mov dword [0x438a38], esi
jmp 0x40c7cb
or dword [0x438a2c], 0xffffffff
or dword [0x438a30], 0xffffffff
push 0x1a
push 6
call fcn.00409a80
pop ecx
pop ecx
test al, al
je 0x40c803
push esi
push ebx
push edi
push 0x4303d8
call fcn.00408be0
mov esi, eax
push esi
push 0x43e
push 0x4e
push 0x1a
push 6
call fcn.004094a0
push esi
call fcn.004141bd
add esp, 0x28
push 0x1a
push 6
call fcn.00409a80
pop ecx
pop ecx
test al, al
je 0x40c844
push dword [0x438a38]
push dword [0x438a34]
push 0x430388
call fcn.00408be0
mov esi, eax
push esi
push 0x440
push 0x4e
push 0x1a
push 6
call fcn.004094a0
push esi
call fcn.004141bd
add esp, 0x24
push fcn.0040fe93
call fcn.00419c5d
pop ecx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40ca8c
Capabilities:
Create thread

Disassembly:
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 8]
xor ebx, ebx
push edi
cmp eax, ebx
je 0x40caa4
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 8], ebx
lea edi, [esi + 0xc]
push edi
push ebx
push esi
push 0x40c854
push 0x100000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 8], eax
cmp eax, ebx
je 0x40cb2c
cmp eax, 0xffffffff
je 0x40cb2c
push 0x1a
push 4
call fcn.00409a80
pop ecx
pop ecx
test al, al
je 0x40cb00
mov eax, dword [edi]
push eax
push eax
push 0x43055c
call fcn.00408be0
mov ebx, eax
push ebx
push 0x1e9
push 0x4e
push 0x1a
push 4
call fcn.004094a0
push ebx
call fcn.004141bd
add esp, 0x24
mov ecx, dword [0x43c180]
test ecx, ecx
je 0x40cb61
mov eax, dword [ecx]
call dword [eax + 0x70]
test eax, eax
je 0x40cb61
mov ecx, dword [0x43c180]
mov eax, dword [ecx]
call dword [eax + 0x70]
mov edx, dword [eax]
push esi
push dword [esi + 8]
mov ecx, eax
push dword [edi]
call dword [edx]
jmp 0x40cb61
push 0x1a
push 1
call fcn.00409a80
pop ecx
pop ecx
test al, al
je 0x40cb61
push 0x430528
call fcn.00408be0
mov esi, eax
push esi
push 0x1f1
push 0x4e
push 0x1a
push 1
call fcn.004094a0
push esi
call fcn.004141bd
add esp, 0x1c
pop edi
pop esi
pop ebx
ret
Function at 0x40e9c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov edx, dword [eax + 4]
mov ecx, 0xc60c60c6
push esi
cmp edx, ecx
je 0x40e9f2
mov esi, dword [eax]
xor esi, edx
cmp esi, ecx
je 0x40e9df
xor eax, eax
jmp 0x40e9f5
push 0x41
mov dword [eax + 4], ecx
lea ecx, [eax + 0x38]
pop edx
mov esi, dword [eax]
xor dword [ecx], esi
add ecx, 4
dec edx
jne 0x40e9e8
add eax, 0x38
pop esi
pop ebp
ret

Function at 0x40ea10
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
test ebx, ebx
je 0x40eab4
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x40eab4
push 0x40
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x40eab4
mov eax, 0x5a4d
cmp word [esi], ax
jne 0x40eab4
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x40eab4
lea edi, [eax + esi]
push pe_nt_image_headers32
push edi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x40eab4
cmp ebx, esi
jb 0x40eab4
mov eax, dword [edi + 0x50]
add eax, esi
cmp ebx, eax
ja 0x40eab4
and dword [ebp - 4], 0
xor eax, eax
sub ebx, esi
cmp ax, word [edi + 6]
jae 0x40eab4
and dword [ebp + 8], eax
movzx eax, word [edi + 0x14]
add eax, dword [ebp + 8]
push 0x28
lea esi, [eax + edi + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x40eaa4
mov eax, dword [esi + 0xc]
cmp ebx, eax
jbe 0x40eaa4
mov ecx, dword [esi + 8]
add ecx, eax
cmp ebx, ecx
jbe 0x40eabb
movzx eax, word [edi + 6]
inc dword [ebp - 4]
add dword [ebp + 8], 0x28
cmp dword [ebp - 4], eax
jb 0x40ea7c
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
sub ebx, eax
test eax, eax
je 0x40eab4
lea eax, [ebx + 0x13c]
cmp eax, dword [esi + 0x10]
ja 0x40eab4
cmp byte [ebp + 0x10], 0
je 0x40eaf2
mov eax, dword [esi + 0xc]
mov esi, dword [esi + 0x14]
mov ecx, eax
mov edx, 0x2000
sub ecx, esi
test word [edi + 0x16], dx
je 0x40eaed
sub eax, ecx
add eax, ebx
jmp 0x40eab6
lea eax, [esi + ecx]
jmp 0x40eae9
mov eax, dword [esi + 0x14]
jmp 0x40eae9
Function at 0x411305
Capabilities:
Check mutex on windows

Disassembly:
mov eax, dword [0x43c644]
test eax, eax
jne 0x411336
mov cl, byte [0x43c641]
test cl, cl
jne 0x411331
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
xor ecx, ecx
test eax, eax
mov dword [0x43c644], eax
setne al
ret
cmp cl, 1
je 0x41134d
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x41134d
cmp eax, 0x80
je 0x41134d
xor al, al
ret
mov al, 1
ret

Function at 0x4118f6
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
xor edx, edx
inc ecx
shr ecx, 2
xor eax, 0x50c5d1f
test ecx, ecx
je 0x411921
push esi
mov esi, dword [ebp + 8]
imul eax, eax, 0x1000193
inc edx
xor eax, dword [esi + edx*4]
cmp edx, ecx
jb 0x41190f
pop esi
mov ecx, eax
shr ecx, 0x10
add eax, ecx
mov ecx, eax
shr ecx, 0x1e
shr eax, cl
mov ecx, dword [0x4393a0]
dec ecx
and eax, ecx
pop ebp
ret
Function at 0x41217c
Capabilities:
Get file size
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x439450]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push dword [0x43c844]
xor esi, esi
push dword [0x43c848]
mov dword [ebp - 0x114], eax
push 0x4311e4
mov dword [ebp - 0x118], esi
call fcn.004087f7
pop ecx
push eax
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileA]
add esp, 0x10
push esi
push 0x80
push 3
push esi
push esi
mov ebx, 0xc0000000
push ebx
lea eax, [ebp - 0x10c]
push eax
call edi
mov dword [ebp - 0x110], eax
cmp eax, 0xffffffff
jne 0x412214
push esi
push 0x80
push 2
push esi
push esi
push ebx
lea eax, [ebp - 0x10c]
push eax
call edi
mov dword [ebp - 0x110], eax
cmp eax, 0xffffffff
je 0x412263
push esi
push dword [ebp - 0x110]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
push esi
push eax
push dword [ebp - 0x110]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push esi
lea eax, [ebp - 0x118]
push eax
push dword [ebp - 0x114]
call fcn.004167a0
pop ecx
push eax
push dword [ebp - 0x114]
push dword [ebp - 0x110]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 0x110]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00416261
leave
ret
Function at 0x412272
Capabilities:
Enumerate pe sections
Enumerate process modules

Disassembly:
push 0x244
mov eax, 0x428875
call fcn.0041630f
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x24c], eax
xor edi, edi
cmp eax, edi
je 0x41241c
cmp dword [ebp + 8], edi
je 0x41241c
mov byte [eax], 0
push edi
push 8
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x248], eax
cmp eax, 0xffffffff
je 0x41241c
mov dword [ebp - 0x238], 0x224
lea ecx, [ebp - 0x238]
push ecx
push eax
call sub.KERNEL32.dll_Module32First
cmp eax, edi
je 0x41241c
mov dword [ebp - 4], edi
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpA]
mov eax, dword [ebp - 0x224]
cmp eax, dword [0x43c824]
je 0x41242d
mov esi, dword [eax + 0x3c]
add esi, eax
mov dword [ebp - 0x240], edi
mov byte [ebp - 0x239], 1
mov dword [ebp - 0x244], edi
movzx eax, word [esi + 6]
cmp dword [ebp - 0x244], eax
jge 0x41242d
cmp byte [ebp - 0x239], 0
je 0x41242d
movzx eax, word [esi + 0x14]
mov ecx, dword [ebp - 0x244]
imul ecx, ecx, 0x28
add eax, esi
lea edi, [ecx + eax + 0x18]
push 0x28
push edi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x4123f6
push str..text
push edi
call ebx
test eax, eax
jne 0x41235c
mov dword [ebp - 0x240], edi
push str..data
push edi
call ebx
test eax, eax
jne 0x41236e
mov dword [ebp - 0x240], edi
push str.data
push edi
call ebx
test eax, eax
jne 0x412380
mov dword [ebp - 0x240], edi
push str.CODE
push edi
call ebx
test eax, eax
jne 0x412396
mov eax, edi
mov dword [ebp - 0x240], eax
jmp 0x41239c
mov eax, dword [ebp - 0x240]
test eax, eax
je 0x4123f6
mov ecx, dword [eax + 0xc]
mov edi, dword [ebp - 0x224]
lea edx, [ecx + edi]
mov dword [ebp - 0x250], edx
mov eax, dword [eax + 8]
add eax, ecx
add eax, edi
cmp edx, eax
jae 0x4123f6
mov ecx, dword [ebp + 8]
cmp dword [edx], ecx
jne 0x412422
lea eax, [ebp - 0x218]
push eax
push dword [ebp + 0x10]
push dword [ebp - 0x24c]
call fcn.0041687f
push str.ntdll.dll
push dword [ebp - 0x24c]
call fcn.004164fa
add esp, 0x14
test eax, eax
jne 0x412403
mov byte [ebp - 0x239], al
inc dword [ebp - 0x244]
xor edi, edi
jmp 0x412309
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x248], 0xffffffff
je 0x41241c
push dword [ebp - 0x248]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.0041636b
ret
add edx, 4
mov dword [ebp - 0x250], edx
jmp 0x4123b9
lea eax, [ebp - 0x238]
push eax
push dword [ebp - 0x248]
call sub.KERNEL32.dll_Module32Next
test eax, eax
jne 0x4122df
jmp 0x412403
Function at 0x414b32
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
push 0x1d
push 4
mov esi, ecx
call fcn.00409a80
pop ecx
pop ecx
mov edi, 0xbe
test al, al
je 0x414b78
push dword [ebp + 8]
push 0x431e38
call fcn.00408be0
mov ebx, eax
push ebx
push 0x27f
push edi
push 0x1d
push 4
call fcn.004094a0
push ebx
call fcn.004141bd
add esp, 0x20
mov eax, dword [esi - 0x18]
mov eax, dword [eax + 4]
lea ecx, [eax + esi - 0x18]
mov eax, dword [ecx]
mov byte [ebp - 1], 0
call dword [eax + 0x1c]
test al, al
jne 0x414baf
mov eax, dword [esi - 0x18]
mov eax, dword [eax + 4]
lea ecx, [eax + esi - 0x18]
mov eax, dword [ecx]
push 0x100401
call dword [eax + 0x20]
test al, al
je 0x414cb9
mov byte [ebp - 1], 1
lea eax, [ebp - 8]
push eax
push dword [esi - 0x10]
mov ebx, 0x103
mov byte [ebp - 2], 1
mov dword [ebp - 8], ebx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
jne 0x414bfd
push 0x1d
push 1
call fcn.00409a80
pop ecx
pop ecx
test al, al
je 0x414c9d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x431de0
call fcn.00408be0
mov ebx, eax
push ebx
push 0x291
jmp 0x414c8a
cmp dword [ebp - 8], ebx
je 0x414c52
push 0x1d
push 4
call fcn.00409a80
pop ecx
pop ecx
test al, al
je 0x414c39
push dword [ebp - 8]
push 0x431d90
call fcn.00408be0
mov ebx, eax
push ebx
push 0x296
push edi
push 0x1d
push 4
call fcn.004094a0
push ebx
call fcn.004141bd
add esp, 0x20
cmp byte [ebp - 1], 0
je 0x414c4e
mov eax, dword [esi - 0x18]
mov eax, dword [eax + 4]
lea ecx, [eax + esi - 0x18]
mov eax, dword [ecx]
call dword [eax + 0x24]
mov al, 1
jmp 0x414cb9
push dword [ebp + 8]
push dword [esi - 0x10]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
jne 0x414ca1
push 0x1d
push 1
call fcn.00409a80
pop ecx
pop ecx
test al, al
je 0x414c9d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x431d40
call fcn.00408be0
mov ebx, eax
push ebx
push 0x2a1
push edi
push 0x1d
push 1
call fcn.004094a0
push ebx
call fcn.004141bd
add esp, 0x20
mov byte [ebp - 2], 0
cmp byte [ebp - 1], 0
je 0x414cb6
mov eax, dword [esi - 0x18]
mov eax, dword [eax + 4]
lea ecx, [eax + esi - 0x18]
mov eax, dword [ecx]
call dword [eax + 0x24]
mov al, byte [ebp - 2]
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x41545f
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
cmp dword [esi + 4], 0
mov byte [ebp - 1], 0
jne 0x41547f
push 2
call fcn.00415202
test al, al
je 0x4154ae
mov byte [ebp - 1], 1
push ebx
push dword [esi + 4]
mov bl, 1
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x415494
xor bl, bl
jmp 0x41549e
dec eax
mov dword [esi + 8], eax
jns 0x41549e
and dword [esi + 8], 0
cmp byte [ebp - 1], 0
je 0x4154ab
mov ecx, esi
call fcn.004142d4
mov al, bl
pop ebx
pop esi
leave
ret

Function at 0x416261
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x439450]
jne 0x41626b
repz ret
jmp fcn.0041c8bc
Function at 0x426502
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x439450]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0041c2b7
and dword [ebp - 0x14], 0
cmp dword [0x43ec14], 0
mov dword [ebp - 0x18], eax
jne 0x4265b5
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x42665d
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x42665d
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x43ec14], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x43ec18], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x43ec1c], eax
call edi
push eax
call esi
mov dword [0x43ec24], eax
test eax, eax
je 0x4265b5
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x43ec20], eax
mov eax, dword [0x43ec20]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x42660e
cmp dword [0x43ec24], ecx
je 0x42660e
push eax
call esi
push dword [0x43ec24]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x42660e
test ebx, ebx
je 0x42660e
call edi
test eax, eax
je 0x426605
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x426605
test byte [ebp - 8], 1
jne 0x42660e
or dword [ebp + 0x10], 0x200000
jmp 0x426641
mov eax, dword [0x43ec18]
cmp eax, dword [ebp - 0x18]
je 0x426641
push eax
call esi
test eax, eax
je 0x426641
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x426641
mov eax, dword [0x43ec1c]
cmp eax, dword [ebp - 0x18]
je 0x426641
push eax
call esi
test eax, eax
je 0x426641
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x43ec14]
call esi
test eax, eax
je 0x42665d
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x42665f
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00416261
leave
ret
Function at 0x42f9b0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x55e660]
xor edx, edx
cmp eax, edx
jne 0x42f9d6
xor eax, eax
mov byte [eax + 0x55e560], al
inc eax
cmp eax, 0x100
jl 0x42f9be
mov dword [0x55e660], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x55e560
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x42fa67
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x42fa3a
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x42fa08
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x42fae0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x42fb33
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x42fb1a
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret