joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1003cdd3
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
cmp eax, ebx
push edi
mov dword [ebp - 0x10], ebx
jne 0x1003cdec
or eax, 0xffffffff
jmp 0x1003ce4d
push esi
mov esi, dword [eax]
cmp esi, ebx
mov dword [ebp - 4], esi
je 0x1003ce49
push 0x3d
push esi
call fcn.1003cfd3
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
je 0x1003ce49
cmp esi, eax
je 0x1003ce49
xor ecx, ecx
cmp byte [eax + 1], bl
mov eax, dword [0x1005ad50]
sete cl
cmp eax, dword [0x1005ad54]
mov dword [ebp - 8], ecx
jne 0x1003ce2f
mov edi, eax
call fcn.1003cd72
mov dword [0x1005ad50], eax
cmp eax, ebx
jne 0x1003ce88
cmp dword [ebp + 0xc], ebx
je 0x1003ce51
cmp dword [0x1005ad58], ebx
je 0x1003ce51
call fcn.1003c1d8
test eax, eax
je 0x1003ce88
or eax, 0xffffffff
pop esi
pop edi
pop ebx
leave
ret
cmp dword [ebp - 8], ebx
je 0x1003ce5a
xor eax, eax
jmp 0x1003ce4c
push 4
call fcn.1000ef99
cmp eax, ebx
pop ecx
mov dword [0x1005ad50], eax
je 0x1003ce49
mov dword [eax], ebx
cmp dword [0x1005ad58], ebx
jne 0x1003ce88
push 4
call fcn.1000ef99
cmp eax, ebx
pop ecx
mov dword [0x1005ad58], eax
je 0x1003ce49
mov dword [eax], ebx
mov edi, dword [ebp - 0xc]
sub edi, dword [ebp - 4]
push dword [ebp - 4]
mov esi, dword [0x1005ad50]
call fcn.1003cd25
mov edi, eax
cmp edi, ebx
pop ecx
jl 0x1003cee9
cmp dword [esi], ebx
je 0x1003cee9
lea esi, [esi + edi*4]
push dword [esi]
call fcn.1000ef9e
cmp dword [ebp - 8], ebx
pop ecx
jne 0x1003cecc
mov eax, dword [ebp - 4]
mov dword [esi], eax
mov eax, dword [ebp + 8]
mov dword [eax], ebx
jmp 0x1003cf2a
mov eax, dword [esi + 4]
mov dword [esi], eax
inc edi
add esi, 4
cmp dword [esi], ebx
jne 0x1003cec3
mov eax, edi
shl eax, 2
push eax
push dword [0x1005ad50]
call fcn.1000efaf
cmp eax, ebx
pop ecx
pop ecx
je 0x1003cf2a
jmp 0x1003cf25
cmp dword [ebp - 8], ebx
jne 0x1003cf95
cmp edi, ebx
jge 0x1003cef8
neg edi
lea eax, [edi*4 + 8]
push eax
push dword [0x1005ad50]
call fcn.1000efaf
cmp eax, ebx
pop ecx
pop ecx
je 0x1003ce49
mov edx, dword [ebp - 4]
lea ecx, [eax + edi*4]
mov dword [ecx], edx
mov dword [ecx + 4], ebx
mov ecx, dword [ebp + 8]
mov dword [ecx], ebx
mov dword [0x1005ad50], eax
cmp dword [ebp + 0xc], ebx
je 0x1003cf7f
push dword [ebp - 4]
call fcn.10030480
inc eax
inc eax
push eax
call fcn.1000ef99
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
je 0x1003cf7f
push dword [ebp - 4]
push esi
call fcn.10030380
mov eax, esi
sub eax, dword [ebp - 4]
pop ecx
add eax, dword [ebp - 0xc]
pop ecx
mov ecx, dword [ebp - 8]
mov byte [eax], bl
inc eax
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
jne 0x1003cf78
or dword [ebp - 0x10], 0xffffffff
push esi
call fcn.1000ef9e
pop ecx
cmp dword [ebp - 8], ebx
je 0x1003cf8d
push dword [ebp - 4]
call fcn.1000ef9e
pop ecx
mov eax, dword [ebp - 0x10]
jmp 0x1003ce4c
push dword [ebp - 4]
call fcn.1000ef9e
mov eax, dword [ebp + 8]
pop ecx
mov dword [eax], ebx
jmp 0x1003ce56
Function at 0x401880
Capabilities:
Delete directory
Delete file

Disassembly:
sub esp, 0x144
mov eax, dword [0x410058]
push esi
mov esi, dword [esp + 0x14c]
mov dword [esp + 0x144], eax
lea eax, [esp + 4]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x4018c0
mov ecx, dword [esp + 0x150]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov ecx, dword [esp + 0x144]
pop esi
call fcn.004032fb
add esp, 0x144
ret

Function at 0x4018e0
Capabilities:
Create process on windows
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x31c
mov eax, dword [0x410058]
push edi
mov dword [esp + 0x31c], eax
xor eax, eax
mov ecx, 0x40
lea edi, [esp + 0x11]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [ebp + 8]
push eax
lea ecx, [esp + 0x11c]
push str.SoftwareNHN_Corporation_s
push ecx
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0x400
mov byte [esp + 0x1c], 0
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea edx, [esp + 8]
push edx
push 1
push 0
lea eax, [esp + 0x124]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401983
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x14]
push edx
push eax
push eax
mov eax, dword [esp + 0x18]
push str.NavigateOnce
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x401996
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
mov ecx, dword [esp + 0x31c]
call fcn.004032fb
pop edi
mov esp, ebp
pop ebp
ret
push 1
push 0x40d239
push 0x40d239
lea edx, [esp + 0x1c]
push edx
push 0x40d234
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x31c]
mov al, 1
call fcn.004032fb
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x4019e0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x40
push edi
xor eax, eax
mov dword [esp + 8], 0x3c
mov ecx, 0xe
lea edi, [esp + 0xc]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x4c]
lea edx, [esp + 8]
push edx
mov dword [esp + 8], 0xffffffff
mov dword [esp + 0x10], 0x40
mov dword [esp + 0x28], 1
mov dword [esp + 0x18], 0x40d234
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
mov eax, dword [esp + 0x40]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [esp + 0x40]
lea ecx, [esp + 4]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [esp + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 4]
pop edi
add esp, 0x40
ret
Function at 0x401ab0
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x40c19b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x324
mov eax, dword [0x410058]
push ebx
push edi
mov dword [esp + 0x324], eax
xor eax, eax
mov ecx, 0x40
lea edi, [esp + 0x19]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [ebp + 8]
push eax
lea ecx, [esp + 0x124]
xor ebx, ebx
push str.SoftwareNHN_Corporation_s
push ecx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x20], 0x400
mov byte [esp + 0x24], bl
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea edx, [esp + 0xc]
push edx
push 1
push ebx
lea eax, [esp + 0x12c]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401b65
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x1c]
push edx
push ebx
push ebx
push str.AutoStartOnce
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x401b87
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
mov ecx, dword [esp + 0x32c]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x324]
call fcn.004032fb
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esp + 0x18]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x401ba0
sub eax, edx
mov dword [esp + 0x10], eax
je 0x401b65
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push 0x80000001
lea ecx, [esp + 0x18]
call fcn.00402e20
lea eax, [esp + 0x18]
mov dword [esp + 0x334], ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x401bd0
mov ecx, dword [ebp + 0xc]
sub eax, edx
push eax
lea eax, [esp + 0x1c]
push eax
push 1
push ecx
lea ecx, [esp + 0x20]
call fcn.00402f40
test eax, eax
lea ecx, [esp + 0x10]
setne bl
mov dword [esp + 0x334], 0xffffffff
call fcn.00402ea0
mov al, bl
jmp 0x401b67
Function at 0x401c10
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x40c19b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x324
mov eax, dword [0x410058]
push ebx
push edi
mov dword [esp + 0x324], eax
xor eax, eax
mov ecx, 0x40
lea edi, [esp + 0x19]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [ebp + 8]
push eax
lea ecx, [esp + 0x124]
xor ebx, ebx
push str.SoftwareNHN_Corporation_s
push ecx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x20], 0x400
mov byte [esp + 0x24], bl
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea edx, [esp + 0xc]
push edx
push 1
push ebx
lea eax, [esp + 0x12c]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401cc5
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x1c]
push edx
push ebx
push ebx
push str.StartWebPageOnce
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x401ce7
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
mov ecx, dword [esp + 0x32c]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x324]
call fcn.004032fb
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esp + 0x18]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x401d00
sub eax, edx
mov dword [esp + 0x10], eax
je 0x401cc5
push str.SoftwareMicrosoftInternet_ExplorerMain
push 0x80000001
lea ecx, [esp + 0x18]
call fcn.00402e20
lea eax, [esp + 0x18]
mov dword [esp + 0x334], ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x401d30
sub eax, edx
push eax
lea eax, [esp + 0x1c]
push eax
push 1
push str.Start_Page
lea ecx, [esp + 0x20]
call fcn.00402f40
test eax, eax
lea ecx, [esp + 0x10]
setne bl
mov dword [esp + 0x334], 0xffffffff
call fcn.00402ea0
mov al, bl
jmp 0x401cc7
Function at 0x401d70
Capabilities:
Create process on windows
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x45c
mov eax, dword [0x410058]
push edi
mov dword [esp + 0x45c], eax
xor eax, eax
mov ecx, 0x40
lea edi, [esp + 0x11]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [ebp + 8]
push eax
lea ecx, [esp + 0x25c]
push str.SoftwareNHN_Corporation_s
push ecx
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0x400
mov byte [esp + 0x1c], 0
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea edx, [esp + 8]
push edx
push 1
push 0
lea eax, [esp + 0x264]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401e13
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x14]
push edx
push eax
push eax
mov eax, dword [esp + 0x18]
push str.PostInstOnce
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x401e26
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
mov ecx, dword [esp + 0x45c]
call fcn.004032fb
pop edi
mov esp, ebp
pop ebp
ret
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esp + 0x118]
push eax
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x401e67
push 1
push 0x40d239
push 0x40d239
lea edx, [esp + 0x1c]
push edx
push 0x40d234
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov ecx, dword [esp + 0x45c]
mov al, 1
call fcn.004032fb
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x401e80
Capabilities:
Get disk size

Disassembly:
sub esp, 0x28
push esi
push edi
push 0x40d31c
push str.kernel32.dll
xor esi, esi
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x401ed0
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x24]
push edx
mov edx, dword [esp + 0x3c]
lea ecx, [esp + 0x30]
push ecx
push edx
call eax
test eax, eax
je 0x401f03
mov edi, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
mov edx, edi
pop edi
mov eax, esi
pop esi
add esp, 0x28
ret
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x3c]
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x14]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
je 0x401f03
mov esi, dword [esp + 8]
imul esi, dword [esp + 0xc]
imul esi, dword [esp + 0x10]
xor edi, edi
mov edx, edi
pop edi
mov eax, esi
pop esi
add esp, 0x28
ret
Function at 0x402eb0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
mov eax, 4
mov dword [esp + 0xc], eax
mov dword [esp + 8], eax
lea eax, [esp]
push eax
push 1
push 0
push ecx
push edx
mov dword [esp + 0x18], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x402f30
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 0x20]
lea ecx, [esp + 8]
push ecx
mov ecx, dword [esp + 8]
lea edx, [esp + 0x14]
push edx
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x402f26
mov ecx, dword [esp]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 4]
push ecx
mov dword [edx], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
add esp, 0x10
ret
mov edx, dword [esp]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
add esp, 0x10
ret

Function at 0x402f40
Capabilities:
Set registry value

Disassembly:
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
push eax
mov eax, dword [esp + 0xc]
push edx
mov edx, dword [esp + 0xc]
push eax
mov eax, dword [ecx]
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
neg eax
sbb eax, eax
inc eax
ret 0x10
Function at 0x403fbc
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x40d590
call fcn.00404200
mov edi, 0x94
mov eax, edi
call fcn.00408ab0
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 [0x411124], ecx
mov eax, dword [esi + 4]
mov dword [0x411130], eax
mov edx, dword [esi + 8]
mov dword [0x411134], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x411128], esi
cmp ecx, 2
je 0x40401c
or esi, 0x8000
mov dword [0x411128], esi
shl eax, 8
add eax, edx
mov dword [0x41112c], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x404057
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x404057
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x40406f
cmp eax, 0x20b
je 0x40405c
mov dword [ebp - 0x1c], esi
jmp 0x404083
cmp dword [ecx + 0x84], 0xe
jbe 0x404057
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x40407d
cmp dword [ecx + 0x74], 0xe
jbe 0x404057
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.004054dd
pop ecx
test eax, eax
jne 0x404097
push 0x1c
call fcn.00403f98
pop ecx
call fcn.00404bfd
test eax, eax
jne 0x4040a8
push 0x10
call fcn.00403f98
pop ecx
call fcn.00408a23
mov dword [ebp - 4], esi
call fcn.00408825
test eax, eax
jge 0x4040c1
push 0x1b
call fcn.00403f73
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x4127a0], eax
call fcn.00408703
mov dword [0x410f48], eax
call fcn.00408661
test eax, eax
jge 0x4040e7
push 8
call fcn.00403f73
pop ecx
call fcn.0040842e
test eax, eax
jge 0x4040f8
push 9
call fcn.00403f73
pop ecx
push 1
call fcn.004079a7
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x40410e
push eax
call fcn.00403f73
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.004083d1
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x40412f
movzx eax, word [ebp - 0x40]
jmp 0x404132
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.00402800
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x404150
push edi
call fcn.00407ad4
call fcn.00407af6
jmp 0x404182
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.0040423b
ret
Function at 0x40529a
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x4052c8
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x4052cf
cmp ebx, dword [eax + 4]
jae 0x4052cf
xor eax, eax
jmp 0x4054bf
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x4052e0
xor eax, eax
inc eax
jmp 0x4054be
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x4052f6
cmp ecx, edx
jae 0x40543b
cmp dword [eax + 4], 0
je 0x4052ff
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x4052e7
cmp dword [ebp + 8], 0
je 0x405321
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x40543b
cmp eax, esi
jae 0x40543b
mov eax, dword [0x410f70]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x405346
cmp dword [esi*4 + 0x410f78], edi
je 0x40543f
inc esi
cmp esi, eax
jl 0x405334
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4054bb
cmp dword [ebp - 8], 0x1000000
jne 0x4054bb
test byte [ebp - 0xc], 0xcc
je 0x4053c4
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x4054bb
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x4054bb
cmp word [eax + 0x18], 0x10b
jne 0x4054bb
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x4054bb
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x4053c4
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x4053c4
test byte [ecx + 0x27], 0x80
jne 0x40543b
push 1
push 0x410fb8
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x4052d8
mov ecx, dword [0x410f70]
test ecx, ecx
mov edx, ecx
jle 0x4053f8
lea eax, [ecx*4 + 0x410f74]
cmp dword [eax], edi
je 0x4053f8
dec edx
sub eax, 4
test edx, edx
jg 0x4053ec
test edx, edx
jne 0x405429
push 0xf
pop ebx
cmp ecx, ebx
jg 0x405405
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x40541d
lea eax, [edx*4 + 0x410f78]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x40540b
cmp ecx, 0x10
jge 0x405429
inc ecx
mov dword [0x410f70], ecx
push 0
push 0x410fb8
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x4052d8
xor eax, eax
jmp 0x4054be
test esi, esi
jle 0x4052d8
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x410fb8
call ebx
test eax, eax
jne 0x4052d8
cmp dword [esi*4 + 0x410f78], edi
je 0x405495
mov eax, dword [0x410f70]
lea esi, [eax - 1]
test esi, esi
jl 0x405483
cmp dword [esi*4 + 0x410f78], edi
je 0x40547f
dec esi
jns 0x405473
test esi, esi
jge 0x405493
cmp eax, 0x10
jge 0x40548e
inc eax
mov dword [0x410f70], eax
lea esi, [eax - 1]
jmp 0x405495
je 0x4054ad
xor ecx, ecx
test esi, esi
jl 0x4054ad
lea eax, [ecx*4 + 0x410f78]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x40549b
push 0
push 0x410fb8
call ebx
jmp 0x4052d8
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x407a11
Capabilities:
Terminate process

Disassembly:
push 8
push 0x40dac0
call fcn.00404200
push 8
call fcn.00405681
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x411164], esi
jne 0x407a45
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x411160], esi
mov al, byte [ebp + 0x10]
mov byte [0x41115c], al
cmp dword [ebp + 0xc], edi
jne 0x407a8f
cmp dword [0x412548], edi
je 0x407a7f
mov eax, dword [0x412544]
sub eax, 4
mov dword [0x412544], eax
cmp eax, dword [0x412548]
jb 0x407a7f
mov eax, dword [eax]
cmp eax, edi
je 0x407a60
call eax
jmp 0x407a60
push 0x410030
mov eax, 0x410028
call fcn.0040798f
pop ecx
push 0x41003c
mov eax, 0x410034
call fcn.0040798f
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x407ac0
cmp dword [ebp + 0x10], edi
jne 0x407ace
mov dword [0x411164], esi
push dword [ebp + 8]
call fcn.0040794d
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x407acd
push 8
call fcn.004055cc
pop ecx
ret
call fcn.0040423b
ret

Function at 0x4080bd
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x410058]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x410480]
je 0x4080f2
inc eax
cmp eax, 0x13
jb 0x4080e3
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x410480]
jne 0x408218
mov eax, dword [0x410f50]
cmp eax, 1
je 0x4081f0
cmp eax, edx
jne 0x408122
cmp dword [0x410088], 1
je 0x4081f0
cmp ecx, 0xfc
je 0x408218
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x408158
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.00409450
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.00404e20
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x40818c
mov eax, edi
push eax
call fcn.00404e20
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x40d64c
push edi
call fcn.00404cf0
add esp, 0x10
push edi
call fcn.00404e20
push dword [esi + 0x410484]
mov ebx, eax
call fcn.00404e20
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00408ab0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00409450
push edi
push ebx
call fcn.00409460
push 0x40d648
push ebx
call fcn.00409460
push dword [esi + 0x410484]
push ebx
call fcn.00409460
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.00409356
add esp, 0x2c
jmp 0x408218
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x410484]
push dword [esi]
call fcn.00404e20
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]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.004032fb
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret