joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4ab5f8
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xfffffdfc
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xac], 0
je 0x4ab663
cmp byte [ebx + 0xd3], 0
jne 0x4ab663
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x170]
push eax
call sub.user32.dll_GetWindowTextW
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00406974
mov eax, dword [esi]
mov dword [esp + 0x200], eax
mov eax, dword [esp + 0x200]
test eax, eax
je 0x4ab650
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x4ab670
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00406838
jmp 0x4ab670
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00406838
add esp, 0x204
pop esi
pop ebx
ret

Function at 0x4ace98
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x4acf06
mov eax, esi
call fcn.004854c4
test al, al
je 0x4acf06
mov eax, dword [ebx + 0x84]
call fcn.00485118
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4acf06
mov eax, dword [ebx + 0x84]
mov edx, dword [eax]
call dword [edx + 0xfc]
test al, al
je 0x4acefa
push 0
mov eax, dword [ebx + 0x84]
call fcn.00485118
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x84]
call fcn.0047c0ec
jmp 0x4acf06
mov cl, 1
mov edx, dword [ebx + 0x74]
mov eax, ebx
call fcn.004accd0
pop esi
pop ebx
ret
Function at 0x40121a
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x443040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x18]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x40128a
lea eax, [ebp - 0x10]
xor esi, esi
push eax
push str.SeShutdownPrivilege
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
push esi
push esi
push esi
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 1
push eax
push esi
push dword [ebp - 0x18]
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x40128a
push 0x80020003
push 5
call dword [sym.imp.USER32.dll_ExitWindowsEx]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004020b0
leave
ret

Function at 0x401297
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x443040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
lea eax, [ebp - 0x10]
push eax
push 0xf003f
push 0
push str.SoftwareSysCache
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
call fcn.00401f30
push 0
push 0x989680
push edx
push eax
call fcn.00431ec0
mov ebx, eax
mov dword [ebp - 0x14], edx
mov ecx, edx
mov byte [ebp - 0xc], bl
shrd eax, ecx, 8
mov ecx, edx
mov byte [ebp - 8], dl
mov byte [ebp - 0xb], al
mov eax, ebx
shrd eax, ecx, 0x10
mov ecx, ebx
mov byte [ebp - 0xa], al
mov eax, edx
shrd ecx, eax, 0x18
mov eax, edx
shr eax, 8
mov byte [ebp - 7], al
mov eax, edx
shr eax, 0x10
mov byte [ebp - 6], al
mov eax, edx
shr eax, 0x18
push 8
mov byte [ebp - 5], al
lea eax, [ebp - 0xc]
push eax
push 3
push 0
push 0x440b28
push dword [ebp - 0x10]
mov byte [ebp - 9], cl
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [ebp - 4]
mov eax, ebx
mov edx, dword [ebp - 0x14]
xor ecx, ebp
pop ebx
call fcn.004020b0
leave
ret
Function at 0x401342
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x2c
mov eax, 0x43240d
call fcn.004323c0
lea eax, [ebp - 0x2c]
xor ebx, ebx
push eax
push 0x20019
push ebx
push 0x440ac8
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x401378
or ebx, 0xffffffff
mov edx, ebx
jmp 0x4014c3
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 0x24]
push eax
push ebx
lea eax, [ebp - 0x28]
mov dword [ebp - 0x24], ebx
push eax
push ebx
push str.CacheLifetime
push dword [ebp - 0x2c]
call esi
test eax, eax
je 0x4013a4
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40136e
cmp dword [ebp - 0x28], 3
jne 0x401399
xor eax, eax
lea edi, [ebp - 0x20]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xorps xmm0, xmm0
mov dword [ebp - 4], ebx
push 8
movups xmmword [ebp - 0x20], xmm0
call fcn.004020c0
pop ecx
lea ecx, [ebp - 0x20]
mov dword [eax + 4], ebx
mov dword [ebp - 0x20], eax
mov dword [eax], ecx
xor edi, edi
inc edi
mov dword [ebp - 4], edi
push dword [ebp - 0x24]
call fcn.0040194c
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x1c]
push ebx
push ebx
push str.CacheLifetime
push dword [ebp - 0x2c]
call esi
push dword [ebp - 0x2c]
test eax, eax
je 0x401400
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x401411
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp - 0x1c]
cmp eax, 8
je 0x40141b
or ebx, 0xffffffff
mov esi, ebx
jmp 0x4014b9
call fcn.00401f30
push 7
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x38], edx
call fcn.004018ed
push 6
lea ecx, [ebp - 0x20]
call fcn.004018ed
push 5
lea ecx, [ebp - 0x20]
call fcn.004018ed
push 4
lea ecx, [ebp - 0x20]
call fcn.004018ed
push 3
lea ecx, [ebp - 0x20]
call fcn.004018ed
push 2
lea ecx, [ebp - 0x20]
mov al, byte [eax]
mov byte [ebp - 0x2d], al
call fcn.004018ed
push edi
lea ecx, [ebp - 0x20]
mov bh, byte [eax]
call fcn.004018ed
push 0
lea ecx, [ebp - 0x20]
mov bl, byte [eax]
call fcn.004018ed
movzx edx, byte [ebp - 0x2d]
shl edx, 8
movzx ecx, bh
movzx eax, byte [eax]
or edx, ecx
shl edx, 8
push 0
movzx ecx, bl
or edx, ecx
push 0x989680
push dword [ebp - 0x38]
shl edx, 8
push dword [ebp - 0x34]
or eax, edx
cdq
mov esi, eax
mov edi, edx
call fcn.00431ec0
mov ebx, eax
sub ebx, esi
sbb edx, edi
mov esi, edx
lea ecx, [ebp - 0x20]
call fcn.004019af
mov edx, esi
mov eax, ebx
call fcn.004323b0
ret
Function at 0x406c50
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
call fcn.00406860
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x406c82
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0xc]
mov dword [ebp - 8], edx
mov ecx, dword [ebp - 8]
call dword [0x4331b4]
call dword [ebp - 8]
jmp 0x406c8c
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esp, ebp
pop ebp
ret
Function at 0x41c050
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
call fcn.0041b950
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x41c084
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0xc]
mov dword [ebp - 8], edx
mov ecx, dword [ebp - 8]
call dword [0x4331b4]
call dword [ebp - 8]
jmp 0x41c08a
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov esp, ebp
pop ebp
ret 4

Function at 0x41c0e0
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
call fcn.0041b990
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x41c114
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0xc]
mov dword [ebp - 8], edx
mov ecx, dword [ebp - 8]
call dword [0x4331b4]
call dword [ebp - 8]
jmp 0x41c11e
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esp, ebp
pop ebp
ret 4

Function at 0x41c130
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
call fcn.0041b9b0
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x41c168
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0xc]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
call dword [0x4331b4]
call dword [ebp - 8]
jmp 0x41c176
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov esp, ebp
pop ebp
ret 8
Function at 0x41f7a0
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x38
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
push eax
lea ecx, [ebp - 4]
call fcn.00409960
lea ecx, [ebp - 4]
call fcn.0041f770
movzx eax, al
test eax, eax
jne 0x41f7dd
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 4]
call fcn.0041f6b0
mov eax, dword [ebp - 0x18]
jmp 0x41f905
lea ecx, [ebp - 4]
call fcn.004084e0
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.0041f730
add esp, 4
mov dword [ebp - 0x1c], eax
mov edx, dword [ebp - 0x1c]
sub edx, dword [ebp - 0x10]
sar edx, 1
mov dword [ebp - 0x14], edx
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 0x14]
push eax
lea ecx, [ebp - 4]
call fcn.004084e0
push eax
push 0
push 0
call fcn.0041f5f0
add esp, 0x20
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x41f843
mov dword [ebp - 0x20], 0
lea ecx, [ebp - 4]
call fcn.0041f6b0
mov eax, dword [ebp - 0x20]
jmp 0x41f905
push 0x66
push str.minkernelcrtsucrt_srcdesktopcrtenvget_environment_from_os.cpp
push 2
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.0040dda0
add esp, 0x10
push eax
lea ecx, [ebp - 8]
call fcn.00403e70
lea ecx, [ebp - 8]
call fcn.00403eb0
movzx edx, al
test edx, edx
jne 0x41f88c
mov dword [ebp - 0x24], 0
lea ecx, [ebp - 8]
call fcn.00404730
lea ecx, [ebp - 4]
call fcn.0041f6b0
mov eax, dword [ebp - 0x24]
jmp 0x41f905
lea ecx, [ebp - 8]
call fcn.00403f00
mov dword [ebp - 0x28], eax
lea ecx, [ebp - 4]
call fcn.004084e0
mov dword [ebp - 0x2c], eax
push 0
push 0
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x28]
push ecx
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x2c]
push eax
push 0
push 0
call fcn.0041f5f0
add esp, 0x20
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jne 0x41f8e7
mov dword [ebp - 0x34], 0
lea ecx, [ebp - 8]
call fcn.00404730
lea ecx, [ebp - 4]
call fcn.0041f6b0
mov eax, dword [ebp - 0x34]
jmp 0x41f905
lea ecx, [ebp - 8]
call fcn.00409a10
mov dword [ebp - 0x38], eax
lea ecx, [ebp - 8]
call fcn.00404730
lea ecx, [ebp - 4]
call fcn.0041f6b0
mov eax, dword [ebp - 0x38]
mov esp, ebp
pop ebp
ret
Function at 0x42c1a0
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1434
call fcn.00431e30
mov eax, dword [0x443040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
sar eax, 6
mov ecx, dword [ebp + 0xc]
and ecx, 0x3f
imul edx, ecx, 0x38
mov eax, dword [eax*4 + 0x444930]
mov ecx, dword [eax + edx + 0x18]
mov dword [ebp - 0x1434], ecx
mov edx, dword [ebp + 0x10]
add edx, dword [ebp + 0x14]
mov dword [ebp - 0x1424], edx
xor eax, eax
mov dword [ebp - 0x1410], eax
mov dword [ebp - 0x140c], eax
mov dword [ebp - 0x1408], eax
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x1420], ecx
mov edx, dword [ebp - 0x1420]
cmp edx, dword [ebp - 0x1424]
jae 0x42c378
lea eax, [ebp - 5]
mov dword [ebp - 0x1430], eax
lea ecx, [ebp - 0x1404]
mov dword [ebp - 0x1418], ecx
mov edx, dword [ebp - 0x1418]
cmp edx, dword [ebp - 0x1430]
jae 0x42c2c7
mov eax, dword [ebp - 0x1420]
cmp eax, dword [ebp - 0x1424]
jae 0x42c2c7
mov ecx, dword [ebp - 0x1420]
mov dl, byte [ecx]
mov byte [ebp - 0x1419], dl
mov eax, dword [ebp - 0x1420]
add eax, 1
mov dword [ebp - 0x1420], eax
mov cl, byte [ebp - 0x1419]
mov byte [ebp - 0x1411], cl
movsx edx, byte [ebp - 0x1411]
cmp edx, 0xa
jne 0x42c2a5
mov eax, dword [ebp - 0x1408]
add eax, 1
mov dword [ebp - 0x1408], eax
mov ecx, dword [ebp - 0x1418]
mov byte [ecx], 0xd
mov edx, dword [ebp - 0x1418]
add edx, 1
mov dword [ebp - 0x1418], edx
mov eax, dword [ebp - 0x1418]
mov cl, byte [ebp - 0x1411]
mov byte [eax], cl
mov edx, dword [ebp - 0x1418]
add edx, 1
mov dword [ebp - 0x1418], edx
jmp 0x42c229
mov eax, dword [ebp - 0x1418]
lea ecx, [ebp - 0x1404]
sub eax, ecx
mov dword [ebp - 0x142c], eax
push 0
lea edx, [ebp - 0x1428]
push edx
mov eax, dword [ebp - 0x142c]
push eax
lea ecx, [ebp - 0x1404]
push ecx
mov edx, dword [ebp - 0x1434]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x42c331
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1410], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x1410]
mov dword [eax], ecx
mov edx, dword [ebp - 0x140c]
mov dword [eax + 4], edx
mov ecx, dword [ebp - 0x1408]
mov dword [eax + 8], ecx
mov eax, dword [ebp + 8]
jmp 0x42c398
mov edx, dword [ebp - 0x140c]
add edx, dword [ebp - 0x1428]
mov dword [ebp - 0x140c], edx
mov eax, dword [ebp - 0x1428]
cmp eax, dword [ebp - 0x142c]
jae 0x42c373
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x1410]
mov dword [ecx], edx
mov eax, dword [ebp - 0x140c]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x1408]
mov dword [ecx + 8], edx
mov eax, dword [ebp + 8]
jmp 0x42c398
jmp 0x42c202
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x1410]
mov dword [eax], ecx
mov edx, dword [ebp - 0x140c]
mov dword [eax + 4], edx
mov ecx, dword [ebp - 0x1408]
mov dword [eax + 8], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004020b0
mov esp, ebp
pop ebp
ret
Function at 0x42c3b0
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1434
call fcn.00431e30
mov eax, dword [0x443040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
sar eax, 6
mov ecx, dword [ebp + 0xc]
and ecx, 0x3f
imul edx, ecx, 0x38
mov eax, dword [eax*4 + 0x444930]
mov ecx, dword [eax + edx + 0x18]
mov dword [ebp - 0x1434], ecx
mov edx, dword [ebp + 0x10]
add edx, dword [ebp + 0x14]
mov dword [ebp - 0x1424], edx
xor eax, eax
mov dword [ebp - 0x1410], eax
mov dword [ebp - 0x140c], eax
mov dword [ebp - 0x1408], eax
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x141c], ecx
mov edx, dword [ebp - 0x141c]
cmp edx, dword [ebp - 0x1424]
jae 0x42c59b
lea eax, [ebp - 6]
mov dword [ebp - 0x1430], eax
lea ecx, [ebp - 0x1404]
mov dword [ebp - 0x1414], ecx
mov edx, dword [ebp - 0x1414]
cmp edx, dword [ebp - 0x1430]
jae 0x42c4e6
mov eax, dword [ebp - 0x141c]
cmp eax, dword [ebp - 0x1424]
jae 0x42c4e6
mov ecx, dword [ebp - 0x141c]
mov dx, word [ecx]
mov word [ebp - 0x141e], dx
mov eax, dword [ebp - 0x141c]
add eax, 2
mov dword [ebp - 0x141c], eax
mov cx, word [ebp - 0x141e]
mov word [ebp - 0x1418], cx
movzx edx, word [ebp - 0x1418]
cmp edx, 0xa
jne 0x42c4c2
mov eax, dword [ebp - 0x1408]
add eax, 2
mov dword [ebp - 0x1408], eax
mov ecx, 0xd
mov edx, dword [ebp - 0x1414]
mov word [edx], cx
mov eax, dword [ebp - 0x1414]
add eax, 2
mov dword [ebp - 0x1414], eax
mov ecx, dword [ebp - 0x1414]
mov dx, word [ebp - 0x1418]
mov word [ecx], dx
mov eax, dword [ebp - 0x1414]
add eax, 2
mov dword [ebp - 0x1414], eax
jmp 0x42c439
mov ecx, dword [ebp - 0x1414]
lea edx, [ebp - 0x1404]
sub ecx, edx
sar ecx, 1
shl ecx, 1
mov dword [ebp - 0x142c], ecx
push 0
lea eax, [ebp - 0x1428]
push eax
mov ecx, dword [ebp - 0x142c]
push ecx
lea edx, [ebp - 0x1404]
push edx
mov eax, dword [ebp - 0x1434]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x42c554
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1410], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x1410]
mov dword [ecx], edx
mov eax, dword [ebp - 0x140c]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x1408]
mov dword [ecx + 8], edx
mov eax, dword [ebp + 8]
jmp 0x42c5bb
mov eax, dword [ebp - 0x140c]
add eax, dword [ebp - 0x1428]
mov dword [ebp - 0x140c], eax
mov ecx, dword [ebp - 0x1428]
cmp ecx, dword [ebp - 0x142c]
jae 0x42c596
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x1410]
mov dword [edx], eax
mov ecx, dword [ebp - 0x140c]
mov dword [edx + 4], ecx
mov eax, dword [ebp - 0x1408]
mov dword [edx + 8], eax
mov eax, dword [ebp + 8]
jmp 0x42c5bb
jmp 0x42c412
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x1410]
mov dword [ecx], edx
mov eax, dword [ebp - 0x140c]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x1408]
mov dword [ecx + 8], edx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004020b0
mov esp, ebp
pop ebp
ret
Function at 0x406a20
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x423640
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x432088]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
push 8
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.004098c6
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.00408e86
mov dword [esi + 4], eax
lea ebx, [edi + 4]
mov eax, dword [ebp - 0x10]
lea edx, [edi + 8]
mov dword [ebp - 0x14], ebx
lea ecx, [eax + 0x18]
mov ebx, dword [ebp - 0x10]
add esp, 8
mov dword [ebp - 0x18], edx
mov edx, dword [ebp - 0x10]
mov dword [edi + 0x34], esi
add edi, 0x14
mov dword [ebx], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
lea esi, [eax + 0x24]
mov byte [ebx + 0x48], 0
add eax, 0x28
mov byte [ebx + 0x3d], 0
mov ebx, dword [ebp - 0x14]
mov dword [edx + 0xc], ebx
mov ebx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x18]
mov dword [ebx + 0x30], eax
mov dword [ebx + 0x10], edx
mov dword [ebx + 0x20], ecx
mov dword [ebx + 0x1c], edi
mov dword [ebx + 0x2c], esi
mov ebx, dword [ebp - 0x14]
mov dword [edx], 0
mov edx, dword [ebp - 0x10]
mov dword [ecx], 0
mov ecx, dword [0x433d4c]
mov dword [eax], 0
mov eax, dword [0x433d48]
mov dword [ebx], 0
mov dword [edi], 0
mov dword [esi], 0
mov dword [edx + 0x40], eax
mov eax, edx
mov dword [edx + 0x4c], 0
mov dword [edx + 0x44], ecx
mov dword [edx + 0x38], 0
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 0x4118eb
Capabilities:
Parse pe header

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

Function at 0x414171
Capabilities:
Get file size

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x18
mov eax, dword [eax + 0xc]
nop
shr eax, 3
test al, 1
je 0x41418b
mov al, 1
leave
ret
mov eax, dword [ebp + 8]
push ebx
push esi
mov eax, dword [eax + 0xc]
nop
test al, 0xc0
mov eax, dword [ebp + 8]
je 0x4141a2
mov ecx, dword [eax]
cmp ecx, dword [eax + 4]
je 0x4141fa
mov eax, dword [eax + 0x10]
nop
push eax
call fcn.0041d2ae
mov esi, eax
pop ecx
cmp esi, 0xffffffff
je 0x4141fa
xor ebx, ebx
lea eax, [ebp - 0x10]
inc ebx
xorps xmm0, xmm0
push ebx
push eax
movlpd qword [ebp - 8], xmm0
push dword [ebp - 4]
push dword [ebp - 8]
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x4141fa
lea eax, [ebp - 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x4141fa
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x18]
jne 0x4141f4
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x14]
je 0x4141f6
xor bl, bl
mov al, bl
jmp 0x4141fc
xor al, al
pop esi
pop ebx
leave
ret
Function at 0x416892
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1020
call fcn.0040a730
mov eax, dword [0x432088]
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.00413f82
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4168d4
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x416a4b
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00422b80
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1014], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x4339b8]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.004176d2
mov ecx, dword [esi*4 + 0x4339b8]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x1020], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x416a44
cmp eax, dword [edi + ecx + 0x24]
jne 0x416a44
xor esi, esi
lea eax, [ebp - 0x101c]
push esi
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x416a44
push dword [ebp - 0x100c]
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004176d2
add esp, 0x14
cmp edx, esi
jl 0x416a44
jg 0x41699f
cmp eax, esi
jb 0x416a44
mov ebx, dword [ebp - 0x1014]
mov eax, dword [ebp - 0x101c]
cmp ebx, esi
jg 0x416a44
jl 0x4169c1
cmp dword [ebp - 0x1008], eax
ja 0x416a44
lea edi, [ebp - 0x1004]
xorps xmm0, xmm0
add edi, eax
movlpd qword [ebp - 0x1018], xmm0
lea ecx, [ebp - 0x1004]
cmp dword [ebp - 0x1008], esi
jne 0x4169e6
cmp ebx, esi
je 0x416a2b
mov edx, dword [ebp - 0x1014]
mov esi, dword [ebp - 0x1018]
cmp ecx, edi
jae 0x416a2b
mov al, byte [ecx]
cmp al, 0xd
jne 0x416a0c
lea eax, [edi - 1]
cmp ecx, eax
jae 0x416a18
cmp byte [ecx + 1], 0xa
jne 0x416a18
inc ecx
jmp 0x416a18
movzx eax, al
movsx eax, byte [eax + 0x432308]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x4169f2
cmp edx, ebx
jne 0x4169f2
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x1020]
jmp 0x416a49
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004098b3
leave
ret
Function at 0x416b5e
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov edx, dword [ebp + 8]
mov ecx, edx
push ebx
mov ebx, dword [ebp + 0xc]
mov eax, edx
sar ecx, 6
and eax, 0x3f
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x4339b8]
mov dword [ebp - 0x18], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x416ba0
cmp byte [ebx], 0xa
jne 0x416ba0
or byte [edi + eax + 0x28], 4
jmp 0x416ba5
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x416ca8
mov cl, byte [eax]
cmp cl, 0x1a
je 0x416c83
lea ebx, [eax + 1]
mov dword [ebp - 8], ebx
mov ebx, dword [ebp + 0xc]
cmp cl, 0xd
je 0x416bd4
mov eax, dword [ebp - 8]
jmp 0x416bf4
mov edx, dword [ebp - 0x10]
cmp dword [ebp - 8], edx
mov edx, dword [ebp + 8]
jae 0x416c10
mov ebx, dword [ebp - 8]
cmp byte [ebx], 0xa
jne 0x416bee
add eax, 2
mov cl, 0xa
jmp 0x416bf1
mov eax, dword [ebp - 8]
mov ebx, dword [ebp + 0xc]
mov byte [esi], cl
mov dword [ebp - 0xc], 1
mov dword [ebp - 8], esi
mov esi, dword [ebp - 0xc]
add esi, dword [ebp - 8]
cmp eax, dword [ebp - 0x10]
jb 0x416bb6
jmp 0x416ca8
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 0x416c7e
cmp dword [ebp - 0x10], 0
je 0x416c7e
mov edx, dword [ebp - 0x18]
mov eax, dword [edx*4 + 0x4339b8]
test byte [eax + edi + 0x28], 0x48
je 0x416c5d
mov cl, byte [ebp - 1]
cmp cl, 0xa
jne 0x416c4d
mov byte [esi], 0xa
jmp 0x416ca7
mov byte [esi], 0xd
mov eax, dword [edx*4 + 0x4339b8]
mov byte [eax + edi + 0x2a], cl
jmp 0x416ca7
cmp byte [ebp - 1], 0xa
jne 0x416c67
cmp esi, ebx
je 0x416c48
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004176f0
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x416ca8
mov byte [esi], 0xd
jmp 0x416ca7
mov eax, edx
and edx, 0x3f
sar eax, 6
imul edx, edx, 0x38
mov edi, dword [eax*4 + 0x4339b8]
mov al, byte [edi + edx + 0x28]
test al, 0x40
jne 0x416ca5
or al, 2
mov byte [edi + edx + 0x28], al
jmp 0x416ca8
mov byte [esi], cl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret