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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov eax, dword [0x758d50]
mov edi, dword [ebp + 8]
test eax, eax
je 0x43e3f4
mov esi, dword [eax + 0x2c]
test esi, esi
js 0x43e410
mov ebx, dword [eax + 0x2c]
test ebx, ebx
jne 0x43e430
mov eax, dword [eax + 0x28]
mov dword [ebp - 0x10], eax
mov ecx, dword [edi + 0xc]
mov dword [ebp - 0x14], eax
test ecx, ecx
jne 0x43e3e8
lea edx, [ebp - 0x14]
mov eax, edi
call fcn.0043def0
cmp eax, 7
jne 0x43e4af
mov eax, dword [0x758d50]
mov ebx, dword [ebp - 0x14]
test eax, eax
je 0x43e486
mov edx, dword [eax + 0x2c]
test edx, edx
js 0x43e4a0
mov edi, dword [eax + 0x2c]
test edi, edi
jne 0x43e460
mov dword [eax + 0x28], ebx
mov eax, dword [ebp - 0x14]
lea edx, [eax + 0x20]
mov ecx, dword [edx + 4]
mov ebp, dword [eax + 0x20]
mov esp, dword [edx + 8]
jmp ecx
lea edx, [ebp - 0x14]
mov eax, edi
call fcn.0043e110
jmp 0x43e3a5
call fcn.0043d580
mov eax, dword [0x758d50]
mov esi, dword [eax + 0x2c]
test esi, esi
jns 0x43e380
lea esi, [esi]
call fcn.0043dbf0
mov eax, dword [0x758d50]
mov ebx, dword [eax + 0x2c]
test ebx, ebx
je 0x43e38b
lea esi, [esi]
lea edi, [edi]
mov ebx, dword [eax + 0x30]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, ebx
sub esp, 4
jmp 0x43e38e
mov eax, dword [eax + 0x30]
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
test eax, eax
jne 0x43e3d7
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x43e3d7
call fcn.0043d580
mov eax, dword [0x758d50]
mov edx, dword [eax + 0x2c]
test edx, edx
jns 0x43e3c9
nop
lea esi, [esi]
call fcn.0043dbf0
mov eax, dword [0x758d50]
jmp 0x43e3c9
call sub.msvcrt.dll_abort
lea esi, [esi]
lea edi, [edi]
Function at 0x43e4c0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 4], edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], esi
mov esi, dword [edi + 0xc]
test esi, esi
je 0x43e552
mov eax, dword [0x758d50]
test eax, eax
je 0x43e546
mov ebx, dword [eax + 0x2c]
test ebx, ebx
js 0x43e5c1
mov ecx, dword [eax + 0x2c]
test ecx, ecx
jne 0x43e567
mov eax, dword [eax + 0x28]
mov dword [ebp - 0x10], eax
lea edx, [ebp - 0x14]
mov dword [ebp - 0x14], eax
mov eax, edi
call fcn.0043e110
cmp eax, 7
jne 0x43e5df
mov eax, dword [0x758d50]
mov ebx, dword [ebp - 0x14]
test eax, eax
je 0x43e5b2
mov edx, dword [eax + 0x2c]
test edx, edx
js 0x43e5d0
mov edi, dword [eax + 0x2c]
test edi, edi
jne 0x43e593
mov dword [eax + 0x28], ebx
mov eax, dword [ebp - 0x14]
lea edx, [eax + 0x20]
mov ecx, dword [edx + 4]
mov ebp, dword [eax + 0x20]
mov esp, dword [edx + 8]
jmp ecx
call fcn.0043d580
mov eax, dword [0x758d50]
jmp 0x43e4e2
mov dword [esp], edi
call fcn.0043df80
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov ebx, dword [eax + 0x30]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, ebx
sub esp, 4
jmp 0x43e4f7
mov eax, dword [eax + 0x30]
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
test eax, eax
jne 0x43e535
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x43e535
call fcn.0043d580
mov eax, dword [0x758d50]
jmp 0x43e520
call fcn.0043dbf0
mov eax, dword [0x758d50]
jmp 0x43e4ed
call fcn.0043dbf0
mov eax, dword [0x758d50]
jmp 0x43e52b
call sub.msvcrt.dll_abort
lea esi, [esi]
lea edi, [edi]

Function at 0x43e790
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov edx, eax
je 0x43e7c0
mov eax, dword [ebp + 8]
mov dword [eax], edx
mov eax, dword [ebp + 0xc]
mov dword [esp], edx
mov dword [esp + 4], eax
call fcn.0043f0d0
leave
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
leave
ret
Function at 0x405c70
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d9242
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x50d080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], 0
cmp dword [ebp + 0xc], 0
je 0x405ccc
mov dword [ebx], 0x4f4634
mov dword [ebx + 0x10], 0x4f462c
mov dword [ebx + 0x68], vtable.std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__.0
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 1
push 0
push 0
lea edi, [ebx + 0x18]
mov ecx, ebx
push edi
call fcn.00409590
lea edx, [ebx + 0x10]
mov dword [ebp + 0xc], edx
mov eax, dword [edx]
mov eax, dword [eax + 4]
mov dword [edx + eax], vtable.std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__.0
mov eax, dword [edx]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ecx + edx - 4], eax
mov eax, dword [ebx]
mov eax, dword [eax + 4]
mov dword [ebx + eax], vtable.std::basic_iostream_wchar_t__struct_std::char_traits_wchar_t__.0
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x20]
mov dword [ecx + ebx - 4], eax
mov dword [ebp - 4], 4
mov eax, dword [ebx]
push 8
mov eax, dword [eax + 4]
mov dword [ebx + eax], vtable.std::basic_stringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
mov dword [ebp + 0xc], edi
lea eax, [ecx - 0x68]
mov dword [ecx + ebx - 4], eax
mov dword [edi], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
call fcn.0047ceec
add esp, 4
mov esi, eax
push 1
mov byte [ebp - 4], 5
call fcn.00463298
mov dword [esi + 4], eax
lea ecx, [edi + 8]
lea eax, [edi + 4]
mov ebx, dword [ebp + 8]
mov dword [edi + 0xc], eax
add esp, 4
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 [edi + 0x34], esi
mov dword [ecx], 0
mov ecx, ebx
mov eax, dword [edi + 0x20]
not ecx
and ecx, 1
shl ecx, 2
mov edx, ecx
mov dword [eax], 0
or edx, 2
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, ebx
and al, 2
mov dword [edi], vtable.std::basic_stringbuf_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov dword [edi + 0x38], 0
mov eax, ebx
cmovne edx, ecx
mov ecx, edx
or ecx, 8
and al, 8
cmove ecx, edx
mov eax, ecx
or eax, 0x10
and bl, 4
cmove eax, ecx
mov dword [edi + 0x3c], eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x411d10
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d9d9b
mov eax, dword fs:[0]
push eax
sub esp, 0x238
mov eax, dword [0x50d080]
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]
lea eax, [ebp - 0x21c]
push eax
push 0x104
mov dword [ebp - 0x238], esi
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
je 0x411ed3
lea eax, [ebp - 0x21c]
push eax
call fcn.004ac14c
mov ax, word [ebp - 0x21c]
lea ebx, [ebp - 0x21c]
add esp, 4
test ax, ax
je 0x411ed3
movzx ecx, ax
nop dword [eax]
movzx eax, cx
mov dword [ebp - 0x23c], eax
cmp cx, 0x43
jb 0x411ea6
push ecx
lea eax, [ebp - 0x234]
push eax
call fcn.00412780
mov dword [ebp - 4], 0
mov edi, dword [ebp - 0x224]
test edi, edi
je 0x411e63
mov edx, dword [esi]
mov esi, edx
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x411df7
mov ecx, dword [ebp - 0x23c]
cmp word [eax + 0x10], cx
jae 0x411de3
mov eax, dword [eax + 8]
jmp 0x411de7
mov esi, eax
mov eax, dword [eax]
cmp byte [eax + 0xd], 0
je 0x411dd8
cmp esi, edx
je 0x411df7
cmp cx, word [esi + 0x10]
jae 0x411e3b
lea eax, [ebp - 0x23c]
push ecx
mov dword [ebp - 0x240], eax
lea eax, [ebp - 0x240]
push eax
push ecx
mov ecx, dword [ebp - 0x238]
call fcn.00415200
mov ecx, dword [ebp - 0x238]
push eax
add eax, 0x10
push eax
push esi
lea eax, [ebp - 0x244]
push eax
call fcn.00415240
mov esi, dword [ebp - 0x244]
mov edi, dword [ebp - 0x224]
lea ecx, [esi + 0x14]
lea eax, [ebp - 0x234]
cmp ecx, eax
je 0x411e5d
cmp dword [ebp - 0x220], 8
push edi
cmovae eax, dword [ebp - 0x234]
push eax
call fcn.00410170
mov esi, dword [ebp - 0x238]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x220]
cmp edx, 8
jb 0x411ea6
mov ecx, dword [ebp - 0x234]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x411e9c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x411ef8
push edx
push ecx
call fcn.0047cf1c
add esp, 8
mov ecx, ebx
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x411eb0
sub ecx, edx
sar ecx, 1
lea ebx, [ebx + ecx*2]
add ebx, 2
movzx eax, word [ebx]
mov ecx, eax
test ax, ax
jne 0x411d90
cmp dword [esi + 4], 0
setne al
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.0047cf2f
mov esp, ebp
pop ebp
ret 4
call fcn.004896af
int3
Function at 0x41c860
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4da4e8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x50d080]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
push 0x1c
push str.url.dll_FileProtocolHandler
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], eax
call fcn.00410170
cmp dword [esi + 0x14], 8
mov edx, esi
jb 0x41c8bd
mov edx, dword [esi]
mov eax, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x18]
sub eax, ebx
mov ecx, dword [esi + 0x10]
cmp ecx, eax
ja 0x41c8f6
cmp dword [ebp - 0x14], 8
lea esi, [ebp - 0x28]
lea eax, [ecx + ecx]
cmovae esi, dword [ebp - 0x28]
lea edi, [ebx + ecx]
push eax
push edx
mov dword [ebp - 0x18], edi
lea eax, [esi + ebx*2]
push eax
call fcn.0047edb0
add esp, 0xc
xor eax, eax
mov word [esi + edi*2], ax
jmp 0x41c908
push ecx
push edx
mov byte [ebp - 0x2c], 0
push dword [ebp - 0x2c]
push ecx
lea ecx, [ebp - 0x28]
call fcn.0040a8f0
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 1
cmovae eax, dword [ebp - 0x28]
push 0
push eax
push str.rundll32.exe
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x41c960
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41c956
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41c97c
push edx
push ecx
call fcn.0047cf1c
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0047cf2f
mov esp, ebp
pop ebp
ret
call fcn.004896af
int3

Function at 0x41e5c0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push edi
mov edi, edx
mov eax, ecx
mov dword [ebp - 0x10], eax
test edi, edi
je 0x41e6b5
cmp dword [edi + 8], 0x70b
jne 0x41e6b5
mov edx, dword [edi + 0xc]
cmp edx, 0x201
je 0x41e5fa
cmp edx, 0x203
jne 0x41e6b5
push ebx
push esi
push 0x27da
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
mov esi, eax
lea eax, [ebp - 4]
mov dword [ebp - 0xc], esi
push eax
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push 0xb0
push esi
mov dword [ebp - 4], 0
call ebx
push dword [edi + 0x1c]
push dword [edi + 0x18]
push 0xb1
push esi
call ebx
mov esi, dword [edi + 0x1c]
xor ecx, ecx
sub esi, dword [edi + 0x18]
mov edx, 2
inc esi
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0047d846
lea ecx, [esi + esi]
mov edi, eax
push ecx
push 0
push edi
call fcn.0047f330
mov esi, dword [ebp - 0xc]
add esp, 0x10
push edi
push 0
push 0x43e
push esi
call ebx
push 1
push 0
push 0
push edi
push str.open
push dword [ebp - 0x10]
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push edi
call fcn.0047cf2a
add esp, 4
push dword [ebp - 4]
push dword [ebp - 8]
push 0xb1
push esi
call ebx
pop esi
pop ebx
mov eax, 1
pop edi
mov esp, ebp
pop ebp
ret
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x41fcc0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x45c
mov eax, dword [0x50d080]
xor eax, esp
mov dword [esp + 0x458], eax
push ebx
push esi
mov esi, ecx
mov ebx, edx
xor ecx, ecx
mov dword [esp + 0xc], esi
push edi
test ebx, ebx
mov eax, 5
cmovne eax, ecx
push eax
push 0x27e4
push esi
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0x208
lea eax, [esp + 0x54]
push 0
push eax
call fcn.0047f330
mov edi, dword [sym.imp.USER32.dll_LoadStringW]
lea eax, [esp + 0x5c]
add esp, 0xc
push 0x104
push eax
mov eax, ebx
neg eax
sbb eax, eax
add eax, 0x2782
push eax
push dword [0x510a78]
call edi
lea eax, [esp + 0x50]
push eax
push 0x27f5
push esi
mov esi, dword [sym.imp.USER32.dll_SetDlgItemTextW]
call esi
push 0x208
lea eax, [esp + 0x25c]
push 0
push eax
call fcn.0047f330
add esp, 0xc
lea eax, [esp + 0x258]
push 0x104
push eax
mov eax, ebx
neg eax
sbb eax, eax
add eax, 0x2784
push eax
push dword [0x510a78]
call edi
mov edi, dword [esp + 0x10]
lea eax, [esp + 0x258]
push eax
push 0x27f6
push edi
call esi
push 0x27e0
push edi
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0x27e6
push edi
mov esi, eax
call dword [sym.imp.USER32.dll_GetDlgItem]
mov edi, eax
lea eax, [esp + 0x20]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowRect]
lea eax, [esp + 0x30]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x34]
sub eax, ecx
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
push eax
push dword [esp + 0x14]
mov dword [esp + 0x20], ecx
call dword [sym.imp.USER32.dll_ScreenToClient]
test ebx, ebx
je 0x41fe07
mov eax, dword [esp + 0x28]
sub eax, dword [esp + 0x20]
jmp 0x41fe37
lea eax, [esp + 0x40]
push eax
push 0x27e4
push dword [esp + 0x18]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ecx, dword [esp + 0x40]
sub ecx, dword [esp + 0x48]
mov eax, dword [esp + 0x28]
sub ecx, dword [esp + 0x20]
add eax, 0xfffffffd
add eax, ecx
push 1
push dword [esp + 0x20]
push eax
push dword [esp + 0x24]
push dword [esp + 0x24]
push esi
call dword [sym.imp.USER32.dll_MoveWindow]
xor eax, eax
test ebx, ebx
push 0
sete al
push eax
push 0xcf
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
push 0xfffffffffffffff0
push edi
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov ecx, eax
and eax, 0xfffffff7
or ecx, 8
test ebx, ebx
cmove eax, ecx
push eax
push 0xfffffffffffffff0
push edi
call dword [sym.imp.USER32.dll_SetWindowLongW]
push 0x27
push 0
push 0
push 0
push 0
push 0
push edi
call dword [sym.imp.USER32.dll_SetWindowPos]
test ebx, ebx
je 0x41fea1
mov eax, 0x4f46f8
jmp 0x41feb4
cmp dword [0x50db0c], 8
mov eax, 0x50daf8
cmovae eax, dword [0x50daf8]
push eax
push esi
call dword [sym.imp.USER32.dll_SetWindowTextW]
test ebx, ebx
je 0x41fec7
push esi
call dword [sym.imp.USER32.dll_SetFocus]
mov ecx, dword [esp + 0x464]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0047cf2f
mov esp, ebp
pop ebp
ret
Function at 0x4205f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push 0x4fadc8
push dword [ebp + 8]
xor bl, bl
call fcn.0048bd9c
mov esi, eax
add esp, 8
test esi, esi
je 0x420637
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
cmp ecx, eax
je 0x420628
push esi
sub eax, ecx
push eax
push 1
push ecx
call fcn.004ab013
add esp, 0x10
push esi
call fcn.004aacac
add esp, 4
mov al, 1
pop esi
pop ebx
pop ebp
ret
pop esi
mov al, bl
pop ebx
pop ebp
ret
Function at 0x422fb0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4daa10
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x50d080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
call fcn.00423630
mov ecx, dword [ebp + 0xc]
mov esi, eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], esi
mov word [esi + 0xc], 0
push dword [ecx]
lea ecx, [esi + 0x10]
call fcn.00405a50
mov dword [esi + 0x28], 0
mov eax, esi
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 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 0xc

Function at 0x423e40
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x50d080]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x38]
mov edi, ecx
push eax
push edi
mov esi, edx
xor bl, bl
call fcn.004af21b
add esp, 8
test eax, eax
jne 0x423ec1
push 0x4fae40
push edi
call fcn.0048bd9c
mov edi, eax
add esp, 8
test edi, edi
je 0x423ec1
mov ebx, dword [ebp - 0x24]
mov ecx, esi
push esi
push ebx
call fcn.00417a50
test ebx, ebx
je 0x423ea5
push edi
push ebx
push 1
push dword [esi]
call fcn.004af7a7
add esp, 0x10
mov ecx, esi
push esi
push eax
call fcn.00417a50
push edi
call fcn.004aacac
add esp, 4
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047cf2f
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047cf2f
mov esp, ebp
pop ebp
ret
Function at 0x429250
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x204
mov eax, dword [0x50d080]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x510a74]
push ebx
mov ebx, dword [ebp + 8]
inc eax
push esi
push eax
push ecx
mov dword [0x510a74], eax
lea eax, [ebp - 0x204]
push str._ld_ld
push eax
call fcn.0041bbe0
add esp, 0x10
push ebx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea edx, [ebp - 0x204]
mov esi, edx
nop dword [eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x4292a0
push edi
sub edx, esi
lea edi, [ebx - 2]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4292b1
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
add ebx, 0xfffffffe
rep movsb byte es:[edi], byte [esi]
pop edi
nop
mov ax, word [ebx + 2]
lea ebx, [ebx + 2]
test ax, ax
jne 0x4292d0
mov eax, dword [str..dat]
mov ecx, dword [ebp - 4]
mov dword [ebx], eax
xor ecx, ebp
mov eax, dword [0x4fb0d0]
mov dword [ebx + 4], eax
mov ax, word [0x4fb0d4]
pop esi
mov word [ebx + 8], ax
pop ebx
call fcn.0047cf2f
mov esp, ebp
pop ebp
ret 4
Function at 0x429640
Capabilities:
Check if file exists
Delete file
Get file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x50d080]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0x10]
xor ebx, ebx
mov dword [ebp - 0x210], ecx
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0x214], eax
mov dword [ebp - 0x21c], esi
mov dword [ebp - 0x218], ecx
test eax, eax
je 0x4297bf
cmp dword [ebp + 0xc], ebx
je 0x4297bf
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor ecx, ecx
cmp eax, 0xffffffff
sete cl
je 0x4296a6
push esi
call edi
mov ecx, eax
test ecx, ecx
je 0x4297aa
mov ecx, dword [ebp - 0x210]
lea eax, [ebp - 0x20c]
push eax
call fcn.00429250
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
sete cl
je 0x4296e2
lea eax, [ebp - 0x20c]
push eax
call edi
mov ecx, eax
test ecx, ecx
je 0x42978f
lea eax, [ebp - 0x20c]
push 0x4fadc8
push eax
call fcn.0048bd9c
mov esi, eax
add esp, 8
test esi, esi
je 0x42978f
push esi
push dword [ebp + 0xc]
push 1
push dword [ebp - 0x214]
call fcn.004ab013
push esi
call fcn.004aacac
push dword [ebp - 0x218]
xor edx, edx
lea ecx, [ebp - 0x20c]
push 2
xor ebx, ebx
call fcn.00446aa0
mov esi, eax
add esp, 0x1c
test esi, esi
je 0x42978f
mov eax, dword [esi]
cmp eax, 1
je 0x429757
mov dword [0x510a80], 0x80000
mov ecx, 0x80000
jmp 0x429775
mov ecx, dword [esi + 4]
push 2
push 0
push dword [ebp - 0x21c]
push 0
call fcn.00446380
mov ecx, eax
mov eax, dword [esi]
mov dword [0x510a80], ecx
xor ebx, ebx
test ecx, ecx
mov ecx, esi
sete bl
cmp eax, 1
jne 0x42978a
call fcn.00446fc0
jmp 0x42978f
call fcn.00441340
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4297aa
lea eax, [ebp - 0x20c]
push eax
call edi
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047cf2f
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [ebp - 4]
mov eax, ebx
pop esi
xor ecx, ebp
pop ebx
call fcn.0047cf2f
mov esp, ebp
pop ebp
ret 0x10
Function at 0x42a080
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4db3b9
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x50d080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], 0
xor eax, eax
mov edi, dword [ebp + 8]
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 7
mov word [edi], ax
mov dword [ebp - 4], eax
mov ecx, dword [esi + 0x48]
mov dword [ebp - 0x10], 1
cmp ecx, 0xffffffff
jne 0x42a16b
lea ebx, [esi + 0x30]
cmp ebx, esi
je 0x42a0f7
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x42a0ec
mov eax, dword [esi]
push dword [esi + 0x10]
mov ecx, ebx
push eax
call fcn.00410170
push ebx
call fcn.00416880
add esp, 4
lea ecx, [esi + 0x18]
cmp dword [esi + 0x2c], 8
jb 0x42a10c
mov ecx, dword [esi + 0x18]
push dword [esi + 0x28]
push ecx
mov ecx, ebx
call fcn.00409280
cmp dword [ebx + 0x14], 8
jb 0x42a11f
mov ebx, dword [ebx]
lea eax, [esi + 0x4c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esi + 0x48], eax
cmp eax, 0xffffffff
je 0x42a1bc
mov ecx, 0x2e
cmp cx, word [esi + 0x78]
jne 0x42a17a
lea ebx, [esi + 0x4c]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x42a1bc
mov eax, 0x2e
cmp ax, word [esi + 0x78]
jne 0x42a1bc
push ebx
push dword [esi + 0x48]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x42a17a
jmp 0x42a1bc
lea eax, [esi + 0x4c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x42a1bc
cmp edi, esi
je 0x42a193
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x42a188
mov eax, dword [esi]
push dword [esi + 0x10]
mov ecx, edi
push eax
call fcn.00410170
push edi
call fcn.00416880
add esp, 4
add esi, 0x78
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42a1a4
sub ecx, edx
sar ecx, 1
push ecx
push esi
mov ecx, edi
call fcn.00409280
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4