joyce8/EMBER2024-capa huggingface dataset:
Function at 0x419509
Capabilities:
Enumerate processes

Disassembly:
push 0x280
mov eax, 0x43b3d3
call fcn.0041327c
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x28c], ebx
test eax, eax
je 0x4196f6
push eax
lea ecx, [ebp - 0x40]
call fcn.00406567
and dword [ebp - 4], 0
lea eax, [ebp - 0x40]
push eax
call fcn.0041b0ff
mov edi, 0x22c
lea eax, [ebp - 0x284]
push edi
push 0
push eax
call fcn.0041f990
add esp, 0x10
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
mov dword [ebp - 0x28c], esi
cmp esi, 0xffffffff
je 0x4196e6
call fcn.0040ec41
test al, al
je 0x41958b
pop eax
pop ecx
push ebp
push edi
pop ecx
push esp
pop edx
pop ebp
pop edx
pop esp
push eax
push ebx
push ebx
push edx
push esp
push edx
lea eax, [ebp - 0x284]
mov dword [ebp - 0x284], edi
push eax
push esi
call sub.KERNEL32.dll_Process32FirstW
jmp 0x419663
and dword [ebp - 0x18], 0
xor eax, eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
cmp word [ebp - 0x260], ax
je 0x4195ca
lea eax, [ebp - 0x260]
push eax
call fcn.00423bc4
pop ecx
push eax
lea eax, [ebp - 0x260]
push eax
lea ecx, [ebp - 0x28]
call fcn.00405c1f
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 1
push eax
call fcn.0041b0ff
pop ecx
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x28]
call fcn.0040bd13
test eax, eax
je 0x41961e
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.0041b06b
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x40]
or ebx, 1
call fcn.0040bd13
mov byte [ebp - 0x285], 0
test eax, eax
jne 0x419625
mov byte [ebp - 0x285], 1
test bl, 1
je 0x419639
push 0
push 1
lea ecx, [ebp - 0x58]
and ebx, 0xfffffffe
call fcn.004059c9
cmp byte [ebp - 0x285], 0
jne 0x4196fc
push 0
push 1
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
call fcn.004059c9
lea eax, [ebp - 0x284]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x4195a3
call fcn.0040ed55
test al, al
je 0x419693
push esp
push edi
pop ebx
pop ecx
pop esp
pop ebx
pop ebx
push ecx
pop ebp
pop eax
pop ebp
push ebx
pop ebx
pop edx
push ebp
push ebx
pop edi
pop eax
push ebx
push edx
pop edx
pop eax
pop edi
push ebp
pop edx
push ebp
push ebx
pop ebp
push ebx
pop edx
pop esi
call fcn.0040e836
test al, al
je 0x4196b5
pop edx
push ecx
push ebp
pop edx
push esp
push esp
push edx
push esi
pop eax
push esi
pop ebx
pop ecx
pop esi
pop ebx
push edi
pop edi
push ecx
push esi
pop edi
pop edi
push ecx
push esp
pop ebp
push ebp
push edi
call fcn.0040eae8
test al, al
je 0x4196da
pop edx
push ecx
pop ebp
pop ebx
pop ebp
pop eax
pop ebx
push edi
push edx
push esi
pop edi
push eax
push edx
push edi
push esi
push esp
pop ebp
push ecx
push edx
pop eax
pop ebp
pop esi
push ecx
pop ecx
push ebx
pop edi
push edi
pop ebp
push dword [ebp - 0x28c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
push 0
push 1
lea ecx, [ebp - 0x40]
call fcn.004059c9
mov eax, esi
call fcn.00413226
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x27c]
lea ecx, [ebp - 0x28]
push 0
push 1
call fcn.004059c9
jmp 0x4196e8
Function at 0x41a861
Capabilities:
Hash data with md5

Disassembly:
xor eax, eax
mov byte [ecx + 0x89], al
mov dword [ecx + 0x14], eax
mov dword [ecx + 0x10], eax
mov dword [ecx], 0x67452301
mov dword [ecx + 4], 0xefcdab89
mov dword [ecx + 8], 0x98badcfe
mov dword [ecx + 0xc], 0x10325476
ret
Function at 0x41c5d3
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [0x45b870], 0
mov dword [ebp - 8], ecx
je 0x41c726
add ecx, 8
cmp dword [ecx + 0x14], 8
jb 0x41c5f4
mov ecx, dword [ecx]
push esi
push 0x443f90
push ecx
push dword [0x4570e4]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x41c725
push ebx
push edi
push esi
push dword [0x4570e4]
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push dword [0x4570e4]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
push esi
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push esi
push edi
push eax
call fcn.0041f410
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea eax, [ebp - 4]
push eax
push 1
push ebx
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
xor esi, esi
push esi
push dword [ebp - 4]
call fcn.0041cde3
pop ecx
pop ecx
test eax, eax
je 0x41c723
mov ebx, dword [ebp - 8]
mov ecx, 0x45b874
mov dword [ebx + 4], eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.0041c3c7
mov eax, dword [ebp - 0xc]
push esi
mov dword [eax + 0x14], ebx
push dword [0x4570e4]
push esi
push dword [ebp + 8]
push esi
push esi
push esi
push 0x80000000
push 0x80880000
push esi
push dword [0x4570e0]
push 0x80020
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov esi, dword [sym.imp.USER32.dll_GetWindowLongW]
push 0xfffffffffffffff0
push dword [ebp + 8]
mov dword [ebx + 0x20], eax
call esi
test eax, 0x10000000
jne 0x41c6e3
mov byte [ebx + 0x28], 1
jmp 0x41c709
test eax, 0x21000000
je 0x41c6f0
mov byte [ebx + 0x28], 5
jmp 0x41c709
push 8
push dword [ebx + 0x20]
mov byte [ebx + 0x28], 7
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [ebp + 8]
mov ecx, ebx
call fcn.0041d0fd
push 0xfffffffffffffffc
push dword [ebp + 8]
call esi
push 0x41cf00
push 0xfffffffffffffffc
push dword [ebp + 8]
mov dword [ebx + 0x24], eax
call dword [sym.imp.USER32.dll_SetWindowLongW]
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x41d738
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push esi
push 0x38
lea eax, [ebp - 0x38]
mov dword [ebp - 0x3c], 0x3c
push 0
push eax
call fcn.0041f990
mov eax, dword [ebp + 8]
add esp, 0xc
xor esi, esi
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0xc]
inc esi
mov dword [ebp - 0x38], 0x200
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x28], eax
call fcn.0041dffb
test eax, eax
mov ecx, str.runas
lea eax, [ebp - 0x3c]
cmovne ecx, dword [ebp - 0x30]
push eax
mov dword [ebp - 0x30], ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x41d798
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x41d79f
Capabilities:
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xfe0
mov eax, dword [0x4570ac]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0xfa4]
push edi
push 0x7d0
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea eax, [ebp - 0xfa4]
push esi
push eax
call fcn.00423907
push 0x3c
xor edi, edi
lea eax, [ebp - 0xfe0]
push edi
push eax
call fcn.0041f990
add esp, 0x14
mov dword [ebp - 0xfdc], 0x200
xor eax, eax
mov dword [ebp - 0xfcc], esi
inc eax
mov ecx, str.open
mov dword [ebp - 0xfd4], ecx
push eax
push edi
push edi
push esi
push ecx
push edi
mov dword [ebp - 0xfc4], eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
ja 0x41d831
push edi
push edi
lea eax, [ebp - 0xfa4]
push edi
push eax
call fcn.0041d841
add esp, 0x10
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00413200
mov esp, ebp
pop ebp
ret
Function at 0x41d841
Capabilities:
Create process on windows

Disassembly:
push 0x88
mov eax, 0x43b62a
call fcn.0041327c
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x94]
mov edi, dword [ebp + 0xc]
push 0x44
pop ebx
push ebx
push 0
push eax
call fcn.0041f990
push 0x10
lea eax, [ebp - 0x50]
mov dword [ebp - 0x94], ebx
push 0
push eax
call fcn.0041f990
add esp, 0x18
xor edx, edx
xor eax, eax
mov dword [ebp - 0x18], edx
mov word [ebp - 0x28], ax
push 7
pop ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 4], edx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x30], edx
mov word [ebp - 0x40], ax
or ebx, 0xffffffff
mov byte [ebp - 4], 1
test edi, edi
je 0x41d91f
cmp word [edi], dx
jne 0x41d8b0
mov eax, edx
jmp 0x41d8b7
push edi
call fcn.00423bc4
pop ecx
push eax
push edi
lea ecx, [ebp - 0x40]
call fcn.00405c1f
cmp dword [ebp - 0x30], 0
je 0x41d91f
mov edi, 0x4405a8
push edi
call fcn.00423bc4
pop ecx
push eax
push edi
lea ecx, [ebp - 0x28]
call fcn.00405c1f
xor edi, edi
cmp word [esi], di
jne 0x41d8e8
mov eax, edi
jmp 0x41d8ef
push esi
call fcn.00423bc4
pop ecx
push eax
push esi
lea ecx, [ebp - 0x28]
call fcn.00405abf
mov esi, 0x443034
push esi
call fcn.00423bc4
pop ecx
push eax
push esi
lea ecx, [ebp - 0x28]
call fcn.00405abf
push ebx
push edi
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x28]
call fcn.00405a20
jmp 0x41d93b
xor edi, edi
cmp word [esi], di
jne 0x41d92a
mov eax, edi
jmp 0x41d931
push esi
call fcn.00423bc4
pop ecx
push eax
push esi
lea ecx, [ebp - 0x28]
call fcn.00405c1f
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x50]
push ecx
lea ecx, [ebp - 0x94]
push ecx
push edi
push edi
push edi
push 1
push edi
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push edi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x41d968
mov esi, edi
jmp 0x41d993
cmp byte [ebp + 0x10], 0
je 0x41d980
cmp dword [ebp + 0x14], 0
cmovg ebx, dword [ebp + 0x14]
push ebx
push dword [ebp - 0x50]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x50]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x4c]
call esi
xor esi, esi
inc esi
push edi
push 1
lea ecx, [ebp - 0x40]
call fcn.004059c9
push edi
push 1
lea ecx, [ebp - 0x28]
call fcn.004059c9
mov eax, esi
call fcn.00413226
ret

Function at 0x41d9b1
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push esi
mov esi, dword [ebp + 8]
push esi
call fcn.00423bc4
pop ecx
test eax, eax
je 0x41da14
push ebx
push edi
push 0x3c
xor edi, edi
lea eax, [ebp - 0x3c]
push edi
push eax
call fcn.0041f990
add esp, 0xc
mov dword [ebp - 0x38], 0x200
xor ebx, ebx
mov dword [ebp - 0x28], esi
inc ebx
mov eax, str.open
mov dword [ebp - 0x30], eax
push ebx
push edi
push edi
push esi
push eax
push edi
mov dword [ebp - 0x20], ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
ja 0x41da10
push edi
push edi
push edi
push esi
call fcn.0041d841
add esp, 0x10
jmp 0x41da12
mov eax, ebx
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x41da19
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x828
mov eax, dword [0x4570ac]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x828]
push edi
mov edi, dword [ebp + 0xc]
push 0x44
pop ebx
push ebx
push 0
push eax
call fcn.0041f990
mov dword [ebp - 0x828], ebx
lea eax, [ebp - 0x7e4]
push 0x10
xor ebx, ebx
push ebx
push eax
call fcn.0041f990
push esi
lea eax, [ebp - 0x7d4]
push 0x43e708
push eax
call fcn.00416a93
add esp, 0x24
lea eax, [ebp - 0x7e4]
push eax
lea eax, [ebp - 0x828]
push eax
push ebx
push ebx
push ebx
push 1
push ebx
push ebx
lea eax, [ebp - 0x7d4]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x41dace
push 0xffffffffffffffff
push dword [ebp - 0x7e4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
push dword [ebp - 0x7e4]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 0x7e4]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x7e0]
call esi
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00413200
mov esp, ebp
pop ebp
ret

Function at 0x41dadf
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x82c
mov eax, dword [0x4570ac]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x82c]
push 0x44
xor ebx, ebx
push ebx
push eax
call fcn.0041f990
push 0x10
lea eax, [ebp - 0x7e4]
mov dword [ebp - 0x82c], 0x44
push ebx
push eax
call fcn.0041f990
push esi
lea eax, [ebp - 0x7d4]
push 0x43e708
push eax
call fcn.00416a93
add esp, 0x24
lea eax, [ebp - 0x7e4]
push eax
lea eax, [ebp - 0x82c]
push eax
push ebx
push ebx
push ebx
push 1
push ebx
push ebx
lea eax, [ebp - 0x7d4]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x41db94
push 0xffffffffffffffff
push dword [ebp - 0x7e4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x7e8]
push eax
push dword [ebp - 0x7e4]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 0x7e4]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x7e0]
call esi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00413200
mov esp, ebp
pop ebp
ret
Function at 0x41dd91
Capabilities:
Enumerate processes

Disassembly:
push 0x678
mov eax, 0x43b695
call fcn.0041327c
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x67c]
push 0x22c
xor ebx, ebx
push ebx
push eax
call fcn.0041f990
push 0x208
lea eax, [ebp - 0x218]
push ebx
push eax
call fcn.0041f990
add esp, 0x18
push ebx
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
jne 0x41dddf
xor eax, eax
jmp 0x41de45
lea eax, [ebp - 0x67c]
mov dword [ebp - 0x67c], 0x22c
push eax
push esi
call sub.KERNEL32.dll_Process32FirstW
jmp 0x41de37
lea eax, [ebp - 0x658]
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.00423907
lea eax, [ebp - 0x218]
push eax
call fcn.0042a93d
lea eax, [ebp - 0x218]
push eax
call fcn.0041dd0d
add esp, 0x10
test al, al
jne 0x41de4b
lea eax, [ebp - 0x67c]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x41ddf8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
call fcn.00413226
ret
push 0x208
lea eax, [ebp - 0x420]
push ebx
push eax
call fcn.0041f990
add esp, 0xc
push dword [ebp - 0x674]
push ebx
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push 0x104
lea ecx, [ebp - 0x420]
push ecx
push ebx
push eax
call sub.PSAPI.DLL_GetModuleFileNameExW
sub esp, 0x18
lea eax, [ebp - 0x420]
mov ecx, esp
mov dword [ebp - 0x680], esp
push eax
call fcn.00406567
sub esp, 0x18
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x218]
mov ecx, esp
push eax
call fcn.00406567
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x450]
call fcn.0041d6c4
xor esi, esi
mov ecx, edi
inc esi
push eax
mov dword [ebp - 4], esi
call fcn.0041e308
lea ecx, [ebp - 0x450]
call fcn.0041d71c
mov eax, esi
jmp 0x41de45

Function at 0x41dffb
Capabilities:
Check os version
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x4570ac]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x144]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov esi, 0x11c
lea eax, [ebp - 0x120]
push esi
push 0
push eax
call fcn.0041f990
add esp, 0xc
mov dword [ebp - 0x120], esi
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x11c], 5
pop esi
jg 0x41e05e
cmp dword [ebp - 0x118], 2
jg 0x41e05e
xor eax, eax
inc eax
jmp 0x41e060
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00413200
mov esp, ebp
pop ebp
ret
Function at 0x41e90f
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x4570ac]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, ecx
mov esi, 0x457128
cmp dword [esi], eax
je 0x41e948
add esi, 0x50
cmp esi, 0x457998
jl 0x41e932
xor al, al
jmp 0x41ea12
push 0x190
lea eax, [ebp - 0x194]
push 0
push eax
call fcn.0041f990
add edi, 4
add esp, 0xc
cmp dword [edi + 0x14], 8
jb 0x41e969
mov edi, dword [edi]
lea eax, [esi + 0x38]
cmp dword [eax + 0x14], 8
jb 0x41e974
mov eax, dword [eax]
lea ecx, [esi + 0x20]
cmp dword [ecx + 0x14], 8
jb 0x41e97f
mov ecx, dword [ecx]
lea edx, [esi + 8]
cmp dword [edx + 0x14], 8
jb 0x41e98a
mov edx, dword [edx]
push edi
push 0xc8
lea edi, [ebp - 0x194]
push edi
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp word [ebp - 0x194], 0
jne 0x41e9ae
xor eax, eax
jmp 0x41e9bb
lea eax, [ebp - 0x194]
push eax
call fcn.00423bc4
pop ecx
push eax
lea eax, [ebp - 0x194]
lea edi, [ebx + 8]
push eax
mov ecx, edi
call fcn.00405c1f
mov eax, dword [esi + 4]
mov dword [ebx], eax
cmp dword [esi + 4], 1
jne 0x41e9ee
cmp dword [edi + 0x14], 8
jb 0x41e9e2
mov eax, dword [edi]
jmp 0x41e9e4
mov eax, edi
push eax
call fcn.00424653
pop ecx
mov dword [ebx + 4], eax
cmp dword [esi + 4], 3
jne 0x41ea10
cmp dword [edi + 0x14], 8
jb 0x41e9fc
mov edi, dword [edi]
push edi
call fcn.00424653
pop ecx
xor ecx, ecx
mov dword [ebx + 4], eax
test eax, eax
setg cl
mov dword [ebx + 0x20], ecx
mov al, 1
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00413200
mov esp, ebp
pop ebp
ret 8

Function at 0x42fc0f
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0042f8cf

Function at 0x401000
Capabilities:
Create process on windows

Disassembly:
push 0
push 0
push 0x402100
push str.cmd.exe
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
ret 0x10

Function at 0x40184e
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40188d
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40188d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40188d
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40188d
cmp dword [ecx + 0x74], 0xe
jbe 0x40188d
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x4011a6
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
push ebx
push esi
xor ebx, ebx
push edi
push ebx
push 0x8000080
push 3
push ebx
push 1
push 0x80000000
push dword [ebp + 8]
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
or esi, 0xffffffff
cmp edi, esi
mov dword [ebp + 8], edi
je 0x401372
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [ebp - 8]
push ebx
push eax
lea eax, [ebp - 0xb4]
push 0x40
push eax
push edi
call esi
test eax, eax
je 0x401352
mov eax, dword [ebp - 0x78]
push ebx
add eax, 4
push ebx
push eax
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
call edi
cmp eax, 0xffffffff
jne 0x401220
push 0xfffffffffffffffd
jmp 0x401354
lea eax, [ebp - 8]
push ebx
push eax
lea eax, [ebp - 0x34]
push 0x14
push eax
push dword [ebp + 8]
call esi
test eax, eax
je 0x401352
lea eax, [ebp - 8]
push ebx
push eax
lea eax, [ebp - 0x194]
push 0xe0
push eax
push dword [ebp + 8]
call esi
test eax, eax
je 0x401352
cmp word [ebp - 0x32], bx
mov dword [ebp - 0xc], ebx
jbe 0x401289
lea eax, [ebp - 8]
push ebx
push eax
lea eax, [ebp - 0x74]
push 0x28
push eax
push dword [ebp + 8]
call esi
test eax, eax
je 0x401352
mov eax, dword [ebp - 0x64]
add dword [ebp - 4], eax
inc dword [ebp - 0xc]
movzx eax, word [ebp - 0x32]
cmp dword [ebp - 0xc], eax
jl 0x40125f
push 1
push ebx
push ebx
push dword [ebp + 8]
call edi
add dword [ebp - 4], eax
xor edx, edx
mov eax, dword [ebp - 4]
div dword [ebp - 0x170]
test edx, edx
je 0x4012ba
mov eax, dword [ebp - 4]
xor edx, edx
div dword [ebp - 0x170]
inc eax
imul eax, dword [ebp - 0x170]
mov dword [ebp - 4], eax
push ebx
push ebx
push dword [ebp - 4]
push dword [ebp + 8]
call edi
cmp eax, 0xffffffff
je 0x401219
lea eax, [ebp - 8]
push ebx
push eax
lea eax, [ebp - 0x20]
push 0x10
push eax
push dword [ebp + 8]
call esi
test eax, eax
je 0x401352
lea eax, [ebp - 0x20]
push eax
push str.NB10
call fcn.00402140
pop ecx
test eax, eax
pop ecx
jne 0x401325
mov dword [ebp - 0xc], ebx
lea eax, [ebp - 8]
push ebx
push eax
lea eax, [ebp - 0x20]
push 1
push eax
push dword [ebp + 8]
call esi
test eax, eax
je 0x401316
cmp byte [ebp - 0x20], bl
je 0x401316
inc dword [ebp - 0xc]
jmp 0x4012f8
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
lea eax, [eax + ecx + 0x11]
mov dword [ebp - 4], eax
jmp 0x401328
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0xc]
push ebx
push ebx
push eax
push dword [ebp + 8]
mov dword [ecx], eax
call edi
cmp eax, 0xffffffff
je 0x401219
lea eax, [ebp - 8]
push ebx
push eax
lea eax, [ebp - 0x4c]
push 0x18
push eax
push dword [ebp + 8]
call esi
test eax, eax
jne 0x401357
push 0xfffffffffffffffe
pop esi
jmp 0x401369
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 4]
mov esi, dword [ebp - 0x10]
lea eax, [eax + ecx + 0x18]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4019f6
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0xc]
push dword [esp + 0x14]
push esi
push 1
push edi
call fcn.00401e51
add esp, 0x10
cmp eax, esi
jae 0x401a19
push 0xfffffffffffffffc
pop eax
jmp 0x401a4b
dec esi
js 0x401a49
lea eax, [esi + 1]
mov ecx, dword [0x40cec0]
movzx esi, byte [edi]
mov edx, ecx
and edx, 0xff
xor edx, esi
shr ecx, 8
movzx edx, word [edx*2 + 0x40cee0]
xor edx, ecx
inc edi
dec eax
mov dword [0x40cec0], edx
jne 0x401a1f
xor eax, eax
pop edi
pop esi
ret
Function at 0x404ed5
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x40a140
cmp edx, dword [eax]
je 0x404ef7
add eax, 8
inc ecx
cmp eax, 0x40a1d0
jl 0x404ee8
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x40a140]
jne 0x405025
mov eax, dword [0x40cd0c]
cmp eax, 1
je 0x404fff
test eax, eax
jne 0x404f28
cmp dword [0x408064], 1
je 0x404fff
cmp edx, 0xfc
je 0x405025
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x404f5f
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004061b0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004062a0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x404fa2
lea eax, [ebp - 0x1a4]
push eax
call fcn.004062a0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4073f8
push edi
call fcn.004063b0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004061b0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004061c0
lea eax, [ebp - 0xa0]
push 0x4073d8
push eax
call fcn.004061c0
push dword [esi + 0x40a144]
lea eax, [ebp - 0xa0]
push eax
call fcn.004061c0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0040631b
add esp, 0x2c
pop edi
jmp 0x405025
lea eax, [ebp + 8]
lea esi, [esi + 0x40a144]
push 0
push eax
push dword [esi]
call fcn.004062a0
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