joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42bf30
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov edi, ecx
call fcn.004266e0
test eax, eax
je 0x42c01f
mov ecx, edi
call fcn.004266e0
mov ecx, eax
call fcn.00423c60
test eax, eax
jne 0x42c01f
push eax
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x42c01f
mov eax, dword [0xaded30]
and eax, 0xffff
push eax
call dword [sym.imp.USER32.dll_GetClipboardData]
mov esi, eax
test esi, esi
jne 0x42bf92
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0xc
lea ecx, [esp + 0x10]
mov ebp, dword [esp + 0x24]
push 1
push ecx
mov ecx, dword [edi + 0x44]
lea edx, [esp + 0x1c]
shr ecx, 4
lea eax, [esp + 0x20]
push edx
mov edx, dword [esp + 0x2c]
and ecx, 1
push eax
push ecx
push ebp
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GlobalSize]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push eax
mov ecx, edi
call fcn.004266e0
mov ecx, eax
call fcn.00423e90
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov ecx, dword [esp + 0x28]
mov eax, 1
cmp ecx, eax
jne 0x42c01f
cmp ebx, eax
jne 0x42c01f
cmp dword [esp + 0x10], eax
jne 0x42c005
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0xcc]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [edi]
push eax
mov eax, dword [esp + 0x24]
push ecx
push ebp
push eax
mov ecx, edi
call dword [edx + 0xc0]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0xc
Function at 0x42ec50
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x464d68
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [esp + 0x30]
push esi
mov ebx, ecx
push edi
mov esi, dword [ebp]
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x10]
dec ecx
cmp eax, ecx
jge 0x42ec89
inc eax
mov dword [esi + 0x10], eax
jmp 0x42ed9c
mov eax, dword [ebx + 0x3c]
mov ecx, dword [esi + 8]
cmp ecx, eax
jne 0x42ec9d
mov eax, 0xffffffc7
jmp 0x42ed9e
mov esi, dword [esi]
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp edx, ecx
jl 0x42ecae
cmp dword [esi + 8], eax
jne 0x42ec9d
cmp dword [esi + 8], eax
jne 0x42ecc7
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp eax, ecx
jl 0x42ecc7
mov eax, 0xffffffc7
jmp 0x42ed9e
mov eax, dword [esi + 4]
xor edi, edi
cmp eax, edi
je 0x42ecdb
push eax
mov ecx, ebx
call fcn.0042e480
mov dword [esi + 4], edi
mov dword [ebp], esi
mov ecx, dword [esi + 0x10]
inc ecx
mov dword [esi + 0x10], ecx
lea ecx, [esp + 0x10]
call fcn.004031e0
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x3c]
test edi, edi
jne 0x42ed0c
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + 8]
lea ecx, [esp + 0x10]
push edx
call fcn.00403200
mov edi, eax
mov eax, dword [esi + 8]
push edi
push eax
mov ecx, ebx
call fcn.0042dbf0
test eax, eax
mov dword [esp + 0x38], eax
je 0x42ed3f
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0xab5090
call fcn.004033e0
mov eax, dword [esp + 0x38]
jmp 0x42ed9e
mov ecx, dword [esi + 0x10]
push ecx
push edi
mov ecx, ebx
call fcn.0042eab0
mov dl, byte [edi]
and dl, 1
cmp dl, 1
jne 0x42ed83
mov ecx, dword [esp + 0x34]
push ebp
push ecx
push edi
push eax
mov ecx, ebx
call fcn.0042ead0
mov esi, eax
test esi, esi
jne 0x42edb3
mov edx, dword [ebp]
push eax
push edi
mov ecx, ebx
mov dword [edx + 0x10], eax
call fcn.0042eab0
mov cl, byte [edi]
and cl, 1
cmp cl, 1
je 0x42ed55
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0xab5090
call fcn.004033e0
xor eax, eax
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0xc
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0xab5090
call fcn.004033e0
mov eax, esi
jmp 0x42ed9e

Function at 0x431e60
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [ecx + 0xcc], 1
je 0x431ec0
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x431ec0
mov eax, dword [ecx + 0xb0]
test eax, eax
je 0x431ec0
push esi
mov edx, 5
mov esi, dword [ecx + 0xbc]
cmp esi, edx
pop esi
je 0x431ec0
mov dword [ecx + 0xb4], eax
mov dword [ecx + 0x94], 0
mov dword [ecx + 0xbc], edx
lea eax, [esp]
push eax
push 0
push ecx
push 0x431f00
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
ret
Function at 0x437de0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x465398
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
push 0
lea ecx, [esp + 0x20]
call fcn.0045e671
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.00437780
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
add eax, 0x64
add esp, 0xc
add ecx, 0x64
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 0x20]
call fcn.0045e59f
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
push 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx + 1]
xor edx, edx
test eax, eax
setl dl
dec edx
mov ecx, esi
and eax, edx
push eax
push 0
push 0
call fcn.0045ae65
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 8]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
xor ecx, ecx
sar edx, 4
mov eax, edx
push 1
shr eax, 0x1f
lea eax, [edx + eax + 1]
test eax, eax
setl cl
dec ecx
and eax, ecx
mov ecx, esi
push eax
push 0
push 1
call fcn.0045ae65
push 1
push 0
push 0
mov ecx, esi
call fcn.0045ae0d
push 1
push 0
push 1
mov ecx, esi
call fcn.0045ae0d
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.0045e6e3
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x437f60
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4653b8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.0045e671
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.00437780
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
add ecx, 0x64
add esp, 0xc
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
add eax, 0x96
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.0045e59f
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x438024
cmp dword [esp + 0x40], 1
jne 0x438022
cmp ecx, eax
jge 0x438024
mov eax, ecx
cmp eax, 0xc8
jge 0x438030
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.00437de0
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.0045e6e3
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x4387a0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x465423
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.00459281
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], vtable.CBrush.0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.0045e919
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.0045fe35
test eax, eax
je 0x4388bc
mov ecx, dword [esp + 0x3c]
call fcn.0045e946
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x438880
push edi
mov ecx, esi
call fcn.0045bfb0
mov ecx, esi
call fcn.00438a20
cmp dword [esp + 0x38], 1
jne 0x4388b5
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.0045c0eb
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x43b2f0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x43b323
push esi
call fcn.0043e3e0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x43b31c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x43b3a9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x43b392
mov eax, dword [esi + 8]
test eax, eax
je 0x43b347
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x43b38e
cmp eax, 2
je 0x43b392
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x43b33a
cmp eax, 3
je 0x43b36d
cmp eax, 1
jne 0x43b33a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x43b33a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x43b33a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0043b3d0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x43b3b8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.0043b3d0
add esp, 4
pop esi
ret

Function at 0x45a076
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x45a0ae
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0045812d
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00458105
jmp 0x45a0ba
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x45b76d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x45b7af
call fcn.0046121b
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x45b7af
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x45b7a6
xor eax, eax
jmp 0x45b7b7
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0045b7bd
pop edi
pop esi
pop ebx
ret 4

Function at 0x46174b
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x461779
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x461797
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004616b1
jmp 0x461797
mov eax, dword [esi + 0x14]
test eax, eax
je 0x461797
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004616b1
test edi, edi
mov eax, edi
jne 0x461781
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x4036f0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x4b846b
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x4e6f00]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x14], esi
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.0049c359
push 4
mov dword [esp + 0x24], 0
call fcn.00457ac4
mov edi, eax
add esp, 4
test edi, edi
je 0x403774
call fcn.0049c16f
mov dword [edi], eax
call fcn.0049bfa3
push 0
lea ecx, [esp + 0x14]
mov ebx, eax
call fcn.0049c3f0
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x403769
add eax, 1
mov dword [ebx + 4], eax
lea ecx, [esp + 0x10]
call fcn.0049c411
jmp 0x403776
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x14
ret
Function at 0x407270
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x4b8668
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push edi
mov eax, dword [0x4e6f00]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov eax, dword [esp + 0x38]
xor edi, edi
push 0xffffffffffffffff
push edi
push eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x14], edi
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], edi
mov word [esp + 0x1c], di
call fcn.00405800
mov eax, 0x4c9cdc
mov dword [esp + 0x30], edi
lea edx, [eax + 2]
jmp 0x4072d0
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x4072d0
sub eax, edx
sar eax, 1
push eax
push 0x4c9cdc
lea ecx, [esp + 0x14]
call fcn.00407910
push 0xffffffffffffffff
push edi
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], edi
push eax
mov ecx, esi
mov word [esi + 4], di
call fcn.00405800
cmp dword [esp + 0x24], 8
jb 0x40731b
mov ecx, dword [esp + 0x10]
push ecx
call fcn.00457af4
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
add esp, 0x2c
ret
Function at 0x409ef0
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4bb9d6
mov eax, dword fs:[0]
push eax
sub esp, 0xac
mov eax, dword [0x4e6f00]
xor eax, esp
push eax
lea eax, [esp + 0xb0]
mov dword fs:[0], eax
mov eax, dword [esi]
test eax, eax
je 0x409fc8
push 0
push 0
push 0
push 6
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
push eax
mov dword [esi + 4], eax
lea eax, [esp + 0x20]
push eax
call fcn.00408be0
push 1
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0xc]
mov dword [esp + 0xc0], 0
call fcn.00409900
mov dword [esp + 4], vtable.boost::archive::binary_oarchive.0
mov byte [esp + 0xb8], 1
call fcn.004101f0
push eax
lea edx, [esi + 8]
push edx
lea ecx, [esp + 0xc]
call fcn.004a1070
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
lea ecx, [esp + 4]
mov byte [esp + 0xb8], 0
call fcn.00408370
lea ecx, [esp + 0x74]
mov dword [esp + 0xb8], 0xffffffff
call fcn.00408cc0
lea ecx, [esp + 0x74]
push ecx
mov dword [esp + 0x78], vtable.std::ios_base.0
call fcn.0049c316
add esp, 4
mov ecx, dword [esp + 0xb0]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x40baa0
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4bb946
mov eax, dword fs:[0]
push eax
sub esp, 0xb0
push edi
mov eax, dword [0x4e6f00]
xor eax, esp
push eax
lea eax, [esp + 0xb8]
mov dword fs:[0], eax
mov eax, dword [esi]
test eax, eax
je 0x40bb82
push 0
push 0
push 0
push 6
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
push eax
mov dword [esi + 4], eax
lea eax, [esp + 0x28]
push eax
call fcn.00408a30
push 1
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esp + 0x14]
mov dword [esp + 0xc8], 0
call fcn.004097b0
mov dword [esp + 0xc], vtable.boost::archive::binary_iarchive.0
mov byte [esp + 0xc0], 1
lea edi, [esi + 8]
call fcn.00410290
push eax
push edi
lea ecx, [esp + 0x14]
call fcn.0049fd80
mov edx, dword [esi + 4]
push edx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
lea ecx, [esp + 0xc]
mov byte [esp + 0xc0], 0
call fcn.00408300
lea ecx, [esp + 0x80]
mov dword [esp + 0xc0], 0xffffffff
call fcn.00408b10
lea eax, [esp + 0x80]
push eax
mov dword [esp + 0x84], vtable.std::ios_base.0
call fcn.0049c316
add esp, 4
mov ecx, dword [esp + 0xb8]
mov dword fs:[0], ecx
pop ecx
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x411010
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x411029
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x411064
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x411060
lea ebx, [ebx]
cmp esi, eax
jae 0x411064
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x411050
cmp esi, eax
jb 0x41106a
pop esi
pop edi
xor eax, eax
pop ebx
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x412620
Capabilities:
Create thread

Disassembly:
push ecx
push ebx
xor ebx, ebx
push esi
mov esi, eax
mov dword [esi], vtable.tping.0
mov dword [esi + 4], 1
mov dword [esi + 0x18], 0xffffffff
mov byte [esi + 0x1c], bl
mov dword [esi + 0x24], 0x4d74
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
call fcn.00412710
test al, al
je 0x412685
mov ecx, esi
call fcn.00412770
test al, al
je 0x412685
call fcn.00412810
test al, al
je 0x412685
push esi
push ebx
push 0x4128a0
call fcn.004794a6
add esp, 0xc
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, esi
pop esi
pop ebx
pop ecx
ret

Function at 0x412710
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x19c
mov eax, dword [0x4e6f00]
xor eax, esp
mov dword [esp + 0x194], eax
push 0x18e
lea eax, [esp + 6]
push 0
push eax
mov word [esp + 0xc], 0
call fcn.0047c580
add esp, 0xc
lea ecx, [esp]
push ecx
push 0x102
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov ecx, dword [esp + 0x194]
test eax, eax
sete al
xor ecx, esp
call fcn.00477f65
add esp, 0x19c
ret

Function at 0x412770
Capabilities:
Get hostname
Resolve dns

Disassembly:
sub esp, 0x104
mov eax, dword [0x4e6f00]
xor eax, esp
mov dword [esp + 0x100], eax
xor eax, eax
push esi
mov esi, ecx
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
push 0x2a82
mov word [esi + 8], 2
call dword [sym.imp.WS2_32.dll_htons]
mov word [esi + 0xa], ax
push 0xff
lea eax, [esp + 8]
push eax
call dword [sym.imp.WS2_32.dll_gethostname]
test eax, eax
je 0x4127d6
xor al, al
pop esi
mov ecx, dword [esp + 0x100]
xor ecx, esp
call fcn.00477f65
add esp, 0x104
ret
lea ecx, [esp + 4]
push ecx
call dword [sym.imp.WS2_32.dll_gethostbyname]
movsx edx, word [eax + 0xa]
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
push edx
push ecx
add esi, 0xc
push esi
call fcn.0047d3f0
mov ecx, dword [esp + 0x110]
add esp, 0xc
pop esi
xor ecx, esp
mov al, 1
call fcn.00477f65
add esp, 0x104
ret
Function at 0x412786
Capabilities:
Get hostname
Resolve dns

Disassembly:
sub esp, 0x104
mov eax, dword [0x4e6f00]
xor eax, esp
mov dword [esp + 0x100], eax
xor eax, eax
push esi
mov esi, ecx
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
push 0x2a82
mov word [esi + 8], 2
call dword [sym.imp.WS2_32.dll_htons]
mov word [esi + 0xa], ax
push 0xff
lea eax, [esp + 8]
push eax
call dword [sym.imp.WS2_32.dll_gethostname]
test eax, eax
je 0x4127d6
xor al, al
pop esi
mov ecx, dword [esp + 0x100]
xor ecx, esp
call fcn.00477f65
add esp, 0x104
ret
lea ecx, [esp + 4]
push ecx
call dword [sym.imp.WS2_32.dll_gethostbyname]
movsx edx, word [eax + 0xa]
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
push edx
push ecx
add esi, 0xc
push esi
call fcn.0047d3f0
mov ecx, dword [esp + 0x110]
add esp, 0xc
pop esi
xor ecx, esp
mov al, 1
call fcn.00477f65
add esp, 0x104
ret

Function at 0x412810
Capabilities:
Create raw socket
Create udp socket

Disassembly:
sub esp, 0x30
push 0
push 3
push 2
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [esi + 0x18], eax
jne 0x41282d
xor al, al
add esp, 0x30
ret
push 0x10
lea ecx, [esi + 8]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
jne 0x412827
push eax
push eax
lea edx, [esp + 8]
push edx
mov edx, dword [esi + 0x18]
push 0x28
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x10], eax
lea eax, [esp + 0x18]
push eax
push 4
lea ecx, [esp + 0x1c]
push ecx
push 0x98000001
push edx
mov dword [esp + 0x28], 1
call dword [sym.imp.WS2_32.dll_WSAIoctl]
mov al, 1
add esp, 0x30
ret
Function at 0x4128b0
Capabilities:
Act as tcp client
Check for time delay via gettickcount
Connect socket
Connect tcp socket
Create tcp socket
Set socket configuration

Disassembly:
sub esp, 0x1c
mov eax, dword [0x4e6f00]
xor eax, esp
mov dword [esp + 0x18], eax
push ebx
push ebp
mov ebp, dword [esp + 0x28]
push edi
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
push 4
mov edi, eax
lea eax, [esp + 0x14]
push eax
push 0xffffff7f
push 0xffff
xor ebx, ebx
push edi
mov dword [esp + 0x24], ebx
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp edi, 0xffffffff
jne 0x41290c
xor al, al
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.00477f65
add esp, 0x1c
ret 4
push ebp
mov byte [esi + 0x1c], 1
call dword [sym.imp.WS2_32.dll_inet_addr]
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0x20], eax
call ebp
mov ecx, dword [esi + 0x20]
mov dword [esi + 0x28], eax
xor eax, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
push 0x4d2
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov word [esp + 0x18], 2
mov dword [esp + 0x1c], ecx
call dword [sym.imp.WS2_32.dll_htons]
push 0x10
lea edx, [esp + 0x18]
push edx
push edi
mov word [esp + 0x22], ax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x41297b
call ebp
sub eax, dword [esi + 0x28]
cmp byte [esi + 0x1c], bl
mov dword [esi + 0x2c], eax
je 0x412978
mov dword [esi + 0x30], ebx
mov byte [esi + 0x1c], bl
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
cmp byte [esi + 0x1c], bl
je 0x4129a3
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp byte [esi + 0x1c], bl
je 0x4129a3
or eax, 0xffffffff
mov byte [esi + 0x1c], bl
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], eax
mov ecx, dword [esp + 0x24]
pop edi
pop ebp
pop ebx
xor ecx, esp
mov al, 1
call fcn.00477f65
add esp, 0x1c
ret 4