joyce8/EMBER2024-capa huggingface dataset:
Function at 0x453d50
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov dword [ebp - 4], edx
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
call fcn.00404630
add eax, 2
mov ecx, 3
cdq
idiv ecx
shl eax, 2
mov edx, dword [ebp - 4]
xchg edx, eax
call fcn.004049bc
push esi
push edi
push ebx
lea ebx, [0x464170]
inc ebx
mov edi, dword [ebp - 4]
mov edi, dword [edi]
mov esi, dword [ebp - 8]
mov edx, dword [esi - 4]
cmp edx, 0
jle 0x453de9
mov al, byte [esi]
shr al, 2
xlatb
mov byte [edi], al
inc edi
mov al, byte [esi + 1]
mov ah, byte [esi]
shr ax, 4
and al, 0x3f
xlatb
mov byte [edi], al
inc edi
cmp edx, 1
jne 0x453dbc
mov al, 0x3d
mov byte [edi], al
inc edi
mov byte [edi], al
inc edi
jmp 0x453de9
mov al, byte [esi + 2]
mov ah, byte [esi + 1]
shr ax, 6
and al, 0x3f
xlatb
mov byte [edi], al
inc edi
cmp edx, 2
jne 0x453dd8
mov al, 0x3d
mov byte [edi], al
inc edi
jmp 0x453de9
mov al, byte [esi + 2]
and al, 0x3f
xlatb
mov byte [edi], al
inc edi
add esi, 3
sub edx, 3
jmp 0x453d90
pop ebx
pop edi
pop esi
pop ecx
pop ecx
pop ebp
ret
Function at 0x454724
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 4
push 0
push 0
dec ecx
jne 0x45472d
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov byte [ebp - 5], cl
mov esi, edx
mov dword [ebp - 4], eax
mov ebx, dword [ebp + 8]
xor eax, eax
push ebp
push 0x4548d1
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00454a6c
xor eax, eax
push ebp
push 0x4548af
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
test byte [eax + 0x1c], 8
je 0x45477c
call fcn.00403e58
jmp 0x4548b6
mov eax, dword [ebp - 4]
test byte [eax + 0x30], 8
je 0x45483e
mov eax, dword [ebp - 4]
test byte [eax + 0x30], 1
je 0x4547cc
mov eax, dword [ebp - 4]
cmp word [eax + 0x3a], 0
je 0x4547cc
lea eax, [ebp - 0x10]
call fcn.004544f4
push dword [ebp - 0x10]
push 0x4548ec
push ebx
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.004046f0
mov eax, dword [ebp - 0xc]
push eax
mov edi, dword [ebp - 4]
mov cl, byte [ebp - 5]
mov edx, esi
mov eax, dword [edi + 0x3c]
call dword [edi + 0x38]
mov eax, dword [ebp - 4]
test byte [eax + 0x30], 4
je 0x454801
lea eax, [ebp - 0x18]
call fcn.004544f4
push dword [ebp - 0x18]
push 0x4548ec
push ebx
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.004046f0
mov eax, dword [ebp - 0x14]
call fcn.00404830
push eax
call sub.kernel32.dll_OutputDebugStringA
mov eax, dword [ebp - 4]
test byte [eax + 0x30], 2
je 0x454899
lea eax, [ebp - 0x20]
call fcn.004544f4
push dword [ebp - 0x20]
push 0x4548ec
push ebx
push 0x4548f8
lea eax, [ebp - 0x1c]
mov edx, 4
call fcn.004046f0
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 4]
call fcn.004546f4
jmp 0x454899
mov eax, dword [ebp - 4]
test byte [eax + 0x30], 1
je 0x454860
mov eax, dword [ebp - 4]
cmp word [eax + 0x3a], 0
je 0x454860
push ebx
mov edi, dword [ebp - 4]
mov cl, byte [ebp - 5]
mov edx, esi
mov eax, dword [edi + 0x3c]
call dword [edi + 0x38]
mov eax, dword [ebp - 4]
test byte [eax + 0x30], 4
je 0x454876
mov eax, ebx
call fcn.00404830
push eax
call sub.kernel32.dll_OutputDebugStringA
mov eax, dword [ebp - 4]
test byte [eax + 0x30], 2
je 0x454899
lea eax, [ebp - 0x24]
mov ecx, 0x4548f8
mov edx, ebx
call fcn.0040467c
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 4]
call fcn.004546f4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4548b6
mov eax, dword [ebp - 4]
call fcn.00454a78
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4548d8
lea eax, [ebp - 0x24]
mov edx, 7
call fcn.00404394
ret
Function at 0x45f418
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
xor eax, eax
mov dword [ebp - 0x1c], eax
xor eax, eax
push ebp
push 0x45f4a1
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x465e5c
push 0x101
call sub.wsock32.dll_WSAStartup
mov ebx, eax
test ebx, ebx
je 0x45f48b
lea edx, [ebp - 0x1c]
mov eax, ebx
call fcn.0040b2a8
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x14], 0xb
mov dword [ebp - 0x10], ebx
mov byte [ebp - 0xc], 0
mov eax, 0x45f4b8
mov dword [ebp - 8], eax
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0x18]
push eax
push 2
mov ecx, dword [0x4645e4]
mov dl, 1
mov eax, dword [0x45ec1c]
call fcn.0040bbcc
call fcn.00403dac
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45f4a8
lea eax, [ebp - 0x1c]
call fcn.00404370
ret

Function at 0x45fb48
Capabilities:
Connect socket

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, ebx
call fcn.0045fa6c
mov cl, 1
mov edx, ebx
mov eax, ebx
mov si, 0xffff
call fcn.00403834
push 0x10
lea eax, [ebx + 0x18]
push eax
mov eax, dword [ebx + 4]
push eax
call sub.wsock32.dll_connect
mov edx, 0x45fbac
call fcn.0045f360
mov byte [ebx + 0x29], 0
test byte [ebx + 0x28], 0x10
jne 0x45fb9e
cmp dword [ebx + 4], 0xffffffff
setne al
mov byte [ebx + 8], al
mov cl, 2
mov edx, ebx
mov eax, ebx
mov si, 0xffff
call fcn.00403834
pop esi
pop ebx
ret

Function at 0x45fbd0
Capabilities:
Resolve dns

Disassembly:
push ebx
add esp, 0xfffffff8
mov ebx, edx
mov eax, ebx
call fcn.00404830
push eax
call sub.wsock32.dll_gethostbyname
mov ebx, eax
lea eax, [esp + 4]
xor ecx, ecx
mov edx, 4
call fcn.00402e70
test ebx, ebx
je 0x45fc1b
mov eax, ebx
mov edx, dword [eax + 0xc]
mov edx, dword [edx]
mov cl, byte [edx]
mov byte [esp + 4], cl
mov cl, byte [edx + 1]
mov byte [esp + 5], cl
mov cl, byte [edx + 2]
mov byte [esp + 6], cl
mov al, byte [edx + 3]
mov byte [esp + 7], al
mov eax, dword [esp + 4]
mov dword [esp], eax
mov eax, dword [esp]
pop ecx
pop edx
pop ebx
ret
Function at 0x45fcf8
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
je 0x45fd29
mov ecx, dword [0x464524]
mov dl, 1
mov eax, dword [0x45ec1c]
call fcn.0040bb90
call fcn.00403dac
push 0
push 1
push 2
call sub.wsock32.dll_socket
mov ebx, eax
mov eax, dword [ebp - 4]
mov dword [eax + 4], ebx
inc ebx
jne 0x45fd56
mov ecx, dword [0x4644cc]
mov dl, 1
mov eax, dword [0x45ec1c]
call fcn.0040bb90
call fcn.00403dac
xor eax, eax
push ebp
push 0x45fdd2
push dword fs:[eax]
mov dword fs:[eax], esp
xor ecx, ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xffff
call fcn.00403834
cmp byte [ebp + 8], 0
je 0x45fdae
mov eax, dword [ebp + 0x10]
push eax
mov ax, word [ebp + 0xc]
push eax
push 1
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 8]
mov edx, edi
mov eax, dword [ebp - 4]
call fcn.0045fc60
mov eax, dword [ebp - 4]
lea esi, [ebp - 0x18]
lea edi, [eax + 0x18]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 4]
call fcn.0045fb48
jmp 0x45fdc8
mov eax, dword [ebp + 0x10]
push eax
mov ax, word [ebp + 0xc]
push eax
push 0
push 1
mov ecx, dword [ebp - 8]
mov edx, edi
mov eax, dword [ebp - 4]
call fcn.0045f64c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x45fdef
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x45ffb4
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
add esp, 0xfffffff0
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0045f908
xor eax, eax
push ebp
push 0x460125
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
mov eax, dword [ebp - 4]
cmp dword [eax + 0xc], 0
je 0x46010f
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0xffffffff
je 0x45ffff
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
jne 0x460009
call fcn.00403e58
jmp 0x46012c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.00416094
mov dword [ebp - 0xc], eax
lea edx, [ebp - 0x1010]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov ecx, 0x1000
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov ebx, eax
test ebx, ebx
jle 0x460104
push 0
push ebx
lea eax, [ebp - 0x1010]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_send
mov ecx, eax
cmp ecx, 0xffffffff
jne 0x4600b7
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x2733
je 0x4600a4
lea eax, [ebp - 0x10]
push eax
mov cl, 1
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffe
call fcn.00403834
mov eax, dword [ebp - 4]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 8]
push ebp
call fcn.0045ff6c
pop ecx
mov eax, dword [ebp - 4]
mov dl, byte [0x460138]
cmp dl, byte [eax + 0x28]
je 0x46010b
call fcn.0040bab4
jmp 0x46010b
mov eax, dword [ebp - 0xc]
cdq
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.004160b4
jmp 0x46010b
cmp ecx, ebx
jge 0x4600d3
mov eax, dword [ebp - 0xc]
add eax, ecx
cdq
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.004160b4
jmp 0x460009
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov edx, dword [eax]
call dword [edx]
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.00416094
cmp edx, dword [esp + 4]
jne 0x4600f3
cmp eax, dword [esp]
pop edx
pop eax
jne 0x460009
push ebp
call fcn.0045ff6c
pop ecx
jmp 0x46010b
push ebp
call fcn.0045ff6c
pop ecx
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46012c
mov eax, dword [ebp - 4]
call fcn.0045f914
ret
mov al, byte [ebp - 5]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x46013c
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x28], ebx
mov esi, ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x46025e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0045f908
xor eax, eax
push ebp
push 0x460241
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
jne 0x46018c
call fcn.00403e58
jmp 0x460248
push 0
push esi
push ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_send
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x46022b
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x2733
je 0x46022b
lea eax, [ebp - 0xc]
push eax
mov cl, 1
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffe
call fcn.00403834
mov eax, dword [ebp - 4]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 8]
cmp dword [ebp - 0xc], 0
je 0x46022b
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0xc]
call fcn.0040b2a8
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0xb
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0
mov eax, 0x460278
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0xb
lea eax, [ebp - 0x24]
push eax
push 2
mov ecx, dword [0x4645e4]
mov dl, 1
mov eax, dword [0x45ec1c]
call fcn.0040bbcc
call fcn.00403dac
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x460248
mov eax, dword [ebp - 4]
call fcn.0045f914
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x460265
lea eax, [ebp - 0x28]
call fcn.00404370
ret
Function at 0x401fc2
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
mov dword [ebp - 4], esp
push 0
push 0xffffffff
call dword [sym.imp.KERNEL32.DLL_TerminateProcess]
nop
nop
nop
nop
cmp dword [ebp - 4], esp
je 0x401ff4
push 6
call fcn.00406e77
add esp, 4
push 0
call fcn.00406e5f
add esp, 4
mov esp, ebp
pop ebp
ret
Function at 0x402617
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], esp
push dword [ebp - 8]
push 0
call dword [sym.imp.KERNEL32.DLL_GetTempPathA]
nop
nop
nop
nop
cmp dword [ebp - 0xc], esp
je 0x402655
push 6
call fcn.00406e77
add esp, 4
mov dword [ebp - 4], eax
push 0x80000301
push 0
push dword [ebp - 4]
push 1
mov ebx, 0x184
call fcn.00408000
add esp, 0x10
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x40268b
push ebx
call fcn.00406e71
add esp, 4
pop eax
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], esp
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_GetTempPathA]
nop
nop
nop
nop
cmp dword [ebp - 0xc], esp
je 0x4026b4
push 6
call fcn.00406e77
add esp, 4
mov eax, dword [ebp - 8]
test eax, eax
je 0x4026d0
push eax
mov ebx, eax
call fcn.00401010
inc eax
push eax
call fcn.00406e89
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x4026d5
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x4026e6
push ebx
call fcn.00406e71
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret

Function at 0x4026eb
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 0
push 0x80000301
push 0
push 0x100
push 1
mov ebx, 0x184
call fcn.00408000
add esp, 0x10
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x402730
push ebx
call fcn.00406e71
add esp, 4
pop eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], esp
push 0x100
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_GetWindowsDirectoryA]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x40275b
push 6
call fcn.00406e77
add esp, 4
push 0x40b200
push dword [ebp - 4]
mov ecx, 2
call fcn.0040107b
add esp, 8
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
jmp 0x40277b
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40278c
push ebx
call fcn.00406e71
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret
Function at 0x406cf0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push 0x80000006
push 0
push 0x406db4
push 1
mov ebx, 0x9dc
call fcn.004076c0
add esp, 0x10
mov dword [ebp - 4], eax
mov dword [ebp - 8], esp
push 0
push 0
push dword [ebp + 8]
push dword [ebp - 4]
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_CreateThread]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x406d53
push 6
call fcn.00406e77
add esp, 4
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], esp
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
nop
nop
nop
nop
cmp dword [ebp - 0x10], esp
je 0x406d78
push 6
call fcn.00406e77
add esp, 4
mov esp, ebp
pop ebp
ret 4

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

Disassembly:
mov eax, dword [esp + 8]
push edi
push 0
push 0x20
push 3
push 0
push 3
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x407269
push ebx
lea ecx, [esp + 0x10]
push esi
push ecx
push edi
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov ebx, eax
lea edx, [ebx + 8]
push edx
call fcn.00406fa0
add esp, 4
mov esi, eax
lea eax, [esp + 0x14]
push 0
push eax
lea ecx, [esi + 8]
push ebx
push ecx
push edi
mov dword [esi], 1
mov dword [esi + 4], ebx
call dword [sym.imp.KERNEL32.DLL_ReadFile]
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, esi
pop esi
pop ebx
pop edi
ret

Function at 0x407620
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x10]
push edi
push 0
push 0x20
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x4076b2
mov eax, dword [esp + 0x10]
push ebx
mov ebx, 1
push ebp
cmp eax, ebx
push esi
mov dword [esp + 0x10], ebx
jle 0x4076a4
mov ebp, dword [sym.imp.KERNEL32.DLL_WriteFile]
lea esi, [esp + 0x2c]
mov eax, dword [esi]
lea edx, [esp + 0x14]
push 0
push edx
lea ecx, [eax + 8]
mov eax, dword [eax + 4]
push eax
push ecx
push edi
call ebp
test eax, eax
je 0x40769c
mov eax, dword [esp + 0x1c]
inc ebx
add esi, 0xc
cmp ebx, eax
jl 0x407665
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret
mov dword [esp + 0x10], 0
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret
Function at 0x407fb0
Capabilities:
Delete directory

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
jne 0x407fbd
xor eax, eax
pop esi
ret
push edi
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
pop edi
jne 0x407fcf
pop esi
ret
cmp ecx, 1
jne 0x407fdd
cmp byte [esi], 0x5c
jne 0x407fdd
xor eax, eax
pop esi
ret
push esi
call fcn.00407d60
add esp, 4
test eax, eax
je 0x407ff1
push esi
call dword [sym.imp.KERNEL32.DLL_RemoveDirectoryA]
pop esi
ret
Function at 0x403e88
Capabilities:
Get file size

Disassembly:
push ebx
mov ebx, eax
mov edx, dword [ebx + 4]
sub edx, 0xd7b1
cmp edx, 2
ja 0x403ecb
push 0
push dword [ebx]
call sub.kernel32.dll_GetFileSize
cmp eax, 0xffffffff
je 0x403ec2
push eax
push 1
push 0
push 0
push dword [ebx]
call sub.kernel32.dll_SetFilePointer
cmp eax, 0xffffffff
je 0x403ec2
pop edx
cmp eax, edx
setae al
pop ebx
ret
call fcn.004026d8
mov al, 1
jmp 0x403ec0
mov eax, 0x67
call fcn.004026c8
mov al, 0xff
jmp 0x403ec0

Function at 0x403edc
Capabilities:
Get file size

Disassembly:
push ebx
mov ebx, eax
mov edx, dword [ebx + 4]
sub edx, 0xd7b1
cmp edx, 2
ja 0x403f0c
push 0
push dword [ebx]
call sub.kernel32.dll_GetFileSize
cmp eax, 0xffffffff
je 0x403f02
xor edx, edx
div dword [ebx + 8]
pop ebx
ret
call fcn.004026d8
or eax, 0xffffffff
jmp 0x403f00
mov eax, 0x67
call fcn.004026c8
or eax, 0xffffffff
jmp 0x403f00

Function at 0x404064
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, eax
mov ecx, dword [ebx + 4]
sub ecx, 0xd7b1
je 0x404077
sub ecx, 2
jne 0x4040a0
push 0
mov eax, esp
push 0
push eax
push dword [ebx + 8]
push edx
push dword [ebx]
call sub.kernel32.dll_ReadFile
pop edx
dec eax
jne 0x404094
cmp edx, dword [ebx + 8]
jne 0x4040a7
pop ebx
ret
call sub.kernel32.dll_GetLastError
call fcn.004026c8
jmp 0x404092
mov eax, 0x67
jmp 0x404099
mov eax, 0x64
jmp 0x404099

Function at 0x405e68
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA
test eax, eax
jle 0x405ea1
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004032e8
jmp 0x405eaa
mov eax, ebx
mov edx, esi
call fcn.0040329c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x405eb4
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA
test eax, eax
jle 0x405ed5
mov al, byte [esp]
jmp 0x405ed7
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40e218
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, edx
mov word [ebp - 2], ax
mov eax, ebx
call fcn.00403208
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x40e279
push pe_nt_image_headers32
lea edx, [ebp - 0x102]
push edx
push eax
call sub.user32.dll_GetKeyNameTextA
cmp byte [ebp - 0x101], 0
jne 0x40e279
cmp byte [ebp - 0x102], 0
je 0x40e279
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, pe_nt_image_headers32
call fcn.00403364
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40f4b8
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
mov ebx, edx
mov dword [ebp - 0xc], eax
xor eax, eax
mov edx, dword [ebp - 0xc]
cmp dword [edx + 0x24], 0
je 0x40f539
xor eax, eax
mov al, byte [ebx + 4]
mov word [ebp - 6], ax
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x40f4ea
add word [ebp - 6], 0x2000
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x40f4fc
add word [ebp - 6], 0x4000
test byte [ebx + 0xb], 0x20
je 0x40f508
add word [ebp - 6], 0x8000
xor ebx, ebx
movzx edx, word [ebp - 6]
mov cl, 2
mov eax, dword [ebp - 0xc]
call fcn.0040f390
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x40f52d
push ebp
mov eax, dword [ebp - 4]
call fcn.0040f42c
pop ecx
mov ebx, eax
cmp bl, 2
je 0x40f508
cmp dword [ebp - 4], 0
setne al
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x416d44
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x416d4a
ret
Function at 0x41d3e4
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x42a650
cmp dword [edi], 0
jne 0x41d460
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x42a64c]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x429540
mov ecx, 2
call fcn.004026e4
mov edx, 0x41d3bc
lea eax, [esi + 5]
call fcn.0041d3dc
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041d3dc
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x41d435
mov dword [0x42a64c], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x41d564
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x41d5b4]
test si, 4
je 0x41d578
or bl, 1
test si, 8
je 0x41d582
or bl, 4
test si, 1
je 0x41d58c
or bl, 8
test si, 2
je 0x41d596
or bl, 0x10
test si, 0x10
je 0x41d5a0
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x41d5af
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x41d5b8
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x41d5f0]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x41d5d1
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x41d5e0
or bl, 4
test esi, 0x20000000
je 0x41d5eb
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x421634
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x42a628]
cmp byte [eax + 0x7f], 0
jne 0x421687
cmp dword [0x42a654], 0
jne 0x421663
call sub.kernel32.dll_GetCurrentThreadId
push eax
push 0
mov eax, 0x4215f0
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x42a654], eax
cmp dword [0x42a658], 0
jne 0x421687
push esp
push 0
push 0
push 0x4215a0
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x42a658], eax
pop edx
ret

Function at 0x42168c
Capabilities:
Terminate thread

Disassembly:
cmp dword [0x42a654], 0
je 0x4216a0
mov eax, dword [0x42a654]
push eax
call sub.user32.dll_UnhookWindowsHookEx
xor eax, eax
mov dword [0x42a654], eax
cmp dword [0x42a658], 0
je 0x4216bd
push 0
mov eax, dword [0x42a658]
push eax
call sub.kernel32.dll_TerminateThread
xor eax, eax
mov dword [0x42a658], eax
ret