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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d3e75
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x240
push esi
mov esi, ecx
mov dword [ebp - 0x1c], esi
call fcn.004caa20
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x18]
mov dword [ebp - 0x10], 0
push eax
push 0
push 0
lea eax, [ebp - 0x10]
mov dword [ebp - 0x18], 0
push eax
push 0
push 0
push 0
push dword [esi + 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x4caebf
xor esi, esi
mov dword [ebp - 0x14], 0x100
cmp dword [ebp - 0x10], esi
jbe 0x4caebf
push edi
mov edi, dword [ebp + 8]
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x24c]
push eax
mov eax, dword [ebp - 0x1c]
push esi
push dword [eax + 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x4caead
mov dword [ebp - 0x3c], eax
xorps xmm0, xmm0
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x24c]
movups xmmword [ebp - 0x4c], xmm0
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4cadb6
sub eax, edx
lea ecx, [ebp - 0x4c]
sar eax, 1
push eax
lea eax, [ebp - 0x24c]
push eax
call fcn.0044e360
xorps xmm0, xmm0
mov dword [ebp - 4], 0
movups xmmword [ebp - 0x34], xmm0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0xf
mov byte [ebp - 0x34], 0
lea eax, [ebp - 0x34]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x4c]
push eax
call fcn.004b2af0
mov eax, dword [edi + 4]
lea ecx, [ebp - 0x34]
add esp, 8
push ecx
cmp eax, dword [edi + 8]
je 0x4cae22
mov ecx, eax
call fcn.004540f0
add dword [edi + 4], 0x18
jmp 0x4cae2a
push eax
mov ecx, edi
call fcn.00453b30
mov ecx, dword [ebp - 0x20]
mov byte [ebp - 4], 0
cmp ecx, 0xf
jbe 0x4cae5e
mov edx, dword [ebp - 0x34]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4cae54
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4caed0
push ecx
push edx
call fcn.004c46ad
add esp, 8
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0xf
mov byte [ebp - 0x34], 0
mov dword [ebp - 4], 0xffffffff
cmp ecx, 7
jbe 0x4caead
mov edx, dword [ebp - 0x4c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4caea3
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4caed0
push ecx
push edx
call fcn.004c46ad
add esp, 8
inc esi
mov dword [ebp - 0x14], 0x100
cmp esi, dword [ebp - 0x10]
jb 0x4cad78
pop edi
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
call fcn.004d91aa
int3
Function at 0x4caee0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d3ea5
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x64
push esi
mov esi, ecx
call fcn.004caa20
xorps xmm0, xmm0
mov dword [ebp - 0x10], 0
xor eax, eax
mov dword [ebp - 0x1c], 0
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
push dword [ebp + 8]
call fcn.004b2950
add esp, 8
lea ecx, [ebp - 0x14]
cmp dword [ebp - 0x18], 7
lea eax, [ebp - 0x2c]
cmova eax, dword [ebp - 0x2c]
push ecx
push 0
lea ecx, [ebp - 0x10]
push ecx
push 0
push eax
push dword [esi + 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4cafa8
mov ecx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x10]
cmp ecx, 7
jbe 0x4caf95
mov edx, dword [ebp - 0x2c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4caf8b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4cafd3
push ecx
push edx
call fcn.004c46ad
add esp, 8
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
push dword [ebp + 8]
lea eax, [ebp - 0x44]
mov ecx, esi
push eax
call fcn.004ca720
push 0
push eax
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 1
call fcn.004aa350
push 0x669c1c
lea eax, [ebp - 0x70]
push eax
call fcn.004cf8ea
call fcn.004d91aa
int3
Function at 0x4cafe0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d3ed5
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x23c
push esi
mov esi, ecx
mov dword [ebp - 0x18], esi
call fcn.004caa20
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push dword [esi + 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x4cb199
xor esi, esi
mov dword [ebp - 0x14], 0x100
cmp dword [ebp - 0x10], esi
jbe 0x4cb199
push edi
mov edi, dword [ebp + 8]
nop
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x248]
push eax
mov eax, dword [ebp - 0x18]
push esi
push dword [eax + 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x4cb187
mov dword [ebp - 0x38], eax
xorps xmm0, xmm0
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x248]
movups xmmword [ebp - 0x48], xmm0
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4cb090
sub eax, edx
lea ecx, [ebp - 0x48]
sar eax, 1
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.0044e360
xorps xmm0, xmm0
mov dword [ebp - 4], 0
movups xmmword [ebp - 0x30], xmm0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0xf
mov byte [ebp - 0x30], 0
lea eax, [ebp - 0x30]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.004b2af0
mov eax, dword [edi + 4]
lea ecx, [ebp - 0x30]
add esp, 8
push ecx
cmp eax, dword [edi + 8]
je 0x4cb0fc
mov ecx, eax
call fcn.004540f0
add dword [edi + 4], 0x18
jmp 0x4cb104
push eax
mov ecx, edi
call fcn.00453b30
mov ecx, dword [ebp - 0x1c]
mov byte [ebp - 4], 0
cmp ecx, 0xf
jbe 0x4cb138
mov edx, dword [ebp - 0x30]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4cb12e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4cb1aa
push ecx
push edx
call fcn.004c46ad
add esp, 8
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0xf
mov byte [ebp - 0x30], 0
mov dword [ebp - 4], 0xffffffff
cmp ecx, 7
jbe 0x4cb187
mov edx, dword [ebp - 0x48]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4cb17d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4cb1aa
push ecx
push edx
call fcn.004c46ad
add esp, 8
inc esi
mov dword [ebp - 0x14], 0x100
cmp esi, dword [ebp - 0x10]
jb 0x4cb050
pop edi
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
call fcn.004d91aa
int3
Function at 0x4cd5f0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d421d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
push edi
push 8
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
call fcn.004c4317
mov edi, eax
add esp, 4
test edi, edi
je 0x4cd690
push 1
mov dword [ebp - 4], 0
call fcn.00490fa9
add esp, 4
mov dword [edi + 4], eax
jmp 0x4cd692
xor edi, edi
mov ecx, esi
mov dword [esi + 0x34], edi
call fcn.00478df0
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
push ecx
mov dword [ebp - 4], 1
mov dword [esi], vtable.Poco::BasicBufferedStreamBuf_char__struct_std::char_traits_char___class_Poco::BufferAllocator_char__.0
mov dword [esi + 0x38], ecx
mov dword [esi + 0x3c], eax
call fcn.004c4b2b
mov ecx, dword [ebp + 0x10]
add esp, 4
mov dword [esi + 0x40], eax
mov dword [esi + 0x44], ecx
lea ecx, [eax + 4]
mov eax, dword [esi + 0xc]
pop edi
mov dword [eax], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], 0
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0x40]
mov edx, dword [esi + 0x38]
mov dword [eax], ecx
mov eax, dword [esi + 0x20]
mov dword [eax], ecx
mov eax, dword [esi + 0x30]
mov ecx, dword [ebp - 0xc]
mov dword [eax], edx
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4edd31
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x6015d8
push 0x6015d0
push str.FlsAlloc
push 0x1f
call fcn.004edb9c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4edd65
push dword [ebp + 8]
mov ecx, esi
call dword [0x5d833c]
call esi
jmp 0x4edd6b
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4eddaf
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x6015e8
push 0x6015e0
push str.FlsGetValue
push 0x21
call fcn.004edb9c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4edde6
push dword [ebp + 8]
mov ecx, esi
call dword [0x5d833c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x4eddee
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x6015f0
push 0x6015e8
push str.FlsSetValue
push 0x22
call fcn.004edb9c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4ede28
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x5d833c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x4f0b89
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x671580]
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 0x4f0bd4
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.004f0d24
test al, al
jne 0x4f0bce
sub edx, 2
cmp edx, edi
jne 0x4f0bb4
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x4f0bf6
lea eax, [edi + 2]
cmp edx, eax
je 0x4f0bf6
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.004f0ad5
add esp, 0x10
jmp 0x4f0cf0
push esi
lea ecx, [ebp - 0x255]
call fcn.004f0d24
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 0x4f0c39
push dword [ebp - 0x25c]
jmp 0x4f0be6
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 0x4f0c76
cmp word [ebp - 0x226], 0
je 0x4f0c97
cmp word [ebp - 0x226], ax
jne 0x4f0c76
cmp word [ebp - 0x224], 0
je 0x4f0c97
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.004f0ad5
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x4f0ce3
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x4f0c50
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x4f0ccb
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x4f0cf0
push 0x4f0905
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.004f8a30
add esp, 0x10
jmp 0x4f0cc0
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.004c4309
leave
ret
Function at 0x4f1606
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 0x4f16a3
push ebx
push esi
call fcn.004f15cf
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.004ef9a2
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x4f1650
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4f16a2
push edi
push eax
call fcn.004ec3ff
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x4f1670
call fcn.004ebca2
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4f16a1
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.004ef9a2
add esp, 0x20
test eax, eax
jne 0x4f168f
push edi
call fcn.004ebca2
jmp 0x4f1697
push ebx
call fcn.004ebca2
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 0x4f16a6
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x4f16b7
pop esi
ret
push ebx
push edi
push esi
call fcn.004f15cf
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.004ec3ff
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4f16df
push ebx
push esi
push edi
call fcn.004cf210
add esp, 0xc
push 0
call fcn.004ebca2
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x4f1e39
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004f1954

Function at 0x4f46c3
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.004ec01a
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 0x4f4732
cmp esi, dword [ebp - 4]
je 0x4f472d
cmp dword [ebp + 0xc], 0
je 0x4f472d
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4f470a
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.004f4215
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x4f4734
xor eax, eax
inc eax
jmp 0x4f4734
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x4f4799
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x671580]
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.004ec01a
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.004ec01a
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 0x4f4810
cmp word [ecx], dx
je 0x4f4810
mov eax, dword [0x601af4]
push edi
dec eax
push eax
push 0x6019e0
call fcn.004f4738
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x4f4883
cmp word [eax], dx
je 0x4f4883
mov eax, dword [edi]
test eax, eax
je 0x4f4834
cmp word [eax], dx
je 0x4f4834
lea eax, [ebp - 0x10]
push eax
call fcn.004f411b
jmp 0x4f483d
lea eax, [ebp - 0x10]
push eax
call fcn.004f41b6
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x4f48ad
mov eax, dword [0x6019dc]
push dword [ebp - 0x14]
dec eax
push eax
push 0x6016d0
call fcn.004f4738
add esp, 0xc
test al, al
je 0x4f48ad
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x4f4878
cmp word [eax], di
je 0x4f4878
lea eax, [ebp - 0x10]
push eax
call fcn.004f411b
pop ecx
jmp 0x4f48af
lea eax, [ebp - 0x10]
push eax
call fcn.004f41b6
jmp 0x4f4875
mov eax, dword [edi]
test eax, eax
je 0x4f489a
cmp word [eax], dx
je 0x4f489a
lea eax, [ebp - 0x10]
push eax
call fcn.004f40d0
pop ecx
jmp 0x4f48ad
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 0x4f4978
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.004f45bd
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x4f4978
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x4f4978
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x4f4978
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x4f4905
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.004edfca
test ebx, ebx
je 0x4f4973
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.004edfca
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4f4978
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 0x4f4978
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.004f9f75
add esp, 0x10
xor eax, eax
inc eax
jmp 0x4f497a
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004c4309
leave
ret
Function at 0x4f80a9
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 + 0x679a80]
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 0x4f80e9
cmp byte [ebx], 0xa
jne 0x4f80e9
or byte [edi + eax + 0x28], 4
jmp 0x4f80ee
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 0x4f81ed
mov dl, byte [eax]
cmp dl, 0x1a
je 0x4f81d0
inc eax
cmp dl, 0xd
je 0x4f811a
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x4f8140
cmp eax, ecx
jae 0x4f814e
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 0x4f8102
jmp 0x4f81ed
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 0x4f81cb
cmp dword [ebp - 0x10], 0
je 0x4f81cb
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x679a80]
test byte [eax + edi + 0x28], 0x48
je 0x4f81a5
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4f8190
mov byte [esi], dl
jmp 0x4f81a1
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x679a80]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4f81ed
cmp byte [ebp - 1], 0xa
jne 0x4f81b4
cmp esi, ebx
jne 0x4f81b4
mov byte [esi], 0xa
jmp 0x4f81ec
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004fb13d
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4f81ed
mov byte [esi], 0xd
jmp 0x4f81ec
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x679a80]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4f81ea
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4f81ed
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4f81f6
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 + 0x679a80]
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 0x4f823c
cmp word [ebx], dx
jne 0x4f823c
or byte [eax + edi + 0x28], 4
jmp 0x4f8241
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 0x4f83a4
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 0x4f8384
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x4f8282
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4f82b8
cmp eax, edx
jae 0x4f82c6
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 0x4f825d
jmp 0x4f83a4
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 0x4f837f
cmp dword [ebp - 0x18], 0
je 0x4f837f
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x679a80]
test byte [eax + edi + 0x28], 0x48
je 0x4f8355
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 0x4f8319
mov word [esi], cx
jmp 0x4f8350
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x679a80]
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 + 0x679a80]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x679a80]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x4f83a4
pop eax
cmp word [ebp - 4], ax
jne 0x4f8365
cmp esi, ebx
jne 0x4f8365
mov word [esi], ax
jmp 0x4f83a1
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004fb13d
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x4f83a4
push 0xd
pop eax
jmp 0x4f8360
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x679a80]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x4f839e
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x4f83a4
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret