joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40d1e0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x45bd78
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x40
push esi
mov esi, ecx
mov ax, word [esi + 0x48]
cmp ax, 0x1c0
mov dword [esp + 0x10], esi
je 0x40d213
cmp ax, 0x1c2
jne 0x40d40a
test byte [esi + 0x5b], 0x20
je 0x40d40a
push edi
push 0x64
lea ecx, [esp + 0x30]
call fcn.0040c0a0
xor edi, edi
mov dword [esp + 0x50], edi
mov eax, dword [esp + 0x58]
push eax
lea ecx, [esp + 0x30]
push ecx
mov ecx, esi
call fcn.0040fcc0
cmp dword [esp + 0x38], edi
je 0x40d3f8
lea ecx, [esp + 0x18]
call fcn.0043b190
mov byte [esp + 0x50], 1
mov edx, dword [esp + 0x38]
push 0xffffffffffffffff
push edx
lea ecx, [esp + 0x20]
call fcn.0043af90
mov eax, dword [esp + 0x38]
neg eax
sbb eax, eax
cmp eax, edi
mov dword [esp + 8], eax
je 0x40d2ae
xor esi, esi
lea ebx, [ebx]
lea eax, [esp + 0x58]
push eax
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x10]
push edx
lea ecx, [esp + 0x38]
call fcn.0043c160
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
mov dword [esi + eax], ecx
mov eax, dword [esp + 8]
add esi, 4
cmp eax, edi
jne 0x40d280
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
push ebx
push ebp
push 0x40bfa0
push 4
push edx
push eax
call fcn.0042e540
push str.BASE_RELOCATIONS_
push 0x4753f0
call fcn.0040bd40
mov edx, dword [esp + 0x40]
mov ecx, dword [esp + 0x3c]
mov eax, dword [ecx]
lea ebp, [edx + 1]
add esp, 0x18
xor ebx, ebx
and eax, 0xfffff000
xor esi, esi
test ebp, ebp
mov dword [esp + 0x14], edx
jbe 0x40d39e
lea ebx, [ebx]
cmp esi, dword [esp + 0x14]
je 0x40d317
mov edx, dword [ecx + esi*4]
and edx, 0xfffff000
cmp edx, eax
je 0x40d394
lea ecx, [ebx + 1]
and ecx, 0xfffffffe
lea edx, [ecx + ecx + 8]
push edx
push eax
push str._8X_RVA___8X__SizeOfBlock
push 0x4753f0
call fcn.0040bd40
add esp, 0x10
cmp edi, esi
jae 0x40d365
lea esp, [esp]
mov eax, dword [esp + 0x24]
mov ecx, dword [eax + edi*4]
and ecx, 0xfff
push ecx
push str._8X_HIGHLOW
push 0x4753f0
call fcn.0040bd40
add esp, 0xc
inc edi
cmp edi, esi
jb 0x40d340
test bl, 1
je 0x40d37e
push 0
push str._8X_ABS
push 0x4753f0
call fcn.0040bd40
add esp, 0xc
cmp esi, dword [esp + 0x14]
je 0x40d39e
mov ecx, dword [esp + 0x24]
mov eax, dword [ecx + esi*4]
and eax, 0xfffff000
mov edi, esi
xor ebx, ebx
inc esi
inc ebx
cmp esi, ebp
jb 0x40d300
push str.
push 0x4753f0
call fcn.0040bd40
mov eax, dword [esp + 0x30]
add esp, 8
xor esi, esi
test eax, eax
pop ebp
pop ebx
jbe 0x40d3ea
lea esp, [esp]
mov edx, dword [esp + 0x1c]
mov eax, dword [edx + esi*4]
mov ecx, dword [esp + 0x14]
add eax, dword [ecx + 0x78]
push eax
push str._08X
push 0x4753f0
call fcn.0040bd40
mov eax, dword [esp + 0x2c]
add esp, 0xc
inc esi
cmp esi, eax
jb 0x40d3c0
mov byte [esp + 0x50], 0
lea ecx, [esp + 0x18]
call fcn.0043b1b0
mov dword [esp + 0x50], 0xffffffff
lea ecx, [esp + 0x2c]
call fcn.0043c220
pop edi
mov ecx, dword [esp + 0x44]
pop esi
mov dword fs:[0], ecx
add esp, 0x4c
ret 4
Function at 0x40daa0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45bdc0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x60
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov edi, ecx
call fcn.0040d8d0
push 0
push 0
push 0
mov ebx, dword [ebp + 8]
push ebx
mov esi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
call esi
mov dword [ebp - 4], 0
push 0
push 0x40
lea eax, [ebp - 0x6c]
push eax
push ebx
call fcn.00403ad0
cmp word [ebp - 0x6c], 0x5a4d
jne 0x40dc18
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x40dc18
cmp eax, 0x400
jg 0x40dc18
push 0
push 0
push eax
push ebx
call esi
lea esi, [edi + 0x44]
push 0
push 0xf8
push esi
push ebx
call fcn.00403ad0
cmp dword [esi], 0x4550
jne 0x40dc18
movzx eax, word [edi + 0x58]
sub eax, 0xe0
mov dword [ebp - 0x20], eax
je 0x40db50
push 1
push 0
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ax, word [edi + 0x4a]
cmp ax, 0x20
ja 0x40dc18
push 0xffffffffffffffff
movzx ecx, ax
push ecx
lea ecx, [edi + 0x13c]
call fcn.00406370
mov esi, dword [edi + 0x140]
mov dword [ebp - 0x18], esi
mov eax, dword [edi + 0x144]
mov dword [ebp - 0x24], eax
imul eax, eax, 0x4c
add eax, esi
mov dword [ebp - 0x14], eax
lea esp, [esp]
cmp esi, dword [ebp - 0x14]
jae 0x40dba8
push 0
push 0x28
push esi
push ebx
call fcn.00403ad0
add esi, 0x4c
mov dword [ebp - 0x18], esi
jmp 0x40db90
mov esi, dword [edi + 0x140]
mov dword [ebp - 0x1c], esi
mov edi, dword [edi + 0x144]
mov dword [ebp - 0x28], edi
imul edi, edi, 0x4c
add edi, esi
mov dword [ebp - 0x2c], edi
cmp esi, edi
jae 0x40dbf9
mov eax, dword [esi + 0x10]
test eax, eax
je 0x40dbf1
push 0
push 0
mov edx, dword [esi + 0x14]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esi + 0x10]
push 0
push eax
push eax
mov ecx, esi
call fcn.0040c120
push eax
push ebx
call fcn.00403ad0
add esi, 0x4c
mov dword [ebp - 0x1c], esi
jmp 0x40dbc2
mov dword [ebp - 4], 0xffffffff
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 8
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x40dc34
push 0
push 0
push str.ERROR:_Invalid_file_format_
call fcn.0044bec0
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x411c10
Capabilities:
Get common file path

Disassembly:
sub esp, 0x208
push esi
lea eax, [esp + 4]
push eax
mov esi, ecx
push 0x104
mov dword [esi], 0xffffffff
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea ecx, [esp + 0x108]
push ecx
push 0
push 0x45fb8c
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
je 0x411c6f
push 0
push 0x4000100
push 2
push 0
push 0
push 0xc0000000
lea eax, [esp + 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esi], eax
mov eax, esi
pop esi
add esp, 0x208
ret 4
Function at 0x427100
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
push esi
mov esi, ecx
lea eax, [esp + 0xc]
push eax
mov eax, dword [esi]
lea ecx, [esp + 8]
push ecx
mov ecx, dword [esi + 4]
lea edx, [esp + 0x10]
push edx
push 0
push eax
push ecx
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
mov dword [esi + 8], eax
jne 0x427158
cmp dword [esp + 8], 4
jne 0x427151
cmp dword [esp + 0xc], 4
je 0x427158
mov dword [esi + 8], 0xb
mov eax, dword [esp + 4]
pop esi
add esp, 0xc
ret

Function at 0x427190
Capabilities:
Set registry value

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
push edi
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [esi + 4]
inc eax
push eax
mov eax, dword [esi]
push edi
push 1
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
xor edx, edx
test eax, eax
sete dl
mov dword [esi + 8], eax
pop edi
pop esi
mov eax, edx
ret 4

Function at 0x4271d0
Capabilities:
Set registry value

Disassembly:
push esi
push 4
lea eax, [esp + 0xc]
push eax
push 4
mov esi, ecx
mov ecx, dword [esi]
mov edx, dword [esi + 4]
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
xor ecx, ecx
test eax, eax
sete cl
mov dword [esi + 8], eax
pop esi
mov eax, ecx
ret 4

Function at 0x427200
Capabilities:
Set registry value

Disassembly:
mov eax, dword [esp + 8]
push esi
push eax
mov esi, ecx
mov ecx, dword [esp + 0xc]
mov edx, dword [esi]
mov eax, dword [esi + 4]
push ecx
push 3
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
xor ecx, ecx
test eax, eax
sete cl
mov dword [esi + 8], eax
pop esi
mov eax, ecx
ret 8

Function at 0x427230
Capabilities:
Query or enumerate registry value

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esp + 8]
lea eax, [esp + 0xc]
push eax
mov eax, dword [esi]
push ecx
mov ecx, dword [esi + 4]
lea edx, [esp + 0x10]
push edx
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
xor edx, edx
test eax, eax
sete dl
mov dword [esi + 8], eax
pop esi
mov eax, edx
ret 8
Function at 0x427270
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x45d491
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
mov dword [esp + 0xc], 0
mov eax, dword [0x47559c]
push esi
push edi
mov esi, ecx
mov dword [esp + 0x10], 0
mov dword [esp + 8], eax
mov dword [esp + 0x20], 1
mov eax, dword [esi]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0xc]
push ecx
mov ecx, dword [esi + 4]
push 0
lea edx, [esp + 0x18]
push edx
push 0
push eax
push ecx
call edi
test eax, eax
mov dword [esi + 8], eax
jne 0x427303
mov eax, dword [esp + 0xc]
lea edx, [esp + 0xc]
push edx
push eax
lea ecx, [esp + 0x10]
call fcn.00441d40
mov edx, dword [esi]
push eax
mov eax, dword [esi + 4]
lea ecx, [esp + 0x18]
push ecx
push 0
push edx
push eax
call edi
push 0xffffffffffffffff
lea ecx, [esp + 0xc]
mov dword [esi + 8], eax
call fcn.00441dc0
mov esi, dword [esp + 0x28]
lea ecx, [esp + 8]
push ecx
mov ecx, esi
call fcn.00441e80
mov dword [esp + 0x14], 1
mov byte [esp + 0x20], 0
lea ecx, [esp + 8]
call fcn.004419e0
mov ecx, dword [esp + 0x18]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x1c
ret 4
Function at 0x429660
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x45d758
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.00428c80
mov dword [esp + 0x24], 0
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x2c]
push ecx
lea ecx, [esp + 0xc]
mov dword [esp + 8], eax
call fcn.00441b80
mov edx, dword [esp + 0x34]
push edx
lea ecx, [esp + 0x10]
call fcn.00441b80
mov eax, dword [esp + 0x38]
push eax
lea ecx, [esp + 0x14]
call fcn.00441b80
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x40]
mov eax, dword [esi + 0x58]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], edx
lea ecx, [esi + 0x50]
lea edx, [esp + 4]
push edx
push eax
call fcn.00429500
mov dword [esp + 0x24], 0xffffffff
lea ecx, [esp + 4]
call fcn.00401200
mov ecx, dword [esp + 0x1c]
pop esi
mov dword fs:[0], ecx
add esp, 0x24
ret 0x18

Function at 0x42c1e0
Capabilities:
Hide graphical window

Disassembly:
push esi
push edi
push 0
push 0
mov esi, ecx
mov eax, dword [esi + 0x50]
push 0x130b
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
cmp eax, 0xffffffff
je 0x42c24d
mov ecx, dword [esi + 0x1c]
add eax, 0xe900
push eax
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call fcn.0043d430
mov edi, eax
test edi, edi
je 0x42c23c
mov eax, dword [esi + 0x78]
test eax, eax
je 0x42c241
push 0x46bc5c
mov ecx, edi
call fcn.00442450
test eax, eax
je 0x42c241
push 1
mov ecx, edi
call fcn.0043e430
test eax, eax
jne 0x42c241
pop edi
xor eax, eax
pop esi
ret
mov edx, dword [edi + 0x1c]
push 0
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, esi
call fcn.0043e0a0
test eax, eax
je 0x42c263
push 1
push 0
mov ecx, eax
call fcn.00454000
pop edi
mov eax, 1
pop esi
ret
Function at 0x42c9e0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x9c
mov eax, dword [0x477f34]
push ebx
xor ebx, ebx
cmp eax, ebx
push esi
push edi
je 0x42ca0e
mov ecx, dword [0x477f28]
xor eax, eax
cmp ecx, ebx
setne al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, 0x24
lea edi, [esp + 0x14]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x14], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov edx, dword [esp + 0x20]
xor ecx, ecx
cmp edx, 2
sete cl
push str.USER32
mov dword [0x477f38], ecx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, eax
cmp esi, ebx
je 0x42cae3
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x469644
push esi
call edi
cmp eax, ebx
mov dword [0x477f18], eax
je 0x42cae3
push str.MonitorFromWindow
push esi
call edi
cmp eax, ebx
mov dword [0x477f1c], eax
je 0x42cae3
push str.MonitorFromRect
push esi
call edi
cmp eax, ebx
mov dword [0x477f20], eax
je 0x42cae3
push str.MonitorFromPoint
push esi
call edi
cmp eax, ebx
mov dword [0x477f24], eax
je 0x42cae3
push str.EnumDisplayMonitors
push esi
call edi
cmp eax, ebx
mov dword [0x477f2c], eax
je 0x42cae3
push str.GetMonitorInfoA
push esi
call edi
cmp eax, ebx
mov dword [0x477f28], eax
je 0x42cae3
push str.EnumDisplayDevicesA
push esi
call edi
cmp eax, ebx
mov dword [0x477f30], eax
je 0x42cae3
mov eax, 1
mov dword [0x477f34], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov dword [0x477f18], ebx
mov dword [0x477f1c], ebx
mov dword [0x477f20], ebx
mov dword [0x477f24], ebx
mov dword [0x477f28], ebx
mov dword [0x477f2c], ebx
mov dword [0x477f30], ebx
mov dword [0x477f34], 1
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42ee36
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x46c318
call fcn.004312ac
mov edi, 0x94
mov eax, edi
call fcn.0042e150
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 [0x478778], ecx
mov eax, dword [esi + 4]
mov dword [0x478784], eax
mov edx, dword [esi + 8]
mov dword [0x478788], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x47877c], esi
cmp ecx, 2
je 0x42ee96
or esi, 0x8000
mov dword [0x47877c], esi
shl eax, 8
add eax, edx
mov dword [0x478780], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x42eed1
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42eed1
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x42eee9
cmp eax, 0x20b
je 0x42eed6
mov dword [ebp - 0x1c], esi
jmp 0x42eefd
cmp dword [ecx + 0x84], 0xe
jbe 0x42eed1
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x42eef7
cmp dword [ecx + 0x74], 0xe
jbe 0x42eed1
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.00433940
pop ecx
test eax, eax
jne 0x42ef11
push 0x1c
call fcn.0042ee12
pop ecx
call fcn.00430d11
test eax, eax
jne 0x42ef22
push 0x10
call fcn.0042ee12
pop ecx
call fcn.0043389e
mov dword [ebp - 4], esi
call fcn.004336a0
test eax, eax
jge 0x42ef3b
push 0x1b
call fcn.0042eded
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x479ff0], eax
call fcn.0043357e
mov dword [0x478768], eax
call fcn.004334dc
test eax, eax
jge 0x42ef61
push 8
call fcn.0042eded
pop ecx
call fcn.004332a9
test eax, eax
jge 0x42ef72
push 9
call fcn.0042eded
pop ecx
push 1
call fcn.0042f5d5
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x42ef88
push eax
call fcn.0042eded
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.0043324c
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x42efa9
movzx eax, word [ebp - 0x40]
jmp 0x42efac
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.004389e0
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x42efca
push edi
call fcn.0042f702
call fcn.0042f724
jmp 0x42effc
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.004312e7
ret
Function at 0x42f63f
Capabilities:
Terminate process

Disassembly:
push 8
push 0x46c390
call fcn.004312ac
push 8
call fcn.00432e78
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x4787b8], esi
jne 0x42f673
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x4787b4], esi
mov al, byte [ebp + 0x10]
mov byte [0x4787b0], al
cmp dword [ebp + 0xc], edi
jne 0x42f6bd
cmp dword [0x479fe8], edi
je 0x42f6ad
mov eax, dword [0x479fe4]
sub eax, 4
mov dword [0x479fe4], eax
cmp eax, dword [0x479fe8]
jb 0x42f6ad
mov eax, dword [eax]
cmp eax, edi
je 0x42f68e
call eax
jmp 0x42f68e
push 0x4750cc
mov eax, 0x4750c4
call fcn.0042f5bd
pop ecx
push 0x4750d8
mov eax, 0x4750d0
call fcn.0042f5bd
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x42f6ee
cmp dword [ebp + 0x10], edi
jne 0x42f6fc
mov dword [0x4787b8], esi
push dword [ebp + 8]
call fcn.0042f57b
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x42f6fb
push 8
call fcn.00432dc3
pop ecx
ret
call fcn.004312e7
ret

Function at 0x432f38
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x4759bc]
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 + 0x475dc0]
je 0x432f6d
inc eax
cmp eax, 0x13
jb 0x432f5e
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x475dc0]
jne 0x433093
mov eax, dword [0x478770]
cmp eax, 1
je 0x43306b
cmp eax, edx
jne 0x432f9d
cmp dword [0x47577c], 1
je 0x43306b
cmp ecx, 0xfc
je 0x433093
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 0x432fd3
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.00433a00
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.00432170
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x433007
mov eax, edi
push eax
call fcn.00432170
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x46d198
push edi
call fcn.0042e9f0
add esp, 0x10
push edi
call fcn.00432170
push dword [esi + 0x475dc4]
mov ebx, eax
call fcn.00432170
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.0042e150
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00433a00
push edi
push ebx
call fcn.00433a10
push 0x46d178
push ebx
call fcn.00433a10
push dword [esi + 0x475dc4]
push ebx
call fcn.00433a10
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.00436f96
add esp, 0x2c
jmp 0x433093
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x475dc4]
push dword [esi]
call fcn.00432170
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.004359f3
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x433af8
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.0042e150
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x433b93
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 [0x478778]
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 0x433b93
cmp eax, 1
je 0x433bb4
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 0x433b93
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x433b60
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x433b8f
xor eax, eax
inc eax
jmp 0x433bd3
cmp edi, eax
jae 0x433b97
xor eax, eax
jmp 0x433bd3
cmp eax, esi
jae 0x433b9e
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 [0x478778]
jmp 0x433bb7
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 0x434780
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 0x4347ae
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 0x4347b5
cmp ebx, dword [eax + 4]
jae 0x4347b5
xor eax, eax
jmp 0x4349a5
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x4347c6
xor eax, eax
inc eax
jmp 0x4349a4
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x4347dc
cmp ecx, edx
jae 0x434921
cmp dword [eax + 4], 0
je 0x4347e5
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x4347cd
cmp dword [ebp + 8], 0
je 0x434807
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x434921
cmp eax, esi
jae 0x434921
mov eax, dword [0x478a78]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x43482c
cmp dword [esi*4 + 0x478a80], edi
je 0x434925
inc esi
cmp esi, eax
jl 0x43481a
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4349a1
cmp dword [ebp - 8], 0x1000000
jne 0x4349a1
test byte [ebp - 0xc], 0xcc
je 0x4348aa
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x4349a1
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x4349a1
cmp word [eax + 0x18], 0x10b
jne 0x4349a1
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x4349a1
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x4348aa
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x4348aa
test byte [ecx + 0x27], 0x80
jne 0x434921
push 1
push 0x478ac0
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x4347be
mov ecx, dword [0x478a78]
test ecx, ecx
mov edx, ecx
jle 0x4348de
lea eax, [ecx*4 + 0x478a7c]
cmp dword [eax], edi
je 0x4348de
dec edx
sub eax, 4
test edx, edx
jg 0x4348d2
test edx, edx
jne 0x43490f
push 0xf
pop ebx
cmp ecx, ebx
jg 0x4348eb
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x434903
lea eax, [edx*4 + 0x478a80]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x4348f1
cmp ecx, 0x10
jge 0x43490f
inc ecx
mov dword [0x478a78], ecx
push 0
push 0x478ac0
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x4347be
xor eax, eax
jmp 0x4349a4
test esi, esi
jle 0x4347be
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x478ac0
call ebx
test eax, eax
jne 0x4347be
cmp dword [esi*4 + 0x478a80], edi
je 0x43497b
mov eax, dword [0x478a78]
lea esi, [eax - 1]
test esi, esi
jl 0x434969
cmp dword [esi*4 + 0x478a80], edi
je 0x434965
dec esi
jns 0x434959
test esi, esi
jge 0x434979
cmp eax, 0x10
jge 0x434974
inc eax
mov dword [0x478a78], eax
lea esi, [eax - 1]
jmp 0x43497b
je 0x434993
xor ecx, ecx
test esi, esi
jl 0x434993
lea eax, [ecx*4 + 0x478a80]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x434981
push 0
push 0x478ac0
call ebx
jmp 0x4347be
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret