joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408a40
Capabilities:
Print debug messages

Disassembly:
push 0xffffffffffffffff
push 0x44b418
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov ecx, dword [0x45dbd4]
mov eax, 0xc69fb513
imul ecx
add edx, ecx
sar edx, 0x19
push ebx
push esi
mov esi, dword [0x45dbcc]
push edi
mov edi, edx
mov eax, esi
imul eax, eax, 0x33bbc84
shr edi, 0x1f
add edi, edx
add edi, eax
mov eax, 0x2ee68aa5
imul esi
sar edx, 0x17
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [0x45dbe8]
sub edi, eax
imul edx, edx, 0x20e865f
mov eax, dword [0x45dbdc]
imul eax, eax, 0x362805a
add edi, edx
add edi, eax
mov eax, 0xc41087d7
imul ecx
add edx, ecx
sar edx, 0x1a
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov eax, 0xc41087d7
imul esi
add edx, esi
sar edx, 0x1a
sub edi, ecx
mov eax, edx
add edi, edx
mov edx, dword [0x57404c]
shr eax, 0x1f
add eax, edi
mov ecx, 0x57404c
mov dword [str._r_____r____], eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0xc], eax
mov ecx, dword [0x45dbd8]
mov esi, dword [0x45dbd0]
mov eax, 0x1066a8b3
imul ecx
imul ecx, ecx, 0x5390766
sar edx, 0x16
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edi, eax
mov eax, 0xcfdc5805
imul esi
add edx, esi
sar edx, 0x19
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [0x45dbe8]
sub edi, eax
imul edx, edx, 0x20e865f
mov eax, dword [0x45dbc8]
imul eax, eax, 0x362805a
add edi, edx
add edi, eax
add edi, ecx
mov ecx, dword [0x45dbdc]
mov eax, 0xc41087d7
imul ecx
mov dword [esp + 0x18], 0
add edx, ecx
mov eax, dword [0x45dbe4]
sar edx, 0x1a
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
sub edi, ecx
sub edi, eax
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x24]
push edx
sub edi, 0x3e6f678
push eax
lea ecx, [esp + 0x14]
mov dword [0x45dbd0], edi
call fcn.004087b0
mov esi, dword [0x45dbcc]
mov ecx, dword [0x45dbd0]
mov edx, dword [0x45dbdc]
imul edx, edx, 0x3e6f678
lea edi, [ecx + esi]
mov ecx, dword [0x45dbe4]
imul edi, edi, 0x2baab78
add edi, edx
mov eax, 0xc69fb513
imul ecx
mov eax, dword [0x45dbe0]
add edx, ecx
imul eax, eax, 0x35bbff4
sar edx, 0x19
mov ebx, edx
add edi, edx
shr ebx, 0x1f
add ebx, edi
add ebx, eax
mov eax, 0x974409b3
imul esi
add edx, esi
sar edx, 0x19
mov esi, dword [esp + 0xc]
mov eax, edx
shr eax, 0x1f
add eax, edx
sub ebx, eax
mov eax, 0xc41087d7
imul ecx
add edx, ecx
sar edx, 0x1a
mov ecx, edx
shr ecx, 0x1f
add ebx, edx
add ecx, ebx
push esi
mov dword [0x45dbdc], ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea eax, [esi - 0x10]
mov dword [esp + 0x18], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
pop edi
pop esi
pop ebx
jg 0x408c3f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x41bb10
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
sub esp, 0x11c
mov eax, dword [0x45f640]
xor eax, esp
push ebp
push esi
push edi
mov edi, dword [esp + 0x12c]
mov ebp, ecx
lea ecx, [esp + 0x14]
push ecx
push 0x2001f
push 0
mov dword [esp + 0x130], eax
mov eax, dword [ebp]
push edi
push eax
mov dword [esp + 0x2c], edi
mov dword [esp + 0x20], 0
mov dword [esp + 0x28], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x41bc12
lea ecx, [esp + 0xc]
call fcn.0041b9f0
mov esi, eax
test esi, esi
mov eax, dword [esp + 0x14]
mov dword [esp + 0xc], eax
jne 0x41bc16
lea edx, [esp + 0x1c]
push edx
push esi
push esi
push esi
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x38]
push edx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push eax
mov dword [esp + 0x30], 0x100
call esi
test eax, eax
jne 0x41bbee
jmp 0x41bbb0
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x10]
call fcn.0041bb10
mov edi, eax
test edi, edi
jne 0x41bc3d
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x10]
push eax
push eax
push eax
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x38]
push eax
push edi
push ecx
mov dword [esp + 0x30], 0x100
call esi
test eax, eax
je 0x41bbb0
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0xc]
test eax, eax
je 0x41bc05
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0xc], 0
mov edx, dword [ebp]
push edi
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esi, eax
mov eax, dword [esp + 0xc]
test eax, eax
je 0x41bc21
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [esp + 0x124]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.0043079d
add esp, 0x11c
ret 4
mov eax, dword [esp + 0xc]
test eax, eax
je 0x41bc4c
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
jmp 0x41bc23
Function at 0x41c130
Capabilities:
Set registry value

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
mov ebp, ecx
xor edi, edi
push esi
call ebx
inc eax
add esi, eax
add edi, eax
cmp eax, 1
jne 0x41c142
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [ebp]
push edi
push eax
push 7
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
pop ebp
pop ebx
ret 8
Function at 0x42788a
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 0x4278dd
call fcn.004488d3
mov edi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebx
je 0x4278dd
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x4278d3
xor eax, eax
jmp 0x4279f6
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 0x42790d
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 0x42790d
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebx + 0x48]
test eax, eax
je 0x4279f3
mov ecx, dword [eax + 0x40]
and dword [ebp + 0xc], 0
test ecx, ecx
mov dword [ebp + 8], ecx
mov dword [ebp - 8], ecx
je 0x42793a
lea ecx, [eax + 0x3c]
lea eax, [ebp + 8]
push eax
call fcn.0042801d
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
xor eax, eax
cmp dword [edi + 8], eax
mov dword [ebp - 4], eax
jbe 0x4279f3
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x427983
mov ecx, dword [ecx + 4]
mov edx, dword [edi + 0xc]
mov ecx, dword [ecx + 0x28]
cmp ecx, dword [edx + eax*8]
jne 0x427983
mov eax, dword [ebp + 8]
test eax, eax
mov dword [ebp - 8], eax
je 0x42797d
mov ecx, dword [ebx + 0x48]
lea eax, [ebp + 8]
add ecx, 0x3c
push eax
call fcn.0042801d
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
jmp 0x4279e3
and dword [ebp + 0xc], 0
jmp 0x4279e3
mov ecx, dword [edi + 0xc]
shl eax, 3
cmp dword [eax + ecx], 0
mov dword [ebp - 0x10], eax
je 0x4279e3
push 0xc
call fcn.004424d9
mov esi, eax
test esi, esi
pop ecx
je 0x4279c5
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 0x4279c7
xor esi, esi
mov ecx, dword [ebx + 0x48]
add ecx, 0x3c
cmp dword [ebp - 8], 0
push esi
je 0x4279de
push dword [ebp - 8]
call fcn.0043df24
jmp 0x4279e3
call fcn.0043defb
mov eax, dword [ebp - 4]
inc eax
cmp eax, dword [edi + 8]
mov dword [ebp - 4], eax
jb 0x427948
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x430d0d
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x430d2d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00432f7c
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x430d50
test byte [esp + 8], 2
je 0x430d50
call fcn.00432f6a
mov dword [eax], 0xd
call fcn.00432f73
mov dword [eax], 5
jmp 0x430d29
xor eax, eax
ret
Function at 0x430e17
Capabilities:
Terminate process

Disassembly:
push 8
push 0x451630
call fcn.00432dec
push 8
call fcn.00435006
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x573b3c], esi
jne 0x430e4b
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x573b38], esi
mov al, byte [ebp + 0x10]
mov byte [0x573b34], al
cmp dword [ebp + 0xc], edi
jne 0x430e95
cmp dword [0x57542c], edi
je 0x430e85
mov eax, dword [0x575428]
sub eax, 4
mov dword [0x575428], eax
cmp eax, dword [0x57542c]
jb 0x430e85
mov eax, dword [eax]
cmp eax, edi
je 0x430e66
call eax
jmp 0x430e66
push 0x45a0cc
mov eax, 0x45a0c4
call fcn.00430d95
pop ecx
push 0x45a0d8
mov eax, 0x45a0d0
call fcn.00430d95
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x430ec6
cmp dword [ebp + 0x10], edi
jne 0x430ed4
mov dword [0x573b3c], esi
push dword [ebp + 8]
call fcn.00430d53
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x430ed3
push 8
call fcn.00434f51
pop ecx
ret
call fcn.00432e27
ret

Function at 0x431147
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.00430fe0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4311e2
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 [0x573afc]
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 0x4311e2
cmp eax, 1
je 0x431203
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 0x4311e2
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x4311af
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x4311de
xor eax, eax
inc eax
jmp 0x431222
cmp edi, eax
jae 0x4311e6
xor eax, eax
jmp 0x431222
cmp eax, esi
jae 0x4311ed
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 [0x573afc]
jmp 0x431206
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 0x431b92
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x4516e8
call fcn.00432dec
mov edi, 0x94
mov eax, edi
call fcn.00430fe0
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 [0x573afc], ecx
mov eax, dword [esi + 4]
mov dword [0x573b08], eax
mov edx, dword [esi + 8]
mov dword [0x573b0c], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x573b00], esi
cmp ecx, 2
je 0x431bf2
or esi, 0x8000
mov dword [0x573b00], esi
shl eax, 8
add eax, edx
mov dword [0x573b04], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x431c2d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x431c2d
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x431c45
cmp eax, 0x20b
je 0x431c32
mov dword [ebp - 0x1c], esi
jmp 0x431c59
cmp dword [ecx + 0x84], 0xe
jbe 0x431c2d
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x431c53
cmp dword [ecx + 0x74], 0xe
jbe 0x431c2d
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.00435142
pop ecx
test eax, eax
jne 0x431c6d
push 0x1c
call fcn.00431b6e
pop ecx
call fcn.00433fb9
test eax, eax
jne 0x431c7e
push 0x10
call fcn.00431b6e
pop ecx
call fcn.00435037
mov dword [ebp - 4], esi
call fcn.00437ce0
test eax, eax
jge 0x431c97
push 0x1b
call fcn.00431b49
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x575420], eax
call fcn.00437bbe
mov dword [0x573b48], eax
call fcn.00437b1c
test eax, eax
jge 0x431cbd
push 8
call fcn.00431b49
pop ecx
call fcn.004378e9
test eax, eax
jge 0x431cce
push 9
call fcn.00431b49
pop ecx
push 1
call fcn.00430dad
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x431ce4
push eax
call fcn.00431b49
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.0043788c
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x431d05
movzx eax, word [ebp - 0x40]
jmp 0x431d08
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.0043d5c4
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x431d26
push edi
call fcn.00430eda
call fcn.00430efc
jmp 0x431d58
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.00432e27
ret
Function at 0x435cd1
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 0x435cff
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 0x435d06
cmp ebx, dword [eax + 4]
jae 0x435d06
xor eax, eax
jmp 0x435ef6
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x435d17
xor eax, eax
inc eax
jmp 0x435ef5
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x435d2d
cmp ecx, edx
jae 0x435e72
cmp dword [eax + 4], 0
je 0x435d36
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x435d1e
cmp dword [ebp + 8], 0
je 0x435d58
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x435e72
cmp eax, esi
jae 0x435e72
mov eax, dword [0x573cd8]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x435d7d
cmp dword [esi*4 + 0x573ce0], edi
je 0x435e76
inc esi
cmp esi, eax
jl 0x435d6b
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x435ef2
cmp dword [ebp - 8], 0x1000000
jne 0x435ef2
test byte [ebp - 0xc], 0xcc
je 0x435dfb
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x435ef2
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x435ef2
cmp word [eax + 0x18], 0x10b
jne 0x435ef2
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x435ef2
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x435dfb
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x435dfb
test byte [ecx + 0x27], 0x80
jne 0x435e72
push 1
push 0x573d20
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x435d0f
mov ecx, dword [0x573cd8]
test ecx, ecx
mov edx, ecx
jle 0x435e2f
lea eax, [ecx*4 + 0x573cdc]
cmp dword [eax], edi
je 0x435e2f
dec edx
sub eax, 4
test edx, edx
jg 0x435e23
test edx, edx
jne 0x435e60
push 0xf
pop ebx
cmp ecx, ebx
jg 0x435e3c
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x435e54
lea eax, [edx*4 + 0x573ce0]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x435e42
cmp ecx, 0x10
jge 0x435e60
inc ecx
mov dword [0x573cd8], ecx
push 0
push 0x573d20
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x435d0f
xor eax, eax
jmp 0x435ef5
test esi, esi
jle 0x435d0f
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x573d20
call ebx
test eax, eax
jne 0x435d0f
cmp dword [esi*4 + 0x573ce0], edi
je 0x435ecc
mov eax, dword [0x573cd8]
lea esi, [eax - 1]
test esi, esi
jl 0x435eba
cmp dword [esi*4 + 0x573ce0], edi
je 0x435eb6
dec esi
jns 0x435eaa
test esi, esi
jge 0x435eca
cmp eax, 0x10
jge 0x435ec5
inc eax
mov dword [0x573cd8], eax
lea esi, [eax - 1]
jmp 0x435ecc
je 0x435ee4
xor ecx, ecx
test esi, esi
jl 0x435ee4
lea eax, [ecx*4 + 0x573ce0]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x435ed2
push 0
push 0x573d20
call ebx
jmp 0x435d0f
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x437577
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x45f640]
mov ecx, dword [ebp + 0x98]
push ebx
xor eax, ebp
push esi
mov dword [ebp + 0x8c], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x45ff20]
je 0x4375ae
inc eax
cmp eax, 0x13
jb 0x43759f
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x45ff20]
jne 0x4376d1
mov eax, dword [0x573b50]
cmp eax, 1
je 0x4376ac
cmp eax, edx
jne 0x4375de
cmp dword [0x45f684], 1
je 0x4376ac
cmp ecx, 0xfc
je 0x4376d1
push 0x104
lea eax, [ebp - 0x7c]
push eax
push edx
mov byte [ebp + 0x88], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x437614
lea eax, [ebp - 0x7c]
push str._program_name_unknown_
push eax
call fcn.00438d20
pop ecx
pop ecx
lea edi, [ebp - 0x7c]
mov eax, edi
push eax
call fcn.00432100
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x437648
mov eax, edi
push eax
call fcn.00432100
mov edi, eax
lea eax, [ebp - 0x7c]
sub eax, 0x3b
push 3
add edi, eax
push 0x451830
push edi
call fcn.004319e0
add esp, 0x10
push edi
call fcn.00432100
push dword [esi + 0x45ff24]
mov ebx, eax
call fcn.00432100
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00430fe0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00438d20
push edi
push ebx
call fcn.00438d30
push 0x44e280
push ebx
call fcn.00438d30
push dword [esi + 0x45ff24]
push ebx
call fcn.00438d30
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.0043982a
add esp, 0x2c
jmp 0x4376d1
push edx
lea eax, [ebp - 0x80]
push eax
lea esi, [esi + 0x45ff24]
push dword [esi]
call fcn.00432100
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]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x8c]
xor ecx, ebp
call fcn.0043079d
add ebp, 0x90
leave
ret
Function at 0x43982a
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x573f70], ebx
push esi
push edi
jne 0x4398aa
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4398e5
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x45264c
push edi
call esi
test eax, eax
mov dword [0x573f70], eax
je 0x4398e5
push 0x45263c
push edi
call esi
push 0x452628
push edi
mov dword [0x573f74], eax
call esi
cmp dword [0x573afc], 2
mov dword [0x573f78], eax
jne 0x4398aa
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x573f80], eax
je 0x4398aa
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x573f7c], eax
mov eax, dword [0x573f7c]
test eax, eax
je 0x4398ef
call eax
test eax, eax
je 0x4398d6
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x573f80]
test eax, eax
je 0x4398d6
test byte [ebp - 8], 1
jne 0x4398ef
cmp dword [0x573b08], 4
jb 0x4398e9
or byte [ebp + 0x12], 0x20
jmp 0x43990e
xor eax, eax
jmp 0x43991e
or byte [ebp + 0x12], 4
jmp 0x43990e
mov eax, dword [0x573f74]
test eax, eax
je 0x43990e
call eax
mov ebx, eax
test ebx, ebx
je 0x43990e
mov eax, dword [0x573f78]
test eax, eax
je 0x43990e
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x573f70]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x439d0a
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a4]
sub esp, 0x424
mov eax, dword [0x45f640]
xor ecx, ecx
xor eax, ebp
cmp dword [ebp + 0x3b4], ecx
push edi
mov edi, dword [ebp + 0x3b0]
mov dword [ebp + 0x3a0], eax
mov dword [ebp - 0x7c], edi
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0x78], ecx
jne 0x439d46
xor eax, eax
jmp 0x439eb0
mov eax, dword [ebp + 0x3ac]
push ebx
mov ebx, dword [ebp + 0x3ac]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x5740a0]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x439d84
push 2
push ecx
push ecx
push dword [ebp + 0x3ac]
call fcn.0043b691
add esp, 0x10
xor ecx, ecx
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x439e1e
cmp dword [ebp + 0x3b4], ecx
mov dword [ebp - 0x70], edi
mov dword [ebp - 0x68], ecx
jbe 0x439e81
jmp 0x439da8
xor ecx, ecx
mov dword [ebp - 0x6c], ecx
mov ecx, dword [ebp - 0x70]
sub ecx, dword [ebp - 0x7c]
lea eax, [ebp - 0x64]
cmp ecx, dword [ebp + 0x3b4]
jae 0x439de3
mov edx, dword [ebp - 0x70]
inc dword [ebp - 0x70]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x439dd4
inc dword [ebp - 0x78]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0x6c]
mov byte [eax], dl
inc eax
inc dword [ebp - 0x6c]
cmp dword [ebp - 0x6c], 0x400
jl 0x439db4
mov edi, eax
lea eax, [ebp - 0x64]
sub edi, eax
push 0
lea eax, [ebp - 0x80]
push eax
push edi
lea eax, [ebp - 0x64]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x439e42
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x74], eax
cmp eax, edi
jl 0x439e4b
mov eax, dword [ebp - 0x70]
sub eax, dword [ebp - 0x7c]
cmp eax, dword [ebp + 0x3b4]
jb 0x439da6
jmp 0x439e4b
push ecx
lea ecx, [ebp - 0x80]
push ecx
push dword [ebp + 0x3b4]
push edi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x439e42
mov eax, dword [ebp - 0x80]
and dword [ebp - 0x68], 0
mov dword [ebp - 0x74], eax
jmp 0x439e4b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x74]
test eax, eax
jne 0x439eab
cmp dword [ebp - 0x68], eax
je 0x439e7e
push 5
pop esi
cmp dword [ebp - 0x68], esi
jne 0x439e73
call fcn.00432f6a
mov dword [eax], 9
call fcn.00432f73
mov dword [eax], esi
jmp 0x439ea6
push dword [ebp - 0x68]
call fcn.00432f7c
pop ecx
jmp 0x439ea6
mov edi, dword [ebp - 0x7c]
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x439e93
cmp byte [edi], 0x1a
jne 0x439e93
xor eax, eax
jmp 0x439eae
call fcn.00432f6a
mov dword [eax], 0x1c
call fcn.00432f73
and dword [eax], 0
or eax, 0xffffffff
jmp 0x439eae
sub eax, dword [ebp - 0x78]
pop esi
pop ebx
mov ecx, dword [ebp + 0x3a0]
xor ecx, ebp
pop edi
call fcn.0043079d
add ebp, 0x3a4
leave
ret