joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4299f0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov byte [ebp - 1], 0
mov eax, dword [ebp + 8]
push eax
call fcn.004361fa
add esp, 4
lea ecx, [eax + eax + 2]
push ecx
call fcn.004355c1
add esp, 4
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 0x14]
mov dword [ebp - 8], edx
cmp dword [ebp - 8], 0
je 0x429ad1
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 8]
push ecx
call fcn.00436111
add esp, 8
push 0x5c
mov edx, dword [ebp - 8]
push edx
call fcn.00436505
add esp, 8
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x429abf
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 8]
je 0x429aa9
mov ecx, dword [ebp - 0xc]
movzx edx, word [ecx - 2]
cmp edx, 0x3a
je 0x429aa9
mov eax, dword [ebp - 0xc]
mov word [eax], 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x429aa1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xb7
je 0x429aa1
mov eax, dword [ebp - 8]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.004355bc
add esp, 4
jmp 0x429ae2
mov edx, dword [ebp - 0xc]
mov word [edx], 0x5c
push 0x5c
mov eax, dword [ebp - 0xc]
add eax, 2
push eax
call fcn.00436505
add esp, 8
mov dword [ebp - 0xc], eax
jmp 0x429a47
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x1c]
push edx
call fcn.004355bc
add esp, 4
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov byte [ebp - 1], al
movzx eax, byte [ebp - 1]
mov esp, ebp
pop ebp
ret

Function at 0x429c50
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov byte [ebp - 1], 0
cmp dword [ebp + 8], 0
je 0x429d0f
cmp dword [ebp + 0xc], 0
je 0x429d0f
movzx eax, byte [ebp + 0x10]
test eax, eax
jne 0x429c8e
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.00429310
add esp, 4
movzx edx, al
test edx, edx
je 0x429c8e
jmp 0x429d0f
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
mov eax, dword [ebp + 0xc]
push eax
call fcn.0040db20
add esp, 0x1c
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
je 0x429d05
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x429d05
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalSize]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x429cfb
push 0
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x429cfb
mov byte [ebp - 1], 1
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [ebp - 1]
mov esp, ebp
pop ebp
ret
Function at 0x429d90
Capabilities:
Copy file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x440dd6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x690
mov byte [ebp - 0x11], 0
mov dword [ebp - 0x10], 1
movzx eax, byte [ebp + 0x18]
test eax, eax
jne 0x429dd9
mov ecx, dword [ebp + 0x14]
push ecx
call fcn.00429310
add esp, 4
movzx edx, al
test edx, edx
je 0x429dd9
jmp 0x429fbb
movzx eax, byte [0x483258]
test eax, eax
je 0x429e8d
push 0x20a
push 0
lea ecx, [ebp - 0x434]
push ecx
call fcn.00435620
add esp, 0xc
push 0x20a
push 0
lea edx, [ebp - 0x224]
push edx
call fcn.00435620
add esp, 0xc
push 0x1e
push 0
lea eax, [ebp - 0x454]
push eax
call fcn.00435620
add esp, 0xc
mov ecx, dword [ebp + 0x10]
push ecx
lea edx, [ebp - 0x434]
push edx
call fcn.00436111
add esp, 8
mov eax, dword [ebp + 0x14]
push eax
lea ecx, [ebp - 0x224]
push ecx
call fcn.00436111
add esp, 8
mov dword [ebp - 0x450], 2
mov word [ebp - 0x444], 0x204
lea edx, [ebp - 0x224]
mov dword [ebp - 0x448], edx
lea eax, [ebp - 0x434]
mov dword [ebp - 0x44c], eax
lea ecx, [ebp - 0x454]
push ecx
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
mov dword [ebp - 0x10], eax
jmp 0x429fb1
push 0x105
push 0
lea edx, [ebp - 0x664]
push edx
call fcn.00435620
add esp, 0xc
push 0x105
push 0
lea eax, [ebp - 0x55c]
push eax
call fcn.00435620
add esp, 0xc
push 0x1e
push 0
lea ecx, [ebp - 0x684]
push ecx
call fcn.00435620
add esp, 0xc
mov edx, dword [ebp + 0x10]
push edx
lea ecx, [ebp - 0x688]
call fcn.0040a9b0
mov dword [ebp - 0x690], eax
mov eax, dword [ebp - 0x690]
mov dword [ebp - 0x694], eax
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x694]
call fcn.0040aa10
push eax
lea ecx, [ebp - 0x664]
push ecx
call fcn.00435a20
add esp, 8
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x688]
call fcn.0040a9e0
mov edx, dword [ebp + 0x14]
push edx
lea ecx, [ebp - 0x68c]
call fcn.0040a9b0
mov dword [ebp - 0x698], eax
mov eax, dword [ebp - 0x698]
mov dword [ebp - 0x69c], eax
mov dword [ebp - 4], 1
mov ecx, dword [ebp - 0x69c]
call fcn.0040aa10
push eax
lea ecx, [ebp - 0x55c]
push ecx
call fcn.00435a20
add esp, 8
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x68c]
call fcn.0040a9e0
mov dword [ebp - 0x680], 2
mov word [ebp - 0x674], 0x204
lea edx, [ebp - 0x55c]
mov dword [ebp - 0x678], edx
lea eax, [ebp - 0x664]
mov dword [ebp - 0x67c], eax
lea ecx, [ebp - 0x684]
push ecx
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x429fbb
mov byte [ebp - 0x11], 1
cmp dword [ebp + 0xc], 0
je 0x429fd0
mov dl, byte [ebp - 0x11]
push edx
mov eax, dword [ebp + 0xc]
mov edx, dword [eax]
mov ecx, dword [ebp + 0xc]
call dword [edx + 0x4c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x42a800
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
mov eax, dword [ebp + 0x10]
movsx ecx, byte [eax]
test ecx, ecx
je 0x42a990
mov edx, dword [ebp + 0x10]
push edx
call fcn.00435fa0
add esp, 4
mov ecx, dword [ebp + 0x10]
movsx edx, byte [ecx + eax - 1]
cmp edx, 0x5c
jne 0x42a83c
mov dword [ebp - 0x25c], 0x4508b3
jmp 0x42a846
mov dword [ebp - 0x25c], 0x4508b4
mov eax, dword [ebp - 0x25c]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
push str._s_s.
lea edx, [ebp - 0x108]
push edx
call fcn.004359bd
add esp, 0x10
lea eax, [ebp - 0x250]
push eax
lea ecx, [ebp - 0x108]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x10c], eax
cmp dword [ebp - 0x10c], 0xffffffff
je 0x42a990
mov dword [ebp - 0x254], 0
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
mov ecx, dword [ebp + 0xc]
call dword [eax + 0x64]
mov ecx, dword [ebp - 0x250]
and ecx, 0x10
je 0x42a8b4
movzx edx, byte [ebp + 0x14]
test edx, edx
jne 0x42a8cf
mov eax, dword [ebp - 0x250]
and eax, 0x10
jne 0x42a967
movzx ecx, byte [ebp + 0x14]
test ecx, ecx
jne 0x42a967
mov edx, dword [ebp - 0x250]
and edx, 2
jne 0x42a967
push 0x4508c0
lea eax, [ebp - 0x224]
push eax
call fcn.00436a70
add esp, 8
test eax, eax
je 0x42a967
push 0x4508c4
lea ecx, [ebp - 0x224]
push ecx
call fcn.00436a70
add esp, 8
test eax, eax
je 0x42a967
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
mov ecx, dword [ebp + 0xc]
call dword [eax + 0x68]
mov dword [ebp - 0x258], eax
cmp dword [ebp - 0x258], 0
je 0x42a967
lea ecx, [ebp - 0x224]
push ecx
mov edx, dword [ebp - 0x258]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x258]
call dword [eax + 0x3c]
mov ecx, dword [ebp - 0x254]
push ecx
mov edx, dword [ebp - 0x258]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x258]
call dword [eax + 0x10]
mov ecx, dword [ebp - 0x254]
add ecx, 1
mov dword [ebp - 0x254], ecx
lea edx, [ebp - 0x250]
push edx
mov eax, dword [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x42a8a1
mov ecx, dword [ebp - 0x10c]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov esp, ebp
pop ebp
ret
Function at 0x42a9a0
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x46c
mov eax, dword [ebp + 0x10]
movzx ecx, word [eax]
test ecx, ecx
je 0x42ab24
mov edx, dword [ebp + 0x10]
push edx
call fcn.004361fa
add esp, 4
mov ecx, dword [ebp + 0x10]
movzx edx, word [ecx + eax*2 - 2]
cmp edx, 0x5c
jne 0x42a9dc
mov dword [ebp - 0x46c], 0x4508c8
jmp 0x42a9e6
mov dword [ebp - 0x46c], 0x4508cc
mov eax, dword [ebp - 0x46c]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
push 0x4508d0
lea edx, [ebp - 0x460]
push edx
call fcn.0043612d
add esp, 0x10
lea eax, [ebp - 0x258]
push eax
lea ecx, [ebp - 0x460]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
je 0x42ab24
mov dword [ebp - 0x464], 0
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
mov ecx, dword [ebp + 0xc]
call dword [eax + 0x64]
mov ecx, dword [ebp - 0x258]
and ecx, 0x10
je 0x42aa4e
movzx edx, byte [ebp + 0x14]
test edx, edx
jne 0x42aa69
mov eax, dword [ebp - 0x258]
and eax, 0x10
jne 0x42ab01
movzx ecx, byte [ebp + 0x14]
test ecx, ecx
jne 0x42ab01
mov edx, dword [ebp - 0x258]
and edx, 2
jne 0x42ab01
push 0x4508e0
lea eax, [ebp - 0x22c]
push eax
call fcn.0043627d
add esp, 8
test eax, eax
je 0x42ab01
push 0x4508e4
lea ecx, [ebp - 0x22c]
push ecx
call fcn.0043627d
add esp, 8
test eax, eax
je 0x42ab01
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
mov ecx, dword [ebp + 0xc]
call dword [eax + 0x68]
mov dword [ebp - 0x468], eax
cmp dword [ebp - 0x468], 0
je 0x42ab01
lea ecx, [ebp - 0x22c]
push ecx
mov edx, dword [ebp - 0x468]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x468]
call dword [eax + 0x40]
mov ecx, dword [ebp - 0x464]
push ecx
mov edx, dword [ebp - 0x468]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x468]
call dword [eax + 0x10]
mov ecx, dword [ebp - 0x464]
add ecx, 1
mov dword [ebp - 0x464], ecx
lea edx, [ebp - 0x258]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x42aa3b
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov esp, ebp
pop ebp
ret

Function at 0x42b0d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 8], 0
cmp dword [ebp + 8], 0
je 0x42b139
cmp dword [ebp + 0xc], 0
je 0x42b139
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
mov ecx, 0x485544
call fcn.0040a540
push eax
call fcn.0040db20
add esp, 0x1c
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
je 0x42b139
push 0
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x42b140
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], 0
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocStringLen
mov ecx, 0x485544
call fcn.0040a540
push eax
call fcn.0040db20
add esp, 0x1c
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
je 0x42b1dd
push 0
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jbe 0x42b1d3
mov ecx, dword [ebp - 8]
add ecx, 2
push ecx
call fcn.0043609d
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x42b1d3
mov edx, dword [ebp - 4]
add edx, dword [ebp - 8]
mov byte [edx], 0
mov eax, dword [ebp - 4]
add eax, dword [ebp - 8]
mov byte [eax + 1], 0
push 0
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp + 8], 0
je 0x42b1eb
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x10]
mov dword [eax], ecx
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x4312e0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44116d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x654
mov byte [ebp - 0xd], 0
push 0x104
lea eax, [ebp - 0x224]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov dword [ebp - 0x22c], eax
cmp dword [ebp - 0x22c], 0
je 0x431504
mov word [ebp - 0x1e], 0
push 7
lea ecx, [ebp - 0x43c]
push ecx
call fcn.0040aa30
add esp, 8
mov dword [ebp - 0x228], eax
cmp dword [ebp - 0x228], 0
je 0x431504
lea edx, [ebp - 0x224]
push edx
lea eax, [ebp - 0x654]
push eax
call fcn.00436111
add esp, 8
lea ecx, [ebp - 0x224]
push ecx
call fcn.004361fa
add esp, 4
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x43139b
mov edx, dword [ebp - 0x18]
lea eax, [edx + edx - 1]
push eax
lea ecx, [ebp - 0x224]
push ecx
call fcn.00404790
add esp, 8
mov dword [ebp - 0x14], eax
push 0x5c
lea edx, [ebp - 0x654]
push edx
call fcn.00436210
add esp, 8
mov dword [ebp - 0x44c], eax
cmp dword [ebp - 0x44c], 0
jne 0x4313c9
lea eax, [ebp - 0x654]
mov dword [ebp - 0x44c], eax
jmp 0x4313d8
mov ecx, dword [ebp - 0x44c]
add ecx, 2
mov dword [ebp - 0x44c], ecx
mov edx, dword [ebp - 0x14]
push edx
push 0x451718
lea eax, [ebp - 0x448]
push eax
call fcn.004359bd
add esp, 0xc
push 0x2e
mov ecx, dword [ebp - 0x44c]
push ecx
call fcn.00436210
add esp, 8
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x431412
mov edx, dword [ebp - 0x1c]
mov word [edx], 0
lea eax, [ebp - 0x448]
push eax
lea ecx, [ebp - 0x658]
call fcn.00401b80
mov dword [ebp - 0x65c], eax
mov ecx, dword [ebp - 0x65c]
mov dword [ebp - 0x660], ecx
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x660]
call fcn.0040a540
push eax
mov edx, dword [ebp - 0x44c]
push edx
call fcn.004360e7
add esp, 8
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x658]
call fcn.004015c0
push 0x45171c
mov eax, dword [ebp - 0x228]
push eax
call fcn.004360e7
add esp, 8
mov ecx, dword [ebp - 0x44c]
push ecx
mov edx, dword [ebp - 0x228]
push edx
call fcn.004360e7
add esp, 8
push 0x451720
mov eax, dword [ebp - 0x228]
push eax
call fcn.004360e7
add esp, 8
mov ecx, dword [ebp - 0x228]
push ecx
call fcn.00429310
add esp, 4
movzx edx, al
test edx, edx
je 0x4314c2
mov byte [ebp - 0xd], 1
movzx eax, byte [ebp + 8]
test eax, eax
jne 0x431504
movzx ecx, byte [ebp + 0xc]
test ecx, ecx
je 0x4314f7
push 0
push 0
mov edx, dword [ebp - 0x44c]
push edx
mov eax, dword [ebp - 0x228]
push eax
push 0
lea ecx, [ebp - 0x224]
push ecx
call fcn.00431540
add esp, 0x18
jmp 0x431504
mov edx, dword [ebp - 0x228]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
movzx eax, byte [ebp + 8]
test eax, eax
je 0x43151d
mov cl, byte [ebp - 0xd]
push ecx
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
mov ecx, dword [ebp + 0x10]
call dword [eax + 0x48]
jmp 0x43152f
mov ecx, dword [ebp - 0x228]
push ecx
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
mov ecx, dword [ebp + 0x10]
call dword [eax + 0x40]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x437699
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x452358
call fcn.0043b434
mov edi, 0x94
mov eax, edi
call fcn.004363d0
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 [0x485f90], ecx
mov eax, dword [esi + 4]
mov dword [0x485f9c], eax
mov edx, dword [esi + 8]
mov dword [0x485fa0], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x485f94], esi
cmp ecx, 2
je 0x4376f9
or esi, 0x8000
mov dword [0x485f94], esi
shl eax, 8
add eax, edx
mov dword [0x485f98], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x437734
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x437734
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x43774c
cmp eax, 0x20b
je 0x437739
mov dword [ebp - 0x1c], esi
jmp 0x437760
cmp dword [ecx + 0x84], 0xe
jbe 0x437734
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x43775a
cmp dword [ecx + 0x74], 0xe
jbe 0x437734
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push esi
call fcn.0043952b
pop ecx
test eax, eax
jne 0x43778c
cmp dword [0x485f5c], 1
jne 0x437779
call fcn.0043ba51
push 0x1c
call fcn.0043b8da
push 0xff
call fcn.004392f8
pop ecx
pop ecx
call fcn.0043c2be
mov dword [ebp - 4], esi
call fcn.0043c113
test eax, eax
jge 0x4377a5
push 0x1b
call fcn.00437674
pop ecx
call fcn.0043c074
mov dword [0x4876b4], eax
call fcn.0043bf0a
mov dword [0x485f58], eax
call fcn.0043be74
test eax, eax
jge 0x4377ca
push 8
call fcn.00437674
pop ecx
call fcn.0043bc41
test eax, eax
jge 0x4377db
push 9
call fcn.00437674
pop ecx
push 1
call fcn.00439328
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x4377f1
push eax
call fcn.00437674
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
call fcn.0043bbfb
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x437812
movzx eax, word [ebp - 0x40]
jmp 0x437815
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.00413670
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x437833
push edi
call fcn.00439453
call fcn.00439475
jmp 0x437865
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.0043b46f
ret
Function at 0x439392
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
inc esi
cmp dword [0x485fd0], esi
push edi
jne 0x4393b2
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [ebp + 0xc], 0
mov al, byte [ebp + 0x10]
mov dword [0x485fcc], esi
mov byte [0x485fc8], al
jne 0x439418
mov ecx, dword [0x4876ac]
test ecx, ecx
je 0x4393f9
mov eax, dword [0x4876a8]
sub eax, 4
cmp eax, ecx
jmp 0x4393f2
mov eax, dword [eax]
test eax, eax
je 0x4393e4
call eax
mov eax, dword [0x4876a8]
sub eax, 4
cmp eax, dword [0x4876ac]
mov dword [0x4876a8], eax
jae 0x4393dc
mov eax, 0x458038
mov esi, 0x458040
cmp eax, esi
mov edi, eax
jae 0x439418
mov eax, dword [edi]
test eax, eax
je 0x439411
call eax
add edi, 4
cmp edi, esi
jb 0x439409
mov eax, 0x458044
mov esi, 0x45804c
cmp eax, esi
mov edi, eax
jae 0x439437
mov eax, dword [edi]
test eax, eax
je 0x439430
call eax
add edi, 4
cmp edi, esi
jb 0x439428
cmp dword [ebp + 0x10], 0
pop edi
pop esi
jne 0x439451
push dword [ebp + 8]
mov dword [0x485fd0], 1
call fcn.004392f8
pop ebp
ret

Function at 0x43b8da
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x481444]
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 + 0x481490]
je 0x43b90f
inc eax
cmp eax, 0x13
jb 0x43b900
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x481490]
jne 0x43ba35
mov eax, dword [0x485f5c]
cmp eax, 1
je 0x43ba0d
cmp eax, edx
jne 0x43b93f
cmp dword [0x481424], 1
je 0x43ba0d
cmp ecx, 0xfc
je 0x43ba35
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 0x43b975
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.00435a20
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.00435fa0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x43b9a9
mov eax, edi
push eax
call fcn.00435fa0
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x452df8
push edi
call fcn.00435db0
add esp, 0x10
push edi
call fcn.00435fa0
push dword [esi + 0x481494]
mov ebx, eax
call fcn.00435fa0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.004363d0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00435a20
push edi
push ebx
call fcn.00435a30
push 0x452dd8
push ebx
call fcn.00435a30
push dword [esi + 0x481494]
push ebx
call fcn.00435a30
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.0043e976
add esp, 0x2c
jmp 0x43ba35
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x481494]
push dword [esi]
call fcn.00435fa0
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.0043894c
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x43bf0a
Capabilities:
Query environment variable

Disassembly:
push ecx
push ecx
mov eax, dword [0x48623c]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
push esi
push edi
xor ebx, ebx
xor esi, esi
xor edi, edi
cmp eax, ebx
jne 0x43bf53
call ebp
mov esi, eax
cmp esi, ebx
je 0x43bf39
mov dword [0x48623c], 1
jmp 0x43bf58
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x43bf4e
push 2
pop eax
mov dword [0x48623c], eax
jmp 0x43bf53
mov eax, dword [0x48623c]
cmp eax, 1
jne 0x43bfb0
cmp esi, ebx
jne 0x43bf6b
call ebp
mov esi, eax
cmp esi, ebx
jne 0x43bf6b
xor eax, eax
jmp 0x43c057
cmp word [esi], bx
mov eax, esi
je 0x43bf80
inc eax
inc eax
cmp word [eax], bx
jne 0x43bf72
inc eax
inc eax
cmp word [eax], bx
jne 0x43bf72
sub eax, esi
inc eax
inc eax
mov ebp, eax
push ebp
call fcn.0043609d
mov edi, eax
cmp edi, ebx
pop ecx
jne 0x43bfa3
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
jmp 0x43c057
push ebp
push esi
push edi
call fcn.00435680
add esp, 0xc
jmp 0x43bf95
cmp eax, 2
je 0x43bfb9
cmp eax, ebx
jne 0x43bf64
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebp, eax
cmp ebp, ebx
je 0x43bf64
cmp byte [ebp], bl
mov esi, ebp
je 0x43bfef
push ebx
push ebx
push 0xffffffffffffffff
push esi
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, ebx
je 0x43bf64
push esi
add edi, eax
call fcn.00435fa0
lea esi, [esi + eax + 1]
cmp byte [esi], bl
pop ecx
jne 0x43bfcc
inc edi
lea eax, [edi + edi]
push eax
mov dword [esp + 0x18], edi
call fcn.0043609d
cmp eax, ebx
pop ecx
mov dword [esp + 0x10], eax
je 0x43c068
cmp byte [ebp], bl
mov edi, ebp
mov esi, eax
je 0x43c049
mov ecx, dword [esp + 0x14]
mov eax, esi
sub eax, dword [esp + 0x10]
sar eax, 1
sub ecx, eax
push ecx
push esi
push 0xffffffffffffffff
push edi
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x43c05e
push edi
call fcn.00435fa0
push esi
lea edi, [edi + eax + 1]
call fcn.004361fa
cmp byte [edi], bl
pop ecx
pop ecx
lea esi, [esi + eax*2 + 2]
jne 0x43c00f
push ebp
mov word [esi], bx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret
push dword [esp + 0x10]
call fcn.004360af
pop ecx
push ebp
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
jmp 0x43bf64
Function at 0x43c074
Capabilities:
Accept command line arguments

Disassembly:
mov eax, dword [0x486240]
push ebp
xor ebp, ebp
cmp eax, ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetCommandLineW]
jne 0x43c0b4
call esi
test eax, eax
je 0x43c099
mov dword [0x486240], 1
jmp 0x43c0b9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x43c0b0
mov dword [0x486240], 2
jmp 0x43c0c2
xor eax, eax
jmp 0x43c110
cmp eax, 1
jne 0x43c0bd
call esi
jmp 0x43c110
cmp eax, 2
jne 0x43c0b0
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov edi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push ebp
push ebp
push 0xffffffffffffffff
mov ebx, eax
push ebx
push 1
push ebp
call edi
mov esi, eax
cmp esi, ebp
je 0x43c108
lea eax, [esi + esi]
push eax
call fcn.0043609d
mov ebp, eax
test ebp, ebp
pop ecx
je 0x43c108
push esi
push ebp
push 0xffffffffffffffff
push ebx
push 1
push 0
call edi
test eax, eax
jne 0x43c10c
push ebp
call fcn.004360af
pop ecx
xor eax, eax
jmp 0x43c10e
mov eax, ebp
pop edi
pop ebx
pop esi
pop ebp
ret