joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100410e0
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0x10
push ebp
push 1
push 1
mov ebp, ecx
call dword [sym.imp.KERNEL32.dll_SleepEx]
mov eax, dword [ebp + 0x250]
test eax, eax
je 0x100412cf
push ebx
push esi
push edi
push 0
push 1
push 0
lea ecx, [ebp + 0x50]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_WSAWaitForMultipleEvents]
mov esi, eax
test esi, esi
je 0x100412cc
cmp esi, 0x102
je 0x100411c9
cmp esi, 0xffffffff
je 0x100412bd
cmp esi, 1
jne 0x10041145
mov eax, dword [ebp + 0x54]
push eax
call dword [sym.imp.WS2_32.dll_WSAResetEvent]
jmp 0x1004129b
mov ecx, dword [ebp + esi*4 + 0x50]
push ecx
call dword [sym.imp.WS2_32.dll_WSAResetEvent]
push esi
mov ecx, ebp
call fcn.10041430
mov edi, eax
test edi, edi
je 0x1004129b
mov ebx, dword [edi + 0x40]
lea edx, [esp + 0x18]
push edx
push 0
lea ecx, [esp + 0x1c]
push ecx
mov dword [esp + 0x20], 0
mov eax, dword [ebx + 4]
push edi
push eax
call dword [sym.imp.WS2_32.dll_WSAGetOverlappedResult]
test eax, eax
jne 0x100411a3
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e4
je 0x100411c9
mov edx, dword [ebp]
mov eax, dword [edx + 0x1c]
push esi
push ebx
mov ecx, ebp
call eax
jmp 0x100411c9
mov edx, dword [ebx]
mov eax, dword [esp + 0x14]
mov edx, dword [edx + 8]
push edi
push eax
mov ecx, ebx
call edx
test eax, eax
je 0x100411c9
test eax, 0x8000
je 0x100411c9
mov eax, dword [ebp]
mov edx, dword [eax + 0x1c]
push esi
push ebx
mov ecx, ebp
call edx
mov eax, dword [0x10082e4c]
mov ecx, dword [ebp + 0x4c]
mov edi, dword [eax]
mov edx, dword [ecx]
mov edx, dword [edx + 0x18]
push 0
push 1
lea eax, [esp + 0x18]
push eax
call edx
cmp eax, 1
jne 0x1004129b
lea esp, [esp]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x1004129b
push 0x100410b0
mov dword [eax + 0x10], edi
mov eax, dword [esp + 0x14]
mov ecx, dword [edi + 4]
push eax
push 0x10
lea edx, [eax + 0x106c]
push edx
push 0
lea edx, [esp + 0x30]
push edx
mov edx, dword [eax + 0x20]
push edx
add eax, 0x24
push eax
push ecx
call dword [sym.imp.WS2_32.dll_WSASendTo]
cmp eax, 0xffffffff
jne 0x1004127f
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp esi, 0x3e5
je 0x1004127f
mov eax, dword [0x10081e1c]
mov edx, dword [esp + 0x10]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x4c]
call eax
cmp esi, 0x2733
je 0x1004126f
cmp esi, 8
je 0x1004126f
cmp esi, 0x2747
je 0x1004126f
push esi
push str.WSASend_____Unknow_NERROR:__d
jmp 0x10041275
push esi
push str.WSASend_____NERR_TOO_MANY_OUTSTANDING:__d
push 0
call fcn.1001ce30
add esp, 0xc
mov ecx, dword [ebp + 0x4c]
mov edx, dword [ecx]
mov edx, dword [edx + 0x18]
push 0
push 1
lea eax, [esp + 0x18]
push eax
call edx
cmp eax, 1
je 0x100411f0
push 1
push 1
call dword [sym.imp.KERNEL32.dll_SleepEx]
mov eax, dword [ebp + 0x250]
test eax, eax
jne 0x10041101
pop edi
pop esi
pop ebx
pop ebp
add esp, 0x10
ret 8
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.10018490
add esp, 4
pop edi
pop esi
pop ebx
xor eax, eax
pop ebp
add esp, 0x10
ret 8
Function at 0x10041ac0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x1006aec3
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x1007e090]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
lea eax, [esi + 4]
mov dword [esi], vtable.CSimpleThread.0
mov dword [esi + 0x18], 1
mov ecx, 0x10041e20
sub ecx, eax
xor edi, edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x1c], edi
push 0xe
sub ecx, 0xe
push eax
mov byte [eax], 0xb8
mov dword [eax + 1], esi
mov dword [eax + 5], 0x50240487
mov byte [eax + 9], 0xe9
mov dword [eax + 0xa], ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov dword [esp + 0x14], edi
mov dword [esi], vtable.CThreadControl.0
xor eax, eax
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], eax
lea edx, [esi + 0x44]
mov dword [esi + 0x30], eax
push edx
mov dword [esi + 0x2c], 0xffffffff
call fcn.10026f20
mov byte [esp + 0x14], 1
mov dword [esi + 0x40], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x18], 1
mov dword [esi + 0x14], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x34], edi
mov dword [esp + 0x14], 0xffffffff
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 4

Function at 0x10041e80
Capabilities:
Create thread

Disassembly:
cmp dword [esi + 0x14], 0
jne 0x10041eb3
lea eax, [esi + 0x1c]
push eax
mov eax, dword [esp + 8]
push 4
push ecx
lea edx, [esi + 4]
push edx
push eax
push 0
call fcn.10044bb3
add esp, 0x18
test eax, eax
mov dword [esi + 0x14], eax
je 0x10041ebb
mov ecx, dword [esp + 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov eax, 1
ret 8
xor eax, eax
ret 8

Function at 0x10041ec0
Capabilities:
Resume thread

Disassembly:
mov eax, dword [esi + 0x14]
test eax, eax
push ebx
je 0x10041f03
cmp dword [esi + 0x18], 1
jne 0x10041f03
mov ebx, dword [sym.imp.KERNEL32.dll_ResumeThread]
push eax
call ebx
cmp eax, 0xffffffff
jne 0x10041ee0
xor eax, eax
pop ebx
ret
cmp eax, 1
jbe 0x10041efc
push edi
lea edi, [eax - 1]
test edi, edi
jbe 0x10041efb
lea ecx, [ecx]
mov eax, dword [esi + 0x14]
push eax
call ebx
sub edi, 1
jne 0x10041ef0
pop edi
mov dword [esi + 0x18], 0
mov eax, 1
pop ebx
ret

Function at 0x10041f10
Capabilities:
Resume thread
Suspend thread

Disassembly:
mov eax, dword [esi + 0x14]
test eax, eax
je 0x10041f55
cmp dword [esi + 0x18], 0
jne 0x10041f55
push eax
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x10041f33
mov dword [esi + 0x18], 0
xor eax, eax
ret
test eax, eax
jbe 0x10041f4e
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ResumeThread]
push edi
mov edi, eax
mov eax, dword [esi + 0x14]
push eax
call ebx
sub edi, 1
jne 0x10041f41
pop edi
pop ebx
mov dword [esi + 0x18], 1
mov eax, 1
ret

Function at 0x10042345
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1007e090]
jne 0x1004234f
repz ret
jmp fcn.10045338
Function at 0x1004cfde
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x1007eb58]
je 0x1004cff9
inc edi
cmp edi, 0x17
jb 0x1004cfea
cmp edi, 0x17
jae 0x1004d179
push ebp
push 3
call fcn.1005d20d
cmp eax, 1
pop ecx
je 0x1004d145
push 3
call fcn.1005d20d
test eax, eax
pop ecx
jne 0x1004d02d
cmp dword [0x100812e0], 1
je 0x1004d145
cmp ebx, 0xfc
je 0x1004d178
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x100819d8
push ebp
call fcn.10042544
add esp, 0xc
test eax, eax
je 0x1004d063
push esi
push esi
push esi
push esi
push esi
call fcn.10043b11
add esp, 0x14
push 0x104
mov esi, 0x100819f1
push esi
push 0
mov byte [0x10081af5], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x1004d0a7
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.10042544
add esp, 0xc
test eax, eax
je 0x1004d0a7
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.10043b11
add esp, 0x14
push esi
call fcn.10044c70
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x1004d0ec
push esi
call fcn.10044c70
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x10081cec
push 0x1006dd80
sub ecx, eax
push ecx
push eax
call fcn.1004b4e9
add esp, 0x14
test eax, eax
je 0x1004d0ec
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.10043b11
add esp, 0x14
jmp 0x1004d0ee
xor esi, esi
push 0x100705b0
push ebx
push ebp
call fcn.10059afc
add esp, 0xc
test eax, eax
je 0x1004d10e
push esi
push esi
push esi
push esi
push esi
call fcn.10043b11
add esp, 0x14
push dword [edi*8 + 0x1007eb5c]
push ebx
push ebp
call fcn.10059afc
add esp, 0xc
test eax, eax
je 0x1004d130
push esi
push esi
push esi
push esi
push esi
call fcn.10043b11
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.1005d050
add esp, 0xc
jmp 0x1004d178
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x1004d178
cmp ebp, 0xffffffff
je 0x1004d178
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x1007eb5c]
push dword [esi]
call fcn.10044c70
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x1005d050
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.100458e2
xor ebx, ebx
cmp dword [0x10081d70], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x1005d126
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x1005d206
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x1006fa58
push edi
call esi
cmp eax, ebx
je 0x1005d206
push eax
call fcn.10045874
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x10081d70], eax
call esi
push eax
call fcn.10045874
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x10081d74], eax
call esi
push eax
call fcn.10045874
mov dword [0x10081d78], eax
lea eax, [ebp - 0xc]
push eax
call fcn.10046129
test eax, eax
pop ecx
pop ecx
je 0x1005d0f4
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.10043b11
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x1005d126
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.10045874
cmp eax, ebx
pop ecx
mov dword [0x10081d80], eax
je 0x1005d126
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.10045874
pop ecx
mov dword [0x10081d7c], eax
mov eax, dword [0x10081d7c]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x1005d1ab
cmp dword [0x10081d80], ecx
je 0x1005d1ab
push eax
call fcn.100458eb
push dword [0x10081d80]
mov esi, eax
call fcn.100458eb
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x1005d1ab
cmp edi, ebx
je 0x1005d1ab
call esi
cmp eax, ebx
je 0x1005d178
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x1005d178
test byte [ebp - 0x18], 1
jne 0x1005d1ab
lea eax, [ebp - 0x10]
push eax
call fcn.100461d8
test eax, eax
pop ecx
je 0x1005d193
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.10043b11
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x1005d1a2
or dword [ebp + 0x10], 0x200000
jmp 0x1005d1e6
or dword [ebp + 0x10], 0x40000
jmp 0x1005d1e6
mov eax, dword [0x10081d74]
cmp eax, dword [ebp - 8]
je 0x1005d1e6
push eax
call fcn.100458eb
cmp eax, ebx
pop ecx
je 0x1005d1e6
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x1005d1e6
mov eax, dword [0x10081d78]
cmp eax, dword [ebp - 8]
je 0x1005d1e6
push eax
call fcn.100458eb
cmp eax, ebx
pop ecx
je 0x1005d1e6
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x10081d70]
call fcn.100458eb
cmp eax, ebx
pop ecx
je 0x1005d206
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x1005d208
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x403480
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push esi
push 0x40
push 0x3000
push edx
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov esi, eax
test esi, esi
jne 0x4034d4
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
mov edx, str.Memory_allocation_failed._Error_code:
call fcn.004019f0
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, esi
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_int_]
push 0x401c10
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, str.Memory_allocated_at_address:
call fcn.004019f0
push 0x402630
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::ios_base_____cdecl___class_std::ios_base___]
push esi
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___void_const__]
push 0x402610
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::ios_base_____cdecl___class_std::ios_base___]
push 0x401c10
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x407878
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 2
lea eax, [ebp - 4]
push eax
push 0x20000001
push str._x_sys_default_locale
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov esi, dword [ebp + 0xc]
neg eax
sbb eax, eax
xor ecx, ecx
and eax, dword [ebp - 4]
push ecx
push ecx
push esi
push eax
push dword [ebp + 8]
mov dword [ebp - 4], eax
push ecx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push eax
push dword [esi]
call fcn.00407854
pop esi
leave
ret 8

Function at 0x40845c
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40849b
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40849b
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40849b
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40849b
cmp dword [ecx + 0x74], 0xe
jbe 0x40849b
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x401c57
Capabilities:
Check os version
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2d4
mov eax, dword [0xa380c0]
xor eax, ebp
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp ax, 6
je 0x401ca0
push str.SetDefaultDllDirectories
push 0xa05570
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x401ca0
push 0xc00
call eax
test eax, eax
jne 0x401d3c
push 0x106
lea eax, [ebp - 0x2d4]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x401d3c
cmp eax, 0x104
ja 0x401d3c
push 0x5c
pop ecx
cmp word [ebp + eax*2 - 0x2d6], cx
je 0x401cd7
mov word [ebp + eax*2 - 0x2d4], cx
inc eax
mov cl, byte [str.userenv]
push esi
mov esi, str.userenv
test cl, cl
je 0x401d3b
push ebx
push edi
lea edi, [ebp - 0x2d4]
push 0x6c
lea edi, [edi + eax*2]
pop ebx
mov edx, edi
inc esi
movzx eax, cl
mov cl, byte [esi]
inc esi
mov word [edx], ax
lea edx, [edx + 2]
test cl, cl
jne 0x401cf8
push 0x2e
pop eax
push 0x64
mov word [edx], ax
pop eax
mov word [edx + 2], ax
xor eax, eax
push 8
push eax
mov word [edx + 8], ax
lea eax, [ebp - 0x2d4]
push eax
mov word [edx + 4], bx
mov word [edx + 6], bx
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov cl, byte [esi]
test cl, cl
jne 0x401cf5
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0098b66f
leave
ret
Function at 0x4053f0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ecx
xor edx, edx
xor eax, eax
push ebx
push esi
mov esi, dword [ebp + 8]
inc eax
push edi
push 0x20
pop ecx
or dword [esi + 0x90], 0xffffffff
lea ebx, [esi + 0xc8]
or dword [esi + 0x94], 0xffffffff
mov dword [esi + 0x30], eax
mov dword [esi + 0x44], eax
mov eax, dword [esi + 4]
cmp eax, ecx
mov dword [esi + 0x78], edx
cmova eax, ecx
mov dword [esi + 0x7c], edx
mov dword [esi + 0x54], eax
mov eax, dword [esi]
mov dword [esi + 0x34], edx
mov dword [esi + 0x38], edx
mov dword [esi + 0x3c], edx
mov dword [esi + 0x40], edx
mov dword [esi + 0x70], edx
mov dword [esi + 0x88], edx
mov dword [esi + 0x68], edx
mov dword [esi + 0x6c], edx
mov dword [esi + 0x48], edx
mov dword [esi + 0x4c], edx
mov dword [esi + 0x50], edx
mov dword [esi + 0x60], edx
mov dword [esi + 0x64], edx
mov dword [esi + 0x80], edx
mov dword [esi + 0x84], edx
mov dword [esi + 0x58], edx
cmp eax, dword [esi + 0x20]
je 0x4054a8
mov edi, ebx
mov dword [ebp - 4], ecx
mov eax, ecx
cmp dword [edi + 8], edx
je 0x405484
push edi
call fcn.004053c5
mov eax, dword [ebp - 4]
xor edx, edx
add edi, 0x28
sub eax, 1
mov dword [ebp - 4], eax
jne 0x405474
cmp dword [esi + 0x5c], 0
je 0x4054a3
mov eax, dword [esi + 0x14]
push dword [esi + 0x5c]
push eax
call dword [eax + 4]
and dword [esi + 0x5c], 0
mov eax, dword [esi]
mov dword [esi + 0x20], eax
push dword [esi + 0x10]
lea eax, [esi + 0x98]
push eax
call fcn.0040639a
mov ecx, dword [esi + 0x58]
and dword [esi + 0x24], 0
and dword [esi + 0x28], 0
lea eax, [ecx + 5]
imul edx, eax, 0x28
lea eax, [ecx + 1]
mov dword [esi + 0x58], eax
add edx, esi
push edx
mov dword [ebp - 4], edx
call fcn.0040539f
mov edi, eax
test edi, edi
jne 0x405529
mov eax, dword [ebp - 4]
add eax, 0x20
push eax
call fcn.0040652c
mov edi, eax
test edi, edi
jne 0x405529
mov eax, dword [ebp - 4]
add eax, 0x1c
push eax
call fcn.0040652c
mov edi, eax
test edi, edi
jne 0x405529
push dword [ebp - 4]
call fcn.00406311
mov edi, eax
test edi, edi
je 0x405529
and dword [esi + 0x44], 0
push 0x20
pop esi
push ebx
call fcn.00405321
add ebx, 0x28
sub esi, 1
jne 0x405518
mov esi, dword [ebp + 8]
movzx eax, di
or eax, 0x80070000
test edi, edi
cmovle eax, edi
test eax, eax
je 0x40553d
mov dword [esi + 0x40], eax
xor edx, edx
cmp dword [esi + 0x38], edx
jne 0x405551
cmp dword [esi + 0x40], edx
jne 0x405551
cmp dword [esi + 0x3c], edx
jne 0x405551
mov dword [esi + 0x44], edx
xor ecx, ecx
cmp dword [esi + 0x44], edx
pop edi
pop esi
cmovne eax, ecx
pop ebx
leave
ret 4

Function at 0x406639
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
xor esi, esi
push eax
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
push esi
call fcn.009e3dbb
mov ecx, dword [ebp + 8]
add esp, 0x18
mov dword [ecx], eax
test eax, eax
jne 0x406665
call fcn.0040654b
mov esi, eax
mov eax, esi
pop esi
leave
ret 0xc
Function at 0x408108
Capabilities:
Create directory

Disassembly:
push 0x44
mov eax, 0xa0273b
call fcn.0098b91a
cmp byte [0xa39f54], 0
mov edi, dword [ebp + 8]
jne 0x408155
push edi
lea eax, [ebp - 0x18]
push eax
call fcn.004076e2
xor ebx, ebx
push ebx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push dword [ebp - 0x18]
mov esi, eax
call fcn.0098b8e4
pop ecx
test esi, esi
jne 0x408163
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x408167
xor al, al
jmp 0x40819c
xor ebx, ebx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x408144
mov al, 1
jmp 0x40819c
lea ecx, [ebp - 0x50]
call fcn.0040898f
lea ecx, [ebp - 0x28]
call fcn.00406b2f
push ebx
push edi
lea ecx, [ebp - 0x50]
mov dword [ebp - 4], ebx
call fcn.00408b57
test al, al
je 0x408191
mov ebx, dword [ebp - 0x30]
shr ebx, 4
and bl, 1
push dword [ebp - 0x28]
call fcn.0098b8e4
pop ecx
mov al, bl
call fcn.0098b8f7
ret 4

Function at 0x4081a4
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0xa39f54], 0
jne 0x4081e2
push esi
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.004076e2
push 0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.0098b8e4
pop ecx
test esi, esi
pop esi
jne 0x4081de
xor al, al
jmp 0x4081f2
mov al, 1
jmp 0x4081f2
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
setne al
leave
ret 4

Function at 0x408368
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, dword [ebp + 8]
push esi
call fcn.00409168
cmp eax, 0xffffffff
je 0x408395
mov ecx, eax
and cl, 0x11
cmp cl, 1
jne 0x408395
and eax, 0xfffffffe
push eax
push esi
call fcn.004088fe
test al, al
je 0x4083bf
cmp byte [0xa39f54], 0
push esi
jne 0x4083c7
lea eax, [ebp - 0xc]
push eax
call fcn.004076e2
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.0098b8e4
pop ecx
test esi, esi
jne 0x4083c3
xor al, al
jmp 0x4083d2
mov al, 1
jmp 0x4083d2
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne al
pop esi
leave
ret 4

Function at 0x408646
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0xa39f54], 0
jne 0x408682
push esi
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.004076e2
push dword [eax]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.0098b8e4
pop ecx
test esi, esi
pop esi
jne 0x40867e
xor al, al
jmp 0x408690
mov al, 1
jmp 0x408690
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
setne al
leave
ret 4
Function at 0x408858
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0xa39f54], 0
jne 0x40888c
push esi
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.004076e2
push dword [eax]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.0098b8e4
pop ecx
test esi, esi
pop esi
jmp 0x408897
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
setne al
leave
ret 4

Function at 0x4088fe
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0xa39f54], 0
jne 0x40893d
push esi
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.004076e2
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.0098b8e4
pop ecx
test esi, esi
pop esi
jne 0x408939
xor al, al
jmp 0x40894e
mov al, 1
jmp 0x40894e
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne al
leave
ret 8

Function at 0x409168
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0xa39f54], 0
jne 0x40919c
push esi
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.004076e2
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.0098b8e4
pop ecx
mov eax, esi
pop esi
jmp 0x4091af
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, eax
mov eax, ecx
leave
ret 4

Function at 0x4093a5
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push esi
push eax
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4093cf
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4093cf
xor al, al
jmp 0x4093e3
mov eax, dword [ebp + 8]
xor ecx, ecx
mov edx, dword [ebp - 4]
add ecx, esi
adc edx, 0
mov dword [eax], ecx
mov dword [eax + 4], edx
mov al, 1
pop esi
leave
ret 4