joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4182ad
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x4377b0]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4182f0
cmp word [esi], dx
jne 0x4182f0
or byte [edi + eax + 0x28], 4
jmp 0x4182f5
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x418448
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x418428
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x418337
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x41836d
cmp eax, edx
jae 0x418379
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x41830f
jmp 0x418448
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x418424
cmp dword [ebp - 0x14], 0
je 0x418424
mov eax, dword [ebx*4 + 0x4377b0]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x4183fc
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x4183c5
mov word [esi], cx
jmp 0x4183f8
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x4377b0]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x4377b0]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x4377b0]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x418448
pop ebx
cmp word [ebp - 4], bx
jne 0x41840d
cmp esi, dword [ebp + 0xc]
jne 0x41840d
mov word [esi], bx
jmp 0x418445
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00418ce1
add esp, 0x10
cmp word [ebp - 4], bx
je 0x418448
push 0xd
jmp 0x418441
mov ecx, dword [ebx*4 + 0x4377b0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41843f
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x418448
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41d10d
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x41d1aa
push ebx
push esi
call fcn.0041d0d6
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0041bd5b
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x41d157
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41d1a9
push edi
push eax
call fcn.00414ec0
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x41d177
call fcn.0041441f
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41d1a8
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0041bd5b
add esp, 0x20
test eax, eax
jne 0x41d196
push edi
call fcn.0041441f
jmp 0x41d19e
push ebx
call fcn.0041441f
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x4240b0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4240dd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4240dd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x401830
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
xor eax, eax
push edi
cmp eax, str.SOFTWAREAskPartnerNetworkToolbar
je 0x4018f2
mov edi, dword [ebp + 8]
cmp edi, eax
je 0x4018f2
cmp dword [ebp + 0xc], eax
je 0x4018f2
cmp dword [ebp + 0x10], eax
je 0x4018f2
push ebx
push esi
lea ebx, [ebp - 0x10]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
call fcn.004043e0
mov ebx, dword [ebp - 0x10]
mov esi, eax
test esi, esi
jne 0x4018de
lea ecx, [ebp - 4]
push ecx
push 0
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push 0
push str.PlatformVersion
push ebx
call edi
mov esi, eax
test esi, esi
jne 0x4018de
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
test eax, eax
jne 0x4018c4
test ebx, ebx
je 0x4018b8
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
mov eax, 0x1e7
pop edi
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 4]
push ecx
push eax
mov eax, dword [ebp + 8]
push eax
push 0
push str.PlatformVersion
push ebx
mov dword [ecx], edx
call edi
mov esi, eax
test ebx, ebx
je 0x4018e9
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
mov eax, 0x1e7
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x401ed0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2004
call fcn.0040c5c0
mov eax, dword [0x418054]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor eax, eax
push 0x1ffe
mov ebx, ecx
push eax
lea ecx, [ebp - 0x2002]
push ecx
mov word [ebp - 0x2004], ax
call fcn.00406f00
add esp, 0xc
lea edx, [ebp - 0x2004]
push edx
push 0
push 0
push 0x8026
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov esi, eax
test esi, esi
js 0x401f51
lea eax, [ebp - 0x2004]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401f30
sub eax, edx
push edi
sar eax, 1
lea ecx, [ebp - 0x2004]
push ecx
mov edi, eax
call fcn.004035f0
mov eax, esi
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004044d2
mov esp, ebp
pop ebp
ret

Function at 0x402080
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x411f2a
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x418054]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
fld dword [0x415e7c]
xor edi, edi
fstp dword [esi + 0xc]
mov ecx, esi
fld dword [0x415e78]
mov dword [esi], edi
fstp dword [esi + 0x10]
mov dword [esi + 4], edi
fld dword [0x415e74]
mov dword [esi + 8], 0x11
fstp dword [esi + 0x14]
mov dword [esi + 0x18], 0xffffffff
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], 0xa
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
call fcn.004040f0
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], edi
mov eax, dword [eax]
sub eax, 0x10
call fcn.004037f0
add eax, 0x10
mov dword [esi + 0x30], eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x402150
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4120c8
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x418054]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, esi
xor ebx, ebx
call fcn.004039c0
mov eax, dword [0x418e20]
mov edx, dword [eax + 0xc]
mov ecx, 0x418e20
call edx
add eax, 0x10
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov eax, dword [esi + 0x30]
push eax
push str.SOFTWAREAskPartnerNetworkToolbar_sMacro
lea edi, [ebp - 0x10]
call fcn.00403940
push esi
mov esi, dword [ebp - 0x10]
mov ecx, esi
call fcn.00401920
add esp, 0xc
cmp eax, ebx
jne 0x4021c1
mov ebx, 1
lea eax, [esi - 0x10]
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4021e4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4029e0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x411fc0
mov eax, dword fs:[0]
push eax
sub esp, 0x44
push ebx
push edi
mov eax, dword [0x418054]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push esi
call fcn.00402810
add esp, 4
test eax, eax
jne 0x402a7d
mov eax, dword [0x418e20]
mov edx, dword [eax + 0xc]
mov ecx, 0x418e20
call edx
add eax, 0x10
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0
mov eax, dword [esi]
push eax
push str.Digital_Signature_for__s_failed
lea edi, [ebp - 0x10]
call fcn.00403940
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
add esp, 8
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402a69
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x38
lea ecx, [ebp - 0x4c]
push 0
push ecx
or ebx, 0xffffffff
call fcn.00406f00
mov edx, dword [esi]
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov dword [ebp - 0x40], edx
mov edx, dword [0x418e20]
mov eax, dword [edx + 0xc]
mov dword [ebp - 0x3c], ecx
add esp, 0xc
mov ecx, 0x418e20
mov dword [ebp - 0x50], 0x3c
mov dword [ebp - 0x4c], 0x40
mov dword [ebp - 0x44], str.open
mov dword [ebp - 0x34], 0
call eax
add eax, 0x10
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x50]
push ecx
mov dword [ebp - 4], 1
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x402b15
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ShellExecuteEx_failed_with_Error_status___ld
lea edi, [ebp - 0x10]
call fcn.00403940
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
add esp, 8
lea edx, [eax + 0xc]
or ecx, ebx
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x402a5d
mov ecx, dword [ebp - 0x18]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x402b47
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x14]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov ebx, dword [ebp - 0x14]
push ebx
push str.Return_code_from_stub__d
lea edi, [ebp - 0x10]
call fcn.00403940
add esp, 8
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x402b77
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x404180
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor esi, esi
push esi
mov ecx, 0x41a050
call fcn.0040d878
mov ebx, eax
mov dword [ebp - 4], 1
test ebx, ebx
je 0x404234
test esi, esi
jne 0x404234
mov eax, dword [ebp + 8]
shr eax, 4
inc eax
push esi
movzx ecx, ax
push ecx
push 6
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
mov edi, eax
test edi, edi
je 0x404218
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x404212
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x404212
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
add eax, esi
and ecx, 0xf
jbe 0x404201
cmp esi, eax
jae 0x404205
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4041f3
cmp esi, eax
jb 0x404209
xor eax, eax
jmp 0x404212
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
mov esi, eax
test eax, eax
jne 0x40423d
mov edi, dword [ebp - 4]
push edi
mov ecx, 0x41a050
call fcn.0040d878
mov ebx, eax
inc edi
mov dword [ebp - 4], edi
test ebx, ebx
jne 0x4041a5
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x404320
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, eax
mov eax, dword [ebp + 8]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x404338
pop edi
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x40436a
mov ecx, dword [ebp + 8]
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x404366
cmp esi, eax
jae 0x40436a
dec edi
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x404358
cmp esi, eax
jb 0x404370
pop esi
xor eax, eax
pop edi
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebp
ret

Function at 0x4044d2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x418054]
jne 0x4044dc
repz ret
jmp fcn.00404f73
Function at 0x40b90c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x418054]
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.004095f3
and dword [ebp - 0x14], 0
cmp dword [0x419ff4], 0
mov dword [ebp - 0x18], eax
jne 0x40b9bf
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40ba67
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x40ba67
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x419ff4], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x419ff8], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x419ffc], eax
call edi
push eax
call esi
mov dword [0x41a004], eax
test eax, eax
je 0x40b9bf
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x41a000], eax
mov eax, dword [0x41a000]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40ba18
cmp dword [0x41a004], ecx
je 0x40ba18
push eax
call esi
push dword [0x41a004]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40ba18
test ebx, ebx
je 0x40ba18
call edi
test eax, eax
je 0x40ba0f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40ba0f
test byte [ebp - 8], 1
jne 0x40ba18
or dword [ebp + 0x10], 0x200000
jmp 0x40ba4b
mov eax, dword [0x419ff8]
cmp eax, dword [ebp - 0x18]
je 0x40ba4b
push eax
call esi
test eax, eax
je 0x40ba4b
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40ba4b
mov eax, dword [0x419ffc]
cmp eax, dword [ebp - 0x18]
je 0x40ba4b
push eax
call esi
test eax, eax
je 0x40ba4b
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x419ff4]
call esi
test eax, eax
je 0x40ba67
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x40ba69
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004044d2
leave
ret
Function at 0x414c60
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x4d51eb
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.004c9120
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x414ce2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.004c5fc4
mov eax, dword [eax]
push 0x724280
push eax
call fcn.004b7ed4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.004c93ab
test bl, bl
je 0x414ce2
push 0x724280
lea ecx, [esp + 0xc]
call fcn.004c973b
push 0x727e00
lea ecx, [esp + 0xc]
call fcn.004c973b
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 0x414d1e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.004c93ab
jmp 0x414de9
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 0x414da2
lea edx, [esp + 0x7c]
push 0x727dfc
push edx
call fcn.004b7ed4
add esp, 8
test eax, eax
je 0x414da2
lea eax, [esp + 0x7c]
push 0x727df8
push eax
call fcn.004b7ed4
add esp, 8
test eax, eax
je 0x414da2
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 0x414d32
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.004c93ab
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 0x415600
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 0x415662
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 0x415670
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x4d526b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x737e14]
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 0x4157a8
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x4156d6
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.004c93ab
xor eax, eax
jmp 0x41581f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.004c94e8
push esi
lea ecx, [esp + 0xc]
call fcn.004c9777
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x4157fd
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push closesocket
call fcn.00415600
test eax, eax
jne 0x4157fd
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 closesocket
mov ecx, edi
call fcn.00415600
test eax, eax
jne 0x4157fd
lea eax, [esp + 0x14]
push 0x727e14
push eax
call fcn.004b8f10
mov esi, eax
add esp, 8
test esi, esi
jne 0x4157dc
lea ecx, [esp + 0x14]
push 0x727e10
push ecx
call fcn.004b8e90
mov esi, eax
add esp, 8
test esi, esi
jne 0x4157dc
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x4157df
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.004c9498
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x4156ee
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.004c93ab
xor eax, eax
jmp 0x41581f
mov byte [esi], 0
push 0x727e0c
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.004c93ab
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 0x4272c0
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 0x42732e
cmp si, 0x69
ja 0x42732e
add esi, 0xffd0
cmp si, 0x11
je 0x4272fe
push 0x11
call edi
test ax, ax
jge 0x4272fe
or esi, 0x2000
cmp si, 0x10
je 0x427313
push 0x10
call edi
test ax, ax
jge 0x427313
or esi, 0x4000
cmp si, 0x12
je 0x427328
push 0x12
call edi
test ax, ax
jge 0x427328
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x42733b
mov esi, 0xbd
jmp 0x4272ef
cmp si, 0x6e
jne 0x427348
mov esi, 0xbe
jmp 0x4272ef
cmp si, 0x6f
jne 0x4272e9
mov esi, 0xbf
jmp 0x4272ef

Function at 0x4289e0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x7485d0]
xor edx, edx
cmp eax, edx
jne 0x428a06
xor eax, eax
mov byte [eax + 0x7484d0], al
inc eax
cmp eax, 0x100
jl 0x4289ee
mov dword [0x7485d0], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x7484d0
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x428a97
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 0x428a6a
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 0x428a38
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x428b10
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 0x428b63
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 0x428b4a
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