joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403310
Capabilities:
Set registry value

Disassembly:
sub esp, 0x318
mov eax, dword [0x43b180]
push esi
mov dword [esp + 0x318], eax
lea eax, [esp + 8]
push eax
push 0xf003f
push 0
push str.softwareMicrosoftWindowsCurrentVersionUninstall
push reloc.OLEAUT32.dll_SysReAllocString
mov esi, ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40341e
mov edx, dword [esp + 8]
push edi
push eax
lea ecx, [esp + 0xc]
push ecx
push eax
push 0xf003f
push eax
push eax
push eax
push 0x42f1d8
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jne 0x403416
lea eax, [esp + 0x10]
push 0x42f1d8
push eax
call fcn.00412966
mov ecx, dword [esi + 0x1c]
push ecx
lea edx, [esp + 0x120]
push str._suninst.exe
push edx
call fcn.00412966
mov eax, dword [esi + 0x1c]
push eax
lea ecx, [esp + 0x230]
push str._shengdiangou.exe
push ecx
call fcn.00412966
mov eax, dword [esp + 0x28]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
add esp, 0x20
push 0x104
lea edx, [esp + 0x14]
push edx
push 1
push 0
push str.DisplayName
push eax
call esi
mov edx, dword [esp + 8]
push 0x104
lea ecx, [esp + 0x118]
push ecx
push 1
push 0
push str.UninstallString
push edx
call esi
mov ecx, dword [esp + 8]
push 0x104
lea eax, [esp + 0x21c]
push eax
push 1
push 0
push str.DisplayIcon
push ecx
call esi
mov edx, dword [esp + 8]
push edx
call edi
mov eax, dword [esp + 0xc]
push eax
call edi
pop edi
mov ecx, dword [esp + 0x318]
xor eax, eax
pop esi
call fcn.004120ce
add esp, 0x318
ret

Function at 0x403710
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x42c588
push eax
mov dword fs:[0], esp
sub esp, 0x10
push esi
call fcn.004290be
movzx ecx, word [esp + 0x28]
mov eax, dword [eax + 4]
mov edx, dword [eax + 0x40]
push 0x42f250
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
jne 0x40375e
pop esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret 8
push edi
call fcn.004290be
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x40]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
call fcn.004290be
mov eax, dword [eax + 4]
mov ecx, dword [eax + 0x40]
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [esp + 0x28]
push 0x1001
push edx
lea ecx, [esp + 0x10]
mov esi, eax
call fcn.00424a12
mov eax, dword [esp + 0xc]
test eax, eax
mov dword [esp + 0x20], 0
lea ecx, [esp + 8]
jne 0x4037d9
mov dword [esp + 0x20], 0xffffffff
call fcn.00424626
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret 8
push esi
push edi
call fcn.0042433a
lea ecx, [esp + 8]
call fcn.00424585
lea ecx, [esp + 8]
mov dword [esp + 0x20], 0xffffffff
call fcn.00424626
mov ecx, dword [esp + 0x18]
pop edi
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x1c
ret 8
Function at 0x403f36
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x264
mov eax, dword [0x43b180]
push ebx
mov ebx, dword [esp + 0x26c]
imul ebx, ebx, 0x1c
push esi
mov esi, ecx
mov dword [esp + 0x268], eax
mov eax, dword [esi + 4]
mov ecx, dword [eax + ebx + 0x10]
mov edx, dword [ecx - 0xc]
add eax, ebx
test edx, edx
jne 0x403f6c
pop esi
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x260]
call fcn.004120ce
add esp, 0x264
ret 4
push edi
lea edi, [eax + 0x14]
mov eax, dword [edi]
mov ecx, dword [eax - 0xc]
test ecx, ecx
jle 0x403f9f
push 0x24
push eax
call fcn.004120dc
add esp, 8
test eax, eax
je 0x403f9f
sub eax, dword [edi]
cmp eax, 0xffffffff
je 0x403f9f
mov edx, dword [esi + 0x1c]
push edx
push str._INSDIR
mov ecx, edi
call fcn.00403a40
xor eax, eax
mov ecx, 0x11
lea edi, [esp + 0x20]
rep stosd dword es:[edi], eax
mov ecx, dword [esi + 4]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
lea eax, [ebx + ecx]
mov ecx, dword [esi + 0x1c]
mov dword [esp + 0x20], 0x44
mov edx, dword [eax + 0x14]
mov eax, dword [eax + 0x10]
push edx
push eax
push ecx
lea edx, [esp + 0x174]
push str._s_s__s
push edx
call fcn.00412966
lea eax, [esp + 0x17c]
push eax
lea ecx, [esp + 0x7c]
push 0x42f2a4
push ecx
call fcn.00412966
add esp, 0x20
lea edx, [esp + 0x64]
push edx
mov ecx, esi
call fcn.00403440
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x24]
push ecx
push 0
push 0
push 0
push 1
push 0
push 0
lea edx, [esp + 0x188]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x40409a
mov eax, dword [esi + 4]
mov ecx, dword [eax + ebx]
mov edx, dword [eax + ebx + 0x10]
add eax, ebx
mov eax, dword [esi + 0x1c]
push ecx
push edx
push eax
lea ecx, [esp + 0x70]
push str._s_s
push ecx
call fcn.00412966
add esp, 0x14
lea edx, [esp + 0x64]
push edx
mov ecx, esi
call fcn.00403440
mov ecx, dword [esi + 0x10]
test ecx, ecx
je 0x404080
push 0
push 0x42f27c
lea eax, [esp + 0x6c]
push eax
call fcn.00420e9a
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x260]
call fcn.004120ce
add esp, 0x264
ret 4
mov ecx, dword [esp + 0x10]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 0x10]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov ecx, dword [esp + 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call edi
mov edx, dword [esp + 0x14]
push edx
call edi
mov eax, dword [esp + 0xc]
test eax, eax
mov eax, dword [esi + 4]
mov ecx, dword [ebx + eax]
lea edx, [esp + 0x64]
push ecx
je 0x4040e5
push 0x42f26c
jmp 0x4040ea
push 0x42f25c
push edx
call fcn.00412966
add esp, 0xc
lea eax, [esp + 0x64]
push eax
mov ecx, esi
call fcn.00403440
mov ecx, dword [esp + 0x26c]
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebx
call fcn.004120ce
add esp, 0x264
ret 4
Function at 0x404140
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x42c5d8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, dword [esp + 0x1c]
mov eax, dword [esi]
mov ecx, dword [eax - 0x10]
mov edx, dword [ecx]
push edi
xor edi, edi
mov dword [esp + 8], edi
call dword [edx + 0x10]
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x24]
mov eax, dword [eax]
mov edx, dword [eax - 0xc]
mov ecx, dword [esi]
mov esi, dword [ecx - 0xc]
push edx
push eax
push esi
push ecx
lea ecx, [esp + 0x30]
push ecx
mov dword [esp + 0x28], edi
call fcn.00403db0
mov esi, dword [esp + 0x34]
add esi, 0xfffffff0
push esi
call fcn.004014c0
mov edi, dword [esp + 0x34]
add eax, 0x10
mov dword [edi], eax
add esp, 0x18
mov dword [esp + 0x14], 0xffffffff
lea edx, [esi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x4041d2
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call dword [edx + 4]
mov ecx, dword [esp + 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 0xc
Function at 0x406710
Capabilities:
Delete file
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x21c
mov eax, dword [0x43b180]
push ebx
push esi
push edi
mov dword [esp + 0x224], eax
mov ebx, ecx
xor eax, eax
mov byte [esp + 0x10], 0
mov ecx, 0x40
lea edi, [esp + 0x11]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0
stosb byte es:[edi], al
push 0x26
lea eax, [esp + 0x18]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
jne 0x40677e
push eax
push 0x42f818
push 0x42f7fc
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
mov ecx, dword [esp + 0x224]
call fcn.004120ce
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x10]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x406785
sub eax, edx
push eax
lea ecx, [esp + 0x14]
lea esi, [ebx + 0x1c]
push ecx
mov ecx, esi
call fcn.00401680
lea edx, [esp + 0x118]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea edi, [esp + 0x118]
dec edi
lea esp, [esp]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4067c0
mov eax, dword [str.Setup.ini]
mov ecx, dword [0x42f7f4]
mov dx, word [0x42f7f8]
mov dword [edi], eax
mov dword [edi + 4], ecx
push 0x8d
lea eax, [esp + 0x11c]
push eax
mov ecx, ebx
mov word [edi + 8], dx
call fcn.00403710
test eax, eax
je 0x406769
lea ecx, [esp + 0x118]
push ecx
mov ecx, ebx
call fcn.00405c00
lea edx, [esp + 0x118]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 1
lea eax, [esp + 0x10]
push eax
mov ecx, esi
call fcn.00403c40
mov eax, dword [eax]
push 0x42ea98
push eax
call fcn.00412ade
add esp, 8
test eax, eax
mov eax, dword [esp + 0xc]
setne bl
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40685d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
test bl, bl
je 0x40686d
push 0x42ea98
mov ecx, esi
call fcn.004042b0
mov ecx, dword [esp + 0x224]
mov eax, 1
call fcn.004120ce
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x407523
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x407538
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x40754a
xor eax, eax
jmp 0x40757c
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x40756e
cmp esi, eax
jae 0x407546
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x407560
cmp esi, eax
jae 0x407546
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop ebp
ret
Function at 0x408fc8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
je 0x40901b
call fcn.004290be
mov edi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebx
je 0x40901b
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x409011
xor eax, eax
jmp 0x409134
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], ebx
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0xc], 1
je 0x40904b
mov eax, dword [esi]
push edi
push dword [ebp - 4]
mov ecx, esi
push ebx
call dword [eax + 0x1c]
cmp dword [ebp - 8], 0
mov dword [ebp - 0xc], eax
je 0x40904b
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebx + 0x48]
test eax, eax
je 0x409131
mov ecx, dword [eax + 0x40]
and dword [ebp + 0xc], 0
test ecx, ecx
mov dword [ebp + 8], ecx
mov dword [ebp - 8], ecx
je 0x409078
lea ecx, [eax + 0x3c]
lea eax, [ebp + 8]
push eax
call fcn.00409d23
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
xor eax, eax
cmp dword [edi + 8], eax
mov dword [ebp - 4], eax
jbe 0x409131
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x4090c1
mov ecx, dword [ecx + 4]
mov edx, dword [edi + 0xc]
mov ecx, dword [ecx + 0x28]
cmp ecx, dword [edx + eax*8]
jne 0x4090c1
mov eax, dword [ebp + 8]
test eax, eax
mov dword [ebp - 8], eax
je 0x4090bb
mov ecx, dword [ebx + 0x48]
lea eax, [ebp + 8]
add ecx, 0x3c
push eax
call fcn.00409d23
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
jmp 0x409121
and dword [ebp + 0xc], 0
jmp 0x409121
mov ecx, dword [edi + 0xc]
shl eax, 3
cmp dword [eax + ecx], 0
mov dword [ebp - 0x10], eax
je 0x409121
push 0xc
call fcn.004242c0
mov esi, eax
test esi, esi
pop ecx
je 0x409103
mov eax, dword [edi + 0xc]
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebx + 0x1c]
add eax, edx
push dword [eax]
mov edi, dword [eax + 4]
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
and dword [esi + 4], 0
mov dword [esi + 8], edi
mov edi, dword [ebp + 0x10]
mov dword [esi], eax
jmp 0x409105
xor esi, esi
mov ecx, dword [ebx + 0x48]
add ecx, 0x3c
cmp dword [ebp - 8], 0
push esi
je 0x40911c
push dword [ebp - 8]
call fcn.0041ef95
jmp 0x409121
call fcn.0041ef6c
mov eax, dword [ebp - 4]
inc eax
cmp eax, dword [edi + 8]
mov dword [ebp - 4], eax
jb 0x409086
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x411800
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
cmp dword [ebp + 0x10], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edx, ebx
je 0x4119d4
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x43f7a0]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x4119d4
test cl, 0x48
je 0x41186b
cmp byte [eax + 5], 0xa
je 0x41186b
mov eax, dword [edi]
mov al, byte [eax + esi + 5]
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea edx, [ebx + 1]
mov dword [ebp - 8], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push edx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4118bd
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x4118a5
call fcn.00414d03
mov dword [eax], 9
call fcn.00414d0c
mov dword [eax], esi
jmp 0x4118b5
cmp eax, 0x6d
je 0x4119d4
push eax
call fcn.00414d15
pop ecx
or eax, 0xffffffff
jmp 0x4119d6
mov eax, dword [ebp - 0xc]
mov ecx, dword [edi]
add dword [ebp - 8], eax
test byte [ecx + esi + 4], 0x80
je 0x4119cf
test eax, eax
je 0x4118e4
cmp byte [ebx], 0xa
jne 0x4118e4
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x4118ed
mov eax, dword [edi]
lea eax, [eax + esi + 4]
and byte [eax], 0xfb
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
add ecx, eax
cmp eax, ecx
mov dword [ebp + 0x10], eax
mov dword [ebp - 8], ecx
jae 0x4119c9
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x4119b9
cmp al, 0xd
je 0x41191f
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x4119ab
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x411939
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x411934
add dword [ebp + 0x10], 2
jmp 0x41198d
mov dword [ebp + 0x10], eax
jmp 0x4119a7
inc dword [ebp + 0x10]
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x411961
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4119a7
cmp dword [ebp - 0xc], 0
je 0x4119a7
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x411982
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x41198d
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x4119aa
cmp ebx, dword [ebp + 0xc]
jne 0x411992
cmp byte [ebp - 1], 0xa
jne 0x411992
mov byte [ebx], 0xa
jmp 0x4119aa
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00411e1d
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x4119ab
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x411903
jmp 0x4119c9
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x4119c9
lea esi, [eax + esi + 4]
or byte [esi], 2
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x4119d6
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x411a86
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x43b180]
push edi
xor edi, edi
cmp dword [ebp + 0x3b0], edi
mov dword [ebp + 0x39c], eax
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x7c], edi
jne 0x411ab7
xor eax, eax
jmp 0x411c40
mov eax, dword [ebp + 0x3a8]
push ebx
mov ebx, dword [ebp + 0x3a8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x43f7a0]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x411af3
push 2
push edi
push edi
push dword [ebp + 0x3a8]
call fcn.004167e8
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x411bce
cmp dword [ebp + 0x3b0], edi
mov eax, dword [ebp + 0x3ac]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x6c], edi
jbe 0x411c0c
mov ecx, dword [ebp - 0x74]
sub ecx, dword [ebp + 0x3ac]
lea eax, [ebp - 0x68]
mov dword [ebp - 0x70], edi
cmp ecx, dword [ebp + 0x3b0]
jae 0x411b57
mov edx, dword [ebp - 0x74]
inc dword [ebp - 0x74]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x411b48
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0x70]
mov byte [eax], dl
inc eax
inc dword [ebp - 0x70]
cmp dword [ebp - 0x70], 0x400
jl 0x411b28
mov edi, eax
lea eax, [ebp - 0x68]
sub edi, eax
push 0
lea eax, [ebp - 0x80]
push eax
push edi
lea eax, [ebp - 0x68]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x411b97
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x78], eax
cmp eax, edi
jl 0x411ba0
mov eax, dword [ebp - 0x74]
sub eax, dword [ebp + 0x3ac]
xor edi, edi
cmp eax, dword [ebp + 0x3b0]
jb 0x411b19
jmp 0x411ba2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
xor edi, edi
mov eax, dword [ebp - 0x78]
cmp eax, edi
jne 0x411c3b
cmp dword [ebp - 0x6c], edi
je 0x411c0c
push 5
pop esi
cmp dword [ebp - 0x6c], esi
jne 0x411c01
call fcn.00414d03
mov dword [eax], 9
call fcn.00414d0c
mov dword [eax], esi
jmp 0x411c36
push edi
lea ecx, [ebp - 0x80]
push ecx
push dword [ebp + 0x3b0]
push dword [ebp + 0x3ac]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x411bf6
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x78], eax
jmp 0x411ba2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
jmp 0x411ba2
push dword [ebp - 0x6c]
call fcn.00414d15
pop ecx
jmp 0x411c36
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x411c24
mov eax, dword [ebp + 0x3ac]
cmp byte [eax], 0x1a
jne 0x411c24
xor eax, eax
jmp 0x411c3e
call fcn.00414d03
mov dword [eax], 0x1c
call fcn.00414d0c
mov dword [eax], edi
or eax, 0xffffffff
jmp 0x411c3e
sub eax, dword [ebp - 0x7c]
pop esi
pop ebx
mov ecx, dword [ebp + 0x39c]
pop edi
call fcn.004120ce
add ebp, 0x3a0
leave
ret
Function at 0x412f0a
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, dword [ebp + 0x10]
xor ebx, ebx
test edi, edi
jne 0x412f27
call fcn.00414d03
mov dword [eax], 0x16
xor eax, eax
jmp 0x412f91
push esi
push 0x8c
push 1
call fcn.00415347
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x412f7c
push esi
call fcn.00416d34
mov eax, dword [ebp + 0x14]
or dword [esi + 4], 0xffffffff
mov dword [esi + 0x50], eax
mov eax, dword [ebp + 0x1c]
test eax, eax
pop ecx
mov dword [esi + 0x4c], edi
jne 0x412f5a
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x18]
push esi
push 0x412e75
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x412f90
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push esi
call fcn.00411453
test ebx, ebx
pop ecx
je 0x412f8e
push ebx
call fcn.00414d15
pop ecx
xor eax, eax
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x413087
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.00413280
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x413122
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x43e244]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x413122
cmp eax, 1
je 0x413143
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x413122
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x4130ef
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x41311e
xor eax, eax
inc eax
jmp 0x413162
cmp edi, eax
jae 0x413126
xor eax, eax
jmp 0x413162
cmp eax, esi
jae 0x41312d
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x43e244]
jmp 0x413146
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x413322
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x4329a8
call fcn.004143fc
mov edi, 0x94
mov eax, edi
call fcn.00413280
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x43e244], ecx
mov eax, dword [esi + 4]
mov dword [0x43e250], eax
mov edx, dword [esi + 8]
mov dword [0x43e254], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x43e248], esi
cmp ecx, 2
je 0x413382
or esi, 0x8000
mov dword [0x43e248], esi
shl eax, 8
add eax, edx
mov dword [0x43e24c], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x4133bd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4133bd
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x4133d5
cmp eax, 0x20b
je 0x4133c2
mov dword [ebp - 0x1c], esi
jmp 0x4133e9
cmp dword [ecx + 0x84], 0xe
jbe 0x4133bd
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x4133e3
cmp dword [ecx + 0x74], 0xe
jbe 0x4133bd
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.004155a0
pop ecx
test eax, eax
jne 0x4133fd
push 0x1c
call fcn.004132fe
pop ecx
call fcn.00416f2e
test eax, eax
jne 0x41340e
push 0x10
call fcn.004132fe
pop ecx
call fcn.00419353
mov dword [ebp - 4], esi
call fcn.00416270
test eax, eax
jge 0x413427
push 0x1b
call fcn.004132d9
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x43fb10], eax
call fcn.00419231
mov dword [0x43e230], eax
call fcn.0041918f
test eax, eax
jge 0x41344d
push 8
call fcn.004132d9
pop ecx
call fcn.00418f5c
test eax, eax
jge 0x41345e
push 9
call fcn.004132d9
pop ecx
push 1
call fcn.00414261
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x413474
push eax
call fcn.004132d9
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.00418eff
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x413495
movzx eax, word [ebp - 0x40]
jmp 0x413498
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.0041e5bc
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x4134b6
push edi
call fcn.0041438e
call fcn.004143b0
jmp 0x4134e8
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.00414437
ret