joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41859f
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0040b680
mov eax, dword [0x433064]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.0041565e
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4185e1
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x41873d
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00423a80
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x4ed0b8]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.004193a1
mov ecx, dword [esi*4 + 0x4ed0b8]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x418736
cmp eax, dword [ecx + edi + 0x24]
jne 0x418736
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x418736
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004193a1
add esp, 0x14
test edx, edx
jl 0x418736
jg 0x4186ac
test eax, eax
jb 0x418736
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x418736
jl 0x4186c6
cmp dword [ebp - 0x1008], eax
ja 0x418736
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x4186e4
test ebx, ebx
je 0x41871d
cmp ecx, edi
jae 0x41871d
mov al, byte [ecx]
cmp al, 0xd
jne 0x4186fe
lea eax, [edi - 1]
cmp ecx, eax
jae 0x41870a
cmp byte [ecx + 1], 0xa
jne 0x41870a
inc ecx
jmp 0x41870a
movzx eax, al
movsx eax, byte [eax + 0x4332e8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x4186e4
cmp edx, ebx
jne 0x4186e4
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x41873b
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040a8fe
leave
ret
Function at 0x418838
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x4ed0b8]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x418878
cmp byte [ebx], 0xa
jne 0x418878
or byte [edi + eax + 0x28], 4
jmp 0x41887d
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x41897c
mov dl, byte [eax]
cmp dl, 0x1a
je 0x41895f
inc eax
cmp dl, 0xd
je 0x4188a9
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x4188cf
cmp eax, ecx
jae 0x4188dd
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x418891
jmp 0x41897c
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41895a
cmp dword [ebp - 0x10], 0
je 0x41895a
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x4ed0b8]
test byte [eax + edi + 0x28], 0x48
je 0x418934
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x41891f
mov byte [esi], dl
jmp 0x418930
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4ed0b8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x41897c
cmp byte [ebp - 1], 0xa
jne 0x418943
cmp esi, ebx
jne 0x418943
mov byte [esi], 0xa
jmp 0x41897b
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004193bf
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41897c
mov byte [esi], 0xd
jmp 0x41897b
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x4ed0b8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x418979
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41897c
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x418985
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x4ed0b8]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4189cb
cmp word [ebx], dx
jne 0x4189cb
or byte [eax + edi + 0x28], 4
jmp 0x4189d0
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x418b33
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x418b13
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x418a11
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x418a47
cmp eax, edx
jae 0x418a55
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x4189ec
jmp 0x418b33
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x418b0e
cmp dword [ebp - 0x18], 0
je 0x418b0e
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x4ed0b8]
test byte [eax + edi + 0x28], 0x48
je 0x418ae4
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x418aa8
mov word [esi], cx
jmp 0x418adf
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x4ed0b8]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x4ed0b8]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x4ed0b8]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x418b33
pop eax
cmp word [ebp - 4], ax
jne 0x418af4
cmp esi, ebx
jne 0x418af4
mov word [esi], ax
jmp 0x418b30
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004193bf
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x418b33
push 0xd
pop eax
jmp 0x418aef
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x4ed0b8]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x418b2d
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x418b33
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4010cb
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push esi
push edi
push 0x104
lea eax, [ebp - 0x104]
push 0
push eax
call fcn.00403480
add esp, 0xc
lea eax, [ebp - 0x104]
mov esi, 0x103
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x401122
lea eax, [ebp - 0x104]
push eax
push 0
lea eax, [ebp - 0x104]
push 0x405008
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x401129
xor eax, eax
jmp 0x40122b
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [ebp + 8]
dec eax
je 0x4011fb
dec eax
je 0x4011da
dec eax
je 0x401195
dec eax
jne 0x40121a
cmp byte [ebp + esi - 0x104], 0x5c
je 0x40115e
dec esi
jns 0x401151
lea eax, [ebp + esi - 0x103]
mov byte [eax], 0x64
inc eax
mov byte [eax], 0x69
inc eax
mov byte [eax], 0x72
inc eax
mov byte [eax], 0x65
inc eax
mov byte [eax], 0x63
inc eax
mov byte [eax], 0x74
inc eax
mov byte [eax], 0x78
inc eax
mov byte [eax], 0x2e
inc eax
mov byte [eax], 0x68
inc eax
mov byte [eax], 0x74
mov byte [eax + 1], 0x6d
jmp 0x40121a
cmp byte [ebp + esi - 0x104], 0x5c
je 0x4011a2
dec esi
jns 0x401195
lea eax, [ebp + esi - 0x103]
mov byte [eax], 0x64
inc eax
mov byte [eax], 0x69
inc eax
mov byte [eax], 0x72
inc eax
mov byte [eax], 0x78
inc eax
mov byte [eax], 0x6c
inc eax
mov byte [eax], 0x6f
inc eax
mov byte [eax], 0x67
inc eax
mov byte [eax], 0x6f
inc eax
mov byte [eax], 0x2e
inc eax
mov byte [eax], 0x67
inc eax
mov byte [eax], 0x69
mov byte [eax + 1], 0x66
jmp 0x40121a
cmp byte [ebp + esi - 0x104], 0x2e
je 0x4011e7
dec esi
jns 0x4011da
lea eax, [ebp + esi - 0x103]
mov byte [eax], 0x45
inc eax
mov byte [eax], 0x58
mov byte [eax + 1], 0x45
jmp 0x40121a
cmp byte [ebp + esi - 0x104], 0x2e
je 0x401208
dec esi
jns 0x4011fb
lea eax, [ebp + esi - 0x103]
mov byte [eax], 0x4c
inc eax
mov byte [eax], 0x5a
mov byte [eax + 1], 0x48
mov edi, dword [ebp + 0xc]
push 0x41
pop ecx
lea esi, [ebp - 0x104]
push 1
rep movsd dword es:[edi], dword [esi]
pop eax
pop edi
pop esi
leave
ret
Function at 0x40122f
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
xor esi, esi
push dword [ebp + 0xc]
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
cmp edi, esi
je 0x4012c7
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, esi
mov dword [ebp + 8], eax
je 0x4012c7
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
cmp ebx, esi
je 0x4012c7
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.004010cb
pop ecx
test eax, eax
pop ecx
je 0x4012c7
push esi
push pe_nt_image_headers32
push 1
push esi
push 3
push 0xc0000000
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x4012c7
lea eax, [ebp + 0xc]
push esi
push eax
push ebx
push dword [ebp + 8]
mov dword [ebp + 0xc], esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4012c0
cmp dword [ebp + 0xc], ebx
jne 0x4012c0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 1
pop eax
jmp 0x4012c9
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4012ce
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push dword [esp + 0xc]
push dword [esp + 0xc]
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x4012f8
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ecx, dword [esp + 0x14]
test eax, eax
mov dword [ecx], eax
jne 0x4012fc
xor eax, eax
pop esi
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x10]
pop esi
mov dword [ecx], eax
xor ecx, ecx
test eax, eax
setne cl
mov eax, ecx
ret

Function at 0x40143e
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
push ebx
push esi
push 1
lea eax, [ebp - 0x144]
pop ebx
push eax
mov eax, str.HTMLFILE
push 4
push eax
push eax
mov dword [ebp - 4], ebx
call fcn.0040122f
add esp, 0x10
test eax, eax
je 0x4014c1
xor esi, esi
push 0x3c
lea eax, [ebp - 0x40]
push esi
push eax
call fcn.00403480
lea eax, [ebp - 0x144]
add esp, 0xc
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x40]
push eax
mov dword [ebp - 0x40], 0x3c
mov dword [ebp - 0x3c], 0x40
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x24], ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
jne 0x4014c5
push esi
push str.Card_Extractor
push str.You_do_not_have_DirectX_installed._Please_install_DirectX.
push esi
call dword [sym.imp.USER32.dll_MessageBoxA]
mov dword [ebp - 4], esi
jmp 0x4014c5
and dword [ebp - 4], 0
mov eax, dword [ebp - 4]
pop esi
pop ebx
leave
ret
Function at 0x4014cc
Capabilities:
Create process on windows
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x160
push esi
push edi
xor edi, edi
push 0x7f02
push edi
mov dword [ebp - 4], 1
call dword [sym.imp.USER32.dll_LoadCursorA]
mov esi, dword [sym.imp.USER32.dll_SetCursor]
push eax
call esi
mov dword [ebp - 8], eax
call fcn.004013a6
test eax, eax
jne 0x401511
push dword [ebp + 8]
call fcn.0040143e
pop ecx
xor eax, eax
jmp 0x4015af
lea eax, [ebp - 0x160]
push eax
call fcn.00401316
test eax, eax
pop ecx
je 0x40158d
push 0x44
lea eax, [ebp - 0x5c]
push edi
push eax
call fcn.00403480
add esp, 0xc
lea eax, [ebp - 0x18]
mov dword [ebp - 0x5c], 0x44
push eax
lea eax, [ebp - 0x5c]
push eax
push edi
push edi
push 0x20
push 1
push edi
lea eax, [ebp - 0x160]
push edi
push eax
lea eax, [ebp - 0x160]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
push dword [ebp - 8]
test eax, eax
je 0x401572
call esi
push 0xffffffffffffffff
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x40157e
call esi
mov dword [ebp + 8], str.Unable_to_start_card_process
mov dword [ebp - 4], edi
lea eax, [ebp - 0x160]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x401597
mov dword [ebp + 8], str.Error_decompressing_card
mov dword [ebp - 4], edi
cmp dword [ebp - 4], edi
jne 0x4015ac
push edi
push str.Card_Extractor
push dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, dword [ebp - 4]
pop edi
pop esi
leave
ret 0x10

Function at 0x4035b0
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 4]
imul ecx, dword [esp + 8]
lea eax, [esp + 0xc]
push 0
push eax
mov eax, dword [esp + 0x18]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 0xc]
ret

Function at 0x4035e0
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
sub esp, 0x44
push esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, eax
mov al, byte [esi]
cmp al, 0x22
jne 0x403606
cmp al, 0x22
je 0x4035fe
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x4035f2
cmp byte [esi], 0x22
jne 0x403612
inc esi
jmp 0x403612
cmp al, 0x20
jle 0x403612
mov al, byte [esi + 1]
inc esi
cmp al, 0x20
jg 0x40360a
mov al, byte [esi]
test al, al
je 0x403624
cmp al, 0x20
jg 0x403624
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x403618
lea eax, [esp + 4]
mov dword [esp + 0x30], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [esp + 0x30], 1
je 0x403649
mov eax, dword [esp + 0x34]
and eax, 0xffff
jmp 0x40364e
mov eax, 0xa
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x10001064
Capabilities:
Accept command line arguments

Disassembly:
push 0x18
push 0x10006320
call fcn.10001134
and dword [ebp - 4], 0
mov dword [ebp - 0x24], 9
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [ebp - 0x20], eax
xor eax, eax
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x20]
mov cl, byte [ecx]
mov byte [ebp - 0x19], cl
inc dword [ebp - 0x20]
test cl, cl
jne 0x100010f2
cmp eax, 0xaa90dc17
je 0x100010e6
cmp eax, 0xe3db50d2
je 0x100010e6
test eax, eax
je 0x100010e6
cmp eax, 0xdfa9177c
je 0x100010e6
cmp eax, 0x474eb23
je 0x100010e6
cmp eax, 0x7d16c3c3
je 0x100010e6
cmp eax, 0xc93b9b09
je 0x100010e6
cmp eax, 0x4f06c604
je 0x100010e6
cmp eax, 0x6100ea5b
je 0x100010e6
cmp eax, 0x95e8260e
je 0x100010e6
cmp eax, 0x258f7e71
je 0x100010e6
sub dword [ebp - 0x24], 3
mov eax, dword [ebp - 0x24]
call dword [eax*4 + 0x1000dda8]
jmp 0x10001118
mov edx, eax
shr edx, 0x1e
shl eax, 2
or eax, edx
mov dword [ebp - 0x28], eax
movzx ecx, cl
add eax, ecx
mov dword [ebp - 0x28], eax
sub eax, 0x3c654
jmp 0x10001086
or dword [ebp - 4], 0xffffffff
call fcn.1000116f
ret

Function at 0x10001289
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
cmp eax, 1
push esi
jne 0x10001379
mov eax, 0x94
call fcn.100025f0
mov esi, esp
push esi
mov dword [esi], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x100013ee
mov ecx, dword [esi + 0x10]
mov dword [0x1000e728], ecx
mov eax, dword [esi + 4]
mov dword [0x1000e734], eax
mov edx, dword [esi + 8]
mov dword [0x1000e738], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
cmp ecx, 2
mov dword [0x1000e72c], esi
je 0x100012f4
or esi, 0x8000
mov dword [0x1000e72c], esi
shl eax, 8
add eax, edx
push 1
mov dword [0x1000e730], eax
call fcn.1000251c
test eax, eax
pop ecx
je 0x100013ee
call fcn.10001c02
test eax, eax
jne 0x10001321
call fcn.1000256d
jmp 0x100013ee
call fcn.1000247a
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x1000eef4], eax
call fcn.10002358
mov dword [0x1000e6c4], eax
call fcn.10001e39
test eax, eax
jl 0x10001372
call fcn.100022b6
test eax, eax
jl 0x1000136d
call fcn.10002083
test eax, eax
jl 0x1000136d
push 0
call fcn.10001895
test eax, eax
pop ecx
jne 0x1000136d
inc dword [0x1000e6c0]
jmp 0x100013ff
call fcn.10002037
call fcn.100019eb
jmp 0x10001317
test eax, eax
jne 0x100013a9
cmp dword [0x1000e6c0], eax
jle 0x100013ee
dec dword [0x1000e6c0]
cmp dword [0x1000e764], eax
jne 0x10001398
call fcn.100019d3
call fcn.10002037
call fcn.100019eb
call fcn.1000256d
jmp 0x100013ff
cmp eax, 2
jne 0x100013f2
push 0x8c
push 1
call fcn.10001d62
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x100013ee
push esi
push dword [0x1000ddfc]
call dword [0x1000e774]
test eax, eax
push esi
je 0x100013e8
call fcn.10001a08
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
or dword [esi + 4], 0xffffffff
mov dword [esi], eax
jmp 0x100013ff
call fcn.10001cf1
pop ecx
xor eax, eax
jmp 0x10001402
cmp eax, 3
jne 0x100013ff
push 0
call fcn.10001bd3
pop ecx
xor eax, eax
inc eax
lea esp, [ebp - 4]
pop esi
pop ebp
ret 0xc
Function at 0x100018ff
Capabilities:
Terminate process

Disassembly:
push 8
push 0x10006358
call fcn.10001134
push 8
call fcn.10002ab0
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x1000e768], esi
jne 0x10001933
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x1000e764], esi
mov al, byte [ebp + 0x10]
mov byte [0x1000e760], al
cmp dword [ebp + 0xc], edi
jne 0x1000197d
cmp dword [0x1000eee8], edi
je 0x1000196d
mov eax, dword [0x1000eee4]
sub eax, 4
mov dword [0x1000eee4], eax
cmp eax, dword [0x1000eee8]
jb 0x1000196d
mov eax, dword [eax]
cmp eax, edi
je 0x1000194e
call eax
jmp 0x1000194e
push 0x10008020
mov eax, 0x1000801c
call fcn.1000187d
pop ecx
push 0x10008028
mov eax, 0x10008024
call fcn.1000187d
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x100019ae
cmp dword [ebp + 0x10], edi
jne 0x100019bc
mov dword [0x1000e768], esi
push dword [ebp + 8]
call fcn.1000183b
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x100019bb
push 8
call fcn.100029fb
pop ecx
ret
call fcn.1000116f
ret

Function at 0x100027ac
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x1000e300]
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 + 0x1000deb8]
je 0x100027e3
inc eax
cmp eax, 0x13
jb 0x100027d4
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x1000deb8]
jne 0x10002906
mov eax, dword [0x1000e6cc]
cmp eax, 1
je 0x100028e1
cmp eax, edx
jne 0x10002813
cmp dword [0x1000e6d0], 1
je 0x100028e1
cmp ecx, 0xfc
je 0x10002906
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 0x10002849
lea eax, [ebp - 0x7c]
push str._program_name_unknown_
push eax
call fcn.10003fa0
pop ecx
pop ecx
lea edi, [ebp - 0x7c]
mov eax, edi
push eax
call fcn.100040a0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x1000287d
mov eax, edi
push eax
call fcn.100040a0
mov edi, eax
lea eax, [ebp - 0x7c]
sub eax, 0x3b
push 3
add edi, eax
push 0x100067e8
push edi
call fcn.10004570
add esp, 0x10
push edi
call fcn.100040a0
push dword [esi + 0x1000debc]
mov ebx, eax
call fcn.100040a0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.100025f0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.10003fa0
push edi
push ebx
call fcn.10003fb0
push 0x100067c8
push ebx
call fcn.10003fb0
push dword [esi + 0x1000debc]
push ebx
call fcn.10003fb0
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.1000446d
add esp, 0x2c
jmp 0x10002906
push edx
lea eax, [ebp - 0x80]
push eax
lea esi, [esi + 0x1000debc]
push dword [esi]
call fcn.100040a0
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.100046c5
add ebp, 0x90
leave
ret
Function at 0x1000446d
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x1000e9fc], ebx
push esi
push edi
jne 0x100044ed
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x10004528
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x1000e9fc], eax
je 0x10004528
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x1000ea00], eax
call esi
cmp dword [0x1000e728], 2
mov dword [0x1000ea04], eax
jne 0x100044ed
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x1000ea0c], eax
je 0x100044ed
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x1000ea08], eax
mov eax, dword [0x1000ea08]
test eax, eax
je 0x10004532
call eax
test eax, eax
je 0x10004519
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x1000ea0c]
test eax, eax
je 0x10004519
test byte [ebp - 8], 1
jne 0x10004532
cmp dword [0x1000e734], 4
jb 0x1000452c
or byte [ebp + 0x12], 0x20
jmp 0x10004551
xor eax, eax
jmp 0x10004561
or byte [ebp + 0x12], 4
jmp 0x10004551
mov eax, dword [0x1000ea00]
test eax, eax
je 0x10004551
call eax
mov ebx, eax
test ebx, ebx
je 0x10004551
mov eax, dword [0x1000ea04]
test eax, eax
je 0x10004551
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x1000e9fc]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100058ce
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.100025f0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x10005969
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 [0x1000e728]
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 0x10005969
cmp eax, 1
je 0x1000598a
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 0x10005969
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x10005936
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x10005965
xor eax, eax
inc eax
jmp 0x100059a9
cmp edi, eax
jae 0x1000596d
xor eax, eax
jmp 0x100059a9
cmp eax, esi
jae 0x10005974
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 [0x1000e728]
jmp 0x1000598d
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