joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6770c0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x72dea3
push eax
mov eax, ecx
xor ecx, ecx
mov dword fs:[0], esp
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [eax], ecx
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x18], ecx
mov dword [eax + 0x1c], ecx
mov dword [eax + 0x24], ecx
mov dword [eax + 0x28], ecx
mov dword [eax + 0x20], ecx
mov dword [eax + 0x30], ecx
mov dword [eax + 0x34], ecx
mov dword [eax + 0x2c], ecx
mov dword [eax + 0x38], ecx
mov dword [eax + 0x3c], ecx
mov dword [eax + 0x48], ecx
mov dword [eax + 0x4c], ecx
mov dword [eax + 0x44], ecx
or dword [eax + 0x40], 1
mov ecx, dword [esp]
mov dword fs:[0], ecx
add esp, 0xc
ret

Function at 0x677300
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x72df18
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0xc]
call fcn.005b3190
lea ecx, [esp + 0x14]
mov dword [esp + 0x38], 0
call fcn.005b3190
mov ecx, dword [esp + 0x44]
mov eax, dword [esp + 0x40]
push ecx
lea ecx, [esp + 0x10]
mov dword [esp + 0x3c], 1
mov dword [esp + 0x2c], eax
call fcn.005e5c50
mov edx, dword [esp + 0x48]
push edx
lea ecx, [esp + 0x18]
call fcn.005e5c50
mov ecx, dword [esp + 0x50]
mov eax, dword [esp + 0x4c]
mov ebx, dword [esi + 4]
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x2c]
and ecx, 0xfffffffe
sub esp, 0x24
mov dword [esp + 0x50], ecx
lea edx, [esp + 0x30]
mov ecx, esp
mov dword [esp + 0x64], esp
push edx
mov dword [esp + 0x44], eax
call fcn.004c4080
mov ecx, esi
call fcn.004c65e0
mov eax, dword [esi + 0x14]
mov ecx, dword [esi + 0x10]
cmp ecx, eax
lea edi, [esi + 0xc]
jne 0x6773bd
test eax, eax
je 0x6773b0
add eax, eax
jmp 0x6773b5
mov eax, 0x10
push eax
mov ecx, edi
call fcn.005e03c0
mov eax, dword [edi + 4]
mov ecx, dword [edi]
mov dword [ecx + eax*4], ebx
inc dword [edi + 4]
mov ecx, esi
call fcn.00677000
or dword [esi + 0x1c], 1
lea ecx, [esp + 0x14]
mov dword [esp + 0x38], 2
call fcn.005e5c20
lea ecx, [esp + 0xc]
mov dword [esp + 0x38], 0xffffffff
call fcn.005e5c20
mov ecx, dword [esp + 0x30]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x30
ret 0x14
Function at 0x67dcf0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 8
push esi
mov esi, ecx
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x67dd77
push edi
mov edi, dword [eax + 0x50]
test edi, edi
jl 0x67dd76
cmp edi, 4
jge 0x67dd76
mov ecx, edi
imul ecx, ecx, 0x31c
lea edx, [ecx + esi + 0x2de0]
cmp eax, edx
jne 0x67dd76
mov ecx, dword [esi + 0x86d0]
mov eax, dword [ecx + edi*8 + 8]
cmp eax, 0xc
mov edx, dword [ecx + edi*8 + 0xc]
mov dword [esp + 0xc], edx
jl 0x67dd76
cmp eax, 0x12
jge 0x67dd76
push 0x7a23cc
lea ecx, [esi + 0x71c8]
call fcn.0067ca50
mov eax, dword [esi + 0x86d0]
mov edx, dword [eax + edi*8 + 0xc]
lea eax, [eax + edi*8 + 0xc]
xor ecx, ecx
test edx, edx
sete cl
push 0
mov dword [eax], ecx
mov ecx, dword [esi + 0x18]
call int.0040a140
pop edi
mov ecx, esi
pop esi
add esp, 8
jmp fcn.0067d4b0
pop edi
pop esi
add esp, 8
ret

Function at 0x67dcf3
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 8
push esi
mov esi, ecx
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x67dd77
push edi
mov edi, dword [eax + 0x50]
test edi, edi
jl 0x67dd76
cmp edi, 4
jge 0x67dd76
mov ecx, edi
imul ecx, ecx, 0x31c
lea edx, [ecx + esi + 0x2de0]
cmp eax, edx
jne 0x67dd76
mov ecx, dword [esi + 0x86d0]
mov eax, dword [ecx + edi*8 + 8]
cmp eax, 0xc
mov edx, dword [ecx + edi*8 + 0xc]
mov dword [esp + 0xc], edx
jl 0x67dd76
cmp eax, 0x12
jge 0x67dd76
push 0x7a23cc
lea ecx, [esi + 0x71c8]
call fcn.0067ca50
mov eax, dword [esi + 0x86d0]
mov edx, dword [eax + edi*8 + 0xc]
lea eax, [eax + edi*8 + 0xc]
xor ecx, ecx
test edx, edx
sete cl
push 0
mov dword [eax], ecx
mov ecx, dword [esi + 0x18]
call int.0040a140
pop edi
mov ecx, esi
pop esi
add esp, 8
jmp fcn.0067d4b0
pop edi
pop esi
add esp, 8
ret
Function at 0x6a8400
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x73150b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
push esi
push edi
push 0x54
mov edi, ecx
call fcn.006fa7e6
mov esi, eax
add esp, 4
mov dword [esp + 0xc], esi
test esi, esi
mov dword [esp + 0x30], 0
je 0x6a8459
push 0
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x24], esp
push str.comptypes
call fcn.00406d80
mov ecx, esi
call fcn.00413cc0
mov esi, eax
jmp 0x6a845b
xor esi, esi
mov ecx, esi
mov dword [esp + 0x30], 0xffffffff
call fcn.004143b0
test eax, eax
je 0x6a8503
mov bl, byte [esp + 0x38]
mov eax, dword [esi + 0x24]
movzx ecx, bl
cmp ecx, eax
jl 0x6a8486
test eax, eax
je 0x6a8503
xor bl, bl
lea ecx, [esp + 0x20]
mov byte [edi + 0x48], bl
call fcn.005b3190
push str.ComputerBackground
lea ecx, [esp + 0x14]
mov dword [esp + 0x34], 1
call fcn.005e5a90
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x14]
movzx ecx, bl
push eax
push ecx
mov ecx, esi
mov byte [esp + 0x3c], 2
call fcn.00413270
lea ecx, [esp + 0x10]
mov byte [esp + 0x30], 1
call fcn.005e5c20
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x14]
call fcn.00406d60
lea eax, [esp + 0x10]
push eax
mov ecx, edi
call fcn.0040a870
mov edx, dword [esi]
push 1
mov ecx, esi
call dword [edx]
lea ecx, [esp + 0x20]
mov dword [esp + 0x30], 0xffffffff
call fcn.005e5c20
mov ecx, dword [esp + 0x28]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x28
ret 4
Function at 0x6ced60
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x7359e0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push ebp
push esi
push edi
mov edi, ecx
xor esi, esi
lea ecx, [edi + 0x64]
mov dword [edi + 0x484], esi
call int.00419a90
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], esi
mov dword [esp + 0x2c], esi
mov ecx, dword [0x7a3a28]
movzx ebx, byte [ecx + 0xab]
cmp ebx, esi
mov eax, dword [edi + 0x330]
mov dword [esp + 0x44], esi
mov dword [esp + 0x10], eax
je 0x6cedc9
push ebx
lea ecx, [esp + 0x30]
call fcn.005e03c0
cmp ebx, esi
mov dword [esp + 0x30], ebx
jle 0x6cee88
jmp 0x6cede0
push str.Add
lea ecx, [esp + 0x18]
call fcn.005e5a90
mov eax, dword [0x7a3a28]
lea edx, [esp + 0x24]
movzx ecx, si
push edx
mov edx, dword [eax + 0xb4]
shl ecx, 5
add ecx, edx
mov byte [esp + 0x48], 1
call fcn.005cd8d0
push eax
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x1c]
mov byte [esp + 0x4c], 2
call fcn.005e5d10
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x48], 3
call fcn.005e5c50
lea ecx, [esp + 0x1c]
mov byte [esp + 0x44], 2
call fcn.005e5c20
lea ecx, [esp + 0x24]
mov byte [esp + 0x44], 1
call fcn.005e5c20
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x2c]
push eax
push 0x6cecd0
lea ecx, [esp + 0x1c]
push ecx
mov ecx, edi
lea ebp, [edx + esi*4]
call fcn.006cea90
lea ecx, [esp + 0x14]
mov dword [ebp], eax
mov byte [esp + 0x44], 0
call fcn.005e5c20
inc esi
cmp esi, ebx
jl 0x6cede0
xor esi, esi
push esi
push esi
push 1
lea edx, [esp + 0x38]
lea ebx, [edi + 0x64]
push edx
mov ecx, ebx
call fcn.0041c1d0
mov ebp, dword [ebx + 0x2bc]
or ebp, 0x40
push esi
mov dword [ebx + 0x2bc], ebp
mov eax, dword [edi]
push ebx
mov ecx, edi
call dword [eax + 8]
mov ecx, dword [edi + 0x484]
mov ebp, dword [ebx]
push esi
push ecx
mov ecx, ebx
mov dword [edi + 0x48c], 2
call fcn.0041a5a0
push eax
mov ecx, ebx
call dword [ebp + 8]
mov edx, dword [esp + 0x2c]
push edx
mov dword [esp + 0x48], 0xffffffff
call fcn.006fa390
mov ecx, dword [esp + 0x40]
add esp, 4
pop edi
mov dword fs:[0], ecx
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x6cf220
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x7359e0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push ebp
push esi
push edi
mov edi, ecx
xor esi, esi
lea ecx, [edi + 0x64]
mov dword [edi + 0x484], esi
call int.00419a90
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], esi
mov dword [esp + 0x2c], esi
mov ecx, dword [0x7a3a28]
movzx ebx, word [ecx + 0xa6]
cmp ebx, esi
mov eax, dword [edi + 0x330]
mov dword [esp + 0x44], esi
mov dword [esp + 0x10], eax
je 0x6cf289
push ebx
lea ecx, [esp + 0x30]
call fcn.005e03c0
cmp ebx, esi
mov dword [esp + 0x30], ebx
jle 0x6cf350
jmp 0x6cf2a0
push str.Add
lea ecx, [esp + 0x18]
call fcn.005e5a90
mov ecx, dword [0x7a3a28]
mov eax, dword [ecx + 0xa0]
movzx edx, si
movzx eax, word [eax + edx*2]
lea edx, [esp + 0x24]
push edx
push eax
mov byte [esp + 0x4c], 1
call fcn.00550c00
mov ecx, eax
call fcn.005cd760
push eax
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x4c], 2
call fcn.005e5d10
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x48], 3
call fcn.005e5c50
lea ecx, [esp + 0x1c]
mov byte [esp + 0x44], 2
call fcn.005e5c20
lea ecx, [esp + 0x24]
mov byte [esp + 0x44], 1
call fcn.005e5c20
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x2c]
push edx
push 0x6cef80
lea eax, [esp + 0x1c]
lea ebp, [ecx + esi*4]
push eax
mov ecx, edi
call fcn.006cea90
lea ecx, [esp + 0x14]
mov dword [ebp], eax
mov byte [esp + 0x44], 0
call fcn.005e5c20
inc esi
cmp esi, ebx
jl 0x6cf2a0
xor esi, esi
push esi
push esi
push 1
lea ecx, [esp + 0x38]
push ecx
lea ebx, [edi + 0x64]
mov ecx, ebx
call fcn.0041c1d0
mov eax, dword [ebx + 0x2bc]
or eax, 0x40
push esi
mov dword [ebx + 0x2bc], eax
mov edx, dword [edi]
push ebx
mov ecx, edi
call dword [edx + 8]
mov eax, dword [edi + 0x484]
mov ebp, dword [ebx]
push esi
push eax
mov ecx, ebx
mov dword [edi + 0x48c], 3
call fcn.0041a5a0
push eax
mov ecx, ebx
call dword [ebp + 8]
mov ecx, dword [esp + 0x2c]
push ecx
mov dword [esp + 0x48], 0xffffffff
call fcn.006fa390
mov ecx, dword [esp + 0x40]
add esp, 4
pop edi
mov dword fs:[0], ecx
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x6fb13f
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push 8
call fcn.00701a74
xor esi, esi
inc esi
cmp dword [0x833c28], esi
pop ecx
jne 0x6fb167
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 [0x833c24], esi
mov byte [0x833c20], al
jne 0x6fb1cd
mov ecx, dword [0x835490]
test ecx, ecx
je 0x6fb1ae
mov eax, dword [0x83548c]
sub eax, 4
cmp eax, ecx
jmp 0x6fb1a7
mov eax, dword [eax]
test eax, eax
je 0x6fb199
call eax
mov eax, dword [0x83548c]
sub eax, 4
cmp eax, dword [0x835490]
mov dword [0x83548c], eax
jae 0x6fb191
mov eax, 0x78d1b4
mov esi, 0x78d1bc
cmp eax, esi
mov edi, eax
jae 0x6fb1cd
mov eax, dword [edi]
test eax, eax
je 0x6fb1c6
call eax
add edi, 4
cmp edi, esi
jb 0x6fb1be
mov eax, 0x78d1c0
mov esi, 0x78d1c8
cmp eax, esi
mov edi, eax
jae 0x6fb1ec
mov eax, dword [edi]
test eax, eax
je 0x6fb1e5
call eax
add edi, 4
cmp edi, esi
jb 0x6fb1dd
cmp dword [ebp + 0x10], 0
pop edi
pop esi
je 0x6fb1fd
push 8
call fcn.007019e0
jmp 0x6fb20f
push dword [ebp + 8]
mov dword [0x833c28], 1
call fcn.006fb098
pop ecx
pop ebp
ret
Function at 0x6fb38d
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
push 0x60
push 0x75a040
call fcn.00401a63
mov edi, 0x94
mov eax, edi
call fcn.006fc090
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 [0x833be8], ecx
mov eax, dword [esi + 4]
mov dword [0x833bf4], eax
mov edx, dword [esi + 8]
mov dword [0x833bf8], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x833bec], esi
cmp ecx, 2
je 0x6fb3ed
or esi, 0x8000
mov dword [0x833bec], esi
shl eax, 8
add eax, edx
mov dword [0x833bf0], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.kernel32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x6fb428
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x6fb428
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x6fb440
cmp eax, 0x20b
je 0x6fb42d
mov dword [ebp - 0x1c], esi
jmp 0x6fb454
cmp dword [ecx + 0x84], 0xe
jbe 0x6fb428
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x6fb44e
cmp dword [ecx + 0x74], 0xe
jbe 0x6fb428
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.007026dc
pop ecx
test eax, eax
jne 0x6fb468
push 0x1c
call fcn.006fb369
pop ecx
call fcn.006fef50
test eax, eax
jne 0x6fb479
push 0x10
call fcn.006fb369
pop ecx
call fcn.00701aa5
mov dword [ebp - 4], esi
call fcn.007024c4
test eax, eax
jge 0x6fb492
push 0x1b
call fcn.006fb344
pop ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x835484], eax
call fcn.007023a2
mov dword [0x833c2c], eax
call fcn.00702300
test eax, eax
jge 0x6fb4b8
push 8
call fcn.006fb344
pop ecx
call fcn.007020cd
test eax, eax
jge 0x6fb4c9
push 9
call fcn.006fb344
pop ecx
call fcn.006fb0da
mov dword [ebp - 0x20], eax
cmp eax, esi
je 0x6fb4dc
push eax
call fcn.006fb344
pop ecx
mov dword [ebp - 0x38], esi
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.kernel32.dll_GetStartupInfoA]
call fcn.00702064
mov dword [ebp - 0x68], eax
test byte [ebp - 0x38], 1
je 0x6fb4fd
movzx eax, word [ebp - 0x34]
jmp 0x6fb500
push 0xa
pop eax
push eax
push dword [ebp - 0x68]
push esi
push esi
call edi
push eax
call fcn.004041f0
mov edi, eax
mov dword [ebp - 0x6c], edi
cmp dword [ebp - 0x1c], esi
jne 0x6fb51e
push edi
call fcn.006fb212
call fcn.006fb234
jmp 0x6fb550
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.006ff047
ret
Function at 0x6ff139
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 0x6ff2ff
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x834360]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x6ff2ff
test cl, 0x48
je 0x6ff19f
mov al, byte [eax + 5]
cmp al, 0xa
je 0x6ff19f
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 0x6ff1f1
call dword [sym.imp.kernel32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x6ff1d9
call fcn.006ffe78
mov dword [eax], 9
call fcn.006ffe81
mov dword [eax], esi
jmp 0x6ff1e9
cmp eax, 0x6d
je 0x6ff2ff
push eax
call fcn.006ffe8a
pop ecx
or eax, 0xffffffff
jmp 0x6ff301
mov eax, dword [edi]
mov edx, dword [ebp - 0xc]
add dword [ebp - 8], edx
lea ecx, [eax + esi + 4]
mov al, byte [ecx]
test al, al
jns 0x6ff2fa
test edx, edx
je 0x6ff214
cmp byte [ebx], 0xa
jne 0x6ff214
or al, 4
jmp 0x6ff216
and al, 0xfb
mov byte [ecx], al
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 0x6ff2f4
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x6ff2e4
cmp al, 0xd
je 0x6ff24a
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x6ff2d6
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x6ff264
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x6ff25f
add dword [ebp + 0x10], 2
jmp 0x6ff2b8
mov dword [ebp + 0x10], eax
jmp 0x6ff2d2
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 0x6ff28c
call dword [sym.imp.kernel32.dll_GetLastError]
test eax, eax
jne 0x6ff2d2
cmp dword [ebp - 0xc], 0
je 0x6ff2d2
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x6ff2ad
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x6ff2b8
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x6ff2d5
cmp ebx, dword [ebp + 0xc]
jne 0x6ff2bd
cmp byte [ebp - 1], 0xa
jne 0x6ff2bd
mov byte [ebx], 0xa
jmp 0x6ff2d5
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00703690
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x6ff2d6
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x6ff22e
jmp 0x6ff2f4
mov eax, dword [edi]
lea esi, [eax + esi + 4]
mov al, byte [esi]
test al, 0x40
jne 0x6ff2f4
or al, 2
mov byte [esi], al
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x6ff301
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x6ff977
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x7a3180]
xor eax, dword [ebp + 4]
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], edi
jne 0x6ff9a0
xor eax, eax
jmp 0x6ffb0e
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x834360]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x6ff9d3
push 2
push edi
push edi
push dword [ebp + 8]
call fcn.00708639
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x6ffaa5
cmp dword [ebp + 0x10], edi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], edi
jbe 0x6ffae0
mov ecx, dword [ebp - 0x10]
sub ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x420]
mov dword [ebp - 0xc], edi
cmp ecx, dword [ebp + 0x10]
jae 0x6ffa2e
mov edx, dword [ebp - 0x10]
inc dword [ebp - 0x10]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x6ffa1f
inc dword [ebp - 0x18]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0xc]
mov byte [eax], dl
inc eax
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0x400
jl 0x6ffa02
mov edi, eax
lea eax, [ebp - 0x420]
sub edi, eax
push 0
lea eax, [ebp - 0x1c]
push eax
push edi
lea eax, [ebp - 0x420]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.kernel32.dll_WriteFile]
test eax, eax
je 0x6ffa6e
mov eax, dword [ebp - 0x1c]
add dword [ebp - 0x14], eax
cmp eax, edi
jl 0x6ffa77
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp + 0xc]
xor edi, edi
cmp eax, dword [ebp + 0x10]
jb 0x6ff9f3
jmp 0x6ffa79
call dword [sym.imp.kernel32.dll_GetLastError]
mov dword [ebp - 8], eax
xor edi, edi
mov eax, dword [ebp - 0x14]
cmp eax, edi
jne 0x6ffb09
cmp dword [ebp - 8], edi
je 0x6ffae0
push 5
pop esi
cmp dword [ebp - 8], esi
jne 0x6ffad2
call fcn.006ffe78
mov dword [eax], 9
call fcn.006ffe81
mov dword [eax], esi
jmp 0x6ffadb
push edi
lea ecx, [ebp - 0x1c]
push ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.kernel32.dll_WriteFile]
test eax, eax
je 0x6ffac7
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], eax
jmp 0x6ffa79
call dword [sym.imp.kernel32.dll_GetLastError]
mov dword [ebp - 8], eax
jmp 0x6ffa79
push dword [ebp - 8]
call fcn.006ffe8a
pop ecx
or eax, 0xffffffff
jmp 0x6ffb0c
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x6ffaf5
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0x1a
jne 0x6ffaf5
xor eax, eax
jmp 0x6ffb0c
call fcn.006ffe78
mov dword [eax], 0x1c
call fcn.006ffe81
mov dword [eax], edi
jmp 0x6ffadb
sub eax, dword [ebp - 0x18]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop edi
call fcn.00705d37
leave
ret
Function at 0x701d50
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x7a3180]
xor eax, dword [ebp + 4]
mov ecx, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 4], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x7a2ee8]
je 0x701d7d
inc eax
cmp eax, 0x12
jb 0x701d6e
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x7a2ee8]
jne 0x701eb1
mov eax, dword [0x833c34]
cmp eax, 1
je 0x701e8c
cmp eax, edx
jne 0x701dad
cmp dword [0x7a2764], 1
je 0x701e8c
cmp ecx, 0xfc
je 0x701eb1
push 0x104
lea eax, [ebp - 0x10c]
push eax
push edx
mov byte [ebp - 8], dl
call dword [sym.imp.kernel32.dll_GetModuleFileNameA]
test eax, eax
jne 0x701de6
lea eax, [ebp - 0x10c]
push str._program_name_unknown_
push eax
call fcn.00705910
pop ecx
pop ecx
lea eax, [ebp - 0x10c]
push eax
lea edi, [ebp - 0x10c]
call fcn.00701300
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x701e28
lea eax, [ebp - 0x10c]
push eax
call fcn.00701300
mov edi, eax
lea eax, [ebp - 0x10c]
sub eax, 0x3b
push 3
add edi, eax
push 0x75a8c4
push edi
call fcn.006fab80
add esp, 0x10
push edi
call fcn.00701300
push dword [esi + 0x7a2eec]
mov ebx, eax
call fcn.00701300
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.006fc090
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00705910
push edi
push ebx
call fcn.00705920
push 0x748dd0
push ebx
call fcn.00705920
push dword [esi + 0x7a2eec]
push ebx
call fcn.00705920
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.007092de
add esp, 0x2c
jmp 0x701eb1
push edx
lea eax, [ebp + 8]
push eax
lea esi, [esi + 0x7a2eec]
push dword [esi]
call fcn.00701300
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 - 0x118]
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
call fcn.00705d37
pop edi
pop esi
pop ebx
leave
ret
Function at 0x708b4f
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
push 4
pop eax
call fcn.006fc090
mov ebx, esp
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.kernel32.dll_VirtualQuery]
test eax, eax
je 0x708be4
mov edi, dword [ebp - 0x20]
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.kernel32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x44]
lea esi, [eax - 1]
not esi
and esi, ebx
sub esi, eax
mov dword [ebp - 4], eax
mov eax, dword [0x833be8]
mov ecx, eax
dec ecx
neg ecx
sbb ecx, ecx
and ecx, 0xffff1000
add ecx, 0x11000
add ecx, edi
cmp esi, ecx
jb 0x708be4
cmp eax, 1
je 0x708bfc
mov ebx, edi
mov edi, 0x1000
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.kernel32.dll_VirtualQuery]
test eax, eax
je 0x708be4
add ebx, dword [ebp - 0x18]
test dword [ebp - 0x14], edi
je 0x708bb9
test byte [ebp - 0xf], 1
mov ebx, dword [ebp - 0x24]
je 0x708be0
xor eax, eax
inc eax
jmp 0x708c18
cmp esi, ebx
jae 0x708be8
xor eax, eax
jmp 0x708c18
push 4
push edi
push dword [ebp - 4]
push ebx
call dword [sym.imp.kernel32.dll_VirtualAlloc]
mov eax, dword [0x833be8]
jmp 0x708bfe
mov ebx, esi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 8]
push ecx
inc eax
push eax
push dword [ebp - 4]
push ebx
call dword [sym.imp.kernel32.dll_VirtualProtect]
lea esp, [ebp - 0x54]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x7092de
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x834064], ebx
push esi
push edi
jne 0x70935e
push 0x75f898
call dword [sym.imp.kernel32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x709399
mov esi, dword [sym.imp.kernel32.dll_GetProcAddress]
push 0x75f88c
push edi
call esi
test eax, eax
mov dword [0x834064], eax
je 0x709399
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x834068], eax
call esi
cmp dword [0x833be8], 2
mov dword [0x83406c], eax
jne 0x70935e
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x834074], eax
je 0x70935e
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x834070], eax
mov eax, dword [0x834070]
test eax, eax
je 0x7093a3
call eax
test eax, eax
je 0x70938a
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x834074]
test eax, eax
je 0x70938a
test byte [ebp - 8], 1
jne 0x7093a3
cmp dword [0x833bf4], 4
jb 0x70939d
or byte [ebp + 0x12], 0x20
jmp 0x7093c2
xor eax, eax
jmp 0x7093d2
or byte [ebp + 0x12], 4
jmp 0x7093c2
mov eax, dword [0x834068]
test eax, eax
je 0x7093c2
call eax
mov ebx, eax
test ebx, ebx
je 0x7093c2
mov eax, dword [0x83406c]
test eax, eax
je 0x7093c2
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x834064]
pop edi
pop esi
pop ebx
leave
ret