joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45c15e
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x45c196
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.0045a215
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0045a1ed
jmp 0x45c1a2
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x45d84c
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 0x45d88e
call fcn.004635ce
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x45d88e
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x45d885
xor eax, eax
jmp 0x45d896
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0045d89c
pop edi
pop esi
pop ebx
ret 4

Function at 0x463afe
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 0x463b2c
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x463b4a
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00463a64
jmp 0x463b4a
mov eax, dword [esi + 0x14]
test eax, eax
je 0x463b4a
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00463a64
test edi, edi
mov eax, edi
jne 0x463b34
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401510
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4130a3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
mov eax, dword [esp + 0x34]
push esi
push eax
lea ecx, [esp + 0xc]
mov dword [esp + 8], 0
call dword [0x415158]
mov ecx, dword [esp + 0x3c]
push ecx
mov ecx, eax
mov dword [esp + 0x30], 1
call dword [0x415170]
mov esi, dword [esp + 0x34]
push eax
mov ecx, esi
call dword [0x415158]
lea ecx, [esp + 8]
mov dword [esp + 4], 1
mov byte [esp + 0x2c], 0
call dword [0x41515c]
mov ecx, dword [esp + 0x24]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x2c
ret

Function at 0x401590
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4130a3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
mov eax, dword [esp + 0x34]
push esi
push eax
lea ecx, [esp + 0xc]
mov dword [esp + 8], 0
call dword [0x41516c]
mov ecx, dword [esp + 0x3c]
push ecx
mov ecx, eax
mov dword [esp + 0x30], 1
call dword [0x415170]
mov esi, dword [esp + 0x34]
push eax
mov ecx, esi
call dword [0x415158]
lea ecx, [esp + 8]
mov dword [esp + 4], 1
mov byte [esp + 0x2c], 0
call dword [0x41515c]
mov ecx, dword [esp + 0x24]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x2c
ret

Function at 0x401610
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4130a3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
mov eax, dword [esp + 0x34]
push esi
push eax
lea ecx, [esp + 0xc]
mov dword [esp + 8], 0
call dword [0x415158]
mov ecx, dword [esp + 0x3c]
push ecx
mov ecx, eax
mov dword [esp + 0x30], 1
call dword [0x415174]
mov esi, dword [esp + 0x34]
push eax
mov ecx, esi
call dword [0x415158]
lea ecx, [esp + 8]
mov dword [esp + 4], 1
mov byte [esp + 0x2c], 0
call dword [0x41515c]
mov ecx, dword [esp + 0x24]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x2c
ret

Function at 0x401690
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4130d3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
mov eax, dword [esp + 0x34]
push esi
push eax
lea ecx, [esp + 0xc]
mov dword [esp + 8], 0
call dword [0x415184]
mov ecx, dword [esp + 0x3c]
push ecx
mov ecx, eax
mov dword [esp + 0x30], 1
call dword [0x415180]
mov esi, dword [esp + 0x34]
push eax
mov ecx, esi
call dword [0x415184]
lea ecx, [esp + 8]
mov dword [esp + 4], 1
mov byte [esp + 0x2c], 0
call dword [0x41517c]
mov ecx, dword [esp + 0x24]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x2c
ret

Function at 0x401710
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4130d3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
mov eax, dword [esp + 0x34]
push esi
push eax
lea ecx, [esp + 0xc]
mov dword [esp + 8], 0
call dword [0x415188]
mov ecx, dword [esp + 0x3c]
push ecx
mov ecx, eax
mov dword [esp + 0x30], 1
call dword [0x415180]
mov esi, dword [esp + 0x34]
push eax
mov ecx, esi
call dword [0x415184]
lea ecx, [esp + 8]
mov dword [esp + 4], 1
mov byte [esp + 0x2c], 0
call dword [0x41517c]
mov ecx, dword [esp + 0x24]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x2c
ret
Function at 0x401790
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4130d3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
mov eax, dword [esp + 0x34]
push esi
push eax
lea ecx, [esp + 0xc]
mov dword [esp + 8], 0
call dword [0x415184]
mov ecx, dword [esp + 0x3c]
push ecx
mov ecx, eax
mov dword [esp + 0x30], 1
call dword [0x41518c]
mov esi, dword [esp + 0x34]
push eax
mov ecx, esi
call dword [0x415184]
lea ecx, [esp + 8]
mov dword [esp + 4], 1
mov byte [esp + 0x2c], 0
call dword [0x41517c]
mov ecx, dword [esp + 0x24]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x2c
ret
Function at 0x4049f0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x413411
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x11c]
test eax, eax
mov dword [esp + 0x30], 0
je 0x404a28
mov eax, dword [esi + 0x120]
test eax, eax
jne 0x404a60
mov ecx, esi
call fcn.004044a0
test eax, eax
mov ecx, dword [esp + 0x54]
mov dword [ecx], eax
je 0x404a60
lea ecx, [esp + 0x38]
mov dword [esp + 0x30], 0xffffffff
call dword [0x41515c]
xor al, al
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop esi
pop ebx
add esp, 0x2c
ret 0x24
cmp dword [esp + 0x50], 0x10
mov word [esp + 8], 8
jb 0x404a8f
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x404a95
push 0xffffffffffffffff
push eax
call fcn.00403780
add esp, 8
test eax, eax
jne 0x404a97
push 0x8007000e
call fcn.00402da0
lea eax, [esp + 0x3c]
jmp 0x404a76
xor eax, eax
mov ebx, dword [esp + 8]
mov ecx, eax
mov eax, dword [esi + 0x120]
mov edx, dword [eax]
push 0
lea esi, [esp + 0x1c]
push esi
sub esp, 0x10
mov esi, esp
mov dword [esi], ebx
mov ebx, dword [esp + 0x24]
mov dword [esi + 4], ebx
mov dword [esi + 8], ecx
mov ecx, dword [esp + 0x2c]
push 0x13a
push eax
mov byte [esp + 0x50], 1
mov dword [esp + 0x74], 0
mov dword [esi + 0xc], ecx
call dword [edx + 0x1c]
mov edx, dword [esp + 0x58]
test eax, eax
push 0
mov dword [edx], eax
setge bl
call dword [0x415330]
lea ecx, [esp + 0x38]
mov dword [esp + 0x30], 0xffffffff
call dword [0x41515c]
mov ecx, dword [esp + 0x28]
pop esi
mov al, bl
mov dword fs:[0], ecx
pop ebx
add esp, 0x2c
ret 0x24
Function at 0x408b40
Capabilities:
Query or enumerate registry value

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0x14]
mov eax, dword [edi]
shl eax, 1
lea edx, [esp + 0x14]
push edx
mov edx, dword [esp + 0x10]
push esi
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x18]
push eax
push 0
mov dword [edi], 0
mov eax, dword [ecx]
push edx
push eax
call dword [0x415014]
test eax, eax
jne 0x408bad
mov eax, dword [esp + 0x10]
cmp eax, 1
je 0x408b85
cmp eax, 2
jne 0x408b9d
test esi, esi
mov eax, dword [esp + 0x14]
je 0x408ba7
test al, 1
jne 0x408b9d
mov ecx, eax
shr ecx, 1
cmp word [esi + ecx*2 - 2], 0
je 0x408ba7
pop edi
mov eax, 0xd
pop esi
ret 0xc
shr eax, 1
mov dword [edi], eax
xor eax, eax
pop edi
pop esi
ret 0xc

Function at 0x408c40
Capabilities:
Get file version info

Disassembly:
sub esp, 0xc
push ebx
mov ebx, dword [esp + 0x14]
push edi
lea eax, [esp + 8]
push eax
push ebx
call fcn.00413000
mov edi, eax
test edi, edi
jne 0x408c60
pop edi
pop ebx
add esp, 0xc
ret
push esi
push edi
call dword [0x415288]
mov esi, eax
add esp, 4
test esi, esi
je 0x408ceb
mov ecx, dword [esp + 0xc]
push esi
push edi
push ecx
push ebx
call fcn.00412ffa
test eax, eax
je 0x408ce1
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x14]
push eax
push 0x4155cc
push esi
call fcn.00412ff4
test eax, eax
je 0x408ce1
mov eax, dword [esp + 0x10]
mov cx, word [eax + 0xa]
mov edx, dword [esp + 0x20]
mov word [edx], cx
mov cx, word [eax + 8]
mov edx, dword [esp + 0x24]
mov word [edx], cx
mov cx, word [eax + 0xe]
mov edx, dword [esp + 0x28]
mov word [edx], cx
mov ax, word [eax + 0xc]
mov ecx, dword [esp + 0x2c]
push esi
mov word [ecx], ax
call dword [0x41526c]
add esp, 4
pop esi
pop edi
mov eax, 1
pop ebx
add esp, 0xc
ret
push esi
call dword [0x41526c]
add esp, 4
pop esi
pop edi
xor eax, eax
pop ebx
add esp, 0xc
ret
Function at 0x409450
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x413bf9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24c
mov eax, dword [0x41b5c0]
push ebx
push ebp
push esi
mov dword [esp + 0x254], eax
push edi
mov esi, dword [esp + 0x290]
sub esp, 0x1c
lea eax, [esp + 0x288]
xor ebx, ebx
mov ecx, esp
mov dword [esp + 0x2c], esp
push eax
mov dword [esp + 0x284], ebx
mov byte [esi], bl
call dword [0x415184]
call fcn.004089f0
mov ecx, dword [esp + 0x2a8]
add esp, 0x1c
cmp eax, 1
mov dword [ecx], eax
jne 0x4094db
mov byte [esi], al
mov dword [esp + 0x264], 0xffffffff
lea ecx, [esp + 0x26c]
call dword [0x41517c]
xor al, al
jmp 0x409643
cmp eax, 2
je 0x4094bc
mov ebp, dword [esp + 0x288]
xor eax, eax
mov ecx, 0xf
lea edi, [esp + 0x14]
rep stosd dword es:[edi], eax
mov dword [ebp], ebx
mov dword [esp + 0x14], 0x3c
mov dword [esp + 0x18], 0x40
mov dword [esp + 0x1c], ebx
call fcn.00408bc0
test eax, eax
mov dword [esp + 0x20], str.open
je 0x409524
mov dword [esp + 0x20], str.runas
cmp dword [esp + 0x284], 8
jb 0x40953b
mov edx, dword [esp + 0x270]
mov dword [esp + 0x24], edx
jmp 0x409546
lea eax, [esp + 0x270]
mov dword [esp + 0x24], eax
mov word [esp + 0x50], bx
xor eax, eax
mov ecx, 0x81
lea edi, [esp + 0x52]
rep stosd dword es:[edi], eax
push 0x4158dc
lea ecx, [esp + 0x54]
push 0x104
push ecx
stosw word es:[edi], ax
call dword [0x415294]
add esp, 0xc
lea eax, [esp + 0x14]
lea edx, [esp + 0x50]
push eax
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
call dword [0x415344]
test eax, eax
jne 0x4095da
call dword [0x415100]
cmp eax, 5
mov dword [ebp], eax
je 0x4094bc
cmp eax, 0x4c7
je 0x4094bc
cmp eax, 2
lea ecx, [esp + 0x26c]
mov dword [esp + 0x264], 0xffffffff
je 0x4094ce
mov byte [esi], 1
call dword [0x41517c]
xor al, al
jmp 0x409643
mov esi, dword [esp + 0x4c]
cmp esi, ebx
je 0x4094bc
push 0x7530
push esi
mov dword [esp + 0x18], ebx
call dword [0x41507c]
lea ecx, [esp + 0x10]
push ecx
push esi
call dword [0x415098]
mov eax, dword [esp + 0x10]
cmp eax, 0x103
mov dword [ebp], eax
jne 0x409622
mov edx, dword [esp + 0x290]
push ebx
push esi
mov byte [edx], 1
call dword [0x415094]
push esi
call dword [0x41510c]
lea ecx, [esp + 0x26c]
mov dword [esp + 0x264], 0xffffffff
call dword [0x41517c]
mov al, 1
mov ecx, dword [esp + 0x25c]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x258]
call fcn.00412959
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x258
ret
Function at 0x409740
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x413c53
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x45c
mov eax, dword [0x41b5c0]
push ebp
push esi
xor ebp, ebp
push edi
lea ecx, [esp + 0x38]
mov dword [esp + 0x464], eax
mov dword [esp + 0x14], ebp
call dword [0x4151b4]
mov eax, dword [str.CLSID_]
mov ecx, dword [0x415920]
mov edx, dword [0x415924]
mov dword [esp + 0x54], eax
mov ax, word [0x415928]
mov word [esp + 0x60], ax
mov dword [esp + 0x58], ecx
xor eax, eax
mov dword [esp + 0x5c], edx
mov ecx, 0x7e
lea edi, [esp + 0x62]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [esp + 0x47c]
mov edx, dword [eax + 0x18]
add eax, 4
cmp edx, 8
mov dword [esp + 0x470], 1
jb 0x4097d2
mov ecx, dword [eax]
jmp 0x4097d4
mov ecx, eax
cmp edx, 8
jb 0x4097dd
mov edi, dword [eax]
jmp 0x4097df
mov edi, eax
mov esi, dword [0x4152a0]
push ecx
call esi
push eax
push edi
mov edi, dword [0x41529c]
lea ecx, [esp + 0x60]
push ecx
call edi
push str.InprocServer32
call esi
push eax
lea edx, [esp + 0x6c]
push str.InprocServer32
push edx
call edi
add esp, 0x20
mov dword [esp + 0x10], ebp
xor edx, edx
xor eax, eax
mov word [esp + 0x25c], dx
mov ecx, 0x81
lea edi, [esp + 0x25e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0xc]
push eax
push 0x20019
push edx
lea ecx, [esp + 0x60]
push ecx
push 0x80000000
mov byte [esp + 0x484], 2
mov dword [esp + 0x2c], 0x208
mov dword [esp + 0x20], edx
call dword [0x415010]
test eax, eax
jne 0x4098e6
mov ebp, dword [esp + 0xc]
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x260]
push eax
push 0
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], ebp
call fcn.00408b40
test eax, eax
jne 0x4098e6
lea ecx, [esp + 0x25c]
push ecx
call esi
add esp, 4
test eax, eax
jbe 0x4098e6
lea edx, [esp + 0x25c]
push edx
call dword [0x415350]
test eax, eax
je 0x4098e6
lea eax, [esp + 0x25c]
push eax
lea ecx, [esp + 0x20]
push ecx
call fcn.00408d00
add esp, 8
push eax
lea ecx, [esp + 0x3c]
mov byte [esp + 0x474], 3
call dword [0x4151b8]
lea ecx, [esp + 0x1c]
mov byte [esp + 0x470], 2
call dword [0x41515c]
mov edi, dword [esp + 0x480]
test edi, edi
je 0x40990e
lea edx, [esp + 0x25c]
push edx
call esi
push eax
lea eax, [esp + 0x264]
push eax
push edi
call dword [0x415298]
add esp, 0x10
mov esi, dword [esp + 0x478]
lea ecx, [esp + 0x38]
push ecx
mov ecx, esi
call dword [0x415158]
test ebp, ebp
mov dword [esp + 0x14], 1
je 0x409935
push ebp
call dword [0x41500c]
lea ecx, [esp + 0x38]
mov byte [esp + 0x470], 0
call dword [0x41515c]
mov ecx, dword [esp + 0x468]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x45c]
pop ebp
call fcn.00412959
add esp, 0x468
ret
Function at 0x409b80
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x413cc3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push esi
push edi
mov dword [esp + 8], 0
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x34]
mov dword [esp + 0x28], 1
call dword [0x415204]
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x34]
mov esi, eax
call dword [0x415200]
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0x34]
mov edi, eax
call dword [0x415204]
mov ecx, dword [0x4152a4]
mov edx, dword [esi]
push ecx
mov ecx, dword [edi]
push edx
mov edx, dword [eax]
push ecx
push edx
lea eax, [esp + 0x28]
push eax
call fcn.00409aa0
mov esi, dword [esp + 0x40]
add esp, 0x14
lea ecx, [esp + 0x30]
push ecx
mov ecx, esi
call dword [0x415158]
lea ecx, [esp + 0x30]
mov dword [esp + 8], 1
mov byte [esp + 0x24], 0
call dword [0x41515c]
mov ecx, dword [esp + 0x1c]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x20
ret
Function at 0x40b950
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x413e76
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
mov eax, dword [0x41b5c0]
mov dword [esp + 0x24], eax
push ebx
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x10]
mov dword [esp + 0x38], 1
call dword [0x415184]
mov eax, dword [esp + 0x54]
mov bl, 2
cmp eax, 8
mov eax, dword [esp + 0x40]
mov byte [esp + 0x34], bl
jae 0x40b9a0
lea eax, [esp + 0x40]
push eax
call dword [0x415350]
sub esp, 0x1c
test eax, eax
lea edx, [esp + 0x74]
mov ecx, esp
je 0x40ba57
mov dword [esp + 0x24], esp
push edx
call dword [0x415158]
sub esp, 0x1c
mov eax, esp
lea ecx, [esp + 0x44]
mov dword [esp + 0x3c], esp
push ecx
push eax
mov byte [esp + 0x74], 3
call fcn.00409050
add esp, 8
mov byte [esp + 0x6c], bl
call fcn.0040b720
add esp, 0x38
test al, al
je 0x40ba26
lea ecx, [esp + 0xc]
mov byte [esp + 0x34], 1
call dword [0x41517c]
lea ecx, [esp + 0x3c]
mov byte [esp + 0x34], 0
call dword [0x41517c]
lea ecx, [esp + 0x58]
mov dword [esp + 0x34], 0xffffffff
call dword [0x41515c]
mov al, 1
jmp 0x40babe
cmp dword [esp + 0x54], 8
mov eax, dword [esp + 0x40]
jae 0x40ba35
lea eax, [esp + 0x40]
push eax
call dword [0x4150ac]
sub esp, 0x1c
lea edx, [esp + 0x74]
mov ecx, esp
mov dword [esp + 0x20], esp
push edx
call dword [0x415158]
mov byte [esp + 0x50], 4
jmp 0x40ba67
mov dword [esp + 0x20], esp
push edx
call dword [0x415158]
mov byte [esp + 0x50], 5
sub esp, 0x1c
lea ecx, [esp + 0x44]
mov eax, esp
mov dword [esp + 0x40], esp
push ecx
push eax
call fcn.00409050
add esp, 8
mov byte [esp + 0x6c], bl
call fcn.0040b420
lea ecx, [esp + 0x44]
add esp, 0x38
mov byte [esp + 0x34], 1
mov bl, al
call dword [0x41517c]
lea ecx, [esp + 0x3c]
mov byte [esp + 0x34], 0
call dword [0x41517c]
lea ecx, [esp + 0x58]
mov dword [esp + 0x34], 0xffffffff
call dword [0x41515c]
mov al, bl
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x28]
call fcn.00412959
pop ebx
add esp, 0x34
ret
Function at 0x40e0f0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4143f4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push esi
mov esi, ecx
push edi
lea edi, [esi + 4]
mov ecx, edi
mov dword [esp + 8], esi
mov dword [esi], vtable.CPeerId.0
call dword [0x4151b4]
lea ecx, [esi + 0x20]
mov dword [esp + 0x30], 0
call dword [0x4151b4]
lea ecx, [esi + 0x3c]
mov byte [esp + 0x30], 1
call dword [0x4151b4]
lea ecx, [esi + 0x58]
mov byte [esp + 0x30], 2
call dword [0x4151b4]
lea ecx, [esi + 0x74]
mov byte [esp + 0x30], 3
call dword [0x4151b4]
lea ecx, [esi + 0x90]
mov byte [esp + 0x30], 4
call dword [0x4151b4]
lea eax, [esp + 0xc]
push eax
mov ecx, esi
mov byte [esp + 0x34], 5
call fcn.0040dec0
push eax
mov ecx, edi
mov byte [esp + 0x34], 6
call dword [0x4151b8]
lea ecx, [esp + 0xc]
mov byte [esp + 0x30], 5
call dword [0x41515c]
mov ecx, dword [esp + 0x28]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x2c
ret

Function at 0x40e340
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x194
mov eax, dword [0x41b5c0]
mov dword [esp + 0x190], eax
lea eax, [esp]
push eax
push 0x202
call fcn.00412fe8
test eax, eax
je 0x40e37e
call fcn.00412fe2
xor eax, eax
mov ecx, dword [esp + 0x190]
call fcn.00412959
add esp, 0x194
ret
mov ecx, dword [esp + 0x190]
mov eax, 1
call fcn.00412959
add esp, 0x194
ret

Function at 0x40e3a0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Resolve dns

Disassembly:
sub esp, 0x14
mov eax, dword [0x41b5c0]
push esi
push 0
push 1
push 2
mov dword [esp + 0x20], eax
mov esi, ecx
call fcn.00412fdc
cmp eax, 0xffffffff
mov dword [esi], eax
jne 0x40e3d8
call fcn.00412fe2
xor eax, eax
pop esi
mov ecx, dword [esp + 0x10]
call fcn.00412959
add esp, 0x14
ret 8
mov eax, dword [esp + 0x1c]
push eax
call fcn.00412fd6
test eax, eax
jne 0x40e405
call fcn.00412fe2
mov ecx, dword [esi]
push ecx
call fcn.00412fc4
xor eax, eax
pop esi
mov ecx, dword [esp + 0x10]
call fcn.00412959
add esp, 0x14
ret 8
mov word [esp + 4], 2
mov edx, dword [eax + 0xc]
mov eax, dword [edx]
mov edx, dword [esp + 0x20]
mov ecx, dword [eax]
push edx
mov dword [esp + 0xc], ecx
call fcn.00412fd0
mov ecx, dword [esi]
mov word [esp + 6], ax
push 0x10
lea eax, [esp + 8]
push eax
push ecx
call fcn.00412fca
cmp eax, 0xffffffff
jne 0x40e459
call fcn.00412fe2
mov edx, dword [esi]
push edx
call fcn.00412fc4
xor eax, eax
pop esi
mov ecx, dword [esp + 0x10]
call fcn.00412959
add esp, 0x14
ret 8
mov ecx, dword [esp + 0x14]
mov eax, 1
pop esi
call fcn.00412959
add esp, 0x14
ret 8

Function at 0x40e470
Capabilities:
Send data
Send data on socket

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
push edi
mov edi, dword [esp + 0x18]
mov ebx, ecx
xor esi, esi
mov edx, dword [ebx]
push 0
mov eax, edi
sub eax, esi
push eax
lea ecx, [esi + ebp]
push ecx
push edx
call fcn.00412fbe
cmp eax, 0xffffffff
je 0x40e4aa
add esi, eax
cmp esi, edi
jb 0x40e480
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret 8
call fcn.00412fe2
mov eax, dword [ebx]
push eax
call fcn.00412fc4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 8
Function at 0x40e9c0
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
xor ebp, ebp
cmp ebx, ebp
push edi
mov edi, ecx
jne 0x40e9e1
push ebp
push ebp
push ebp
push 2
call fcn.00410c20
pop edi
pop ebp
xor al, al
pop ebx
ret 8
push esi
mov esi, dword [edi + 0x18]
cmp esi, ebp
je 0x40e9ff
lea esp, [esp]
mov ecx, esi
mov eax, dword [ecx]
mov esi, dword [esi + 0x40]
push 1
call dword [eax]
cmp esi, ebp
jne 0x40e9f0
mov esi, dword [0x4152c4]
push 2
or eax, 0xffffffff
mov dword [edi + 0x18], ebp
mov dword [edi + 0x1c], ebp
push ebp
push ebx
mov dword [edi + 8], eax
mov dword [edi + 4], eax
call esi
push ebx
call dword [0x4152c0]
push 0
push 0
push ebx
mov ebp, eax
call esi
add esp, 0x1c
test ebp, ebp
jg 0x40ea49
push 0
push 0
push 0
push 0xc
mov ecx, edi
call fcn.00410c20
pop esi
pop edi
pop ebp
xor al, al
pop ebx
ret 8
lea ecx, [ebp + 1]
push ecx
call fcn.004128b7
push ebx
push 1
mov esi, eax
push ebp
push esi
mov byte [esi], 0
call dword [0x4152bc]
add esp, 0x14
cmp eax, 1
je 0x40ea8b
push esi
call fcn.00412968
add esp, 4
push 0
push 0
push 0
push 2
mov ecx, edi
call fcn.00410c20
pop esi
pop edi
pop ebp
xor al, al
pop ebx
ret 8
mov byte [esi + ebp], 0
cmp byte [esi], 0
mov eax, esi
mov ecx, esi
je 0x40eab7
mov dl, byte [eax]
cmp dl, 0xd
jne 0x40eaae
mov byte [ecx], 0xa
mov dl, byte [eax + 1]
inc ecx
inc eax
cmp dl, 0xa
jne 0x40eab2
jmp 0x40eab1
mov byte [ecx], dl
inc ecx
inc eax
cmp byte [eax], 0
jne 0x40ea98
mov eax, dword [esp + 0x18]
push eax
mov byte [ecx], 0
mov edx, dword [edi]
push 0
push esi
mov ecx, edi
call dword [edx + 8]
push esi
call fcn.00412968
mov cl, byte [edi + 0x44]
add esp, 4
pop esi
pop edi
xor eax, eax
test cl, cl
pop ebp
sete al
pop ebx
ret 8

Function at 0x40f230
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x414414
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
or eax, 0xffffffff
push edi
xor edi, edi
mov dword [esi + 8], eax
mov dword [esi + 4], eax
mov dword [esp + 8], esi
mov dword [esi + 0xc], edi
lea ecx, [esi + 0x14]
mov dword [esp + 0x14], edi
mov dword [esi], 0x416028
call dword [0x4151b4]
lea ecx, [esi + 0x30]
mov byte [esp + 0x14], 1
call dword [0x4151b4]
mov ecx, dword [esp + 0xc]
mov dword [esi + 0x10], edi
mov dword [esi + 0x50], edi
mov dword [esi + 0x4c], edi
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x40f7b0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4144c9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
mov eax, dword [esp + 0x2c]
push esi
push edi
mov edi, ecx
push eax
lea ecx, [esp + 0xc]
call dword [0x41516c]
lea ecx, [esp + 8]
lea esi, [edi + 0x20]
push ecx
mov ecx, esi
mov dword [esp + 0x30], 0
call dword [0x4151b8]
cmp dword [esi + 0x18], 0x10
jb 0x40f7fe
mov esi, dword [esi + 4]
jmp 0x40f801
add esi, 4
push 0x416088
push esi
call dword [0x4152b8]
mov esi, eax
add esp, 8
test esi, esi
mov ecx, edi
je 0x40f858
mov edx, dword [esp + 0x38]
push ebx
push edx
push esi
call fcn.0040e9c0
push esi
mov bl, al
call dword [0x4152d0]
add esp, 4
lea ecx, [esp + 0xc]
mov dword [esp + 0x30], 0xffffffff
call dword [0x41515c]
mov al, bl
pop ebx
pop edi
pop esi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
add esp, 0x28
ret 8
push 0
push 0
push 0
push 2
call fcn.00410c20
lea ecx, [esp + 8]
mov dword [esp + 0x2c], 0xffffffff
call dword [0x41515c]
mov ecx, dword [esp + 0x24]
pop edi
xor al, al
pop esi
mov dword fs:[0], ecx
add esp, 0x28
ret 8