joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43c9e0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48cc30
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x4ac110]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x10], eax
push 8
mov dword [eax], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
call fcn.00456c8d
mov esi, eax
add esp, 4
test esi, esi
je 0x43ca39
push 1
mov dword [ebp - 4], 0
call fcn.004557b8
add esp, 4
mov dword [esi + 4], eax
jmp 0x43ca3b
xor esi, esi
mov eax, dword [ebp - 0x10]
lea ecx, [eax + 0x18]
lea edx, [eax + 0x24]
lea edi, [eax + 0x14]
mov dword [eax + 0x34], esi
lea ebx, [eax + 4]
mov dword [eax + 0xc], ebx
lea esi, [eax + 8]
mov dword [eax + 0x2c], edx
mov dword [eax + 0x10], esi
mov dword [eax + 0x1c], edi
mov dword [eax + 0x20], ecx
add eax, 0x28
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x10]
mov dword [ebp - 0x18], eax
mov dword [ebx + 0x30], eax
mov ebx, dword [ebp - 0x14]
mov dword [esi], 0
mov dword [ecx], 0
mov dword [eax], 0
mov eax, dword [ebp - 0x10]
mov dword [ebx], 0
mov ebx, dword [ebp - 0x10]
mov dword [edi], 0
mov dword [edx], 0
mov dword [eax + 0x2c], edx
mov dword [ebx], vtable.std::basic_filebuf_wchar_t__struct_std::char_traits_wchar_t__.0
mov byte [ebx + 0x48], 0
mov byte [ebx + 0x3e], 0
mov ebx, dword [ebp - 0x14]
mov dword [eax + 0xc], ebx
mov ebx, dword [ebp - 0x10]
mov dword [eax + 0x10], esi
mov dword [eax + 0x1c], edi
mov dword [eax + 0x20], ecx
mov eax, dword [ebp - 0x18]
mov dword [ebx + 0x30], eax
mov ebx, dword [ebp - 0x14]
mov dword [esi], 0
mov dword [ecx], 0
mov dword [eax], 0
mov dword [ebx], 0
mov dword [edi], 0
mov dword [edx], 0
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x4c], 0
mov eax, dword [0x4ae3d0]
mov ecx, dword [0x4ae3d4]
mov dword [edx + 0x40], eax
mov eax, edx
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 0x43dd40
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48cd65
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x4ac110]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x40]
push eax
call fcn.00437b20
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
push eax
call fcn.00437a30
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 1
cmovae eax, dword [ebp - 0x40]
push eax
call fcn.00437720
add esp, 0xc
test al, al
je 0x43dde5
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.00437720
add esp, 4
test al, al
je 0x43ddc7
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
lea eax, [ebp - 0x40]
cmovae ecx, dword [ebp - 0x28]
cmp dword [ebp - 0x2c], 8
push ecx
cmovae eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
mov ecx, dword [ebp - 0x14]
cmp ecx, 8
jb 0x43de1b
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x43de11
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x43de7e
push ecx
push edx
call fcn.00456cbd
add esp, 8
mov ecx, dword [ebp - 0x2c]
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
cmp ecx, 8
jb 0x43de65
mov edx, dword [ebp - 0x40]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x43de5b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x43de7e
push ecx
push edx
call fcn.00456cbd
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00457138
mov esp, ebp
pop ebp
ret
call fcn.0045c13e
int3
Function at 0x446e30
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x4ac110]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x4ae46c], 0
je 0x446e59
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00457138
mov esp, ebp
pop ebp
ret
push 0x18
call fcn.00456c8d
add esp, 4
test eax, eax
je 0x446e72
push 0
mov ecx, eax
call fcn.00446070
jmp 0x446e74
xor eax, eax
push esi
mov dword [0x4ae46c], eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov edx, eax
mov dword [ebp - 0xc], 0
mov ecx, edx
mov dword [ebp - 8], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x1c], xmm0
lea esi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x446ea0
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x1c]
call fcn.00413950
mov ecx, dword [0x4ae46c]
lea eax, [ebp - 0x1c]
push eax
call fcn.00447400
mov ecx, dword [ebp - 8]
pop esi
cmp ecx, 8
jb 0x446eff
mov edx, dword [ebp - 0x1c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x446ef5
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x446f0f
push ecx
push edx
call fcn.00456cbd
add esp, 8
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
call fcn.00457138
mov esp, ebp
pop ebp
ret
call fcn.0045c13e
int3

Function at 0x447400
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x4ac110]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
xorps xmm0, xmm0
push edi
mov edi, ecx
mov dword [ebp - 0xc], 0
xor ecx, ecx
mov dword [ebp - 8], 7
movups xmmword [ebp - 0x1c], xmm0
mov word [ebp - 0x1c], cx
lea ecx, [ebp - 0x1c]
push ecx
push 3
push eax
call fcn.0044cc30
add esp, 0xc
cmp dword [ebp - 0xc], 0
je 0x447479
cmp dword [ebp - 8], 8
lea ecx, [ebp - 0x20]
push esi
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x20], 0
cmovae eax, dword [ebp - 0x1c]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov esi, eax
mov ecx, edi
push esi
push dword [ebp - 0x20]
call fcn.004470d0
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop esi
mov ecx, dword [ebp - 8]
pop edi
cmp ecx, 8
jb 0x4474b0
mov edx, dword [ebp - 0x1c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4474a6
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4474c0
push ecx
push edx
call fcn.00456cbd
add esp, 8
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00457138
mov esp, ebp
pop ebp
ret 4
call fcn.0045c13e
int3
Function at 0x44b740
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
mov eax, dword [0x4ac110]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x210]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0x102
ja 0x44b84d
xorps xmm0, xmm0
mov dword [ebp - 0x218], 0
lea eax, [ebp - 0x210]
mov dword [ebp - 0x214], 0
movups xmmword [ebp - 0x228], xmm0
lea edx, [eax + 2]
nop dword [eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x44b7a0
sub eax, edx
lea ecx, [ebp - 0x228]
sar eax, 1
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.00413950
lea eax, [ebp - 0x240]
push eax
lea eax, [ebp - 0x228]
push eax
lea ecx, [ebp - 0x258]
call fcn.00448ab0
mov ecx, eax
call fcn.0044a000
push eax
mov ecx, esi
call fcn.004127d0
lea ecx, [ebp - 0x240]
call fcn.00412b60
lea ecx, [ebp - 0x258]
call fcn.00412b60
mov ecx, dword [ebp - 0x214]
cmp ecx, 8
jb 0x44b83c
mov edx, dword [ebp - 0x228]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x44b832
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x44b85e
push ecx
push edx
call fcn.00456cbd
add esp, 8
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00457138
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
xor ecx, ebp
pop esi
call fcn.00457138
mov esp, ebp
pop ebp
ret
call fcn.0045c13e
int3

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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
jb 0x44bb5e
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne al
pop ebp
ret

Function at 0x44bd70
Capabilities:
Check if file exists
Get file attributes
Move file

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
call fcn.00449cc0
test al, al
jne 0x44bd91
mov ecx, dword [ebp + 0xc]
call fcn.00449cc0
test al, al
jne 0x44bd91
pop ebp
jmp fcn.0044b980
xor al, al
pop ebp
ret
Function at 0x44bda0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1001c
call fcn.00457190
mov eax, dword [0x4ac110]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
mov ecx, edi
call fcn.00449cc0
test al, al
jne 0x44bfc3
push 0x491b98
push edi
call fcn.0044ba40
add esp, 8
mov dword [ebp - 0x10018], eax
test eax, eax
je 0x44bfc3
push ebx
push eax
push 0x10000
lea eax, [ebp - 0x10004]
push 1
push eax
call fcn.0046bcd1
mov ebx, eax
add esp, 0x10
test ebx, ebx
je 0x44bfa2
nop dword [eax]
test esi, esi
je 0x44bf7c
mov edx, dword [esi + 0x14]
mov eax, edx
mov edi, dword [esi + 0x10]
sub eax, edi
mov dword [ebp - 0x1001c], edi
mov dword [ebp - 0x1000c], edx
cmp ebx, eax
ja 0x44be5d
lea eax, [edi + ebx]
mov dword [esi + 0x10], eax
mov eax, esi
cmp edx, 0x10
jb 0x44be41
mov eax, dword [esi]
add edi, eax
lea eax, [ebp - 0x10004]
push ebx
push eax
push edi
call fcn.004599b0
add esp, 0xc
mov byte [edi + ebx], 0
jmp 0x44bf7c
mov eax, 0x7fffffff
sub eax, edi
cmp eax, ebx
jb 0x44bfda
lea ecx, [edi + ebx]
or ecx, 0xf
cmp ecx, 0x7fffffff
jbe 0x44be81
mov ecx, 0x7fffffff
jmp 0x44beae
mov eax, edx
shr eax, 1
mov dword [ebp - 0x10008], eax
mov eax, 0x7fffffff
sub eax, dword [ebp - 0x10008]
cmp edx, eax
jbe 0x44bea1
mov ecx, 0x7fffffff
jmp 0x44beae
mov eax, dword [ebp - 0x10008]
add eax, edx
cmp ecx, eax
cmovb ecx, eax
lea eax, [ecx + 1]
mov dword [ebp - 0x10008], ecx
push eax
mov ecx, esi
call fcn.00406360
lea ecx, [edi + ebx]
mov dword [ebp - 0x10014], eax
mov dword [esi + 0x10], ecx
mov ecx, dword [ebp - 0x10008]
mov dword [esi + 0x14], ecx
lea ecx, [eax + edi]
mov dword [ebp - 0x10008], ecx
add ecx, ebx
cmp dword [ebp - 0x1000c], 0x10
mov dword [ebp - 0x10010], ecx
jb 0x44bf4d
push dword [ebp - 0x1001c]
mov edi, dword [esi]
push edi
push eax
call fcn.004599b0
push ebx
lea eax, [ebp - 0x10004]
push eax
push dword [ebp - 0x10008]
call fcn.004599b0
mov eax, dword [ebp - 0x10010]
add esp, 0x18
mov ecx, dword [ebp - 0x1000c]
inc ecx
mov byte [eax], 0
cmp ecx, 0x1000
jb 0x44bf41
mov edx, dword [edi - 4]
add ecx, 0x23
sub edi, edx
lea eax, [edi - 4]
cmp eax, 0x1f
ja 0x44bfd5
mov edi, edx
push ecx
push edi
call fcn.00456cbd
add esp, 8
jmp 0x44bf74
push edi
push esi
push eax
call fcn.004599b0
push ebx
lea eax, [ebp - 0x10004]
push eax
push dword [ebp - 0x10008]
call fcn.004599b0
mov eax, dword [ebp - 0x10010]
add esp, 0x18
mov byte [eax], 0
mov eax, dword [ebp - 0x10014]
mov dword [esi], eax
push dword [ebp - 0x10018]
lea eax, [ebp - 0x10004]
push 0x10000
push 1
push eax
call fcn.0046bcd1
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x44be10
push dword [ebp - 0x10018]
call fcn.0045d535
add esp, 4
mov al, 1
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00457138
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
pop edi
xor ecx, ebp
pop esi
call fcn.00457138
mov esp, ebp
pop ebp
ret
call fcn.0045c13e
call fcn.00406290
int3
Function at 0x44cff0
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
mov esi, ecx
push edi
mov ecx, dword [esi + 0x18]
test ecx, ecx
je 0x44d067
mov eax, dword [ebp + 0xc]
cmp eax, 0x7fffffff
ja 0x44d067
cmp byte [esi + 0x24], 0
push eax
mov eax, dword [ebp + 8]
push eax
cdq
push edx
mov edx, 4
mov eax, 0xf001f
cmovne eax, edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
mov dword [esi + 0x20], edi
test edi, edi
je 0x44d067
push 0x1c
lea eax, [ebp - 0x1c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x44d052
mov dword [esi + 0x1c], eax
mov al, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp - 0x18]
sub eax, edi
add eax, dword [ebp - 0x10]
mov dword [esi + 0x1c], eax
mov al, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x451dc0
Capabilities:
Check os version
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
mov eax, dword [0x4ac110]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
mov dword [esi], 0
mov dword [esi + 0x18], 3
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push str.IsWow64Process
push str.kernel32.dll
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x451e31
lea ecx, [ebp - 0x124]
mov dword [ebp - 0x124], 0
push ecx
push edi
call eax
test eax, eax
jne 0x451e26
mov eax, 2
jmp 0x451e31
xor eax, eax
cmp dword [ebp - 0x124], eax
setne al
mov dword [esi + 0x24], eax
xorps xmm0, xmm0
push 0x118
movups xmmword [esi + 0x28], xmm0
lea eax, [ebp - 0x11c]
mov dword [esi + 0x38], 0
push 0
mov dword [esi + 0x3c], 0xf
push eax
mov byte [esi + 0x28], 0
mov dword [ebp - 0x120], 0x11c
call fcn.00459f30
add esp, 0xc
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov edx, dword [ebp - 0x11c]
mov ecx, dword [ebp - 0x118]
mov eax, dword [ebp - 0x114]
mov dword [esi + 4], edx
mov dword [esi + 8], ecx
mov dword [esi + 0xc], eax
cmp edx, 5
jne 0x451eab
test ecx, ecx
jle 0x451ef3
xor eax, eax
cmp ecx, 1
setne al
inc eax
mov dword [esi], eax
jmp 0x451ef3
cmp edx, 6
jne 0x451edb
sub ecx, 0
je 0x451ed3
sub ecx, 1
je 0x451ecb
sub ecx, 1
je 0x451ec3
mov dword [esi], edx
jmp 0x451ef3
mov dword [esi], 5
jmp 0x451ef3
mov dword [esi], 4
jmp 0x451ef3
mov dword [esi], 3
jmp 0x451ef3
cmp edx, 0xa
jne 0x451ee8
mov dword [esi], 7
jmp 0x451ef3
cmp edx, 6
jle 0x451ef3
mov dword [esi], 8
movzx eax, word [ebp - 0xc]
xorps xmm0, xmm0
mov dword [esi + 0x10], eax
movzx eax, word [ebp - 0xa]
mov dword [esi + 0x14], eax
lea eax, [ebp - 0x148]
push eax
movups xmmword [ebp - 0x148], xmm0
mov dword [ebp - 0x128], 0
movups xmmword [ebp - 0x138], xmm0
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
movzx eax, word [ebp - 0x148]
test eax, eax
je 0x451f50
cmp eax, 6
je 0x451f47
cmp eax, 9
jne 0x451f57
mov dword [esi + 0x18], 1
jmp 0x451f57
mov dword [esi + 0x18], 2
jmp 0x451f57
mov dword [esi + 0x18], 0
mov ecx, dword [ebp - 0x134]
mov eax, esi
mov dword [esi + 0x1c], ecx
mov ecx, dword [ebp - 0x12c]
mov dword [esi + 0x20], ecx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00457138
mov esp, ebp
pop ebp
ret
Function at 0x4527c0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x244
mov eax, dword [0x4ac110]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [ebp + 8], 0
push esi
mov esi, dword [ebp + 0xc]
je 0x45290e
xor eax, eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20c]
push eax
push 0
push 0xffffffffffffffff
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x452921
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x23c]
call fcn.00412fd0
lea eax, [ebp - 0x23c]
push eax
lea ecx, [ebp - 0x224]
call fcn.00448ab0
push eax
mov ecx, esi
call fcn.004127d0
lea ecx, [ebp - 0x224]
call fcn.00412b60
lea ecx, [ebp - 0x23c]
call fcn.00412b60
lea eax, [ebp - 0x244]
mov dword [ebp - 0x244], str.Microsoft
push eax
lea eax, [ebp - 0x224]
mov dword [ebp - 0x240], 9
push eax
mov ecx, esi
call fcn.00448d60
push eax
mov ecx, esi
call fcn.004127d0
lea ecx, [ebp - 0x224]
call fcn.00412b60
lea eax, [ebp - 0x244]
mov dword [ebp - 0x244], str.Internet_Explorer
push eax
lea eax, [ebp - 0x224]
mov dword [ebp - 0x240], 0x11
push eax
mov ecx, esi
call fcn.00448d60
push eax
mov ecx, esi
call fcn.004127d0
lea ecx, [ebp - 0x224]
call fcn.00412b60
lea eax, [ebp - 0x244]
mov dword [ebp - 0x244], str.Quick_Launch
push eax
lea eax, [ebp - 0x224]
mov dword [ebp - 0x240], 0xc
push eax
mov ecx, esi
call fcn.00448d60
push eax
mov ecx, esi
call fcn.004127d0
lea ecx, [ebp - 0x224]
call fcn.00412b60
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00457138
mov esp, ebp
pop ebp
ret
push esi
push 0x6c
call fcn.0044f700
add esp, 8
test al, al
jne 0x452849
mov ecx, dword [ebp - 4]
xor al, al
xor ecx, ebp
pop esi
call fcn.00457138
mov esp, ebp
pop ebp
ret

Function at 0x455300
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x4ac110]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
cmp eax, 3
je 0x455323
test eax, eax
jne 0x4553c9
mov eax, dword [0x4ac0c0]
cmp eax, 0xffffffff
je 0x4553c9
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
test ebx, ebx
je 0x4553c8
push esi
push edi
lea eax, [ebp - 0x104]
mov ecx, 0x40
push eax
push dword [0x4ac0c0]
mov esi, ebx
lea edi, [ebp - 0x104]
rep movsd dword es:[edi], dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push ebx
call fcn.00456ccb
add esp, 4
mov edi, 0x40
mov esi, dword [0x4af040]
xor dl, dl
test esi, esi
jle 0x4553af
mov ecx, dword [ebp + esi*4 - 0x104]
test ecx, ecx
je 0x4553aa
mov eax, dword [esi*4 + 0x4af048]
test eax, eax
je 0x4553aa
push ecx
mov dword [ebp + esi*4 - 0x104], 0
call eax
add esp, 4
mov dl, 1
dec esi
test esi, esi
jg 0x455381
dec edi
test edi, edi
jle 0x4553b8
test dl, dl
jne 0x455375
push 0
push dword [0x4ac0c0]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00457138
mov esp, ebp
pop ebp
ret 0xc
Function at 0x457f33
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x457f72
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x457f72
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x457f72
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x457f72
cmp dword [ecx + 0x74], 0xe
jbe 0x457f72
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x46e8a9
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00457190
mov eax, dword [0x4ac110]
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.0046e3e1
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x46e8eb
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x46ea47
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.004576b0
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 + 0x4afeb0]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00478e82
mov ecx, dword [esi*4 + 0x4afeb0]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x46ea40
cmp eax, dword [edi + ecx + 0x24]
jne 0x46ea40
push 0
lea eax, [ebp - 0x1014]
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 0x46ea40
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00478e82
add esp, 0x14
test edx, edx
jl 0x46ea40
jg 0x46e9b6
test eax, eax
jb 0x46ea40
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x46ea40
jl 0x46e9d0
cmp dword [ebp - 0x1008], eax
ja 0x46ea40
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x46e9ee
test ebx, ebx
je 0x46ea27
cmp ecx, edi
jae 0x46ea27
mov al, byte [ecx]
cmp al, 0xd
jne 0x46ea08
lea eax, [edi - 1]
cmp ecx, eax
jae 0x46ea14
cmp byte [ecx + 1], 0xa
jne 0x46ea14
inc ecx
jmp 0x46ea14
movzx eax, al
movsx eax, byte [eax + 0x4ac3b8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x46e9ee
cmp edx, ebx
jne 0x46e9ee
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x46ea45
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00457138
leave
ret
Function at 0x46eb9a
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0046eb16
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x46ed12
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x46ed12
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x46ecc1
jg 0x46ebf3
test eax, eax
je 0x46ecb7
push 1
push 0x1000
call fcn.00476e5c
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x46ec19
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x46ecae
push 0x8000
push ebx
call fcn.00473bbd
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x46ec45
jg 0x46ec40
cmp ecx, 0x1000
jb 0x46ec45
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.0046de84
add esp, 0x10
cmp eax, 0xffffffff
je 0x46ec8a
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x46ec40
jl 0x46ec71
test ecx, ecx
jne 0x46ec32
push dword [ebp - 0xc]
push ebx
call fcn.00473bbd
push esi
call fcn.00476eb9
add esp, 0xc
xor edi, edi
jmp 0x46ed23
cmp byte [edi + 0x24], 0
je 0x46eca1
cmp dword [edi + 0x20], 5
jne 0x46eca1
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x46ecac
mov edi, dword [edi + 0x18]
jmp 0x46ecae
xor edi, edi
push esi
call fcn.00476eb9
pop ecx
jmp 0x46ed23
test ecx, ecx
jg 0x46ec83
jl 0x46ecc1
test eax, eax
jae 0x46ec83
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00478ea0
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x46ece4
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x46ec83
jmp 0x46ed1b
push ebx
call fcn.0046ffcc
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x46ec83
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x46ed23
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x46ed20
mov edi, dword [edi + 0x18]
jmp 0x46ed23
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.00478ea0
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x477424
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004770c6

Function at 0x47742f
Capabilities:
Read file on windows

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