joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4117d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push 0x4480fc
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp + 0x10]
push eax
push 0x4017d4
lea ecx, [ebp - 0x18]
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 0
lea edx, [ebp - 4]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [0x4480f8]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea eax, [ebp - 4]
push eax
push 0xe
push 0x4017d8
mov ecx, dword [0x4480f8]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea edx, [ebp - 4]
push edx
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea ecx, [ebp - 0x18]
push ecx
mov edx, dword [0x4480f8]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea eax, [ebp - 4]
push eax
push 4
push 0x4017e8
mov ecx, dword [0x4480f8]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea edx, [ebp - 4]
push edx
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [0x4480f8]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea eax, [ebp - 4]
push eax
push 2
push 0x4017f0
mov ecx, dword [0x4480f8]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0x4480fc
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esp, ebp
pop ebp
ret

Function at 0x411980
Capabilities:
Encrypt data using curve25519

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x16c
mov dword [ebp - 4], 0
jmp 0x41199b
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x20
jge 0x4119b2
mov ecx, dword [ebp + 0xc]
add ecx, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov al, byte [ecx]
mov byte [ebp + edx - 0x24], al
jmp 0x411992
mov ecx, 1
imul edx, ecx, 0
movzx eax, byte [ebp + edx - 0x24]
and eax, 0xf8
mov ecx, 1
imul edx, ecx, 0
mov byte [ebp + edx - 0x24], al
mov eax, 1
imul ecx, eax, 0x1f
movzx edx, byte [ebp + ecx - 0x24]
and edx, 0x7f
mov eax, 1
imul ecx, eax, 0x1f
mov byte [ebp + ecx - 0x24], dl
mov edx, 1
imul eax, edx, 0x1f
movzx ecx, byte [ebp + eax - 0x24]
or ecx, 0x40
mov edx, 1
imul eax, edx, 0x1f
mov byte [ebp + eax - 0x24], cl
mov ecx, dword [ebp + 0x10]
push ecx
lea edx, [ebp - 0xcc]
push edx
call fcn.00414710
add esp, 8
lea eax, [ebp - 0xcc]
push eax
lea ecx, [ebp - 0x24]
push ecx
lea edx, [ebp - 0x7c]
push edx
lea eax, [ebp - 0x16c]
push eax
call fcn.00415ac0
add esp, 0x10
lea ecx, [ebp - 0x7c]
push ecx
lea edx, [ebp - 0x11c]
push edx
call fcn.00415dd0
add esp, 8
lea eax, [ebp - 0x11c]
push eax
lea ecx, [ebp - 0x16c]
push ecx
lea edx, [ebp - 0x7c]
push edx
call fcn.00413960
add esp, 0xc
lea eax, [ebp - 0x7c]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00414cf0
add esp, 8
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x417430
Capabilities:
Enumerate network shares

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0xc], 0xffffffff
mov dword [ebp - 8], 0x4000
mov eax, dword [ebp + 0xc]
cmp eax, dword [0x4471d8]
jne 0x41745c
push 0x403cc8
call fcn.00411780
add esp, 4
lea ecx, [ebp - 0x14]
push ecx
mov edx, dword [ebp + 8]
push edx
push 0x13
push 0
push 2
call sub.MPR.dll_WNetOpenEnumW
test eax, eax
jne 0x41757c
mov eax, dword [ebp - 8]
push eax
call fcn.00425d70
add esp, 4
mov dword [ebp + 8], eax
cmp dword [ebp + 8], 0
je 0x417573
lea ecx, [ebp - 8]
push ecx
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call sub.MPR.dll_WNetEnumResourceW
test eax, eax
jne 0x417567
mov dword [ebp - 4], 0
jmp 0x4174bf
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0xc]
jae 0x417562
mov ecx, dword [ebp - 4]
shl ecx, 5
mov edx, dword [ebp + 8]
mov eax, dword [edx + ecx + 0xc]
and eax, 2
je 0x417543
mov ecx, dword [ebp - 4]
shl ecx, 5
mov edx, dword [ebp + 8]
cmp dword [edx + ecx + 8], 2
jne 0x417513
movzx eax, byte [0x44817d]
test eax, eax
je 0x417513
mov ecx, dword [ebp - 4]
shl ecx, 5
mov edx, dword [ebp + 8]
mov eax, dword [edx + ecx + 0x14]
push eax
push 0x403d00
call fcn.00411780
add esp, 8
cmp dword [ebp + 0xc], 0
jle 0x417524
mov ecx, dword [ebp + 0xc]
sub ecx, 1
mov dword [ebp - 0x10], ecx
jmp 0x41752b
mov dword [ebp - 0x10], 0
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 4]
shl eax, 5
add eax, dword [ebp + 8]
push eax
call fcn.00417430
add esp, 8
jmp 0x41755d
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 4]
shl edx, 5
mov eax, dword [ebp + 8]
mov ecx, dword [eax + edx + 0x14]
push ecx
call fcn.004170d0
add esp, 8
jmp 0x4174b6
jmp 0x417490
mov edx, dword [ebp + 8]
push edx
call fcn.00425da0
add esp, 4
mov eax, dword [ebp - 0x14]
push eax
call sub.MPR.dll_WNetCloseEnum
mov ecx, dword [ebp + 0xc]
cmp ecx, dword [0x4471d8]
jne 0x417594
push 0x403d34
call fcn.00411780
add esp, 4
mov esp, ebp
pop ebp
ret
Function at 0x4175a0
Capabilities:
Enumerate network shares

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe4
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
movzx eax, byte [0x44817d]
test eax, eax
je 0x4175da
mov ecx, dword [ebp + 8]
push ecx
push 0x403d78
call fcn.00411780
add esp, 8
lea edx, [ebp - 0x18]
push edx
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x10]
push ecx
push 0xffffffffffffffff
lea edx, [ebp - 0x14]
push edx
push 1
mov eax, dword [ebp + 8]
push eax
call sub.NETAPI32.dll_NetShareEnum
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x41760d
cmp dword [ebp - 0xc], 0xea
jne 0x417725
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 4], ecx
mov dword [ebp - 8], 1
jmp 0x417625
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0x10]
ja 0x41771c
mov ecx, dword [ebp - 4]
cmp dword [ecx + 4], 0
je 0x41764a
mov edx, dword [ebp - 4]
cmp dword [edx + 4], 0x80000000
jne 0x4176e9
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 2
jle 0x4176c9
push 0x403db8
mov edx, dword [ebp - 4]
mov eax, dword [edx]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x4176c9
push 0x403dc8
lea ecx, [ebp - 0xe4]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0xe4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x403d74
lea ecx, [ebp - 0xe4]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
mov edx, dword [ebp - 4]
mov eax, dword [edx]
push eax
lea ecx, [ebp - 0xe4]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea edx, [ebp - 0xe4]
push edx
call fcn.00417320
add esp, 4
jmp 0x4176e7
movzx eax, byte [0x44817d]
test eax, eax
je 0x4176e7
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
push edx
push 0x403dd0
call fcn.00411780
add esp, 8
jmp 0x41770e
movzx eax, byte [0x44817d]
test eax, eax
je 0x41770e
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push ecx
push 0x403e38
call fcn.00411780
add esp, 0xc
mov edx, dword [ebp - 4]
add edx, 0xc
mov dword [ebp - 4], edx
jmp 0x41761c
mov eax, dword [ebp - 0x14]
push eax
call sub.NETAPI32.dll_NetApiBufferFree
cmp dword [ebp - 0xc], 0xea
je 0x4175da
movzx ecx, byte [0x44817d]
test ecx, ecx
je 0x41774e
mov edx, dword [ebp + 8]
push edx
push 0x403eb0
call fcn.00411780
add esp, 8
mov esp, ebp
pop ebp
ret
Function at 0x417760
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
movzx eax, byte [0x44817d]
test eax, eax
je 0x417783
movzx ecx, word [ebp + 8]
push ecx
push 0x403e84
call fcn.00411780
add esp, 8
push 0xe
call fcn.00425d70
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x41785a
push 0x403f04
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x403f10
mov eax, dword [ebp - 4]
add eax, 0xa
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov ecx, 2
shl ecx, 2
mov edx, dword [ebp - 4]
mov ax, word [ebp + 8]
mov word [edx + ecx], ax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x41784e
cmp dword [ebp - 0xc], 5
je 0x41784e
cmp dword [ebp - 0xc], 4
je 0x4177fb
mov edx, dword [ebp - 4]
push edx
call fcn.00417320
add esp, 4
jmp 0x41784e
mov dword [ebp - 0x10], 0x104
mov eax, dword [ebp - 0x10]
shl eax, 1
push eax
call fcn.00425d70
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x41784e
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp - 8]
push edx
mov eax, 2
shl eax, 2
add eax, dword [ebp - 4]
push eax
call sub.MPR.dll_WNetGetConnectionW
test eax, eax
jne 0x417842
mov ecx, dword [ebp - 8]
push ecx
call fcn.00417320
add esp, 4
mov edx, dword [ebp - 8]
push edx
call fcn.00425da0
add esp, 4
mov eax, dword [ebp - 4]
push eax
call fcn.00425da0
add esp, 4
movzx ecx, byte [0x44817d]
test ecx, ecx
je 0x417877
movzx edx, word [ebp + 8]
push edx
push 0x403f14
call fcn.00411780
add esp, 8
mov esp, ebp
pop ebp
ret
Function at 0x4316da
Capabilities:
Parse pe header

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

Function at 0x436394
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4081c8
push 0x4081c0
push 0x4062d0
push 0x1f
call fcn.0043621e
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4363c8
push dword [ebp + 8]
mov ecx, esi
call dword [0x44a234]
call esi
jmp 0x4363ce
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x436412
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4081d8
push 0x4081d0
push 0x4062f4
push 0x21
call fcn.0043621e
mov esi, eax
add esp, 0x10
test esi, esi
je 0x436449
push dword [ebp + 8]
mov ecx, esi
call dword [0x44a234]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x436451
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4081e0
push 0x4081d8
push 0x406308
push 0x22
call fcn.0043621e
mov esi, eax
add esp, 0x10
test esi, esi
je 0x43648b
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x44a234]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x438f88
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x447208]
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 0x438fd3
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.00439123
test al, al
jne 0x438fcd
sub edx, 2
cmp edx, edi
jne 0x438fb3
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x438ff5
lea eax, [edi + 2]
cmp edx, eax
je 0x438ff5
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.00438ed4
add esp, 0x10
jmp 0x4390ef
push esi
lea ecx, [ebp - 0x255]
call fcn.00439123
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 0x439038
push dword [ebp - 0x25c]
jmp 0x438fe5
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 0x439075
cmp word [ebp - 0x226], 0
je 0x439096
cmp word [ebp - 0x226], ax
jne 0x439075
cmp word [ebp - 0x224], 0
je 0x439096
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.00438ed4
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x4390e2
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x43904f
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x4390ca
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x4390ef
push 0x438d04
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00442ab0
add esp, 0x10
jmp 0x4390bf
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.00426c12
leave
ret

Function at 0x439baa
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x439bbb
pop esi
ret
push ebx
push edi
push esi
call fcn.00439b73
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.004369c7
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x439be3
push ebx
push esi
push edi
call fcn.00428e10
add esp, 0xc
push 0
call fcn.00435f3f
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x439fb3
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00439bf8
Function at 0x43c35f
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.00437e06
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 0x43c3ce
cmp esi, dword [ebp - 4]
je 0x43c3c9
cmp dword [ebp + 0xc], 0
je 0x43c3c9
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x43c3a6
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.0043beb1
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x43c3d0
xor eax, eax
inc eax
jmp 0x43c3d0
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x43c435
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x447208]
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.00437e06
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.00437e06
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 0x43c4ac
cmp word [ecx], dx
je 0x43c4ac
mov eax, dword [0x408d6c]
push edi
dec eax
push eax
push 0x408c58
call fcn.0043c3d4
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x43c51f
cmp word [eax], dx
je 0x43c51f
mov eax, dword [edi]
test eax, eax
je 0x43c4d0
cmp word [eax], dx
je 0x43c4d0
lea eax, [ebp - 0x10]
push eax
call fcn.0043bdb7
jmp 0x43c4d9
lea eax, [ebp - 0x10]
push eax
call fcn.0043be52
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x43c549
mov eax, dword [0x408c54]
push dword [ebp - 0x14]
dec eax
push eax
push 0x408948
call fcn.0043c3d4
add esp, 0xc
test al, al
je 0x43c549
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x43c514
cmp word [eax], di
je 0x43c514
lea eax, [ebp - 0x10]
push eax
call fcn.0043bdb7
pop ecx
jmp 0x43c54b
lea eax, [ebp - 0x10]
push eax
call fcn.0043be52
jmp 0x43c511
mov eax, dword [edi]
test eax, eax
je 0x43c536
cmp word [eax], dx
je 0x43c536
lea eax, [ebp - 0x10]
push eax
call fcn.0043bd6c
pop ecx
jmp 0x43c549
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 0x43c614
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.0043c259
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x43c614
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x43c614
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x43c614
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x43c5a1
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.00436591
test ebx, ebx
je 0x43c60f
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.00436591
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x43c614
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 0x43c614
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.0044330a
add esp, 0x10
xor eax, eax
inc eax
jmp 0x43c616
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00426c12
leave
ret
Function at 0x43f4cd
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00426170
mov eax, dword [0x447208]
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.00437938
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x43f50f
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x43f66b
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.004260c0
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 + 0x448d38]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.0043f8f2
mov ecx, dword [esi*4 + 0x448d38]
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 0x43f664
cmp eax, dword [ecx + edi + 0x24]
jne 0x43f664
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 0x43f664
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0043f8f2
add esp, 0x14
test edx, edx
jl 0x43f664
jg 0x43f5da
test eax, eax
jb 0x43f664
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x43f664
jl 0x43f5f4
cmp dword [ebp - 0x1008], eax
ja 0x43f664
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x43f612
test ebx, ebx
je 0x43f64b
cmp ecx, edi
jae 0x43f64b
mov al, byte [ecx]
cmp al, 0xd
jne 0x43f62c
lea eax, [edi - 1]
cmp ecx, eax
jae 0x43f638
cmp byte [ecx + 1], 0xa
jne 0x43f638
inc ecx
jmp 0x43f638
movzx eax, al
movsx eax, byte [eax + 0x447b40]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x43f612
cmp edx, ebx
jne 0x43f612
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x43f669
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00426c12
leave
ret
Function at 0x4435ed
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 + 0x448d38]
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 0x44362d
cmp byte [ebx], 0xa
jne 0x44362d
or byte [edi + eax + 0x28], 4
jmp 0x443632
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 0x443731
mov dl, byte [eax]
cmp dl, 0x1a
je 0x443714
inc eax
cmp dl, 0xd
je 0x44365e
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x443684
cmp eax, ecx
jae 0x443692
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 0x443646
jmp 0x443731
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 0x44370f
cmp dword [ebp - 0x10], 0
je 0x44370f
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x448d38]
test byte [eax + edi + 0x28], 0x48
je 0x4436e9
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4436d4
mov byte [esi], dl
jmp 0x4436e5
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x448d38]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x443731
cmp byte [ebp - 1], 0xa
jne 0x4436f8
cmp esi, ebx
jne 0x4436f8
mov byte [esi], 0xa
jmp 0x443730
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0043f910
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x443731
mov byte [esi], 0xd
jmp 0x443730
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x448d38]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x44372e
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x443731
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret