joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6eff2c
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x810240]
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.006e8373
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.006e8373
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 0x6effa3
cmp word [ecx], dx
je 0x6effa3
mov eax, dword [0x7dceec]
push edi
dec eax
push eax
push 0x7dcdd8
call fcn.006efecb
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x6f0016
cmp word [eax], dx
je 0x6f0016
mov eax, dword [edi]
test eax, eax
je 0x6effc7
cmp word [eax], dx
je 0x6effc7
lea eax, [ebp - 0x10]
push eax
call fcn.006ef8ae
jmp 0x6effd0
lea eax, [ebp - 0x10]
push eax
call fcn.006ef949
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x6f0040
mov eax, dword [0x7dcdd4]
push dword [ebp - 0x14]
dec eax
push eax
push 0x7dcac8
call fcn.006efecb
add esp, 0xc
test al, al
je 0x6f0040
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x6f000b
cmp word [eax], di
je 0x6f000b
lea eax, [ebp - 0x10]
push eax
call fcn.006ef8ae
pop ecx
jmp 0x6f0042
lea eax, [ebp - 0x10]
push eax
call fcn.006ef949
jmp 0x6f0008
mov eax, dword [edi]
test eax, eax
je 0x6f002d
cmp word [eax], dx
je 0x6f002d
lea eax, [ebp - 0x10]
push eax
call fcn.006ef845
pop ecx
jmp 0x6f0040
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 0x6f010b
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.006efd50
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x6f010b
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x6f010b
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x6f010b
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x6f0098
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.006f0e19
test ebx, ebx
je 0x6f0106
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.006f0e19
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x6f010b
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 0x6f010b
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.006f6093
add esp, 0x10
xor eax, eax
inc eax
jmp 0x6f010d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.006bd089
leave
ret
Function at 0x6f0a8b
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x7de114
push 0x7de10c
push str.FlsAlloc
push 0x1f
call fcn.006f0759
mov esi, eax
add esp, 0x10
test esi, esi
je 0x6f0abf
push dword [ebp + 8]
mov ecx, esi
call dword [0x706410]
call esi
jmp 0x6f0ac5
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x6f0b09
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x7de124
push 0x7de11c
push str.FlsGetValue
push 0x21
call fcn.006f0759
mov esi, eax
add esp, 0x10
test esi, esi
je 0x6f0b40
push dword [ebp + 8]
mov ecx, esi
call dword [0x706410]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x6f0b48
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x7de12c
push 0x7de124
push str.FlsSetValue
push 0x22
call fcn.006f0759
mov esi, eax
add esp, 0x10
test esi, esi
je 0x6f0b82
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x706410]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x6fd1fb
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 + 0x811bb0]
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 0x6fd23b
cmp byte [ebx], 0xa
jne 0x6fd23b
or byte [edi + eax + 0x28], 4
jmp 0x6fd240
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 0x6fd33f
mov dl, byte [eax]
cmp dl, 0x1a
je 0x6fd322
inc eax
cmp dl, 0xd
je 0x6fd26c
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x6fd292
cmp eax, ecx
jae 0x6fd2a0
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 0x6fd254
jmp 0x6fd33f
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 0x6fd31d
cmp dword [ebp - 0x10], 0
je 0x6fd31d
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x811bb0]
test byte [eax + edi + 0x28], 0x48
je 0x6fd2f7
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x6fd2e2
mov byte [esi], dl
jmp 0x6fd2f3
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x811bb0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x6fd33f
cmp byte [ebp - 1], 0xa
jne 0x6fd306
cmp esi, ebx
jne 0x6fd306
mov byte [esi], 0xa
jmp 0x6fd33e
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.006fd04d
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x6fd33f
mov byte [esi], 0xd
jmp 0x6fd33e
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x811bb0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x6fd33c
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x6fd33f
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x6fd348
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 + 0x811bb0]
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 0x6fd38e
cmp word [ebx], dx
jne 0x6fd38e
or byte [eax + edi + 0x28], 4
jmp 0x6fd393
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 0x6fd4f6
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 0x6fd4d6
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x6fd3d4
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x6fd40a
cmp eax, edx
jae 0x6fd418
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 0x6fd3af
jmp 0x6fd4f6
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 0x6fd4d1
cmp dword [ebp - 0x18], 0
je 0x6fd4d1
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x811bb0]
test byte [eax + edi + 0x28], 0x48
je 0x6fd4a7
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 0x6fd46b
mov word [esi], cx
jmp 0x6fd4a2
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x811bb0]
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 + 0x811bb0]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x811bb0]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x6fd4f6
pop eax
cmp word [ebp - 4], ax
jne 0x6fd4b7
cmp esi, ebx
jne 0x6fd4b7
mov word [esi], ax
jmp 0x6fd4f3
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.006fd04d
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x6fd4f6
push 0xd
pop eax
jmp 0x6fd4b2
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x811bb0]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x6fd4f0
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x6fd4f6
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x701fa0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x701fcd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x701fcd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4766f4
Capabilities:
Access peb ldr_data

Disassembly:
jmp 0x55b290
push 0xffffffffffffffff
push 0x5645d8
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push esi
mov eax, dword [0x5f13b0]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov esi, ecx
lea ecx, [esp + 8]
call fcn.00477a54
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x48]
push ecx
lea ecx, [esp + 0x10]
mov dword [esp + 0x30], 0
mov dword [esp + 0xc], eax
call fcn.00478f67
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x3c]
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], eax
call fcn.00478f67
mov edx, dword [esp + 0x40]
lea eax, [esp + 8]
push eax
mov ecx, esi
mov dword [esp + 0x1c], edx
call fcn.00476816
lea ecx, [esp + 8]
mov esi, eax
mov dword [esp + 0x2c], 0xffffffff
call fcn.0047607d
mov eax, esi
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x28
ret 0x18

Function at 0x476e1f
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
jmp 0x533abf
mov edi, edi
push esi
push edi
mov esi, str.KERNEL32.DLL
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
jne 0x533ada
push esi
call fcn.00476410
pop ecx
mov edi, eax
test edi, edi
je 0x533c42
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.FlsAlloc
push edi
call esi
push str.FlsGetValue
push edi
mov dword [0x692658], eax
call esi
push str.FlsSetValue
push edi
mov dword [0x69265c], eax
call esi
push str.FlsFree
push edi
mov dword [0x692660], eax
call esi
cmp dword [0x692658], 0
mov esi, dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [0x692664], eax
je 0x533b43
cmp dword [0x69265c], 0
je 0x533b43
cmp dword [0x692660], 0
je 0x533b43
test eax, eax
jne 0x533b67
mov eax, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [0x69265c], eax
mov eax, dword [sym.imp.KERNEL32.dll_TlsFree]
mov dword [0x692658], 0x476ebf
mov dword [0x692660], esi
mov dword [0x692664], eax
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x5f17cc], eax
cmp eax, 0xffffffff
je 0x533c47
push dword [0x69265c]
push eax
call esi
test eax, eax
je 0x533c47
call fcn.004769f6
push dword [0x692658]
call fcn.004769ba
push dword [0x69265c]
mov dword [0x692658], eax
call fcn.004769ba
push dword [0x692660]
mov dword [0x69265c], eax
call fcn.004769ba
push dword [0x692664]
mov dword [0x692660], eax
call fcn.004769ba
add esp, 0x10
mov dword [0x692664], eax
call fcn.004779a5
test eax, eax
je 0x533c42
push fcn.00479426
push dword [0x692658]
call fcn.0047774d
pop ecx
call eax
mov dword [0x5f17c8], eax
cmp eax, 0xffffffff
je 0x533c42
push 0x214
push 1
call fcn.00478413
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x533c42
push esi
push dword [0x5f17c8]
push dword [0x692660]
call fcn.0047774d
pop ecx
call eax
test eax, eax
je 0x533c42
push 0
push esi
call fcn.00477d83
pop ecx
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
or dword [esi + 4], 0xffffffff
mov dword [esi], eax
xor eax, eax
inc eax
jmp 0x533c49
call fcn.00479232
xor eax, eax
pop edi
pop esi
ret
Function at 0x4776e9
Capabilities:
Read file on windows

Disassembly:
jmp 0x51f620
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
mov edi, dword [esp + 0x1c]
mov esi, ebx
imul esi, dword [esp + 0x18]
cmp byte [edi], 0
je 0x51f662
mov ecx, dword [esp + 0x10]
mov edx, dword [edi + 2]
push 0
lea eax, [esp + 0x18]
push eax
push esi
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x51f656
mov byte [edi + 6], 1
mov eax, dword [esp + 0x14]
pop edi
xor edx, edx
pop esi
div ebx
pop ebx
ret
mov ecx, dword [edi + 0x13]
mov eax, dword [edi + 0xf]
lea edx, [ecx + esi]
cmp edx, eax
jbe 0x51f673
sub eax, ecx
mov esi, eax
mov eax, dword [edi + 0xb]
add eax, ecx
mov ecx, dword [esp + 0x10]
push esi
push eax
push ecx
call fcn.00476e24
add dword [edi + 0x13], esi
add esp, 0xc
pop edi
mov eax, esi
xor edx, edx
pop esi
div ebx
pop ebx
ret
Function at 0x4785f8
Capabilities:
Terminate process

Disassembly:
jmp 0x52425e
jmp fcn.0052df35
cmp ecx, dword [0x5f13b0]
jne 0x524268
repz ret
jmp 0x478c01
Function at 0x4792eb
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
jmp 0x51ee40
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x51ee4b
xor eax, eax
ret
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 4]
push esi
not eax
cmp edx, 8
jb 0x51ef29
mov esi, edx
shr esi, 3
push edi
movzx edi, byte [ecx]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x572080]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
inc ecx
shr eax, 8
xor eax, dword [edi*4 + 0x572080]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
inc ecx
shr eax, 8
xor eax, dword [edi*4 + 0x572080]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x572080]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x572080]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x572080]
movzx edi, byte [ecx + 1]
inc ecx
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x572080]
movzx edi, byte [ecx + 1]
inc ecx
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x572080]
inc ecx
sub edx, 8
sub esi, 1
jne 0x51ee65
pop edi
test edx, edx
je 0x51ef4b
lea ecx, [ecx]
movzx esi, byte [ecx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x572080]
inc ecx
sub edx, 1
jne 0x51ef30
not eax
pop esi
ret
Function at 0x4059f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x38], 0
je 0x405a1b
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004061f0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x14], eax
test eax, eax
je 0x405a3d
mov eax, dword [ebx + 0x30]
mov eax, dword [eax]
jmp 0x405a3f
xor eax, eax
cdq
mov dword [esp + 0xc], eax
mov ecx, edx
mov dword [esp + 0x10], ecx
test edi, edi
jl 0x405ac3
jg 0x405a54
test esi, esi
je 0x405ac3
test ecx, ecx
jl 0x405a9d
jg 0x405a5e
test eax, eax
je 0x405a9d
cmp edi, ecx
jg 0x405a72
jl 0x405a68
cmp esi, eax
jae 0x405a72
mov eax, esi
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], edi
push eax
push dword [ebp + 8]
push dword [esp + 0x1c]
call fcn.00457ba0
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov edx, dword [ebp + 8]
mov eax, dword [ebx + 0x30]
add edx, ecx
sub esi, ecx
sbb edi, dword [esp + 0x10]
sub dword [eax], ecx
mov eax, dword [ebx + 0x20]
add dword [eax], ecx
jmp 0x405aa0
mov edx, dword [ebp + 8]
test edi, edi
jl 0x405ac3
jg 0x405aaa
test esi, esi
je 0x405ac3
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x405ac3
push eax
push esi
push 1
push edx
call fcn.0045b7ac
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x405ae0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x38], 0
je 0x405b0b
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004062d0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [edi + 0x1c]
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
mov dword [esp + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x14], eax
test eax, eax
je 0x405b2d
mov eax, dword [edi + 0x2c]
mov eax, dword [eax]
jmp 0x405b2f
xor eax, eax
cdq
mov dword [esp + 0xc], eax
mov ecx, edx
mov dword [esp + 0x10], ecx
test ebx, ebx
jl 0x405bce
jg 0x405b4c
test esi, esi
je 0x405bce
test ecx, ecx
jl 0x405b99
jg 0x405b56
test eax, eax
je 0x405b99
cmp ebx, ecx
jg 0x405b6a
jl 0x405b60
cmp esi, eax
jae 0x405b6a
mov eax, esi
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], ebx
push eax
push dword [esp + 0x18]
push dword [ebp + 8]
call fcn.00457ba0
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov edx, dword [ebp + 8]
mov eax, dword [edi + 0x2c]
add edx, ecx
sub esi, ecx
mov dword [esp + 0xc], edx
sbb ebx, dword [esp + 0x10]
sub dword [eax], ecx
mov eax, dword [edi + 0x1c]
add dword [eax], ecx
jmp 0x405ba0
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], eax
test ebx, ebx
jl 0x405bce
jg 0x405baa
test esi, esi
je 0x405bce
cmp dword [edi + 0x4c], 0
je 0x405bce
mov ecx, edi
call fcn.00406ea0
push dword [edi + 0x4c]
push esi
push 1
push dword [esp + 0x18]
call fcn.0045bd86
add esp, 0x10
sub esi, eax
sbb ebx, 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
pop edi
pop esi
sbb edx, ebx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x405ee0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x30
mov eax, dword [0x4a8098]
xor eax, esp
mov dword [esp + 0x2c], eax
push ebx
mov ebx, dword [esp + 0x38]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x405f10
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.00455d36
add esp, 0x30
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x405f4d
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x405f4d
lea ecx, [edi - 1]
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.00455d36
add esp, 0x30
ret 4
cmp dword [esi + 0x4c], 0
je 0x406042
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x405f75
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x405fa9
push dword [esi + 0x4c]
movsx eax, bl
push eax
call fcn.0045ae87
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.00455d36
add esp, 0x30
ret 4
lea eax, [esp + 0x10]
mov byte [esp + 0xf], bl
mov edx, dword [ecx]
push eax
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x23]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x1c]
test eax, eax
js 0x406042
cmp eax, 1
jle 0x406011
cmp eax, 3
jne 0x406042
push dword [esi + 0x4c]
movsx eax, byte [esp + 0x13]
push eax
call fcn.0045ae87
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.00455d36
add esp, 0x30
ret 4
mov edi, dword [esp + 0x10]
lea eax, [esp + 0x18]
sub edi, eax
je 0x406030
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.0045b7ac
add esp, 0x10
cmp edi, eax
jne 0x406042
lea eax, [esp + 0xf]
mov byte [esi + 0x3d], 1
cmp dword [esp + 0x14], eax
jne 0x405f37
mov ecx, dword [esp + 0x38]
or eax, 0xffffffff
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00455d36
add esp, 0x30
ret 4
Function at 0x4074a0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47cbf0
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x4a8098]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.00455d4c
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.00453bc4
mov dword [esi + 4], eax
lea ecx, [edi + 8]
lea eax, [edi + 4]
mov dword [edi + 0x34], esi
mov dword [edi + 0xc], eax
add esp, 8
lea eax, [edi + 0x14]
mov dword [edi + 0x10], ecx
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x18]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x24]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x28]
mov dword [edi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [edi + 0x20]
mov dword [eax], 0
mov eax, dword [edi + 0x30]
mov dword [eax], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x1c]
mov dword [eax], 0
mov eax, dword [edi + 0x2c]
mov dword [eax], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40cf20
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47d538
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x4a8098]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov ecx, esi
call fcn.004052a0
test al, al
je 0x40cf60
xor al, al
jmp 0x40d096
push esi
lea ecx, [ebp - 0x2c]
call fcn.00405430
mov dword [ebp - 4], 0
lea eax, [ebp - 0x2c]
push 4
push eax
call fcn.0040f620
add esp, 8
lea ecx, [ebp - 0x2c]
call fcn.004052b0
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push eax
call edi
mov esi, eax
cmp esi, 0xffffffff
jne 0x40d083
lea ecx, [ebp - 0x44]
call fcn.00405410
mov byte [ebp - 4], 1
lea edx, [ebp - 0x44]
lea ecx, [ebp - 0x2c]
call fcn.004193c0
test al, al
je 0x40cfc2
lea ecx, [ebp - 0x44]
call fcn.004052b0
push eax
call edi
mov esi, eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x44]
call fcn.004052f0
cmp esi, 0xffffffff
jne 0x40d083
lea ecx, [ebp - 0x2c]
call fcn.004069f0
cmp eax, 2
jbe 0x40d07f
lea ecx, [ebp - 0x2c]
call fcn.004069f0
lea ecx, [ebp - 0x2c]
lea ebx, [eax - 1]
call fcn.00406740
mov esi, eax
mov ecx, esi
cmp dword [esi + 0x14], 8
jb 0x40d007
mov ecx, dword [esi]
cmp word [ecx + ebx*2], 0x5c
je 0x40d026
lea ecx, [ebp - 0x2c]
call fcn.004069f0
cmp dword [esi + 0x14], 8
jb 0x40d01e
mov esi, dword [esi]
cmp word [esi + eax*2 - 2], 0x2f
jne 0x40d07f
lea eax, [ebp - 0x2c]
push 0x20
push eax
call fcn.0040f620
add esp, 8
lea ecx, [ebp - 0x2c]
call fcn.004052b0
push eax
call edi
mov esi, eax
cmp esi, 0xffffffff
jne 0x40d083
lea ecx, [ebp - 0x44]
call fcn.00405410
mov byte [ebp - 4], 2
lea edx, [ebp - 0x44]
lea ecx, [ebp - 0x2c]
call fcn.004193c0
test al, al
je 0x40d06e
lea ecx, [ebp - 0x44]
call fcn.004052b0
push eax
call edi
mov esi, eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x44]
call fcn.004052f0
cmp esi, 0xffffffff
jne 0x40d083
xor bl, bl
jmp 0x40d085
mov bl, 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.004052f0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00455d36
mov esp, ebp
pop ebp
ret