joyce8/EMBER2024-capa huggingface dataset:
Function at 0x61ad80
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x6cc719
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
mov dword [edi + 8], ebx
mov dword [esp + 0x10], edi
mov dword [edi + 0x28], 0xffffffff
mov dword [esp + 0x1c], ebx
mov dword [edi + 0x30], ebx
mov dword [edi + 0x50], ebx
lea esi, [edi + 0x70]
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
push 2
mov ecx, esi
mov byte [esp + 0x20], 3
mov byte [edi + 0x80], bl
call fcn.0047efd0
mov eax, dword [esi + 4]
cmp eax, ebx
mov dword [esp + 0xc], 0x7308ac
jne 0x61adea
xor edx, edx
jmp 0x61adf2
mov edx, dword [esi + 8]
sub edx, eax
sar edx, 2
cmp eax, ebx
je 0x61ae13
mov ecx, dword [esi + 0xc]
sub ecx, eax
sar ecx, 2
cmp edx, ecx
jae 0x61ae13
mov eax, dword [esi + 8]
mov dword [eax], vtable.type_info.0
add eax, 4
mov dword [esi + 8], eax
jmp 0x61ae25
mov eax, dword [esi + 8]
lea ecx, [esp + 0xc]
push ecx
push 1
push eax
mov ecx, esi
call fcn.00487c00
mov edx, dword [esi + 4]
cmp edx, ebx
mov dword [esp + 0xc], 0x74205c
jne 0x61ae38
xor ecx, ecx
jmp 0x61ae40
mov ecx, dword [esi + 8]
sub ecx, edx
sar ecx, 2
cmp edx, ebx
je 0x61ae61
mov eax, dword [esi + 0xc]
sub eax, edx
sar eax, 2
cmp ecx, eax
jae 0x61ae61
mov eax, dword [esi + 8]
mov dword [eax], vtable.type_info.0
add eax, 4
mov dword [esi + 8], eax
jmp 0x61ae73
mov eax, dword [esi + 8]
lea edx, [esp + 0xc]
push edx
push 1
push eax
mov ecx, esi
call fcn.00487c00
mov ecx, dword [esp + 0x14]
mov dword [edi + 0x28], 3
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret 8

Function at 0x61b830
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x6cc7f8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push str.CGuiTab
lea ecx, [esp + 0x1c]
call fcn.005d2c90
lea eax, [esp + 0x18]
mov ecx, eax
mov dword [esp + 0x2c], 0
mov dword [esp + 0x20], eax
call fcn.00619cd0
mov byte [esp + 4], 0
mov ecx, dword [esp + 4]
push ecx
mov byte [esp + 0xc], 0
mov edx, dword [esp + 0xc]
push edx
lea eax, [esp + 0xb]
push eax
lea ecx, [esp + 0x18]
push ecx
push str.AddControl
lea ecx, [esp + 0x2c]
mov dword [esp + 0x40], 1
mov dword [esp + 0x20], fcn.0061b020
call fcn.0061b650
push ecx
mov ecx, esp
mov dword [esp + 0x10], esp
push eax
call fcn.005cec30
mov edx, dword [esp + 0x38]
push 0
push edx
lea ecx, [esp + 0x1c]
mov byte [esp + 0x38], 2
call fcn.005ced10
lea ecx, [esp + 0x14]
mov byte [esp + 0x30], 1
call fcn.005ced30
lea ecx, [esp + 0x18]
mov dword [esp + 0x2c], 0xffffffff
call fcn.005cec50
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
add esp, 0x30
ret
Function at 0x620f40
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x6cc9de
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
push esi
mov esi, ecx
or eax, 0xffffffff
xor ebx, ebx
mov dword [esi + 8], eax
mov dword [esi + 4], eax
push edi
mov dword [esp + 0x10], esi
mov dword [esi + 0xc], ebx
lea edi, [esi + 0x14]
mov dword [esi], 0x6f3128
mov eax, 0xf
mov dword [edi + 0x18], eax
mov dword [edi + 0x14], ebx
mov dword [esp + 0x1c], ebx
mov byte [edi + 4], bl
lea ebp, [esi + 0x30]
mov dword [ebp + 0x18], eax
mov dword [ebp + 0x14], ebx
mov byte [ebp + 4], bl
mov eax, dword [esp + 0x24]
push eax
mov byte [esp + 0x20], 2
call fcn.0062f7d0
mov ecx, dword [esp + 0x28]
add esp, 4
push eax
push ecx
mov ecx, edi
call fcn.00404c50
mov edi, dword [esp + 0x28]
push edi
call fcn.0062f7d0
add esp, 4
push eax
push edi
mov ecx, ebp
call fcn.00404c50
mov ecx, dword [esp + 0x14]
pop edi
mov dword [esi + 0x10], ebx
mov dword [esi + 0x50], ebx
mov dword [esi + 0x4c], ebx
mov eax, esi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 8
Function at 0x631679
Capabilities:
Terminate process

Disassembly:
push 8
push 0x6f5578
call fcn.00636c18
push 8
call fcn.00636be4
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x7525a8], esi
jne 0x6316ad
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x7525a4], esi
mov al, byte [ebp + 0x10]
mov byte [0x7525a0], al
cmp dword [ebp + 0xc], edi
jne 0x6316f7
cmp dword [0x753fec], edi
je 0x6316e7
mov eax, dword [0x753fe8]
sub eax, 4
mov dword [0x753fe8], eax
cmp eax, dword [0x753fec]
jb 0x6316e7
mov eax, dword [eax]
cmp eax, edi
je 0x6316c8
call eax
jmp 0x6316c8
push 0x722210
mov eax, 0x722208
call fcn.006315f7
pop ecx
push 0x72221c
mov eax, 0x722214
call fcn.006315f7
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x631728
cmp dword [ebp + 0x10], edi
jne 0x631736
mov dword [0x7525a8], esi
push dword [ebp + 8]
call fcn.006315b5
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x631735
push 8
call fcn.00636b2f
pop ecx
ret
call fcn.00636c53
ret
Function at 0x633403
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x6f55a8
call fcn.00636c18
mov edi, 0x94
mov eax, edi
call fcn.006306e0
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 [0x752568], ecx
mov eax, dword [esi + 4]
mov dword [0x752574], eax
mov edx, dword [esi + 8]
mov dword [0x752578], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x75256c], esi
cmp ecx, 2
je 0x633463
or esi, 0x8000
mov dword [0x75256c], esi
shl eax, 8
add eax, edx
mov dword [0x752570], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x63349e
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x63349e
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x6334b6
cmp eax, 0x20b
je 0x6334a3
mov dword [ebp - 0x1c], esi
jmp 0x6334ca
cmp dword [ecx + 0x84], 0xe
jbe 0x63349e
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x6334c4
cmp dword [ecx + 0x74], 0xe
jbe 0x63349e
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.0063885a
pop ecx
test eax, eax
jne 0x6334de
push 0x1c
call fcn.006333df
pop ecx
call fcn.006385b3
test eax, eax
jne 0x6334ef
push 0x10
call fcn.006333df
pop ecx
call fcn.0063a021
mov dword [ebp - 4], esi
call fcn.0063c72e
test eax, eax
jge 0x633508
push 0x1b
call fcn.006333ba
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x752fbc], eax
call fcn.0063e1cd
mov dword [0x752600], eax
call fcn.0063e12b
test eax, eax
jge 0x63352e
push 8
call fcn.006333ba
pop ecx
call fcn.0063def8
test eax, eax
jge 0x63353f
push 9
call fcn.006333ba
pop ecx
push 1
call fcn.0063160f
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x633555
push eax
call fcn.006333ba
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.0063de9b
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x633576
movzx eax, word [ebp - 0x40]
jmp 0x633579
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.0041a7c0
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x633597
push edi
call fcn.0063173c
call fcn.0063175e
jmp 0x6335c9
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.00636c53
ret
Function at 0x634ab3
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, dword [ebp + 0x10]
xor ebx, ebx
test edi, edi
jne 0x634ad0
call fcn.0063583f
mov dword [eax], 0x16
xor eax, eax
jmp 0x634b3a
push esi
push 0x8c
push 1
call fcn.006363bd
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x634b25
push esi
call fcn.006383b9
mov eax, dword [ebp + 0x14]
or dword [esi + 4], 0xffffffff
mov dword [esi + 0x50], eax
mov eax, dword [ebp + 0x1c]
test eax, eax
pop ecx
mov dword [esi + 0x4c], edi
jne 0x634b03
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x18]
push esi
push 0x634a1e
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x634b39
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push esi
call fcn.00630b88
test ebx, ebx
pop ecx
je 0x634b37
push ebx
call fcn.00635851
pop ecx
xor eax, eax
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x639526
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
cmp dword [ebp + 0x10], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edx, ebx
je 0x6396fa
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x752e80]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x6396fa
test cl, 0x48
je 0x639591
cmp byte [eax + 5], 0xa
je 0x639591
mov eax, dword [edi]
mov al, byte [eax + esi + 5]
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea edx, [ebx + 1]
mov dword [ebp - 8], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push edx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x6395e3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x6395cb
call fcn.0063583f
mov dword [eax], 9
call fcn.00635848
mov dword [eax], esi
jmp 0x6395db
cmp eax, 0x6d
je 0x6396fa
push eax
call fcn.00635851
pop ecx
or eax, 0xffffffff
jmp 0x6396fc
mov eax, dword [ebp - 0xc]
mov ecx, dword [edi]
add dword [ebp - 8], eax
test byte [ecx + esi + 4], 0x80
je 0x6396f5
test eax, eax
je 0x63960a
cmp byte [ebx], 0xa
jne 0x63960a
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x639613
mov eax, dword [edi]
lea eax, [eax + esi + 4]
and byte [eax], 0xfb
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
add ecx, eax
cmp eax, ecx
mov dword [ebp + 0x10], eax
mov dword [ebp - 8], ecx
jae 0x6396ef
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x6396df
cmp al, 0xd
je 0x639645
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x6396d1
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x63965f
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x63965a
add dword [ebp + 0x10], 2
jmp 0x6396b3
mov dword [ebp + 0x10], eax
jmp 0x6396cd
inc dword [ebp + 0x10]
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x639687
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x6396cd
cmp dword [ebp - 0xc], 0
je 0x6396cd
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x6396a8
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x6396b3
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x6396d0
cmp ebx, dword [ebp + 0xc]
jne 0x6396b8
cmp byte [ebp - 1], 0xa
jne 0x6396b8
mov byte [ebx], 0xa
jmp 0x6396d0
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0063cb32
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x6396d1
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x639629
jmp 0x6396ef
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x6396ef
lea esi, [eax + esi + 4]
or byte [esi], 2
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x6396fc
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x639a36
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 0x639a64
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 0x639a6b
cmp ebx, dword [eax + 4]
jae 0x639a6b
xor eax, eax
jmp 0x639c5b
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x639a7c
xor eax, eax
inc eax
jmp 0x639c5a
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x639a92
cmp ecx, edx
jae 0x639bd7
cmp dword [eax + 4], 0
je 0x639a9b
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x639a83
cmp dword [ebp + 8], 0
je 0x639abd
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x639bd7
cmp eax, esi
jae 0x639bd7
mov eax, dword [0x752818]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x639ae2
cmp dword [esi*4 + 0x752820], edi
je 0x639bdb
inc esi
cmp esi, eax
jl 0x639ad0
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x639c57
cmp dword [ebp - 8], 0x1000000
jne 0x639c57
test byte [ebp - 0xc], 0xcc
je 0x639b60
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x639c57
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x639c57
cmp word [eax + 0x18], 0x10b
jne 0x639c57
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x639c57
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x639b60
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x639b60
test byte [ecx + 0x27], 0x80
jne 0x639bd7
push 1
push 0x752860
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x639a74
mov ecx, dword [0x752818]
test ecx, ecx
mov edx, ecx
jle 0x639b94
lea eax, [ecx*4 + 0x75281c]
cmp dword [eax], edi
je 0x639b94
dec edx
sub eax, 4
test edx, edx
jg 0x639b88
test edx, edx
jne 0x639bc5
push 0xf
pop ebx
cmp ecx, ebx
jg 0x639ba1
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x639bb9
lea eax, [edx*4 + 0x752820]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x639ba7
cmp ecx, 0x10
jge 0x639bc5
inc ecx
mov dword [0x752818], ecx
push 0
push 0x752860
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x639a74
xor eax, eax
jmp 0x639c5a
test esi, esi
jle 0x639a74
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x752860
call ebx
test eax, eax
jne 0x639a74
cmp dword [esi*4 + 0x752820], edi
je 0x639c31
mov eax, dword [0x752818]
lea esi, [eax - 1]
test esi, esi
jl 0x639c1f
cmp dword [esi*4 + 0x752820], edi
je 0x639c1b
dec esi
jns 0x639c0f
test esi, esi
jge 0x639c2f
cmp eax, 0x10
jge 0x639c2a
inc eax
mov dword [0x752818], eax
lea esi, [eax - 1]
jmp 0x639c31
je 0x639c49
xor ecx, ecx
test esi, esi
jl 0x639c49
lea eax, [ecx*4 + 0x752820]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x639c37
push 0
push 0x752860
call ebx
jmp 0x639a74
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x639da8
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x74624c]
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 0x639dd9
xor eax, eax
jmp 0x639f62
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 + 0x752e80]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x639e15
push 2
push edi
push edi
push dword [ebp + 0x3a8]
call fcn.006492df
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x639ef0
cmp dword [ebp + 0x3b0], edi
mov eax, dword [ebp + 0x3ac]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x6c], edi
jbe 0x639f2e
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 0x639e79
mov edx, dword [ebp - 0x74]
inc dword [ebp - 0x74]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x639e6a
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 0x639e4a
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 0x639eb9
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x78], eax
cmp eax, edi
jl 0x639ec2
mov eax, dword [ebp - 0x74]
sub eax, dword [ebp + 0x3ac]
xor edi, edi
cmp eax, dword [ebp + 0x3b0]
jb 0x639e3b
jmp 0x639ec4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
xor edi, edi
mov eax, dword [ebp - 0x78]
cmp eax, edi
jne 0x639f5d
cmp dword [ebp - 0x6c], edi
je 0x639f2e
push 5
pop esi
cmp dword [ebp - 0x6c], esi
jne 0x639f23
call fcn.0063583f
mov dword [eax], 9
call fcn.00635848
mov dword [eax], esi
jmp 0x639f58
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 0x639f18
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x78], eax
jmp 0x639ec4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
jmp 0x639ec4
push dword [ebp - 0x6c]
call fcn.00635851
pop ecx
jmp 0x639f58
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x639f46
mov eax, dword [ebp + 0x3ac]
cmp byte [eax], 0x1a
jne 0x639f46
xor eax, eax
jmp 0x639f60
call fcn.0063583f
mov dword [eax], 0x1c
call fcn.00635848
mov dword [eax], edi
or eax, 0xffffffff
jmp 0x639f60
sub eax, dword [ebp - 0x7c]
pop esi
pop ebx
mov ecx, dword [ebp + 0x39c]
pop edi
call fcn.00637552
add ebp, 0x3a0
leave
ret
Function at 0x63db87
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x74624c]
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 + 0x746590]
je 0x63dbbc
inc eax
cmp eax, 0x13
jb 0x63dbad
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x746590]
jne 0x63dce2
mov eax, dword [0x752608]
cmp eax, 1
je 0x63dcba
cmp eax, edx
jne 0x63dbec
cmp dword [0x745d44], 1
je 0x63dcba
cmp ecx, 0xfc
je 0x63dce2
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 0x63dc22
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.00630960
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.0062f7d0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x63dc56
mov eax, edi
push eax
call fcn.0062f7d0
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x6e7b44
push edi
call fcn.0062fff0
add esp, 0x10
push edi
call fcn.0062f7d0
push dword [esi + 0x746594]
mov ebx, eax
call fcn.0062f7d0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.006306e0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00630960
push edi
push ebx
call fcn.00630970
push 0x6db1b0
push ebx
call fcn.00630970
push dword [esi + 0x746594]
push ebx
call fcn.00630970
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.00649614
add esp, 0x2c
jmp 0x63dce2
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x746594]
push dword [esi]
call fcn.0062f7d0
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.00637552
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x64545f
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.006306e0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x6454fa
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 [0x752568]
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 0x6454fa
cmp eax, 1
je 0x64551b
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 0x6454fa
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x6454c7
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x6454f6
xor eax, eax
inc eax
jmp 0x64553a
cmp edi, eax
jae 0x6454fe
xor eax, eax
jmp 0x64553a
cmp eax, esi
jae 0x645505
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 [0x752568]
jmp 0x64551e
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 0x649614
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x752b20], ebx
push esi
push edi
jne 0x649694
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x6496cf
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x6fefa8
push edi
call esi
test eax, eax
mov dword [0x752b20], eax
je 0x6496cf
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x752b24], eax
call esi
cmp dword [0x752568], 2
mov dword [0x752b28], eax
jne 0x649694
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x752b30], eax
je 0x649694
push 0x6fef50
push edi
call esi
mov dword [0x752b2c], eax
mov eax, dword [0x752b2c]
test eax, eax
je 0x6496d9
call eax
test eax, eax
je 0x6496c0
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x752b30]
test eax, eax
je 0x6496c0
test byte [ebp - 8], 1
jne 0x6496d9
cmp dword [0x752574], 4
jb 0x6496d3
or byte [ebp + 0x12], 0x20
jmp 0x6496f8
xor eax, eax
jmp 0x649708
or byte [ebp + 0x12], 4
jmp 0x6496f8
mov eax, dword [0x752b24]
test eax, eax
je 0x6496f8
call eax
mov ebx, eax
test ebx, ebx
je 0x6496f8
mov eax, dword [0x752b28]
test eax, eax
je 0x6496f8
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x752b20]
pop edi
pop esi
pop ebx
leave
ret