joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40cb00
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, edx
push edi
mov edi, ecx
mov eax, esi
mov dword [esi + 0x10], 0
cmp dword [esi + 0x14], 8
jb 0x40cb1c
mov eax, dword [esi]
xor ecx, ecx
push ecx
push ecx
push edi
mov word [eax], cx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov ebx, eax
test ebx, ebx
je 0x40cb58
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00410378
add esp, 4
push ebx
mov ebx, eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
jne 0x40cb89
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xcb
je 0x40cb80
test eax, eax
jle 0x40cb71
movzx eax, ax
or eax, 0x80070000
push eax
push edi
push str.Failed_to_read_environment_variable___s___HRESULT:_0x_X
call fcn.00406490
add esp, 0xc
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, ebx
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40cb90
sub ecx, edx
sar ecx, 1
push ecx
push ebx
mov ecx, esi
call fcn.00404f00
push ebx
call fcn.00410373
add esp, 4
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x410ab7
Capabilities:
Parse pe header

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

Function at 0x413250
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41327d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41327d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x41ad00
Capabilities:
Terminate process

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 0xa7], 0
je 0x41ad24
push str.Stop_signal_received
lea ecx, [esi + 8]
call dword [sym.imp.Qt5Core.dll_public:_class_QTextStream____thiscall_QTextStream::operator___char_const__]
push eax
call dword [sym.imp.Qt5Core.dll_class_QTextStream____cdecl_endl_class_QTextStream__]
add esp, 4
mov ecx, dword [esi + 0x58]
lea eax, [esi + 0x84]
push 3
push eax
call fcn.0041bb50
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
pop esi
int3

Function at 0x41b280
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d7609
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x549170]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [ecx + 4]
push 1
call dword [sym.imp.Qt5Core.dll_public:_bool___thiscall_QSharedMemory::attach_enum_QSharedMemory::AccessMode_]
test al, al
jne 0x41b2f4
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
lea ecx, [ebp - 0x24]
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QMessageLogger::constructor_char_const___int__char_const__]
mov ecx, eax
call dword [sym.imp.Qt5Core.dll_public:_class_QDebug___thiscall_QMessageLogger::debug_void_]
push str.Shared_memory_attach_failed
mov ecx, eax
mov dword [ebp - 4], 0
call dword [sym.imp.Qt5Core.dll_public:_class_QDebug____thiscall_QDebug::operator___char_const__]
lea ecx, [ebp - 0x10]
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QDebug::destructor_void_]
push 2
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret

Function at 0x41baa0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d3b99
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push esi
mov eax, dword [0x549170]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push dword [ebp + 8]
mov ecx, dword [esi + 4]
call fcn.0041b720
cmp eax, 0xffffffff
jne 0x41bb18
lea eax, [ebp + 8]
push eax
push 0
push 0
push 0
lea ecx, [ebp - 0x20]
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QMessageLogger::constructor_char_const___int__char_const__]
mov ecx, eax
call dword [sym.imp.Qt5Core.dll_public:_class_QDebug___thiscall_QMessageLogger::debug_void_]
push str.Worker_not_found_by_hash
mov ecx, eax
mov dword [ebp - 4], 0
call dword [sym.imp.Qt5Core.dll_public:_class_QDebug____thiscall_QDebug::operator___char_const__]
lea ecx, [ebp + 8]
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QDebug::destructor_void_]
push 3
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
mov ecx, dword [esi + 4]
push eax
call fcn.0041b880
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x41bb50
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d77c2
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push esi
push edi
mov eax, dword [0x549170]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push dword [ebp + 8]
mov ecx, dword [edi + 4]
call fcn.0041b5d0
mov esi, eax
cmp esi, 0xffffffff
jne 0x41bbcb
lea eax, [ebp + 8]
push eax
push 0
push 0
push 0
lea ecx, [ebp - 0x24]
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QMessageLogger::constructor_char_const___int__char_const__]
mov ecx, eax
call dword [sym.imp.Qt5Core.dll_public:_class_QDebug___thiscall_QMessageLogger::debug_void_]
push str.Worker_not_found_by_hash
mov ecx, eax
mov dword [ebp - 4], 0
call dword [sym.imp.Qt5Core.dll_public:_class_QDebug____thiscall_QDebug::operator___char_const__]
lea ecx, [ebp + 8]
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QDebug::destructor_void_]
push 3
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
lea ecx, [ebp - 0x38]
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QMessageLogger::constructor_char_const___int__char_const__]
mov ecx, eax
call dword [sym.imp.Qt5Core.dll_public:_class_QDebug___thiscall_QMessageLogger::debug_void_]
push esi
push str.in_setworkerstatus_with_pos:
mov ecx, eax
mov dword [ebp - 4], 1
call dword [sym.imp.Qt5Core.dll_public:_class_QDebug____thiscall_QDebug::operator___char_const__]
mov ecx, eax
call dword [sym.imp.Qt5Core.dll_public:_class_QDebug____thiscall_QDebug::operator___int_]
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QDebug::destructor_void_]
push dword [ebp + 0xc]
mov ecx, dword [edi + 4]
push esi
call fcn.0041b310
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x41c69e
Capabilities:
Query environment variable

Disassembly:
push ebx
xor eax, eax
push eax
push eax
push eax
push eax
call fcn.00465f10
push dword [esp + 0x1c]
call fcn.004236d0
mov edx, dword [esp + 0x18]
lea ecx, [esp]
call fcn.00423000
push edx
call fcn.00465d70
pop edx
push eax
push edx
call fcn.00465d70
pop edx
push eax
push 0x3e8
call fcn.00463790
call fcn.00465ea0
lea eax, [esp + 8]
push eax
call fcn.00465e10
push 0x3e8
mov eax, dword [esp + 8]
push eax
mov eax, str.WINDIR
push eax
call sub.KERNEL32.dll_GetEnvironmentVariableW
mov edx, 0x4ff050
lea ecx, [esp + 8]
call fcn.00423008
push edx
call fcn.00465d70
pop edx
push eax
push 0xe
mov edx, dword [esp + 0xc]
push edx
call fcn.00465d70
pop edx
push eax
push edx
call fcn.00465db0
mov edx, str.System32
push edx
call fcn.00465db0
call fcn.00465ea0
push edx
call fcn.00465d70
pop edx
push eax
mov edx, 0x502e52
push edx
call fcn.00465db0
mov edx, dword [esp + 0x10]
push edx
call fcn.00465db0
call fcn.00465ea0
mov edx, dword [esp + 0x14]
push edx
call fcn.00465d70
pop edx
push eax
push edx
call fcn.00465db0
mov edx, str.System32cmd.exe
push edx
call fcn.00465db0
call fcn.004236b2
add dword [esp], edx
call fcn.004236b2
add dword [esp + 4], edx
call fcn.004236b2
add dword [esp + 8], edx
call fcn.0043f5fe
call fcn.004236d0
mov dword [esp + 0xc], eax
cmp dword [esp + 0xc], 0
je 0x41c82c
push dword [esp + 0xc]
call fcn.0043fb63
and eax, eax
je 0x41c823
push dword [esp + 0xc]
call fcn.0043fbaa
and eax, eax
je 0x41c821
mov edx, dword [esp + 8]
push edx
call fcn.00465d70
pop edx
push eax
push edx
call fcn.00465db0
push edx
call fcn.00465d70
pop edx
push eax
push edx
call fcn.00465d70
pop edx
push eax
push edx
call fcn.00465d70
pop edx
push eax
push 0x18
push dword [esp + 0x20]
call fcn.0043fbd0
call fcn.004236b2
add dword [esp], edx
call fcn.0040f1de
pop eax
mov edx, 0x50b49e
push edx
call fcn.00465db0
lea eax, [esp + 0xc]
push eax
call fcn.00465e10
jmp 0x41c7ac
push dword [esp + 0xc]
call fcn.0043fc3d
mov edx, dword [esp + 8]
push edx
call fcn.00465d70
pop edx
push eax
push edx
call fcn.00465db0
pop eax
push eax
call fcn.004236a0
pop edx
add eax, edx
jmp 0x41c854
push dword [esp]
call fcn.00465fa0
push dword [esp + 4]
call fcn.00465fa0
push dword [esp + 8]
call fcn.00465fa0
add esp, 0x10
pop ebx
ret 4
Function at 0x42413c
Capabilities:
Terminate thread

Disassembly:
push ebx
push esi
push edi
mov edi, dword [esp + 0x10]
push 0
push edi
call fcn.004240af
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ebx, 0x6733c4
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [0x671f28]
jmp 0x42416d
cmp dword [esi + 0xc], edi
je 0x424173
mov esi, dword [esi]
test esi, esi
jne 0x424166
jmp 0x42418b
add esi, 8
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
push 0x671f28
call fcn.00465c5c
pop ecx
pop ecx
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
ret 4

Function at 0x424198
Capabilities:
Create thread

Disassembly:
push ecx
push ebp
push esi
lea eax, [esp + 8]
xor esi, esi
push eax
push esi
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push 0x1000
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebp, eax
test ebp, ebp
je 0x424230
push edi
push 0x6733c4
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [0x671f28]
test edi, edi
je 0x424204
push ebx
push esi
lea ebx, [edi + 8]
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x4241fd
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [edi]
push ebx
push 0x671f28
call fcn.00465c5c
pop ecx
pop ecx
jmp 0x4241ff
mov edi, dword [edi]
test edi, edi
jne 0x4241d4
pop ebx
mov eax, dword [0x66c7b0]
mov esi, eax
inc eax
push 0x10
push 0x671f28
mov dword [0x66c7b0], eax
call fcn.00465c9c
pop ecx
pop ecx
push 0x6733c4
mov dword [eax], ebp
mov dword [eax + 4], esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov eax, esi
pop esi
pop ebp
pop ecx
ret 8
Function at 0x424782
Capabilities:
Create thread

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
push edi
push ebx
push dword [0x671f2c]
xor ebp, ebp
mov edi, ebp
mov dword [esp + 0x18], ebp
call fcn.00465527
mov esi, eax
test esi, esi
je 0x424917
mov ecx, dword [esi]
mov dword [esp + 0x18], ecx
cmp dword [esi + 0x14], ebp
je 0x42482c
push ebx
call fcn.00424af2
jmp 0x4247c4
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp byte [esi + 0x1d], 0
jne 0x4247bc
push dword [esi + 0x14]
call fcn.00424efc
mov eax, dword [esp + 0x1c]
push ebp
push esi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x20], eax
call fcn.0042470d
pop ecx
pop ecx
lea eax, [esp + 0x1c]
push eax
push ebp
push esi
push 0x424931
push 0x2000
push ebp
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x424809
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x20], 0xffffffff
je 0x42481a
push dword [esp + 0x20]
push ebx
call fcn.00424bc6
mov eax, dword [esi]
push ebp
push eax
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov eax, dword [esi]
push 1
jmp 0x4248cc
test byte [esp + 0x1c], 1
je 0x42483b
mov dword [esp + 0x10], 1
test byte [esp + 0x1c], 2
je 0x4248d6
push esi
call fcn.00424579
lea eax, [esi + 4]
push 0x10
push eax
call fcn.00465c9c
pop ecx
pop ecx
mov ecx, dword [0x671f40]
mov edi, eax
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x1c]
mov edx, dword [ecx]
push ecx
call dword [edx + 0x14]
test eax, eax
jne 0x424917
mov eax, dword [esp + 0x18]
mov dword [edi], eax
mov eax, dword [esp + 0x10]
mov byte [edi + 5], al
mov byte [edi + 4], 1
mov eax, dword [esp + 0x18]
push dword [esi + 0xc]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [esp + 0x18]
push dword [esi + 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x40]
cmp dword [esp + 0x20], 0xffffffff
je 0x4248b7
push edi
push dword [esp + 0x24]
push ebx
call fcn.00424b26
jmp 0x4248c4
mov eax, dword [esp + 0x18]
push dword [esi + 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov eax, dword [esp + 0x18]
push dword [esp + 0x10]
mov ecx, dword [eax]
push ebp
push ebp
push eax
call dword [ecx + 0x30]
jmp 0x424917
mov eax, dword [ecx]
push ecx
call dword [eax + 0x48]
mov eax, dword [esp + 0x18]
push ebp
push eax
mov ecx, dword [eax]
call dword [ecx + 0x34]
cmp dword [esp + 0x20], 0xffffffff
je 0x4248f8
push dword [esp + 0x20]
push ebx
call fcn.00424bc6
mov eax, dword [esp + 0x18]
mov ebx, dword [esp + 0x10]
push ebx
push ebp
mov ecx, dword [eax]
push ebp
push eax
call dword [ecx + 0x30]
test eax, eax
jne 0x424917
xor edi, edi
mov byte [esi + 0x1c], 1
inc edi
mov byte [esi + 0x1e], bl
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0xc
Function at 0x42503c
Capabilities:
Enumerate gui resources

Disassembly:
cmp dword [esp + 4], 0
push ebx
push esi
push edi
je 0x425091
push dword [esp + 0x10]
push 0x424fbb
call dword [sym.imp.USER32.dll_EnumWindows]
mov esi, dword [0x671f74]
test esi, esi
je 0x4250ea
xor edi, edi
mov ebx, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [esi + 8], eax
jne 0x425089
cmp byte [esi + 0x10], 0
je 0x425089
push 3
push edi
push edi
push edi
push edi
push 0xfffffffffffffffe
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_SetWindowPos]
mov esi, ebx
test ebx, ebx
jne 0x425065
jmp 0x4250ea
mov esi, dword [0x671f74]
test esi, esi
je 0x4250ea
xor edi, edi
push ebp
mov ebx, dword [esi]
lea ebp, [esi + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebp], eax
jne 0x4250e3
cmp byte [esi + 0x11], 0
je 0x4250bf
push 1
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp byte [esi + 0x10], 0
je 0x4250d6
push 3
push edi
push edi
push edi
push edi
push 0xffffffffffffffff
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_SetWindowPos]
push ebp
push 0x671f74
call fcn.00465c5c
pop ecx
pop ecx
mov esi, ebx
test ebx, ebx
jne 0x42509e
pop ebp
pop edi
pop esi
pop ebx
ret 4
Function at 0x43f3c1
Capabilities:
Accept command line arguments

Disassembly:
push ecx
push ecx
push ebx
push ebp
push esi
push edi
push dword [0x673720]
call fcn.0046527b
mov ebp, eax
or ebx, 0xffffffff
xor eax, eax
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov edi, dword [esp + 0x1c]
movzx edx, word [eax]
test dx, dx
je 0x43f4c1
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x10], 0x20
mov dword [esp + 0x14], 0x22
cmp dx, word [esp + 0x10]
jne 0x43f417
push 0x20
pop edx
add eax, 2
cmp word [eax], dx
je 0x43f40f
movzx edx, word [eax]
mov dword [esp + 0x1c], 1
cmp dx, word [esp + 0x14]
jne 0x43f457
add eax, 2
mov esi, eax
movzx ecx, word [eax]
test cx, cx
je 0x43f499
push 0x22
pop edx
cmp cx, dx
je 0x43f449
add eax, 2
movzx ecx, word [eax]
test cx, cx
jne 0x43f439
xor ecx, ecx
cmp word [eax], cx
je 0x43f499
mov ecx, eax
add eax, 2
jmp 0x43f49b
test dx, dx
je 0x43f4a1
push 0x20
mov esi, eax
pop ecx
cmp dx, cx
je 0x43f449
add eax, 2
push 0x22
pop edx
cmp word [eax], dx
jne 0x43f48f
add eax, 2
movzx ecx, word [eax]
test cx, cx
je 0x43f499
cmp cx, dx
je 0x43f48c
add eax, 2
movzx ecx, word [eax]
test cx, cx
jne 0x43f47c
push 0x20
pop ecx
movzx edx, word [eax]
test dx, dx
jne 0x43f461
jmp 0x43f449
mov ecx, eax
mov edx, dword [esp + 0x1c]
jmp 0x43f4a3
xor edx, edx
cmp dword [ebp], ebx
jne 0x43f4ac
test edi, edi
jne 0x43f4c9
test edx, edx
je 0x43f4b1
inc ebx
xor edx, edx
mov esi, edx
movzx edx, word [eax]
test dx, dx
jne 0x43f405
test edi, edi
jne 0x43f4da
mov eax, ebx
jmp 0x43f4de
test esi, esi
je 0x43f4da
sub ecx, esi
mov eax, esi
sar ecx, 1
mov dword [edi], ecx
inc dword [ebp]
jmp 0x43f4de
xor ecx, ecx
mov dword [edi], ecx
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret
Function at 0x43fc93
Capabilities:
Read file on windows

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 0x10], esi
jle 0x43fce7
push ebx
mov ebx, dword [esp + 0xc]
push ebp
mov ebp, dword [esp + 0x14]
and dword [esp + 0x10], 0
lea eax, [esp + 0x10]
push 0
push eax
mov eax, dword [esp + 0x20]
sub eax, esi
push eax
lea eax, [esi + ebp]
push eax
push dword [ebx + 0xc]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x43fcd5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
je 0x43fce1
add esi, dword [esp + 0x10]
cmp esi, dword [esp + 0x18]
jl 0x43fca6
jmp 0x43fce5
add esi, dword [esp + 0x10]
pop ebp
pop ebx
mov eax, esi
pop esi
ret 0xc

Function at 0x43fd61
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
mov eax, 0x1000
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebp, ebp
cmp dword [esp + 0x24], 0x18
mov ebx, eax
je 0x43fe20
cmp dword [esp + 0x24], 2
je 0x43fe20
push 0x2000
push ebp
push dword [0x671724]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
jmp 0x43fdef
cmp dword [esp + 0x18], 2
jne 0x43fe0b
cmp dword [esp + 0x28], 0xffffffff
je 0x43fdb3
cmp ebp, dword [esp + 0x28]
jae 0x43fe0b
add ebp, 2
test ebx, ebx
jne 0x43fdd8
lea eax, [edi*2 + 0x2000]
push eax
push esi
push 8
push dword [0x671724]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov esi, eax
mov ebx, 0x1000
mov ax, word [esp + 0x14]
cmp ax, 0xa
je 0x43fe0b
cmp ax, 0xd
je 0x43fdef
mov word [esi + edi*2], ax
inc edi
dec ebx
push 0
lea eax, [esp + 0x1c]
push eax
push 2
lea eax, [esp + 0x20]
push eax
push dword [esp + 0x30]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x43fd9f
push dword [esp + 0x2c]
xor eax, eax
push esi
mov word [esi + edi*2], ax
call fcn.004cf520
jmp 0x43feb2
push eax
push 0
push dword [0x671724]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
cmp dword [esp + 0x28], 0xffffffff
je 0x43fe3e
cmp ebp, dword [esp + 0x28]
jae 0x43fe96
push 0
lea eax, [esp + 0x1c]
push eax
push 1
lea eax, [esp + 0x1f]
push eax
push dword [esp + 0x30]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x43fe96
cmp dword [esp + 0x18], 1
jne 0x43fe96
inc ebp
test ebx, ebx
jne 0x43fe83
lea eax, [edi + 0x1000]
push eax
push esi
push 8
push dword [0x671724]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov esi, eax
mov ebx, 0x1000
mov al, byte [esp + 0x13]
cmp al, 0xa
je 0x43fe96
cmp al, 0xd
je 0x43fe31
mov byte [esi + edi], al
inc edi
dec ebx
jmp 0x43fe31
cmp dword [esp + 0x24], 0x18
push dword [esp + 0x2c]
mov byte [esi + edi], 0
push esi
jne 0x43fead
call fcn.004cf570
jmp 0x43feb2
call fcn.004cf4c0
push esi
push 0
push dword [0x671724]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0x10
Function at 0x440e1a
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 0x34
mov eax, dword [esp + 0x38]
push ebp
xor ebp, ebp
push edi
cmp dword [eax + 8], 1
mov edi, ebp
mov dword [esp + 0x10], edi
mov dword [esp + 8], ebp
jne 0x440fb9
push esi
mov esi, dword [esp + 0x48]
test esi, esi
je 0x440fb8
push ebx
push ebp
push pe_nt_image_headers32
push 3
push ebp
push 7
push closesocket
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x440fb7
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0x200000
push ebp
push dword [0x671724]
mov dword [esp + 0x20], eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebp, eax
test ebp, ebp
je 0x440fb0
call fcn.0047b300
mov edi, eax
mov dword [esp + 0x1c], edi
test edi, edi
je 0x440f9d
lea eax, [esp + 0x20]
push eax
push esi
call sub.MSVCRT.dll__wstat
push 0x1a4
push edi
call fcn.0047b7d0
lea eax, [esp + 0x30]
push eax
push edi
call fcn.0047b950
mov esi, dword [esp + 0x60]
add esp, 0x18
mov eax, dword [esi + 0x20]
cmp dword [eax + 8], 1
je 0x440ee9
cmp dword [eax + 8], 3
je 0x440ee9
push dword [esp + 0x50]
push edi
call fcn.0047b0a0
pop ecx
pop ecx
jmp 0x440f07
push dword [esp + 0x50]
call fcn.004cf430
mov esi, eax
push esi
push edi
call fcn.0047b7c0
pop ecx
pop ecx
push esi
call fcn.004cf420
mov esi, dword [esp + 0x48]
mov eax, dword [esp + 0x14]
cdq
push edx
push eax
push edi
call fcn.0047b820
push 0x8000
push edi
call fcn.0047b670
push edi
push dword [esi]
call fcn.0047bac0
add esp, 0x1c
lea eax, [esp + 0x4c]
push 0
push eax
push 0x200000
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x4c]
test eax, eax
jle 0x440f84
mov edi, dword [esp + 0x10]
push eax
push ebp
push dword [esi]
call fcn.0047ba80
add esp, 0xc
cmp eax, dword [esp + 0x4c]
jne 0x440f7c
add edi, dword [esp + 0x4c]
lea eax, [esp + 0x4c]
push 0
push eax
push 0x200000
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x4c]
test eax, eax
jg 0x440f4a
mov dword [esp + 0x10], edi
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
cmp dword [esp + 0x10], eax
jne 0x440f96
mov dword [esp + 0x18], 1
push edi
call fcn.0047b230
pop ecx
push ebp
push 0
push dword [0x671724]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov edi, dword [esp + 0x18]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop esi
mov eax, edi
pop edi
pop ebp
add esp, 0x34
ret 0xc
Function at 0x441701
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
push esi
push 0x441650
push 0x10
push 0x2c
call fcn.004655fa
xor esi, esi
mov dword [0x672198], eax
push esi
push esi
push 8
call fcn.004652e6
mov dword [0x673784], eax
cmp word [0x672190], si
jne 0x4417ea
push edi
lea eax, [esp + 8]
push eax
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
xor edi, edi
inc edi
test eax, eax
jne 0x441759
mov word [0x672190], di
jmp 0x441761
xor eax, eax
mov word [0x672190], ax
push 0x800
push esi
push str.ws2_32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [0x6721ac], eax
test eax, eax
je 0x4417e9
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.getaddrinfo
push eax
call esi
push str.freeaddrinfo
push dword [0x6721ac]
mov dword [0x67219c], eax
call esi
push str.getnameinfo
push dword [0x6721ac]
mov dword [0x6721a0], eax
call esi
push str.WSAStringToAddressA
push dword [0x6721ac]
mov dword [0x6721a4], eax
call esi
cmp dword [0x67219c], 0
mov dword [0x6721a8], eax
je 0x4417e9
cmp dword [0x6721a0], 0
je 0x4417e9
cmp dword [0x6721a4], 0
je 0x4417e9
test eax, eax
je 0x4417e9
mov dword [0x672194], edi
pop edi
pop esi
add esp, 0x190
ret

Function at 0x442260
Capabilities:
Get thread local storage value

Disassembly:
cmp dword [0x6721b4], 0
jne 0x44226e
call fcn.004421e0
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push edi
push dword [0x6721b8]
call esi
test eax, eax
jne 0x442291
call fcn.004421e0
push dword [0x6721b8]
call esi
mov edx, dword [esp + 0x14]
lea esi, [eax + 8]
mov edi, 0x11
lea ecx, [ecx]
imul ecx, edx, 0x53a9b4fb
lea esi, [esi + 4]
mov edx, 1
sub edx, ecx
imul ecx, edx, 0x53a9b4fb
mov dword [esi + 0x40], edx
mov edx, 1
sub edx, ecx
mov dword [esi - 4], edx
dec edi
jne 0x4422a0
mov dword [eax], edi
lea ebp, [edi + 0x1f]
mov dword [eax + 4], 0xa
mov ebx, dword [eax]
mov edi, dword [eax + 4]
mov edx, dword [eax + ebx*4 + 8]
mov ecx, dword [eax + ebx*4 + 0x4c]
mov esi, dword [eax + edi*4 + 8]
ror ecx, 0xd
add ecx, dword [eax + edi*4 + 0x4c]
dec edi
ror edx, 5
add edx, esi
mov dword [eax + ebx*4 + 8], ecx
mov dword [eax + ebx*4 + 0x4c], edx
dec ebx
jns 0x442300
mov ebx, 0x10
test edi, edi
jns 0x442309
mov edi, 0x10
mov dword [eax], ebx
mov dword [eax + 4], edi
dec ebp
jne 0x4422d2
pop edi
pop esi
pop ebp
pop ebx
ret 4