joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402bf0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x1a8
xor eax, eax
mov ecx, 0x406ac8
push ebx
mov edx, dword [esp + 0x1b0]
push esi
push edi
push ebp
cmp dword [ecx], edx
je 0x402c18
add ecx, 8
inc eax
cmp ecx, 0x406b50
jb 0x402c08
cmp dword [eax*8 + 0x406ac8], edx
lea ebx, [eax*8]
jne 0x402dd3
cmp dword [0x4060ec], 1
je 0x402d98
cmp dword [0x4060ec], 0
jne 0x402c4f
cmp dword [0x4060f0], 1
je 0x402d98
cmp edx, 0xfc
je 0x402dd3
lea eax, [esp + 0xb4]
push 0x104
push eax
mov ebp, dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0
call ebp
test eax, eax
jne 0x402c8c
mov esi, str._program_name_unknown_
lea edi, [esp + 0xb4]
mov ecx, 5
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea ebp, [esp + 0xb4]
lea edi, [esp + 0xb4]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
cmp ecx, 0x3c
jbe 0x402cd0
lea edi, [esp + 0xb4]
mov ecx, 0xffffffff
sub eax, eax
push 3
repne scasb al, byte es:[edi]
not ecx
lea ebp, [esp + ecx + 0x7c]
push 0x406b9c
push ebp
call fcn.004033f0
add esp, 0xc
mov esi, str.Runtime_Error__n_nProgram:
lea edi, [esp + 0x14]
mov ecx, 6
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov edi, ebp
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov ecx, 0xffffffff
lea edi, [esp + 0x14]
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x406b7c
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov ecx, 0xffffffff
lea edi, [esp + 0x14]
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebx + 0x406acc]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
lea edi, [esp + 0x14]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push 0x12010
and ecx, 3
push str.Microsoft_Visual_C_Runtime_Library
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0x1c]
push eax
call fcn.00403440
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1a8
ret
mov eax, dword [0x406f50]
mov esi, dword [eax + 0x10]
cmp esi, 0xffffffff
jne 0x402daf
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
mov edx, dword [ebx + 0x406acc]
push 0
lea eax, [esp + 0x14]
mov edi, edx
push eax
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1a8
ret
Function at 0x4030b0
Capabilities:
Write file on windows

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x418
cmp dword [0x406f44], edx
push ebx
push esi
push edi
push ebp
jbe 0x4032b7
mov eax, edx
and eax, 0xffffffe7
sar eax, 3
add eax, 0x406f50
mov dword [esp + 0x18], eax
mov eax, edx
and eax, 0x1f
mov ecx, dword [esp + 0x18]
shl eax, 3
mov ebx, dword [ecx]
mov ebp, eax
mov dword [esp + 0x1c], eax
mov al, byte [ebx + ebp + 4]
test al, 1
je 0x4032b7
xor esi, esi
mov ebp, dword [esp + 0x434]
mov dword [esp + 0x20], esi
cmp ebp, esi
jne 0x403119
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x418
ret
test al, 0x20
je 0x40312a
push 2
push 0
push edx
call fcn.004032e0
add esp, 0xc
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
add ecx, dword [eax]
test byte [ecx + 4], 0x80
je 0x4031c6
mov dword [esp + 0x10], 0
mov edi, dword [esp + 0x430]
mov eax, edi
sub eax, dword [esp + 0x430]
cmp eax, ebp
jae 0x4031ff
lea ebx, [esp + 0x24]
mov eax, edi
sub eax, dword [esp + 0x430]
cmp eax, ebp
jae 0x40318d
mov al, byte [edi]
inc edi
cmp al, 0xa
jne 0x40317b
mov byte [ebx], 0xd
inc esi
inc ebx
mov byte [ebx], al
inc ebx
mov eax, ebx
lea ecx, [esp + 0x24]
sub eax, ecx
cmp eax, 0x400
jl 0x403162
lea eax, [esp + 0x24]
push 0
sub ebx, eax
lea ecx, [esp + 0x28]
lea eax, [esp + 0x18]
mov edx, dword [esp + 0x1c]
push eax
push ebx
push ecx
mov eax, dword [edx]
mov ecx, dword [esp + 0x2c]
mov edx, dword [eax + ecx]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4031f5
mov eax, dword [esp + 0x14]
add dword [esp + 0x20], eax
cmp eax, ebx
jge 0x40314d
jmp 0x4031ff
lea eax, [esp + 0x14]
push 0
mov edx, dword [esp + 0x434]
push eax
push ebp
mov ecx, dword [ecx]
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4031f5
mov dword [esp + 0x10], 0
mov eax, dword [esp + 0x14]
mov dword [esp + 0x20], eax
jmp 0x4031ff
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], eax
cmp dword [esp + 0x20], 0
jne 0x4032a6
cmp dword [esp + 0x10], 0
je 0x403258
cmp dword [esp + 0x10], 5
jne 0x40323b
mov dword [0x406098], 9
mov eax, dword [esp + 0x10]
pop ebp
pop edi
mov dword [0x40609c], eax
mov eax, 0xffffffff
pop esi
pop ebx
add esp, 0x418
ret
mov eax, dword [esp + 0x10]
push eax
call fcn.004035f0
add esp, 4
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x418
ret
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edx, dword [eax]
test byte [edx + ecx + 4], 0x40
je 0x403282
mov eax, dword [esp + 0x430]
cmp byte [eax], 0x1a
jne 0x403282
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x418
ret
mov eax, 0xffffffff
pop ebp
mov dword [0x406098], 0x1c
mov dword [0x40609c], 0
pop edi
pop esi
pop ebx
add esp, 0x418
ret
mov eax, dword [esp + 0x20]
pop ebp
sub eax, esi
pop edi
pop esi
pop ebx
add esp, 0x418
ret
mov eax, 0xffffffff
pop ebp
mov dword [0x406098], 9
mov dword [0x40609c], 0
pop edi
pop esi
pop ebx
add esp, 0x418
ret
Function at 0x402754
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov esi, edx
mov ebx, eax
test ebx, ebx
jne 0x402783
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00403410
jmp 0x4027a1
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, esi
mov eax, edi
call fcn.004026dc
mov edi, eax
test ebx, ebx
je 0x4027a1
cmp dword [esi], 0
je 0x4027a1
dec ebx
jmp 0x40278a
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x4028ec
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [section.DATA]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x402984
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x402964
xor eax, eax
push ebp
push 0x40295d
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x4029a0
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402964
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [section.DATA]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [section.DATA], ax
mov esp, ebp
pop ebp
ret
Function at 0x40453c
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x4046f8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x40459d
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x404714
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x40460f
xor eax, eax
push ebp
push 0x404608
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
call fcn.00404394
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x4045f1
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x404734
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40460f
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpyA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x4046f0
cmp byte [ebp - 0xd], 0
jne 0x404651
cmp byte [ebp - 0x12], 0
je 0x4046f0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x40466a
dec ebx
cmp byte [ebx], 0x2e
je 0x404679
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x404669
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x4046f0
inc ebx
cmp byte [ebp - 0x12], 0
je 0x4046a6
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x4046f0
cmp byte [ebp - 0xd], 0
je 0x4046f0
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x4046f0
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40705c
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 0x100
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x407095
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403410
jmp 0x40709e
mov eax, ebx
mov edx, esi
call fcn.0040337c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4070a8
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_1
test eax, eax
jle 0x4070c9
mov al, byte [esp]
jmp 0x4070cb
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40c008
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x40c01a
add esp, 0xfffffff0
call fcn.00402b3c
mov esi, ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.00402a0c
mov eax, dword [ebp - 4]
mov dword [eax + 0xc], esi
push 0x40
push 0x3000
push 0xc
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov edx, dword [ebp - 4]
mov dword [edx + 4], eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 4]
mov word [ecx], 0x6858
mov dword [ecx + 2], eax
mov word [ecx + 6], 0xe950
mov eax, 0x40c0c0
sub eax, ecx
sub eax, 0xc
mov dword [ecx + 8], eax
mov eax, dword [ebp - 4]
test bl, bl
je 0x40c07e
call fcn.00402b94
pop dword fs:[0]
add esp, 0xc
mov eax, dword [ebp - 4]
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x40c3fc
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeac
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00403738
xor eax, eax
push ebp
push 0x40c505
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040337c
jmp 0x40c43d
lea eax, [ebp - 4]
mov ecx, dword [ebp - 4]
mov edx, 0x40c51c
call fcn.004035d0
mov eax, dword [ebp - 4]
call fcn.00403584
cmp eax, 8
jl 0x40c42d
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0
mov eax, dword [ebp - 4]
mov dword [ebp - 0x154], eax
mov byte [ebp - 0x150], 0xb
lea ecx, [ebp - 0x154]
mov edx, 0x40c520
lea eax, [ebp - 0x4c]
call fcn.00406ecc
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x40c4ef
xor eax, eax
push ebp
push 0x40c4e8
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 0x100
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14c]
push eax
push 0
push 0
push 0x40c558
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x40c4d1
mov eax, ebx
lea edx, [ebp - 0x14c]
mov ecx, 0x100
call fcn.00403558
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c4ef
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c50c
lea eax, [ebp - 4]
call fcn.00403328
ret
Function at 0x40d278
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeac
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00403738
xor eax, eax
push ebp
push 0x40d381
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040337c
jmp 0x40d2b9
lea eax, [ebp - 4]
mov ecx, dword [ebp - 4]
mov edx, 0x40d398
call fcn.004035d0
mov eax, dword [ebp - 4]
call fcn.00403584
cmp eax, 8
jl 0x40d2a9
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0
mov eax, dword [ebp - 4]
mov dword [ebp - 0x154], eax
mov byte [ebp - 0x150], 0xb
lea ecx, [ebp - 0x154]
mov edx, 0x40d39c
lea eax, [ebp - 0x4c]
call fcn.00406ecc
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x40d36b
xor eax, eax
push ebp
push 0x40d364
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 0x100
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14c]
push eax
push 0
push 0
push 0x40d3d4
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x40d34d
mov eax, ebx
lea edx, [ebp - 0x14c]
mov ecx, 0x100
call fcn.00403558
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d36b
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d388
lea eax, [ebp - 4]
call fcn.00403328
ret
Function at 0x401000
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
push edi
mov dword [ebp - 0x134], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x130], 0
mov ecx, 0x49
xor eax, eax
lea edi, [ebp - 0x12c]
rep stosd dword es:[edi], eax
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x134], eax
cmp dword [ebp - 0x134], 0xffffffff
jne 0x401051
jmp 0x4010e1
mov dword [ebp - 0x130], 0x128
lea eax, [ebp - 0x130]
push eax
mov ecx, dword [ebp - 0x134]
push ecx
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x4010d4
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp - 0x128]
push eax
call fcn.00402047
add esp, 8
cmp dword [ebp - 0x128], 0
je 0x4010bd
cmp dword [ebp - 8], 0
jne 0x4010bd
push 0x417040
lea ecx, [ebp - 0x10c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x4010bd
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x128]
push eax
call fcn.00401721
add esp, 8
lea ecx, [ebp - 0x130]
push ecx
mov edx, dword [ebp - 0x134]
push edx
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x401072
mov eax, dword [ebp - 0x134]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x4010e6
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
push edi
mov dword [ebp - 0x134], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x130], 0
mov ecx, 0x49
xor eax, eax
lea edi, [ebp - 0x12c]
rep stosd dword es:[edi], eax
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x134], eax
cmp dword [ebp - 0x134], 0xffffffff
jne 0x401137
jmp 0x4011e2
mov dword [ebp - 0x130], 0x128
lea eax, [ebp - 0x130]
push eax
mov ecx, dword [ebp - 0x134]
push ecx
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x4011d5
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp - 0x128]
push eax
call fcn.00402047
add esp, 8
cmp dword [ebp - 0x128], 0
je 0x4011be
cmp dword [ebp - 8], 0
jne 0x4011be
push 0x417050
lea ecx, [ebp - 0x10c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x4011be
mov edx, dword [0x41d4e0]
cmp edx, dword [ebp - 0x128]
je 0x4011be
mov eax, dword [0x41dbb0]
cmp eax, dword [ebp - 0x128]
je 0x4011be
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x128]
push edx
call fcn.00401721
add esp, 8
lea eax, [ebp - 0x130]
push eax
mov ecx, dword [ebp - 0x134]
push ecx
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x401158
mov edx, dword [ebp - 0x134]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x401f88
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0xc]
xor ecx, ecx
mov cx, word [eax + 0x14]
mov edx, dword [ebp + 0xc]
lea eax, [edx + ecx + 0x18]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0
jmp 0x401fbc
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 4]
add edx, 0x28
mov dword [ebp - 4], edx
mov eax, dword [ebp + 0xc]
xor ecx, ecx
mov cx, word [eax + 6]
cmp dword [ebp - 8], ecx
jae 0x402002
mov edx, dword [ebp - 4]
mov eax, dword [edx + 8]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x401fe2
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x10]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
cmp ecx, dword [eax + 0xc]
jb 0x402000
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0xc]
add eax, dword [ebp - 0xc]
cmp dword [ebp + 8], eax
jae 0x402000
mov eax, dword [ebp - 4]
jmp 0x402004
jmp 0x401faa
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x402548
Capabilities:
Allocate or change rwx memory
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x248
push edi
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x240], 0
mov ecx, 0x88
xor eax, eax
lea edi, [ebp - 0x23c]
rep stosd dword es:[edi], eax
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
push eax
push 8
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
jne 0x402594
xor eax, eax
jmp 0x402699
mov dword [ebp - 0x240], 0x224
lea ecx, [ebp - 0x240]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call sub.KERNEL32.dll_Module32First
test eax, eax
je 0x40268d
push 0xc
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x224]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call sub.PSAPI.DLL_GetModuleInformation
test eax, eax
je 0x402675
lea eax, [ebp - 8]
push eax
push 0x40
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x402675
push 4
push 0x1000
mov ecx, dword [ebp - 0x18]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x244], eax
cmp dword [ebp - 0x244], 0
je 0x402675
lea edx, [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x244]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov dword [ebp - 0x248], eax
cmp dword [ebp - 0x248], 0
je 0x402661
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x244]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0040269e
add esp, 0x14
push 0x8000
push 0
mov eax, dword [ebp - 0x244]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFree]
lea ecx, [ebp - 0x240]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call sub.KERNEL32.dll_Module32Next
test eax, eax
jne 0x4025b6
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x4030ad
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x130
push edi
mov dword [ebp - 0x130], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x12c], 0
mov ecx, 0x49
xor eax, eax
lea edi, [ebp - 0x128]
rep stosd dword es:[edi], eax
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x130], eax
cmp dword [ebp - 0x130], 0xffffffff
jne 0x4030fd
xor eax, eax
jmp 0x403165
mov dword [ebp - 0x12c], 0x128
lea eax, [ebp - 0x12c]
push eax
mov ecx, dword [ebp - 0x130]
push ecx
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x403156
mov edx, dword [ebp - 0x114]
cmp edx, dword [0x41d4e0]
jne 0x40313f
mov eax, dword [ebp - 0x124]
mov dword [0x41dbb0], eax
mov eax, dword [ebp - 0x124]
jmp 0x403165
lea ecx, [ebp - 0x12c]
push ecx
mov edx, dword [ebp - 0x130]
push edx
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x40311e
mov eax, dword [ebp - 0x130]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x40316a
Capabilities:
Get file size
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x19010
call fcn.0040a6c0
mov dword [ebp - 0x1900c], 0
jmp 0x403192
mov eax, dword [ebp - 0x1900c]
add eax, 1
mov dword [ebp - 0x1900c], eax
cmp dword [ebp - 0x1900c], 0x1e
jge 0x4031d2
push 0
push 0
push 3
push 0
push 3
push 0x40000000
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x19008], eax
cmp dword [ebp - 0x19008], 0xffffffff
je 0x4031c5
jmp 0x4031d2
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x403183
push 0
mov edx, dword [ebp - 0x19008]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x19010], eax
cmp dword [ebp - 0x19010], 0x19000
jbe 0x4031fd
mov dword [ebp - 0x19010], 0x19000
push 0
lea eax, [ebp - 0x19004]
push eax
mov ecx, dword [ebp - 0x19010]
push ecx
lea edx, [ebp - 0x19000]
push edx
mov eax, dword [ebp - 0x19008]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 0x19008]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esp, ebp
pop ebp
ret