joyce8/EMBER2024-capa huggingface dataset:
Function at 0x444530
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x40000]
push edi
or ebp, 0xffffffff
jmp 0x444552
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x444559
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x444548
mov eax, 1
add ebx, ebx
jne 0x44456b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x444560
jne 0x44457c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x444560
xor ecx, ecx
sub eax, 3
jb 0x444590
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x444602
mov ebp, eax
add ebx, ebx
jne 0x44459b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x4445a8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x4445cc
inc ecx
add ebx, ebx
jne 0x4445b8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4445ad
jne 0x4445c9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4445ad
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4445ec
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4445dd
jmp 0x44454e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4445ec
add edi, ecx
jmp 0x44454e
pop esi
lea edi, [esi + 0x42000]
mov eax, dword [edi]
or eax, eax
je 0x444654
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x44000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x4408c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x444609
mov ecx, edi
jns 0x444638
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 + 0x44094]
or eax, eax
je 0x44464e
mov dword [ebx], eax
add ebx, 4
jmp 0x444626
call dword [esi + 0x44090]
mov ebp, dword [esi + 0x44098]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x207]
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 0x444688
sub esp, 0xffffff80
jmp 0x43fd4c
Function at 0x421820
Capabilities:
Check if file exists
Extract resource via kernel32 functions

Disassembly:
sub eax, esi
sar eax, 1
push eax
push edx
mov ecx, edi
call fcn.0040d580
je 0x4216e6
jne 0x4216e6
mov dword [0x111d77a4], eax
mov eax, 0x10343d04
mov bh, byte [ecx - 4]
pop ecx
pop edi
jmp 0x421622
pop esi
mov esp, ebp
invalid
pop ebp
mov eax, edi
push 0x42178b
ret
loope 0x42184f
adc bh, bh
and al, 0xb5
lodsb al, byte [esi]
sub ecx, dword [edx + 0x14c6c100]
adc byte [ebx + 0x2708dc2], cl
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4217f9
je 0x4215ac
jne 0x4215ac
mov byte [ebp - 0x69], 9
loope 0x4217e6
int3
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x442468
mov eax, dword fs:[0]
je 0x421b97
jne 0x421b97
push 0xa38568
push 0x65dc80
push 0x9b9c3c
add eax, dword [0xe90780]
les ebx, [edx]
jp 0x4217e0
jmp 0x7a5cdc54
push eax
or al, 0xb9
sbb al, 0xe1
dec ecx
add byte [eax + 0x4f], ch
sbb eax, dword [edx]
ret
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
cmp eax, ebx
push 0x421d2b
ret
sar eax, 1
je 0x421877
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x421877
push 0x14
push 0x65
je 0x421a96
jne 0x421a96
add eax, 0x618
push 0x113ce040
cmp esi, 0x35
and ch, byte [eax - 0x6f]
xchg esp, eax
push edi
push 0x42186a
ret
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], ebx
cmp edi, ebx
je 0x421877
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x421a73
sub eax, edx
je 0x421967
jne 0x421967
mov edi, 0x4308c8
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
cmp esi, ebx
je 0x42199f
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
cmp edi, ebx
je 0x421877
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
je 0x421877
jmp 0x42193a
push eax
sub esp, 0x20
push ebx
push esi
jmp 0x421d0e
push edi
mov eax, dword [0x49e19c]
xor eax, ebp
je 0x421a4e
jne 0x421a4e
inc dword [ebp - 0x254]
mov gs, word [ebp + 0x46840fbb]
sti
invalid
Function at 0x421d0e
Capabilities:
Check if file exists
Extract resource via kernel32 functions

Disassembly:
sub eax, esi
sar eax, 1
push eax
push edx
mov ecx, edi
call fcn.0040d580
je 0x4216e6
jne 0x4216e6
mov dword [0x111d77a4], eax
mov eax, 0x10343d04
mov bh, byte [ecx - 4]
pop ecx
pop edi
jmp 0x421622
pop esi
mov esp, ebp
invalid
pop ebp
mov eax, edi
push 0x42178b
ret
loope 0x42184f
adc bh, bh
and al, 0xb5
lodsb al, byte [esi]
sub ecx, dword [edx + 0x14c6c100]
adc byte [ebx + 0x2708dc2], cl
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4217f9
je 0x4215ac
jne 0x4215ac
mov byte [ebp - 0x69], 9
loope 0x4217e6
int3
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x442468
mov eax, dword fs:[0]
je 0x421b97
jne 0x421b97
push 0xa38568
push 0x65dc80
push 0x9b9c3c
add eax, dword [0xe90780]
les ebx, [edx]
jp 0x4217e0
jmp 0x7a5cdc54
push eax
or al, 0xb9
sbb al, 0xe1
dec ecx
add byte [eax + 0x4f], ch
sbb eax, dword [edx]
ret
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
cmp eax, ebx
push 0x421d2b
ret
sar eax, 1
je 0x421877
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x421877
push 0x14
push 0x65
je 0x421a96
jne 0x421a96
add eax, 0x618
push 0x113ce040
cmp esi, 0x35
and ch, byte [eax - 0x6f]
xchg esp, eax
push edi
push 0x42186a
ret
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], ebx
cmp edi, ebx
je 0x421877
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x421a73
sub eax, edx
je 0x421967
jne 0x421967
mov edi, 0x4308c8
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
cmp esi, ebx
je 0x42199f
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
cmp edi, ebx
je 0x421877
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
je 0x421877
jmp 0x42193a
push eax
sub esp, 0x20
push ebx
push esi
jmp 0x421d0e
push edi
mov eax, dword [0x49e19c]
xor eax, ebp
je 0x421a4e
jne 0x421a4e
inc dword [ebp - 0x254]
mov gs, word [ebp + 0x46840fbb]
sti
invalid
Function at 0x436151
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x49e19c]
jne 0x43615b
repz ret
jmp fcn.0043992f

Function at 0x43efa9
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x49e19c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00438fd7
and dword [ebp - 0x14], 0
cmp dword [0x49ff04], 0
mov dword [ebp - 0x18], eax
jne 0x43f05c
push 0x402af0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x43f104
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x402ae4
push ebx
call edi
test eax, eax
je 0x43f104
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x402ad4
push ebx
mov dword [0x49ff04], eax
call edi
push eax
call esi
push 0x402ac0
push ebx
mov dword [0x49ff08], eax
call edi
push eax
call esi
push 0x402aa4
push ebx
mov dword [0x49ff0c], eax
call edi
push eax
call esi
mov dword [0x49ff14], eax
test eax, eax
je 0x43f05c
push 0x402a8c
push ebx
call edi
push eax
call esi
mov dword [0x49ff10], eax
mov eax, dword [0x49ff10]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x43f0b5
cmp dword [0x49ff14], ecx
je 0x43f0b5
push eax
call esi
push dword [0x49ff14]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x43f0b5
test ebx, ebx
je 0x43f0b5
call edi
test eax, eax
je 0x43f0ac
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x43f0ac
test byte [ebp - 8], 1
jne 0x43f0b5
or dword [ebp + 0x10], 0x200000
jmp 0x43f0e8
mov eax, dword [0x49ff08]
cmp eax, dword [ebp - 0x18]
je 0x43f0e8
push eax
call esi
test eax, eax
je 0x43f0e8
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x43f0e8
mov eax, dword [0x49ff0c]
cmp eax, dword [ebp - 0x18]
je 0x43f0e8
push eax
call esi
test eax, eax
je 0x43f0e8
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x49ff04]
call esi
test eax, eax
je 0x43f104
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x43f106
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00436151
leave
ret
Function at 0x43b2ce
Capabilities:
Parse pe header

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

Function at 0x43c5bb
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 0x43c5dc
jl 0x43c5d3
test edi, edi
jne 0x43c5dc
xor eax, eax
xor edx, edx
jmp 0x43c69d
cmp dword [ebx + 0x38], 0
je 0x43c5f1
push eax
push edi
push dword [ebp + 8]
call fcn.0043c6a3
jmp 0x43c69d
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x43c638
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x43c638
cmp eax, edi
jb 0x43c612
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.0043d600
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 0x43c63e
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x43c692
mov ecx, ebx
call fcn.0043be15
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x43c67d
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.004466bf
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 0x43c692
jmp 0x43c650
test edx, edx
je 0x43c692
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.004466bf
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 0x44929c
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4a92d8
push 0x4a92d0
push str.FlsAlloc
push 0x1f
call fcn.00449107
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4492d0
push dword [ebp + 8]
mov ecx, esi
call dword [0x459164]
call esi
jmp 0x4492d6
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x44931a
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4a92e8
push 0x4a92e0
push str.FlsGetValue
push 0x21
call fcn.00449107
mov esi, eax
add esp, 0x10
test esi, esi
je 0x449351
push dword [ebp + 8]
mov ecx, esi
call dword [0x459164]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x449359
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4a92f0
push 0x4a92e8
push str.FlsSetValue
push 0x22
call fcn.00449107
mov esi, eax
add esp, 0x10
test esi, esi
je 0x449393
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x459164]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x44d0cd
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 0x44d16a
push ebx
push esi
call fcn.0044d096
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.0044d02a
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x44d117
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x44d169
push edi
push eax
call fcn.0044a75b
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x44d137
call fcn.0044a608
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x44d168
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0044d02a
add esp, 0x20
test eax, eax
jne 0x44d156
push edi
call fcn.0044a608
jmp 0x44d15e
push ebx
call fcn.0044a608
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 0x44fdbe
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.00449930
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 0x44fe2d
cmp esi, dword [ebp - 4]
je 0x44fe28
cmp dword [ebp + 0xc], 0
je 0x44fe28
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x44fe05
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.0044f910
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x44fe2f
xor eax, eax
inc eax
jmp 0x44fe2f
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x44fe94
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x4b02c0]
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.00449930
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.00449930
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 0x44ff0b
cmp word [ecx], dx
je 0x44ff0b
mov eax, dword [0x4a9e7c]
push edi
dec eax
push eax
push 0x4a9d68
call fcn.0044fe33
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x44ff7e
cmp word [eax], dx
je 0x44ff7e
mov eax, dword [edi]
test eax, eax
je 0x44ff2f
cmp word [eax], dx
je 0x44ff2f
lea eax, [ebp - 0x10]
push eax
call fcn.0044f816
jmp 0x44ff38
lea eax, [ebp - 0x10]
push eax
call fcn.0044f8b1
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x44ffa8
mov eax, dword [0x4a9d64]
push dword [ebp - 0x14]
dec eax
push eax
push 0x4a9a58
call fcn.0044fe33
add esp, 0xc
test al, al
je 0x44ffa8
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x44ff73
cmp word [eax], di
je 0x44ff73
lea eax, [ebp - 0x10]
push eax
call fcn.0044f816
pop ecx
jmp 0x44ffaa
lea eax, [ebp - 0x10]
push eax
call fcn.0044f8b1
jmp 0x44ff70
mov eax, dword [edi]
test eax, eax
je 0x44ff95
cmp word [eax], dx
je 0x44ff95
lea eax, [ebp - 0x10]
push eax
call fcn.0044f7cb
pop ecx
jmp 0x44ffa8
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 0x450073
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.0044fcb8
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x450073
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x450073
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x450073
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x450000
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.00449499
test ebx, ebx
je 0x45006e
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.00449499
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x450073
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 0x450073
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.00455e7a
add esp, 0x10
xor eax, eax
inc eax
jmp 0x450075
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043a770
leave
ret
Function at 0x451a25
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0043a780
mov eax, dword [0x4b02c0]
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.0044b59f
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x451a67
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x451bc3
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00457f30
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 + 0x4b1a58]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.00452a22
mov ecx, dword [esi*4 + 0x4b1a58]
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 0x451bbc
cmp eax, dword [ecx + edi + 0x24]
jne 0x451bbc
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 0x451bbc
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00452a22
add esp, 0x14
test edx, edx
jl 0x451bbc
jg 0x451b32
test eax, eax
jb 0x451bbc
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x451bbc
jl 0x451b4c
cmp dword [ebp - 0x1008], eax
ja 0x451bbc
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x451b6a
test ebx, ebx
je 0x451ba3
cmp ecx, edi
jae 0x451ba3
mov al, byte [ecx]
cmp al, 0xd
jne 0x451b84
lea eax, [edi - 1]
cmp ecx, eax
jae 0x451b90
cmp byte [ecx + 1], 0xa
jne 0x451b90
inc ecx
jmp 0x451b90
movzx eax, al
movsx eax, byte [eax + 0x4b0ab8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x451b6a
cmp edx, ebx
jne 0x451b6a
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x451bc1
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0043a770
leave
ret
Function at 0x451eba
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 + 0x4b1a58]
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 0x451efa
cmp byte [ebx], 0xa
jne 0x451efa
or byte [edi + eax + 0x28], 4
jmp 0x451eff
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 0x451ffe
mov dl, byte [eax]
cmp dl, 0x1a
je 0x451fe1
inc eax
cmp dl, 0xd
je 0x451f2b
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x451f51
cmp eax, ecx
jae 0x451f5f
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 0x451f13
jmp 0x451ffe
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 0x451fdc
cmp dword [ebp - 0x10], 0
je 0x451fdc
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x4b1a58]
test byte [eax + edi + 0x28], 0x48
je 0x451fb6
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x451fa1
mov byte [esi], dl
jmp 0x451fb2
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4b1a58]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x451ffe
cmp byte [ebp - 1], 0xa
jne 0x451fc5
cmp esi, ebx
jne 0x451fc5
mov byte [esi], 0xa
jmp 0x451ffd
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00452a40
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x451ffe
mov byte [esi], 0xd
jmp 0x451ffd
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x4b1a58]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x451ffb
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x451ffe
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret