joyce8/EMBER2024-capa huggingface dataset:
Function at 0x62e2c8
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
mov esi, dword [ebp + 8]
mov esi, dword [esi - 8]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x30]
push eax
mov eax, dword [ebp + 8]
movzx ecx, byte [eax + 0x10]
mov eax, dword [ebp + 8]
movzx edx, byte [eax + 0x38]
mov eax, dword [ebp + 8]
movzx eax, byte [eax - 1]
call fcn.0062eb1c
mov ebx, eax
mov dl, 1
mov eax, dword [0x43530c]
call fcn.0043c39c
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x62e41b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x34]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 8]
mov edx, dword [esi + 0xc]
sub edx, dword [esi + 4]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov edx, dword [esi + 8]
sub edx, dword [esi]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x40]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x34]
mov edx, dword [eax]
call dword [edx + 0x2c]
mov edx, dword [ebp + 8]
mov ecx, dword [edx + 0x30]
cdq
idiv ecx
imul ebx
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x2c]
add eax, dword [ebp - 0x14]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x34]
mov edx, dword [eax]
call dword [edx + 0x20]
mov ebx, eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x20]
sub ebx, eax
sar ebx, 1
jns 0x62e384
adc ebx, 0
mov dword [ebp - 0x10], ebx
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x20]
add eax, dword [ebp - 0x10]
mov dword [ebp - 8], eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x20]
push eax
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x2c]
mov ecx, eax
xor edx, edx
xor eax, eax
call fcn.00421f88
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x34]
call fcn.0043c970
push eax
mov eax, dword [ebp - 4]
call fcn.0043c970
pop ecx
pop edx
call fcn.004373c0
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp + 8]
cmp byte [eax + 0x38], 3
setne al
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x20]
call fcn.00435ea0
push eax
push 0
mov ecx, dword [esi + 4]
mov edx, dword [esi]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
call fcn.005ee72c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x62e422
mov eax, dword [ebp - 4]
call fcn.00404314
ret
Function at 0x763cd0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x20c000]
mov dword [edi + 0x24e794], 0x3f480c53
push edi
or ebp, 0xffffffff
jmp 0x763cfa
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x763d01
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x763cf0
mov eax, 1
add ebx, ebx
jne 0x763d13
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x763d24
jne 0x763d43
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x763d43
dec eax
add ebx, ebx
jne 0x763d30
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x763d08
add ebx, ebx
jne 0x763d3f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x763d95
xor ecx, ecx
sub eax, 3
jb 0x763d5b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x763dca
sar eax, 1
mov ebp, eax
jmp 0x763d66
add ebx, ebx
jne 0x763d66
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x763d34
inc ecx
add ebx, ebx
jne 0x763d74
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x763d34
add ebx, ebx
jne 0x763d81
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x763d76
jne 0x763d92
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x763d76
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x763db4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x763da6
jmp 0x763cf6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x763db4
add edi, ecx
jmp 0x763cf6
pop esi
mov edi, esi
mov ecx, 0x11bf5
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x763dd2
cmp byte [edi], 0x96
jne 0x763dd2
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x763dd7
lea edi, [esi + 0x35f000]
mov eax, dword [edi]
or eax, eax
je 0x763e46
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x36924c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x3693a0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x763e04
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x3693a4]
or eax, eax
je 0x763e40
mov dword [ebx], eax
add ebx, 4
jmp 0x763e21
call dword [esi + 0x3693b4]
mov ebp, dword [esi + 0x3693a8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x763e7a
sub esp, 0xffffff80
jmp fcn.0064e1c4
Function at 0x401b72
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x190
and word [ebp - 0x190], 0
push edi
push 0x63
xor eax, eax
pop ecx
lea edi, [ebp - 0x18e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x190]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
pop edi
je 0x401bc5
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.sock_envir_init_error__error_num:
push str._s_d_n
call fcn.00401598
add esp, 0xc
jmp 0x401bf0
cmp byte [ebp - 0x190], 2
jne 0x401bdf
xor eax, eax
mov al, byte [ebp - 0x18f]
cmp al, 2
jne 0x401bdf
push 1
pop eax
leave
ret
push 0x404174
call fcn.00401598
pop ecx
call dword [sym.imp.WS2_32.dll_WSACleanup]
or eax, 0xffffffff
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
push edi
push 0x40
xor ebx, ebx
pop ecx
xor eax, eax
lea edi, [ebp - 0x10b]
mov byte [ebp - 0x10c], bl
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x10c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x401d5c
push ebx
push 0x80
push 3
push ebx
push 1
lea eax, [ebp - 0x10c]
push bind
push eax
call dword [0x4047f0]
mov esi, eax
cmp esi, 0xffffffff
mov dword [ebp - 4], esi
je 0x401d5c
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push ebx
add eax, 0xffffff44
push ebx
push eax
push esi
call dword [0x4047e8]
cmp eax, 0xffffffff
jne 0x401d29
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x401d79
mov esi, 0xbc
mov edi, 0x404828
push esi
push ebx
push edi
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 8]
push ebx
push eax
push esi
push edi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 8], esi
je 0x401d61
or eax, 0xffffffff
jmp 0x401d79
push 1
push edi
push 0xac
push 0x404838
call fcn.00401815
add esp, 0x10
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x401f42
Capabilities:
Get common file path
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push ebx
push esi
push edi
lea eax, [ebp - 0x104]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [ebp - 0x104]
push str.Proxy
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push dword [ebp + 0xc]
mov edi, dword [ebp + 8]
xor ebx, ebx
push ebx
push edi
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x104]
push ebx
push ebx
push 3
push ebx
push 2
push bind
push eax
call dword [0x4047f0]
mov esi, eax
cmp esi, 0xffffffff
je 0x401fde
lea eax, [ebp + 8]
push ebx
push eax
mov dword [ebp + 8], ebx
push dword [ebp + 0xc]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 8]
mov cl, byte [eax + edi - 1]
dec eax
cmp cl, 0xd
je 0x401fd0
cmp cl, 0xa
jne 0x401fd9
cmp eax, ebx
jl 0x401fd9
mov byte [eax + edi], bl
jmp 0x401fc1
push 1
pop eax
jmp 0x401fe0
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4021b1
Capabilities:
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push esi
push edi
lea eax, [ebp - 0x108]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [ebp - 0x108]
push str.Proxy
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x108]
push 0x404234
push eax
call sub.MSVCRT.dll_fopen
xor esi, esi
pop ecx
cmp eax, esi
pop ecx
jne 0x402241
push esi
push esi
push 4
push esi
push 2
lea eax, [ebp - 0x108]
push 0x40000000
push eax
call dword [0x4047f0]
mov edi, eax
cmp edi, 0xffffffff
je 0x402248
lea eax, [ebp - 4]
push esi
push eax
mov dword [ebp - 4], esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 1
pop eax
jmp 0x40224a
push eax
call sub.MSVCRT.dll_fclose
pop ecx
xor eax, eax
pop edi
pop esi
leave
ret

Function at 0x40224e
Capabilities:
Initialize winhttp library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push esi
push edi
xor esi, esi
push 0x18
lea eax, [ebp - 0x2c]
push esi
push eax
mov dword [ebp - 4], esi
call sub.MSVCRT.dll_memset
push 0xc
lea eax, [ebp - 0x14]
push esi
push eax
call sub.MSVCRT.dll_memset
add esp, 0x18
push esi
push esi
push esi
push 1
pop edi
push edi
push str.WinHTTP_AutoProxy
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
cmp eax, esi
mov dword [ebp - 8], eax
jne 0x4022a6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.WinHttpOpen_failed.Error:_d
call fcn.00401598
pop ecx
xor eax, eax
pop ecx
jmp 0x40231c
lea ecx, [ebp - 0x14]
push ebx
mov ebx, dword [ebp + 8]
push ecx
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x2c], 2
push ecx
push str.http:__www.microsoft.com_
push eax
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x18], edi
call dword [sym.imp.WINHTTP.dll_WinHttpGetProxyForUrl]
test eax, eax
je 0x4022e9
push esi
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 4], edi
jmp 0x40230f
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0x2ee6
jne 0x402300
push ebx
push str._S_Url_unvalid_not_http:___
jmp 0x402308
call esi
push eax
push str.WinHttpGetProxyForUrl_failed.Error:_d
call fcn.00401598
pop ecx
pop ecx
push dword [ebp - 8]
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov eax, dword [ebp - 4]
pop ebx
pop edi
pop esi
leave
ret
Function at 0x402395
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket

Disassembly:
sub esp, 0x14
or dword [esp], 0xffffffff
push ebx
push ebp
push esi
push edi
xor ebp, ebp
push 0x10
lea eax, [esp + 0x18]
push ebp
mov esi, ecx
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
cmp dword [0x404800], ebp
mov word [esp + 0x14], 2
jle 0x402476
mov ebx, 0x404804
mov edi, 0x40481c
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [esi + 4], eax
je 0x402450
mov ax, word [edi]
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x16], ax
mov eax, dword [ebx]
mov dword [esp + 0x18], eax
lea eax, [esp + 0x14]
push 0x10
push eax
push dword [esi + 4]
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x40246e
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x274d
je 0x402437
cmp eax, 0x2751
je 0x402437
push eax
push str.localtoproxy_sock
push str._s_d_n
call fcn.00401598
add esp, 0xc
push dword [esi + 4]
call dword [sym.imp.WS2_32.dll_closesocket]
inc ebp
inc edi
inc edi
add ebx, 4
cmp ebp, dword [0x404800]
jl 0x4023d2
jmp 0x402476
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.localtoproxy_sock_create_error__error_num:
push str._s_d_n
call fcn.00401598
add esp, 0xc
or eax, 0xffffffff
jmp 0x40247a
mov dword [esp + 0x10], 1
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret

Function at 0x402482
Capabilities:
Send data
Send data on socket
Send http request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
and byte [ebp - 0x12c], 0
push ebx
push esi
push edi
mov ebx, ecx
push 0x4a
pop ecx
xor eax, eax
lea edi, [ebp - 0x12b]
push 1
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, dword [ebp + 8]
mov ecx, ebx
mov eax, edi
shl eax, 6
add eax, 0x40483a
push eax
call fcn.00402634
mov ecx, edi
push eax
shl ecx, 4
lea esi, [ecx + 0x4048ba]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
push esi
call sub.MSVCRT.dll_strcpy
push esi
call sub.MSVCRT.dll_strlen
add esp, 0xc
test eax, eax
je 0x40255a
push str.0.0.0.0
push esi
call sub.MSVCRT.dll_strcmp
pop ecx
test eax, eax
pop ecx
je 0x40255a
movzx eax, word [edi*2 + 0x4048da]
push eax
push esi
lea eax, [ebp - 0x12c]
push str.CONNECT__s:_d_HTTP_1.1_r_nUser_Agent:_Mozilla_4.0__compatible__MSIE_6.0.1.3__Windows_NT_5.0.3__r_nPragma:_no_cache__r_n_r_n
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp - 0x12c]
push eax
call sub.MSVCRT.dll_strlen
add esp, 0x14
push 0
push eax
lea eax, [ebp - 0x12c]
push eax
push dword [ebx + 4]
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x40255f
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.send_con_info_failed__error_num:
push str._s_d_n
call fcn.00401598
add esp, 0xc
push dword [ebx + 4]
call dword [sym.imp.WS2_32.dll_closesocket]
or eax, 0xffffffff
jmp 0x402562
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x40f180
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40f1ad
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40f1ad
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x8ccbab
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x8cc92e
add edi, edi
or ebx, edi
call fcn.008ccbe4
add ebx, 0x6c3a0143
xor dword [ecx], eax
add ebx, 0x9b75e244
inc ecx
sub ebx, edi
cmp ecx, edx
jne fcn.008ccbab
or ebx, edi
sub edi, ebx
or edi, edi
ret
Function at 0x405a80
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x47b29b
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.004701c6
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x405b02
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0046df40
mov eax, dword [eax]
push 0x8c3c48
push eax
call fcn.00460c54
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.00470451
test bl, bl
je 0x405b02
push 0x8c3c48
lea ecx, [esp + 0xc]
call fcn.004707e1
push 0x8c3c54
lea ecx, [esp + 0xc]
call fcn.004707e1
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 0x405b3e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.00470451
jmp 0x405c09
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 0x405bc2
lea edx, [esp + 0x7c]
push 0x8c3c50
push edx
call fcn.00460c54
add esp, 8
test eax, eax
je 0x405bc2
lea eax, [esp + 0x7c]
push 0x8c3c4c
push eax
call fcn.00460c54
add esp, 8
test eax, eax
je 0x405bc2
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 0x405b52
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.00470451
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 0x406410
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 0x406472
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 0x406480
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x47b31b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x8cd5d8]
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 0x4065b8
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x4064e6
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00470451
xor eax, eax
jmp 0x40662f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.0047058e
push esi
lea ecx, [esp + 0xc]
call fcn.0047081d
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 0x40660d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push accept
call fcn.00406410
test eax, eax
jne 0x40660d
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 accept
mov ecx, edi
call fcn.00406410
test eax, eax
jne 0x40660d
lea eax, [esp + 0x14]
push 0x8c3c64
push eax
call fcn.00461cd0
mov esi, eax
add esp, 8
test esi, esi
jne 0x4065ec
lea ecx, [esp + 0x14]
push 0x8c3c60
push ecx
call fcn.00461c50
mov esi, eax
add esp, 8
test esi, esi
jne 0x4065ec
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x4065ef
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.0047053e
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x4064fe
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00470451
xor eax, eax
jmp 0x40662f
mov byte [esi], 0
push 0x8c3c5c
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.00470451
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 0x4172e0
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 0x41734e
cmp si, 0x69
ja 0x41734e
add esi, 0xffd0
cmp si, 0x11
je 0x41731e
push 0x11
call edi
test ax, ax
jge 0x41731e
or esi, 0x2000
cmp si, 0x10
je 0x417333
push 0x10
call edi
test ax, ax
jge 0x417333
or esi, 0x4000
cmp si, 0x12
je 0x417348
push 0x12
call edi
test ax, ax
jge 0x417348
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x41735b
mov esi, 0xbd
jmp 0x41730f
cmp si, 0x6e
jne 0x417368
mov esi, 0xbe
jmp 0x41730f
cmp si, 0x6f
jne 0x417309
mov esi, 0xbf
jmp 0x41730f

Function at 0x418b60
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x8ddd20]
xor edx, edx
cmp eax, edx
jne 0x418b86
xor eax, eax
mov byte [eax + 0x8ddc20], al
inc eax
cmp eax, 0x100
jl 0x418b6e
mov dword [0x8ddd20], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x8ddc20
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x418c17
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 0x418bea
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 0x418bb8
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x418c90
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 0x418ce3
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 0x418cca
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