joyce8/EMBER2024-capa huggingface dataset:
Function at 0x58b368
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x14], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x58b517
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x14
mov eax, dword [ebp - 4]
mov ecx, 1
mov edx, dword [0x588fe0]
call fcn.00406654
add esp, 4
xor eax, eax
push ebp
push 0x58b4f0
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov edx, dword [ebp - 8]
lea eax, [eax + edx*8]
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x5a66d4]
call fcn.00404e14
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov edx, dword [ebp - 8]
lea eax, [eax + edx*8 + 4]
mov edx, 0xff
call fcn.0040540c
inc dword [ebp - 8]
cmp dword [ebp - 8], 0x14
jne 0x58b3b2
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
mov eax, dword [eax*4 + 0x5a6724]
push eax
push 0
call sub.shell32.dll_SHGetSpecialFolderLocation
test eax, eax
jne 0x58b42b
cmp dword [ebp - 0xc], 0
je 0x58b42b
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov edx, dword [ebp - 8]
mov eax, dword [eax + edx*8 + 4]
call fcn.00405280
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.shell32.dll_SHGetPathFromIDListA
inc dword [ebp - 8]
cmp dword [ebp - 8], 0x10
jne 0x58b3f0
push 0xff
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov eax, dword [eax + 0x84]
call fcn.00405280
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
push 0xff
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov eax, dword [eax + 0x8c]
call fcn.00405280
push eax
call sub.kernel32.dll_GetSystemDirectoryA
mov dl, 1
mov eax, dword [0x43c5e4]
call fcn.0043c720
mov dword [ebp - 0x10], eax
mov edx, 0x80000002
mov eax, dword [ebp - 0x10]
call fcn.0043c7fc
xor ecx, ecx
mov edx, 0x58b530
mov eax, dword [ebp - 0x10]
call fcn.0043c864
test al, al
je 0x58b4bb
lea ecx, [ebp - 0x14]
mov edx, 0x58b564
mov eax, dword [ebp - 0x10]
call fcn.0043cd70
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
mov eax, dword [eax]
add eax, 0x94
call fcn.00404e14
mov eax, dword [ebp - 0x10]
call fcn.0043c7cc
mov eax, dword [ebp - 0x10]
call fcn.00403f34
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov eax, dword [eax + 0x9c]
call fcn.00405280
push eax
push 0xff
call sub.kernel32.dll_GetTempPathA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x58b501
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x58b51e
lea eax, [ebp - 0x14]
call fcn.00404dc0
ret
Function at 0x58b574
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff40
xor edx, edx
mov dword [ebp - 0xc0], edx
mov dword [ebp - 0xbc], edx
mov dword [ebp - 0xb8], edx
mov dword [ebp - 0xb4], edx
mov dword [ebp - 0xb0], edx
mov dword [ebp - 0xac], edx
mov dword [ebp - 0xa8], edx
mov dword [ebp - 0xa4], edx
mov dword [ebp - 0xa0], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x58b7e0
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x43c5e4]
call fcn.0043c720
mov dword [ebp - 8], eax
mov edx, 0x80000002
mov eax, dword [ebp - 8]
call fcn.0043c7fc
mov eax, dword [0x5a6edc]
cmp dword [eax], 2
jne 0x58b5fd
xor ecx, ecx
mov edx, 0x58b7f4
mov eax, dword [ebp - 8]
call fcn.0043c864
jmp 0x58b60c
xor ecx, ecx
mov edx, 0x58b82c
mov eax, dword [ebp - 8]
call fcn.0043c864
lea ecx, [ebp - 0xa0]
mov edx, 0x58b860
mov eax, dword [ebp - 8]
call fcn.0043cd70
mov edx, dword [ebp - 0xa0]
mov eax, dword [ebp - 4]
add eax, 0x20
call fcn.00404e14
lea ecx, [ebp - 0xa4]
mov edx, 0x58b878
mov eax, dword [ebp - 8]
call fcn.0043cd70
mov edx, dword [ebp - 0xa4]
mov eax, dword [ebp - 4]
add eax, 0x1c
call fcn.00404e14
lea ecx, [ebp - 0xa8]
mov edx, 0x58b898
mov eax, dword [ebp - 8]
call fcn.0043cd70
mov edx, dword [ebp - 0xa8]
mov eax, dword [ebp - 4]
add eax, 0x10
call fcn.00404e14
lea ecx, [ebp - 0xac]
mov edx, 0x58b8ac
mov eax, dword [ebp - 8]
call fcn.0043cd70
mov edx, dword [ebp - 0xac]
mov eax, dword [ebp - 4]
add eax, 0x14
call fcn.00404e14
lea ecx, [ebp - 0xb0]
mov edx, 0x58b8c0
mov eax, dword [ebp - 8]
call fcn.0043cd70
mov edx, dword [ebp - 0xb0]
mov eax, dword [ebp - 4]
add eax, 0x18
call fcn.00404e14
mov eax, dword [ebp - 8]
call fcn.0043c7cc
mov eax, dword [ebp - 8]
call fcn.00403f34
mov dword [ebp - 0x9c], 0x94
lea eax, [ebp - 0x9c]
push eax
call sub.kernel32.dll_GetVersionExA
mov eax, dword [ebp - 4]
add eax, 0xc
lea edx, [ebp - 0x88]
mov ecx, 0x80
call fcn.00405030
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x90]
mov dword [eax + 0x24], edx
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x8c]
mov dword [eax + 0x28], edx
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x98]
mov dword [eax + 0x2c], edx
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x94]
mov dword [eax + 0x30], edx
call fcn.0058b8d0
mov edx, dword [ebp - 4]
mov dword [edx], eax
call fcn.0058b8d0
lea edx, [ebp - 0xb4]
call fcn.0058bab0
mov edx, dword [ebp - 0xb4]
mov eax, dword [ebp - 4]
add eax, 4
call fcn.00404e14
lea eax, [ebp - 0xb8]
call fcn.0058bd84
mov edx, dword [ebp - 0xb8]
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404e14
lea eax, [ebp - 0xbc]
call fcn.0058bdcc
mov edx, dword [ebp - 0xbc]
mov eax, dword [ebp - 4]
add eax, 0x34
call fcn.00404e14
lea eax, [ebp - 0xc0]
call fcn.0058b368
mov edx, dword [ebp - 0xc0]
mov eax, dword [ebp - 4]
add eax, 8
mov ecx, dword [0x588fe0]
call fcn.0040679c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x58b7e7
lea eax, [ebp - 0xc0]
mov edx, dword [0x588fe0]
call fcn.00406760
lea eax, [ebp - 0xbc]
mov edx, 8
call fcn.00404de4
ret
Function at 0x58b8d0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff64
xor eax, eax
mov dword [ebp - 0x9c], eax
xor eax, eax
push ebp
push 0x58ba8a
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x5a6764], 0
jne 0x58ba69
mov dword [ebp - 0x98], 0x94
lea eax, [ebp - 0x98]
push eax
call sub.kernel32.dll_GetVersionExA
mov eax, dword [ebp - 0x88]
sub eax, 1
jb 0x58ba56
je 0x58b9c6
dec eax
jne 0x58ba62
mov eax, dword [ebp - 0x94]
sub eax, 4
jb 0x58b93d
je 0x58b94c
jmp 0x58b992
mov dword [0x5a6764], 7
jmp 0x58ba69
lea eax, [ebp - 0x9c]
lea edx, [ebp - 0x84]
mov ecx, 0x80
call fcn.00405030
mov eax, dword [ebp - 0x9c]
mov edx, 0x58baa0
call fcn.004051cc
jne 0x58b983
mov dword [0x5a6764], 9
jmp 0x58ba69
mov dword [0x5a6764], 8
jmp 0x58ba69
cmp dword [ebp - 0x94], 5
jb 0x58ba69
cmp dword [ebp - 0x90], 0
jbe 0x58b9b7
mov dword [0x5a6764], 0x11
jmp 0x58ba69
mov dword [0x5a6764], 0x10
jmp 0x58ba69
cmp dword [ebp - 0x94], 4
jne 0x58b9fc
cmp dword [ebp - 0x90], 0
jne 0x58b9fc
cmp dword [ebp - 0x8c], 0x3e8
jbe 0x58b9f0
mov dword [0x5a6764], 3
jmp 0x58ba69
mov dword [0x5a6764], 2
jmp 0x58ba69
cmp dword [ebp - 0x94], 4
jne 0x58ba2f
cmp dword [ebp - 0x90], 0xa
jne 0x58ba2f
cmp byte [ebp - 0x83], 0x41
jne 0x58ba23
mov dword [0x5a6764], 5
jmp 0x58ba69
mov dword [0x5a6764], 4
jmp 0x58ba69
cmp dword [ebp - 0x94], 4
jne 0x58ba4d
cmp dword [ebp - 0x90], 0x5a
jne 0x58ba4d
mov dword [0x5a6764], 6
jmp 0x58ba69
xor eax, eax
mov dword [0x5a6764], eax
jmp 0x58ba69
mov dword [0x5a6764], 1
jmp 0x58ba69
xor eax, eax
mov dword [0x5a6764], eax
mov eax, dword [0x5a6764]
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x58ba91
lea eax, [ebp - 0x9c]
call fcn.00404dc0
ret

Function at 0x58bd84
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404dc0
mov dword [ebp - 8], 0xfd
mov eax, dword [ebp - 4]
mov edx, 0xfe
call fcn.0040540c
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.00405280
push eax
call sub.advapi32.dll_GetUserNameA
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
call fcn.0040540c
pop ecx
pop ecx
pop ebp
ret

Function at 0x58c304
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe6c
push 0x58c3a0
call sub.kernel32.dll_GetModuleHandleA_2
mov dword [ebp - 4], eax
push 0x58c3b0
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x5a6894], eax
push 0x58c3d4
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x5a6898], eax
cmp dword [0x5a6894], 0
je 0x58c359
cmp dword [0x5a6898], 0
je 0x58c359
mov byte [0x5a6890], 1
lea eax, [ebp - 0x194]
push eax
push 0x101
call sub.wsock32.dll_WSAStartup
test eax, eax
je 0x58c399
mov eax, dword [0x5a6b84]
mov eax, dword [eax]
mov eax, dword [eax + 0x674]
xor edx, edx
mov ecx, dword [eax]
call dword [ecx + 0x128]
mov eax, dword [0x5a6b84]
mov eax, dword [eax]
mov eax, dword [eax + 0x674]
xor edx, edx
mov ecx, dword [eax]
call dword [ecx + 0x64]
mov esp, ebp
pop ebp
ret
Function at 0x58d628
Capabilities:
Set tcp connection state

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x58d65a
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov dword [eax], 0xc
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
push eax
call sub.iphlpapi.dll_SetTcpEntry
call fcn.0058c3f8
mov eax, dword [ebp - 4]
call fcn.0044a0f4
pop ecx
pop ebp
ret

Function at 0x58d6e0
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0xc], ecx
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x58d7e7
push dword fs:[eax]
mov dword fs:[eax], esp
push ebp
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 4]
call fcn.0058d660
pop ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp + 8]
call fcn.00404e14
mov eax, dword [0x5a6b84]
mov eax, dword [eax]
mov eax, dword [eax + 0x674]
mov edx, dword [eax]
call dword [edx + 0x124]
test al, al
je 0x58d7d1
push pe_nt_image_headers32
push 0x5a86e0
call sub.wsock32.dll_gethostname
cmp dword [ebp - 4], 0
sete al
or al, byte [ebp - 5]
je 0x58d767
mov eax, dword [ebp + 8]
mov edx, 0x5a86e0
mov ecx, pe_nt_image_headers32
call fcn.00405030
jmp 0x58d7d1
cmp dword [ebp - 4], 0x100007f
jne 0x58d77f
mov eax, dword [ebp + 8]
mov edx, 0x58d800
call fcn.00404e14
jmp 0x58d7d1
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x14], 0
jne 0x58d7b6
push 0x400
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x18]
push eax
push 2
push 4
lea eax, [ebp - 4]
push eax
push 0x402
push 0
call sub.wsock32.dll_WSAAsyncGetHostByAddr
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x14], eax
jmp 0x58d7d1
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x18]
cmp dword [eax], 0
je 0x58d7d1
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
mov edx, dword [edx + 0x18]
mov edx, dword [edx]
call fcn.00404fb8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x58d7ee
lea eax, [ebp - 0x14]
call fcn.00404dc0
ret
Function at 0x58da98
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
call fcn.00405270
xor eax, eax
push ebp
push 0x58dbf6
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 1
push 2
call sub.ws2_32.dll_socket
mov edx, dword [ebp - 4]
mov dword [edx + 4], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0xffffffff
jne 0x58daf4
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x10], edx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.ws2_32.dll_closesocket
mov byte [ebp - 0xd], 0
jmp 0x58dbe0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov edx, dword [ebp - 4]
mov dword [edx + 0x10], eax
mov eax, dword [ebp - 4]
imul eax, dword [eax + 0x1c], 0x3e8
mov dword [ebp - 0x14], eax
push 4
lea eax, [ebp - 0x14]
push eax
push 0x1005
push 0xffff
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
push eax
call sub.ws2_32.dll_setsockopt
mov dword [ebp - 0x18], eax
push 4
lea eax, [ebp - 0x14]
push eax
push 0x1006
push 0xffff
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
push eax
call sub.ws2_32.dll_setsockopt
mov dword [ebp - 0x18], eax
push 4
lea eax, [ebp - 0x14]
push eax
push 0x80
push 0xffff
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
push eax
call sub.ws2_32.dll_setsockopt
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 8]
call fcn.00405280
push eax
call sub.ws2_32.dll_inet_addr
mov dword [ebp - 0x24], eax
mov word [ebp - 0x28], 2
mov ax, word [ebp - 0xc]
push eax
call sub.ws2_32.dll_htons_1
mov word [ebp - 0x26], ax
push 0x10
lea eax, [ebp - 0x28]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
push eax
call sub.ws2_32.dll_connect
mov edx, dword [ebp - 4]
mov dword [edx + 4], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
je 0x58dbc9
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
push eax
call sub.ws2_32.dll_closesocket
mov byte [ebp - 0xd], 0
mov eax, dword [ebp - 4]
mov byte [eax + 8], 0
jmp 0x58dbe0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
mov edx, dword [ebp - 4]
mov dword [edx + 0xc], eax
mov eax, dword [ebp - 4]
mov byte [eax + 8], 1
mov byte [ebp - 0xd], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x58dbfd
lea eax, [ebp - 8]
call fcn.00404dc0
ret
Function at 0x59e75c
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf8
xor edx, edx
mov dword [ebp - 0x208], edx
mov dword [ebp - 0x1f8], edx
mov dword [ebp - 0x200], edx
mov dword [ebp - 0x204], edx
mov dword [ebp - 0x1fc], edx
mov dword [ebp - 0x1f0], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x59e92e
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0x59e93c
push 0x59e944
push 0
call sub.user32.dll_MessageBoxA_1
call fcn.00587d7c
mov eax, dword [0x5a6ebc]
mov eax, dword [eax]
mov dx, 0xfff5
call fcn.00484650
xor eax, eax
push ebp
push 0x59e8c4
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov byte [eax + 0x73c], 1
mov eax, dword [ebp - 4]
mov byte [eax + 0x73d], 1
mov eax, dword [ebp - 4]
mov byte [eax + 0x73e], 1
lea edx, [ebp - 0x1fc]
xor eax, eax
call fcn.00402ef8
mov eax, dword [ebp - 0x1fc]
lea edx, [ebp - 0x1f8]
call fcn.0040acf8
push dword [ebp - 0x1f8]
push 0x59e980
call fcn.0040c82c
add esp, 0xfffffff8
fstp qword [esp]
wait
lea edx, [ebp - 0x200]
mov eax, 0x59e998
call fcn.0040d4d4
push dword [ebp - 0x200]
call fcn.0040c7f8
add esp, 0xfffffff8
fstp qword [esp]
wait
lea edx, [ebp - 0x204]
mov eax, 0x59e9b4
call fcn.0040d4d4
push dword [ebp - 0x204]
push 0x59e9cc
mov eax, 0x5a8804
mov edx, 5
call fcn.00405140
lea eax, [ebp - 0x10]
push eax
push 0
push 0x5a8804
push 0x59e408
push 0
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [ebp - 0xc], eax
push 0xffffffffffffffff
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_WaitForSingleObject
mov dword [ebp - 0x14], eax
mov eax, dword [0x5a8804]
call fcn.0040ab00
mov byte [ebp - 5], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x59e8cb
mov eax, dword [0x5a6ebc]
mov eax, dword [eax]
xor edx, edx
call fcn.00484650
ret
Function at 0x42f5f0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x4962bb
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.00488c7f
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x42f672
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.004866fd
mov eax, dword [eax]
push 0x6111f4
push eax
call fcn.004793c4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.00488f0a
test bl, bl
je 0x42f672
push 0x6111f4
lea ecx, [esp + 0xc]
call fcn.004892e6
push 0x614d78
lea ecx, [esp + 0xc]
call fcn.004892e6
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 0x42f6ae
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.00488f0a
jmp 0x42f779
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 0x42f732
lea edx, [esp + 0x7c]
push 0x614d74
push edx
call fcn.004793c4
add esp, 8
test eax, eax
je 0x42f732
lea eax, [esp + 0x7c]
push 0x614d70
push eax
call fcn.004793c4
add esp, 8
test eax, eax
je 0x42f732
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 0x42f6c2
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.00488f0a
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 0x42ff70
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 0x42ffd2
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 0x42ffe0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x49633b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x61bcc0]
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 0x430118
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x430046
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00488f0a
xor eax, eax
jmp 0x43018f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.00489093
push esi
lea ecx, [esp + 0xc]
call fcn.00489322
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 0x43016d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push SysReAllocString
call fcn.0042ff70
test eax, eax
jne 0x43016d
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 SysReAllocString
mov ecx, edi
call fcn.0042ff70
test eax, eax
jne 0x43016d
lea eax, [esp + 0x14]
push 0x614d8c
push eax
call fcn.0047a570
mov esi, eax
add esp, 8
test esi, esi
jne 0x43014c
lea ecx, [esp + 0x14]
push 0x614d88
push ecx
call fcn.0047a4f0
mov esi, eax
add esp, 8
test esi, esi
jne 0x43014c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x43014f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.00489043
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x43005e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00488f0a
xor eax, eax
jmp 0x43018f
mov byte [esi], 0
push 0x614d84
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.00488f0a
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 0x440ba0
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 0x440c0e
cmp si, 0x69
ja 0x440c0e
add esi, 0xffd0
cmp si, 0x11
je 0x440bde
push 0x11
call edi
test ax, ax
jge 0x440bde
or esi, 0x2000
cmp si, 0x10
je 0x440bf3
push 0x10
call edi
test ax, ax
jge 0x440bf3
or esi, 0x4000
cmp si, 0x12
je 0x440c08
push 0x12
call edi
test ax, ax
jge 0x440c08
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x440c1b
mov esi, 0xbd
jmp 0x440bcf
cmp si, 0x6e
jne 0x440c28
mov esi, 0xbe
jmp 0x440bcf
cmp si, 0x6f
jne 0x440bc9
mov esi, 0xbf
jmp 0x440bcf

Function at 0x4423d0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x62cab0]
xor edx, edx
cmp eax, edx
jne 0x4423f6
xor eax, eax
mov byte [eax + 0x62c9b0], al
inc eax
cmp eax, 0x100
jl 0x4423de
mov dword [0x62cab0], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x62c9b0
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x442487
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 0x44245a
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 0x442428
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x442500
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 0x442553
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 0x44253a
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