joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406108
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
lea eax, [ebp - 0x10]
push eax
call sub.kernel32.dll_QueryPerformanceFrequency
lea eax, [ebp - 0x18]
push eax
call sub.kernel32.dll_QueryPerformanceCounter_1
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
add eax, dword [ebp - 0x10]
adc edx, dword [ebp - 0xc]
jno 0x406133
call fcn.00402f1c
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], edx
push ebp
call fcn.00406100
pop ecx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], edx
lea eax, [ebp - 0x18]
push eax
call sub.kernel32.dll_QueryPerformanceCounter_1
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
cmp edx, dword [ebp - 0x1c]
jne 0x406161
cmp eax, dword [ebp - 0x20]
jb 0x406146
jmp 0x406163
jl 0x406146
push ebp
call fcn.00406100
pop ecx
sub eax, dword [ebp - 0x28]
sbb edx, dword [ebp - 0x24]
jno 0x406177
call fcn.00402f1c
mov dword [ebp - 8], eax
mov dword [ebp - 4], edx
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x4062e0
Capabilities:
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe64
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00403a94
xor eax, eax
push ebp
push 0x406374
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x19c]
push eax
push 0x101
call sub.wsock32.dll_WSAStartup
mov eax, dword [ebp - 4]
call fcn.00403aa4
push eax
call sub.wsock32.dll_gethostbyname
mov dword [ebp - 0xc], eax
call sub.kernel32.dll_GetLastError_1
test eax, eax
jne 0x406351
cmp dword [ebp - 0xc], 0
je 0x406351
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
push dword [eax]
call sub.wsock32.dll_inet_ntoa
mov edx, eax
mov eax, dword [ebp - 8]
call fcn.0040385c
jmp 0x406359
mov eax, dword [ebp - 8]
call fcn.0040372c
call sub.wsock32.dll_WSACleanup
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40637b
lea eax, [ebp - 4]
call fcn.0040372c
ret

Function at 0x406550
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov dword [ebp - 4], eax
mov byte [ebp - 5], 0
mov eax, dword [ebp - 4]
call fcn.004038a4
test eax, eax
je 0x4065f1
mov eax, dword [ebp - 4]
call fcn.004038a4
add eax, 1
jno 0x40657f
call fcn.00402f1c
test eax, eax
jns 0x406588
call fcn.00402f14
push eax
push 0x2042
call sub.kernel32.dll_GlobalAlloc
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4065f1
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GlobalLock
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x4065f1
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
call fcn.004065f8
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GlobalUnlock
push 0
call sub.user32.dll_OpenClipboard
test eax, eax
je 0x4065e8
call sub.user32.dll_EmptyClipboard
mov eax, dword [ebp - 0xc]
push eax
push 1
call sub.user32.dll_SetClipboardData
test eax, eax
setne byte [ebp - 5]
call sub.user32.dll_CloseClipboard
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GlobalFree
mov al, byte [ebp - 5]
mov esp, ebp
pop ebp
ret
Function at 0x40694c
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
xor edx, edx
mov dword [ebp - 0x20], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4069ad
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0x10
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x19]
push eax
call sub.kernel32.dll_GetComputerNameA
lea eax, [ebp - 0x20]
lea edx, [ebp - 0x19]
mov ecx, 0x11
call fcn.0040388c
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 4]
call fcn.00405190
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4069b4
lea eax, [ebp - 0x20]
call fcn.0040372c
ret

Function at 0x4069b8
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef0
xor edx, edx
mov dword [ebp - 0x110], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x406a38
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x104
lea eax, [ebp - 0x109]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
lea eax, [ebp - 0x110]
lea edx, [ebp - 0x109]
mov ecx, 0x105
call fcn.0040388c
lea eax, [ebp - 0x110]
mov edx, 0x406a4c
call fcn.004038ac
mov eax, dword [ebp - 0x110]
mov edx, dword [ebp - 4]
push ebp
cld

Function at 0x406bb4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
call fcn.00403a94
mov eax, dword [ebp - 0xc]
call fcn.00403a94
xor eax, eax
push ebp
push 0x406c6c
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x10], eax
push 0x41e6b8
push 1
push 0
mov eax, dword [ebp - 8]
call fcn.00403aa4
push eax
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jns 0x406c0a
call fcn.00402f14
mov dword [0x41e6bc], eax
mov dword [ebp - 0x14], 4
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp + 8]
push eax
push 0
mov eax, dword [ebp - 0xc]
call fcn.00403aa4
push eax
mov eax, dword [0x41e6b8]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jns 0x406c41
call fcn.00402f14
mov dword [0x41e6bc], eax
mov eax, dword [0x41e6b8]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406c73
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.00403750
ret

Function at 0x406c7c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
call fcn.00403a94
mov eax, dword [ebp - 0xc]
call fcn.00403a94
xor eax, eax
push ebp
push 0x406d5a
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x41e6b8
push 1
push 0
mov eax, dword [ebp - 8]
call fcn.00403aa4
push eax
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegOpenKeyExA_1
Function at 0x406d68
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
call fcn.00403a94
mov eax, dword [ebp - 0xc]
call fcn.00403a94
mov eax, dword [ebp + 8]
call fcn.00403a94
xor eax, eax
push ebp
push 0x406e74
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0x41e6b8
push 0
push 2
push 0
push 0
push 0
mov eax, dword [ebp - 8]
call fcn.00403aa4
push eax
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCreateKeyExA
test eax, eax
jns 0x406dc9
call fcn.00402f14
mov dword [0x41e6bc], eax
cmp dword [ebp + 8], 0
jne 0x406de1
lea eax, [ebp + 8]
mov edx, 0x406e8c
call fcn.004037c4
mov eax, dword [ebp + 8]
call fcn.004038a4
test eax, eax
jns 0x406df2
call fcn.00402f14
push eax
lea eax, [ebp + 8]
call fcn.00403af4
mov edx, 1
dec edx
test eax, eax
je 0x406e0a
cmp edx, dword [eax - 4]
jb 0x406e0f
call fcn.00402f14
inc edx
lea eax, [eax + edx - 1]
push eax
push 1
push 0
mov eax, dword [ebp - 0xc]
call fcn.00403aa4
push eax
mov eax, dword [0x41e6b8]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
jns 0x406e36
call fcn.00402f14
mov dword [0x41e6bc], eax
cmp dword [0x41e6bc], 0
sete byte [ebp - 0xd]
mov eax, dword [0x41e6b8]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406e7b
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.00403750
lea eax, [ebp + 8]
call fcn.0040372c
ret

Function at 0x406e90
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
call fcn.00403a94
mov eax, dword [ebp - 0xc]
call fcn.00403a94
xor eax, eax
push ebp
push 0x406f4b
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0x41e6b8
push 0
push 2
push 0
push 0
push 0
mov eax, dword [ebp - 8]
call fcn.00403aa4
push eax
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCreateKeyExA
test eax, eax
jns 0x406ee9
call fcn.00402f14
mov dword [0x41e6bc], eax
push 4
lea eax, [ebp + 8]
push eax
push 4
push 0
mov eax, dword [ebp - 0xc]
call fcn.00403aa4
push eax
mov eax, dword [0x41e6b8]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
jns 0x406f15
call fcn.00402f14
mov dword [0x41e6bc], eax
cmp dword [0x41e6bc], 0
sete byte [ebp - 0xd]
mov eax, dword [0x41e6b8]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406f52
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.00403750
ret
Function at 0x407004
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
call fcn.00403a94
mov eax, dword [ebp - 0xc]
call fcn.00403a94
xor eax, eax
push ebp
push 0x4070c2
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 0xc], 0
jne 0x407044
lea eax, [ebp - 0xc]
mov edx, 0x4070d8
call fcn.004037c4
mov eax, dword [ebp - 0xc]
call fcn.004038a4
test eax, eax
jns 0x407055
call fcn.00402f14
push eax
lea eax, [ebp - 0xc]
call fcn.00403af4
mov edx, 1
dec edx
test eax, eax
je 0x40706d
cmp edx, dword [eax - 4]
jb 0x407072
call fcn.00402f14
inc edx
lea eax, [eax + edx - 1]
push eax
push 1
push 0
mov eax, dword [ebp - 8]
call fcn.00403aa4
push eax
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
jns 0x407097
call fcn.00402f14
mov dword [0x41e6bc], eax
cmp dword [0x41e6bc], 0
sete byte [ebp - 0xd]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4070c9
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.00403750
ret

Function at 0x4070dc
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
call fcn.00403a94
xor eax, eax
push ebp
push 0x40714c
push dword fs:[eax]
mov dword fs:[eax], esp
push 4
lea eax, [ebp - 0xc]
push eax
push 4
push 0
mov eax, dword [ebp - 8]
call fcn.00403aa4
push eax
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
jns 0x407126
call fcn.00402f14
mov dword [0x41e6bc], eax
cmp dword [0x41e6bc], 0
sete byte [ebp - 0xd]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407153
lea eax, [ebp - 8]
call fcn.0040372c
ret

Function at 0x4077dc
Capabilities:
Query or enumerate registry value

Disassembly:
add esp, 0xffffff54
cmp byte [0x41d1bc], 0
jne 0x4078ae
mov byte [0x41d1bc], 1
xor eax, eax
mov dword [0x41d1b4], eax
mov dword [esp + 0x18], 0x94
lea eax, [esp + 0x18]
push eax
call sub.kernel32.dll_GetVersionExA
cmp dword [esp + 0x1c], 3
ja 0x407824
cmp dword [esp + 0x1c], 3
jne 0x407884
cmp dword [esp + 0x20], 0x33
jbe 0x407884
mov dword [esp + 4], 9
push esp
push 0x20019
push 0
push 0x4078b8
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x4078ae
lea eax, [esp + 4]
push eax
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x1c]
push eax
push 0
push 0x4078e8
mov eax, dword [esp + 0x14]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x4078ae
mov eax, dword [esp]
push eax
call sub.advapi32.dll_RegCloseKey_1
cmp byte [esp + 8], 0x31
jne 0x4078ae
cmp byte [esp + 9], 0
jne 0x4078ae
jmp 0x407899
push 0
push 0x4078e8
push 0x4078f0
call sub.kernel32.dll_GetProfileIntA
test eax, eax
je 0x4078ae
mov eax, dword [0x41d1b0]
call fcn.00403aa4
push eax
call sub.kernel32.dll_LoadLibraryA
mov dword [0x41d1b4], eax
add esp, 0xac
ret
Function at 0x40b384
Capabilities:
Enumerate files on windows
Enumerate files recursively
Get file size
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x31
push 0
push 0
dec ecx
jne 0x40b38c
push ecx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00403a94
xor eax, eax
push ebp
push 0x40ba01
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.00408418
lea eax, [ebp - 0x158]
push eax
lea eax, [ebp - 0x15c]
mov ecx, 0x40ba14
mov edx, dword [ebp - 4]
call fcn.004038f0
mov eax, dword [ebp - 0x15c]
call fcn.00403aa4
push eax
call sub.kernel32.dll_FindFirstFileA
mov dword [ebp - 8], eax
mov eax, 0x41eb54
mov edx, 0x40ba20
call fcn.00403780
cmp dword [ebp - 8], 0xffffffff
je 0x40b9a7
lea eax, [ebp - 0xc]
lea edx, [ebp - 0x12c]
mov ecx, 0x104
call fcn.0040388c
test byte [ebp - 0x158], 0x10
je 0x40b466
mov eax, dword [ebp - 0xc]
mov edx, 0x40bad4
call fcn.004039f0
je 0x40b98f
mov eax, dword [ebp - 0xc]
mov edx, 0x40bae0
call fcn.004039f0
je 0x40b98f
push dword [ebp - 4]
push dword [ebp - 0xc]
push 0x40baec
lea eax, [ebp - 0x160]
mov edx, 3
call fcn.00403964
mov eax, dword [ebp - 0x160]
call fcn.0040b384
jmp 0x40b98f
cmp word [0x41d298], 0
jne 0x40b47e
add dword [0x41eb78], 1
jno 0x40b47e
call fcn.00402f1c
mov eax, dword [0x41eb78]
cmp eax, dword [0x41eb74]
jl 0x40b98f
lea eax, [ebp - 0x164]
push eax
mov eax, dword [ebp - 0xc]
call fcn.004038a4
mov edx, eax
sub edx, 2
jno 0x40b4aa
call fcn.00402f1c
mov ecx, 3
mov eax, dword [ebp - 0xc]
call fcn.00403afc
mov eax, dword [ebp - 0x164]
lea edx, [ebp - 0x10]
call fcn.0040520c
mov edx, dword [0x41eb48]
mov eax, dword [ebp - 0x10]
call fcn.00403b3c
test eax, eax
je 0x40b4dd
mov byte [ebp - 0x15], 3
jmp 0x40b4e1
mov byte [ebp - 0x15], 1
mov eax, 0x41eb54
mov edx, 0x40baf8
call fcn.00403780
cmp byte [ebp - 0x15], 3
jne 0x40b5c6
mov eax, dword [0x41eb44]
call fcn.004038a4
test eax, eax
jne 0x40b511
mov byte [ebp - 0x15], 2
jmp 0x40b5c6
cmp dword [ebp - 0x138], 0x9600000
jbe 0x40b526
mov byte [ebp - 0x15], 2
jmp 0x40b5c6
mov eax, dword [ebp - 0x10]
mov edx, 0x40bb3c
call fcn.004039f0
jne 0x40b56d
cmp dword [ebp - 0x138], 0x7530
jae 0x40b547
mov byte [ebp - 0x15], 2
invalid
Function at 0x40d1d8
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
mov eax, dword [0x41edd4]
call fcn.00403aa4
push eax
call sub.user32.dll_FindWindowA
push eax
call sub.user32.dll_ShowWindow
mov eax, 0x41eb54
mov edx, 0x40d244
call fcn.00403780
push 0
push 0
mov eax, dword [0x41edd8]
call fcn.00403aa4
push eax
call sub.user32.dll_FindWindowA
push eax
call sub.user32.dll_ShowWindow
push 0
push 0
mov eax, dword [0x41eddc]
call fcn.00403aa4
push eax
call sub.user32.dll_FindWindowA
push eax
call sub.user32.dll_ShowWindow
pop ebp
ret

Function at 0x40f7b4
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
xor eax, eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], eax
xor eax, eax
push ebp
push 0x40fa28
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x14]
in al, dx

Function at 0x410198
Capabilities:
Check os version
Create directory
Delete registry key
Get disk information
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x28
push 0
push 0
dec ecx
jne 0x4101a0
xor eax, eax
push ebp
push 0x41183a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, 0x41eb54
mov edx, 0x411850
call fcn.00403780
cmp byte [0x41eb98], 0x66
jne 0x410221
mov eax, dword [0x41d320]
push eax
push 0x400
lea eax, [ebp - 8]
push eax
mov ecx, dword [0x41ecd4]
mov edx, dword [0x41ed00]
mov eax, 0x80000002
call fcn.00406c7c
mov edx, dword [ebp - 8]
mov eax, 0x41eb2c
call fcn.00403780
cmp byte [0x41eb95], 0
jne 0x410221
push 0x2710
call sub.kernel32.dll_Sleep
mov eax, dword [0x41eb2c]
call fcn.00406ad4
mov byte [0x41eb97], al
mov ecx, dword [0x41ecd4]
mov edx, dword [0x41ed00]
mov eax, 0x80000002
call fcn.0040715c
lea eax, [ebp - 0xc]
call fcn.0040694c
mov edx, dword [ebp - 0xc]
mov eax, 0x41eb1c
call fcn.00403780
lea eax, [ebp - 0x10]
call fcn.004069b8
mov edx, dword [ebp - 0x10]
mov eax, 0x41eb20
call fcn.00403780
mov eax, 0x41eb24
mov ecx, 0x411908
mov edx, dword [0x41eb20]
call fcn.004038f0
mov eax, dword [0x41eb2c]
call fcn.004038a4
test eax, eax
jne 0x41029a
mov eax, 0x41eb2c
mov ecx, dword [0x41ecc4]
mov edx, dword [0x41eb20]
call fcn.004038f0
mov eax, 0x41d28c
mov ecx, dword [0x41d28c]
or eax, 0x41d28c
Function at 0x412f04
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
xor edx, edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00403a94
xor eax, eax
push ebp
push 0x41302c
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, 0x41eb54
mov edx, 0x413044
call fcn.00403780
cmp dword [0x41eb9c], 0
jne 0x412f45
call fcn.00412e50
push 2
push 0
push 0
mov eax, dword [0x41eb9c]
push eax
call sub.kernel32.dll_SetFilePointer_1
cmp eax, 0xffffffff
jne 0x412f60
call fcn.00412e50
mov eax, 0x41eb54
mov edx, 0x4130e0
call fcn.00403780
lea edx, [ebp - 0xc]
mov al, byte [0x41eb96]
call fcn.00405288
push dword [ebp - 0xc]
push 0x413188
push dword [ebp - 4]
push 0x413194
lea eax, [ebp - 4]
mov edx, 4
call fcn.00403964
mov eax, 0x41eb54
mov edx, 0x4131a0
call fcn.00403780
mov byte [0x41eb96], 0
mov eax, 0x41eb54
mov edx, 0x413260
call fcn.00403780
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
call fcn.004038a4
test eax, eax
jns 0x412fd5
call fcn.00402f14
push eax
lea eax, [ebp - 4]
call fcn.00403af4
mov edx, 1
dec edx
test eax, eax
je 0x412fed
cmp edx, dword [eax - 4]
jb 0x412ff2
call fcn.00402f14
inc edx
lea eax, [eax + edx - 1]
push eax
mov eax, dword [0x41eb9c]
push eax
call sub.kernel32.dll_WriteFile_1
test eax, eax
jne 0x41300e
mov dword [ebp - 8], 0xffffffff
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x413033
lea eax, [ebp - 0xc]
call fcn.0040372c
lea eax, [ebp - 4]
call fcn.0040372c
ret
Function at 0x41890c
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp byte [0x41eb94], 0
jne 0x41894e
push 0x418954
push 0
call sub.user32.dll_FindWindowA
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x41893d
push 0x41896c
push 0
call sub.user32.dll_FindWindowA
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jbe 0x41894e
push 0
mov eax, dword [ebp - 4]
push eax
call sub.user32.dll_ShowWindow
pop ecx
pop ebp
ret
Function at 0x41a0ec
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
push ecx
mov byte [ebp - 2], dl
mov byte [ebp - 1], al
mov al, byte [ebp - 1]
and eax, 0xff
bt dword [0x41d260], eax
jae 0x41a125
xor eax, eax
mov al, byte [ebp - 2]
add eax, 1
jno 0x41a116
call fcn.00402f1c
cmp eax, 0xff
jbe 0x41a122
call fcn.00402f14
mov byte [ebp - 2], al
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
push 0
xor eax, eax
mov al, byte [ebp - 1]
push eax
call sub.user32.dll_MapVirtualKeyA
cmp eax, 0xff
jbe 0x41a146
call fcn.00402f14
push eax
mov al, byte [ebp - 1]
push eax
call sub.user32.dll_keybd_event
pop ecx
pop ebp
ret
Function at 0x401000
Capabilities:
Enumerate pe sections

Disassembly:
push ecx
mov eax, dword [esp + 0x10]
push ebx
push ebp
xor ecx, ecx
mov ebp, dword [eax + 4]
mov eax, dword [eax]
mov dword [esp + 8], 0
mov cx, word [eax + 0x14]
cmp word [eax + 6], 0
lea ebx, [ecx + eax + 0x18]
jbe 0x4010c1
push esi
push edi
add ebx, 0x10
cmp dword [ebx], 0
jne 0x40106b
mov edx, dword [esp + 0x1c]
mov esi, dword [edx + 0x38]
test esi, esi
jle 0x40109f
mov eax, dword [ebx - 4]
push 4
push 0x1000
add eax, ebp
push esi
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, esi
mov edi, eax
mov edx, ecx
xor eax, eax
shr ecx, 2
mov dword [ebx - 8], edi
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
jmp 0x40109f
mov ecx, dword [ebx - 4]
mov eax, dword [ebx]
push 4
push 0x1000
add ecx, ebp
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, dword [ebx]
mov esi, dword [ebx + 4]
mov edi, dword [esp + 0x18]
mov edx, ecx
add esi, edi
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [ebx - 8], eax
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x10]
inc eax
add ebx, 0x28
mov edx, dword [ecx]
xor ecx, ecx
mov dword [esp + 0x10], eax
mov cx, word [edx + 6]
cmp eax, ecx
jl 0x40102e
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x4010d0
Capabilities:
Enumerate pe sections

Disassembly:
push ecx
mov eax, dword [esp + 8]
push ebx
xor ecx, ecx
push ebp
mov ebx, dword [eax]
xor ebp, ebp
mov cx, word [ebx + 0x14]
cmp word [ebx + 6], bp
lea eax, [ecx + ebx + 0x18]
jbe 0x401189
push esi
push edi
lea edi, [eax + 0x24]
mov eax, dword [edi]
mov ecx, eax
mov edx, eax
shr ecx, 0x1d
shr edx, 0x1e
mov esi, eax
and ecx, 1
and edx, 1
shr esi, 0x1f
test eax, 0x2000000
je 0x401127
mov edx, dword [edi - 0x14]
mov eax, dword [edi - 0x1c]
push 0x4000
push edx
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x40116f
lea ecx, [edx + ecx*2]
test eax, 0x4000000
lea edx, [esi + ecx*2]
mov esi, dword [edx*4 + 0x404020]
je 0x401141
or esi, 0x200
mov edx, dword [edi - 0x14]
mov ecx, edx
test ecx, ecx
jne 0x40115c
test al, 0x40
je 0x401153
mov ecx, dword [ebx + 0x20]
jmp 0x40115a
test al, 0x80
je 0x40116f
mov ecx, dword [ebx + 0x24]
test ecx, ecx
jbe 0x40116f
mov ecx, dword [edi - 0x1c]
lea eax, [esp + 0x10]
push eax
push esi
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov edx, dword [esp + 0x18]
xor eax, eax
inc ebp
add edi, 0x28
mov ebx, dword [edx]
mov ax, word [ebx + 6]
cmp ebp, eax
jl 0x4010f4
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x401670
Capabilities:
Encode data using xor

Disassembly:
push edi
mov edi, dword [esp + 0xc]
xor ecx, ecx
test edi, edi
jbe 0x4016a3
push ebx
mov ebx, dword [esp + 0x18]
push ebp
mov ebp, dword [esp + 0x18]
push esi
mov esi, dword [esp + 0x14]
mov eax, ecx
xor edx, edx
div ebx
mov al, byte [edx + ebp]
mov dl, byte [ecx + esi]
xor dl, al
mov byte [ecx + esi], dl
inc ecx
cmp ecx, edi
jb 0x40168a
pop esi
pop ebp
pop ebx
pop edi
ret
Function at 0x9d6370
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push edi
push 0x1a
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x9d638e
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esp + 0x14]
push 0x9ff074
push ecx
mov edi, eax
call fcn.009ea198
mov esi, eax
add esp, 8
test esi, esi
jne 0x9d63cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.009ea02e
push esi
call fcn.009e9fb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret