joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10063752
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x10
mov eax, 0x100a0c0e
call fcn.1008c43b
mov edi, edx
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x10], ebx
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], ebx
call fcn.1005bfe5
cmp dword [esi + 0x14], 8
jb 0x1006377a
mov esi, dword [esi]
push eax
push 0x20119
push ebx
push esi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push 0x1001abd0
push eax
mov esi, 0x1001abf0
push esi
push 0x1c
push dword [ebp + 4]
call fcn.10062245
add esp, 0x14
mov dword [ebp - 0x14], ebx
cmp dword [edi + 0x14], 8
mov eax, edi
mov dword [ebp - 0x18], ebx
jb 0x100637b6
mov eax, dword [edi]
lea ecx, [ebp - 0x14]
push ecx
push ebx
lea ecx, [ebp - 0x18]
push ecx
push ebx
push eax
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push 0x1001ac28
push eax
push esi
push 0x21
push dword [ebp + 4]
call fcn.10062245
mov esi, dword [ebp + 8]
add esp, 0x14
mov ecx, esi
push dword [ebp - 0x14]
call fcn.100600ac
cmp dword [edi + 0x14], 8
jb 0x100637f3
mov edi, dword [edi]
lea eax, [ebp - 0x14]
push eax
push dword [esi]
lea eax, [ebp - 0x18]
push eax
push ebx
push edi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push 0x1001ac28
push eax
push 0x1001abf0
push 0x25
push dword [ebp + 4]
call fcn.10062245
add esp, 0x14
cmp dword [ebp - 0x10], 0
je 0x1006382f
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.1008c409
ret 4

Function at 0x10063837
Capabilities:
Set registry value

Disassembly:
push 8
mov eax, 0x100a0c38
call fcn.1008c43b
mov esi, edx
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 0x10], ebx
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], ebx
call fcn.1005bfe5
cmp dword [edi + 0x14], 8
jb 0x1006385f
mov edi, dword [edi]
push eax
push 0x20106
push ebx
push edi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push 0x1001abd0
push eax
mov edi, 0x1001abf0
push edi
push 0x33
push dword [ebp + 4]
call fcn.10062245
add esp, 0x14
cmp dword [esi + 0x14], 8
jb 0x10063893
mov esi, dword [esi]
push 4
lea eax, [ebp + 8]
push eax
push 4
push ebx
push esi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 0x1001ac48
push eax
push edi
push 0x36
push dword [ebp + 4]
call fcn.10062245
add esp, 0x14
cmp dword [ebp - 0x10], 0
je 0x100638c9
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.1008c409
ret 4
Function at 0x10066244
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x100af3bc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, edx
mov esi, ecx
xor ecx, ecx
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x20], esi
mov eax, edi
cmp dword [edi + 0x14], 8
jb 0x1006626d
mov eax, dword [edi]
push ecx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov ebx, eax
xor eax, eax
test ebx, ebx
jne 0x1006628f
mov dword [esi], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 7
mov word [esi], ax
jmp 0x100662e1
push eax
lea eax, [ebx - 1]
push eax
lea ecx, [ebp - 0x1c]
call fcn.10062b20
cmp dword [ebp - 8], 8
lea eax, [ebp - 0x1c]
jb 0x100662a8
mov eax, dword [ebp - 0x1c]
cmp dword [edi + 0x14], 8
jb 0x100662b0
mov edi, dword [edi]
push ebx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
jne 0x100662ce
mov dword [esi], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 7
mov word [esi], ax
jmp 0x100662d9
lea eax, [ebp - 0x1c]
mov ecx, esi
push eax
call fcn.10036eef
lea ecx, [ebp - 0x1c]
call fcn.1002b9c2
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1008b215
leave
ret
Function at 0x1006658c
Capabilities:
Create new key via cryptacquirecontext
Hash data via wincrypt
Import public key
Initialize hashing via wincrypt

Disassembly:
push 0x10
mov eax, 0x100a104c
call fcn.1008c43b
mov ebx, ecx
xor esi, esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], esi
push 0xf0000000
push 0x18
push esi
push esi
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 2
push eax
mov dword [ebp - 0x18], esi
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
push 0x1001aeac
setne al
movzx eax, al
push eax
push 0x1001ad9c
push 0xd5
push dword [ebp + 4]
call fcn.1006017d
mov edi, dword [ebp - 0x10]
add esp, 0x14
test edi, edi
je 0x10066601
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor esi, esi
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], esi
push eax
push esi
push esi
push 0x800c
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
mov edi, 0x1001ad9c
push 0x1001ae90
setne al
movzx eax, al
push eax
push edi
push 0xdf
push dword [ebp + 4]
call fcn.1006017d
mov eax, dword [ebp + 8]
add esp, 0x14
mov ecx, dword [eax]
mov eax, dword [eax + 4]
push esi
sub eax, ecx
push eax
push ecx
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
push 0x1001aef0
setne al
movzx eax, al
push eax
push edi
push 0xe7
push dword [ebp + 4]
call fcn.1006017d
mov edi, dword [ebp - 0x14]
add esp, 0x14
test edi, edi
je 0x10066690
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor esi, esi
mov eax, dword [ebx]
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], esi
push ecx
mov eax, dword [eax + 0xc]
add eax, 0x38
push eax
push 0x10001
push dword [ebp - 0x18]
call dword [sym.imp.CRYPT32.dll_CryptImportPublicKeyInfo]
test eax, eax
push 0x1001aed4
setne al
movzx eax, al
push eax
push 0x1001ad9c
push 0xef
push dword [ebp + 4]
call fcn.1006017d
mov eax, dword [ebp + 0xc]
add esp, 0x14
mov ecx, dword [eax]
mov eax, dword [eax + 4]
push esi
push esi
push dword [ebp - 0x14]
sub eax, ecx
push eax
push ecx
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_CryptVerifySignatureW]
lea ebx, [eax - 1]
neg ebx
sbb bl, bl
inc bl
cmp dword [ebp - 0x14], 0
je 0x10066703
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
cmp dword [ebp - 0x10], 0
je 0x10066712
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
cmp dword [ebp - 0x18], 0
je 0x10066722
push esi
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov al, bl
call fcn.1008c409
ret 0xc
Function at 0x1006e5b4
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
push ebx
push esi
push edi
mov edi, edx
mov dword [ebp - 8], ecx
xor esi, esi
mov dword [ebp - 4], esi
cmp word [edi], 0x22
je 0x1006e61b
push 0x2e
push edi
call fcn.1008f417
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
je 0x1006e61b
mov ecx, edi
call fcn.1006fd2a
cmp eax, ebx
ja 0x1006e61b
mov ecx, ebx
call fcn.1006fd2a
mov ecx, eax
sub ecx, edi
sar ecx, 1
jns 0x1006e5fe
mov ebx, 0x80070057
jmp 0x1006e632
push eax
push edi
push ecx
lea eax, [ebp - 4]
push 0x1001cac8
push eax
call fcn.1006f215
mov esi, dword [ebp - 4]
mov ebx, eax
add esp, 0x14
test ebx, ebx
js 0x1006e632
test esi, esi
jne 0x1006e644
mov edx, edi
lea ecx, [ebp - 4]
call fcn.1006f123
mov esi, dword [ebp - 4]
mov ebx, eax
test ebx, ebx
jns 0x1006e644
test esi, esi
je 0x1006e63d
push esi
call fcn.1008c67c
pop ecx
mov eax, ebx
jmp 0x1006e6de
xor eax, eax
lea edi, [ebp - 0x18]
stosd dword es:[edi], eax
xor ebx, ebx
push 0x44
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x60]
pop edi
push edi
push ebx
push eax
call fcn.1008cce0
add esp, 0xc
mov dword [ebp - 0x60], edi
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x60]
push eax
push ebx
push ebx
push 0x20
push ebx
push ebx
push ebx
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x1006e6bd
call fcn.1006fd51
mov edi, eax
mov ecx, dword [0x100ad1f0]
cmp ecx, 0x100ad1f0
je 0x1006e6ae
test byte [ecx + 0x1c], 1
je 0x1006e6ae
push edi
push esi
push dword [ecx + 0x14]
mov edx, 0x1001cafc
push dword [ecx + 0x10]
push 0x1a
pop ecx
call fcn.1006e1ef
test esi, esi
je 0x1006e6b9
push esi
call fcn.1008c67c
pop ecx
mov eax, edi
jmp 0x1006e6de
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x1006e6c9
call fcn.1006ebc6
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 0x18]
mov dword [ecx], eax
test esi, esi
je 0x1006e6dc
push esi
call fcn.1008c67c
pop ecx
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0x20

Function at 0x1006ec01
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
push 4
pop esi
jmp 0x1006ec26
mov eax, dword [ebp - 4]
cmp eax, esi
je 0x1006ec7b
test eax, eax
je 0x1006ec74
cmp eax, esi
ja 0x1006ec74
sub esi, eax
add edi, eax
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push 0
push eax
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1006ec13
call fcn.1006fd51
mov esi, eax
test esi, esi
jns 0x1006ec7b
mov ecx, dword [0x100ad1f0]
cmp ecx, 0x100ad1f0
je 0x1006ec70
test byte [ecx + 0x1c], 1
je 0x1006ec70
push esi
push dword [ecx + 0x14]
mov edx, 0x1001cb98
push dword [ecx + 0x10]
push 0x13
pop ecx
call fcn.1006e24c
mov eax, esi
jmp 0x1006ec7d
mov esi, 0x8000ffff
jmp 0x1006ec48
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x1006ed77
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ecx
push esi
push edi
mov edi, edx
mov esi, ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1006edcc
call fcn.1006fd51
mov esi, eax
cmp esi, 0x80070002
je 0x1006edc8
cmp esi, 0x80070003
je 0x1006edc8
mov eax, dword [0x100ad1f0]
cmp eax, 0x100ad1f0
je 0x1006edc8
test byte [eax + 0x1c], 1
je 0x1006edc8
push esi
push edi
push dword [eax + 0x14]
mov edx, 0x1001cb98
push dword [eax + 0x10]
push 0x1e
pop ecx
call fcn.1006e1ef
mov eax, esi
jmp 0x1006edd0
mov dword [esi], eax
xor eax, eax
pop edi
pop esi
pop ecx
ret

Function at 0x1006ee25
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
mov esi, ecx
push eax
xor ecx, ecx
push ecx
push dword [ebp + 0x10]
mov dword [ebp - 4], ecx
push 0x1005daa0
push ecx
push ecx
call fcn.100958bc
add esp, 0x18
mov dword [esi], eax
test eax, eax
je 0x1006ee83
mov eax, dword [0x100ad1f0]
cmp eax, 0x100ad1f0
je 0x1006ee73
test byte [eax + 0x1c], 4
je 0x1006ee73
push 0x1001cb98
push 0x2a
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.1006e1a9
mov ecx, dword [ebp + 0x18]
test ecx, ecx
je 0x1006ee7f
mov eax, dword [ebp - 4]
mov dword [ecx], eax
xor eax, eax
jmp 0x1006eede
mov esi, 0x80004005
call fcn.10079e88
mov eax, dword [eax]
sub eax, 0xb
je 0x1006eeb1
sub eax, 1
je 0x1006eea3
sub eax, 1
je 0x1006eeaa
sub eax, 9
jne 0x1006eeb6
mov esi, 0x8007000e
jmp 0x1006eeb6
mov esi, 0x80070005
jmp 0x1006eeb6
mov esi, 0x8007009b
mov eax, dword [0x100ad1f0]
cmp eax, 0x100ad1f0
je 0x1006eedc
test byte [eax + 0x1c], 1
je 0x1006eedc
push esi
push dword [eax + 0x14]
mov edx, 0x1001cb98
push dword [eax + 0x10]
push 0x2b
pop ecx
call fcn.1006e24c
mov eax, esi
pop esi
leave
ret 0x14
Function at 0x10074d83
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
mov edx, ecx
xor esi, esi
movzx ecx, byte [esi + edi]
movzx eax, dl
xor ecx, eax
shr edx, 8
xor edx, dword [ecx*4 + 0x1001d8c0]
inc esi
cmp esi, 0x10
jb 0x10074d8f
pop edi
mov eax, edx
pop esi
pop ebp
ret 4

Function at 0x1007d924
Capabilities:
Parse pe header

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

Function at 0x1007e63c
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10007328
push 0x10007320
push 0x10007328
push 0x1f
call fcn.1007e4c4
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1007e670
push dword [ebp + 8]
mov ecx, esi
call dword [0x100b134c]
call esi
jmp 0x1007e676
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1007e6ba
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1000734c
push 0x10007344
push 0x1000734c
push 0x21
call fcn.1007e4c4
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1007e6f1
push dword [ebp + 8]
mov ecx, esi
call dword [0x100b134c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1007e6f9
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10007360
push 0x10007358
push 0x10007360
push 0x22
call fcn.1007e4c4
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1007e733
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x100b134c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]

Function at 0x1008194f
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.1007a285
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 0x100819be
cmp esi, dword [ebp - 4]
je 0x100819b9
cmp dword [ebp + 0xc], 0
je 0x100819b9
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x10081996
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.1008148c
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x100819c0
xor eax, eax
inc eax
jmp 0x100819c0
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x10081a25
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x100af3bc]
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.1007a285
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.1007a285
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 0x10081a9c
cmp word [ecx], dx
je 0x10081a9c
mov eax, dword [0x10007c48]
push edi
dec eax
push eax
push 0x10001628
call fcn.100819c4
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x10081b0f
cmp word [eax], dx
je 0x10081b0f
mov eax, dword [edi]
test eax, eax
je 0x10081ac0
cmp word [eax], dx
je 0x10081ac0
lea eax, [ebp - 0x10]
push eax
call fcn.10081392
jmp 0x10081ac9
lea eax, [ebp - 0x10]
push eax
call fcn.1008142d
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x10081b39
mov eax, dword [0x10007c44]
push dword [ebp - 0x14]
dec eax
push eax
push 0x10001318
call fcn.100819c4
add esp, 0xc
test al, al
je 0x10081b39
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x10081b04
cmp word [eax], di
je 0x10081b04
lea eax, [ebp - 0x10]
push eax
call fcn.10081392
pop ecx
jmp 0x10081b3b
lea eax, [ebp - 0x10]
push eax
call fcn.1008142d
jmp 0x10081b01
mov eax, dword [edi]
test eax, eax
je 0x10081b26
cmp word [eax], dx
je 0x10081b26
lea eax, [ebp - 0x10]
push eax
call fcn.10081347
pop ecx
jmp 0x10081b39
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 0x10081c04
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.10081849
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x10081c04
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x10081c04
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x10081c04
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x10081b91
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.1007e839
test ebx, ebx
je 0x10081bff
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.1007e839
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x10081c04
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 0x10081c04
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.10085527
add esp, 0x10
xor eax, eax
inc eax
jmp 0x10081c06
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1008b215
leave
ret
Function at 0x10088ff6
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x100af6d8]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x10089036
cmp byte [ebx], 0xa
jne 0x10089036
or byte [edi + eax + 0x28], 4
jmp 0x1008903b
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x1008913a
mov dl, byte [eax]
cmp dl, 0x1a
je 0x1008911d
inc eax
cmp dl, 0xd
je 0x10089067
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x1008908d
cmp eax, ecx
jae 0x1008909b
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x1008904f
jmp 0x1008913a
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10089118
cmp dword [ebp - 0x10], 0
je 0x10089118
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x100af6d8]
test byte [eax + edi + 0x28], 0x48
je 0x100890f2
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x100890dd
mov byte [esi], dl
jmp 0x100890ee
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x100af6d8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x1008913a
cmp byte [ebp - 1], 0xa
jne 0x10089101
cmp esi, ebx
jne 0x10089101
mov byte [esi], 0xa
jmp 0x10089139
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.100878d9
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x1008913a
mov byte [esi], 0xd
jmp 0x10089139
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x100af6d8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x10089137
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x1008913a
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x10089143
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x100af6d8]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x10089189
cmp word [ebx], dx
jne 0x10089189
or byte [eax + edi + 0x28], 4
jmp 0x1008918e
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x100892f1
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x100892d1
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x100891cf
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x10089205
cmp eax, edx
jae 0x10089213
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x100891aa
jmp 0x100892f1
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100892cc
cmp dword [ebp - 0x18], 0
je 0x100892cc
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x100af6d8]
test byte [eax + edi + 0x28], 0x48
je 0x100892a2
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x10089266
mov word [esi], cx
jmp 0x1008929d
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x100af6d8]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x100af6d8]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x100af6d8]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x100892f1
pop eax
cmp word [ebp - 4], ax
jne 0x100892b2
cmp esi, ebx
jne 0x100892b2
mov word [esi], ax
jmp 0x100892ee
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.100878d9
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x100892f1
push 0xd
pop eax
jmp 0x100892ad
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x100af6d8]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x100892eb
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x100892f1
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x1008b5ae
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
lea edx, [ecx + 0x18]
add edx, eax
movzx eax, word [ecx + 6]
imul esi, eax, 0x28
add esi, edx
cmp edx, esi
je 0x1008b5eb
mov ecx, dword [ebp + 0xc]
cmp ecx, dword [edx + 0xc]
jb 0x1008b5e4
mov eax, dword [edx + 8]
add eax, dword [edx + 0xc]
cmp ecx, eax
jb 0x1008b5f0
add edx, 0x28
cmp edx, esi
jne 0x1008b5d5
xor eax, eax
pop esi
pop ebp
ret
mov eax, edx
jmp 0x1008b5ed