joyce8/EMBER2024-capa huggingface dataset:
Function at 0x495300
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4d5cc0
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push ebp
push esi
push edi
mov esi, ecx
call fcn.004ce9f1
mov edi, dword [eax + 0xc]
xor ebp, ebp
cmp edi, ebp
jne 0x495333
xor al, al
jmp 0x49545f
mov ebx, dword [esp + 0x28]
push 0xf1
and ebx, 0xffff
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebp
jne 0x495355
xor al, al
jmp 0x49545f
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebp
jne 0x495368
xor al, al
jmp 0x49545f
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
cmp edi, ebp
jne 0x49537c
xor al, al
jmp 0x49545f
xor eax, eax
xor ecx, ecx
mov ax, word [edi + 2]
push ebp
mov dword [esi + 0x14], eax
xor eax, eax
mov ax, word [edi + 4]
mov edx, dword [esi + 0x14]
mov dword [esi + 0x18], eax
mov cx, word [edi + 6]
push ecx
push 5
push eax
push edx
lea ecx, [esi + 0x1c]
call fcn.004c2be2
test eax, eax
jne 0x4953b0
xor al, al
jmp 0x49545f
mov eax, dword [esi + 0x34]
push eax
mov eax, dword [esi + 0x20]
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_SetBkColor]
mov dword [esp + 0x14], ebp
mov dword [esp + 0x10], 0x6e68a4
mov dword [esp + 0x20], ebp
call fcn.004ce9f1
mov eax, dword [eax + 0xc]
push ebx
push eax
call dword [sym.imp.USER32.dll_LoadBitmapA]
push eax
lea ecx, [esp + 0x14]
call fcn.004cb745
mov edx, dword [esp + 0x14]
mov ecx, dword [esi + 0x20]
lea eax, [esp + 0x10]
push 0xc0c0c0
neg eax
sbb eax, eax
and eax, edx
push eax
push ecx
call dword [sym.imp.COMCTL32.dll_ImageList_AddMasked]
lea ecx, [esp + 0x10]
call fcn.004cb79c
xor ecx, ecx
lea ebx, [edi + 8]
cmp word [edi + 6], cx
jbe 0x495444
mov ax, word [ebx]
test ax, ax
je 0x495436
mov edx, ecx
inc ecx
mov dword [esp + 0x28], ecx
push eax
push edx
mov ecx, esi
call fcn.00495480
mov ecx, dword [esp + 0x28]
xor edx, edx
inc ebp
mov dx, word [edi + 6]
add ebx, 2
cmp ebp, edx
jl 0x49541a
mov dword [esp + 0x10], method.CGdiObject.virtual_0
lea ecx, [esp + 0x10]
mov dword [esp + 0x20], 1
call fcn.004cb79c
mov al, 1
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret 4

Function at 0x495980
Capabilities:
Get graphical window text

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x50
push esi
mov esi, dword [esp + 0x58]
push edi
push eax
mov ecx, esi
call fcn.004ccdf5
mov edi, eax
mov eax, dword [esi]
test eax, eax
je 0x4959c6
lea ecx, [esp + 8]
push 0x50
push ecx
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea edx, [esp + 8]
push edx
call fcn.004b2748
mov ecx, dword [esp + 0x68]
add esp, 4
pop edi
mov dword [ecx], eax
pop esi
add esp, 0x50
ret 0xc
mov edx, dword [esp + 0x64]
lea ecx, [esp + 8]
mov eax, dword [edx]
push eax
push 0x70a718
push ecx
call fcn.004b4713
add esp, 0xc
lea edx, [esp + 8]
push edx
push edi
call dword [sym.imp.USER32.dll_SetWindowTextA]
pop edi
pop esi
add esp, 0x50
ret 0xc
Function at 0x497740
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0xa0
push ebx
push ebp
mov ebp, dword [esp + 0xac]
push esi
push edi
push ebp
call sub.RASAPI32.dll_RasHangUpA
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x28
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], 0xa0
call esi
mov edi, eax
call esi
sub eax, edi
cmp eax, 0xbb8
jae 0x4977a6
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x10]
push eax
push ebp
call sub.RASAPI32.dll_RasGetConnectStatusA
cmp eax, 6
je 0x4977a6
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x497787
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret

Function at 0x497b30
Capabilities:
Create http request

Disassembly:
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x497b68
mov edx, dword [esi + 4]
xor eax, eax
push 0
push 0
mov ecx, dword [edx - 8]
test ecx, ecx
setne al
mov ecx, eax
neg ecx
sbb ecx, ecx
and ecx, edx
neg eax
sbb eax, eax
push ecx
and eax, 2
inc eax
push eax
push str.Mozilla_4.0__compatible__MSIE_6.0__Windows_NT_5.0_
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [esi], eax
mov ecx, dword [esi]
xor eax, eax
test ecx, ecx
setne al
pop esi
ret
Function at 0x4987e0
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [ecx]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x498829
xor eax, eax
add esp, 0x10c
ret 4
mov edx, dword [esp + 0x110]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, 1
add esp, 0x10c
ret 4

Function at 0x498ca0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4d5fa0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.00498850
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.004988d0
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.004988d0
lea ecx, [esi + 0xc]
call fcn.004c48da
lea ecx, [esi + 0x10]
call fcn.004c48da
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.00499e60
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.00499e60
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.00499e60
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.004c494f
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.004c494f
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x49d0c0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x75de18]
xor edx, edx
cmp eax, edx
jne 0x49d0e6
xor eax, eax
mov byte [eax + 0x75dd18], al
inc eax
cmp eax, 0x100
jl 0x49d0ce
mov dword [0x75de18], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x75dd18
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x49d177
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x49d14a
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x49d118
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x49d180
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x49d1d3
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x49d1ba
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4a3b90
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4d639e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.004a44b0
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0x6ea6bc
call fcn.004c4690
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x4a3c23
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.004c4690
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x4a3c1c
push 0
mov ecx, eax
call fcn.0049ad00
mov dword [esi + 0xc], eax
jmp 0x4a3c25
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x4a3c25
xor esi, esi
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], 0
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8
Function at 0x4c6d05
Capabilities:
Get graphical window text

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

Function at 0x4c8508
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 0x4c854a
call fcn.004ce9f1
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4c854a
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4c8541
xor eax, eax
jmp 0x4c8552
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004c8558
pop edi
pop esi
pop ebx
ret 4

Function at 0x4cef21
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 0x4cef4f
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4cef6d
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004cee87
jmp 0x4cef6d
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4cef6d
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004cee87
test edi, edi
mov eax, edi
jne 0x4cef57
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x407e30
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004033fc
xor eax, eax
push ebp
push 0x407f09
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp byte [eax], 0x5c
jne 0x407e68
mov eax, dword [ebp - 4]
call fcn.00407220
jmp 0x407e70
mov eax, dword [ebp - 4]
call fcn.00407c1c
call fcn.00404ae8
mov esi, eax
test esi, esi
jle 0x407ebc
mov ebx, 1
lea edx, [ebp - 8]
mov eax, ebx
call fcn.004049d0
mov eax, dword [ebp - 8]
cmp byte [eax], 0x5c
jne 0x407ea6
lea edx, [ebp - 0xc]
mov eax, ebx
call fcn.004049d0
mov eax, dword [ebp - 0xc]
call fcn.00407220
jmp 0x407eb8
lea edx, [ebp - 0x10]
mov eax, ebx
call fcn.004049d0
mov eax, dword [ebp - 0x10]
call fcn.00407c1c
inc ebx
dec esi
jne 0x407e80
push 1
push dword [ebp - 4]
push 0x407f20
lea edx, [ebp - 0x18]
xor eax, eax
call fcn.00406f84
push dword [ebp - 0x18]
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.004032cc
mov eax, dword [ebp - 0x14]
call fcn.0040340c
push eax
call sub.kernel32.dll_WinExec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407f10
lea eax, [ebp - 0x18]
mov edx, 6
call fcn.004030b8
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x431006
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
call 0x43100c
nop
pop eax
nop
nop
nop
nop
add eax, 0x403e6a
nop
sub eax, 0x403e10
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x431030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43101e
nop
nop
nop
nop
popal
nop
nop
nop
jmp fcn.00401219
Function at 0x4014a0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ecx
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0x1c]
mov byte [esp + 0xe], 2
test esi, esi
mov byte [esp + 0xf], 3
mov dword [edi], 0
je 0x40151c
push 0xf
push esi
call dword [sym.imp.KERNEL32.dll_PurgeComm]
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
lea eax, [esp + 0x1c]
push 0
push eax
lea ecx, [esp + 0x16]
push 1
push ecx
push esi
call ebx
cmp eax, 1
jne 0x40151c
mov edx, dword [esp + 0x18]
push 0
push edi
push 0x10
push edx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, 1
jne 0x40151c
cmp dword [edi], 0x10
jne 0x40151c
lea eax, [esp + 0x1c]
push 0
push eax
lea ecx, [esp + 0x17]
push 1
push ecx
push esi
call ebx
dec eax
pop edi
neg eax
sbb eax, eax
pop esi
inc eax
pop ebx
pop ecx
ret
pop edi
pop esi
xor eax, eax
pop ebx
pop ecx
ret
Function at 0x401f30
Capabilities:
Create thread

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x100
lea ecx, [eax + eax*4]
shl ecx, 3
sub ecx, eax
shl ecx, 7
add ecx, 0x439578
push ecx
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov ecx, dword [esp + 0x104]
lea eax, [ecx + ecx*4]
shl eax, 3
sub eax, ecx
shl eax, 7
mov ecx, dword [eax + 0x43a8d4]
lea edx, [ecx + 0x8c]
test edx, edx
je 0x402100
cmp word [ecx + 0xcc], 0
je 0x402100
mov ecx, dword [eax + 0x439574]
test ecx, ecx
jne 0x402100
push edx
call fcn.00424650
add esp, 4
test eax, eax
je 0x4020a8
mov eax, dword [esp + 0x104]
push 0
push 0
push 0
lea edx, [eax + eax*4]
push 0
shl edx, 3
sub edx, eax
shl edx, 7
mov eax, dword [edx + 0x43a8d4]
mov dword [eax + 0xd8], 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov ecx, dword [esp + 0x104]
push 0
push 0
lea edx, [ecx + ecx*4]
shl edx, 3
sub edx, ecx
shl edx, 7
mov dword [edx + 0x43955c], eax
lea eax, [esp + 0x10c]
push eax
push 0x4021a0
push 0
push 0
call dword [sym.imp.MSVCRT.dll__beginthreadex]
mov edx, dword [esp + 0x11c]
add esp, 0x18
lea ecx, [edx + edx*4]
shl ecx, 3
sub ecx, edx
shl ecx, 7
test eax, eax
mov dword [ecx + 0x439574], eax
je 0x402065
mov ecx, dword [ecx + 0x43955c]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 0x104]
lea edx, [eax + eax*4]
shl edx, 3
sub edx, eax
shl edx, 7
mov eax, dword [edx + 0x43a8d4]
lea edx, [esp]
lea ecx, [eax + 0x8c]
add eax, 4
push ecx
push eax
push str.INFO:_Started_OpBox:___s___s
push edx
jmp 0x402080
mov ecx, dword [ecx + 0x43a8d4]
lea eax, [ecx + 0x8c]
add ecx, 4
push eax
push ecx
lea ecx, [esp + 8]
push str.ERROR:_Start_OpBox_failed:___s___s
push ecx
call dword [sym.imp.MSVCRT.dll_swprintf]
mov eax, dword [0x4f0c80]
add esp, 0x10
lea edx, [esp]
push edx
push eax
call fcn.00422690
add esp, 8
mov eax, 1
add esp, 0x100
ret
mov eax, dword [esp + 0x104]
push edi
mov ecx, 0x4e0
lea edx, [eax + eax*4]
shl edx, 3
sub edx, eax
xor eax, eax
shl edx, 7
lea edi, [edx + 0x439558]
rep stosd dword es:[edi], eax
mov edx, dword [edx + 0x43a8d4]
lea ecx, [edx + 0x8c]
add edx, 4
push ecx
push edx
lea edx, [esp + 0xc]
push str.Error:___s_:_Not_valid_IP_address:__s_thread_not_started_
push edx
call dword [sym.imp.MSVCRT.dll_swprintf]
mov ecx, dword [0x4f0c80]
lea eax, [esp + 0x14]
push eax
push ecx
call fcn.00422690
add esp, 0x18
pop edi
xor eax, eax
add esp, 0x100
ret

Function at 0x402110
Capabilities:
Terminate thread

Disassembly:
mov eax, dword [esp + 4]
push esi
lea esi, [eax + eax*4]
shl esi, 3
sub esi, eax
shl esi, 7
mov eax, dword [esi + 0x439574]
test eax, eax
je 0x40218e
mov dword [esi + 0x43956c], 1
mov eax, dword [esi + 0x43955c]
push 0x7d0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x402159
mov ecx, dword [esi + 0x439574]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov edx, dword [esi + 0x439574]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call edi
mov dword [esi + 0x439574], 0
mov eax, dword [esi + 0x43955c]
push eax
call edi
mov dword [esi + 0x43955c], 0
pop edi
mov eax, 1
pop esi
ret
xor eax, eax
pop esi
ret
Function at 0x4026c0
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x400
push esi
lea esi, [eax + eax*4]
shl esi, 3
sub esi, eax
push edi
shl esi, 7
xor edi, edi
mov eax, dword [esi + 0x439560]
test eax, eax
jle 0x402793
mov cl, byte [esi + 0x439591]
test cl, cl
je 0x40275f
mov eax, dword [esi + 0x4395d8]
mov edx, dword [esi + 0x43a8d4]
push edi
push eax
mov eax, dword [edx + 0xd4]
lea ecx, [esi + 0x439590]
push ecx
push eax
call sub.WS2_32.dll_send
mov edi, eax
cmp edi, 0xffffffff
jne 0x402793
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2733
je 0x402793
mov ecx, dword [esi + 0x43a8d4]
lea edx, [esp + 8]
add ecx, 4
push ecx
push eax
push str.Error__d_Sending:_to___s_
push edx
call dword [sym.imp.MSVCRT.dll_swprintf]
mov ecx, dword [0x4f0c80]
lea eax, [esp + 0x18]
push eax
push ecx
call fcn.00422690
add esp, 0x18
mov eax, edi
pop edi
pop esi
add esp, 0x400
ret
test eax, eax
jle 0x402793
dec eax
test eax, eax
mov dword [esi + 0x439560], eax
jle 0x402793
cmp eax, 0x3f
jg 0x402778
mov eax, 0x3f
imul eax, eax, 0x4c
push eax
lea edx, [esi + 0x4395dc]
lea eax, [esi + 0x439590]
push edx
push eax
call dword [sym.imp.MSVCRT.dll_memmove]
add esp, 0xc
mov eax, edi
pop edi
pop esi
add esp, 0x400
ret

Function at 0x4027a0
Capabilities:
Get socket status
Send data
Send data on socket
Set socket configuration

Disassembly:
sub esp, 0x114
mov al, byte [0x439550]
push ebx
mov byte [esp + 7], al
mov eax, dword [esp + 0x124]
mov ebx, dword [esp + 0x120]
push ebp
lea eax, [eax + eax*4]
push esi
push edi
mov edi, dword [esp + 0x128]
lea eax, [eax + eax*4]
mov ebp, 1
mov dword [esp + 0x18], 0
mov dword [esp + 0x24], edi
lea ecx, [eax + eax*4]
mov dword [esp + 0x20], ebp
shl ecx, 3
cmp ebx, ebp
mov dword [esp + 0x1c], ecx
jne 0x402801
lea edx, [esp + 0x18]
lea eax, [esp + 0x20]
push edx
push 0
push 0
push eax
jmp 0x40280f
lea ecx, [esp + 0x18]
lea edx, [esp + 0x20]
push ecx
push 0
push edx
push 0
push 0
call sub.WS2_32.dll_select
mov esi, eax
xor eax, eax
test esi, esi
setg al
test eax, eax
je 0x40282e
lea eax, [esp + 0x20]
push eax
push edi
call sub.WS2_32.dll___WSAFDIsSet
cmp ebx, 1
jne 0x40286a
test eax, eax
je 0x402854
lea ecx, [esp + 0x14]
push ecx
push 0x4004667f
push edi
call sub.WS2_32.dll_ioctlsocket
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x402884
or esi, 0xffffffff
jmp 0x402888
cmp esi, 0xffffffff
je 0x402884
push 0
lea edx, [esp + 0x17]
push 0
push edx
push edi
call sub.WS2_32.dll_send
jmp 0x402884
cmp ebx, 2
jne 0x402884
test eax, eax
je 0x402884
push 0
lea eax, [esp + 0x17]
push 1
push eax
push edi
call sub.WS2_32.dll_send
mov esi, eax
test esi, esi
jg 0x4028db
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2744
je 0x4028ce
cmp eax, 0x2745
je 0x4028ce
cmp eax, 0x2746
je 0x4028ce
cmp eax, 0x2749
je 0x4028ce
cmp eax, 0x2726
je 0x4028ce
cmp esi, 0xffffffff
je 0x4028ce
test esi, esi
jg 0x4028be
cmp ebx, 2
je 0x4028ce
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x114
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x114
ret
cmp esi, 2
mov eax, 2
je 0x4028e7
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x114
ret
Function at 0x4041c0
Capabilities:
Copy file

Disassembly:
sub esp, 0x210
push ebx
push esi
push edi
mov edi, dword [esp + 0x224]
test edi, edi
je 0x404306
mov ebx, dword [sym.imp.MSVCRT.dll_wcslen]
push edi
call ebx
add esp, 4
test eax, eax
je 0x404306
mov esi, dword [esp + 0x220]
test esi, esi
je 0x404306
push esi
call ebx
add esp, 4
test eax, eax
je 0x404306
push edi
call fcn.00423900
add esp, 4
test eax, eax
je 0x404306
lea eax, [esp + 0x14]
push edi
push eax
call dword [sym.imp.MSVCRT.dll_wcscpy]
push 1
lea ecx, [esp + 0x20]
push 0
push ecx
call fcn.00422ac0
push esi
call ebx
lea eax, [esi + eax*2 - 2]
add esp, 0x18
cmp eax, esi
jb 0x40424f
cmp word [eax], 0x5c
je 0x40424f
sub eax, 2
cmp eax, esi
jae 0x404242
add eax, 2
lea edx, [esp + 0x14]
push eax
push edx
call dword [sym.imp.MSVCRT.dll_wcscat]
push esi
call fcn.00423010
lea eax, [esp + 0x20]
fstp st(0)
push eax
call fcn.00423010
mov eax, dword [esp + 0x238]
add esp, 0x10
test eax, eax
fstp st(0)
je 0x40429e
push 0
lea ecx, [esp + 0x18]
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
neg eax
sbb eax, eax
pop edi
pop esi
pop ebx
neg eax
add esp, 0x210
ret
push esi
call fcn.00423010
fstp qword [esp + 0x10]
lea edx, [esp + 0x18]
push edx
call fcn.00423010
fcomp qword [esp + 0x14]
add esp, 8
fnstsw ax
test ah, 0x40
je 0x4042e8
push esi
call fcn.00423a60
mov edi, eax
lea eax, [esp + 0x18]
push eax
call fcn.00423a60
add esp, 8
cmp edi, eax
jne 0x4042e8
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x210
ret
lea ecx, [esp + 0x14]
push 0
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
neg eax
sbb eax, eax
pop edi
pop esi
pop ebx
neg eax
add esp, 0x210
ret
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x210
ret
Function at 0x415290
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x570
push ebx
push esi
push edi
mov ecx, 9
xor eax, eax
lea edi, [esp + 0x14]
mov dword [esp + 0x10], 0
push 0x7f00
rep stosd dword es:[edi], eax
push eax
mov dword [esp + 0x34], 6
call dword [sym.imp.USER32.dll_LoadCursorW]
push 0x7f00
push 0
mov dword [esp + 0x30], eax
call dword [sym.imp.USER32.dll_LoadIconW]
mov dword [esp + 0x14], 0x415440
mov dword [esp + 0x34], 0x42e9dc
mov ebx, dword [esp + 0x580]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x10]
mov dword [esp + 0x20], ebx
push eax
mov dword [esp + 0x14], 3
call dword [sym.imp.USER32.dll_RegisterClassW]
mov ecx, 0x80
lea edi, [esp + 0x17c]
mov esi, dword [esp + 0x588]
lea edx, [esp + 0x54]
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x7c]
lea eax, [esp + 0xc]
push ecx
push edx
lea ecx, [esp + 0x184]
push eax
push ecx
call fcn.00422eb0
add esp, 0x10
call fcn.00423110
mov eax, dword [esp + 0xc]
mov esi, dword [sym.imp.MSVCRT.dll_wcscpy]
fstp qword [0x43c6b8]
mov edi, 1
cmp eax, edi
jle 0x41537a
mov edx, dword [esp + 0x54]
push 0xa
push 0
push edx
call dword [sym.imp.MSVCRT.dll_wcstol]
mov dword [0x42e9ec], eax
mov eax, dword [esp + 0x64]
push eax
push 0x456a60
call esi
add esp, 0x14
cmp dword [esp + 0xc], 2
jle 0x415390
mov ecx, dword [esp + 0x5c]
push ecx
push 0x43c4b0
call esi
add esp, 8
mov eax, dword [0x42e9ec]
cmp eax, edi
jl 0x41539e
cmp eax, 0xa
jle 0x4153a4
mov dword [0x42e9ec], edi
push 0
push ebx
push 0
push 0
push closesocket
push closesocket
push closesocket
push closesocket
push 0x2cf0000
push 0x42e9dc
push 0x42e9dc
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov esi, eax
push 7
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call dword [sym.imp.USER32.dll_UpdateWindow]
mov esi, dword [sym.imp.USER32.dll_GetMessageW]
push 0
push 0
lea edx, [esp + 0x40]
push 0
push edx
call esi
test eax, eax
je 0x41542a
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageW]
lea eax, [esp + 0x38]
push eax
call edi
lea ecx, [esp + 0x38]
push ecx
call ebx
push 0
push 0
lea edx, [esp + 0x40]
push 0
push edx
call esi
test eax, eax
jne 0x41540b
mov eax, dword [esp + 0x40]
pop edi
pop esi
pop ebx
add esp, 0x570
ret 0x10