joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000b1c8
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push esi
and esp, 0xfffffff8
sub esp, 0x90
lea eax, [esp + 0x20]
lea ecx, [esp + 0x30]
mov dword [esp], eax
mov dword [esp + 0x1c], ecx
call fcn.1000c2f0
lea ecx, [0x1000b2e2]
mov edx, dword [esp + 0x20]
mov dword [esp + 0x7c], edx
mov dword [esp + 0x4c], 0x125000
mov dword [0x10043e14], 0x882
mov edx, dword [0x10043e00]
mov dword [esp + 0x34], edx
mov edx, dword [0x10043e04]
mov dword [esp + 0x44], edx
mov edx, dword [0x10043e08]
mov dword [esp + 0x5c], edx
mov edx, dword [0x10043e0c]
mov dword [esp + 0x60], edx
mov edx, dword [0x10043e10]
mov dword [esp + 0x38], edx
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], ecx
jmp 0x1000b26b
mov eax, dword [esp + 0x10]
add eax, 0x3c
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
mov edx, dword [esp + 0x10]
cmp dword [edx + ecx], 0x4550
mov dword [esp + 8], ecx
je 0x1000b298
jmp 0x1000b27a
mov eax, dword [esp + 0x14]
cmp word [eax], 0x5a4d
mov dword [esp + 0x10], eax
je 0x1000b245
mov dword [0x10043e14], 0x1759
mov eax, dword [esp + 0x10]
add eax, 0xfffff000
and eax, 0xfffff000
mov dword [esp + 0x14], eax
jmp 0x1000b26b
lea eax, [esp + 0x30]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x50], ecx
mov edx, dword [esp + 8]
mov esi, dword [ecx + edx + 0x50]
mov dword [esp + 0x6c], esi
mov esi, dword [esp + 0x28]
mov dword [esp], eax
mov dword [esp + 4], esi
call fcn.1000c18c
mov ecx, esp
lea edx, [esp + 0x30]
mov dword [ecx], edx
call eax
sub esp, 4
mov eax, 2
mov dword [0x10043e14], 0x26d9
lea esp, [ebp - 4]
pop esi
pop ebp
ret
Function at 0x1000b8f6
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
mov dword [0x10043e20], 0
mov byte [0x10043e24], 0
mov dword [0x10043e14], 0x1df0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
xor eax, eax
mov dword [0x10043e1c], 0
mov dword [ebp - 0x1c], eax
jmp 0x1000b965
mov eax, dword [0x10043e14]
add eax, 0x166c
mov dword [0x10043e14], eax
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [0x10043e1c], 0
xor eax, eax
mov dword [ebp - 0x20], eax
jmp 0x1000b98d
mov eax, dword [ebp - 0x1c]
mov ecx, eax
mov dl, cl
mov ecx, dword [ebp - 0x18]
mov byte [ecx + eax], dl
mov eax, dword [0x10043e1c]
add eax, 1
mov dword [0x10043e1c], eax
cmp eax, 0x100
mov dword [ebp - 0x1c], eax
jl 0x1000b965
jmp 0x1000b954
mov eax, dword [ebp - 0x20]
mov ecx, 0x100
mov edx, dword [0x10043e20]
mov esi, dword [ebp - 0x18]
movzx edi, byte [esi + eax]
add edi, edx
mov dword [ebp - 0x24], eax
xor edx, edx
mov ebx, dword [ebp - 0x10]
div ebx
mov esi, dword [ebp - 0x14]
movzx edx, byte [esi + edx]
add edi, edx
mov eax, edi
cdq
idiv ecx
mov dword [0x10043e20], edx
mov ecx, dword [ebp - 0x18]
mov edi, dword [ebp - 0x24]
mov cl, byte [ecx + edi]
mov byte [0x10043e24], cl
mov ecx, dword [ebp - 0x18]
mov cl, byte [ecx + edx]
mov edx, dword [ebp - 0x18]
mov byte [edx + edi], cl
mov cl, byte [0x10043e24]
mov edx, dword [0x10043e20]
mov esi, dword [ebp - 0x18]
mov byte [esi + edx], cl
mov edx, dword [0x10043e1c]
add edx, 1
mov dword [0x10043e1c], edx
cmp edx, 0x100
mov dword [ebp - 0x20], edx
jl 0x1000b98d
jmp 0x1000b93d
Function at 0x1000ba1e
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x30
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
cmp eax, 0
sete bl
mov dword [0x10043e1c], 0
mov dword [0x10043e20], 0
mov dword [0x10043e28], 0
mov dword [0x10043e18], 0xf3e
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
mov byte [ebp - 0x1d], bl
xor eax, eax
mov cl, byte [ebp - 0x1d]
test cl, 1
mov edx, eax
mov esi, eax
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x2c], eax
jne 0x1000baa4
jmp 0x1000baac
mov eax, dword [0x10043e1c]
mov ecx, dword [0x10043e20]
mov edx, dword [ebp - 0x30]
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x2c], edx
jmp 0x1000baac
add esp, 0x30
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x28]
mov esi, 0x100
add ecx, 1
mov dword [ebp - 0x34], eax
mov eax, ecx
mov dword [ebp - 0x38], edx
cdq
idiv esi
mov dword [0x10043e1c], edx
mov ecx, dword [ebp - 0x1c]
movzx edi, byte [ecx + edx]
mov ebx, dword [ebp - 0x38]
add edi, ebx
mov eax, edi
mov dword [ebp - 0x3c], edx
cdq
idiv esi
mov dword [0x10043e20], edx
mov dword [0x10043e14], 0x24e2
mov esi, dword [ebp - 0x3c]
mov cl, byte [ecx + esi]
mov byte [0x10043e24], cl
mov edi, dword [ebp - 0x1c]
mov cl, byte [edi + edx]
mov byte [edi + esi], cl
mov cl, byte [0x10043e24]
mov edx, dword [0x10043e20]
mov byte [edi + edx], cl
mov dword [0x10043e14], 0xb03
mov edx, dword [0x10043e1c]
movzx edx, byte [edi + edx]
mov ebx, dword [0x10043e20]
movzx ebx, byte [edi + ebx]
add ebx, edx
and ebx, 0xff
mov dword [0x10043e28], ebx
mov dword [0x10043e14], 0x8a0
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x34]
mov cl, byte [edx + ecx]
xor cl, byte [edi + ebx]
mov ebx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x34]
mov byte [ebx + edx], cl
add edx, 1
mov ecx, dword [ebp - 0x10]
cmp edx, ecx
mov dword [ebp - 0x30], edx
je 0x1000baa4
jmp 0x1000ba8b
Function at 0x1000bcc4
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x48
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
call fcn.1000bb7d
xor ecx, ecx
mov edx, eax
mov esi, dword [eax + 0x3c]
mov edi, edx
add edi, esi
mov esi, dword [eax + esi]
cmp esi, 0x4550
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], edi
je 0x1000bd00
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov dword [0x10043e18], 0x13cf
mov eax, dword [eax + 0x78]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x14]
add ecx, dword [edx + eax + 0x20]
mov esi, dword [edx + eax + 0x18]
cmp esi, 0
mov edi, dword [ebp - 0x18]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x30], edi
je 0x1000be18
jmp 0x1000bd66
mov eax, dword [ebp - 0x34]
mov ecx, eax
mov edx, dword [ebp - 0x38]
add ecx, edx
mov esi, dword [ebp - 0x1c]
mov bl, byte [esi + ecx]
mov ecx, dword [ebp - 0x10]
mov bh, byte [ecx + eax]
cmp bl, bh
sete cl
cmp bl, 0
mov dword [ebp - 0x3c], eax
mov byte [ebp - 0x3d], bh
mov byte [ebp - 0x3e], cl
je 0x1000bdc6
jmp 0x1000bd9a
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x24]
add eax, dword [eax + ecx + 0x24]
mov dword [ebp - 0x44], eax
xor eax, eax
mov ecx, dword [ebp - 0x44]
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x48]
xor edx, edx
mov esi, dword [ebp - 0x28]
mov edi, dword [esi + eax*4]
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x54], ecx
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x34], edx
jmp 0x1000bd3b
mov eax, dword [ebp - 0x3c]
add eax, 1
mov cl, byte [ebp - 0x3d]
cmp cl, 0
setne dl
mov ch, byte [ebp - 0x3e]
and ch, dl
cmp eax, 0x20
setb dl
and ch, dl
test ch, 1
mov dword [ebp - 0x34], eax
jne 0x1000bd3b
mov al, byte [ebp - 0x3e]
test al, 1
jne 0x1000bdf5
jmp 0x1000bdcf
xor eax, eax
mov ecx, dword [ebp - 0x54]
add ecx, 2
mov edx, dword [ebp - 0x50]
add edx, 1
mov esi, dword [ebp - 0x2c]
cmp edx, esi
mov dword [ebp - 0x4c], edx
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x30], eax
jb 0x1000bd7e
jmp 0x1000be18
mov eax, dword [ebp - 0x54]
movzx ecx, word [eax]
mov dword [0x10043e18], 0xa93
mov edx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x24]
add edx, dword [edx + esi + 0x1c]
mov edi, dword [ebp - 0x1c]
add edi, dword [edx + ecx*4]
mov dword [ebp - 0x30], edi
mov eax, dword [ebp - 0x30]
add esp, 0x48
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x1000c18c
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
xor edx, edx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x2c], edx
jmp 0x1000c1f4
mov eax, dword [ebp - 0x30]
add esp, 0x50
pop ebp
ret
lea eax, [ebp - 0x20]
mov dword [0x10043e14], 0xe5c
mov dword [ebp - 0x34], eax
call fcn.1000bf53
mov dword [esp], eax
mov eax, dword [ebp - 0x34]
mov dword [esp + 4], eax
call fcn.1000c02d
xor ecx, ecx
mov edx, dword [0x10043e14]
add edx, 0xffffef22
mov dword [0x10043e14], edx
cmp eax, 0
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x30], ecx
je 0x1000c1a5
jmp 0x1000c21c
mov eax, dword [ebp - 0x2c]
mov cl, byte [eax + 0x1000d4de]
mov dl, byte [eax + 0x1000d4af]
sub dl, cl
mov byte [ebp + eax - 0x20], dl
add eax, 1
cmp eax, 0xe
mov dword [ebp - 0x2c], eax
je 0x1000c1ad
jmp 0x1000c1f4
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x3c], eax
mov dword [0x10043e14], 0xe80
mov eax, esp
mov dword [eax + 0xc], 0x40
mov dword [eax + 8], 0x1000
mov dword [eax + 4], 0x6000
mov dword [eax], 0
mov eax, dword [ebp - 0x3c]
call eax
sub esp, 0x10
mov dword [esp], eax
mov ecx, dword [ebp - 0x24]
mov dword [esp + 4], ecx
mov dword [ebp - 0x40], eax
call fcn.1000b603
xor eax, eax
mov ecx, dword [ebp - 0x40]
mov word [ecx], 0x5a4d
mov dword [ecx + 0x3c], 0xd0
mov dword [ecx + 0xd0], 0x4550
add ecx, 0xffc00000
mov edx, dword [ebp - 0x28]
mov dword [edx + 0x34], ecx
mov dword [0x10043e14], 0x162c
mov ecx, dword [ebp - 0x40]
mov dword [edx + 0x18], ecx
cmp ecx, 0
mov dword [ebp - 0x30], eax
je 0x1000c1a5
mov dword [0x10043e14], 0x1bc7
mov eax, dword [ebp - 0x40]
add eax, 0x2355
mov dword [ebp - 0x30], eax
jmp 0x1000c1a5
Function at 0x43c83f
Capabilities:
Parse pe header

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

Function at 0x43db4e
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 0x43db6f
jl 0x43db66
test edi, edi
jne 0x43db6f
xor eax, eax
xor edx, edx
jmp 0x43dc30
cmp dword [ebx + 0x38], 0
je 0x43db84
push eax
push edi
push dword [ebp + 8]
call fcn.0043dc36
jmp 0x43dc30
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x43dbcb
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x43dbcb
cmp eax, edi
jb 0x43dba5
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.0043eb90
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 0x43dbd1
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x43dc25
mov ecx, ebx
call fcn.0043d3a8
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x43dc10
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.00447c50
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 0x43dc25
jmp 0x43dbe3
test edx, edx
je 0x43dc25
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.00447c50
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 0x44a82c
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4aa2e8
push 0x4aa2e0
push str.FlsAlloc
push 0x1f
call fcn.0044a697
mov esi, eax
add esp, 0x10
test esi, esi
je 0x44a860
push dword [ebp + 8]
mov ecx, esi
call dword [0x45a164]
call esi
jmp 0x44a866
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x44a8aa
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4aa2f8
push 0x4aa2f0
push str.FlsGetValue
push 0x21
call fcn.0044a697
mov esi, eax
add esp, 0x10
test esi, esi
je 0x44a8e1
push dword [ebp + 8]
mov ecx, esi
call dword [0x45a164]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x44a8e9
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4aa300
push 0x4aa2f8
push str.FlsSetValue
push 0x22
call fcn.0044a697
mov esi, eax
add esp, 0x10
test esi, esi
je 0x44a923
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x45a164]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x44e65d
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 0x44e6fa
push ebx
push esi
call fcn.0044e626
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.0044e5ba
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x44e6a7
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x44e6f9
push edi
push eax
call fcn.0044c277
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x44e6c7
call fcn.0044c124
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x44e6f8
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0044e5ba
add esp, 0x20
test eax, eax
jne 0x44e6e6
push edi
call fcn.0044c124
jmp 0x44e6ee
push ebx
call fcn.0044c124
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 0x45134e
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.0044aec0
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 0x4513bd
cmp esi, dword [ebp - 4]
je 0x4513b8
cmp dword [ebp + 0xc], 0
je 0x4513b8
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x451395
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.00450ea0
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x4513bf
xor eax, eax
inc eax
jmp 0x4513bf
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x451424
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x4b12c0]
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.0044aec0
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.0044aec0
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 0x45149b
cmp word [ecx], dx
je 0x45149b
mov eax, dword [0x4aae8c]
push edi
dec eax
push eax
push 0x4aad78
call fcn.004513c3
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x45150e
cmp word [eax], dx
je 0x45150e
mov eax, dword [edi]
test eax, eax
je 0x4514bf
cmp word [eax], dx
je 0x4514bf
lea eax, [ebp - 0x10]
push eax
call fcn.00450da6
jmp 0x4514c8
lea eax, [ebp - 0x10]
push eax
call fcn.00450e41
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x451538
mov eax, dword [0x4aad74]
push dword [ebp - 0x14]
dec eax
push eax
push 0x4aaa68
call fcn.004513c3
add esp, 0xc
test al, al
je 0x451538
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x451503
cmp word [eax], di
je 0x451503
lea eax, [ebp - 0x10]
push eax
call fcn.00450da6
pop ecx
jmp 0x45153a
lea eax, [ebp - 0x10]
push eax
call fcn.00450e41
jmp 0x451500
mov eax, dword [edi]
test eax, eax
je 0x451525
cmp word [eax], dx
je 0x451525
lea eax, [ebp - 0x10]
push eax
call fcn.00450d5b
pop ecx
jmp 0x451538
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 0x451603
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.00451248
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x451603
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x451603
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x451603
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x451590
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.0044aa29
test ebx, ebx
je 0x4515fe
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.0044aa29
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x451603
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 0x451603
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.0045740a
add esp, 0x10
xor eax, eax
inc eax
jmp 0x451605
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043bce0
leave
ret
Function at 0x452fb5
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0043bcf0
mov eax, dword [0x4b12c0]
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.0044d0bb
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x452ff7
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x453153
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.004594c0
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 + 0x4b2a58]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.00453fb2
mov ecx, dword [esi*4 + 0x4b2a58]
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 0x45314c
cmp eax, dword [ecx + edi + 0x24]
jne 0x45314c
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 0x45314c
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00453fb2
add esp, 0x14
test edx, edx
jl 0x45314c
jg 0x4530c2
test eax, eax
jb 0x45314c
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x45314c
jl 0x4530dc
cmp dword [ebp - 0x1008], eax
ja 0x45314c
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x4530fa
test ebx, ebx
je 0x453133
cmp ecx, edi
jae 0x453133
mov al, byte [ecx]
cmp al, 0xd
jne 0x453114
lea eax, [edi - 1]
cmp ecx, eax
jae 0x453120
cmp byte [ecx + 1], 0xa
jne 0x453120
inc ecx
jmp 0x453120
movzx eax, al
movsx eax, byte [eax + 0x4b1ab8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x4530fa
cmp edx, ebx
jne 0x4530fa
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x453151
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0043bce0
leave
ret
Function at 0x45344a
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 + 0x4b2a58]
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 0x45348a
cmp byte [ebx], 0xa
jne 0x45348a
or byte [edi + eax + 0x28], 4
jmp 0x45348f
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 0x45358e
mov dl, byte [eax]
cmp dl, 0x1a
je 0x453571
inc eax
cmp dl, 0xd
je 0x4534bb
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x4534e1
cmp eax, ecx
jae 0x4534ef
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 0x4534a3
jmp 0x45358e
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 0x45356c
cmp dword [ebp - 0x10], 0
je 0x45356c
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x4b2a58]
test byte [eax + edi + 0x28], 0x48
je 0x453546
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x453531
mov byte [esi], dl
jmp 0x453542
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4b2a58]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x45358e
cmp byte [ebp - 1], 0xa
jne 0x453555
cmp esi, ebx
jne 0x453555
mov byte [esi], 0xa
jmp 0x45358d
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00453fd0
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x45358e
mov byte [esi], 0xd
jmp 0x45358d
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x4b2a58]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x45358b
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x45358e
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret