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

Disassembly:
push 0xffffffffffffffff
push 0x49daf6
mov eax, dword fs:[0]
push eax
push ebx
push esi
mov eax, dword [0x4c86e0]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
mov dword [esi], vtable.MDKIT::IKernel.0
xor ebx, ebx
mov dword [esp + 0x14], ebx
lea eax, [esi + 4]
push eax
mov dword [esi], vtable.MDKIT::CKernel.0
call fcn.0044e7b0
mov byte [esp + 0x14], 1
push 0xff
lea ecx, [esi + 0x14]
push ecx
mov dword [esi + 0x10], vtable.MDKIT::CSynchLock.0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
mov byte [esp + 0x14], 2
call fcn.0044f0a0
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], ebx
mov byte [esp + 0x14], 3
lea edx, [esi + 0x48]
push edx
call fcn.0044fb70
mov byte [esp + 0x14], 4
lea eax, [esi + 0x260]
push eax
call fcn.00452090
mov byte [esp + 0x14], 5
mov dword [esi + 0x38], ebx
mov dword [esi + 0x40], 1
mov dword [esi + 0x44], ebx
mov dword [esi + 0x3c], ebx
mov byte [esi + 0x25c], bl
mov dword [esp + 0x14], 0xffffffff
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0xc
ret 4

Function at 0x44f5c0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x4bb720
push 0x484310
mov eax, dword fs:[0]
push eax
sub esp, 0x40c
mov eax, dword [0x4c86e0]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor ebx, ebx
cmp esi, ebx
je 0x44f668
mov byte [ebp - 0x41c], bl
push 0x3ff
push ebx
lea eax, [ebp - 0x41b]
push eax
call fcn.00483d60
add esp, 0xc
mov dword [ebp - 4], ebx
lea ecx, [ebp + 0xc]
push ecx
push esi
push 0x400
lea edx, [ebp - 0x41c]
push edx
call fcn.004822de
add esp, 0x10
mov dword [ebp - 4], 0xfffffffe
call fcn.0044f684
push 0x4ae978
push 0x400
lea eax, [ebp - 0x41c]
push eax
call fcn.004821bc
add esp, 0xc
lea ecx, [ebp - 0x41c]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.0047e440
mov esp, ebp
pop ebp
ret

Function at 0x44f760
Capabilities:
Read file on windows

Disassembly:
push ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_IsBadWritePtr]
test eax, eax
je 0x44f771
xor al, al
pop ecx
ret
push ebp
push esi
xor esi, esi
test edi, edi
jbe 0x44f7b1
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
nop
push 0
lea eax, [esp + 0xc]
push eax
mov eax, dword [esp + 0x18]
mov ecx, edi
sub ecx, esi
push ecx
lea edx, [esi + ebx]
push edx
push eax
mov dword [esp + 0x1c], 0
call ebp
test eax, eax
je 0x44f7b7
mov eax, dword [esp + 8]
add esi, eax
test eax, eax
je 0x44f7b7
cmp esi, edi
jb 0x44f780
pop esi
mov al, 1
pop ebp
pop ecx
ret
pop esi
xor al, al
pop ebp
pop ecx
ret
Function at 0x44f7c0
Capabilities:
Write file on windows

Disassembly:
push ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
je 0x44f7d1
xor al, al
pop ecx
ret
push ebp
push esi
xor esi, esi
test edi, edi
jbe 0x44f811
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
nop
push 0
lea eax, [esp + 0xc]
push eax
mov eax, dword [esp + 0x18]
mov ecx, edi
sub ecx, esi
push ecx
lea edx, [esi + ebx]
push edx
push eax
mov dword [esp + 0x1c], 0
call ebp
test eax, eax
je 0x44f817
mov eax, dword [esp + 8]
add esi, eax
test eax, eax
je 0x44f817
cmp esi, edi
jb 0x44f7e0
pop esi
mov al, 1
pop ebp
pop ecx
ret
pop esi
xor al, al
pop ebp
pop ecx
ret
Function at 0x44fc80
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49f73b
mov eax, dword fs:[0]
push eax
sub esp, 0x140
mov eax, dword [0x4c86e0]
xor eax, ebp
mov dword [ebp - 0x18], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
xor ebx, ebx
mov byte [ebp - 0x124], bl
push 0x103
push ebx
lea eax, [ebp - 0x123]
push eax
call fcn.00483d60
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x124]
push ecx
call dword [sym.imp.KERNEL32.dll_IsBadWritePtr]
test eax, eax
jne 0x44fd19
push 0x104
lea edx, [ebp - 0x124]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
cmp eax, ebx
jle 0x44fd19
mov cl, 0x5c
lea ecx, [ecx]
cmp byte [ebp + eax - 0x124], cl
je 0x44fd12
sub eax, 1
cmp eax, ebx
jg 0x44fd00
jmp 0x44fd19
mov byte [ebp + eax - 0x123], bl
push str.srvlst.dat
push 0x104
lea eax, [ebp - 0x124]
push eax
call fcn.004821bc
add esp, 0xc
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocStringLen
lea ecx, [ebp - 0x124]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x44fd5d
xor al, al
jmp 0x44fe73
mov byte [ebp - 0x125], bl
mov dword [ebp - 4], ebx
mov dword [ebp - 0x134], ebx
mov dword [ebp - 0x130], ebx
lea edx, [ebp - 0x134]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x44fd9f
mov dword [ebp - 0x140], 0x41
push 0x4bb4e8
lea eax, [ebp - 0x140]
push eax
call fcn.0048453b
mov ecx, dword [ebp - 0x134]
add ecx, 1
push ecx
call fcn.0047e793
add esp, 4
mov esi, eax
cmp esi, ebx
jne 0x44fdd2
mov dword [ebp - 0x144], 0x49
push 0x4bb4e8
lea edx, [ebp - 0x144]
push edx
call fcn.0048453b
mov eax, dword [ebp - 0x134]
add eax, 1
push eax
push ebx
push esi
call fcn.00483d60
add esp, 0xc
push edi
mov edi, dword [ebp - 0x134]
mov ebx, esi
call fcn.0044f760
add esp, 4
test al, al
jne 0x44fe16
mov dword [ebp - 0x138], 0x51
push 0x4bb4e8
lea ecx, [ebp - 0x138]
push ecx
call fcn.0048453b
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x148], esp
push esi
call fcn.00407e50
mov bl, 1
mov byte [ebp - 4], bl
mov edx, dword [ebp + 8]
push edx
mov byte [ebp - 4], 0
call fcn.00450190
test al, al
jne 0x44fe58
mov dword [ebp - 0x13c], 0x58
push 0x4bb4e8
lea eax, [ebp - 0x13c]
push eax
call fcn.0048453b
mov byte [ebp - 0x125], bl
mov dword [ebp - 4], 0xffffffff
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [ebp - 0x125]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.0047e440
mov esp, ebp
pop ebp
ret 4
Function at 0x450b20
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x49f61c
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4c86e0]
xor eax, esp
push eax
lea eax, [esp + 0x60]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x70]
mov edi, ecx
mov dword [esp + 0x68], 0
movzx eax, bp
mov dword [esp + 0x14], eax
lea ebx, [esp + 0x14]
lea eax, [esp + 0x2c]
mov esi, edi
call fcn.00450f10
mov esi, dword [esp + 0x2c]
mov ecx, dword [edi + 4]
xor ebx, ebx
cmp esi, ebx
mov dword [esp + 0x18], ecx
je 0x450b80
cmp esi, edi
je 0x450b85
call fcn.004806da
mov edx, dword [esp + 0x30]
cmp edx, dword [esp + 0x18]
jne 0x450c5c
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov bl, 1
mov byte [esp + 0x68], bl
lea eax, [esp + 0x74]
push eax
lea esi, [esp + 0x20]
call fcn.0043a4c0
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x24], esp
push ecx
mov ecx, esi
call fcn.00450f80
mov byte [esp + 0x78], 2
push ebp
lea edx, [esp + 0x60]
push edx
mov byte [esp + 0x80], bl
call fcn.00451a10
add esp, 0x18
mov byte [esp + 0x68], 3
push eax
lea eax, [esp + 0x3c]
push eax
call fcn.00451930
mov byte [esp + 0x68], 4
lea ecx, [esp + 0x38]
push ecx
lea edx, [esp + 0x30]
push edx
mov ebx, edi
call fcn.00450e20
mov byte [esp + 0x68], 3
lea eax, [esp + 0x38]
push eax
call fcn.00450ce0
mov byte [esp + 0x68], 1
lea ecx, [esp + 0x4c]
push ecx
call fcn.00450ce0
xor ebx, ebx
mov byte [esp + 0x68], bl
mov eax, dword [esp + 0x20]
cmp eax, ebx
je 0x450c4e
mov edx, dword [esp + 0x14]
mov edi, dword [esp + 0x24]
push edx
call fcn.0043b360
mov eax, dword [esp + 0x24]
add esp, 4
push eax
call fcn.00459b1e
add esp, 4
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
jmp 0x450c84
cmp esi, ebx
jne 0x450c65
call fcn.004806da
mov edx, dword [esp + 0x30]
cmp edx, dword [esi + 4]
jne 0x450c73
call fcn.004806da
mov esi, dword [esp + 0x30]
lea eax, [esp + 0x74]
push eax
add esi, 0x10
call fcn.0043a4c0
mov dword [esp + 0x68], 0xffffffff
cmp dword [esp + 0x8c], 0x10
jb 0x450ca3
mov ecx, dword [esp + 0x78]
push ecx
call fcn.00459b1e
add esp, 4
mov al, 1
mov byte [esp + 0x78], bl
mov dword [esp + 0x88], ebx
mov dword [esp + 0x8c], 0xf
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x58
ret 0x20
Function at 0x452090
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x49c776
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x4c86e0]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, dword [esp + 0x20]
mov dword [esi], vtable.MDKIT::CRateController.0
call fcn.004577a0
xor edi, edi
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], edi
mov dword [esp + 0x18], edi
push 0xff
lea eax, [esi + 0x30]
push eax
mov dword [esi + 0x2c], vtable.MDKIT::CSynchLock.0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
mov byte [esp + 0x18], 1
lea ebx, [esi + 0xc]
mov dword [esi + 8], edi
mov dword [ebx], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x48], edi
mov dword [esi + 0x4c], edi
call dword [sym.imp.KERNEL32.dll_CreateTimerQueue]
push edi
push edi
push 0x3e8
push esi
push 0x4521e0
push eax
push ebx
mov dword [esi + 8], eax
call dword [sym.imp.KERNEL32.dll_CreateTimerQueueTimer]
mov dword [esp + 0x18], 0xffffffff
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0xc
ret 4
Function at 0x452d20
Capabilities:
Parse url

Disassembly:
push 0xffffffffffffffff
push 0x49d888
mov eax, dword fs:[0]
push eax
mov eax, 0x108c
call fcn.00484be0
mov eax, dword [0x4c86e0]
xor eax, esp
mov dword [esp + 0x1088], eax
push ebx
push ebp
push esi
mov eax, dword [0x4c86e0]
xor eax, esp
push eax
lea eax, [esp + 0x109c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x10c8]
mov esi, ecx
mov dword [esp + 0x10], eax
xor ebx, ebx
mov dword [esp + 0x10a4], ebx
push 0x823
lea ecx, [esp + 0x55]
push ebx
push ecx
mov byte [esp + 0x5c], bl
call fcn.00483d60
push 0x823
lea edx, [esp + 0x885]
push ebx
push edx
mov byte [esp + 0x88c], bl
call fcn.00483d60
push 0x38
lea eax, [esp + 0x34]
push ebx
push eax
call fcn.00483d60
mov eax, 0x824
mov ebp, 0x10
add esp, 0x24
cmp dword [esp + 0x10c4], ebp
lea ecx, [esp + 0x50]
lea edx, [esp + 0x874]
mov dword [esp + 0x28], eax
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x10b0]
mov dword [esp + 0x14], 0x3c
mov dword [esp + 0x24], ecx
mov dword [esp + 0x40], edx
jae 0x452df6
lea eax, [esp + 0x10b0]
mov edx, dword [esp + 0x10c0]
lea ecx, [esp + 0x14]
push ecx
push 0x10000000
push edx
push eax
call dword [sym.imp.WININET.dll_InternetCrackUrlA]
test eax, eax
jne 0x452e44
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10a4], 0xffffffff
cmp dword [esp + 0x10c4], ebp
jb 0x452e3d
mov eax, dword [esp + 0x10b0]
push eax
call fcn.00459b1e
add esp, 4
xor al, al
jmp 0x452ee2
cmp dword [esp + 0x20], 3
je 0x452e73
mov dword [esp + 0x10a4], 0xffffffff
cmp dword [esp + 0x10c4], ebp
jb 0x452e3d
mov ecx, dword [esp + 0x10b0]
push ecx
call fcn.00459b1e
add esp, 4
xor al, al
jmp 0x452ee2
mov edx, dword [esp + 0x24]
mov eax, edx
lea ebp, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x452e80
sub eax, ebp
push eax
push edx
mov ecx, esi
call fcn.00408030
mov dx, word [esp + 0x2c]
mov word [edi], dx
mov edx, dword [esp + 0x40]
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x452ea5
mov ecx, dword [esp + 0x10]
sub eax, esi
push eax
push edx
call fcn.00408030
mov dword [esp + 0x10a4], 0xffffffff
cmp dword [esp + 0x10c4], 0x10
jb 0x452ee0
mov eax, dword [esp + 0x10b0]
push eax
call fcn.00459b1e
add esp, 4
mov al, 1
mov dword [esp + 0x10c4], 0xf
mov dword [esp + 0x10c0], ebx
mov byte [esp + 0x10b0], bl
mov ecx, dword [esp + 0x109c]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1088]
xor ecx, esp
call fcn.0047e440
add esp, 0x1098
ret
Function at 0x4557b6
Capabilities:
Create thread
Resume thread

Disassembly:
sub esp, 0x114
mov eax, dword [0x4c86e0]
xor eax, esp
mov dword [esp + 0x110], eax
push ebx
push ebp
push esi
mov esi, ecx
cmp dword [esi + 0x208], 0x10
push edi
jb 0x4557cb
mov eax, dword [esi + 0x1f4]
jmp 0x4557d1
lea eax, [esi + 0x1f4]
push eax
lea eax, [esi + 0x118]
push eax
call fcn.00459190
test eax, eax
je 0x455962
mov eax, dword [esi + 0x124]
test eax, eax
mov edi, dword [esi + 0x120]
je 0x455950
test edi, edi
je 0x455950
mov ecx, dword [edi]
mov dword [esi + 0x158], ecx
mov edx, dword [edi + 4]
mov dword [esi + 0x15c], edx
mov eax, dword [edi + 8]
mov dword [esi + 0x160], eax
mov ecx, dword [edi + 0xc]
mov dword [esi + 0x164], ecx
mov edx, dword [edi + 0x10]
mov dword [esi + 0x168], edx
mov eax, dword [edi + 0x14]
mov dword [esi + 0x16c], eax
call fcn.00455710
cmp byte [esi + 0x10c], 0
mov dword [esi + 0x210], eax
mov dword [esi + 0x214], edx
je 0x4558af
xor ebp, ebp
cmp dword [edi + 0x18], ebp
jbe 0x4558af
lea ebx, [edi + 0x1c]
jmp 0x455860
push 0x103
lea ecx, [esp + 0x19]
push 0
push ecx
mov byte [esp + 0x20], 0
call fcn.00483d60
add esp, 0xc
push 0x104
push ebx
lea edx, [esp + 0x1c]
push 0x104
push edx
call fcn.0048262b
mov eax, dword [esi]
mov edx, dword [eax + 8]
add esp, 0x10
lea ecx, [esp + 0x14]
push ecx
mov ecx, esi
call edx
test al, al
je 0x455940
add ebp, 1
cmp ebp, dword [edi + 0x18]
jb 0x455860
mov eax, dword [esi + 0x12c]
mov eax, dword [eax]
lea edi, [esi + 0x128]
mov ebx, eax
nop
test edi, edi
mov esi, dword [edi + 4]
je 0x4558cb
cmp edi, edi
je 0x4558d0
call fcn.004806da
cmp ebx, esi
je 0x45594c
test edi, edi
jne 0x4558dd
call fcn.004806da
cmp ebx, dword [edi + 4]
jne 0x4558e7
call fcn.004806da
mov esi, dword [ebx + 8]
cmp dword [esi + 0xc], 0
jne 0x455905
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
test eax, eax
mov dword [esi + 0xc], eax
je 0x455962
cmp dword [esi + 0x10], 0
jne 0x455928
lea ecx, [esi + 0x14]
push ecx
push 4
push esi
push 0x457790
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
mov dword [esi + 0x10], eax
je 0x455962
mov edx, dword [esi + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp ebx, dword [edi + 4]
jne 0x45593c
call fcn.004806da
mov ebx, dword [ebx]
jmp 0x4558c0
push str.MDKIT::CMultipointDown::LoadBreakData
push 0x4b24ac
jmp 0x45595a
mov al, 1
jmp 0x455964
push str.MDKIT::CMultipointDown::LoadBreakData
push 0x4b2494
call fcn.0044f5c0
add esp, 8
xor al, al
mov ecx, dword [esp + 0x120]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0047e440
add esp, 0x114
ret
Function at 0x456230
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49b150
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x4c86e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push 1
push 0xc0000000
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
mov dword [ebp - 0x20], esi
cmp esi, 0xffffffff
jne 0x456295
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov byte [ebp - 0x11], bl
mov dword [ebp - 4], ebx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x28], eax
xor ecx, ecx
push ebx
push ebx
push ecx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x4562c7
mov dword [ebp - 0x18], 0x3bf
push 0x4bb4e8
lea ecx, [ebp - 0x18]
push ecx
call fcn.0048453b
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x4562e7
mov dword [ebp - 0x1c], 0x3c4
push 0x4bb4e8
lea edx, [ebp - 0x1c]
push edx
call fcn.0048453b
mov byte [ebp - 0x11], 1
mov dword [ebp - 4], 0xffffffff
jmp 0x456304
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [ebp - 0x11]
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 0x456320
Capabilities:
Delete file
Move file

Disassembly:
push 0xffffffffffffffff
push 0x49d5c0
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x4c86e0]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4c86e0]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
mov esi, ecx
lea ecx, [esi + 8]
xor ebx, ebx
mov eax, ecx
mov dword [esp + 0x48], 0xf
mov dword [esp + 0x44], ebx
mov byte [esp + 0x34], bl
lea edi, [eax + 1]
mov edi, edi
mov dl, byte [eax]
add eax, 1
cmp dl, bl
jne 0x456370
sub eax, edi
push eax
push ecx
lea ecx, [esp + 0x38]
call fcn.00408030
mov dword [esp + 0x58], ebx
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x18]
push ecx
mov ecx, str..sky
call fcn.00454bb0
add esp, 8
mov byte [esp + 0x58], 1
mov eax, dword [esp + 0x18]
mov ebp, 0x10
cmp dword [esp + 0x2c], ebp
jae 0x4563b9
lea eax, [esp + 0x18]
mov edx, dword [esi + 0x16c]
mov ecx, dword [esi + 0x168]
push edx
push ecx
push eax
call fcn.00456230
mov eax, dword [esp + 0x24]
add esp, 0xc
cmp dword [esp + 0x2c], ebp
jae 0x4563de
lea eax, [esp + 0x18]
push ebx
push 0x80
push 3
push ebx
push 1
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x456413
lea edx, [esi + 0x158]
push edx
push ebx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x48], ebp
mov ecx, dword [esp + 0x34]
jae 0x456421
lea ecx, [esp + 0x34]
cmp dword [esp + 0x2c], ebp
mov eax, dword [esp + 0x18]
jae 0x45642f
lea eax, [esp + 0x18]
push 1
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
jne 0x456491
push 0x4b24c8
call fcn.0044f5c0
add esp, 4
mov byte [esp + 0x58], bl
cmp dword [esp + 0x2c], ebp
jb 0x456461
mov eax, dword [esp + 0x18]
push eax
call fcn.00459b1e
add esp, 4
mov esi, 0xf
mov dword [esp + 0x2c], esi
mov dword [esp + 0x28], ebx
mov byte [esp + 0x18], bl
mov dword [esp + 0x58], 0xffffffff
cmp dword [esp + 0x48], ebp
jb 0x45648d
mov ecx, dword [esp + 0x34]
push ecx
call fcn.00459b1e
add esp, 4
xor al, al
jmp 0x45650a
cmp dword [esi + 0x208], ebp
jb 0x4564a1
mov eax, dword [esi + 0x1f4]
jmp 0x4564a7
lea eax, [esi + 0x1f4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov edx, dword [esi + 0x134]
push edx
mov dword [esi + 0x178], 7
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov byte [esp + 0x58], bl
cmp dword [esp + 0x2c], ebp
jb 0x4564dc
mov eax, dword [esp + 0x18]
push eax
call fcn.00459b1e
add esp, 4
mov esi, 0xf
mov dword [esp + 0x2c], esi
mov dword [esp + 0x28], ebx
mov byte [esp + 0x18], bl
mov dword [esp + 0x58], 0xffffffff
cmp dword [esp + 0x48], ebp
jb 0x456508
mov ecx, dword [esp + 0x34]
push ecx
call fcn.00459b1e
add esp, 4
mov al, 1
mov byte [esp + 0x34], bl
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], esi
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.0047e440
add esp, 0x48
ret
Function at 0x4571f0
Capabilities:
Create thread
Resume thread

Disassembly:
cmp dword [esi + 0xc], 0
jne 0x45720e
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
test eax, eax
mov dword [esi + 0xc], eax
jne 0x45720e
xor al, al
ret
cmp dword [esi + 0x10], 0
jne 0x457231
lea eax, [esi + 0x14]
push eax
push 4
push esi
push 0x457790
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
mov dword [esi + 0x10], eax
je 0x45720b
mov ecx, dword [esi + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov al, 1
ret

Function at 0x457240
Capabilities:
Resume thread

Disassembly:
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp eax, dword [esi + 0x14]
mov eax, dword [esi + 0xc]
jne 0x457265
test eax, eax
je 0x457259
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [esi]
mov edx, dword [eax + 4]
mov ecx, esi
call edx
mov al, 1
ret
test eax, eax
je 0x457270
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [esi]
mov edx, dword [eax + 4]
push edi
mov ecx, esi
call edx
mov eax, dword [esi + 0x10]
test eax, eax
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x4572b5
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, dword [esi + 0x10]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [esi + 0xc]
lea ecx, [esi + 0x18]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
mov eax, dword [esi + 0x10]
push eax
call edi
mov dword [esi + 0x10], 0
mov eax, dword [esi + 0xc]
test eax, eax
je 0x4572c6
push eax
call edi
mov dword [esi + 0xc], 0
pop edi
mov al, 1
ret
Function at 0x458920
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Get socket status
Set socket configuration

Disassembly:
sub esp, 0x120
cmp dword [esi], 0xffffffff
push edi
jne 0x45895c
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [esi], eax
jne 0x45895c
mov ecx, dword [esp + 0x12c]
push 0xe
push 0x4b21f8
call fcn.00408030
xor eax, eax
pop edi
add esp, 0x120
ret
mov ecx, dword [esi]
push 4
lea eax, [esp + 0x10]
push eax
push 4
push 0xffff
push ecx
mov dword [esp + 0x20], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
mov eax, dword [esi]
mov edi, dword [sym.imp.WS2_32.dll_ioctlsocket]
lea edx, [esp + 8]
push edx
push 0x8004667e
push eax
mov dword [esp + 0x14], 1
call edi
test eax, eax
je 0x4589b9
mov ecx, dword [esp + 0x12c]
push 0x13
push 0x4b2208
call fcn.00408030
xor eax, eax
pop edi
add esp, 0x120
ret
mov ecx, dword [esp + 0x128]
mov edx, dword [esi]
push 0x10
push ecx
push edx
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x4589f9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2733
je 0x4589f9
mov ecx, dword [esp + 0x12c]
push 0x4b221c
call fcn.0043a3b0
xor eax, eax
pop edi
add esp, 0x120
ret
mov eax, dword [esi]
lea ecx, [esp + 0x10]
push ecx
push 0
lea edx, [esp + 0x20]
push edx
push 0
push 0
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], 1
mov dword [esp + 0x24], 0xa
mov dword [esp + 0x28], 0
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
je 0x458a7b
test eax, eax
je 0x458a5e
mov ecx, dword [esi]
lea eax, [esp + 8]
push eax
push 0x8004667e
push ecx
mov dword [esp + 0x14], 0
call edi
test eax, eax
jne 0x458a8e
mov eax, 1
pop edi
add esp, 0x120
ret
mov ecx, dword [esp + 0x12c]
push 9
push 0x4b2238
call fcn.00408030
xor eax, eax
pop edi
add esp, 0x120
ret
mov ecx, dword [esp + 0x12c]
push 0xf
push 0x4b2228
call fcn.00408030
xor eax, eax
pop edi
add esp, 0x120
ret