joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a8faf
Capabilities:
Terminate process

Disassembly:
push ebp
lea ebp, [esp - 0x2a8]
sub esp, 0x328
mov eax, dword [0x4cc3b0]
xor eax, ebp
mov dword [ebp + 0x2a4], eax
and dword [ebp - 0x80], 0
push ebx
push 0x4c
lea eax, [ebp - 0x7c]
push 0
push eax
call fcn.004a5130
lea eax, [ebp - 0x80]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x28]
add esp, 0xc
mov dword [ebp - 0x2c], eax
mov dword [ebp + 0x88], eax
mov dword [ebp + 0x84], ecx
mov dword [ebp + 0x80], edx
mov dword [ebp + 0x7c], ebx
mov dword [ebp + 0x78], esi
mov dword [ebp + 0x74], edi
mov word [ebp + 0xa0], ss
mov word [ebp + 0x94], cs
mov word [ebp + 0x70], ds
mov word [ebp + 0x6c], es
mov word [ebp + 0x68], fs
mov word [ebp + 0x64], gs
pushfd
pop dword [ebp + 0x98]
mov eax, dword [ebp + 0x2ac]
lea ecx, [ebp + 0x2ac]
mov dword [ebp - 0x28], 0x10001
mov dword [ebp + 0x90], eax
mov dword [ebp + 0x9c], ecx
mov ecx, dword [ecx - 4]
mov dword [ebp + 0x8c], ecx
mov dword [ebp - 0x80], 0xc0000417
mov dword [ebp - 0x7c], 1
mov dword [ebp - 0x74], eax
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
push 0
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
test eax, eax
jne 0x4a908e
test ebx, ebx
jne 0x4a908e
push 2
call fcn.004b1415
pop ecx
push 0xc0000417
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [ebp + 0x2a4]
xor ecx, ebp
pop ebx
call fcn.004a48d3
add ebp, 0x2a8
leave
ret

Function at 0x4a90b6
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push dword [0x51f140]
call fcn.004ac561
pop ecx
test eax, eax
je 0x4a90cc
pop ebp
jmp eax
push 2
call fcn.004b1415
pop ecx
pop ebp
jmp fcn.004a8faf
Function at 0x4ab62b
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x4cc948]
je 0x4ab646
inc edi
cmp edi, 0x17
jb 0x4ab637
cmp edi, 0x17
jae 0x4ab7c6
push ebp
push 3
call fcn.004b1d31
pop ecx
cmp eax, 1
je 0x4ab792
push 3
call fcn.004b1d31
pop ecx
test eax, eax
jne 0x4ab67a
cmp dword [0x4cc6a0], 1
je 0x4ab792
cmp ebx, 0xfc
je 0x4ab7c5
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x51f600
push ebp
call fcn.004b00c0
add esp, 0xc
test eax, eax
je 0x4ab6b0
push esi
push esi
push esi
push esi
push esi
call fcn.004a8faf
add esp, 0x14
push 0x104
mov esi, 0x51f619
push esi
push 0
mov byte [0x51f71d], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4ab6f4
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.004b00c0
add esp, 0xc
test eax, eax
je 0x4ab6f4
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.004a8faf
add esp, 0x14
push esi
call fcn.004affa0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4ab739
push esi
call fcn.004affa0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x51f914
push 0x4c2444
sub ecx, eax
push ecx
push eax
call fcn.004b1c7e
add esp, 0x14
test eax, eax
je 0x4ab739
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.004a8faf
add esp, 0x14
jmp 0x4ab73b
xor esi, esi
push 0x4c2440
push ebx
push ebp
call fcn.004b1c0d
add esp, 0xc
test eax, eax
je 0x4ab75b
push esi
push esi
push esi
push esi
push esi
call fcn.004a8faf
add esp, 0x14
push dword [edi*8 + 0x4cc94c]
push ebx
push ebp
call fcn.004b1c0d
add esp, 0xc
test eax, eax
je 0x4ab77d
push esi
push esi
push esi
push esi
push esi
call fcn.004a8faf
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.004b1aa6
add esp, 0xc
jmp 0x4ab7c5
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x4ab7c5
cmp ebp, 0xffffffff
je 0x4ab7c5
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x4cc94c]
push dword [esi]
call fcn.004affa0
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x4ac98a
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
push esi
push edi
mov esi, str.KERNEL32.DLL
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
jne 0x4ac9a3
push esi
call fcn.004ab2d3
pop ecx
mov edi, eax
test edi, edi
je 0x4acb0b
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.FlsAlloc
push edi
call esi
push str.FlsGetValue
push edi
mov dword [0x51f91c], eax
call esi
push str.FlsSetValue
push edi
mov dword [0x51f920], eax
call esi
push str.FlsFree
push edi
mov dword [0x51f924], eax
call esi
cmp dword [0x51f91c], 0
mov esi, dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [0x51f928], eax
je 0x4aca0c
cmp dword [0x51f920], 0
je 0x4aca0c
cmp dword [0x51f924], 0
je 0x4aca0c
test eax, eax
jne 0x4aca30
mov eax, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [0x51f920], eax
mov eax, dword [sym.imp.KERNEL32.dll_TlsFree]
mov dword [0x51f91c], 0x4ac5d0
mov dword [0x51f924], esi
mov dword [0x51f928], eax
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x4cca28], eax
cmp eax, 0xffffffff
je 0x4acb10
push dword [0x51f920]
push eax
call esi
test eax, eax
je 0x4acb10
call fcn.004ab5df
push dword [0x51f91c]
call fcn.004ac4e9
push dword [0x51f920]
mov dword [0x51f91c], eax
call fcn.004ac4e9
push dword [0x51f924]
mov dword [0x51f920], eax
call fcn.004ac4e9
push dword [0x51f928]
mov dword [0x51f924], eax
call fcn.004ac4e9
add esp, 0x10
mov dword [0x51f928], eax
call fcn.004aa5ef
test eax, eax
je 0x4acb0b
push fcn.004ac7f2
push dword [0x51f91c]
call fcn.004ac561
pop ecx
call eax
mov dword [0x4cca24], eax
cmp eax, 0xffffffff
je 0x4acb0b
push 0x214
push 1
call fcn.004ad35a
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x4acb0b
push esi
push dword [0x4cca24]
push dword [0x51f924]
call fcn.004ac561
pop ecx
call eax
test eax, eax
je 0x4acb0b
push 0
push esi
call fcn.004ac67c
pop ecx
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
or dword [esi + 4], 0xffffffff
mov dword [esi], eax
xor eax, eax
inc eax
jmp 0x4acb12
call fcn.004ac63f
xor eax, eax
pop edi
pop esi
ret

Function at 0x4ad090
Capabilities:
Parse pe header

Disassembly:
mov ecx, dword [esp + 4]
mov eax, 0x5a4d
cmp word [ecx], ax
je 0x4ad0a1
xor eax, eax
ret
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x4ad09e
xor edx, edx
mov ecx, 0x10b
cmp word [eax + 0x18], cx
sete dl
mov eax, edx
ret

Function at 0x4ad0c0
Capabilities:
Enumerate pe sections

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
push ebx
push esi
movzx esi, word [ecx + 6]
xor edx, edx
push edi
lea eax, [eax + ecx + 0x18]
test esi, esi
jbe 0x4ad0fa
mov edi, dword [esp + 0x14]
mov ecx, dword [eax + 0xc]
cmp edi, ecx
jb 0x4ad0f2
mov ebx, dword [eax + 8]
add ebx, ecx
cmp edi, ebx
jb 0x4ad0fc
inc edx
add eax, 0x28
cmp edx, esi
jb 0x4ad0e2
xor eax, eax
pop edi
pop esi
pop ebx
ret
Function at 0x4ae463
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
xor edi, edi
cmp esi, edi
jne 0x4ae48c
call fcn.004a9115
push edi
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
call fcn.004a90b6
add esp, 0x14
jmp 0x4ae583
mov eax, dword [esi + 0xc]
test al, 0x83
je 0x4ae583
test al, 0x40
jne 0x4ae583
test al, 2
je 0x4ae4ae
or eax, 0x20
mov dword [esi + 0xc], eax
jmp 0x4ae583
or eax, 1
mov dword [esi + 0xc], eax
test eax, 0x10c
jne 0x4ae4c4
push esi
call fcn.004b1373
pop ecx
jmp 0x4ae4c9
mov eax, dword [esi + 8]
mov dword [esi], eax
push dword [esi + 0x18]
push dword [esi + 8]
push esi
call fcn.004aec46
pop ecx
push eax
call fcn.004aeb49
add esp, 0xc
mov dword [esi + 4], eax
cmp eax, edi
je 0x4ae573
cmp eax, 0xffffffff
je 0x4ae573
test byte [esi + 0xc], 0x82
jne 0x4ae548
push esi
call fcn.004aec46
pop ecx
cmp eax, 0xffffffff
je 0x4ae533
push esi
call fcn.004aec46
pop ecx
cmp eax, 0xfffffffe
je 0x4ae533
push esi
call fcn.004aec46
sar eax, 5
push esi
lea edi, [eax*4 + 0x51fc00]
call fcn.004aec46
and eax, 0x1f
pop ecx
shl eax, 6
add eax, dword [edi]
pop ecx
jmp 0x4ae538
mov eax, 0x4cd168
mov al, byte [eax + 4]
and al, 0x82
cmp al, 0x82
jne 0x4ae548
or dword [esi + 0xc], 0x2000
cmp dword [esi + 0x18], 0x200
jne 0x4ae566
mov eax, dword [esi + 0xc]
test al, 8
je 0x4ae566
test eax, 0x400
jne 0x4ae566
mov dword [esi + 0x18], 0x1000
mov ecx, dword [esi]
dec dword [esi + 4]
movzx eax, byte [ecx]
inc ecx
mov dword [esi], ecx
jmp 0x4ae586
neg eax
sbb eax, eax
and eax, 0x10
add eax, 0x10
or dword [esi + 0xc], eax
mov dword [esi + 4], edi
or eax, 0xffffffff
pop edi
pop esi
ret
Function at 0x4b0fc2
Capabilities:
Query environment variable

Disassembly:
push ecx
push ecx
mov eax, dword [0x51fa98]
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebx, ebx
xor esi, esi
push 2
pop ebp
cmp eax, ebx
jne 0x4b100b
call edi
mov esi, eax
cmp esi, ebx
je 0x4b0ff2
mov dword [0x51fa98], 1
jmp 0x4b1014
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x4b1006
mov eax, ebp
mov dword [0x51fa98], eax
jmp 0x4b100b
mov eax, dword [0x51fa98]
cmp eax, 1
jne 0x4b1098
cmp esi, ebx
jne 0x4b1027
call edi
mov esi, eax
cmp esi, ebx
jne 0x4b1027
xor eax, eax
jmp 0x4b10f0
mov eax, esi
cmp word [esi], bx
je 0x4b103c
add eax, ebp
cmp word [eax], bx
jne 0x4b102e
add eax, ebp
cmp word [eax], bx
jne 0x4b102e
mov edi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push ebx
push ebx
push ebx
sub eax, esi
push ebx
sar eax, 1
inc eax
push eax
push esi
push ebx
push ebx
mov dword [esp + 0x34], eax
call edi
mov ebp, eax
cmp ebp, ebx
je 0x4b108d
push ebp
call fcn.004ad31a
pop ecx
mov dword [esp + 0x10], eax
cmp eax, ebx
je 0x4b108d
push ebx
push ebx
push ebp
push eax
push dword [esp + 0x24]
push esi
push ebx
push ebx
call edi
test eax, eax
jne 0x4b1089
push dword [esp + 0x10]
call fcn.004a4a6f
pop ecx
mov dword [esp + 0x10], ebx
mov ebx, dword [esp + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
jmp 0x4b10f0
cmp eax, ebp
je 0x4b10a0
cmp eax, ebx
jne 0x4b1020
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov esi, eax
cmp esi, ebx
je 0x4b1020
cmp byte [esi], bl
je 0x4b10be
inc eax
cmp byte [eax], bl
jne 0x4b10b4
inc eax
cmp byte [eax], bl
jne 0x4b10b4
sub eax, esi
inc eax
mov ebp, eax
push ebp
call fcn.004ad31a
mov edi, eax
pop ecx
cmp edi, ebx
jne 0x4b10dc
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
jmp 0x4b1020
push ebp
push esi
push edi
call fcn.004a51b0
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret
Function at 0x4b1aa6
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004ac558
and dword [ebp - 4], 0
cmp dword [0x51fac4], 0
mov ebx, eax
jne 0x4b1b55
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4b1c06
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4b1c06
push eax
call fcn.004ac4e9
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x51fac4], eax
call esi
push eax
call fcn.004ac4e9
mov dword [esp], 0x4c2710
push edi
mov dword [0x51fac8], eax
call esi
push eax
call fcn.004ac4e9
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x51facc], eax
call esi
push eax
call fcn.004ac4e9
pop ecx
mov dword [0x51fad4], eax
test eax, eax
je 0x4b1b55
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004ac4e9
pop ecx
mov dword [0x51fad0], eax
mov eax, dword [0x51fad0]
cmp eax, ebx
je 0x4b1bad
cmp dword [0x51fad4], ebx
je 0x4b1bad
push eax
call fcn.004ac561
push dword [0x51fad4]
mov esi, eax
call fcn.004ac561
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4b1bad
test edi, edi
je 0x4b1bad
call esi
test eax, eax
je 0x4b1ba4
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4b1ba4
test byte [ebp - 0xc], 1
jne 0x4b1bad
or dword [ebp + 0x10], 0x200000
jmp 0x4b1be6
mov eax, dword [0x51fac8]
cmp eax, ebx
je 0x4b1be6
push eax
call fcn.004ac561
pop ecx
test eax, eax
je 0x4b1be6
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4b1be6
mov eax, dword [0x51facc]
cmp eax, ebx
je 0x4b1be6
push eax
call fcn.004ac561
pop ecx
test eax, eax
je 0x4b1be6
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x51fac4]
call fcn.004ac561
pop ecx
test eax, eax
je 0x4b1c06
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4b1c08
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4b4b0e
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
xor ebx, ebx
push 1
push ebx
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ebx
call fcn.004b11d7
mov dword [ebp - 0x18], eax
and eax, edx
add esp, 0x10
mov dword [ebp - 0x14], edx
cmp eax, 0xffffffff
je 0x4b4b94
push 2
push ebx
push ebx
push dword [ebp + 8]
call fcn.004b11d7
mov ecx, eax
and ecx, edx
add esp, 0x10
cmp ecx, 0xffffffff
je 0x4b4b94
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
sub esi, eax
sbb edi, edx
js 0x4b4c29
jg 0x4b4b6d
cmp esi, ebx
jbe 0x4b4c29
mov ebx, 0x1000
push ebx
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 4], eax
test eax, eax
jne 0x4b4ba0
call fcn.004a9115
mov dword [eax], 0xc
call fcn.004a9115
mov eax, dword [eax]
pop edi
pop esi
pop ebx
leave
ret
push 0x8000
push dword [ebp + 8]
call fcn.004b4cc2
pop ecx
pop ecx
mov dword [ebp - 8], eax
test edi, edi
jl 0x4b4bc0
jg 0x4b4bbc
cmp esi, ebx
jb 0x4b4bc0
mov eax, ebx
jmp 0x4b4bc2
mov eax, esi
push eax
push dword [ebp - 4]
push dword [ebp + 8]
call fcn.004af2a2
add esp, 0xc
cmp eax, 0xffffffff
je 0x4b4c0c
cdq
sub esi, eax
sbb edi, edx
js 0x4b4be3
jg 0x4b4bb2
test esi, esi
ja 0x4b4bb2
mov esi, dword [ebp - 0x10]
push dword [ebp - 8]
push dword [ebp + 8]
call fcn.004b4cc2
pop ecx
pop ecx
push dword [ebp - 4]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor ebx, ebx
jmp 0x4b4c92
call fcn.004a9128
cmp dword [eax], 5
jne 0x4b4c21
call fcn.004a9115
mov dword [eax], 0xd
or esi, 0xffffffff
mov dword [ebp - 0xc], esi
jmp 0x4b4be6
cmp edi, ebx
jg 0x4b4c9e
jl 0x4b4c33
cmp esi, ebx
jae 0x4b4c9e
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004b11d7
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
je 0x4b4b94
push dword [ebp + 8]
call fcn.004a75c0
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
neg eax
sbb eax, eax
neg eax
dec eax
cdq
mov dword [ebp - 0x10], eax
and eax, edx
mov dword [ebp - 0xc], edx
cmp eax, 0xffffffff
jne 0x4b4c9e
call fcn.004a9115
mov dword [eax], 0xd
call fcn.004a9128
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
mov esi, dword [ebp - 0x10]
and esi, dword [ebp - 0xc]
cmp esi, 0xffffffff
je 0x4b4b94
push ebx
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push dword [ebp + 8]
call fcn.004b11d7
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
je 0x4b4b94
xor eax, eax
jmp 0x4b4b9b
Function at 0x40cc60
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x47effb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.00473632
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x40cce2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0047148a
mov eax, dword [eax]
push 0x4b7200
push eax
call fcn.004627a4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.004738bd
test bl, bl
je 0x40cce2
push 0x4b7200
lea ecx, [esp + 0xc]
call fcn.00473c4d
push 0x4bad7c
lea ecx, [esp + 0xc]
call fcn.00473c4d
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x40cd1e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.004738bd
jmp 0x40cde9
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x40cda2
lea edx, [esp + 0x7c]
push 0x4bad78
push edx
call fcn.004627a4
add esp, 8
test eax, eax
je 0x40cda2
lea eax, [esp + 0x7c]
push 0x4bad74
push eax
call fcn.004627a4
add esp, 8
test eax, eax
je 0x40cda2
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40cd32
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.004738bd
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x40d5e0
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x40d642
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc
Function at 0x40d650
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x47f07b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x4c3a94]
push esi
push edi
mov edi, ecx
mov dword [esp + 8], eax
mov eax, dword [edi + 0x44]
mov dword [esp + 0x21c], 0
test eax, eax
jne 0x40d788
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x40d6b6
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.004738bd
xor eax, eax
jmp 0x40d7ff
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.004739fa
push esi
lea ecx, [esp + 0xc]
call fcn.00473c89
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push 0x4badb4
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x40d7dd
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push 0x80000000
call fcn.0040d5e0
test eax, eax
jne 0x40d7dd
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x14]
push str._shellopencommand
push eax
call ebx
lea ecx, [esp + 0x14]
lea edx, [esp + 0x14]
push ecx
push edx
push 0x80000000
mov ecx, edi
call fcn.0040d5e0
test eax, eax
jne 0x40d7dd
lea eax, [esp + 0x14]
push str.__1_
push eax
call fcn.00463940
mov esi, eax
add esp, 8
test esi, esi
jne 0x40d7bc
lea ecx, [esp + 0x14]
push 0x4bad8c
push ecx
call fcn.004638c0
mov esi, eax
add esp, 8
test esi, esi
jne 0x40d7bc
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x40d7bf
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.004739aa
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x40d6ce
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.004738bd
xor eax, eax
jmp 0x40d7ff
mov byte [esi], 0
push 0x4bad88
push esi
call ebx
mov eax, dword [esp + 0x10]
push eax
push esi
call ebx
lea ecx, [esp + 0x14]
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
mov esi, eax
xor edx, edx
cmp esi, 0x20
setg dl
lea ecx, [esp + 0x10]
mov esi, edx
mov dword [esp + 0x224], 0xffffffff
call fcn.004738bd
pop ebp
mov eax, esi
pop ebx
mov ecx, dword [esp + 0x214]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x218
ret 4
Function at 0x41dcc0
Capabilities:
Log keystrokes via polling

Disassembly:
mov eax, dword [esp + 4]
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
mov cl, byte [eax + 8]
and ecx, 0xff
mov esi, ecx
cmp si, 0x60
jb 0x41dd2e
cmp si, 0x69
ja 0x41dd2e
add esi, 0xffd0
cmp si, 0x11
je 0x41dcfe
push 0x11
call edi
test ax, ax
jge 0x41dcfe
or esi, 0x2000
cmp si, 0x10
je 0x41dd13
push 0x10
call edi
test ax, ax
jge 0x41dd13
or esi, 0x4000
cmp si, 0x12
je 0x41dd28
push 0x12
call edi
test ax, ax
jge 0x41dd28
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x41dd3b
mov esi, 0xbd
jmp 0x41dcef
cmp si, 0x6e
jne 0x41dd48
mov esi, 0xbe
jmp 0x41dcef
cmp si, 0x6f
jne 0x41dce9
mov esi, 0xbf
jmp 0x41dcef

Function at 0x41f3e0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x4d41e8]
xor edx, edx
cmp eax, edx
jne 0x41f406
xor eax, eax
mov byte [eax + 0x4d40e8], al
inc eax
cmp eax, 0x100
jl 0x41f3ee
mov dword [0x4d41e8], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x4d40e8
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x41f497
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 0x41f46a
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 0x41f438
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x41f510
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 0x41f563
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 0x41f54a
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