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

Disassembly:
push 0xffffffffffffffff
push 0x429600
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x58
push ebx
push ebp
push esi
push edi
mov esi, ecx
push 0x37
xor ebx, ebx
mov edi, 0xf
push str.Properties::save_ostream_out_:_this__properties.size__
lea ecx, [esp + 0x38]
mov dword [esp + 0x18], esi
mov dword [esp + 0x50], edi
mov dword [esp + 0x4c], ebx
mov byte [esp + 0x3c], bl
call fcn.00401890
mov eax, dword [esi + 8]
push eax
lea eax, [esp + 0x34]
push eax
mov dword [esp + 0x78], ebx
call fcn.00412420
mov eax, dword [esp + 0x50]
add esp, 8
cmp eax, 0x10
mov dword [esp + 0x70], 0xffffffff
jb 0x416df8
mov ecx, dword [esp + 0x34]
push ecx
call fcn.0041aebd
add esp, 4
mov eax, dword [esi + 4]
mov ebp, dword [eax]
cmp ebp, eax
je 0x416ef7
push 0x29
push str.Properties::save_ostream_out_:_i__name__
lea ecx, [esp + 0x1c]
mov dword [esp + 0x34], edi
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], bl
call fcn.00401890
lea esi, [ebp + 8]
mov ecx, esi
mov dword [esp + 0x70], 1
call fcn.00419630
push eax
lea edx, [esp + 0x18]
push edx
call fcn.00412300
mov eax, dword [esp + 0x34]
add esp, 8
cmp eax, 0x10
mov dword [esp + 0x70], 0xffffffff
jb 0x416e5f
mov eax, dword [esp + 0x18]
push eax
call fcn.0041aebd
add esp, 4
push 0x2a
push str.Properties::save_ostream_out_:_i__value__
lea ecx, [esp + 0x38]
mov dword [esp + 0x34], edi
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], bl
mov dword [esp + 0x50], edi
mov dword [esp + 0x4c], ebx
mov byte [esp + 0x3c], bl
call fcn.00401890
mov ecx, esi
mov dword [esp + 0x70], 2
call fcn.00419640
push eax
lea ecx, [esp + 0x34]
push ecx
call fcn.00412300
mov eax, dword [esp + 0x50]
add esp, 8
cmp eax, 0x10
mov dword [esp + 0x70], 0xffffffff
jb 0x416ec2
mov edx, dword [esp + 0x34]
push edx
call fcn.0041aebd
add esp, 4
mov eax, dword [esi + 4]
mov ecx, dword [eax + 4]
mov eax, dword [esp + 0x78]
mov edx, dword [ecx + esi + 4]
lea ecx, [ecx + esi + 4]
push eax
mov dword [esp + 0x4c], edi
mov dword [esp + 0x48], ebx
mov byte [esp + 0x38], bl
call dword [edx]
test eax, eax
je 0x416f0e
mov ecx, dword [esp + 0x10]
mov ebp, dword [ebp]
cmp ebp, dword [ecx + 4]
jne 0x416e05
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
add esp, 0x64
ret 4
push 0x3e
push str.Properties::save_ostream_out_:_problems_while_saving_property
lea ecx, [esp + 0x54]
mov dword [esp + 0x6c], edi
mov dword [esp + 0x68], ebx
mov byte [esp + 0x58], bl
call fcn.00401890
lea edx, [esp + 0x4c]
push edx
mov dword [esp + 0x74], 3
call fcn.004122d0
mov eax, dword [esp + 0x68]
add esp, 4
cmp eax, 0x10
jb 0x416f55
mov eax, dword [esp + 0x50]
push eax
call fcn.0041aebd
add esp, 4
mov ecx, dword [esp + 0x68]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
mov dword fs:[0], ecx
add esp, 0x64
ret 4
Function at 0x417b90
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x8004
call fcn.0041c610
mov eax, dword [esp + 0x800c]
cmp dword [eax + 0x18], 0x10
mov dword [esp], 0
jb 0x417bb3
mov eax, dword [eax + 4]
jmp 0x417bb6
add eax, 4
push 0x7fff
lea ecx, [esp + 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
mov edx, 0x42a2ef
je 0x417bd4
lea edx, [esp + 4]
push esi
mov esi, dword [esp + 0x800c]
mov eax, edx
push edi
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], 0
mov byte [esi + 4], 0
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x417bf4
sub eax, edi
push eax
push edx
mov ecx, esi
call fcn.00401890
pop edi
mov eax, esi
pop esi
add esp, 0x8004
ret

Function at 0x417c20
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x429788
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
push 0x43421e
xor ebx, ebx
push 0x104
mov dword [esp + 0x10], ebx
call fcn.0041c3c6
mov esi, eax
add esp, 8
cmp esi, ebx
jne 0x417c8b
mov esi, dword [esp + 0x38]
push 0xffffffffffffffff
push ebx
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], ebx
push 0x4330d0
mov ecx, esi
mov byte [esi + 4], bl
call fcn.004017a0
mov eax, esi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetTempPathA]
push edi
push esi
push 0x104
call ebp
mov edi, eax
cmp edi, 0x104
jbe 0x417cc1
push esi
call fcn.0041b6ea
push 0x43421e
push edi
call fcn.0041c3c6
add esp, 0xc
mov esi, eax
push esi
push edi
call ebp
mov edi, eax
mov ebp, 0xf
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x28], ebx
mov byte [esp + 0x18], bl
cmp edi, ebx
mov dword [esp + 0x38], ebx
je 0x417cf4
mov eax, esi
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x417ce0
sub eax, edx
push eax
push esi
lea ecx, [esp + 0x1c]
call fcn.00401890
push esi
call fcn.0041b6ea
mov esi, dword [esp + 0x44]
add esp, 4
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x1c]
mov dword [esi + 0x18], ebp
mov dword [esi + 0x14], ebx
push eax
mov ecx, esi
mov byte [esi + 4], bl
call fcn.004017a0
cmp dword [esp + 0x2c], 0x10
pop edi
pop ebp
jb 0x417d2f
mov ecx, dword [esp + 0x10]
push ecx
call fcn.0041aebd
add esp, 4
mov ecx, dword [esp + 0x28]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x2c
ret
Function at 0x41b5aa
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
inc esi
cmp dword [0x4342d0], esi
push edi
jne 0x41b5ca
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 [0x4342cc], esi
mov byte [0x4342c8], al
jne 0x41b630
mov ecx, dword [0x435a18]
test ecx, ecx
je 0x41b611
mov eax, dword [0x435a14]
sub eax, 4
cmp eax, ecx
jmp 0x41b60a
mov eax, dword [eax]
test eax, eax
je 0x41b5fc
call eax
mov eax, dword [0x435a14]
sub eax, 4
cmp eax, dword [0x435a18]
mov dword [0x435a14], eax
jae 0x41b5f4
mov eax, 0x433040
mov esi, 0x433048
cmp eax, esi
mov edi, eax
jae 0x41b630
mov eax, dword [edi]
test eax, eax
je 0x41b629
call eax
add edi, 4
cmp edi, esi
jb 0x41b621
mov eax, 0x43304c
mov esi, 0x433054
cmp eax, esi
mov edi, eax
jae 0x41b64f
mov eax, dword [edi]
test eax, eax
je 0x41b648
call eax
add edi, 4
cmp edi, esi
jb 0x41b640
cmp dword [ebp + 0x10], 0
pop edi
pop esi
jne 0x41b669
push dword [ebp + 8]
mov dword [0x4342d0], 1
call fcn.0041b510
pop ebp
ret

Function at 0x41bd28
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
push 0x60
push 0x42ce10
call fcn.0041e890
mov edi, 0x94
mov eax, edi
call fcn.0041c610
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 [0x434290], ecx
mov eax, dword [esi + 4]
mov dword [0x43429c], eax
mov edx, dword [esi + 8]
mov dword [0x4342a0], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x434294], esi
cmp ecx, 2
je 0x41bd88
or esi, 0x8000
mov dword [0x434294], esi
shl eax, 8
add eax, edx
mov dword [0x434298], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x41bdc3
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41bdc3
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x41bddb
cmp eax, 0x20b
je 0x41bdc8
mov dword [ebp - 0x1c], esi
jmp 0x41bdef
cmp dword [ecx + 0x84], 0xe
jbe 0x41bdc3
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x41bde9
cmp dword [ecx + 0x74], 0xe
jbe 0x41bdc3
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push esi
call fcn.0041e9ff
pop ecx
test eax, eax
jne 0x41be1b
cmp dword [0x4342e4], 1
jne 0x41be08
call fcn.0042078d
push 0x1c
call fcn.00420616
push 0xff
call fcn.0041b510
pop ecx
pop ecx
call fcn.0041e658
mov dword [ebp - 4], esi
call fcn.00420d8b
test eax, eax
jge 0x41be34
push 0x1b
call fcn.0041bd03
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x435a0c], eax
call fcn.00420c69
mov dword [0x4342dc], eax
call fcn.00420bc7
test eax, eax
jge 0x41be5a
push 8
call 0xf41c18f
xchg byte [eax - 0x3c000002], dh
mov ebp, dword [esp]
lea esp, [esp - 0x20]
push dword [esp + 0x54]
add dword [esp + 0x24], 0xfffe5253
pop ebx
jmp ebp
mov al, 0xfe
invalid
Function at 0x41bffd
Capabilities:
Get common file path
Set current directory
Set environment variable

Disassembly:
push 0x128
push 0x42ce20
call fcn.0041e890
mov eax, dword [0x4332fc]
mov dword [ebp - 0x1c], eax
lea edi, [ebp - 0x124]
xor ebx, ebx
mov dword [ebp - 0x130], ebx
or dword [ebp - 0x12c], 0xffffffff
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
je 0x41c10a
mov eax, edi
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov esi, eax
mov dword [ebp - 0x134], esi
cmp esi, 0x104
jle 0x41c0bb
mov dword [ebp - 4], ebx
lea eax, [esi + 1]
add eax, 3
and eax, 0xfffffffc
call fcn.0041c610
mov dword [ebp - 0x18], esp
mov edi, esp
mov dword [ebp - 0x138], edi
jmp 0x41c0a8
or dword [ebp - 4], 0xffffffff
cmp esi, ebx
je 0x41c10a
push edi
inc esi
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov esi, eax
cmp esi, ebx
je 0x41c10a
mov al, byte [edi]
cmp al, 0x5c
je 0x41c0c9
cmp al, 0x2f
jne 0x41c0ce
cmp al, byte [edi + 1]
je 0x41c104
mov byte [ebp - 0x128], 0x3d
movzx eax, byte [edi]
push eax
call fcn.00420f95
pop ecx
mov byte [ebp - 0x127], al
mov byte [ebp - 0x126], 0x3a
mov byte [ebp - 0x125], bl
push edi
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
je 0x41c10a
mov dword [ebp - 0x12c], ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00420f36
pop ecx
cmp dword [ebp - 0x130], ebx
je 0x41c126
push edi
call fcn.0041b6ef
pop ecx
mov eax, dword [ebp - 0x12c]
lea esp, [ebp - 0x144]
mov ecx, dword [ebp - 0x1c]
call fcn.0041b6dc
call fcn.0041e8cb
ret

Function at 0x41c140
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
je 0x41c16e
add al, 0x40
mov byte [ebp + 8], al
lea eax, [ebp + 8]
push eax
mov byte [ebp + 9], 0x3a
mov byte [ebp + 0xa], 0x5c
mov byte [ebp + 0xb], 0
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
test eax, eax
je 0x41c173
cmp eax, 1
je 0x41c173
xor eax, eax
inc eax
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x41c177
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x4332fc]
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
mov dword [ebp - 4], eax
je 0x41c1ed
push ebx
call fcn.0041c140
test eax, eax
pop ecx
jne 0x41c1bc
mov dword [0x434288], 0xf
mov dword [0x434284], 0xd
xor eax, eax
mov ecx, dword [ebp - 4]
pop ebx
call fcn.0041b6dc
leave
ret
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x108]
push eax
push 0x104
lea eax, [ebp + 8]
add bl, 0x40
push eax
mov byte [ebp + 8], bl
mov byte [ebp + 9], 0x3a
mov byte [ebp + 0xa], 0x2e
mov byte [ebp + 0xb], 0
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
jmp 0x41c1ff
lea eax, [ebp - 0x108]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x41c1af
inc eax
cmp eax, 0x104
ja 0x41c1af
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jne 0x41c236
cmp eax, dword [ebp + 0x10]
jg 0x41c21a
mov eax, dword [ebp + 0x10]
push eax
call fcn.0041c7e8
pop ecx
mov ecx, eax
test ecx, ecx
jne 0x41c24a
mov dword [0x434284], 0xc
jmp 0x41c1af
cmp eax, dword [ebp + 0x10]
jle 0x41c24a
mov dword [0x434284], 0x22
jmp 0x41c1af
lea eax, [ebp - 0x108]
push eax
push ecx
call fcn.0041e4d0
pop ecx
pop ecx
jmp 0x41c1b1
Function at 0x41c3cb
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
cmp eax, ebx
mov dword [ebp - 0xc], ebx
mov byte [ebp - 1], bl
je 0x41c3f6
cmp eax, 1
je 0x41c3f6
jle 0x41c3fe
cmp eax, 3
jle 0x41c3f6
cmp eax, 4
jne 0x41c3fe
mov byte [ebp - 1], 1
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x10], eax
jmp 0x41c427
mov dword [0x434284], 0x16
mov dword [0x434288], ebx
or eax, 0xffffffff
jmp 0x41c599
inc eax
cmp byte [eax], bl
jne 0x41c416
lea ecx, [eax + 1]
cmp byte [ecx], bl
je 0x41c427
mov byte [eax], 0x20
mov eax, ecx
cmp byte [eax], bl
jne 0x41c416
push esi
push 0x44
pop esi
push esi
lea eax, [ebp - 0x68]
push ebx
push eax
call fcn.00421a00
mov dword [ebp - 0x68], esi
mov esi, dword [0x4348a0]
add esp, 0xc
cmp esi, ebx
je 0x41c46a
lea eax, [esi - 1]
mov ecx, eax
sar ecx, 5
mov ecx, dword [ecx*4 + 0x4348c0]
mov edx, eax
and edx, 0x1f
cmp byte [ecx + edx*8 + 4], bl
jne 0x41c46a
dec esi
dec eax
cmp esi, ebx
jne 0x41c44d
lea eax, [esi + esi*4 + 4]
mov word [ebp - 0x36], ax
push edi
movzx eax, ax
push 1
push eax
call fcn.00421978
cmp esi, ebx
mov dword [ebp - 0x34], eax
pop ecx
mov dword [eax], esi
mov eax, dword [ebp - 0x34]
pop ecx
mov dword [ebp - 8], ebx
lea ecx, [eax + 4]
lea edx, [eax + esi + 4]
jle 0x41c4cf
mov eax, dword [ebp - 8]
mov edi, dword [ebp - 8]
sar eax, 5
mov eax, dword [eax*4 + 0x4348c0]
and edi, 0x1f
lea edi, [eax + edi*8]
mov al, byte [edi + 4]
test al, 0x10
jne 0x41c4bb
mov byte [ecx], al
mov eax, dword [edi]
mov dword [edx], eax
jmp 0x41c4c0
mov byte [ecx], bl
or dword [edx], 0xffffffff
inc dword [ebp - 8]
inc ecx
add edx, 4
cmp dword [ebp - 8], esi
jl 0x41c496
mov eax, dword [ebp - 0x34]
cmp byte [ebp - 1], bl
je 0x41c500
lea ecx, [eax + 4]
xor edx, edx
lea eax, [eax + esi + 4]
cmp esi, 3
jge 0x41c4e6
mov edi, esi
jmp 0x41c4e9
push 3
pop edi
cmp edx, edi
jge 0x41c4f9
mov byte [ecx], bl
or dword [eax], 0xffffffff
inc edx
inc ecx
add eax, 4
jmp 0x41c4dd
mov dword [ebp - 0xc], 8
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x68]
push eax
push ebx
push dword [ebp + 0x14]
mov dword [0x434284], ebx
push dword [ebp - 0xc]
mov dword [0x434288], ebx
push 1
push ebx
push ebx
push dword [ebp - 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x34]
mov edi, eax
call fcn.0041b6ef
cmp esi, ebx
pop ecx
jne 0x41c54e
push edi
call fcn.00420f36
pop ecx
or eax, 0xffffffff
jmp 0x41c597
cmp dword [ebp + 8], 2
jne 0x41c55a
push ebx
call fcn.0041b67c
cmp dword [ebp + 8], ebx
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
jne 0x41c587
push 0xffffffffffffffff
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov ebx, dword [ebp - 0x14]
push dword [ebp - 0x24]
call esi
jmp 0x41c590
cmp dword [ebp + 8], 4
je 0x41c580
mov ebx, dword [ebp - 0x24]
push dword [ebp - 0x20]
call esi
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41f658
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x39c]
sub esp, 0x41c
mov ecx, dword [ebp + 0x3a4]
cmp ecx, dword [0x4348a0]
mov eax, dword [0x4332fc]
push ebx
push esi
mov dword [ebp + 0x398], eax
push edi
jae 0x41f81e
mov eax, ecx
sar eax, 5
lea ebx, [eax*4 + 0x4348c0]
mov eax, dword [ebx]
mov esi, ecx
and esi, 0x1f
shl esi, 3
mov al, byte [eax + esi + 4]
test al, 1
mov dword [ebp - 0x80], ebx
je 0x41f81e
xor edi, edi
cmp dword [ebp + 0x3ac], edi
mov dword [ebp - 0x74], edi
mov dword [ebp - 0x7c], edi
jne 0x41f6c2
xor eax, eax
jmp 0x41f832
test al, 0x20
je 0x41f6d3
push 2
push edi
push edi
push ecx
call fcn.00424266
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x41f7a8
cmp dword [ebp + 0x3ac], edi
mov eax, dword [ebp + 0x3a8]
mov dword [ebp - 0x70], eax
mov dword [ebp + 0x3a4], edi
jbe 0x41f7ef
mov ecx, dword [ebp - 0x70]
sub ecx, dword [ebp + 0x3a8]
lea eax, [ebp - 0x6c]
cmp ecx, dword [ebp + 0x3ac]
jae 0x41f735
mov edx, dword [ebp - 0x70]
inc dword [ebp - 0x70]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x41f726
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc edi
mov ebx, dword [ebp - 0x80]
mov byte [eax], dl
inc eax
inc edi
cmp edi, 0x400
jl 0x41f708
mov edi, eax
lea eax, [ebp - 0x6c]
sub edi, eax
push 0
lea eax, [ebp - 0x78]
push eax
push edi
lea eax, [ebp - 0x6c]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41f775
mov eax, dword [ebp - 0x78]
add dword [ebp - 0x74], eax
cmp eax, edi
jl 0x41f781
mov eax, dword [ebp - 0x70]
sub eax, dword [ebp + 0x3a8]
xor edi, edi
cmp eax, dword [ebp + 0x3ac]
jb 0x41f6fc
jmp 0x41f783
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0x3a4], eax
xor edi, edi
mov eax, dword [ebp - 0x74]
cmp eax, edi
jne 0x41f819
cmp dword [ebp + 0x3a4], edi
je 0x41f7ef
push 5
pop eax
cmp dword [ebp + 0x3a4], eax
jne 0x41f7e1
mov dword [0x434288], eax
jmp 0x41f825
push edi
lea ecx, [ebp - 0x78]
push ecx
push dword [ebp + 0x3ac]
push dword [ebp + 0x3a8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41f7d3
mov eax, dword [ebp - 0x78]
mov dword [ebp + 0x3a4], edi
mov dword [ebp - 0x74], eax
jmp 0x41f783
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0x3a4], eax
jmp 0x41f783
push dword [ebp + 0x3a4]
call fcn.00420f36
pop ecx
jmp 0x41f82f
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x41f807
mov eax, dword [ebp + 0x3a8]
cmp byte [eax], 0x1a
je 0x41f6bb
mov dword [0x434284], 0x1c
mov dword [0x434288], edi
jmp 0x41f82f
sub eax, dword [ebp - 0x7c]
jmp 0x41f832
and dword [0x434288], 0
mov dword [0x434284], 9
or eax, 0xffffffff
mov ecx, dword [ebp + 0x398]
pop edi
pop esi
pop ebx
call fcn.0041b6dc
add ebp, 0x39c
leave
ret
Function at 0x420616
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x4332fc]
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 + 0x4337e8]
je 0x42064b
inc eax
cmp eax, 0x13
jb 0x42063c
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x4337e8]
jne 0x420771
mov eax, dword [0x4342e4]
cmp eax, 1
je 0x420749
cmp eax, edx
jne 0x42067b
cmp dword [0x433318], 1
je 0x420749
cmp ecx, 0xfc
je 0x420771
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 0x4206b1
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.0041e4d0
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.0041c820
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x4206e5
mov eax, edi
push eax
call fcn.0041c820
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x42d5ec
push edi
call fcn.004230c0
add esp, 0x10
push edi
call fcn.0041c820
push dword [esi + 0x4337ec]
mov ebx, eax
call fcn.0041c820
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.0041c610
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.0041e4d0
push edi
push ebx
call fcn.0041e4e0
push 0x42d5e8
push ebx
call fcn.0041e4e0
push dword [esi + 0x4337ec]
push ebx
call fcn.0041e4e0
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.00423eec
add esp, 0x2c
jmp 0x420771
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x4337ec]
push dword [esi]
call fcn.0041c820
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.0041b6dc
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x42100d
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.0041c610
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4210a8
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 [0x434290]
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 0x4210a8
cmp eax, 1
je 0x4210c9
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 0x4210a8
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x421075
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x4210a4
xor eax, eax
inc eax
jmp 0x4210e8
cmp edi, eax
jae 0x4210ac
xor eax, eax
jmp 0x4210e8
cmp eax, esi
jae 0x4210b3
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 [0x434290]
jmp 0x4210cc
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 0x421bfc
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x421c1c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00420f36
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x421c3d
test byte [esp + 8], 2
je 0x421c3d
mov dword [0x434284], 0xd
mov dword [0x434288], 5
jmp 0x421c18
xor eax, eax
ret
Function at 0x423eec
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x4345bc], ebx
push esi
push edi
jne 0x423f6c
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x423fa7
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x4345bc], eax
je 0x423fa7
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x4345c0], eax
call esi
cmp dword [0x434290], 2
mov dword [0x4345c4], eax
jne 0x423f6c
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x4345cc], eax
je 0x423f6c
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x4345c8], eax
mov eax, dword [0x4345c8]
test eax, eax
je 0x423fb1
call eax
test eax, eax
je 0x423f98
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x4345cc]
test eax, eax
je 0x423f98
test byte [ebp - 8], 1
jne 0x423fb1
cmp dword [0x43429c], 4
jb 0x423fab
or byte [ebp + 0x12], 0x20
jmp 0x423fd0
xor eax, eax
jmp 0x423fe0
or byte [ebp + 0x12], 4
jmp 0x423fd0
mov eax, dword [0x4345c0]
test eax, eax
je 0x423fd0
call eax
mov ebx, eax
test ebx, ebx
je 0x423fd0
mov eax, dword [0x4345c4]
test eax, eax
je 0x423fd0
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x4345bc]
pop edi
pop esi
pop ebx
leave
ret