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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x50
mov eax, dword [ebp + 8]
mov dword [0x101be574], 0x15d2
mov dword [0x101be578], 0x1167
mov dword [ebp - 0x10], eax
call fcn.10118b70
xor ecx, ecx
mov edx, eax
mov esi, dword [eax + 0x3c]
mov edi, edx
add edi, esi
mov esi, dword [eax + esi]
cmp esi, 0x4550
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], edi
je 0x10119c1c
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov dword [0x101be578], 0xfffffc1e
mov eax, dword [eax + 0x78]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x14]
add ecx, dword [edx + eax + 0x20]
mov esi, dword [edx + eax + 0x24]
mov dword [0x101be574], 0x901
mov edi, dword [edx + eax + 0x18]
cmp edi, 0
mov ebx, dword [ebp - 0x18]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x34], ebx
je 0x10119c88
jmp 0x10119cc6
xor eax, eax
mov ecx, dword [ebp - 0x38]
add ecx, 2
mov edx, dword [ebp - 0x3c]
add edx, 1
mov esi, dword [ebp - 0x30]
cmp edx, esi
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x44], edx
jb 0x10119ca0
mov eax, dword [ebp - 0x34]
add esp, 0x50
pop esi
pop edi
pop ebx
pop ebp
ret
mov al, byte [ebp - 0x45]
test al, 1
jne 0x10119d34
jmp 0x10119c64
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x40]
xor edx, edx
mov esi, dword [ebp - 0x28]
mov edi, dword [esi + eax*4]
mov dword [0x101be578], 0x1167
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x50], edx
jmp 0x10119cde
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x2c]
add eax, ecx
mov dword [ebp - 0x54], eax
xor eax, eax
mov ecx, dword [ebp - 0x54]
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x44], eax
jmp 0x10119ca0
mov eax, dword [ebp - 0x50]
mov ecx, eax
mov edx, dword [ebp - 0x4c]
add ecx, edx
mov esi, dword [ebp - 0x1c]
mov bl, byte [esi + ecx]
mov ecx, dword [ebp - 0x10]
mov bh, byte [ecx + eax]
cmp bl, bh
sete cl
cmp bl, 0
mov dword [ebp - 0x58], eax
mov byte [ebp - 0x59], bh
mov byte [ebp - 0x45], cl
je 0x10119c93
mov eax, dword [ebp - 0x58]
add eax, 1
mov cl, byte [ebp - 0x59]
cmp cl, 0
setne dl
mov ch, byte [ebp - 0x45]
and ch, dl
cmp eax, 0x20
setb dl
and ch, dl
test ch, 1
mov dword [ebp - 0x50], eax
jne 0x10119cde
jmp 0x10119c93
mov eax, dword [ebp - 0x38]
movzx ecx, word [eax]
mov edx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x24]
add edx, dword [edx + esi + 0x1c]
mov ecx, dword [edx + ecx*4]
mov dword [0x101be578], 0x1d20
mov edx, dword [ebp - 0x1c]
add edx, ecx
mov dword [ebp - 0x34], edx
jmp 0x10119c88
Function at 0x10119db4
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0x50
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
xor edx, edx
mov esi, dword [0x101be574]
add esi, 0xffffe61c
mov dword [0x101be578], esi
mov dword [0x101be574], 0x1cc
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x30], edx
jmp 0x10119ec3
mov eax, dword [ebp - 0x34]
mov dword [0x101be578], 0x12d8
mov ecx, esp
mov dword [ecx + 0xc], 0x40
mov dword [ecx + 8], 0x1000
mov dword [ecx + 4], 0x6000
mov dword [ecx], 0
call eax
sub esp, 0x10
mov ecx, dword [0x101be578]
add ecx, 0x206f
mov dword [0x101be574], ecx
mov dword [esp], eax
mov ecx, dword [ebp - 0x28]
mov dword [esp + 4], ecx
mov dword [ebp - 0x38], eax
call fcn.10118ea4
mov eax, dword [ebp - 0x38]
mov word [eax], 0x5a4d
mov dword [eax + 0x3c], 0xd0
mov dword [0x101be574], 0x22f9
mov dword [eax + 0xd0], 0x4550
add eax, 0xffc00000
mov dword [0x101be578], 0x2203
mov ecx, dword [ebp - 0x2c]
mov dword [ecx + 0x30], eax
xor eax, eax
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x38]
mov dword [ecx + 0x48], edx
mov esi, dword [0x101be574]
add esi, 0xffffe791
mov dword [0x101be574], esi
add edx, 0x1000
mov esi, dword [ebp - 0x38]
cmp esi, 0
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x40], eax
je 0x10119eb2
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x40]
add esp, 0x50
pop esi
pop ebp
ret
xor eax, eax
add esp, 0x50
pop esi
pop ebp
ret
mov eax, dword [ebp - 0x30]
mov ecx, eax
add ecx, 1
mov dl, byte [eax + 0x10177da0]
mov dh, byte [eax + 0x10177d71]
sub dh, dl
mov byte [ebp + eax - 0x24], dh
cmp ecx, 0xe
mov dword [ebp - 0x30], ecx
jne 0x10119ec3
lea eax, [ebp - 0x24]
mov dword [0x101be574], 0x179a
mov dword [ebp - 0x44], eax
call fcn.1011a11b
mov dword [esp], eax
mov eax, dword [ebp - 0x44]
mov dword [esp + 4], eax
call fcn.10118ce9
cmp eax, 0
mov dword [ebp - 0x34], eax
je 0x10119ebb
jmp 0x10119ded
Function at 0x10006f00
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x10006f19
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x10006f54
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x10006f50
lea ebx, [ebx]
cmp esi, eax
jae 0x10006f54
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x10006f40
cmp esi, eax
jb 0x10006f5a
pop esi
pop edi
xor eax, eax
pop ebx
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x10008620
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x10039dbf
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x1005291c]
xor eax, esp
mov dword [esp + 0x18], eax
push ebx
push esi
mov eax, dword [0x1005291c]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
lea ecx, [esi + 0x4c]
mov dword [esp + 0x10], esi
mov dword [esi + 0x38], ebx
call fcn.10008a90
mov dword [esp + 0x30], ebx
lea eax, [esi + 0x84]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov byte [esp + 0x30], 1
mov byte [esp + 0x14], 0x8b
mov byte [esp + 0x15], 0xf8
mov byte [esp + 0x16], 0x3b
mov byte [esp + 0x17], 0xfb
mov eax, dword [esp + 0x14]
mov dword [esi + 0x60], eax
mov byte [esp + 0x18], 0xf
mov byte [esp + 0x19], 0x84
mov byte [esp + 0x1a], 0xbf
mov byte [esp + 0x1b], 0x19
mov ecx, dword [esp + 0x18]
mov dword [esi + 0x64], ecx
mov byte [esp + 0x1c], 0x28
mov byte [esp + 0x1d], bl
mov byte [esp + 0x1e], 0xc7
mov byte [esp + 0x1f], 0x45
mov edx, dword [esp + 0x1c]
mov dword [esi + 0x68], edx
mov byte [esp + 0x20], 0xe8
mov byte [esp + 0x21], 1
mov byte [esp + 0x22], bl
mov byte [esp + 0x23], bl
mov eax, dword [esp + 0x20]
mov dword [esi + 0x6c], eax
push ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x28], ebx
call fcn.10027d96
push 0x88
mov dword [esi + 0x10], eax
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x34], ebx
call fcn.100277fb
add esp, 8
mov dword [esp + 0xc], eax
mov byte [esp + 0x30], 2
cmp eax, ebx
je 0x10008723
mov ecx, eax
call fcn.10005220
jmp 0x10008725
xor eax, eax
mov byte [esp + 0x30], 1
push 0x88
mov dword [esi + 0x30], eax
call fcn.100277fb
add esp, 4
mov dword [esp + 0xc], eax
mov byte [esp + 0x30], 3
cmp eax, ebx
je 0x10008750
mov ecx, eax
call fcn.10005220
jmp 0x10008752
xor eax, eax
mov byte [esp + 0x30], 1
mov dword [esi + 0x58], eax
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi], ebx
mov dword [esp + 0x30], 0xffffffff
mov eax, esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.1002778e
add esp, 0x28
ret
Function at 0x10008790
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x10039dfb
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [0x1005291c]
xor eax, esp
push eax
lea eax, [esp + 8]
mov dword fs:[0], eax
mov eax, dword [esp + 0x1c]
cmp eax, 1
jne 0x1000889e
mov esi, dword [esp + 0x18]
push 0xff
push 0
push 0x10053d40
mov dword [0x10053d38], esi
call fcn.100278b0
add esp, 0xc
push 0xfe
push 0x10053d40
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push str..log
push 0x10053d40
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push esi
call dword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
push 0x9c
call fcn.100277fb
add esp, 4
mov dword [esp + 0x1c], eax
mov dword [esp + 0x10], 0
test eax, eax
je 0x1000882a
mov ecx, eax
call fcn.10008620
jmp 0x1000882c
xor eax, eax
mov dword [esp + 0x10], 0xffffffff
mov dword [0x10053e44], eax
mov dword [eax + 0x38], esi
mov eax, dword [0x10053e44]
mov dword [eax + 0x3c], 0
mov ecx, dword [0x10053e44]
push 0
push 0
mov dword [ecx + 0x44], 0
mov edx, dword [0x10053e44]
push 1
push 0
mov dword [edx + 0x48], 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov ecx, dword [0x10053e44]
mov dword [ecx + 0x40], eax
call fcn.10008480
call fcn.10010bb0
mov edx, dword [0x10053e44]
mov eax, dword [edx + 0x40]
push eax
push 0
push 0x1000c220
call fcn.10028680
add esp, 0xc
jmp 0x100088f4
test eax, eax
jne 0x100088f4
mov ecx, dword [0x10053d08]
push ecx
call fcn.100270a4
mov edx, dword [0x10053d0c]
push edx
call fcn.100270a4
mov eax, dword [0x10053d10]
push eax
call fcn.100270a4
mov ecx, dword [0x10053d14]
push ecx
call fcn.100270a4
mov edx, dword [0x10053e44]
mov eax, dword [edx + 0x40]
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x10053e40]
test eax, eax
je 0x100088f4
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, 1
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0xc
ret 0xc

Function at 0x10008b00
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x10039ee6
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x1005291c]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
call fcn.10008a90
mov dword [esp + 0x14], 0
lea ecx, [esi + 0xc]
call fcn.10008a90
mov byte [esp + 0x14], 1
lea ecx, [esi + 0x18]
call fcn.10008a90
mov byte [esp + 0x14], 2
lea ecx, [esi + 0x24]
call fcn.10008a90
mov byte [esp + 0x14], 3
lea ecx, [esi + 0x30]
call fcn.10008a90
mov byte [esp + 0x14], 4
lea ecx, [esi + 0x3c]
call fcn.10008a90
mov byte [esp + 0x14], 5
lea ecx, [esi + 0x48]
call fcn.10008a90
mov byte [esp + 0x14], 6
lea ecx, [esi + 0x54]
call fcn.10008a90
mov byte [esp + 0x14], 7
lea ecx, [esi + 0x60]
call fcn.10008a90
mov byte [esp + 0x14], 8
lea ecx, [esi + 0x6c]
call fcn.10008a90
mov byte [esp + 0x14], 9
lea ecx, [esi + 0x7c]
call fcn.10008a90
mov byte [esp + 0x14], 0xa
mov dword [esi + 0x78], 1
mov dword [esp + 0x14], 0xffffffff
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret
Function at 0x100108f0
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
movzx eax, word [ecx + 0x14]
push ebx
push esi
push edi
movzx edi, word [ecx + 6]
xor esi, esi
test edi, edi
lea eax, [eax + ecx + 0x18]
jbe 0x10010931
mov ebx, dword [esp + 0x10]
lea ecx, [ecx]
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x1001091a
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x10010927
add edx, ecx
cmp ebx, edx
jb 0x10010933
add esi, 1
add eax, 0x28
cmp esi, edi
jb 0x10010910
xor eax, eax
pop edi
pop esi
pop ebx
ret

Function at 0x10015710
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x1003a8cf
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x1005291c]
xor eax, esp
push eax
lea eax, [esp + 8]
mov dword fs:[0], eax
mov eax, ecx
mov dword [esp + 4], eax
xor ecx, ecx
mov dword [eax], vtable.IJitCallBack.0
mov dword [eax + 0x40], ecx
mov dword [eax + 0x44], ecx
mov dword [eax + 0x24], ecx
mov dword [eax + 0x18], ecx
mov dword [eax + 0x28], ecx
mov dword [eax + 0x2c], ecx
mov dword [eax + 0x30], ecx
mov dword [eax + 0x34], ecx
mov dword [eax + 0x38], ecx
mov dword [eax + 0x3c], ecx
mov dword [esp + 0x10], ecx
mov dword [eax + 0x68], ecx
mov dword [eax + 0x6c], ecx
mov byte [esp + 0x10], 1
mov dword [eax + 0x98], ecx
mov dword [eax + 0x9c], ecx
mov dword [eax + 0x7c], ecx
mov dword [eax + 0x70], ecx
mov dword [eax + 0x80], ecx
mov dword [eax + 0x84], ecx
mov dword [eax + 0x88], ecx
mov dword [eax + 0x8c], ecx
mov dword [eax + 0x90], ecx
mov dword [eax + 0x94], ecx
mov byte [esp + 0x10], 2
mov dword [eax + 0xcc], ecx
mov dword [eax + 0xd0], ecx
mov dword [eax + 0xb0], ecx
mov dword [eax + 0xa4], ecx
mov dword [eax + 0xb4], ecx
mov dword [eax + 0xb8], ecx
mov dword [eax + 0xbc], ecx
mov dword [eax + 0xc0], ecx
mov dword [eax + 0xc4], ecx
mov dword [eax + 0xc8], ecx
mov byte [esp + 0x10], 3
mov dword [eax + 0xc], ecx
mov dword [esp + 0x10], 0xffffffff
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop ecx
add esp, 0x10
ret

Function at 0x100159c0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x1003a996
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x1005291c]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
call fcn.10015710
xor ecx, ecx
mov dword [esp + 0x18], ecx
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x2c]
mov dword [esi + 0xdc], eax
mov eax, dword [esp + 0x24]
mov dword [esi], vtable.NetFX2x::CNetFX2xCallBack.0
mov dword [esi + 0xd8], edx
mov dword [esi + 0xe0], eax
mov dword [esi + 0xec], ecx
mov dword [esi + 0xf0], ecx
mov byte [esp + 0x18], 1
mov eax, dword [0x10053e44]
mov eax, dword [eax + 0x30]
mov edi, dword [eax + 0x3c]
add edi, dword [eax + 0x34]
mov dword [esi + 0xe8], ecx
mov dword [esi + 0xf4], ecx
mov ecx, dword [esp + 0x28]
mov dword [esi + 0xe4], edi
mov dword [esi + 8], edx
mov dword [esi + 0xf8], ecx
mov dword [esp + 0x18], 0xffffffff
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 0x10
Function at 0x1001a060
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x1003a996
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x1005291c]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
call fcn.10015710
xor ecx, ecx
mov dword [esp + 0x18], ecx
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x2c]
mov dword [esi + 0xdc], eax
mov eax, dword [esp + 0x24]
mov dword [esi], vtable.NetFX3x::CNetFX3xCallBack.0
mov dword [esi + 0xd8], edx
mov dword [esi + 0xe0], eax
mov dword [esi + 0xec], ecx
mov dword [esi + 0xf0], ecx
mov byte [esp + 0x18], 1
mov eax, dword [0x10053e44]
mov eax, dword [eax + 0x30]
mov edi, dword [eax + 0x3c]
add edi, dword [eax + 0x34]
mov dword [esi + 0xe8], ecx
mov dword [esi + 0xf4], ecx
mov ecx, dword [esp + 0x28]
mov dword [esi + 0xe4], edi
mov dword [esi + 8], edx
mov dword [esi + 0xf8], ecx
mov dword [esp + 0x18], 0xffffffff
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 0x10

Function at 0x1001d700
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x1003acb6
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x1005291c]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
call fcn.10015710
xor eax, eax
mov dword [esp + 0x18], eax
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x20]
mov dword [esi + 0xd8], ecx
mov ecx, dword [esp + 0x2c]
mov dword [esi + 0xe0], edx
mov edx, dword [esp + 0x24]
mov dword [esi], vtable.NetFX4x::CNetFX4xCallBack.0
mov dword [esi + 0xdc], ecx
mov dword [esi + 0xe4], edx
mov dword [esi + 0xf0], eax
mov dword [esi + 0xf4], eax
mov byte [esp + 0x18], 1
mov edx, dword [0x10053d0c]
mov edi, dword [edx + 0x3c]
add edi, dword [edx + 0x34]
mov dword [esi + 0xec], eax
mov dword [esi + 0xf8], eax
mov dword [esi + 4], eax
mov eax, dword [esp + 0x28]
mov dword [esi + 0xe8], edi
mov dword [esi + 0xfc], eax
mov dword [esi + 8], ecx
mov dword [esp + 0x18], 0xffffffff
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 0x14
Function at 0x10026cd2
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x1005291c]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.10026c11
mov eax, 0x10000000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.100278b0
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x10026d21
cmp dword [ebp - 0x1c], 5
jb 0x10026d39
jmp 0x10026d35
cmp dword [ebp - 0x10], 1
jne 0x10026d39
cmp dword [ebp - 0x1c], 4
ja 0x10026d35
jne 0x10026d39
cmp dword [ebp - 0x18], 0
jbe 0x10026d39
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x10044e18
call fcn.10026ac4
test eax, eax
jge 0x10026d5a
mov byte [0x10053e68], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.1002778e
add ebp, 0x78
leave
ret

Function at 0x1002778e
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1005291c]
jne 0x10027798
repz ret
jmp fcn.1002bccc
Function at 0x1002fd4e
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x10053540]
je 0x1002fd69
inc edi
cmp edi, 0x17
jb 0x1002fd5a
cmp edi, 0x17
jae 0x1002fee9
push ebp
push 3
call fcn.1003590d
cmp eax, 1
pop ecx
je 0x1002feb5
push 3
call fcn.1003590d
test eax, eax
pop ecx
jne 0x1002fd9d
cmp dword [0x10054770], 1
je 0x1002feb5
cmp ebx, 0xfc
je 0x1002fee8
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x10054bd0
push ebp
call fcn.1002aef2
add esp, 0xc
test eax, eax
je 0x1002fdd3
push esi
push esi
push esi
push esi
push esi
call fcn.100270b3
add esp, 0x14
push 0x104
mov esi, 0x10054be9
push esi
push 0
mov byte [0x10054ced], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x1002fe17
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.1002aef2
add esp, 0xc
test eax, eax
je 0x1002fe17
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.100270b3
add esp, 0x14
push esi
call fcn.1002a6a0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x1002fe5c
push esi
call fcn.1002a6a0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x10054ee4
push 0x100456b4
sub ecx, eax
push ecx
push eax
call fcn.10033b0a
add esp, 0x14
test eax, eax
je 0x1002fe5c
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.100270b3
add esp, 0x14
jmp 0x1002fe5e
xor esi, esi
push 0x100456b0
push ebx
push ebp
call fcn.100281cd
add esp, 0xc
test eax, eax
je 0x1002fe7e
push esi
push esi
push esi
push esi
push esi
call fcn.100270b3
add esp, 0x14
push dword [edi*8 + 0x10053544]
push ebx
push ebp
call fcn.100281cd
add esp, 0xc
test eax, eax
je 0x1002fea0
push esi
push esi
push esi
push esi
push esi
call fcn.100270b3
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.10035750
add esp, 0xc
jmp 0x1002fee8
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x1002fee8
cmp ebp, 0xffffffff
je 0x1002fee8
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x10053544]
push dword [esi]
call fcn.1002a6a0
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x10035750
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.1002a8f4
xor ebx, ebx
cmp dword [0x100551cc], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x10035826
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x10035906
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x100467d0
push edi
call esi
cmp eax, ebx
je 0x10035906
push eax
call fcn.1002a886
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x100551cc], eax
call esi
push eax
call fcn.1002a886
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x100551d0], eax
call esi
push eax
call fcn.1002a886
mov dword [0x100551d4], eax
lea eax, [ebp - 0xc]
push eax
call fcn.10028b1a
test eax, eax
pop ecx
pop ecx
je 0x100357f4
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.100270b3
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x10035826
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.1002a886
cmp eax, ebx
pop ecx
mov dword [0x100551dc], eax
je 0x10035826
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.1002a886
pop ecx
mov dword [0x100551d8], eax
mov eax, dword [0x100551d8]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x100358ab
cmp dword [0x100551dc], ecx
je 0x100358ab
push eax
call fcn.1002a8fd
push dword [0x100551dc]
mov esi, eax
call fcn.1002a8fd
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x100358ab
cmp edi, ebx
je 0x100358ab
call esi
cmp eax, ebx
je 0x10035878
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x10035878
test byte [ebp - 0x18], 1
jne 0x100358ab
lea eax, [ebp - 0x10]
push eax
call fcn.10028b51
test eax, eax
pop ecx
je 0x10035893
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.100270b3
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x100358a2
or dword [ebp + 0x10], 0x200000
jmp 0x100358e6
or dword [ebp + 0x10], 0x40000
jmp 0x100358e6
mov eax, dword [0x100551d0]
cmp eax, dword [ebp - 8]
je 0x100358e6
push eax
call fcn.1002a8fd
cmp eax, ebx
pop ecx
je 0x100358e6
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x100358e6
mov eax, dword [0x100551d4]
cmp eax, dword [ebp - 8]
je 0x100358e6
push eax
call fcn.1002a8fd
cmp eax, ebx
pop ecx
je 0x100358e6
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x100551cc]
call fcn.1002a8fd
cmp eax, ebx
pop ecx
je 0x10035906
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x10035908
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40a518
Capabilities:
Print debug messages
Write file on windows

Disassembly:
push 0x20
mov eax, 0x5d7b4b
call fcn.00592017
mov edi, ecx
cmp dword [0x6cfc08], 0
mov ebx, dword [ebp + 8]
je 0x40a5f0
call fcn.0040a5f8
and dword [ebp - 0x18], 0
xor eax, eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
and dword [ebp - 4], eax
lea ecx, [ebp - 0x28]
push 0x200
call fcn.0040b022
lea esi, [edi + 4]
push esi
call fcn.005b93d0
pop ecx
push eax
push esi
lea ecx, [ebp - 0x28]
call fcn.0040b220
mov esi, 0x62823c
push esi
call fcn.005b93d0
pop ecx
push eax
push esi
lea ecx, [ebp - 0x28]
call fcn.0040b220
push ebx
call fcn.005b93d0
pop ecx
push eax
push ebx
lea ecx, [ebp - 0x28]
call fcn.0040b220
mov esi, 0x628150
push esi
call fcn.005b93d0
pop ecx
push eax
push esi
lea ecx, [ebp - 0x28]
call fcn.0040b220
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [edi], 0xffffffff
je 0x40a5e8
and dword [ebp - 0x2c], 0
lea eax, [ebp - 0x2c]
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
push 0
cmovae ecx, dword [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x18]
add eax, eax
push eax
push ecx
push dword [edi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea ecx, [ebp - 0x28]
call fcn.0040b67b
call fcn.00591fc1
ret 4