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

Disassembly:
push 0xffffffffffffffff
push 0x44c5c8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov ecx, dword [0x45ebd8]
mov eax, 0x98f19603
imul ecx
add edx, ecx
mov ecx, dword [0x45ebcc]
sar edx, 0x13
push esi
mov esi, edx
shr esi, 0x1f
add esi, edx
mov eax, 0x98f19603
imul ecx
add edx, ecx
mov ecx, dword [0x45ebd4]
sar edx, 0x13
add esi, edx
push edi
mov edi, edx
mov eax, 0x7af682a5
imul ecx
sar edx, 0x12
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [0x45ebe0]
imul edx, edx, 0x852b6
shr edi, 0x1f
add edi, esi
sub edi, eax
sub edi, edx
mov eax, 0x64ddc525
imul ecx
mov ecx, dword [0x45ebdc]
imul ecx, ecx, 0x14957d
sar edx, 0x12
mov eax, edx
shr eax, 0x1f
add edi, edx
mov edx, dword [0x57504c]
add eax, edi
add eax, ecx
mov ecx, 0x57504c
mov dword [0x45ebc4], eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 8], eax
mov ecx, dword [0x45ebe8]
mov eax, 0x98f19603
imul ecx
add edx, ecx
mov esi, ecx
mov ecx, dword [0x45ebc4]
imul esi, esi, 0x6e773
sar edx, 0x13
imul ecx, ecx, 0xd63fb
mov eax, edx
shr eax, 0x1f
add eax, edx
sub esi, eax
sub esi, ecx
mov ecx, dword [0x45ebd0]
mov eax, 0x7d19681
imul ecx
mov ecx, dword [0x45ebd8]
sar edx, 0xe
mov eax, edx
shr eax, 0x1f
add eax, edx
sub esi, eax
mov eax, 0xaf53e355
imul ecx
mov eax, dword [0x45ebe0]
add edx, ecx
sar edx, 0x13
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov edx, dword [0x45ebe4]
mov dword [esp + 0x14], 0
add ecx, eax
imul edx, edx, 0xdae0a
add ecx, esi
lea eax, [edx + ecx - 0xbae55]
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x20]
push ecx
push edx
lea ecx, [esp + 0x10]
mov dword [0x45ebd0], eax
call fcn.00408a50
mov ecx, dword [0x45ebd0]
mov eax, 0x98f19603
imul ecx
mov eax, dword [0x45ebc4]
add edx, ecx
imul eax, eax, 0xbae55
mov ecx, dword [0x45ebcc]
sar edx, 0x13
mov esi, edx
shr esi, 0x1f
add esi, edx
add esi, eax
mov eax, 0x4adacc0f
imul ecx
imul ecx, ecx, 0x10a7ca
sar edx, 0x12
mov eax, edx
shr eax, 0x1f
add eax, edx
sub esi, eax
add esi, ecx
mov ecx, dword [0x45ebe4]
mov eax, 0x64ddc525
imul ecx
sar edx, 0x12
add esi, edx
mov ecx, edx
mov edx, dword [0x45ebc8]
imul edx, edx, 0xf08a4
shr ecx, 0x1f
add ecx, esi
mov esi, dword [esp + 8]
add ecx, edx
push esi
mov dword [0x45ebdc], ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea eax, [esi - 0x10]
mov dword [esp + 0x14], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
pop edi
pop esi
jg 0x408ed0
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 0x41cb50
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
sub esp, 0x11c
mov eax, dword [0x460640]
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 0x41cc52
lea ecx, [esp + 0xc]
call fcn.0041ca30
mov esi, eax
test esi, esi
mov eax, dword [esp + 0x14]
mov dword [esp + 0xc], eax
jne 0x41cc56
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 0x41cc2e
jmp 0x41cbf0
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x10]
call fcn.0041cb50
mov edi, eax
test edi, edi
jne 0x41cc7d
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 0x41cbf0
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0xc]
test eax, eax
je 0x41cc45
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 0x41cc61
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.0043194d
add esp, 0x11c
ret 4
mov eax, dword [esp + 0xc]
test eax, eax
je 0x41cc8c
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
jmp 0x41cc63
Function at 0x41d170
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 0x41d182
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 0x428a3a
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 0x428a8d
call fcn.00449a83
mov edi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebx
je 0x428a8d
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x428a83
xor eax, eax
jmp 0x428ba6
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 0x428abd
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 0x428abd
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebx + 0x48]
test eax, eax
je 0x428ba3
mov ecx, dword [eax + 0x40]
and dword [ebp + 0xc], 0
test ecx, ecx
mov dword [ebp + 8], ecx
mov dword [ebp - 8], ecx
je 0x428aea
lea ecx, [eax + 0x3c]
lea eax, [ebp + 8]
push eax
call fcn.004291cd
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
xor eax, eax
cmp dword [edi + 8], eax
mov dword [ebp - 4], eax
jbe 0x428ba3
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x428b33
mov ecx, dword [ecx + 4]
mov edx, dword [edi + 0xc]
mov ecx, dword [ecx + 0x28]
cmp ecx, dword [edx + eax*8]
jne 0x428b33
mov eax, dword [ebp + 8]
test eax, eax
mov dword [ebp - 8], eax
je 0x428b2d
mov ecx, dword [ebx + 0x48]
lea eax, [ebp + 8]
add ecx, 0x3c
push eax
call fcn.004291cd
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
jmp 0x428b93
and dword [ebp + 0xc], 0
jmp 0x428b93
mov ecx, dword [edi + 0xc]
shl eax, 3
cmp dword [eax + ecx], 0
mov dword [ebp - 0x10], eax
je 0x428b93
push 0xc
call fcn.00443689
mov esi, eax
test esi, esi
pop ecx
je 0x428b75
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 0x428b77
xor esi, esi
mov ecx, dword [ebx + 0x48]
add ecx, 0x3c
cmp dword [ebp - 8], 0
push esi
je 0x428b8e
push dword [ebp - 8]
call fcn.0043f0d4
jmp 0x428b93
call fcn.0043f0ab
mov eax, dword [ebp - 4]
inc eax
cmp eax, dword [edi + 8]
mov dword [ebp - 4], eax
jb 0x428af8
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x431edd
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0043412c
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x431f00
test byte [esp + 8], 2
je 0x431f00
call fcn.0043411a
mov dword [eax], 0xd
call fcn.00434123
mov dword [eax], 5
jmp 0x431ed9
xor eax, eax
ret
Function at 0x431fc7
Capabilities:
Terminate process

Disassembly:
push 8
push 0x452630
call fcn.00433f9c
push 8
call fcn.004361b6
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x574b3c], esi
jne 0x431ffb
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x574b38], esi
mov al, byte [ebp + 0x10]
mov byte [0x574b34], al
cmp dword [ebp + 0xc], edi
jne 0x432045
cmp dword [0x57642c], edi
je 0x432035
mov eax, dword [0x576428]
sub eax, 4
mov dword [0x576428], eax
cmp eax, dword [0x57642c]
jb 0x432035
mov eax, dword [eax]
cmp eax, edi
je 0x432016
call eax
jmp 0x432016
push 0x45b0cc
mov eax, 0x45b0c4
call fcn.00431f45
pop ecx
push 0x45b0d8
mov eax, 0x45b0d0
call fcn.00431f45
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x432076
cmp dword [ebp + 0x10], edi
jne 0x432084
mov dword [0x574b3c], esi
push dword [ebp + 8]
call fcn.00431f03
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x432083
push 8
call fcn.00436101
pop ecx
ret
call fcn.00433fd7
ret

Function at 0x4322f7
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.00432190
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x432392
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 [0x574afc]
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 0x432392
cmp eax, 1
je 0x4323b3
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 0x432392
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x43235f
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x43238e
xor eax, eax
inc eax
jmp 0x4323d2
cmp edi, eax
jae 0x432396
xor eax, eax
jmp 0x4323d2
cmp eax, esi
jae 0x43239d
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 [0x574afc]
jmp 0x4323b6
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 0x432d42
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x4526e8
call fcn.00433f9c
mov edi, 0x94
mov eax, edi
call fcn.00432190
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 [0x574afc], ecx
mov eax, dword [esi + 4]
mov dword [0x574b08], eax
mov edx, dword [esi + 8]
mov dword [0x574b0c], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x574b00], esi
cmp ecx, 2
je 0x432da2
or esi, 0x8000
mov dword [0x574b00], esi
shl eax, 8
add eax, edx
mov dword [0x574b04], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x432ddd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x432ddd
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x432df5
cmp eax, 0x20b
je 0x432de2
mov dword [ebp - 0x1c], esi
jmp 0x432e09
cmp dword [ecx + 0x84], 0xe
jbe 0x432ddd
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x432e03
cmp dword [ecx + 0x74], 0xe
jbe 0x432ddd
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.004362f2
pop ecx
test eax, eax
jne 0x432e1d
push 0x1c
call fcn.00432d1e
pop ecx
call fcn.00435169
test eax, eax
jne 0x432e2e
push 0x10
call fcn.00432d1e
pop ecx
call fcn.004361e7
mov dword [ebp - 4], esi
call fcn.00438e90
test eax, eax
jge 0x432e47
push 0x1b
call fcn.00432cf9
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x576420], eax
call fcn.00438d6e
mov dword [0x574b48], eax
call fcn.00438ccc
test eax, eax
jge 0x432e6d
push 8
call fcn.00432cf9
pop ecx
call fcn.00438a99
test eax, eax
jge 0x432e7e
push 9
call fcn.00432cf9
pop ecx
push 1
call fcn.00431f5d
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x432e94
push eax
call fcn.00432cf9
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.00438a3c
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x432eb5
movzx eax, word [ebp - 0x40]
jmp 0x432eb8
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.0043e774
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x432ed6
push edi
call fcn.0043208a
call fcn.004320ac
jmp 0x432f08
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.00433fd7
ret
Function at 0x436e81
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 0x436eaf
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 0x436eb6
cmp ebx, dword [eax + 4]
jae 0x436eb6
xor eax, eax
jmp 0x4370a6
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x436ec7
xor eax, eax
inc eax
jmp 0x4370a5
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x436edd
cmp ecx, edx
jae 0x437022
cmp dword [eax + 4], 0
je 0x436ee6
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x436ece
cmp dword [ebp + 8], 0
je 0x436f08
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x437022
cmp eax, esi
jae 0x437022
mov eax, dword [0x574cd8]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x436f2d
cmp dword [esi*4 + 0x574ce0], edi
je 0x437026
inc esi
cmp esi, eax
jl 0x436f1b
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4370a2
cmp dword [ebp - 8], 0x1000000
jne 0x4370a2
test byte [ebp - 0xc], 0xcc
je 0x436fab
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x4370a2
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x4370a2
cmp word [eax + 0x18], 0x10b
jne 0x4370a2
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x4370a2
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x436fab
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x436fab
test byte [ecx + 0x27], 0x80
jne 0x437022
push 1
push 0x574d20
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x436ebf
mov ecx, dword [0x574cd8]
test ecx, ecx
mov edx, ecx
jle 0x436fdf
lea eax, [ecx*4 + 0x574cdc]
cmp dword [eax], edi
je 0x436fdf
dec edx
sub eax, 4
test edx, edx
jg 0x436fd3
test edx, edx
jne 0x437010
push 0xf
pop ebx
cmp ecx, ebx
jg 0x436fec
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x437004
lea eax, [edx*4 + 0x574ce0]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x436ff2
cmp ecx, 0x10
jge 0x437010
inc ecx
mov dword [0x574cd8], ecx
push 0
push 0x574d20
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x436ebf
xor eax, eax
jmp 0x4370a5
test esi, esi
jle 0x436ebf
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x574d20
call ebx
test eax, eax
jne 0x436ebf
cmp dword [esi*4 + 0x574ce0], edi
je 0x43707c
mov eax, dword [0x574cd8]
lea esi, [eax - 1]
test esi, esi
jl 0x43706a
cmp dword [esi*4 + 0x574ce0], edi
je 0x437066
dec esi
jns 0x43705a
test esi, esi
jge 0x43707a
cmp eax, 0x10
jge 0x437075
inc eax
mov dword [0x574cd8], eax
lea esi, [eax - 1]
jmp 0x43707c
je 0x437094
xor ecx, ecx
test esi, esi
jl 0x437094
lea eax, [ecx*4 + 0x574ce0]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x437082
push 0
push 0x574d20
call ebx
jmp 0x436ebf
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x438727
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x460640]
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 + 0x460f20]
je 0x43875e
inc eax
cmp eax, 0x13
jb 0x43874f
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x460f20]
jne 0x438881
mov eax, dword [0x574b50]
cmp eax, 1
je 0x43885c
cmp eax, edx
jne 0x43878e
cmp dword [0x460684], 1
je 0x43885c
cmp ecx, 0xfc
je 0x438881
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 0x4387c4
lea eax, [ebp - 0x7c]
push str._program_name_unknown_
push eax
call fcn.00439ed0
pop ecx
pop ecx
lea edi, [ebp - 0x7c]
mov eax, edi
push eax
call fcn.004332b0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x4387f8
mov eax, edi
push eax
call fcn.004332b0
mov edi, eax
lea eax, [ebp - 0x7c]
sub eax, 0x3b
push 3
add edi, eax
push 0x452830
push edi
call fcn.00432b90
add esp, 0x10
push edi
call fcn.004332b0
push dword [esi + 0x460f24]
mov ebx, eax
call fcn.004332b0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00432190
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00439ed0
push edi
push ebx
call fcn.00439ee0
push 0x44f280
push ebx
call fcn.00439ee0
push dword [esi + 0x460f24]
push ebx
call fcn.00439ee0
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.0043a9da
add esp, 0x2c
jmp 0x438881
push edx
lea eax, [ebp - 0x80]
push eax
lea esi, [esi + 0x460f24]
push dword [esi]
call fcn.004332b0
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.0043194d
add ebp, 0x90
leave
ret
Function at 0x43a9da
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x574f70], ebx
push esi
push edi
jne 0x43aa5a
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x43aa95
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x45364c
push edi
call esi
test eax, eax
mov dword [0x574f70], eax
je 0x43aa95
push 0x45363c
push edi
call esi
push 0x453628
push edi
mov dword [0x574f74], eax
call esi
cmp dword [0x574afc], 2
mov dword [0x574f78], eax
jne 0x43aa5a
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x574f80], eax
je 0x43aa5a
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x574f7c], eax
mov eax, dword [0x574f7c]
test eax, eax
je 0x43aa9f
call eax
test eax, eax
je 0x43aa86
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x574f80]
test eax, eax
je 0x43aa86
test byte [ebp - 8], 1
jne 0x43aa9f
cmp dword [0x574b08], 4
jb 0x43aa99
or byte [ebp + 0x12], 0x20
jmp 0x43aabe
xor eax, eax
jmp 0x43aace
or byte [ebp + 0x12], 4
jmp 0x43aabe
mov eax, dword [0x574f74]
test eax, eax
je 0x43aabe
call eax
mov ebx, eax
test ebx, ebx
je 0x43aabe
mov eax, dword [0x574f78]
test eax, eax
je 0x43aabe
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x574f70]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x43aeba
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a4]
sub esp, 0x424
mov eax, dword [0x460640]
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 0x43aef6
xor eax, eax
jmp 0x43b060
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 + 0x5750a0]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x43af34
push 2
push ecx
push ecx
push dword [ebp + 0x3ac]
call fcn.0043c841
add esp, 0x10
xor ecx, ecx
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x43afce
cmp dword [ebp + 0x3b4], ecx
mov dword [ebp - 0x70], edi
mov dword [ebp - 0x68], ecx
jbe 0x43b031
jmp 0x43af58
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 0x43af93
mov edx, dword [ebp - 0x70]
inc dword [ebp - 0x70]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x43af84
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 0x43af64
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 0x43aff2
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x74], eax
cmp eax, edi
jl 0x43affb
mov eax, dword [ebp - 0x70]
sub eax, dword [ebp - 0x7c]
cmp eax, dword [ebp + 0x3b4]
jb 0x43af56
jmp 0x43affb
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 0x43aff2
mov eax, dword [ebp - 0x80]
and dword [ebp - 0x68], 0
mov dword [ebp - 0x74], eax
jmp 0x43affb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x74]
test eax, eax
jne 0x43b05b
cmp dword [ebp - 0x68], eax
je 0x43b02e
push 5
pop esi
cmp dword [ebp - 0x68], esi
jne 0x43b023
call fcn.0043411a
mov dword [eax], 9
call fcn.00434123
mov dword [eax], esi
jmp 0x43b056
push dword [ebp - 0x68]
call fcn.0043412c
pop ecx
jmp 0x43b056
mov edi, dword [ebp - 0x7c]
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x43b043
cmp byte [edi], 0x1a
jne 0x43b043
xor eax, eax
jmp 0x43b05e
call fcn.0043411a
mov dword [eax], 0x1c
call fcn.00434123
and dword [eax], 0
or eax, 0xffffffff
jmp 0x43b05e
sub eax, dword [ebp - 0x78]
pop esi
pop ebx
mov ecx, dword [ebp + 0x3a0]
xor ecx, ebp
pop edi
call fcn.0043194d
add ebp, 0x3a4
leave
ret