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

Disassembly:
push ecx
push edi
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov dword [ebx], 0
push eax
mov dword [esi], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x402004
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esi], eax
test eax, eax
je 0x401ffd
add eax, 2
push eax
call fcn.0040c23a
mov dword [ebx], eax
mov ecx, dword [esi]
add ecx, 2
push ecx
push 0
push eax
call fcn.0040e680
mov eax, dword [esi]
mov ecx, dword [ebx]
add esp, 0x10
push 0
lea edx, [esp + 8]
push edx
push eax
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ecx
ret

Function at 0x402010
Capabilities:
Get common file path

Disassembly:
sub esp, 0x418
mov eax, dword [0x4251d0]
xor eax, esp
mov dword [esp + 0x414], eax
lea eax, [esp + 4]
push eax
push 0x104
mov dword [esp + 8], 0
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea ecx, [esp + 0x20c]
push ecx
push 0
push 0x41e014
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push esi
lea ecx, [esp + 0x210]
call fcn.00402520
mov ecx, dword [esp + 0x414]
xor ecx, esp
mov eax, esi
call fcn.0040c6d7
add esp, 0x418
ret

Function at 0x402100
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push edi
push ebx
push ebp
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x402117
pop edi
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x402148
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x402144
cmp esi, eax
jae 0x402148
sub edi, 1
movzx ecx, word [esi]
lea esi, [esi + ecx*2 + 2]
jne 0x402134
cmp esi, eax
jb 0x40214e
pop esi
pop edi
xor eax, eax
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebp
ret

Function at 0x4026b0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x41aee9
mov eax, dword fs:[0]
push eax
push ebx
push esi
mov eax, dword [0x4251d0]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
mov dword [esi], vtable.W3Client.0
xor ebx, ebx
mov eax, 0xf
mov dword [esi + 0x28], eax
mov dword [esi + 0x24], ebx
mov byte [esi + 0x14], bl
mov dword [esp + 0x14], ebx
mov dword [esi + 0x44], eax
mov dword [esi + 0x40], ebx
mov byte [esi + 0x30], bl
mov dword [esi + 0x60], eax
mov dword [esi + 0x5c], ebx
mov byte [esi + 0x4c], bl
mov dword [esi + 0x7c], eax
mov dword [esi + 0x78], ebx
mov byte [esi + 0x68], bl
lea eax, [esi + 0x88]
push eax
mov byte [esp + 0x18], 3
call fcn.004030a0
lea ecx, [esi + 0xa4]
push ecx
mov byte [esp + 0x18], 4
call fcn.004030a0
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0xc
ret 4
Function at 0x402f20
Capabilities:
Create thread
Terminate thread

Disassembly:
push esi
push 0
push 0
push eax
push 0x402cc0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
push 0x1d4c0
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x402f53
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
ret

Function at 0x403e00
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 0xc
push esi
mov esi, eax
cmp byte [esi + 0x38], 0
push edi
mov edi, 0x10
je 0x403f1e
cmp dword [esi + 0x34], edi
jb 0x403e20
mov ecx, dword [esi + 0x20]
jmp 0x403e23
lea ecx, [esi + 0x20]
cmp dword [esi + 0x18], edi
jb 0x403e2d
mov eax, dword [esi + 4]
jmp 0x403e30
lea eax, [esi + 4]
push ebp
mov ebp, dword [esp + 0x1c]
push ecx
push eax
push str.__MULTI_PARTS_FORM_DATA_BOUNDARY
push str.___s_r_nContent_Disposition:_form_data__name__s___filename__s__r_n_r_n
push ebp
call fcn.0040d026
mov eax, str.__MULTI_PARTS_FORM_DATA_BOUNDARY
add esp, 0x14
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403e52
mov ecx, dword [esi + 0x30]
add ecx, dword [esi + 0x14]
sub eax, edx
push ebx
lea ebx, [ecx + eax + 0x3c]
mov dword [esp + 0x18], ebx
cmp dword [esi + 0x34], edi
jb 0x403e74
mov esi, dword [esi + 0x20]
jmp 0x403e77
add esi, 0x20
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
xor esi, esi
cmp edi, esi
je 0x403f7b
cmp edi, 0xffffffff
je 0x403f7b
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
lea edx, [esp + 0x14]
push edx
push 0x400
add ebx, ebp
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
push edi
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], esi
call ebp
test eax, eax
je 0x403ef7
mov eax, dword [esp + 0x10]
test eax, eax
jbe 0x403ef7
cmp esi, dword [esp + 0x14]
ja 0x403ef7
push 0
add esi, eax
lea eax, [esp + 0x14]
push eax
push 0x400
lea ecx, [esi + ebx]
push ecx
push edi
call ebp
test eax, eax
jne 0x403ed0
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
add esi, edx
mov eax, 0xa0d
push edi
mov word [esi + ecx], ax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop ebp
pop edi
lea eax, [esi + 2]
pop esi
add esp, 0xc
ret 4
cmp dword [esi + 0x34], edi
jb 0x403f28
mov ecx, dword [esi + 0x20]
jmp 0x403f2b
lea ecx, [esi + 0x20]
cmp dword [esi + 0x18], edi
jb 0x403f35
mov eax, dword [esi + 4]
jmp 0x403f38
lea eax, [esi + 4]
mov edx, dword [esp + 0x18]
push ecx
push eax
push str.__MULTI_PARTS_FORM_DATA_BOUNDARY
push str.___s_r_nContent_Disposition:_form_data__name__s__r_n_r_n_s_r_n
push edx
call fcn.0040d026
mov eax, str.__MULTI_PARTS_FORM_DATA_BOUNDARY
add esp, 0x14
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403f60
mov ecx, dword [esi + 0x30]
sub eax, edx
add ecx, dword [esi + 0x14]
pop edi
lea eax, [ecx + eax + 0x31]
pop esi
add esp, 0xc
ret 4
mov eax, ebx
pop ebx
pop ebp
pop edi
pop esi
add esp, 0xc
ret 4
Function at 0x404f90
Capabilities:
Get file size

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x20]
xor eax, eax
mov dword [esp + 0x10], eax
cmp dword [edi + 0xa0], eax
jbe 0x405099
mov eax, dword [edi + 0x9c]
mov ecx, dword [eax]
mov ebx, dword [edi + 0x88]
mov ebp, dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esp + 0x18], ecx
jmp 0x404fd0
mov esi, dword [edi + 0x9c]
mov eax, dword [edi + 0x88]
test ebx, ebx
je 0x404fe4
cmp ebx, eax
je 0x404fe9
call fcn.0040cc59
cmp dword [esp + 0x18], esi
je 0x405095
test ebx, ebx
jne 0x405024
call fcn.0040cc59
xor eax, eax
mov edx, dword [esp + 0x18]
cmp edx, dword [eax + 0x14]
jne 0x40500c
call fcn.0040cc59
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 8]
cmp byte [eax + 0x38], 0
je 0x405060
cmp dword [eax + 0x34], 0x10
jb 0x405028
mov eax, dword [eax + 0x20]
jmp 0x40502b
mov eax, dword [ebx]
jmp 0x404ffe
add eax, 0x20
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push eax
call ebp
mov edi, eax
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
push edi
add esi, 0x1800
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [esp + 0x20]
jmp 0x405065
mov esi, 0x2000
add dword [esp + 0x10], esi
test ebx, ebx
jne 0x405091
call fcn.0040cc59
xor eax, eax
mov ecx, dword [esp + 0x18]
cmp ecx, dword [eax + 0x14]
jne 0x405082
call fcn.0040cc59
mov edx, dword [esp + 0x18]
mov eax, dword [edx]
mov dword [esp + 0x18], eax
jmp 0x404fd0
mov eax, dword [ebx]
jmp 0x405074
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 4
Function at 0x405650
Capabilities:
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41adc0
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x4251d0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [ebp - 4], ecx
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x14], ecx
cmp eax, ecx
jne 0x4056a2
push 0x422f80
lea ecx, [ebp - 0x18]
push ecx
mov dword [ebp - 0x18], str.connection_failed...
call fcn.0040e1db
mov ecx, dword [ebp + 0xc]
lea edx, [ebp - 0x14]
push edx
push 0x64
push ecx
push eax
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x4056e6
push 0x422f80
lea edx, [ebp - 0x1c]
push edx
mov dword [ebp - 0x1c], str.response_failed...
call fcn.0040e1db
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0xc]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [esi + 0xc], 0
mov eax, 0x4056e6
ret
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4074f0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 8
push ebx
push ebp
mov ebp, dword [esi + 0x2c]
push edi
lea esp, [esp]
mov edi, dword [esi + 0x3c]
sub edi, dword [esi + 0x74]
mov eax, dword [esi + 0x6c]
mov ecx, dword [esi + 0x2c]
sub edi, eax
lea edx, [ecx + ebp - 0x106]
mov dword [esp + 0xc], edi
cmp eax, edx
jb 0x407580
mov eax, dword [esi + 0x38]
push ebp
lea ecx, [eax + ebp]
push ecx
push eax
call fcn.0040f580
mov edx, dword [esi + 0x4c]
mov eax, dword [esi + 0x44]
sub dword [esi + 0x70], ebp
sub dword [esi + 0x6c], ebp
add esp, 0xc
sub dword [esi + 0x5c], ebp
lea ecx, [eax + edx*2]
movzx eax, word [ecx - 2]
sub ecx, 2
cmp eax, ebp
jb 0x40754f
sub eax, ebp
jmp 0x407551
xor eax, eax
sub edx, 1
mov word [ecx], ax
jne 0x407540
mov ecx, dword [esi + 0x40]
mov edx, ebp
lea ecx, [ecx + ebp*2]
movzx eax, word [ecx - 2]
sub ecx, 2
cmp eax, ebp
jb 0x407570
sub eax, ebp
jmp 0x407572
xor eax, eax
sub edx, 1
mov word [ecx], ax
jne 0x407561
add edi, ebp
mov dword [esp + 0xc], edi
mov edi, dword [esi]
cmp dword [edi + 4], 0
je 0x40763a
mov edx, dword [esi + 0x74]
add edx, dword [esi + 0x6c]
mov eax, dword [edi + 4]
add edx, dword [esi + 0x38]
mov ecx, dword [esp + 0xc]
mov ebx, eax
mov dword [esp + 0x10], edx
cmp ebx, ecx
jbe 0x4075a8
mov ebx, ecx
test ebx, ebx
je 0x4075fc
sub eax, ebx
mov dword [edi + 4], eax
mov eax, dword [edi + 0x1c]
mov eax, dword [eax + 0x18]
cmp eax, 1
jne 0x4075ca
mov edx, dword [edi]
mov ecx, dword [edi + 0x30]
mov eax, ebx
call fcn.00406230
jmp 0x4075e3
cmp eax, 2
jne 0x4075ea
mov ecx, dword [edi]
mov eax, dword [edi + 0x30]
test ecx, ecx
jne 0x4075dc
xor eax, eax
jmp 0x4075e7
mov edx, ebx
call fcn.00406490
mov edx, dword [esp + 0x10]
mov dword [edi + 0x30], eax
mov ecx, dword [edi]
push ebx
push ecx
push edx
call fcn.0040f580
add dword [edi], ebx
add esp, 0xc
add dword [edi + 8], ebx
add dword [esi + 0x74], ebx
mov edi, dword [esi + 0x74]
cmp edi, 3
jb 0x407626
mov eax, dword [esi + 0x38]
mov edx, dword [esi + 0x6c]
mov ecx, dword [esi + 0x58]
add edx, eax
movzx eax, byte [edx]
mov dword [esi + 0x48], eax
shl eax, cl
movzx ecx, byte [edx + 1]
xor eax, ecx
and eax, dword [esi + 0x54]
mov dword [esi + 0x48], eax
cmp edi, 0x106
jae 0x40763a
mov edx, dword [esi]
cmp dword [edx + 4], 0
jne 0x407500
pop edi
pop ebp
pop ebx
add esp, 8
ret
Function at 0x40a110
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
cmp dword [esi + 0x4090], 0
je 0x40a1bf
cmp dword [esi + 0x6c], 0
jbe 0x40a1bf
push ebx
push ebp
mov ebp, 0xffffff78
push edi
lea edi, [esi + 0x88]
sub ebp, esi
jmp 0x40a140
movzx ecx, byte [edi]
mov eax, dword [esi + 0x4094]
mov ebx, dword [esi + 0x40a0]
xor ecx, eax
mov edx, dword [esi + 0x409c]
shr eax, 8
and ecx, 0xff
mov ecx, dword [ebx + ecx*4]
xor ecx, eax
movzx eax, cl
add eax, dword [esi + 0x4098]
mov dword [esi + 0x4094], ecx
mov ecx, dword [esi + 0x409c]
imul eax, eax, 0x8088405
inc eax
mov dword [esi + 0x4098], eax
shr eax, 0x18
xor eax, ecx
and eax, 0xff
and edx, 0xfffd
shr ecx, 8
xor ecx, dword [ebx + eax*4]
or edx, 2
mov eax, edx
xor eax, 1
imul eax, edx
mov dword [esi + 0x409c], ecx
shr eax, 8
xor byte [edi], al
inc edi
lea ecx, [edi + ebp]
cmp ecx, dword [esi + 0x6c]
jb 0x40a140
pop edi
pop ebp
pop ebx
mov edx, dword [esi + 0x6c]
mov ecx, dword [esi + 0x20]
push edx
mov edx, dword [esi + 0x1c]
lea eax, [esi + 0x88]
push eax
mov eax, dword [esi + 8]
push ecx
push edx
call eax
add esp, 0x10
cmp eax, dword [esi + 0x6c]
mov dword [esi + 0x6c], 0
je 0x40a1ea
or eax, 0xffffffff
ret
xor eax, eax
ret
Function at 0x40adc0
Capabilities:
Hash data with md5

Disassembly:
xor ecx, ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x10], ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret

Function at 0x40c6d7
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4251d0]
jne 0x40c6e1
repz ret
jmp fcn.0040e925

Function at 0x4183b6
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0040eb9a
and dword [ebp - 4], 0
cmp dword [0x427e00], 0
mov ebx, eax
jne 0x418467
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x418518
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x418518
push eax
call fcn.0040eb28
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x427e00], eax
call esi
push eax
call fcn.0040eb28
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x427e04], eax
call esi
push eax
call fcn.0040eb28
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x427e08], eax
call esi
push eax
call fcn.0040eb28
pop ecx
mov dword [0x427e10], eax
test eax, eax
je 0x418467
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040eb28
pop ecx
mov dword [0x427e0c], eax
mov eax, dword [0x427e0c]
cmp eax, ebx
je 0x4184bf
cmp dword [0x427e10], ebx
je 0x4184bf
push eax
call fcn.0040eba3
push dword [0x427e10]
mov esi, eax
call fcn.0040eba3
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4184bf
test edi, edi
je 0x4184bf
call esi
test eax, eax
je 0x4184b6
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4184b6
test byte [ebp - 0xc], 1
jne 0x4184bf
or dword [ebp + 0x10], 0x200000
jmp 0x4184f8
mov eax, dword [0x427e04]
cmp eax, ebx
je 0x4184f8
push eax
call fcn.0040eba3
pop ecx
test eax, eax
je 0x4184f8
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4184f8
mov eax, dword [0x427e08]
cmp eax, ebx
je 0x4184f8
push eax
call fcn.0040eba3
pop ecx
test eax, eax
je 0x4184f8
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x427e00]
call fcn.0040eba3
pop ecx
test eax, eax
je 0x418518
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x41851a
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x44d21f
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x44d24d
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x44d26b
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0044d189
jmp 0x44d26b
mov eax, dword [esi + 0x14]
test eax, eax
je 0x44d26b
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.0044d189
test edi, edi
mov eax, edi
jne 0x44d255
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x478624]
test ecx, ecx
je 0x44d31e
jmp 0x44d21e
ret 8

Function at 0x438cbc
Capabilities:
Encode data using xor

Disassembly:
mov ecx, 0x438a14
sub edx, edx
and ebx, ebx
and edx, edx
call fcn.00438cf1
push 0xfde1055
pop ebx
sub edx, 0x95860543
xor dword [edi], ecx
add ebx, ebx
mov ebx, ebx
inc edi
add edx, edx
inc ebx
add ebx, ebx
cmp edi, eax
jne fcn.00438cbc
mov ebx, ebx
ret
Function at 0x439530
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x4b88bb
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.004ac776
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x4395b2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.004a9dcd
mov eax, dword [eax]
push 0x5b7260
push eax
call fcn.0049bda4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.004aca01
test bl, bl
je 0x4395b2
push 0x5b7260
lea ecx, [esp + 0xc]
call fcn.004acd91
push 0x5bade4
lea ecx, [esp + 0xc]
call fcn.004acd91
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 0x4395ee
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.004aca01
jmp 0x4396b9
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 0x439672
lea edx, [esp + 0x7c]
push 0x5bade0
push edx
call fcn.0049bda4
add esp, 8
test eax, eax
je 0x439672
lea eax, [esp + 0x7c]
push 0x5baddc
push eax
call fcn.0049bda4
add esp, 8
test eax, eax
je 0x439672
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 0x439602
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.004aca01
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 0x439eb0
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 0x439f12
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 0x439f20
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x4b893b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x5c9588]
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 0x43a058
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x439f86
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.004aca01
xor eax, eax
jmp 0x43a0cf
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.004acb3e
push esi
lea ecx, [esp + 0xc]
call fcn.004acdcd
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 0x43a0ad
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push closesocket
call fcn.00439eb0
test eax, eax
jne 0x43a0ad
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.00439eb0
test eax, eax
jne 0x43a0ad
lea eax, [esp + 0x14]
push 0x5badf8
push eax
call fcn.0049d0a0
mov esi, eax
add esp, 8
test esi, esi
jne 0x43a08c
lea ecx, [esp + 0x14]
push 0x5badf4
push ecx
call fcn.0049d020
mov esi, eax
add esp, 8
test esi, esi
jne 0x43a08c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x43a08f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.004acaee
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x439f9e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.004aca01
xor eax, eax
jmp 0x43a0cf
mov byte [esi], 0
push 0x5badf0
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.004aca01
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 0x44ff00
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 0x44ff6e
cmp si, 0x69
ja 0x44ff6e
add esi, 0xffd0
cmp si, 0x11
je 0x44ff3e
push 0x11
call edi
test ax, ax
jge 0x44ff3e
or esi, 0x2000
cmp si, 0x10
je 0x44ff53
push 0x10
call edi
test ax, ax
jge 0x44ff53
or esi, 0x4000
cmp si, 0x12
je 0x44ff68
push 0x12
call edi
test ax, ax
jge 0x44ff68
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x44ff7b
mov esi, 0xbd
jmp 0x44ff2f
cmp si, 0x6e
jne 0x44ff88
mov esi, 0xbe
jmp 0x44ff2f
cmp si, 0x6f
jne 0x44ff29
mov esi, 0xbf
jmp 0x44ff2f

Function at 0x451730
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x5d9f30]
xor edx, edx
cmp eax, edx
jne 0x451756
xor eax, eax
mov byte [eax + 0x5d9e30], al
inc eax
cmp eax, 0x100
jl 0x45173e
mov dword [0x5d9f30], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x5d9e30
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x4517e7
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 0x4517ba
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 0x451788
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x451860
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 0x4518b3
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 0x45189a
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