joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1005eb10
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x100a9040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [0x100df6a0]
push esi
push eax
mov dword [edi + 0x154], 1
lea eax, [edi + 0x15c]
lea ebx, [edi + 0x154]
push eax
call fcn.10069a90
add esp, 0xc
mov dword [edi + 0x158], esi
add esi, 8
je 0x1005ebe2
mov eax, dword [edi]
test eax, eax
je 0x1005eb91
mov eax, dword [eax + 4]
cmp eax, 0xffffffff
je 0x1005eb91
test ebx, ebx
je 0x1005eb91
push 0
lea ecx, [ebp - 8]
mov dword [ebp - 8], 0
push ecx
push esi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, 1
jne 0x1005eb91
cmp dword [ebp - 8], esi
je 0x1005ebe2
mov ecx, dword [edi + 0xc]
test ecx, ecx
je 0x1005ebb1
mov eax, dword [edi + 4]
cmp eax, 3
je 0x1005eba5
cmp eax, 1
jne 0x1005ebb1
lea eax, [edi + 0x54]
push eax
push dword [edi + 0x50]
call ecx
add esp, 8
mov esi, dword [edi]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 4], 0xffffffff
xor al, al
mov byte [esi], 0
mov dword [edi + 4], 0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10067e95
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10067e95
mov esp, ebp
pop ebp
ret 8
Function at 0x100651c0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 0xc]
sub eax, 0x10000
push eax
call fcn.10065390
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jbe 0x1006529d
mov edx, dword [ebp - 4]
cmp edx, dword [0x100a9010]
jb 0x1006520a
mov eax, dword [ebp - 4]
cmp eax, dword [0x100a9014]
ja 0x1006520a
mov ecx, dword [ebp - 4]
sub ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x100651da
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call fcn.1006a010
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
call sub.KERNEL32.dll_VirtualQuery
test eax, eax
jne 0x1006522f
jmp 0x1006529d
cmp dword [ebp - 0x14], 0x10000
jne 0x10065283
cmp dword [ebp - 0x18], 0x10000
jb 0x10065283
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call sub.KERNEL32.dll_VirtualAlloc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x10065266
mov eax, dword [ebp - 8]
jmp 0x1006529f
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x10065276
xor eax, eax
jmp 0x1006529f
mov eax, dword [ebp - 4]
sub eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x10065298
mov ecx, dword [ebp - 0x20]
sub ecx, 0x10000
push ecx
call fcn.10065390
add esp, 4
mov dword [ebp - 4], eax
jmp 0x100651da
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x100652b0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
push eax
call fcn.100653c0
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0xc]
jae 0x10065385
mov edx, dword [ebp - 4]
cmp edx, dword [0x100a9010]
jb 0x100652f5
mov eax, dword [ebp - 4]
cmp eax, dword [0x100a9014]
ja 0x100652f5
mov ecx, dword [ebp - 4]
add ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x100652c5
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call fcn.1006a010
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
call sub.KERNEL32.dll_VirtualQuery
test eax, eax
jne 0x1006531a
jmp 0x10065385
cmp dword [ebp - 0x14], 0x10000
jne 0x1006536e
cmp dword [ebp - 0x18], 0x10000
jb 0x1006536e
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call sub.KERNEL32.dll_VirtualAlloc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x10065351
mov eax, dword [ebp - 8]
jmp 0x10065387
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x10065361
xor eax, eax
jmp 0x10065387
mov eax, dword [ebp - 4]
add eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x10065380
mov ecx, dword [ebp - 0x24]
add ecx, dword [ebp - 0x18]
push ecx
call fcn.100653c0
add esp, 4
mov dword [ebp - 4], eax
jmp 0x100652c5
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x100653f0
Capabilities:
Hook routines via microsoft detours

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.100657e0
add esp, 0xc
mov dword [ebp - 4], 0
cmp dword [0x100acfd8], 0
jne 0x1006542d
cmp dword [0x100acfd4], 0
je 0x1006542d
mov eax, dword [0x100acfd4]
mov dword [0x100acfd8], eax
cmp dword [0x100acfd8], 0
je 0x100654aa
mov ecx, dword [0x100acfd8]
cmp dword [ecx + 8], 0
je 0x100654aa
mov edx, dword [0x100acfd8]
mov eax, dword [edx + 8]
cmp eax, dword [ebp - 0x10]
jb 0x100654aa
mov ecx, dword [0x100acfd8]
mov edx, dword [ecx + 8]
cmp edx, dword [ebp - 0xc]
ja 0x100654aa
mov eax, dword [0x100acfd8]
mov ecx, dword [eax + 8]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 0x10]
jb 0x10065479
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0xc]
jbe 0x10065480
xor eax, eax
jmp 0x100655c9
mov ecx, dword [0x100acfd8]
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x40]
mov dword [ecx + 8], eax
push 0x48
push 0xcc
mov ecx, dword [ebp - 4]
push ecx
call fcn.1006a010
add esp, 0xc
mov eax, dword [ebp - 4]
jmp 0x100655c9
mov edx, dword [0x100acfd4]
mov dword [0x100acfd8], edx
jmp 0x100654c6
mov eax, dword [0x100acfd8]
mov ecx, dword [eax + 4]
mov dword [0x100acfd8], ecx
cmp dword [0x100acfd8], 0
je 0x10065506
cmp dword [0x100acfd8], 0
je 0x10065504
mov edx, dword [0x100acfd8]
cmp dword [edx + 8], 0
je 0x10065504
mov eax, dword [0x100acfd8]
mov ecx, dword [eax + 8]
cmp ecx, dword [ebp - 0x10]
jb 0x10065504
mov edx, dword [0x100acfd8]
mov eax, dword [edx + 8]
cmp eax, dword [ebp - 0xc]
ja 0x10065504
jmp 0x1006545e
jmp 0x100654b8
mov ecx, dword [ebp + 8]
and ecx, 0xffff
mov edx, dword [ebp + 8]
sub edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.100655d0
add esp, 0xc
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x100655c7
mov eax, dword [ebp - 0x18]
mov dword [0x100acfd8], eax
mov ecx, dword [0x100acfd8]
mov dword [ecx], 0x52727464
mov edx, dword [0x100acfd8]
mov dword [edx + 8], 0
mov eax, dword [0x100acfd8]
mov ecx, dword [0x100acfd4]
mov dword [eax + 4], ecx
mov edx, dword [0x100acfd8]
mov dword [0x100acfd4], edx
mov dword [ebp - 0x14], 0
mov eax, dword [0x100acfd8]
add eax, 0x48
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0x38c
jmp 0x10065597
mov ecx, dword [ebp - 8]
sub ecx, 1
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 1
jle 0x100655b7
imul edx, dword [ebp - 8], 0x48
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x14]
mov dword [eax + edx + 0x40], ecx
imul edx, dword [ebp - 8], 0x48
add edx, dword [ebp - 4]
mov dword [ebp - 0x14], edx
jmp 0x1006558e
mov eax, dword [0x100acfd8]
mov ecx, dword [ebp - 0x14]
mov dword [eax + 8], ecx
jmp 0x1006545e
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x10066310
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x100acfd4]
mov dword [ebp - 4], eax
jmp 0x10066329
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
je 0x10066350
lea eax, [ebp - 8]
push eax
push 0x40
push 0x10000
mov ecx, dword [ebp - 4]
push ecx
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
jne 0x1006634e
call sub.KERNEL32.dll_GetLastError
jmp 0x10066352
jmp 0x10066320
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x100667f0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 8], 0
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [0x100acfe4], eax
je 0x10066814
mov eax, 0x10dd
jmp 0x100669bc
cmp dword [0x100acfe8], 0
je 0x10066827
mov eax, dword [0x100acfe8]
jmp 0x100669bc
cmp dword [ebp + 0xc], 0
jne 0x10066837
mov eax, 0x57
jmp 0x100669bc
cmp dword [ebp + 8], 0
jne 0x10066847
mov eax, 6
jmp 0x100669bc
mov eax, dword [ebp + 8]
cmp dword [eax], 0
jne 0x10066870
mov dword [ebp - 8], 6
mov ecx, dword [ebp - 8]
mov dword [0x100acfe8], ecx
mov edx, dword [ebp + 8]
mov dword [0x100acfec], edx
mov eax, dword [ebp - 8]
jmp 0x100669bc
push 0x18
call fcn.10067ea3
add esp, 4
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x100668cb
mov dword [ebp - 8], 8
mov ecx, dword [ebp - 8]
mov dword [0x100acfe8], ecx
cmp dword [ebp - 4], 0
je 0x100668ba
mov edx, dword [ebp - 4]
mov dword [ebp - 0x20], edx
push 0x18
mov eax, dword [ebp - 0x20]
push eax
call fcn.10067ef6
add esp, 8
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 8]
mov dword [0x100acfec], ecx
mov eax, dword [ebp - 8]
jmp 0x100669bc
push 0
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
call fcn.100667d0
mov dword [ebp - 0x10], eax
push 0
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.100667d0
mov dword [ebp + 0xc], eax
mov edx, dword [ebp - 0x10]
movzx eax, byte [edx + 0x36]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x40]
sub edx, dword [ebp - 0xc]
mov dword [ebp - 0x14], edx
cmp dword [ebp - 0xc], 0
je 0x1006690b
cmp dword [ebp - 0xc], 0x1e
jbe 0x10066927
mov dword [ebp - 8], 9
cmp dword [0x100acfdc], 0
je 0x10066922
jmp 0x10066899
jmp 0x10066890
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x44]
cmp ecx, dword [ebp + 0xc]
je 0x1006694e
mov dword [ebp - 8], 9
cmp dword [0x100acfdc], 0
je 0x10066949
jmp 0x10066899
jmp 0x10066890
mov dword [ebp - 0x18], 0
lea edx, [ebp - 0x18]
push edx
push 0x40
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
jne 0x10066979
call sub.KERNEL32.dll_GetLastError
mov dword [ebp - 8], eax
jmp 0x10066890
mov edx, dword [ebp - 4]
mov dword [edx + 4], 1
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov dword [eax + 8], ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
mov dword [edx + 0x10], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x14]
mov dword [ecx + 0xc], edx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x18]
mov dword [eax + 0x14], ecx
mov edx, dword [ebp - 4]
mov eax, dword [0x100acff4]
mov dword [edx], eax
mov ecx, dword [ebp - 4]
mov dword [0x100acff4], ecx
xor eax, eax
mov esp, ebp
pop ebp
ret 8
Function at 0x100669d0
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [0x100acfe4], eax
je 0x100669ed
mov eax, 0x10dd
jmp 0x10066ad0
mov eax, dword [0x100acff4]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x10066a6c
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x14]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x10]
movzx eax, byte [edx + 0x36]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0xc]
push edx
call sub.KERNEL32.dll_VirtualProtect
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
jne 0x10066a48
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x10], 0
je 0x10066a48
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x10]
push eax
call fcn.10065870
add esp, 4
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x10], 0
mov edx, dword [ebp - 4]
mov eax, dword [edx]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 4]
mov dword [ebp - 0xc], ecx
push 0x18
mov edx, dword [ebp - 0xc]
push edx
call fcn.10067ef6
add esp, 8
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], eax
jmp 0x100669f5
mov dword [0x100acff4], 0
call fcn.10066150
mov ecx, dword [0x100acff0]
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0
je 0x10066aba
mov edx, dword [ebp - 8]
mov eax, dword [edx + 4]
push eax
call sub.KERNEL32.dll_ResumeThread
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
push 8
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.10067ef6
add esp, 8
mov edx, dword [ebp - 0x18]
mov dword [ebp - 8], edx
jmp 0x10066a84
mov dword [0x100acff0], 0
mov dword [0x100acfe4], 0
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x10066fb0
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [0x100acfe8], 0
je 0x10066fc9
mov eax, dword [0x100acfe8]
jmp 0x10067068
call sub.KERNEL32.dll_GetCurrentThread
cmp dword [ebp + 8], eax
jne 0x10066fda
xor eax, eax
jmp 0x10067068
push 8
call fcn.10067ea3
add esp, 4
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x10067032
mov dword [ebp - 8], 8
cmp dword [ebp - 4], 0
je 0x1006701b
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x10], ecx
push 8
mov edx, dword [ebp - 0x10]
push edx
call fcn.10067ef6
add esp, 8
mov dword [ebp - 4], 0
mov eax, dword [ebp - 8]
mov dword [0x100acfe8], eax
mov dword [0x100acfec], 0
mov eax, dword [ebp - 8]
jmp 0x10067068
mov ecx, dword [ebp + 8]
push ecx
call sub.KERNEL32.dll_SuspendThread
cmp eax, 0xffffffff
jne 0x1006704a
call sub.KERNEL32.dll_GetLastError
mov dword [ebp - 8], eax
jmp 0x10066ffa
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
mov dword [edx + 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [0x100acff0]
mov dword [ecx], edx
mov eax, dword [ebp - 4]
mov dword [0x100acff0], eax
xor eax, eax
mov esp, ebp
pop ebp
ret 4
Function at 0x100722ae
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x100722ed
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x100722ed
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x100722ed
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x100722ed
cmp dword [ecx + 0x74], 0xe
jbe 0x100722ed
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x1007f8e7
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x1007f984
push ebx
push esi
call fcn.1007f8b0
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.1007d78c
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1007f931
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1007f983
push edi
push eax
call fcn.1007a4e0
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1007f951
call fcn.10078360
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1007f982
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1007d78c
add esp, 0x20
test eax, eax
jne 0x1007f970
push edi
call fcn.10078360
jmp 0x1007f978
push ebx
call fcn.10078360
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x1007f987
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x1007f998
pop esi
ret
push ebx
push edi
push esi
call fcn.1007f8b0
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.1007a4e0
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x1007f9c0
push ebx
push esi
push edi
call fcn.10069a90
add esp, 0xc
push 0
call fcn.10078360
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x1007fd8f
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1007f9d5
Function at 0x10083803
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.10078c93
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x10083872
cmp esi, dword [ebp - 4]
je 0x1008386d
cmp dword [ebp + 0xc], 0
je 0x1008386d
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x1008384a
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.10083358
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x10083874
xor eax, eax
inc eax
jmp 0x10083874
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x100838df
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x100a9040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.10078c93
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.10078c93
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x10083956
cmp word [ecx], dx
je 0x10083956
mov eax, dword [0x1009307c]
push edi
dec eax
push eax
push 0x10092f68
call fcn.10083878
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x100839c9
cmp word [eax], dx
je 0x100839c9
mov eax, dword [edi]
test eax, eax
je 0x1008397a
cmp word [eax], dx
je 0x1008397a
lea eax, [ebp - 0x10]
push eax
call fcn.1008325e
jmp 0x10083983
lea eax, [ebp - 0x10]
push eax
call fcn.100832f9
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x100839f3
mov eax, dword [0x10092f64]
push dword [ebp - 0x14]
dec eax
push eax
push 0x10092c58
call fcn.10083878
add esp, 0xc
test al, al
je 0x100839f3
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x100839be
cmp word [eax], di
je 0x100839be
lea eax, [ebp - 0x10]
push eax
call fcn.1008325e
pop ecx
jmp 0x100839f5
lea eax, [ebp - 0x10]
push eax
call fcn.100832f9
jmp 0x100839bb
mov eax, dword [edi]
test eax, eax
je 0x100839e0
cmp word [eax], dx
je 0x100839e0
lea eax, [ebp - 0x10]
push eax
call fcn.10083213
pop ecx
jmp 0x100839f3
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x10083abe
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.100836fd
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x10083abe
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x10083abe
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x10083abe
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x10083a4b
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.1007c2c3
test ebx, ebx
je 0x10083ab9
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.1007c2c3
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x10083abe
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x10083abe
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.1008620d
add esp, 0x10
xor eax, eax
inc eax
jmp 0x10083ac0
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10067e95
leave
ret
Function at 0x10085433
Capabilities:
Get file size

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x18
mov eax, dword [eax + 0xc]
nop
shr eax, 3
test al, 1
je 0x1008544d
mov al, 1
leave
ret
mov eax, dword [ebp + 8]
push ebx
push esi
mov eax, dword [eax + 0xc]
nop
test al, 0xc0
mov eax, dword [ebp + 8]
je 0x10085464
mov ecx, dword [eax]
cmp ecx, dword [eax + 4]
je 0x100854bc
mov eax, dword [eax + 0x10]
nop
push eax
call fcn.10080873
mov esi, eax
pop ecx
cmp esi, 0xffffffff
je 0x100854bc
xor ebx, ebx
lea eax, [ebp - 0x10]
inc ebx
xorps xmm0, xmm0
push ebx
push eax
movlpd qword [ebp - 8], xmm0
push dword [ebp - 4]
push dword [ebp - 8]
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x100854bc
lea eax, [ebp - 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x100854bc
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x18]
jne 0x100854b6
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x14]
je 0x100854b8
xor bl, bl
mov al, bl
jmp 0x100854be
xor al, al
pop esi
pop ebx
leave
ret

Function at 0x100885c0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x100885ed
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x100885ed
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40de38
nop
mov ecx, 0x630517ae
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
nop
xor dword [eax], ecx
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x433024
mov eax, section..data
nop
mov ebx, 0x4304d8
nop
nop
mov ecx, 0xbef6110
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x433084
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219