joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b17d0
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0x88
mov eax, dword [0x56a434]
xor eax, esp
mov dword [esp + 0x84], eax
push ebx
push ebp
mov ebp, dword [esp + 0x94]
lea eax, [esp + 8]
push esi
push edi
push eax
mov esi, dword [ebp + 0x4e8]
lea eax, [esp + 0x18]
mov edi, dword [ebp]
push eax
mov dword [esp + 0x18], 0x80
mov eax, dword [esi + 0x154]
push 0
add eax, 4
push eax
push dword [esi + 0x15c]
push dword [esi + 0x14]
call dword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [esi + 0x148], 0
mov dword [esi + 0x14c], eax
jne 0x4b1856
push dword [esp + 0x10]
lea eax, [esp + 0x18]
push eax
lea eax, [esi + 0xc8]
push eax
call fcn.00489ea0
mov eax, dword [esp + 0x1c]
add esp, 0xc
mov dword [esi + 0x148], eax
mov edx, dword [esi + 0x14c]
cmp edx, 4
jge 0x4b1891
push str.Received_too_short_packet
push edi
call fcn.0049a8b0
add esp, 8
mov dword [esi + 0xc], 7
xor eax, eax
mov ecx, dword [esp + 0x94]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004dc386
add esp, 0x88
ret
mov eax, dword [esi + 0x15c]
movzx ecx, byte [eax + 1]
movzx eax, byte [eax]
shl eax, 8
or ecx, eax
mov dword [esi + 0xc], ecx
add ecx, 0xfffffffd
cmp ecx, 3
ja case.default.0x4b18b2
jmp dword [ecx*4 + 0x4b19bc]
cmp edx, 4
jle case.0x4b18b2.4
mov eax, dword [esi + 0x15c]
movzx ecx, byte [eax + 2]
movzx eax, byte [eax + 3]
shl ecx, 8
or ecx, eax
movzx eax, word [esi + 0x40]
inc eax
movzx eax, ax
cmp eax, ecx
jne case.0x4b18b2.4
lea eax, [edx - 4]
push eax
mov eax, dword [esi + 0x15c]
add eax, 4
push eax
push 1
push ebp
call fcn.0049a790
mov ebx, eax
add esp, 0x10
test ebx, ebx
je 0x4b1916
push 5
push esi
call fcn.004b2110
add esp, 8
mov eax, ebx
jmp 0x4b1878
mov eax, dword [esi + 0x14c]
sub eax, 4
cdq
add dword [edi + 0x70], eax
adc dword [edi + 0x74], edx
push dword [edi + 0x74]
push dword [edi + 0x70]
push edi
call fcn.004a4950
jmp 0x4b1991
mov eax, dword [esi + 0x15c]
movzx ecx, byte [eax + 2]
movzx eax, byte [eax + 3]
shl ecx, 8
or ecx, eax
mov eax, dword [esi + 0x15c]
add eax, 4
mov dword [esi + 8], ecx
push eax
push 0x534fb8
push edi
call fcn.0049a980
jmp 0x4b1991
lea eax, [edx - 2]
push eax
mov eax, dword [esi + 0x15c]
add eax, 2
push eax
push esi
call fcn.004b1560
add esp, 0xc
test eax, eax
je case.0x4b18b2.4
jmp 0x4b1878
push str.Internal_error:_Unexpected_packet
push 0x535b28
push edi
call fcn.0049a8b0
add esp, 0xc
push ebp
call fcn.004a4bb0
add esp, 4
test eax, eax
je 0x4b1876
push 5
push esi
call fcn.004b2110
add esp, 8
mov eax, 0x2a
jmp 0x4b1878
Function at 0x4b8b30
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x108
mov eax, dword [0x56a434]
xor eax, esp
mov dword [esp + 0x104], eax
mov eax, dword [esp + 0x10c]
push eax
call fcn.00508777
add esp, 4
mov byte [esp], 0
test eax, eax
je 0x4b8b95
push 0x104
lea ecx, [esp + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [esp], 0
je 0x4b8b95
lea eax, [esp]
push eax
call dword [0x56a36c]
add esp, 4
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.004dc386
add esp, 0x108
ret
mov ecx, dword [esp + 0x104]
xor eax, eax
xor ecx, esp
call fcn.004dc386
add esp, 0x108
ret
Function at 0x4bc6a0
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
mov eax, dword [esi]
cmp dword [eax + 4], 2
jne 0x4bc6cb
mov ecx, dword [esi + 0xc]
test ecx, ecx
jne 0x4bc6ba
pop edi
xor eax, eax
pop esi
ret
push dword [eax + 8]
push dword [esp + 0x18]
push 1
push dword [esp + 0x1c]
call ecx
jmp 0x4bc700
cmp dword [esi + 8], 0
jne 0x4bc6ee
push 0x5573b4
push dword [eax + 8]
call fcn.004f9cb2
add esp, 8
mov dword [esi + 8], eax
test eax, eax
jne 0x4bc6ee
pop edi
or eax, 0xffffffff
pop esi
ret
push dword [esi + 8]
push dword [esp + 0x18]
push 1
push dword [esp + 0x1c]
call fcn.004fd683
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x4bc722
mov eax, dword [esi + 8]
test eax, eax
je 0x4bc71c
push eax
call fcn.004f9d86
add esp, 4
mov dword [esi + 8], edi
mov eax, dword [esi]
mov eax, dword [eax]
mov dword [esi], eax
mov eax, edi
pop edi
pop esi
ret

Function at 0x4c0a10
Capabilities:
Hash data using md4
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
sub esp, 0xc
push ebx
mov ebx, dword [esp + 0x18]
push ebp
push esi
mov esi, ebx
push edi
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x4c0a20
sub esi, ecx
lea ebp, [esi + esi]
push ebp
call dword [0x56a360]
mov edi, eax
add esp, 4
test edi, edi
jne 0x4c0a47
lea eax, [edi + 0x1b]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
xor ecx, ecx
test esi, esi
je 0x4c0a60
nop dword [eax]
mov al, byte [ecx + ebx]
mov byte [edi + ecx*2], al
mov byte [edi + ecx*2 + 1], 0
inc ecx
cmp ecx, esi
jb 0x4c0a50
push 0xf0000000
push 1
push 0
push 0
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
mov esi, dword [esp + 0x28]
test eax, eax
je 0x4c0ada
lea eax, [esp + 0x10]
push eax
push 0
push 0
push 0x8002
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x4c0ace
push 0
push ebp
push edi
push dword [esp + 0x1c]
mov dword [esp + 0x28], 0x10
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
push 0
lea eax, [esp + 0x1c]
push eax
push esi
push 2
push dword [esp + 0x20]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push 0
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov dword [esi + 0x10], 0
push edi
mov byte [esi + 0x14], 0
call dword [0x56a364]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x4c0b00
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
sub esp, 0x24
mov eax, dword [0x56a434]
xor eax, esp
mov dword [esp + 0x20], eax
push esi
mov esi, dword [esp + 0x30]
lea eax, [esp + 4]
push edi
mov edi, dword [esp + 0x38]
push 0xf0000000
push 1
push 0
push 0
push eax
mov dword [esp + 0x20], 8
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x4c0ba4
lea eax, [esp + 0x20]
mov dword [esp + 0x24], 0
push eax
xorps xmm0, xmm0
movups xmmword [esp + 0x18], xmm0
push edi
mov word [esp + 0x1c], 0x208
mov dword [esp + 0x20], 0x6601
mov dword [esp + 0x24], 8
call fcn.004c0c10
lea eax, [esp + 0x28]
push 8
push eax
call fcn.004c5a50
add esp, 0x10
lea eax, [esp + 0x10]
push eax
push 0
push 0
push 0x14
lea eax, [esp + 0x24]
push eax
push dword [esp + 0x1c]
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
jne 0x4c0bb7
push eax
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
pop edi
xor al, al
pop esi
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.004dc386
add esp, 0x24
ret
mov ecx, dword [esp + 0x30]
push dword [esp + 0xc]
mov eax, dword [ecx]
mov dword [esi], eax
mov eax, dword [ecx + 4]
mov dword [esi + 4], eax
lea eax, [esp + 0x10]
push eax
push esi
push 0
push 0
push 0
push dword [esp + 0x28]
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
push 0
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov ecx, dword [esp + 0x28]
mov al, 1
pop edi
pop esi
xor ecx, esp
call fcn.004dc386
add esp, 0x24
ret
Function at 0x4c5e70
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x4c5e7c
pop ebp
ret
mov dword [ebp + 0xc], eax
pop ebp
jmp fcn.004c5e90

Function at 0x4c6a30
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
push edi
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x14]
lea eax, [eax + ecx*2]
add eax, 0xc
push eax
call dword [0x56a360]
mov edi, eax
add esp, 4
test edi, edi
jne 0x4c6a57
pop edi
pop esi
pop ecx
ret
lea ecx, [edi + 0xc]
mov dword [edi], esi
mov dword [edi + 4], ecx
mov eax, dword [esi + 0xc]
add eax, ecx
push ebx
mov ebx, dword [esp + 0x1c]
mov dword [edi + 8], eax
push ebp
cmp ebx, dword [esi + 0x10]
jbe 0x4c6a9f
mov eax, dword [esi]
push ecx
call eax
mov eax, dword [esi + 4]
push ebx
push dword [esp + 0x24]
push dword [edi + 4]
call eax
mov ebp, dword [edi + 8]
push dword [edi + 4]
add ebp, dword [esi + 0xc]
mov eax, dword [esi + 8]
push ebp
call eax
mov ebx, dword [esi + 0x14]
add esp, 0x18
mov dword [esp + 0x20], ebx
jmp 0x4c6aa3
mov ebp, dword [esp + 0x1c]
push dword [edi + 4]
mov eax, dword [esi]
call eax
push dword [edi + 8]
mov eax, dword [esi]
call eax
mov eax, dword [esp + 0x28]
add esp, 8
xor ebx, ebx
test eax, eax
je 0x4c6b05
mov dword [esp + 0x10], eax
mov ebx, eax
movzx eax, byte [ebp]
xor al, 0x36
mov byte [esp + 0x18], al
lea eax, [esp + 0x18]
push 1
push eax
push dword [edi + 4]
mov eax, dword [esi + 4]
call eax
movzx eax, byte [ebp]
lea ebp, [ebp + 1]
xor al, 0x5c
mov byte [esp + 0x24], al
lea eax, [esp + 0x24]
push 1
push eax
push dword [edi + 8]
mov eax, dword [esi + 4]
call eax
add esp, 0x18
sub ebx, 1
jne 0x4c6ac4
mov ebx, dword [esp + 0x10]
cmp ebx, dword [esi + 0x10]
jae 0x4c6b37
nop word [eax + eax]
mov eax, dword [esi + 4]
push 1
push 0x540190
push dword [edi + 4]
call eax
mov eax, dword [esi + 4]
push 1
push 0x540191
push dword [edi + 8]
call eax
inc ebx
add esp, 0x18
cmp ebx, dword [esi + 0x10]
jb 0x4c6b10
pop ebp
pop ebx
mov eax, edi
pop edi
pop esi
pop ecx
ret

Function at 0x4e0999
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret

Function at 0x512a5b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.005128da

Function at 0x5198f9
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.005195b9
Function at 0x100117ed
Capabilities:
Parse pe header

Disassembly:
mov eax, dword [esp + 4]
push ebx
mov bl, byte [eax]
push esi
xor edx, edx
xor esi, esi
cmp bl, dl
jne 0x10011804
xor eax, eax
jmp 0x10011960
cmp bl, 0x4d
jne 0x1001180f
cmp byte [eax + 1], 0x5a
je 0x10011829
cmp bl, 0x41
jne 0x1001181a
cmp byte [eax + 1], 0x24
je 0x10011829
cmp bl, 0x5a
jne 0x100118a8
cmp byte [eax + 1], 0x4d
jne 0x100118a8
mov esi, dword [esp + 0x10]
cmp esi, 0x40
jb 0x100117fd
mov ecx, dword [eax + 0x3c]
cmp ecx, edx
je 0x100118a0
cmp ecx, dword [esp + 0x14]
jae 0x100118a0
push edi
lea edi, [esi - 4]
cmp ecx, edi
pop edi
jbe 0x10011850
xor eax, eax
inc eax
jmp 0x10011960
add eax, ecx
cmp byte [eax], 0x50
jne 0x1001188c
cmp byte [eax + 1], 0x45
jne 0x100118a0
cmp byte [eax + 2], dl
jne 0x1001188c
cmp byte [eax + 3], dl
jne 0x1001188c
lea edx, [ecx + 0x18]
cmp edx, esi
jae 0x10011876
test word [eax + 0x16], 0x2000
jne 0x10011848
add ecx, 0x8c
cmp ecx, esi
jae 0x10011848
cmp word [eax + 0x5c], 3
jbe 0x10011848
jmp 0x100117fd
cmp byte [eax + 1], 0x45
jne 0x100118a0
cmp byte [eax + 2], dl
jne 0x100118a0
cmp byte [eax + 3], dl
je 0x100117fd
push 3
pop eax
jmp 0x10011960
cmp bl, 0x40
jne 0x100118eb
mov cl, byte [eax + 1]
cmp cl, 0x65
je 0x100118ba
cmp cl, 0x45
jne 0x100118eb
mov cl, byte [eax + 2]
cmp cl, 0x63
je 0x100118c7
cmp cl, 0x43
jne 0x100118eb
mov cl, byte [eax + 3]
cmp cl, 0x68
je 0x100118d4
cmp cl, 0x48
jne 0x100118eb
mov cl, byte [eax + 4]
cmp cl, 0x6f
je 0x100118e1
cmp cl, 0x4f
jne 0x100118eb
cmp byte [eax + 5], 0x20
jne 0x100118eb
push 2
jmp 0x100118a2
cmp bl, 0x31
jne 0x10011908
cmp byte [eax + 1], 0x32
jne 0x10011908
cmp byte [eax + 2], 0x37
jne 0x10011908
cmp byte [eax + 3], 0x2e
jne 0x10011908
cmp byte [eax + 4], 0x30
je 0x100118e7
cmp bl, 0x23
jne 0x10011925
cmp byte [eax + 1], 0x20
jne 0x10011925
cmp byte [eax + 2], 0x43
jne 0x10011925
cmp byte [eax + 3], 0x6f
jne 0x10011925
cmp byte [eax + 4], 0x70
je 0x100118e7
cmp edx, dword [esp + 0x10]
jae 0x10011958
mov cl, byte [edx + eax]
cmp cl, 0x20
jb 0x10011938
cmp cl, 0x7f
jbe 0x10011952
cmp cl, 0xd
je 0x10011952
cmp cl, 0xa
je 0x10011952
cmp cl, 9
je 0x10011952
cmp cl, 8
je 0x10011952
cmp cl, 0x27
je 0x10011952
inc esi
inc edx
cmp edx, 0x40
jb 0x10011925
cmp esi, 5
sbb eax, eax
and eax, 2
pop esi
pop ebx
ret
Function at 0x40234f
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
push edi
xor eax, eax
push eax
xor eax, eax
push eax
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 0x14]
push eax
xor eax, eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 4], eax
test eax, eax
jne 0x402381
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret 0x10
push 8
pop eax
push eax
call dword [0x4ddbc4]
mov edi, eax
mov eax, dword [ebp - 4]
mov dword [edi], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov dword [edi + 4], eax
mov esi, dword [ebp + 8]
mov dword [esi], edi
add esp, 4
mov eax, dword [edi]
pop edi
mov esp, ebp
pop ebp
ret 0x10
Function at 0x41d220
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x4a844b
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.0049c7da
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x41d2a2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.00499e32
mov eax, dword [eax]
push 0x4edda8
push eax
call fcn.00488bc4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0049ca65
test bl, bl
je 0x41d2a2
push 0x4edda8
lea ecx, [esp + 0xc]
call fcn.0049cdf5
push 0x4eddb4
lea ecx, [esp + 0xc]
call fcn.0049cdf5
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 0x41d2de
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0049ca65
jmp 0x41d3a9
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 0x41d362
lea edx, [esp + 0x7c]
push 0x4eddb0
push edx
call fcn.00488bc4
add esp, 8
test eax, eax
je 0x41d362
lea eax, [esp + 0x7c]
push 0x4eddac
push eax
call fcn.00488bc4
add esp, 8
test eax, eax
je 0x41d362
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 0x41d2f2
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.0049ca65
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 0x41dba0
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 0x41dc02
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 0x41dc10
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x4a84cb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x4f9028]
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 0x41dd48
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x41dc76
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0049ca65
xor eax, eax
jmp 0x41ddbf
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.0049cba2
push esi
lea ecx, [esp + 0xc]
call fcn.0049ce31
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 0x41dd9d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push closesocket
call fcn.0041dba0
test eax, eax
jne 0x41dd9d
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.0041dba0
test eax, eax
jne 0x41dd9d
lea eax, [esp + 0x14]
push 0x4eddc4
push eax
call fcn.00489e00
mov esi, eax
add esp, 8
test esi, esi
jne 0x41dd7c
lea ecx, [esp + 0x14]
push 0x4eddc0
push ecx
call fcn.00489d80
mov esi, eax
add esp, 8
test esi, esi
jne 0x41dd7c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x41dd7f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.0049cb52
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x41dc8e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0049ca65
xor eax, eax
jmp 0x41ddbf
mov byte [esi], 0
push 0x4eddbc
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.0049ca65
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 0x430960
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 0x4309ce
cmp si, 0x69
ja 0x4309ce
add esi, 0xffd0
cmp si, 0x11
je 0x43099e
push 0x11
call edi
test ax, ax
jge 0x43099e
or esi, 0x2000
cmp si, 0x10
je 0x4309b3
push 0x10
call edi
test ax, ax
jge 0x4309b3
or esi, 0x4000
cmp si, 0x12
je 0x4309c8
push 0x12
call edi
test ax, ax
jge 0x4309c8
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x4309db
mov esi, 0xbd
jmp 0x43098f
cmp si, 0x6e
jne 0x4309e8
mov esi, 0xbe
jmp 0x43098f
cmp si, 0x6f
jne 0x430989
mov esi, 0xbf
jmp 0x43098f

Function at 0x432640
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x509cb8]
xor edx, edx
cmp eax, edx
jne 0x432666
xor eax, eax
mov byte [eax + 0x509bb8], al
inc eax
cmp eax, 0x100
jl 0x43264e
mov dword [0x509cb8], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x509bb8
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x4326f7
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 0x4326ca
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 0x432698
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x432770
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 0x4327c3
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 0x4327aa
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
Function at 0x4397f0
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x18
mov eax, dword [esp + 0x1c]
push ebx
push ebp
push esi
xor esi, esi
xor ecx, ecx
mov si, word [eax + 8]
mov cx, word [eax + 4]
xor ebp, ebp
xor edx, edx
mov bp, word [eax + 0xa]
mov dx, word [eax + 6]
sub esi, ecx
sub ebp, edx
inc esi
xor ebx, ebx
inc ebp
cmp esi, ebx
mov dword [esp + 0x14], esi
jle 0x439988
cmp ebp, ebx
jle 0x439988
mov eax, esi
push edi
cdq
and edx, 7
add eax, edx
mov edi, eax
mov eax, esi
sar edi, 3
and eax, 0x80000007
mov dword [esp + 0x10], edi
jns 0x43984e
dec eax
or eax, 0xfffffff8
inc eax
je 0x439855
inc edi
mov dword [esp + 0x10], edi
mov ecx, edi
and ecx, reloc.WS2_32.dll_accept
jns 0x439864
dec ecx
or ecx, 0xfffffffe
inc ecx
je 0x43986b
inc edi
mov dword [esp + 0x10], edi
push 0x18
call fcn.0049c7a6
add esp, 4
cmp eax, ebx
je 0x43988c
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov dword [eax + 0x14], ebx
mov ebx, eax
mov eax, edi
mov dword [esp + 0x14], ebx
imul eax, ebp
push eax
mov dword [ebx], 7
mov dword [ebx + 4], esi
mov dword [ebx + 8], ebp
mov dword [ebx + 0x14], eax
call fcn.0049c7a6
mov ecx, dword [ebx + 0x14]
mov edi, eax
mov edx, ecx
xor eax, eax
shr ecx, 2
mov dword [ebx + 0x10], edi
add esp, 4
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x2c]
test ebp, ebp
lea edx, [eax + 0x80]
jle 0x43997e
xor eax, eax
mov dword [esp + 0x20], ebp
mov dword [esp + 0x1c], eax
mov ebp, dword [ebx + 0x10]
xor ecx, ecx
add ebp, eax
mov dword [esp + 0x2c], ecx
test esi, esi
jle 0x439965
mov al, byte [edx]
cmp al, 0xc0
jbe 0x439951
and eax, 0xff
sub eax, 0xc0
inc edx
mov esi, eax
mov dword [esp + 0x24], edx
cmp esi, 1
jle 0x439946
xor eax, eax
mov ecx, esi
mov al, byte [edx]
mov edx, ecx
mov bl, al
mov edi, ebp
mov bh, bl
dec esi
mov eax, ebx
shl eax, 0x10
mov ax, bx
mov ebx, dword [esp + 0x14]
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
mov edx, dword [esp + 0x24]
and ecx, 3
add ebp, esi
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x2c]
lea ecx, [eax + esi*8]
mov esi, dword [esp + 0x18]
jmp 0x439954
mov al, byte [edx]
mov esi, dword [esp + 0x18]
mov byte [ebp], al
jmp 0x439954
mov byte [ebp], al
inc ebp
add ecx, 8
inc edx
cmp ecx, esi
mov dword [esp + 0x2c], ecx
jl 0x4398f0
mov eax, dword [esp + 0x1c]
mov edi, dword [esp + 0x10]
mov ecx, dword [esp + 0x20]
add eax, edi
dec ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ecx
jne 0x4398e1
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x18
ret
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x18
ret
Function at 0x43cf00
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4a9ec8
push eax
mov dword fs:[0], esp
sub esp, 0x28
push esi
push edi
mov edi, dword [esp + 0x44]
mov esi, ecx
test edi, edi
jne 0x43cf39
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
add esp, 0x34
ret 0x24
push 0x400
lea ecx, [esp + 0xc]
call fcn.004a4183
mov eax, dword [esp + 0x40]
push 0
push edi
push eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x44], 0
call fcn.004a41cf
mov ecx, dword [esp + 0x60]
mov edx, dword [esp + 0x5c]
mov eax, dword [esp + 0x58]
push ecx
mov ecx, dword [esp + 0x58]
push edx
mov edx, dword [esp + 0x58]
push eax
mov eax, dword [esp + 0x58]
push ecx
mov ecx, dword [esp + 0x58]
push edx
push eax
lea edx, [esp + 0x20]
push ecx
push edx
mov ecx, esi
call fcn.0043cfc0
lea ecx, [esp + 8]
mov esi, eax
mov dword [esp + 0x38], 0xffffffff
call fcn.004a420c
mov ecx, dword [esp + 0x30]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x34
ret 0x24