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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
mov eax, dword [0x42d040]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
push esi
mov esi, dword [0x48f538]
xor ebx, ebx
push edi
mov dword [esp + 0x10], edx
mov eax, dword [esi + 0x3c]
mov eax, dword [eax + esi + 0x78]
add eax, esi
mov dword [esp + 0x18], eax
mov edi, dword [eax + 0x20]
mov eax, dword [eax + 0x18]
add edi, esi
mov dword [esp + 0x14], eax
test eax, eax
je 0x401fb9
mov eax, dword [edi]
lea ecx, [esp + 0x1c]
add eax, esi
push eax
call fcn.004028e2
lea ecx, [esp + 0x1c]
call fcn.00401d79
cmp eax, dword [esp + 0x10]
je 0x401fd0
lea ecx, [esp + 0x1c]
add edi, 4
call fcn.004031a7
inc ebx
cmp ebx, dword [esp + 0x14]
jb 0x401f89
xor edi, edi
mov ecx, dword [esp + 0x34]
lea eax, [esi + edi]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00406cb1
mov esp, ebp
pop ebp
ret
mov edx, str.QwruxAA
call fcn.00403b47
push eax
call fcn.00403b15
mov edx, dword [esp + 0x1c]
pop ecx
mov eax, dword [edx + 0x24]
lea eax, [eax + ebx*2]
movzx ecx, word [eax + esi]
mov eax, dword [edx + 0x1c]
lea eax, [eax + ecx*4]
mov edi, dword [eax + esi]
lea ecx, [esp + 0x1c]
call fcn.004031a7
jmp 0x401fbb

Function at 0x402003
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push esi
push edi
mov edi, dword fs:[0x30]
mov edi, dword [edi + 0xc]
mov esi, dword [edi + 0xc]
mov eax, dword [esi]
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
mov dword [0x48f538], eax
pop edi
pop esi
ret

Function at 0x407a7d
Capabilities:
Parse pe header

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

Function at 0x41613a
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x427050
push 0x427048
push str.FlsAlloc
push 0x1e
call fcn.00416023
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41616e
push dword [ebp + 8]
mov ecx, esi
call dword [0x423134]
call esi
jmp 0x416174
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4161b8
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x427060
push 0x427058
push str.FlsGetValue
push 0x20
call fcn.00416023
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4161ef
push dword [ebp + 8]
mov ecx, esi
call dword [0x423134]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x416f84
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00416c26

Function at 0x416f8f
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00416db5
Function at 0x4185fa
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00407bf0
mov eax, dword [0x42d040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.004149f5
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x41863c
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x418798
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00421a10
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x48f130]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00418a20
mov ecx, dword [esi*4 + 0x48f130]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x418791
cmp eax, dword [edi + ecx + 0x24]
jne 0x418791
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x418791
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00418a20
add esp, 0x14
test edx, edx
jl 0x418791
jg 0x418707
test eax, eax
jb 0x418791
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x418791
jl 0x418721
cmp dword [ebp - 0x1008], eax
ja 0x418791
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x41873f
test ebx, ebx
je 0x418778
cmp ecx, edi
jae 0x418778
mov al, byte [ecx]
cmp al, 0xd
jne 0x418759
lea eax, [edi - 1]
cmp ecx, eax
jae 0x418765
cmp byte [ecx + 1], 0xa
jne 0x418765
inc ecx
jmp 0x418765
movzx eax, al
movsx eax, byte [eax + 0x42d9b0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x41873f
cmp edx, ebx
jne 0x41873f
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x418796
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00406cb1
leave
ret
Function at 0x419b81
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x42d040]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x419bcc
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.00419d20
test al, al
jne 0x419bc6
sub edx, 2
cmp edx, edi
jne 0x419bac
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x419bee
lea eax, [edi + 2]
cmp edx, eax
je 0x419bee
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.00419acd
add esp, 0x10
jmp 0x419ce8
push esi
lea ecx, [ebp - 0x255]
call fcn.00419d20
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x419c31
push dword [ebp - 0x25c]
jmp 0x419bde
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x419c6e
cmp word [ebp - 0x226], 0
je 0x419c8f
cmp word [ebp - 0x226], ax
jne 0x419c6e
cmp word [ebp - 0x224], 0
je 0x419c8f
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.00419acd
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x419cdb
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x419c48
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x419cc3
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x419ce8
push 0x4198fd
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.0041f8f0
add esp, 0x10
jmp 0x419cb8
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00406cb1
leave
ret
Function at 0x41ed8f
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
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 + 0x48f130]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41edcf
cmp byte [ebx], 0xa
jne 0x41edcf
or byte [eax + edi + 0x28], 4
jmp 0x41edd4
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x41eed2
mov al, byte [edx]
cmp al, 0x1a
je 0x41eeb4
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x41ee03
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x41ee28
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x41ee32
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x41ede5
jmp 0x41eed2
push 0
lea eax, [ebp - 0xc]
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 0x41eeaf
cmp dword [ebp - 0xc], 0
je 0x41eeaf
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x48f130]
test byte [eax + edi + 0x28], 0x48
je 0x41ee89
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x41ee74
mov byte [esi], dl
jmp 0x41ee85
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x48f130]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x41eed2
cmp byte [ebp - 1], 0xa
jne 0x41ee98
cmp esi, ebx
jne 0x41ee98
mov byte [esi], 0xa
jmp 0x41eed1
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00418a3e
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41eed2
mov byte [esi], 0xd
jmp 0x41eed1
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x48f130]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41eece
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41eed2
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41eedb
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x48f130]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41ef1e
cmp word [esi], dx
jne 0x41ef1e
or byte [edi + eax + 0x28], 4
jmp 0x41ef23
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x41f076
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x41f056
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x41ef65
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x41ef9b
cmp eax, edx
jae 0x41efa7
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
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 - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x41ef3d
jmp 0x41f076
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41f052
cmp dword [ebp - 0x14], 0
je 0x41f052
mov eax, dword [ebx*4 + 0x48f130]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x41f02a
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x41eff3
mov word [esi], cx
jmp 0x41f026
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x48f130]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x48f130]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x48f130]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x41f076
pop ebx
cmp word [ebp - 4], bx
jne 0x41f03b
cmp esi, dword [ebp + 0xc]
jne 0x41f03b
mov word [esi], bx
jmp 0x41f073
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00418a3e
add esp, 0x10
cmp word [ebp - 4], bx
je 0x41f076
push 0xd
jmp 0x41f06f
mov ecx, dword [ebx*4 + 0x48f130]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41f06d
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41f076
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x1006c23
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
push esi
push edi
xor edi, edi
push 0xfffffffffffffff5
mov dword [ebp - 8], edi
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
lea ecx, [ebp - 0x28]
push ecx
push eax
mov dword [0x1026edc], eax
call dword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
mov eax, dword [ebp - 0x1a]
sub eax, dword [ebp - 0x1e]
mov word [0x1026ee4], ax
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp - 0x1c]
mov word [0x1026ed4], ax
lea eax, [ebp - 8]
push eax
push 0xf003f
push edi
push 0x100127c
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
jne 0x1006ce8
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10]
push eax
push edi
push 0x1001268
push dword [ebp - 8]
mov dword [ebp - 0xc], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, edi
jne 0x1006ce8
mov eax, 0xff
cmp dword [ebp - 4], eax
jne 0x1006cce
mov edx, dword [ebp - 0x20]
mov eax, edx
mov si, dx
and edx, 0xf0
mov ecx, edx
or eax, 8
or ecx, 0xc
or edx, 8
jmp 0x1006cf4
mov cl, byte [ebp - 4]
movzx dx, byte [ebp - 1]
and cx, ax
movzx ax, byte [ebp - 2]
mov si, cx
movzx cx, byte [ebp - 3]
jmp 0x1006cf4
mov eax, dword [ebp - 0x20]
mov si, ax
mov cx, ax
mov dx, ax
push ebx
xor ebx, ebx
mov bl, dl
mov word [0x1026ed0], si
mov word [0x1026ed2], cx
mov word [0x1026ee2], ax
mov word [0x1026ee0], dx
shr ebx, 4
xor bl, dl
test bl, 0xf
pop ebx
jne 0x1006d26
mov word [0x1026ee0], si
xor edx, edx
mov dl, al
shr edx, 4
xor dl, al
test dl, 0xf
jne 0x1006d3b
mov word [0x1026ee2], si
xor eax, eax
mov al, cl
shr eax, 4
xor al, cl
test al, 0xf
jne 0x1006d4f
mov word [0x1026ed2], si
cmp dword [ebp - 8], edi
pop edi
pop esi
je 0x1006d5f
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
leave
ret
Function at 0x1007837
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xa68
mov eax, dword [0x10253cc]
and dword [ebp - 0xa68], 0
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, dword [edi]
test esi, esi
mov dword [ebp - 4], eax
je 0x1007962
cmp word [esi], 0
je 0x1007940
lea eax, [ebp - 0x614]
push eax
lea eax, [ebp - 0x814]
push eax
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
call fcn.0100b7ba
add esp, 0x14
lea eax, [ebp - 0xa64]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x1007973
lea eax, [ebp - 0xa38]
push 0x1001358
push eax
call fcn.0100b5cc
test eax, eax
pop ecx
pop ecx
je 0x100790d
lea eax, [ebp - 0xa38]
push 0x1001350
push eax
call fcn.0100b5cc
test eax, eax
pop ecx
pop ecx
je 0x100790d
push 0x100125c
lea eax, [ebp - 0xa38]
push eax
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x214]
push eax
call fcn.0100b702
add esp, 0x14
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0xa68]
push eax
call fcn.010076c1
lea eax, [ebp - 0xa64]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
cmp eax, 1
je 0x10078a6
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 0xc], 0
je 0x1007940
push esi
call fcn.0100b244
lea esi, [esi + eax*2 + 2]
test esi, esi
pop ecx
jne 0x1007861
mov esi, dword [ebp - 0xa68]
test esi, esi
je 0x1007962
mov eax, dword [edi]
test eax, eax
je 0x1007960
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [edi], esi
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0100ae9f
leave
ret 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1007964
Function at 0x1007ac2
Capabilities:
Get geographical location
Identify system language via api

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x10253cc]
push ebx
push esi
xor esi, esi
push edi
mov dword [ebp - 4], eax
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x34], esi
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
mov dword [ebp - 0x30], eax
call dword [sym.imp.KERNEL32.dll_GetThreadLocale]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x28], 0x409
call dword [sym.imp.KERNEL32.dll_GetConsoleOutputCP]
cmp dword [0x1026044], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov dword [ebp - 0x3c], eax
mov ebx, 0x1004
jne 0x1007b5b
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLCID]
mov edi, eax
test edi, edi
je 0x1007b5b
push 0x10
lea eax, [ebp - 0x24]
push eax
push ebx
push edi
call esi
lea eax, [ebp - 0x24]
push eax
call fcn.0100ba92
pop ecx
push 0x10
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x24]
push eax
push 0xb
push edi
call esi
lea eax, [ebp - 0x24]
push eax
call fcn.0100ba92
and edi, 0x3ff
pop ecx
mov dword [0x1026048], eax
mov dword [0x1026040], edi
cmp word [ebp - 0x30], 0
je 0x1007b95
movzx edi, word [ebp - 0x30]
push 0x10
lea eax, [ebp - 0x24]
push eax
push ebx
push edi
call esi
lea eax, [ebp - 0x24]
push eax
call fcn.0100ba92
pop ecx
push 0x10
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x24]
push eax
push 0xb
push edi
call esi
lea eax, [ebp - 0x24]
push eax
call fcn.0100ba92
pop ecx
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x3c]
test ecx, ecx
je 0x1007bd6
mov eax, dword [0x1026040]
cmp eax, 1
je 0x1007bd6
cmp eax, 0xd
je 0x1007bd6
cmp eax, 0x2a
je 0x1007bd6
cmp eax, 0x1e
je 0x1007bd6
cmp ecx, dword [0x1026044]
je 0x1007bc5
cmp ecx, dword [0x1026048]
jne 0x1007bd6
cmp ecx, dword [ebp - 0x2c]
je 0x1007bcf
cmp ecx, dword [ebp - 0x34]
jne 0x1007bd6
movzx eax, word [ebp - 0x30]
mov dword [ebp - 0x28], eax
mov esi, dword [ebp - 0x38]
cmp dword [ebp - 0x28], esi
je 0x1007bee
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_SetThreadLocale]
test eax, eax
jne 0x1007bee
mov dword [ebp - 0x28], esi
mov ecx, dword [ebp - 4]
mov ax, word [ebp - 0x28]
pop edi
pop esi
pop ebx
call fcn.0100ae9f
leave
ret 4
Function at 0x1007c52
Capabilities:
Write file on windows

Disassembly:
push 0x24
push 0x1001360
call fcn.0100bb10
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [ebp - 0x24], eax
push dword [ebp + 8]
push dword [0x1026edc]
call dword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x1c], ebx
lea eax, [ebp + 0x10]
push eax
push 0x1000
lea eax, [ebp - 0x1c]
push eax
push ebx
push ebx
push dword [ebp + 0xc]
push 0x500
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x1c], ebx
je 0x1007d65
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_GetFileType]
and eax, 0xffff7fff
cmp eax, 2
jne 0x1007cd2
push ebx
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_WriteConsoleW]
jmp 0x1007d31
mov dword [ebp - 0x28], ebx
mov eax, dword [ebp - 0x20]
lea eax, [eax + eax + 2]
push eax
push ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
mov dword [ebp - 0x28], esi
cmp esi, ebx
je 0x1007d31
push esi
push dword [ebp - 0x1c]
call dword [sym.imp.USER32.dll_CharToOemW]
test eax, eax
je 0x1007d22
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x1007d09
sub eax, edx
push ebx
lea ecx, [ebp - 0x2c]
push ecx
push eax
push esi
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp esi, ebx
je 0x1007d31
push esi
push ebx
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x1c]
call fcn.010077a3
test eax, eax
je 0x1007d4f
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x20], eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x1007d65
or dword [ebp - 4], 0xffffffff
xor eax, eax
mov ax, word [0x1026ed0]
push eax
push dword [0x1026edc]
call dword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
mov eax, dword [ebp - 0x20]
call fcn.0100bb4b
ret 0xc
Function at 0x100818c
Capabilities:
Get file version info

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1018
call fcn.0100b6c0
mov eax, dword [0x10253cc]
push ebx
mov dword [ebp - 4], eax
push 0x400
xor ebx, ebx
lea eax, [ebp - 0xc04]
push eax
push ebx
mov dword [ebp - 0x1010], ebx
mov dword [ebp - 0x1014], ebx
mov dword [ebp - 0x1018], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x200
mov dword [ebp - 0x1008], eax
lea eax, [ebp - 0x1004]
push eax
push 0x23a
push ebx
call dword [sym.imp.USER32.dll_LoadStringW]
cmp dword [ebp - 0x1008], ebx
jbe 0x100838e
lea eax, [ebp - 0x1008]
push eax
lea eax, [ebp - 0xc04]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
cmp eax, ebx
mov dword [ebp - 0x1008], eax
jbe 0x100838e
push edi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
cmp edi, ebx
je 0x100838d
push edi
push dword [ebp - 0x1008]
lea eax, [ebp - 0xc04]
push ebx
push eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x100837e
lea eax, [ebp - 0x1008]
push eax
lea eax, [ebp - 0x100c]
push eax
push 0x100145c
push edi
mov dword [ebp - 0x100c], ebx
call sub.VERSION.dll_VerQueryValueW
mov eax, dword [ebp - 0x100c]
cmp eax, ebx
je 0x1008337
movzx ecx, word [eax + 2]
movzx eax, word [eax]
push esi
push 0x100143c
push ecx
push eax
mov esi, 0x1001404
lea eax, [ebp - 0x404]
push esi
push eax
call fcn.0100b308
add esp, 0x14
lea eax, [ebp - 0x1008]
push eax
lea eax, [ebp - 0x1010]
push eax
lea eax, [ebp - 0x404]
push eax
push edi
call sub.VERSION.dll_VerQueryValueW
mov eax, dword [ebp - 0x100c]
movzx ecx, word [eax + 2]
movzx eax, word [eax]
push 0x10013e0
push ecx
push eax
lea eax, [ebp - 0x404]
push esi
push eax
call fcn.0100b308
add esp, 0x14
lea eax, [ebp - 0x1008]
push eax
lea eax, [ebp - 0x1014]
push eax
lea eax, [ebp - 0x404]
push eax
push edi
call sub.VERSION.dll_VerQueryValueW
mov eax, dword [ebp - 0x100c]
movzx ecx, word [eax + 2]
movzx eax, word [eax]
push 0x10013c0
push ecx
push eax
lea eax, [ebp - 0x404]
push esi
push eax
call fcn.0100b308
add esp, 0x14
lea eax, [ebp - 0x1008]
push eax
lea eax, [ebp - 0x1018]
push eax
lea eax, [ebp - 0x404]
push eax
push edi
call sub.VERSION.dll_VerQueryValueW
pop esi
cmp dword [ebp - 0x1014], ebx
je 0x100837e
cmp dword [ebp - 0x1010], ebx
je 0x100837e
cmp dword [ebp - 0x1018], ebx
je 0x100837e
push dword [ebp - 0x1018]
lea eax, [ebp - 0x1004]
push dword [ebp - 0x1010]
push dword [ebp - 0x1014]
push eax
xor eax, eax
mov ax, word [0x1026ed0]
push 0x1001384
push eax
call fcn.01007d8e
add esp, 0x18
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
mov ecx, dword [ebp - 4]
pop ebx
call fcn.0100ae9f
leave
ret