joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4ea270
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, esi
push edi
push dword [ebp + 0xc]
call fcn.004ea31b
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x4ea2b8
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.00469102
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.00467006
jmp 0x4ea2c3
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.004764b5
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x54cbb3
Capabilities:
Get common file path

Disassembly:
push esi
mov esi, ecx
call fcn.0057d8e4
call fcn.004739ae
cmp dword [eax + 0x14], 0
jne 0x54cbce
mov ecx, esi
pop esi
jmp fcn.0054bfb9
pop esi
ret

Function at 0x559396
Capabilities:
Get common file path
Get file system object information

Disassembly:
push esi
mov esi, ecx
call fcn.004ec1fa
call fcn.004739ae
cmp dword [eax + 0x14], 0
jne 0x5593b1
mov ecx, esi
pop esi
jmp fcn.00558c21
pop esi
ret
Function at 0x5999c5
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x639490]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.0058c25e
mov dword [ebp - 0x14], eax
cmp dword [0x646848], esi
jne 0x599ab8
push 0x800
push esi
push 0x6031a0
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x599a45
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x599b98
push esi
push esi
push 0x6031a0
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x599b98
push 0x6031b8
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x599b98
push eax
call ebx
push 0x6031c4
push edi
mov dword [0x646848], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x6031d4
push edi
mov dword [0x64684c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x646850], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x646858], eax
test eax, eax
je 0x599ab5
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x646854], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x599add
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x599ad0
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x599af2
push 4
pop eax
jmp 0x599b9a
cmp dword [ebp - 0x14], esi
je 0x599af2
push dword [0x646848]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x599ad7
mov eax, dword [0x646854]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x599b50
cmp dword [0x646858], edi
je 0x599b50
push eax
call ebx
push dword [0x646858]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x599b50
test eax, eax
je 0x599b50
call ecx
test eax, eax
je 0x599b45
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x599b45
test byte [ebp - 8], 1
jne 0x599b50
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x599b80
mov eax, dword [0x64684c]
cmp eax, edi
je 0x599b7d
push eax
call ebx
test eax, eax
je 0x599b7d
call eax
mov esi, eax
test esi, esi
je 0x599b7d
mov eax, dword [0x646850]
cmp eax, edi
je 0x599b7d
push eax
call ebx
test eax, eax
je 0x599b7d
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x646848]
call ebx
test eax, eax
je 0x599b98
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x599b9a
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00581b80
mov esp, ebp
pop ebp
ret
Function at 0x5a983f
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret

Function at 0x4bf3a0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x87000]
push edi
jmp 0x4bf3ba
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4bf3c1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4bf3b0
mov eax, 1
add ebx, ebx
jne 0x4bf3d3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4bf3e4
jne 0x4bf403
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4bf403
dec eax
add ebx, ebx
jne 0x4bf3f0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4bf3c8
add ebx, ebx
jne 0x4bf3ff
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4bf455
xor ecx, ecx
sub eax, 3
jb 0x4bf41b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4bf48a
sar eax, 1
mov ebp, eax
jmp 0x4bf426
add ebx, ebx
jne 0x4bf426
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4bf3f4
inc ecx
add ebx, ebx
jne 0x4bf434
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4bf3f4
add ebx, ebx
jne 0x4bf441
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4bf436
jne 0x4bf452
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4bf436
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4bf474
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4bf466
jmp 0x4bf3b6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4bf474
add edi, ecx
jmp 0x4bf3b6
pop esi
mov edi, esi
mov ecx, 0x45dd
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4bf492
cmp byte [edi], 0xd
jne 0x4bf492
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x4bf497
lea edi, [esi + 0xbc000]
mov eax, dword [edi]
or eax, eax
je 0x4bf50f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xc2758]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xc2888]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4bf4c4
mov ecx, edi
jns 0x4bf4f3
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xc2890]
or eax, eax
je 0x4bf509
mov dword [ebx], eax
add ebx, 4
jmp 0x4bf4e1
call dword [esi + 0xc288c]
mov ebp, dword [esi + 0xc2894]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x22f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4bf543
sub esp, 0xffffff80
jmp 0x4653a6
Function at 0x40a232
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
xor eax, eax
mov edx, eax
push esi
mov esi, dword [ebp + 8]
and ecx, 0xfffffffc
jbe 0x40a276
rol eax, 5
xor eax, dword [edx + esi]
add edx, 4
imul eax, eax, 0x9e3779b9
rol eax, 5
xor eax, 4
imul eax, eax, 0x9e3779b9
cmp edx, ecx
jb 0x40a245
jmp 0x40a276
movsx ecx, byte [edx + esi]
rol eax, 5
xor eax, ecx
imul eax, eax, 0x9e3779b9
inc edx
cmp edx, dword [ebp + 0xc]
jb 0x40a266
pop esi
pop ebp
ret

Function at 0x40b010
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 1
lea esi, [ebx - 1]
push 0x2000
not esi
push ebx
and esi, 0xf0deafff
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
cmp edi, esi
jne 0x40b045
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp esi, dword [ebp - 0x18]
jb 0x40b06f
lea eax, [esi + ebx]
cmp eax, dword [ebp - 0x18]
jb 0x40b06f
test edi, edi
je 0x40b03c
push 0x8000
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x40b03c
test edi, edi
je 0x40b077
mov eax, edi
jmp 0x40b03e
push 1
push 0x2000
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
jne 0x40b03e
mov esi, 0xc3
push esi
push str.c:_builds_moz2_slave_m_in_w32_d_0000000000000000000_build_src_mfbt_Poison.cpp
push str.no_usable_poison_region_identified
call fcn.0040e49b
add esp, 0xc
int3
Function at 0x40e4cf
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 8]
push eax
mov dword [sym.TestCountZeroes.exe_gMozillaPoisonSize], eax
call fcn.0040b010
pop ecx
mov ecx, dword [sym.TestCountZeroes.exe_gMozillaPoisonSize]
mov dword [sym.TestCountZeroes.exe_gMozillaPoisonBase], eax
test ecx, ecx
je 0x40e507
shr ecx, 1
dec ecx
add eax, ecx
mov dword [sym.TestCountZeroes.exe_gMozillaPoisonValue], eax
mov esp, ebp
pop ebp
ret
Function at 0x40f880
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x10
mov eax, dword [0x4ac210]
mov edx, dword [0x4ac20c]
mov dword [esp + 8], ecx
mov ecx, 0xb0bda270
mov edi, 0x6a762f1f
mov ebx, 0x68aa87c5
lea esi, [eax + 1]
imul esi, eax
mov eax, esi
xor eax, 0xfffffffe
test eax, esi
mov esi, 0x7a18fc57
sete al
sete byte [esp + 1]
cmp edx, 0xa
setl dl
setl byte [esp + 2]
or dl, al
mov edx, 0xc3bf2379
mov eax, 0x5510127
cmove ecx, edx
cmove edi, edx
cmove esi, eax
mov edx, 0xb1494736
jmp 0x40f8f0
mov eax, dword [esp + 4]
mov edx, 0x6a762f1f
nop
mov ebp, edx
cmp edx, 0xd01132e
jg 0x40f950
cmp ebp, 0xc3bf2378
jg 0x40f980
cmp ebp, 0xa88a79e8
je 0x40f9d0
cmp ebp, 0xb1494736
jne 0x40f9f7
movzx eax, byte [esp + 1]
movzx edx, byte [esp + 2]
mov ebp, 0x5510127
mov ah, dl
xor ah, al
test dl, dl
mov edx, 0x5510127
cmovne edx, ebx
test al, al
cmove edx, ebp
test ah, ah
cmovne edx, ebx
jmp 0x40f8f0
cmp ebp, 0x6a762f1e
jg 0x40f9b0
mov edx, edi
cmp ebp, 0xd01132f
je 0x40f8f0
mov edx, ebp
cmp ebp, 0x68aa87c5
jne 0x40f8f0
mov eax, dword [esp + 8]
mov edx, esi
mov dword [esp + 0xc], eax
jmp 0x40f8f0
cmp ebp, 0xc3bf2379
je 0x40f8e6
mov edx, ebp
cmp ebp, 0x5510127
jne 0x40f8f0
mov edx, 0x68aa87c5
jmp 0x40f8f0
cmp ebp, 0x6a762f1f
je 0x40f9e5
mov edx, ebp
cmp ebp, 0x7a18fc57
jne 0x40f8f0
mov edx, 0xa88a79e8
jmp 0x40f8f0
mov eax, dword [esp + 0xc]
mov edx, 0xd01132f
add eax, 0x40
mov dword [esp + 4], eax
jmp 0x40f8f0
mov eax, dword [esp + 4]
mov edx, ecx
movzx eax, byte [eax]
mov byte [esp + 3], al
jmp 0x40f8f0
mov edx, ebp
cmp ebp, 0xb0bda270
jne 0x40f8f0
movzx eax, byte [esp + 3]
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x43943e
Capabilities:
Parse pe header

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

Function at 0x43a71e
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
jg 0x43a73f
jl 0x43a736
test edi, edi
jne 0x43a73f
xor eax, eax
xor edx, edx
jmp 0x43a800
cmp dword [ebx + 0x38], 0
je 0x43a754
push eax
push edi
push dword [ebp + 8]
call fcn.0043a806
jmp 0x43a800
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x43a79b
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x43a79b
cmp eax, edi
jb 0x43a775
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.0043b760
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, dword [ebp + 8]
sub esi, ecx
add eax, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x2c]
sub dword [eax], ecx
mov eax, dword [ebx + 0x1c]
add dword [eax], ecx
jmp 0x43a7a1
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x43a7f5
mov ecx, ebx
call fcn.00439f78
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x43a7e0
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.0044481f
mov ecx, dword [ebp - 4]
sub esi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, esi
cmp eax, 0xfff
jne 0x43a7f5
jmp 0x43a7b3
test edx, edx
je 0x43a7f5
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.0044481f
add esp, 0x10
sub esi, eax
mov edx, dword [ebp + 0x10]
sub edi, esi
mov eax, edi
sbb edx, 0
pop esi
pop edi
pop ebx
leave
ret 0xc

Function at 0x4473fc
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4a38e8
push 0x4a38e0
push str.FlsAlloc
push 0x1f
call fcn.00447267
mov esi, eax
add esp, 0x10
test esi, esi
je 0x447430
push dword [ebp + 8]
mov ecx, esi
call dword [0x457164]
call esi
jmp 0x447436
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x44747a
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4a38f8
push 0x4a38f0
push str.FlsGetValue
push 0x21
call fcn.00447267
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4474b1
push dword [ebp + 8]
mov ecx, esi
call dword [0x457164]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x4474b9
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4a3900
push 0x4a38f8
push str.FlsSetValue
push 0x22
call fcn.00447267
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4474f3
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x457164]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x44b22d
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 0x44b2ca
push ebx
push esi
call fcn.0044b1f6
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.0044b18a
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x44b277
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x44b2c9
push edi
push eax
call fcn.004488bb
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x44b297
call fcn.00448768
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x44b2c8
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0044b18a
add esp, 0x20
test eax, eax
jne 0x44b2b6
push edi
call fcn.00448768
jmp 0x44b2be
push ebx
call fcn.00448768
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 0x44df1e
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.00447a90
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 0x44df8d
cmp esi, dword [ebp - 4]
je 0x44df88
cmp dword [ebp + 0xc], 0
je 0x44df88
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x44df65
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.0044da70
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x44df8f
xor eax, eax
inc eax
jmp 0x44df8f
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x44dff7
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x4aa2c0]
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.00447a90
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.00447a90
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 0x44e06e
cmp word [ecx], dx
je 0x44e06e
mov eax, dword [0x4a448c]
push edi
dec eax
push eax
push 0x4a4378
call fcn.0044df93
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x44e0e1
cmp word [eax], dx
je 0x44e0e1
mov eax, dword [edi]
test eax, eax
je 0x44e092
cmp word [eax], dx
je 0x44e092
lea eax, [ebp - 0x10]
push eax
call fcn.0044d976
jmp 0x44e09b
lea eax, [ebp - 0x10]
push eax
call fcn.0044da11
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x44e10b
mov eax, dword [0x4a4374]
push dword [ebp - 0x14]
dec eax
push eax
push 0x4a4068
call fcn.0044df93
add esp, 0xc
test al, al
je 0x44e10b
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x44e0d6
cmp word [eax], di
je 0x44e0d6
lea eax, [ebp - 0x10]
push eax
call fcn.0044d976
pop ecx
jmp 0x44e10d
lea eax, [ebp - 0x10]
push eax
call fcn.0044da11
jmp 0x44e0d3
mov eax, dword [edi]
test eax, eax
je 0x44e0f8
cmp word [eax], dx
je 0x44e0f8
lea eax, [ebp - 0x10]
push eax
call fcn.0044d92b
pop ecx
jmp 0x44e10b
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 0x44e1d6
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.0044de18
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x44e1d6
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x44e1d6
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x44e1d6
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x44e163
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.004475f9
test ebx, ebx
je 0x44e1d1
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.004475f9
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x44e1d6
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 0x44e1d6
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.00453fda
add esp, 0x10
xor eax, eax
inc eax
jmp 0x44e1d8
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004388e0
leave
ret
Function at 0x44fb88
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.004388f0
mov eax, dword [0x4aa2c0]
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.004496ff
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x44fbca
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x44fd26
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00456090
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 + 0x4aba58]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.00450b85
mov ecx, dword [esi*4 + 0x4aba58]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x44fd1f
cmp eax, dword [ecx + edi + 0x24]
jne 0x44fd1f
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x44fd1f
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00450b85
add esp, 0x14
test edx, edx
jl 0x44fd1f
jg 0x44fc95
test eax, eax
jb 0x44fd1f
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x44fd1f
jl 0x44fcaf
cmp dword [ebp - 0x1008], eax
ja 0x44fd1f
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x44fccd
test ebx, ebx
je 0x44fd06
cmp ecx, edi
jae 0x44fd06
mov al, byte [ecx]
cmp al, 0xd
jne 0x44fce7
lea eax, [edi - 1]
cmp ecx, eax
jae 0x44fcf3
cmp byte [ecx + 1], 0xa
jne 0x44fcf3
inc ecx
jmp 0x44fcf3
movzx eax, al
movsx eax, byte [eax + 0x4aaab8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x44fccd
cmp edx, ebx
jne 0x44fccd
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x44fd24
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004388e0
leave
ret
Function at 0x45001d
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 + 0x4aba58]
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 0x45005d
cmp byte [ebx], 0xa
jne 0x45005d
or byte [edi + eax + 0x28], 4
jmp 0x450062
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 0x450161
mov dl, byte [eax]
cmp dl, 0x1a
je 0x450144
inc eax
cmp dl, 0xd
je 0x45008e
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x4500b4
cmp eax, ecx
jae 0x4500c2
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 0x450076
jmp 0x450161
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 0x45013f
cmp dword [ebp - 0x10], 0
je 0x45013f
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x4aba58]
test byte [eax + edi + 0x28], 0x48
je 0x450119
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x450104
mov byte [esi], dl
jmp 0x450115
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4aba58]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x450161
cmp byte [ebp - 1], 0xa
jne 0x450128
cmp esi, ebx
jne 0x450128
mov byte [esi], 0xa
jmp 0x450160
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00450ba3
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x450161
mov byte [esi], 0xd
jmp 0x450160
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x4aba58]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x45015e
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x450161
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret