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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8dc
mov eax, dword [0x415048]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x8dc], eax
mov eax, dword [ebp + 0xc]
mov ebx, ecx
push esi
push edi
mov dword [ebp - 0x8d8], edx
mov dword [ebp - 0x8d4], ebx
lea ecx, [ebp - 0x8cc]
test eax, eax
je 0x40430c
mov ecx, eax
xor eax, eax
mov word [ecx], ax
mov esi, dword [edx]
xor edi, edi
mov dword [ebp - 0x8d0], edi
test esi, esi
je 0x404457
test ebx, ebx
je 0x404457
push 0xc7
lea ecx, [ebp - 0xcb]
push edi
push ecx
mov byte [ebp - 0xcc], al
call fcn.00408150
add esp, 0xc
push edi
push 2
lea edx, [ebp - 0xcc]
push edx
push esi
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x404455
test eax, eax
je 0x404455
movzx edi, word [ebp - 0xcc]
lea eax, [edi + 2]
push eax
xor esi, esi
call fcn.004058be
add esp, 4
mov ebx, eax
test edi, edi
jle 0x404431
jmp 0x404390
mov eax, dword [ebp - 0x8d8]
push 0
mov ecx, edi
sub ecx, esi
push ecx
mov ecx, dword [eax]
lea edx, [esi + ebx]
push edx
push ecx
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x40440b
test eax, eax
je 0x40440b
add esi, eax
cmp edi, esi
jg 0x404390
cmp esi, 5
jl 0x404431
mov edx, dword [str.AS101]
sub esi, 5
cmp edx, dword [ebx]
jne 0x404431
mov al, byte [ebx + 4]
cmp al, byte [0x415f18]
jne 0x404431
test esi, esi
jle 0x4043ea
lea eax, [ebx + 5]
mov edi, esi
nop
mov cl, byte [eax]
not cl
mov byte [eax], cl
inc eax
dec edi
jne 0x4043e0
mov edi, dword [ebp - 0x8dc]
mov eax, dword [edi]
cmp eax, esi
jl 0x404413
mov eax, dword [ebp - 0x8d4]
push esi
lea edx, [ebx + 5]
push edx
push eax
call fcn.00408cc0
mov dword [edi], esi
jmp 0x404424
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x404431
mov edx, dword [ebp - 0x8d4]
push eax
lea ecx, [ebx + 5]
push ecx
push edx
call fcn.00408cc0
add esp, 0xc
mov dword [ebp - 0x8d0], 1
test ebx, ebx
je 0x40443e
push ebx
call fcn.00405c97
add esp, 4
mov eax, dword [ebp - 0x8d0]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004047f8
mov esp, ebp
pop ebp
ret
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004047f8
mov esp, ebp
pop ebp
ret
Function at 0x404470
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe2c
mov eax, dword [0x415048]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0x400
mov ebx, ecx
lea ecx, [ebp - 0x610]
push 0
push ecx
mov dword [ebp - 0xe24], eax
call fcn.00408150
add esp, 0xc
push ebx
lea edx, [ebp - 0x610]
push 0x1ff
push edx
call fcn.0040487c
mov eax, ebx
add esp, 0xc
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4044c1
sub eax, edx
sar eax, 1
lea edi, [ebp + eax*2 - 0x60e]
mov ecx, 0x80
mov esi, 0x417a78
mov eax, ebx
rep movsd dword es:[edi], dword [esi]
lea edx, [eax + 2]
jmp 0x4044f0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4044f0
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 0x202]
push 0x10000
mov dword [ebp - 0xe28], eax
call fcn.0040533d
add esp, 4
push 0x10000
xor esi, esi
mov ebx, eax
push esi
push ebx
call fcn.00408150
add esp, 0xc
push 0x7fe
lea edx, [ebp - 0xe0e]
xor ecx, ecx
push esi
push edx
mov dword [ebp - 0xe1c], 0x10000
mov word [ebp - 0xe10], cx
call fcn.00408150
add esp, 0xc
push 0x206
lea ecx, [ebp - 0x20e]
xor eax, eax
push esi
push ecx
mov dword [ebp - 0xe18], esi
mov dword [ebp - 0xe14], esi
mov dword [ebp - 0xe20], esi
mov word [ebp - 0x210], ax
call fcn.00408150
add esp, 0xc
lea edx, [ebp - 0x210]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov ecx, dword [ebp + 0xc]
mov edi, dword [ebp - 0xe24]
lea eax, [ebp - 0xe10]
push eax
push ecx
lea esi, [ebp - 0xe18]
call fcn.00403db0
add esp, 8
test eax, eax
je 0x40468c
mov eax, dword [ebp - 0xe28]
lea edx, [ebp - 0xe10]
push edx
push eax
lea ecx, [ebp - 0x610]
push ecx
push 0xbba
mov edx, esi
call fcn.00403ec0
add esp, 0x10
test eax, eax
je 0x40468c
lea edx, [ebp - 0xe10]
push edx
lea eax, [ebp - 0xe20]
push eax
mov ecx, esi
push ecx
lea edx, [ebp - 0xe1c]
mov ecx, ebx
call fcn.004040c0
add esp, 0xc
test eax, eax
je 0x40468c
mov edx, 0xbba
cmp word [ebp - 0xe20], dx
jne 0x40468c
cmp dword [ebp - 0xe1c], 0
je 0x40468c
cmp byte [ebx], 0
jne 0x40468c
push 0x417c78
lea eax, [ebp - 0x210]
push 0x104
push eax
call fcn.00404807
add esp, 0xc
push 0x41392c
lea ecx, [ebp - 0x210]
push ecx
lea edx, [ebp - 0xe14]
push edx
mov dword [ebp - 0xe14], 0
call fcn.00404b29
add esp, 0xc
cmp dword [ebp - 0xe14], 0
je 0x404682
lea eax, [ebp - 0xe14]
push eax
mov edi, esi
call fcn.004046d0
add esp, 4
mov dword [ebp - 0xe14], 1
test ebx, ebx
je 0x404699
push ebx
call fcn.004053d1
add esp, 4
mov eax, dword [ebp - 0xe18]
test eax, eax
je 0x4046aa
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0xe14]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004047f8
mov esp, ebp
pop ebp
ret
Function at 0x4046d0
Capabilities:
Download and write a file
Receive and write data from server to client
Receive data
Receive data on socket
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.0040ddc0
mov eax, dword [0x415048]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [edi]
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
push ebx
push 4
lea ecx, [ebp - 0x1008]
push ecx
push edx
mov dword [ebp - 0x100c], eax
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 4
je 0x40471c
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004047f8
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x1008], ebx
jbe 0x404768
push esi
mov ecx, dword [edi]
push 0
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_recv]
mov esi, eax
test esi, esi
je 0x404767
mov edx, dword [ebp - 0x100c]
mov eax, dword [edx]
push eax
push esi
lea ecx, [ebp - 0x1004]
push 1
push ecx
call fcn.0040500f
add ebx, esi
add esp, 0x10
cmp ebx, dword [ebp - 0x1008]
jb 0x404725
pop esi
mov edx, dword [ebp - 0x100c]
mov eax, dword [edx]
push eax
call fcn.00404e44
mov ecx, dword [ebp - 4]
add esp, 4
cmp ebx, dword [ebp - 0x1008]
pop ebx
sbb eax, eax
xor ecx, ebp
inc eax
call fcn.004047f8
mov esp, ebp
pop ebp
ret

Function at 0x4047f8
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x415048]
jne 0x404802
repz ret
jmp fcn.00405f81
Function at 0x40e15b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x415048]
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.00409cc3
and dword [ebp - 0x14], 0
cmp dword [0x416cac], 0
mov dword [ebp - 0x18], eax
jne 0x40e20e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40e2b6
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x40e2b6
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x416cac], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x416cb0], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x416cb4], eax
call edi
push eax
call esi
mov dword [0x416cbc], eax
test eax, eax
je 0x40e20e
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x416cb8], eax
mov eax, dword [0x416cb8]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40e267
cmp dword [0x416cbc], ecx
je 0x40e267
push eax
call esi
push dword [0x416cbc]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40e267
test ebx, ebx
je 0x40e267
call edi
test eax, eax
je 0x40e25e
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40e25e
test byte [ebp - 8], 1
jne 0x40e267
or dword [ebp + 0x10], 0x200000
jmp 0x40e29a
mov eax, dword [0x416cb0]
cmp eax, dword [ebp - 0x18]
je 0x40e29a
push eax
call esi
test eax, eax
je 0x40e29a
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40e29a
mov eax, dword [0x416cb4]
cmp eax, dword [ebp - 0x18]
je 0x40e29a
push eax
call esi
test eax, eax
je 0x40e29a
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x416cac]
call esi
test eax, eax
je 0x40e2b6
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x40e2b8
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004047f8
leave
ret
Function at 0x6ac02370
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x6ac023cb
cmp byte [esi + ebx - 1], 0xa
je 0x6ac0239f
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x6ac03118], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_fwrite]
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
Function at 0x40632d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
pushal
call 0x40633c
pop dword [ebp - 0x2c]
mov eax, 0x25324cc6
add eax, 0xdb0e1676
sub dword [ebp - 0x2c], eax
mov dword [ebp - 0x3c], 0xf57d7257
add dword [ebp - 0x3c], 0x58d4d2f4
mov dword [ebp - 0x38], 0x43a5e530
add dword [ebp - 0x38], 0xee8d6715
mov dword [ebp - 0x34], 0x96b06881
add dword [ebp - 0x34], 0xb59bdbad
mov dword [ebp - 0x30], 0x4e958661
sub dword [ebp - 0x30], 0x4e958661
lea eax, [ebp - 0x3c]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x2c]
call dword [eax]
mov dword [ebp - 0x3c], 0x2d8f98a1
add dword [ebp - 0x3c], 0x46e2d0b5
mov dword [ebp - 0x38], 0x64990364
sub dword [ebp - 0x38], 0x232ca1ef
mov dword [ebp - 0x34], 0x7e92cd2
sub dword [ebp - 0x34], 0xa479c066
mov dword [ebp - 0x30], 0xcd9f6981
add dword [ebp - 0x30], 0x3260967f
lea ebx, [ebp - 0x3c]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x2c]
call dword [eax]
push 0x40
push 0x1000
push 0x3a681
push 0
call eax
mov ecx, 0x6394047a
sub ecx, 0x6393ad53
mov edx, eax
mov edi, 0x410000
add edi, dword [ebp - 0x2c]
mov esi, 0xcde8c14f
mov ebx, dword [edi]
add dword [ebp - 0x24], ebx
add ebx, esi
xor dword [ebp - 0x28], eax
mov dword [edx], ebx
add edx, 4
add edi, 0x8cfb712e
sub edi, 0x8cfb712a
loop 0x406448
add eax, 0x14f6f
mov ebx, eax
add eax, 0xc0eed561
add eax, 0x3f112aa4
mov ecx, 0xdaa112d5
sub ecx, 0xda6112d5
add ecx, dword [ebp - 0x2c]
call ebx
leave
ret

Function at 0x4065b0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40c17c]
jne 0x4065ba
repz ret
jmp fcn.00406941
Function at 0x10006089
Capabilities:
Resume thread

Disassembly:
push 0x10
mov eax, 0x10011324
call fcn.10010dbc
mov ebx, ecx
mov dword [ebp - 0x18], ebx
cmp byte [ebx + 4], 0
jne 0x100061ed
call dword [sym.imp.kernel32.dll_GetCurrentThreadId]
cmp eax, dword [ebx]
jne 0x100061ed
push 0x1000334a
push 0xd008
call fcn.100062eb
mov edi, eax
mov dword [ebp - 0x1c], edi
pop ecx
pop ecx
test edi, edi
je 0x100061e6
push 0xc000
xor ebx, ebx
push ebx
push edi
call fcn.1000ec20
add esp, 0xc
mov dword [edi + 0xc000], ebx
lea eax, [edi + 0xc004]
push 0x1000
push ebx
push eax
call fcn.1000ec20
add esp, 0xc
mov dword [edi + 0xd004], ebx
test edi, edi
je 0x100061e6
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
lea ecx, [ebp - 0x1c]
call fcn.100062eb
mov ecx, edi
mov dword [ebp - 4], ebx
call fcn.100062eb
mov esi, eax
push esi
push 0x10003028
mov dword [ebp - 0x10], esi
call fcn.100062eb
pop ecx
pop ecx
test esi, esi
jne 0x1000619a
mov ecx, edi
call fcn.100062eb
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x24]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x100061fa
mov eax, dword [eax]
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x10014250]
mov ecx, dword [ebp - 0x14]
call esi
call fcn.100062eb
test eax, eax
je 0x10006190
jg 0x10006175
mov esi, eax
mov dword [ebp - 0x10], eax
jmp 0x10006181
movzx esi, ax
or esi, 0x80070000
mov dword [ebp - 0x10], esi
push esi
push 0x10003050
call fcn.100062eb
pop ecx
pop ecx
jmp 0x1000619a
mov eax, dword [ebp - 0x18]
mov esi, dword [ebp - 0x10]
mov byte [eax + 4], 1
lea ecx, [ebp - 0x1c]
call fcn.1000704c
lea eax, [edi + 0xc000]
mov dword [ebp - 0x1c], eax
cmp dword [eax], ebx
jbe 0x100061ce
lea esi, [edi + 8]
test byte [esi - 4], 1
je 0x100061c3
push dword [esi]
call dword [sym.imp.kernel32.dll_ResumeThread]
mov eax, dword [ebp - 0x1c]
inc ebx
add esi, 0xc
cmp ebx, dword [eax]
jb 0x100061b2
mov esi, dword [ebp - 0x10]
mov ecx, edi
call fcn.100062eb
push 0xd008
push edi
call fcn.100062eb
pop ecx
pop ecx
mov eax, esi
jmp 0x100061f2
mov eax, 0x8007000e
jmp 0x100061f2
mov eax, 0x800710dd
call fcn.10010d85
ret 4
call fcn.100062eb
int3

Function at 0x100062eb
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
pushal
call 0x100062fa
pop dword [ebp - 8]
mov eax, 0x100062fa
sub dword [ebp - 8], eax
push 0x40
push 0x1000
push 0x382ac
push 0
mov eax, 0xd16060b7
add eax, 0x3ea0dfad
add eax, dword [ebp - 8]
call dword [eax]
mov ecx, 0x83b77a49
add ecx, 0x7c48ca4b
xor esi, esi
add esi, eax
mov edx, 0x51f15691
sub edx, 0x41efd091
add edx, dword [ebp - 8]
mov ebx, 0xc02c5c9d
sub ebx, 0x6e5254cc
xor dword [ebp - 4], esi
mov edi, dword [edx]
xor dword [ebp - 4], ebx
add edi, ebx
sub dword [ebp - 4], edx
mov dword [esi], edi
sub dword [ebp - 4], 0x8741fd4c
add esi, 4
add edx, 0xd1ce0f65
add edx, 0x2e31f09f
loop 0x10006356
add eax, 0x10523
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x497d6ac2
sub ecx, 0x397d6ac2
add ecx, dword [ebp - 8]
call ebx
leave
ret
Function at 0x4055c0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x46372b
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.00458653
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x405642
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0045640a
mov eax, dword [eax]
push 0x5141f0
push eax
call fcn.004490d4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.004588de
test bl, bl
je 0x405642
push 0x5141f0
lea ecx, [esp + 0xc]
call fcn.00458c6e
push 0x517d38
lea ecx, [esp + 0xc]
call fcn.00458c6e
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 0x40567e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.004588de
jmp 0x405749
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 0x405702
lea edx, [esp + 0x7c]
push 0x517d34
push edx
call fcn.004490d4
add esp, 8
test eax, eax
je 0x405702
lea eax, [esp + 0x7c]
push 0x517d30
push eax
call fcn.004490d4
add esp, 8
test eax, eax
je 0x405702
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 0x405692
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.004588de
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 0x405f40
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 0x405fa2
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 0x405fb0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x4637ab
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x51e25c]
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 0x4060e8
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x406016
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.004588de
xor eax, eax
jmp 0x40615f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.00458a1b
push esi
lea ecx, [esp + 0xc]
call fcn.00458caa
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 0x40613d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push closesocket
call fcn.00405f40
test eax, eax
jne 0x40613d
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.00405f40
test eax, eax
jne 0x40613d
lea eax, [esp + 0x14]
push 0x517d4c
push eax
call fcn.0044a110
mov esi, eax
add esp, 8
test esi, esi
jne 0x40611c
lea ecx, [esp + 0x14]
push 0x517d48
push ecx
call fcn.0044a090
mov esi, eax
add esp, 8
test esi, esi
jne 0x40611c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x40611f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.004589cb
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x40602e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.004588de
xor eax, eax
jmp 0x40615f
mov byte [esi], 0
push 0x517d44
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.004588de
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 0x416af0
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 0x416b5e
cmp si, 0x69
ja 0x416b5e
add esi, 0xffd0
cmp si, 0x11
je 0x416b2e
push 0x11
call edi
test ax, ax
jge 0x416b2e
or esi, 0x2000
cmp si, 0x10
je 0x416b43
push 0x10
call edi
test ax, ax
jge 0x416b43
or esi, 0x4000
cmp si, 0x12
je 0x416b58
push 0x12
call edi
test ax, ax
jge 0x416b58
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x416b6b
mov esi, 0xbd
jmp 0x416b1f
cmp si, 0x6e
jne 0x416b78
mov esi, 0xbe
jmp 0x416b1f
cmp si, 0x6f
jne 0x416b19
mov esi, 0xbf
jmp 0x416b1f

Function at 0x4181d0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x52e8a0]
xor edx, edx
cmp eax, edx
jne 0x4181f6
xor eax, eax
mov byte [eax + 0x52e7a0], al
inc eax
cmp eax, 0x100
jl 0x4181de
mov dword [0x52e8a0], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x52e7a0
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x418287
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 0x41825a
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 0x418228
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x418300
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 0x418353
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 0x41833a
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 0x41ed90
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 0x41ef28
cmp ebp, ebx
jle 0x41ef28
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 0x41edee
dec eax
or eax, 0xfffffff8
inc eax
je 0x41edf5
inc edi
mov dword [esp + 0x10], edi
mov ecx, edi
and ecx, reloc.WS2_32.dll_accept
jns 0x41ee04
dec ecx
or ecx, 0xfffffffe
inc ecx
je 0x41ee0b
inc edi
mov dword [esp + 0x10], edi
push 0x18
call fcn.0045861f
add esp, 4
cmp eax, ebx
je 0x41ee2c
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.0045861f
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 0x41ef1e
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 0x41ef05
mov al, byte [edx]
cmp al, 0xc0
jbe 0x41eef1
and eax, 0xff
sub eax, 0xc0
inc edx
mov esi, eax
mov dword [esp + 0x24], edx
cmp esi, 1
jle 0x41eee6
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 0x41eef4
mov al, byte [edx]
mov esi, dword [esp + 0x18]
mov byte [ebp], al
jmp 0x41eef4
mov byte [ebp], al
inc ebp
add ecx, 8
inc edx
cmp ecx, esi
mov dword [esp + 0x2c], ecx
jl 0x41ee90
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 0x41ee81
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