joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4d4aa0
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c4e78
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x67ff88]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, dword [ebp + 8]
push esi
lea eax, [ebp - 0x20]
push fcn.004d4250
push eax
call fcn.004d4a70
add esp, 0xc
mov ecx, dword [0x67815c]
push esi
or edi, 0xffffffff
mov dword [ebp - 4], 0
push ecx
mov dword [ebp - 0x14], edi
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x4d4b3c
call fcn.004d8e80
test eax, eax
je 0x4d4b1e
mov edx, dword [eax]
push 0
mov ecx, eax
mov eax, dword [edx + 8]
push str.Can_not_start_thread:_error_writing_TLS.
call eax
jmp 0x4d4b23
mov eax, str.Can_not_start_thread:_error_writing_TLS.
push eax
call fcn.004e6fa0
add esp, 4
lea ecx, [ebp - 0x20]
push ecx
mov dword [ebp - 4], edi
call fcn.004d4760
mov eax, edi
jmp 0x4d4b70
mov edx, dword [esi]
mov eax, dword [edx + 0xc]
mov ecx, esi
call eax
mov esi, eax
jmp 0x4d4b62
lea ecx, [ebp - 0x20]
push ecx
mov dword [ebp - 4], edi
call fcn.004d4760
mov eax, esi
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4d4c90
Capabilities:
Create thread

Disassembly:
mov edx, dword [esp + 8]
push esi
mov esi, ecx
mov ecx, dword [esp + 8]
lea eax, [esi + 0x10]
push eax
push 4
push ecx
push 0x4d4b90
push edx
push 0
call fcn.0057b419
add esp, 0x18
mov dword [esi + 4], eax
test eax, eax
jne 0x4d4cf5
call fcn.004d8e80
test eax, eax
je 0x4d4ce1
mov edx, dword [eax]
push 0
mov ecx, eax
mov eax, dword [edx + 8]
push str.Cant_create_thread
call eax
push eax
call fcn.004e6fa0
add esp, 4
xor al, al
pop esi
ret 8
mov eax, str.Cant_create_thread
push eax
call fcn.004e6fa0
add esp, 4
xor al, al
pop esi
ret 8
mov eax, dword [esi + 0xc]
cmp eax, 0x32
je 0x4d4d05
push eax
mov ecx, esi
call fcn.004d42b0
mov al, 1
pop esi
ret 8

Function at 0x4d7930
Capabilities:
Check os version

Disassembly:
sub esp, 0x120
mov eax, dword [0x67ff88]
xor eax, esp
mov dword [esp + 0x11c], eax
mov eax, dword [0x6784e0]
cmp eax, 0xffffffff
jne 0x4d79a2
push 0x11c
lea eax, [esp + 4]
push 0
push eax
call fcn.00576e90
add esp, 0xc
lea ecx, [esp]
push ecx
mov dword [esp + 4], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [esp + 4]
cmp eax, 5
ja 0x4d7998
jne 0x4d7994
mov eax, dword [esp + 8]
test eax, eax
ja 0x4d7998
jne 0x4d7994
cmp word [esp + 0x114], 4
jae 0x4d7998
xor eax, eax
jmp 0x4d799d
mov eax, 1
mov dword [0x6784e0], eax
mov ecx, dword [esp + 0x11c]
xor edx, edx
cmp eax, 1
sete dl
xor ecx, esp
mov al, dl
call fcn.0057ac48
add esp, 0x120
ret
Function at 0x4dd430
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x5c5ef9
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x67ff88]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov dword [esp + 8], 0
mov esi, dword [esp + 0x1c]
mov eax, dword [section..data]
mov dword [esi], eax
push str.TMPDIR
mov dword [esp + 0x18], 0
mov dword [esp + 0xc], 1
call fcn.0057c5a6
add esp, 4
push eax
mov ecx, esi
call fcn.004cf4e0
mov ecx, dword [esi]
cmp dword [ecx - 8], 0
jne 0x4dd4c4
push 0x5f38f8
call fcn.0057c5a6
add esp, 4
push eax
mov ecx, esi
call fcn.004cf4e0
mov edx, dword [esi]
cmp dword [edx - 8], 0
jne 0x4dd4c4
push str.TEMP
call fcn.0057c5a6
add esp, 4
push eax
mov ecx, esi
call fcn.004cf4e0
mov eax, dword [esi]
cmp dword [eax - 8], 0
jne 0x4dd4fc
push 0x105
mov ecx, esi
call fcn.004ceec0
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov ecx, esi
call fcn.004cf530
mov ecx, dword [esi]
cmp dword [ecx - 8], 0
jne 0x4dd4fc
push 0x2e
mov ecx, esi
call fcn.004cf4c0
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret

Function at 0x4dee50
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5c5740
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x67ff88]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov eax, dword [section..data]
mov dword [esp + 0xc], eax
mov edi, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
mov esi, dword [esp + 0x24]
push edi
push 0
push ecx
mov ecx, dword [esp + 0x2c]
push edx
push esi
lea eax, [esp + 0x20]
push eax
push ecx
mov dword [esp + 0x34], 0
call fcn.004dda10
add esp, 0x1c
test esi, esi
je 0x4deef1
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x28]
push eax
mov edx, edi
call fcn.004ddd50
add esp, 8
push eax
mov ecx, esi
mov byte [esp + 0x1c], 1
call fcn.004d1a90
mov ecx, dword [esp + 0x24]
mov eax, dword [ecx - 0xc]
add ecx, 0xfffffff4
mov byte [esp + 0x18], 0
cmp eax, 0xffffffff
je 0x4deef1
add eax, 0xffffffff
mov dword [ecx], eax
jne 0x4deef1
call fcn.004ce2e0
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx - 0xc]
add ecx, 0xfffffff4
mov dword [esp + 0x18], 0xffffffff
cmp eax, 0xffffffff
je 0x4def14
add eax, 0xffffffff
mov dword [ecx], eax
jne 0x4def14
call fcn.004ce2e0
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret
Function at 0x4def30
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5c5768
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x67ff88]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [esp + 0x30]
mov edx, dword [esp + 0x20]
push edi
mov eax, edx
call fcn.004dcdb0
add esp, 4
test al, al
je 0x4defcd
mov eax, dword [section..data]
mov ecx, dword [0x5f09fc]
mov dword [esp + 0x30], eax
mov eax, dword [edx]
mov edx, dword [eax - 8]
dec edx
cmp edx, ecx
jae 0x4def86
mov ecx, edx
push ecx
push 1
push eax
lea ecx, [esp + 0x3c]
call fcn.004cf3b0
push edi
lea ecx, [esp + 0x34]
push ecx
mov ecx, esi
mov dword [esp + 0x1c], 0
call fcn.004dde70
mov ecx, dword [esp + 0x30]
mov eax, dword [ecx - 0xc]
add ecx, 0xfffffff4
mov dword [esp + 0x14], 0xffffffff
cmp eax, 0xffffffff
je 0x4defd6
add eax, 0xffffffff
mov dword [ecx], eax
jne 0x4defd6
call fcn.004ce2e0
jmp 0x4defd6
push edi
push edx
mov ecx, esi
call fcn.004dde70
mov edx, dword [esp + 0x1c]
push edx
mov ecx, esi
call fcn.004cecf0
mov eax, dword [esp + 0x28]
push eax
lea ecx, [esi + 0x18]
call fcn.004cecf0
mov ecx, dword [esp + 0x24]
push ecx
lea ecx, [esi + 0x14]
call fcn.004cecf0
mov dl, byte [esp + 0x2c]
mov byte [esi + 0x1d], dl
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 0x18
Function at 0x4df020
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5c57b0
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
push edi
mov eax, dword [0x67ff88]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [section..data]
mov dword [esp + 0x18], eax
mov dword [esp + 0x24], 0
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], eax
mov edi, dword [esp + 0x30]
push edi
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x1c]
push edx
mov edx, dword [esp + 0x3c]
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x2c]
push ecx
push edx
mov byte [esp + 0x40], 3
call fcn.004dda10
mov eax, dword [esp + 0x4c]
add esp, 0x1c
push edi
push eax
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x2c]
push ecx
mov ecx, esi
call fcn.004def30
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx - 0xc]
add ecx, 0xfffffff4
mov byte [esp + 0x24], 2
cmp eax, 0xffffffff
je 0x4df0d5
add eax, 0xffffffff
mov dword [ecx], eax
jne 0x4df0d5
call fcn.004ce2e0
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx - 0xc]
add ecx, 0xfffffff4
mov byte [esp + 0x24], 1
cmp eax, 0xffffffff
je 0x4df0f5
add eax, 0xffffffff
mov dword [ecx], eax
jne 0x4df0f5
call fcn.004ce2e0
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx - 0xc]
add ecx, 0xfffffff4
mov byte [esp + 0x24], 0
cmp eax, 0xffffffff
je 0x4df115
add eax, 0xffffffff
mov dword [ecx], eax
jne 0x4df115
call fcn.004ce2e0
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx - 0xc]
add ecx, 0xfffffff4
mov dword [esp + 0x24], 0xffffffff
cmp eax, 0xffffffff
je 0x4df138
add eax, 0xffffffff
mov dword [ecx], eax
jne 0x4df138
call fcn.004ce2e0
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x1c
ret 8
Function at 0x4dfee0
Capabilities:
Print debug messages

Disassembly:
push 0xffffffffffffffff
push 0x5c7388
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x67ff88]
xor eax, esp
push eax
lea eax, [esp + 8]
mov dword fs:[0], eax
mov eax, dword [section..data]
mov dword [esp + 4], eax
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x20]
push ecx
push edx
lea ecx, [esp + 0xc]
mov dword [esp + 0x18], 0
call fcn.004cfe60
push 1
push 0x5f3a34
push 0x5f3a30
lea ecx, [esp + 0x10]
call fcn.004d06d0
push 1
push 0x62eeb4
push 0x5f3a2c
lea ecx, [esp + 0x10]
call fcn.004d06d0
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [esp + 4]
mov eax, dword [ecx - 0xc]
add ecx, 0xfffffff4
mov dword [esp + 0x10], 0xffffffff
cmp eax, 0xffffffff
je 0x4dff7d
add eax, 0xffffffff
mov dword [ecx], eax
jne 0x4dff7d
call fcn.004ce2e0
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop ecx
add esp, 0x10
ret
Function at 0x4e1140
Capabilities:
Get geographical location

Disassembly:
push 0xffffffffffffffff
push 0x5c5a42
mov eax, dword fs:[0]
push eax
sub esp, 0xb0
mov eax, dword [0x67ff88]
xor eax, esp
mov dword [esp + 0xac], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x67ff88]
xor eax, esp
push eax
lea eax, [esp + 0xc4]
mov dword fs:[0], eax
mov ebp, dword [esp + 0xd4]
xor edi, edi
mov dword [esp + 0x14], edi
mov eax, dword [section..data]
mov dword [esp + 0x18], ebp
mov dword [ebp], eax
push edi
push edi
mov dword [esp + 0xd4], edi
mov dword [esp + 0x1c], 1
mov esi, 0x5f3bac
call fcn.0057e370
add esp, 8
mov cl, byte [eax]
cmp cl, byte [esi]
jne 0x4e11d2
test cl, cl
je 0x4e11ce
mov cl, byte [eax + 1]
cmp cl, byte [esi + 1]
jne 0x4e11d2
add eax, 2
add esi, 2
test cl, cl
jne 0x4e11b2
xor eax, eax
jmp 0x4e11d7
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, edi
je 0x4e12f2
call dword [sym.imp.KERNEL32.dll_GetThreadLocale]
push 0x51
lea ecx, [esp + 0x20]
push ecx
push 0x1f
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4e12f2
xor esi, esi
lea ebx, [esp + 0x1c]
movzx eax, word [ebx]
cmp ax, di
jne 0x4e1211
inc esi
add ebx, 2
jmp 0x4e1203
movzx ecx, ax
add ecx, 0xffffffb3
cmp ecx, 0x2c
ja case.0x4e1223.78
movzx edx, byte [ecx + 0x4e1324]
jmp dword [edx*4 + 0x4e131c]
movzx edi, ax
mov esi, 1
jmp 0x4e12e4
test esi, esi
je 0x4e12be
movzx eax, di
cmp eax, 0x4d
je 0x4e1291
cmp eax, 0x64
je 0x4e126d
cmp eax, 0x79
jne case.default.0x4e1299
test esi, esi
jbe case.default.0x4e1299
cmp esi, 2
jbe 0x4e1266
cmp esi, 4
jne case.default.0x4e1299
push 0x5f3ba4
jmp 0x4e12b3
push 0x5f3b9c
jmp 0x4e12b3
lea eax, [esi - 1]
cmp eax, 3
ja case.default.0x4e1299
jmp dword [eax*4 + 0x4e1354]
push 0x5f3b94
jmp 0x4e12b3
push 0x5f3af4
jmp 0x4e12b3
push 0x5f3aec
jmp 0x4e12b3
lea eax, [esi - 1]
cmp eax, 3
ja case.default.0x4e1299
jmp dword [eax*4 + 0x4e1364]
push 0x5f3b8c
jmp 0x4e12b3
push 0x5f3ae4
jmp 0x4e12b3
push 0x5f3adc
mov ecx, ebp
call fcn.004d1a40
xor edi, edi
xor esi, esi
movzx eax, word [ebx]
test ax, ax
je 0x4e12f2
cmp ax, 0x25
jne 0x4e12d7
push 0x25
push 1
mov ecx, ebp
call fcn.004cf460
movzx eax, word [ebx]
push eax
push 1
mov ecx, ebp
call fcn.004cf460
cmp word [ebx], 0
je 0x4e12f2
add ebx, 2
jmp 0x4e1203
mov eax, ebp
mov ecx, dword [esp + 0xc4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xac]
xor ecx, esp
call fcn.0057ac48
add esp, 0xbc
ret
Function at 0x4e1de0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x60
push ebx
push ebp
mov ebp, dword [esp + 0x6c]
push esi
push edi
mov ebx, ecx
test ebp, ebp
jne 0x4e1e02
call fcn.004e0b60
mov ebp, eax
sub ebp, 7
neg ebp
sbb ebp, ebp
add ebp, 2
mov esi, dword [esp + 0x78]
push esi
lea eax, [esp + 0x20]
push eax
mov ecx, ebx
call fcn.004e0e70
mov ecx, dword [esp + 0x2c]
push 0
push ecx
call fcn.004e16c0
movzx eax, al
lea edx, [eax + eax*2]
mov eax, dword [esp + 0x30]
lea ecx, [eax + edx*4]
mov dx, word [ecx*2 + 0x5f3a68]
add dx, word [esp + 0x2c]
add esp, 8
movzx eax, dx
push esi
lea ecx, [esp + 0x3c]
push ecx
mov ecx, ebx
mov dword [esp + 0x7c], eax
call fcn.004e0e70
mov esi, eax
cmp word [esi + 0x18], 7
jne 0x4e1e60
mov ecx, esi
call fcn.004e0150
movzx edi, word [esi + 0x18]
xor esi, esi
push esi
lea ecx, [esp + 0x14]
call fcn.004e0480
push esi
lea ecx, [esp + 0x7c]
call fcn.004e0480
lea edx, [esp + 0x78]
push edx
lea eax, [esp + 0x3c]
push eax
mov ecx, ebx
call fcn.004e0e70
mov eax, dword [eax + 0x10]
push esi
push esi
push esi
push esi
push eax
push esi
push 1
lea ecx, [esp + 0x30]
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], esi
call fcn.004e1920
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x58]
push edx
lea ecx, [esp + 0x1c]
call fcn.004e0e70
mov esi, eax
cmp word [esi + 0x18], 7
jne 0x4e1eca
mov ecx, esi
call fcn.004e0150
movzx esi, word [esi + 0x18]
cmp ebp, 2
jne 0x4e1f09
movzx ecx, word [esp + 0x74]
sub ecx, edi
add ecx, 7
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp esi, 3
je 0x4e1efe
cmp esi, 4
jne 0x4e1ffd
pop edi
pop esi
pop ebp
inc eax
pop ebx
add esp, 0x60
ret 8
test esi, esi
jne 0x4e1f14
mov esi, 6
jmp 0x4e1f15
dec esi
test edi, edi
jne 0x4e1f20
mov edi, 6
jmp 0x4e1f21
dec edi
cmp esi, 4
jge 0x4e1f6c
movzx eax, word [esp + 0x74]
sub eax, edi
lea esi, [eax + esi + 6]
mov eax, 0x92492493
imul esi
add edx, esi
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 0x35
jne 0x4e1ffd
movzx ecx, word [esp + 0x24]
sub ecx, edi
cmp ecx, 0x1c
jle 0x4e1ffd
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x60
ret 8
cmp dword [esp + 0x28], 0
jne 0x4e1fdf
movzx eax, word [esp + 0x24]
mov edx, 8
sub edx, esi
cmp eax, edx
jge 0x4e1fdf
push 0
lea ecx, [esp + 0x7c]
call fcn.004e0480
push 0
lea ecx, [esp + 0x78]
call fcn.004e0480
lea ecx, [esp + 0x74]
push ecx
lea edx, [esp + 0x58]
push edx
mov ecx, ebx
call fcn.004e0e70
mov eax, dword [eax + 0x10]
lea ecx, [esp + 0x78]
push ecx
push 1
push 0
push 0
push 0
push 0
dec eax
push eax
push 0xb
push 0x1f
lea ecx, [esp + 0x38]
call fcn.004e1bb0
mov ecx, eax
call fcn.004e1de0
pop edi
pop esi
pop ebp
movzx eax, ax
pop ebx
add esp, 0x60
ret 8
movzx edx, word [esp + 0x74]
sub edx, edi
lea ecx, [edx + esi - 1]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x60
ret 8
Function at 0x4e4e00
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5c5d89
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
mov eax, dword [0x67ff88]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov dword [esp + 8], 0
mov eax, dword [ecx]
mov eax, dword [eax + 0x20]
lea edx, [esp + 0x10]
push edx
call eax
push 0x5c
push eax
lea ecx, [esp + 0x14]
push ecx
mov dword [esp + 0x28], 1
call fcn.004cfa70
mov edx, dword [esp + 0x34]
mov esi, dword [esp + 0x30]
push edx
push eax
push esi
mov byte [esp + 0x34], 2
call fcn.004d02d0
add esp, 0x18
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx - 0xc]
add ecx, 0xfffffff4
mov dword [esp + 8], 1
mov byte [esp + 0x1c], 1
cmp eax, 0xffffffff
je 0x4e4e8d
add eax, 0xffffffff
mov dword [ecx], eax
jne 0x4e4e8d
call fcn.004ce2e0
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx - 0xc]
add ecx, 0xfffffff4
mov byte [esp + 0x1c], 0
cmp eax, 0xffffffff
je 0x4e4ead
add eax, 0xffffffff
mov dword [ecx], eax
jne 0x4e4ead
call fcn.004ce2e0
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x18
ret 0xc

Function at 0x4e9630
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x5c6358
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x67ff88]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
mov dword [esi], vtable.wxBufferedInputStream.0
mov eax, dword [esi + 0x20]
mov edi, dword [eax + 8]
sub edi, dword [eax + 0xc]
mov ecx, dword [esi + 0x18]
mov edx, dword [ecx]
mov edx, dword [edx + 0x30]
xor eax, eax
neg edi
adc eax, eax
push 1
neg eax
push eax
push edi
mov dword [esp + 0x24], 0
call edx
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x4e9695
mov eax, dword [ecx]
mov edx, dword [eax]
push 1
call edx
mov ecx, esi
mov dword [esp + 0x18], 0xffffffff
call fcn.004e8cc0
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret

Function at 0x4eac70
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
movzx ecx, word [edx]
xor eax, eax
test cx, cx
je 0x4eac9d
mov edi, edi
movzx ecx, cx
add eax, ecx
imul eax, eax, 0x401
mov ecx, eax
shr ecx, 6
add edx, 2
xor eax, ecx
movzx ecx, word [edx]
test cx, cx
jne 0x4eac80
lea ecx, [eax + eax*8]
mov eax, ecx
shr eax, 0xb
xor eax, ecx
imul eax, eax, 0x8001
ret

Function at 0x4eae90
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esp + 8]
test ecx, ecx
je 0x4eaefa
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x4eaefa
mov edx, dword [esp + 0xc]
push edx
push ecx
push eax
call fcn.0057f884
add esp, 0xc
cmp eax, 0xffffffff
jne 0x4eaefc
call fcn.004d8e80
test eax, eax
je 0x4eaee2
mov edx, dword [eax]
push 0
mov ecx, eax
mov eax, dword [edx + 8]
push str.cant_read_from_file_descriptor__d
call eax
mov ecx, dword [esi]
push ecx
push eax
call fcn.004e6fa0
add esp, 8
or eax, 0xffffffff
pop esi
ret 8
mov ecx, dword [esi]
mov eax, str.cant_read_from_file_descriptor__d
push ecx
push eax
call fcn.004e6fa0
add esp, 8
or eax, 0xffffffff
pop esi
ret 8
xor eax, eax
pop esi
ret 8
Function at 0x4eba00
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4eba1c
test al, 0x10
jne 0x4eba1c
mov eax, 1
ret
xor eax, eax
ret

Function at 0x4ebb60
Capabilities:
Copy file

Disassembly:
xor edx, edx
cmp byte [esp + 0xc], dl
push esi
mov esi, dword [esp + 0xc]
mov eax, dword [esi]
sete dl
push edi
mov edi, dword [esp + 0xc]
mov ecx, dword [edi]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x4ebbc6
mov esi, dword [esi]
mov edi, dword [edi]
call fcn.004d8e80
test eax, eax
je 0x4ebbb1
mov edx, dword [eax]
push 0
mov ecx, eax
mov eax, dword [edx + 8]
push str.Failed_to_copy_the_file__s_to__s
call eax
push esi
push edi
push eax
call fcn.004e6fa0
add esp, 0xc
pop edi
xor al, al
pop esi
ret
push esi
mov eax, str.Failed_to_copy_the_file__s_to__s
push edi
push eax
call fcn.004e6fa0
add esp, 0xc
pop edi
xor al, al
pop esi
ret
pop edi
mov al, 1
pop esi
ret

Function at 0x4ec150
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x5c6678
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x67ff88]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x4ec180
mov eax, 0x63141c
mov ecx, dword [0x5f09fc]
push ecx
push 0
push eax
lea ecx, [esp + 0x2c]
call fcn.004cf3b0
mov esi, dword [esp + 0x20]
push esi
mov dword [esp + 0x1c], 0
call fcn.004ebcf0
add esp, 4
test al, al
je 0x4ec1ed
mov ebx, 0x3a
mov edi, dword [esi - 8]
cmp edi, 1
je 0x4ec1ed
cmp edi, 3
jne 0x4ec1d1
lea ecx, [esp + 0x20]
call fcn.004ce770
mov esi, dword [esp + 0x20]
cmp word [esi + 2], bx
je 0x4ec1ed
dec edi
push edi
lea ecx, [esp + 0x24]
call fcn.004d0910
mov esi, dword [esp + 0x20]
push esi
call fcn.004ebcf0
add esp, 4
test al, al
jne 0x4ec1b1
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4ec201
test al, 0x10
je 0x4ec201
mov bl, 1
jmp 0x4ec203
xor bl, bl
mov ecx, dword [esp + 0x20]
mov eax, dword [ecx - 0xc]
add ecx, 0xfffffff4
mov dword [esp + 0x18], 0xffffffff
cmp eax, 0xffffffff
je 0x4ec226
add eax, 0xffffffff
mov dword [ecx], eax
jne 0x4ec226
call fcn.004ce2e0
mov al, bl
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0xc
ret
Function at 0x4ec770
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5c67b9
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
mov eax, dword [0x67ff88]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov dword [esp + 0x10], 0
mov eax, dword [section..data]
mov dword [esp + 0xc], eax
mov dword [esp + 0x1c], 1
mov dword [esp + 8], eax
mov edx, dword [esp + 0x28]
push 0
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x14]
push ecx
push 0
push edx
mov byte [esp + 0x30], 2
call fcn.004dee50
mov ecx, dword [esp + 0x20]
mov eax, dword [ecx - 8]
mov esi, dword [esp + 0x38]
add esp, 0x14
test eax, eax
jne 0x4ec7e9
mov eax, dword [section..data]
mov dword [esi], eax
jmp 0x4ec7f7
mov dword [esi], ecx
mov eax, dword [ecx - 0xc]
cmp eax, 0xffffffff
je 0x4ec7f7
inc eax
mov dword [ecx - 0xc], eax
mov ecx, dword [esp + 8]
cmp dword [ecx - 8], 0
mov dword [esp + 0x10], 1
je 0x4ec825
push 0x2e
push 1
mov ecx, esi
call fcn.004cf460
mov ecx, dword [esp + 8]
mov eax, dword [ecx - 8]
push eax
push ecx
push eax
mov ecx, esi
call fcn.004cf8d0
mov ecx, dword [esp + 8]
mov eax, dword [ecx - 0xc]
add ecx, 0xfffffff4
mov byte [esp + 0x1c], 1
cmp eax, 0xffffffff
je 0x4ec845
add eax, 0xffffffff
mov dword [ecx], eax
jne 0x4ec845
call fcn.004ce2e0
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx - 0xc]
add ecx, 0xfffffff4
mov byte [esp + 0x1c], 0
cmp eax, 0xffffffff
je 0x4ec865
add eax, 0xffffffff
mov dword [ecx], eax
jne 0x4ec865
call fcn.004ce2e0
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x18
ret

Function at 0x4ecc70
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esp + 8]
test ecx, ecx
je 0x4eccee
mov eax, dword [esi]
test eax, eax
je 0x4eccee
push ebx
push edi
mov edi, dword [esp + 0x14]
push eax
push edi
push 1
push ecx
call fcn.005779fa
mov ebx, eax
add esp, 0x10
cmp ebx, edi
jae 0x4ecce6
mov eax, dword [esi]
push eax
call fcn.00580812
add esp, 4
test eax, eax
je 0x4ecce6
mov esi, dword [esi + 4]
call fcn.004d8e80
test eax, eax
je 0x4eccd7
mov edx, dword [eax]
push 0
mov ecx, eax
mov eax, dword [edx + 8]
push str.Read_error_on_file__s
call eax
push esi
push eax
call fcn.004e6fa0
add esp, 8
pop edi
mov eax, ebx
pop ebx
pop esi
ret 8
mov eax, str.Read_error_on_file__s
push esi
push eax
call fcn.004e6fa0
add esp, 8
pop edi
mov eax, ebx
pop ebx
pop esi
ret 8
xor eax, eax
pop esi
ret 8

Function at 0x4ecd00
Capabilities:
Write file on windows

Disassembly:
push edi
mov edi, ecx
mov ecx, dword [esp + 8]
test ecx, ecx
je 0x4ecd6f
mov eax, dword [edi]
test eax, eax
je 0x4ecd6f
push ebx
push esi
mov esi, dword [esp + 0x14]
push eax
push esi
push 1
push ecx
call fcn.00578d2f
mov ebx, eax
add esp, 0x10
cmp ebx, esi
jae 0x4ecd67
mov edi, dword [edi + 4]
call fcn.004d8e80
test eax, eax
je 0x4ecd58
mov edx, dword [eax]
push 0
mov ecx, eax
mov eax, dword [edx + 8]
push str.Write_error_on_file__s
call eax
push edi
push eax
call fcn.004e6fa0
add esp, 8
pop esi
mov eax, ebx
pop ebx
pop edi
ret 8
mov eax, str.Write_error_on_file__s
push edi
push eax
call fcn.004e6fa0
add esp, 8
pop esi
mov eax, ebx
pop ebx
pop edi
ret 8
xor eax, eax
pop edi
ret 8