joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48ba00
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, ecx
mov eax, dword [esi + 4]
push edi
xor edi, edi
cmp eax, edi
jne 0x48ba3c
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x48ba32
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp + 8]
push edi
push edi
push edi
push edi
push ecx
push eax
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
mov dword [esi + 8], eax
cmp eax, edi
je 0x48ba83
push edi
lea edx, [ebp - 8]
push edx
lea ecx, [ebp - 4]
push ecx
push 0x20000013
push eax
mov dword [ebp - 4], edi
mov dword [ebp - 8], 4
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x48ba83
cmp dword [ebp - 4], 0xc8
jne 0x48ba83
mov edi, 1
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x48baa2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x48bab0
Capabilities:
Get http content length

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push 0
lea edx, [ebp - 4]
push edx
push eax
mov dword [eax], 0
mov eax, dword [ecx + 8]
push 0x20000005
push eax
mov dword [ebp - 4], 4
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x48bae9
mov eax, 1
mov esp, ebp
pop ebp
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
mov esp, ebp
pop ebp
ret 4

Function at 0x48bba0
Capabilities:
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor edi, edi
push 0x4000
mov ebx, ecx
mov dword [ebp - 4], edi
call fcn.0049e212
mov ecx, dword [ebx + 8]
add esp, 4
mov esi, eax
lea eax, [ebp - 4]
push eax
push 0x4000
push esi
push ecx
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x48bc2e
mov eax, dword [ebp - 4]
add edi, eax
cmp eax, 0x4000
jne 0x48bc1e
lea edx, [edi + 0x4000]
push edx
push esi
call fcn.0049e380
mov edx, dword [ebx + 8]
add esp, 8
mov esi, eax
lea eax, [ebp - 4]
push eax
push 0x4000
lea ecx, [esi + edi]
push ecx
push edx
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x48bbd5
mov eax, dword [ebp + 8]
mov dword [eax], esi
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp + 8]
mov eax, edi
pop edi
mov dword [ecx], esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov edx, dword [ebp + 8]
mov eax, edi
pop edi
mov dword [edx], esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x48bc40
Capabilities:
Download and write a file
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b4d38
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x4e5c64]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
xor edi, edi
mov dword [ebp - 4], edi
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp + 8]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x1c], esp
mov esi, esp
push eax
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x18], 0xffffffff
call fcn.00423f8a
add eax, 0x10
add esp, 4
mov dword [esi], eax
call fcn.00462bc0
add esp, 8
cmp eax, edi
je 0x48bd8b
push 0x4000
call fcn.0049e212
mov edx, dword [ebx + 8]
add esp, 4
lea ecx, [ebp - 0x10]
push ecx
push 0x4000
mov esi, eax
push esi
push edx
call dword [sym.imp.WININET.dll_InternetReadFile]
mov edi, dword [ebp - 0x18]
test eax, eax
je 0x48bd0c
mov ecx, dword [ebp - 0x10]
push 0
lea eax, [ebp - 0x1c]
push eax
push ecx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 0x10]
cmp dword [ebp - 0x1c], eax
jne 0x48bd59
add dword [ebp - 0x14], eax
cmp eax, 0x4000
jne 0x48bd0c
lea edx, [ebp - 0x10]
push edx
push eax
mov eax, dword [ebx + 8]
push esi
push eax
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x48bcd4
push esi
call fcn.0049e0f5
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x48bd42
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
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 4
push esi
call fcn.0049e0f5
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 8]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x18], esp
mov esi, esp
push eax
call fcn.00423f8a
add eax, 0x10
add esp, 4
mov dword [esi], eax
call fcn.00465470
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x48bdb1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x48c9e0
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b5078
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push edi
mov eax, dword [0x4e5c64]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, 1
call fcn.0049ea7a
push eax
mov eax, dword [esi + 8]
push eax
lea ecx, [ebp - 0x10]
push str._s._d
push ecx
call fcn.00461d60
add esp, 0x10
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x10]
mov eax, dword [esi + 8]
mov ebx, dword [sym.imp.KERNEL32.dll_MoveFileW]
push edx
push eax
call ebx
test eax, eax
jne 0x48ca68
mov edx, dword [esi + 8]
push ecx
mov ecx, dword [ebp - 0x10]
mov eax, esp
mov dword [ebp - 0x14], esp
push ecx
push edx
push str.CVirtAutoUpdate::CommitNewVersion:_move_1_failed:__s_____s
push eax
call fcn.00461d60
add esp, 0x10
call fcn.0048b990
add esp, 4
xor edi, edi
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0x10]
push eax
push ecx
call ebx
test eax, eax
jne 0x48ca9c
mov edx, dword [esi + 0x10]
push ecx
mov ecx, dword [esi + 8]
mov eax, esp
mov dword [ebp - 0x14], esp
push ecx
push edx
push str.CVirtAutoUpdate::CommitNewVersion:_move_2_failed:__s_____s
push eax
call fcn.00461d60
add esp, 0x10
call fcn.0048b990
add esp, 4
xor edi, edi
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x48cac2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x48cd60
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b8cf0
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x4e5c64]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, 2
mov dword [ebp - 4], ebx
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov edi, dword [sym.imp.USER32.dll_MessageBoxW]
push 0
push eax
push ecx
push 0
call edi
mov edx, dword [ebp + 8]
cmp dword [edx - 0xc], 0
push ecx
je 0x48cea0
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
mov dword [ebp - 0x10], esp
mov esi, esp
push eax
call fcn.00423f8a
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 3
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
mov dword [ebp - 0x14], esp
mov esi, esp
push eax
call fcn.00423f8a
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 4
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
mov dword [ebp - 0x18], esp
mov esi, esp
push eax
call fcn.00423f8a
add eax, 0x10
mov dword [esi], eax
add esp, 4
lea eax, [ebp - 0x2c]
push eax
mov byte [ebp - 4], bl
call fcn.0048bdd0
lea ecx, [ebp - 0x2c]
push ecx
mov byte [ebp - 4], 5
call fcn.0048c070
test eax, eax
je 0x48ce96
lea edx, [ebp - 0x10]
push edx
mov dword [ebp - 0x10], 0
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
push 3
push str.New_version_available
push str.New_version_available._Would_you_like_to_download_and_replace_it_now_
push 0
mov ebx, eax
call edi
cmp eax, 6
jne 0x48ce96
lea eax, [ebp - 0x2c]
push eax
call fcn.0048c8a0
test eax, eax
je 0x48ce96
lea esi, [ebp - 0x2c]
call fcn.0048c9e0
test eax, eax
je 0x48ce96
mov edx, dword [ebx]
push ecx
mov dword [ebp - 0x18], esp
mov esi, esp
push ecx
mov ecx, esp
mov dword [ebp - 0x18], esp
push edx
call fcn.00423442
push esi
call fcn.00467600
add esp, 8
lea eax, [ebp - 0x2c]
push eax
call fcn.0048cae0
test eax, eax
je 0x48ce96
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
lea esi, [ebp - 0x2c]
call fcn.0048cf40
jmp 0x48cebb
mov ecx, esp
mov dword [ebp - 0x18], esp
push str.DoVirtAutoUpdate:_nothing_to_update__no_SourceAddr_defined_
push ecx
call fcn.00461d60
add esp, 8
call fcn.0048b990
add esp, 4
mov byte [ebp - 4], 1
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x48cede
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x48cf01
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x48cf27
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
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 0x48d060
Capabilities:
Encode data using xor

Disassembly:
or edx, 0xffffffff
cmp dword [0x4ea774], 0
jne 0x48d071
call fcn.0048cfc0
xor eax, eax
test esi, esi
jle 0x48d09b
jmp 0x48d080
movzx ecx, byte [eax + edi]
xor ecx, edx
and ecx, 0xff
shr edx, 8
xor edx, dword [ecx*4 + 0x4ea320]
inc eax
cmp eax, esi
jl 0x48d080
mov eax, edx
ret
Function at 0x490ed0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
test ebx, 0xffff0000
jne 0x490ef4
cmp dword [edi + 0x54], 0
jne 0x490ef4
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.004918c7
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.00490e91
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x49709e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x4970e5
call fcn.004918c7
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4970e5
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x497101
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.00496c16
mov esi, eax
test edi, edi
je 0x4970ff
test ebx, ebx
je 0x4970ff
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x49d211
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4e5c64]
jne 0x49d21b
repz ret
jmp fcn.004a415d
Function at 0x4ad8b5
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.004a3ac1
and dword [ebp - 4], 0
cmp dword [0x4ea230], 0
mov ebx, eax
jne 0x4ad966
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4ada17
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4c1958
push edi
call esi
test eax, eax
je 0x4ada17
push eax
call fcn.004a3a4f
mov dword [esp], 0x4c1948
push edi
mov dword [0x4ea230], eax
call esi
push eax
call fcn.004a3a4f
mov dword [esp], 0x4c1934
push edi
mov dword [0x4ea234], eax
call esi
push eax
call fcn.004a3a4f
mov dword [esp], 0x4c1918
push edi
mov dword [0x4ea238], eax
call esi
push eax
call fcn.004a3a4f
pop ecx
mov dword [0x4ea240], eax
test eax, eax
je 0x4ad966
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004a3a4f
pop ecx
mov dword [0x4ea23c], eax
mov eax, dword [0x4ea23c]
cmp eax, ebx
je 0x4ad9be
cmp dword [0x4ea240], ebx
je 0x4ad9be
push eax
call fcn.004a3aca
push dword [0x4ea240]
mov esi, eax
call fcn.004a3aca
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4ad9be
test edi, edi
je 0x4ad9be
call esi
test eax, eax
je 0x4ad9b5
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4ad9b5
test byte [ebp - 0xc], 1
jne 0x4ad9be
or dword [ebp + 0x10], 0x200000
jmp 0x4ad9f7
mov eax, dword [0x4ea234]
cmp eax, ebx
je 0x4ad9f7
push eax
call fcn.004a3aca
pop ecx
test eax, eax
je 0x4ad9f7
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4ad9f7
mov eax, dword [0x4ea238]
cmp eax, ebx
je 0x4ad9f7
push eax
call fcn.004a3aca
pop ecx
test eax, eax
je 0x4ad9f7
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4ea230]
call fcn.004a3aca
pop ecx
test eax, eax
je 0x4ada17
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4ada19
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40b4c0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x46bfcb
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.004608d9
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x40b542
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0045e750
mov eax, dword [eax]
push 0x49f1f0
push eax
call fcn.00451384
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.00460b64
test bl, bl
je 0x40b542
push 0x49f1f0
lea ecx, [esp + 0xc]
call fcn.00460ef4
push 0x4a2d6c
lea ecx, [esp + 0xc]
call fcn.00460ef4
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 0x40b57e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.00460b64
jmp 0x40b649
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 0x40b602
lea edx, [esp + 0x7c]
push 0x4a2d68
push edx
call fcn.00451384
add esp, 8
test eax, eax
je 0x40b602
lea eax, [esp + 0x7c]
push 0x4a2d64
push eax
call fcn.00451384
add esp, 8
test eax, eax
je 0x40b602
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 0x40b592
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.00460b64
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 0x40be40
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 0x40bea2
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 0x40beb0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x46c04b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x4a96b8]
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 0x40bfe8
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x40bf16
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00460b64
xor eax, eax
jmp 0x40c05f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.00460ca1
push esi
lea ecx, [esp + 0xc]
call fcn.00460f30
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push 0x4a2da4
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x40c03d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push closesocket
call fcn.0040be40
test eax, eax
jne 0x40c03d
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.0040be40
test eax, eax
jne 0x40c03d
lea eax, [esp + 0x14]
push 0x4a2d80
push eax
call fcn.004523c0
mov esi, eax
add esp, 8
test esi, esi
jne 0x40c01c
lea ecx, [esp + 0x14]
push 0x4a2d7c
push ecx
call fcn.00452340
mov esi, eax
add esp, 8
test esi, esi
jne 0x40c01c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x40c01f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.00460c51
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x40bf2e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00460b64
xor eax, eax
jmp 0x40c05f
mov byte [esi], 0
push 0x4a2d78
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.00460b64
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 0x41d2e0
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 0x41d34e
cmp si, 0x69
ja 0x41d34e
add esi, 0xffd0
cmp si, 0x11
je 0x41d31e
push 0x11
call edi
test ax, ax
jge 0x41d31e
or esi, 0x2000
cmp si, 0x10
je 0x41d333
push 0x10
call edi
test ax, ax
jge 0x41d333
or esi, 0x4000
cmp si, 0x12
je 0x41d348
push 0x12
call edi
test ax, ax
jge 0x41d348
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x41d35b
mov esi, 0xbd
jmp 0x41d30f
cmp si, 0x6e
jne 0x41d368
mov esi, 0xbe
jmp 0x41d30f
cmp si, 0x6f
jne 0x41d309
mov esi, 0xbf
jmp 0x41d30f

Function at 0x41ea00
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x4b9d40]
xor edx, edx
cmp eax, edx
jne 0x41ea26
xor eax, eax
mov byte [eax + 0x4b9c40], al
inc eax
cmp eax, 0x100
jl 0x41ea0e
mov dword [0x4b9d40], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x4b9c40
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x41eab7
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 0x41ea8a
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 0x41ea58
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x41eb30
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 0x41eb83
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 0x41eb6a
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