joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401150
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401169
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x40117d
pop esi
pop edi
xor eax, eax
pop ebx
ret
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x40119e
cmp esi, eax
jae 0x401177
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401190
cmp esi, eax
jae 0x401177
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x401890
Capabilities:
Get disk information

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x43c428
push eax
mov dword fs:[0], esp
push esi
push edi
mov esi, ecx
mov edi, dword [esp + 0x18]
push edi
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov ecx, dword [edi - 0xc]
test ecx, ecx
jge 0x4018cd
push 0x80070057
call fcn.00401130
add eax, 0xfffffffe
cmp eax, 4
ja case.default.0x4018d9
jmp dword [eax*4 + 0x4019c8]
mov eax, dword [esp + 0x1c]
push 0xffff0002
push eax
push 0
push 0
push 0
push 3
push 3
jmp 0x401942
mov ecx, dword [esp + 0x1c]
push 0xffff0002
push ecx
push 0
push 0
push 0
push 2
push 2
jmp 0x401942
mov edx, dword [esp + 0x1c]
push 0xffff0002
push edx
push 0
push 0
push 0
push 2
push 2
jmp 0x401942
mov eax, dword [esp + 0x1c]
push 0xffff0002
push eax
jmp 0x401938
mov ecx, dword [esp + 0x1c]
push 0xffff0002
push ecx
push 0
push 0
push 0
push 0
push 0
push edi
mov ecx, esi
push 0x23
call fcn.0041f62c
mov ecx, esi
push eax
call fcn.00401390
lea eax, [edi - 0x10]
mov dword [esp + 0x10], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x401976
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, 1
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop edi
pop esi
add esp, 0xc
ret 8
lea eax, [edi - 0x10]
mov dword [esp + 0x10], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4019b0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 8]
pop edi
xor eax, eax
mov dword fs:[0], ecx
pop esi
add esp, 0xc
ret 8
Function at 0x402020
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x43c448
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, dword [esp + 0x1c]
mov eax, dword [esi]
mov ecx, dword [eax - 0x10]
mov edx, dword [ecx]
push edi
xor edi, edi
mov dword [esp + 8], edi
call dword [edx + 0x10]
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x24]
mov eax, dword [eax]
mov edx, dword [eax - 0xc]
mov ecx, dword [esi]
mov esi, dword [ecx - 0xc]
push edx
push eax
push esi
push ecx
lea ecx, [esp + 0x30]
push ecx
mov dword [esp + 0x28], edi
call fcn.00401d10
mov esi, dword [esp + 0x34]
add esi, 0xfffffff0
push esi
call fcn.004015e0
mov edi, dword [esp + 0x34]
add eax, 0x10
mov dword [edi], eax
add esp, 0x18
mov dword [esp + 0x14], 0xffffffff
lea edx, [esi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x4020b2
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call dword [edx + 4]
mov ecx, dword [esp + 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x4026e0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x43c4db
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x148
mov eax, dword [esp + 0x158]
mov eax, dword [eax]
push ebx
push ebp
push esi
sub eax, 0x10
push edi
push eax
xor esi, esi
call fcn.004015e0
add eax, 0x10
add esp, 4
mov dword [esp + 0x14], eax
push 1
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x168], esi
call fcn.00401bd0
mov eax, dword [eax]
push 0x43e8f0
push eax
call fcn.00412729
add esp, 8
test eax, eax
mov eax, dword [esp + 0x10]
setne bl
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x402767
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
test bl, bl
je 0x40277b
push 1
push 0x43e8f0
lea ecx, [esp + 0x1c]
call fcn.00401da0
push 3
push 0x43e8fc
lea ecx, [esp + 0x1c]
call fcn.00401da0
mov ebp, dword [esp + 0x14]
lea eax, [esp + 0x18]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x40282b
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileA]
lea esp, [esp]
test byte [esp + 0x18], 0x10
je 0x402814
lea ecx, [esp + 0x44]
push ecx
lea ecx, [esp + 0x14]
call fcn.00402150
mov edx, dword [esp + 0x10]
push 0x43e8f8
push edx
call fcn.00412729
add esp, 8
test eax, eax
je 0x4027f6
mov eax, dword [esp + 0x10]
push 0x43e8f4
push eax
call fcn.00412729
add esp, 8
test eax, eax
je 0x4027f6
mov esi, 1
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402814
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [esp + 0x18]
push eax
push edi
call ebx
test eax, eax
je 0x402824
test esi, esi
je 0x4027b0
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea eax, [ebp - 0x10]
mov dword [esp + 0x160], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402850
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x158]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x154
ret 4
Function at 0x409d9c
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 0x409def
call fcn.00437047
mov edi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebx
je 0x409def
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x409de5
xor eax, eax
jmp 0x409f08
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 0x409e1f
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 0x409e1f
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebx + 0x48]
test eax, eax
je 0x409f05
mov ecx, dword [eax + 0x40]
and dword [ebp + 0xc], 0
test ecx, ecx
mov dword [ebp + 8], ecx
mov dword [ebp - 8], ecx
je 0x409e4c
lea ecx, [eax + 0x3c]
lea eax, [ebp + 8]
push eax
call fcn.0040a4d6
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
xor eax, eax
cmp dword [edi + 8], eax
mov dword [ebp - 4], eax
jbe 0x409f05
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x409e95
mov ecx, dword [ecx + 4]
mov edx, dword [edi + 0xc]
mov ecx, dword [ecx + 0x28]
cmp ecx, dword [edx + eax*8]
jne 0x409e95
mov eax, dword [ebp + 8]
test eax, eax
mov dword [ebp - 8], eax
je 0x409e8f
mov ecx, dword [ebx + 0x48]
lea eax, [ebp + 8]
add ecx, 0x3c
push eax
call fcn.0040a4d6
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
jmp 0x409ef5
and dword [ebp + 0xc], 0
jmp 0x409ef5
mov ecx, dword [edi + 0xc]
shl eax, 3
cmp dword [eax + ecx], 0
mov dword [ebp - 0x10], eax
je 0x409ef5
push 0xc
call fcn.004253f8
mov esi, eax
test esi, esi
pop ecx
je 0x409ed7
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 0x409ed9
xor esi, esi
mov ecx, dword [ebx + 0x48]
add ecx, 0x3c
cmp dword [ebp - 8], 0
push esi
je 0x409ef0
push dword [ebp - 8]
call fcn.0042035f
jmp 0x409ef5
call fcn.00420336
mov eax, dword [ebp - 4]
inc eax
cmp eax, dword [edi + 8]
mov dword [ebp - 4], eax
jb 0x409e5a
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x413306
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.00413020
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4133a1
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 [0x4523ac]
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 0x4133a1
cmp eax, 1
je 0x4133c2
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 0x4133a1
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x41336e
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x41339d
xor eax, eax
inc eax
jmp 0x4133e1
cmp edi, eax
jae 0x4133a5
xor eax, eax
jmp 0x4133e1
cmp eax, esi
jae 0x4133ac
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 [0x4523ac]
jmp 0x4133c5
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 0x41355a
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x443e00
call fcn.00414410
mov edi, 0x94
mov eax, edi
call fcn.00413020
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 [0x4523ac], ecx
mov eax, dword [esi + 4]
mov dword [0x4523b8], eax
mov edx, dword [esi + 8]
mov dword [0x4523bc], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x4523b0], esi
cmp ecx, 2
je 0x4135ba
or esi, 0x8000
mov dword [0x4523b0], esi
shl eax, 8
add eax, edx
mov dword [0x4523b4], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x4135f5
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4135f5
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x41360d
cmp eax, 0x20b
je 0x4135fa
mov dword [ebp - 0x1c], esi
jmp 0x413621
cmp dword [ecx + 0x84], 0xe
jbe 0x4135f5
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x41361b
cmp dword [ecx + 0x74], 0xe
jbe 0x4135f5
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.004168eb
pop ecx
test eax, eax
jne 0x413635
push 0x1c
call fcn.00413536
pop ecx
call fcn.00415a46
test eax, eax
jne 0x413646
push 0x10
call fcn.00413536
pop ecx
call fcn.00418009
mov dword [ebp - 4], esi
call fcn.00417e0b
test eax, eax
jge 0x41365f
push 0x1b
call fcn.00413511
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x453c70], eax
call fcn.00417ce9
mov dword [0x452398], eax
call fcn.00417c47
test eax, eax
jge 0x413685
push 8
call fcn.00413511
pop ecx
call fcn.00417a14
test eax, eax
jge 0x413696
push 9
call fcn.00413511
pop ecx
push 1
call fcn.00414055
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x4136ac
push eax
call fcn.00413511
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.004179b7
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x4136cd
movzx eax, word [ebp - 0x40]
jmp 0x4136d0
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.0041ecb8
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x4136ee
push edi
call fcn.00414182
call fcn.004141a4
jmp 0x413720
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.0041444b
ret
Function at 0x4140bf
Capabilities:
Terminate process

Disassembly:
push 8
push 0x443e60
call fcn.00414410
push 8
call fcn.004168a0
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x4523ec], esi
jne 0x4140f3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x4523e8], esi
mov al, byte [ebp + 0x10]
mov byte [0x4523e4], al
cmp dword [ebp + 0xc], edi
jne 0x41413d
cmp dword [0x453c68], edi
je 0x41412d
mov eax, dword [0x453c64]
sub eax, 4
mov dword [0x453c64], eax
cmp eax, dword [0x453c68]
jb 0x41412d
mov eax, dword [eax]
cmp eax, edi
je 0x41410e
call eax
jmp 0x41410e
push 0x44e090
mov eax, 0x44e088
call fcn.0041403d
pop ecx
push 0x44e09c
mov eax, 0x44e094
call fcn.0041403d
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x41416e
cmp dword [ebp + 0x10], edi
jne 0x41417c
mov dword [0x4523ec], esi
push dword [ebp + 8]
call fcn.00413ffb
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x41417b
push 8
call fcn.004167eb
pop ecx
ret
call fcn.0041444b
ret
Function at 0x41747a
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 0x4174a8
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 0x4174af
cmp ebx, dword [eax + 4]
jae 0x4174af
xor eax, eax
jmp 0x41769f
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x4174c0
xor eax, eax
inc eax
jmp 0x41769e
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x4174d6
cmp ecx, edx
jae 0x41761b
cmp dword [eax + 4], 0
je 0x4174df
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x4174c7
cmp dword [ebp + 8], 0
je 0x417501
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x41761b
cmp eax, esi
jae 0x41761b
mov eax, dword [0x452578]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x417526
cmp dword [esi*4 + 0x452580], edi
je 0x41761f
inc esi
cmp esi, eax
jl 0x417514
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x41769b
cmp dword [ebp - 8], 0x1000000
jne 0x41769b
test byte [ebp - 0xc], 0xcc
je 0x4175a4
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x41769b
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x41769b
cmp word [eax + 0x18], 0x10b
jne 0x41769b
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x41769b
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x4175a4
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x4175a4
test byte [ecx + 0x27], 0x80
jne 0x41761b
push 1
push 0x4525c0
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x4174b8
mov ecx, dword [0x452578]
test ecx, ecx
mov edx, ecx
jle 0x4175d8
lea eax, [ecx*4 + 0x45257c]
cmp dword [eax], edi
je 0x4175d8
dec edx
sub eax, 4
test edx, edx
jg 0x4175cc
test edx, edx
jne 0x417609
push 0xf
pop ebx
cmp ecx, ebx
jg 0x4175e5
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x4175fd
lea eax, [edx*4 + 0x452580]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x4175eb
cmp ecx, 0x10
jge 0x417609
inc ecx
mov dword [0x452578], ecx
push 0
push 0x4525c0
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x4174b8
xor eax, eax
jmp 0x41769e
test esi, esi
jle 0x4174b8
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x4525c0
call ebx
test eax, eax
jne 0x4174b8
cmp dword [esi*4 + 0x452580], edi
je 0x417675
mov eax, dword [0x452578]
lea esi, [eax - 1]
test esi, esi
jl 0x417663
cmp dword [esi*4 + 0x452580], edi
je 0x41765f
dec esi
jns 0x417653
test esi, esi
jge 0x417673
cmp eax, 0x10
jge 0x41766e
inc eax
mov dword [0x452578], eax
lea esi, [eax - 1]
jmp 0x417675
je 0x41768d
xor ecx, ecx
test esi, esi
jl 0x41768d
lea eax, [ecx*4 + 0x452580]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x41767b
push 0
push 0x4525c0
call ebx
jmp 0x4174b8
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4176a3
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x44f440]
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 + 0x44f9a0]
je 0x4176d8
inc eax
cmp eax, 0x13
jb 0x4176c9
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x44f9a0]
jne 0x4177fe
mov eax, dword [0x4523a0]
cmp eax, 1
je 0x4177d6
cmp eax, edx
jne 0x417708
cmp dword [0x44f424], 1
je 0x4177d6
cmp ecx, 0xfc
je 0x4177fe
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 0x41773e
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.00419a40
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.00413b40
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x417772
mov eax, edi
push eax
call fcn.00413b40
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x444530
push edi
call fcn.0041b450
add esp, 0x10
push edi
call fcn.00413b40
push dword [esi + 0x44f9a4]
mov ebx, eax
call fcn.00413b40
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00413020
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00419a40
push edi
push ebx
call fcn.00419a50
push 0x444510
push ebx
call fcn.00419a50
push dword [esi + 0x44f9a4]
push ebx
call fcn.00419a50
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.0041b60f
add esp, 0x2c
jmp 0x4177fe
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x44f9a4]
push dword [esi]
call fcn.00413b40
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.004137e4
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x41b60f
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x452838], ebx
push esi
push edi
jne 0x41b68f
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x41b6ca
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x444f54
push edi
call esi
test eax, eax
mov dword [0x452838], eax
je 0x41b6ca
push 0x444f44
push edi
call esi
push 0x444f30
push edi
mov dword [0x45283c], eax
call esi
cmp dword [0x4523ac], 2
mov dword [0x452840], eax
jne 0x41b68f
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x452848], eax
je 0x41b68f
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x452844], eax
mov eax, dword [0x452844]
test eax, eax
je 0x41b6d4
call eax
test eax, eax
je 0x41b6bb
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x452848]
test eax, eax
je 0x41b6bb
test byte [ebp - 8], 1
jne 0x41b6d4
cmp dword [0x4523b8], 4
jb 0x41b6ce
or byte [ebp + 0x12], 0x20
jmp 0x41b6f3
xor eax, eax
jmp 0x41b703
or byte [ebp + 0x12], 4
jmp 0x41b6f3
mov eax, dword [0x45283c]
test eax, eax
je 0x41b6f3
call eax
mov ebx, eax
test ebx, ebx
je 0x41b6f3
mov eax, dword [0x452840]
test eax, eax
je 0x41b6f3
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x452838]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41b86b
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x44f440]
push edi
xor edi, edi
cmp dword [ebp + 0x3b0], edi
mov dword [ebp + 0x39c], eax
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x7c], edi
jne 0x41b89c
xor eax, eax
jmp 0x41ba25
mov eax, dword [ebp + 0x3a8]
push ebx
mov ebx, dword [ebp + 0x3a8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x453900]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x41b8d8
push 2
push edi
push edi
push dword [ebp + 0x3a8]
call fcn.0041cd10
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x41b9b3
cmp dword [ebp + 0x3b0], edi
mov eax, dword [ebp + 0x3ac]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x6c], edi
jbe 0x41b9f1
mov ecx, dword [ebp - 0x74]
sub ecx, dword [ebp + 0x3ac]
lea eax, [ebp - 0x68]
mov dword [ebp - 0x70], edi
cmp ecx, dword [ebp + 0x3b0]
jae 0x41b93c
mov edx, dword [ebp - 0x74]
inc dword [ebp - 0x74]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x41b92d
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0x70]
mov byte [eax], dl
inc eax
inc dword [ebp - 0x70]
cmp dword [ebp - 0x70], 0x400
jl 0x41b90d
mov edi, eax
lea eax, [ebp - 0x68]
sub edi, eax
push 0
lea eax, [ebp - 0x80]
push eax
push edi
lea eax, [ebp - 0x68]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41b97c
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x78], eax
cmp eax, edi
jl 0x41b985
mov eax, dword [ebp - 0x74]
sub eax, dword [ebp + 0x3ac]
xor edi, edi
cmp eax, dword [ebp + 0x3b0]
jb 0x41b8fe
jmp 0x41b987
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
xor edi, edi
mov eax, dword [ebp - 0x78]
cmp eax, edi
jne 0x41ba20
cmp dword [ebp - 0x6c], edi
je 0x41b9f1
push 5
pop esi
cmp dword [ebp - 0x6c], esi
jne 0x41b9e6
call fcn.00415697
mov dword [eax], 9
call fcn.004156a0
mov dword [eax], esi
jmp 0x41ba1b
push edi
lea ecx, [ebp - 0x80]
push ecx
push dword [ebp + 0x3b0]
push dword [ebp + 0x3ac]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41b9db
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x78], eax
jmp 0x41b987
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
jmp 0x41b987
push dword [ebp - 0x6c]
call fcn.004156a9
pop ecx
jmp 0x41ba1b
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x41ba09
mov eax, dword [ebp + 0x3ac]
cmp byte [eax], 0x1a
jne 0x41ba09
xor eax, eax
jmp 0x41ba23
call fcn.00415697
mov dword [eax], 0x1c
call fcn.004156a0
mov dword [eax], edi
or eax, 0xffffffff
jmp 0x41ba23
sub eax, dword [ebp - 0x7c]
pop esi
pop ebx
mov ecx, dword [ebp + 0x39c]
pop edi
call fcn.004137e4
add ebp, 0x3a0
leave
ret