joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4d44b4
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4d4588
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00404720
lea eax, [ebp - 8]
call fcn.00404b88
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404b38
push eax
call fcn.00407274
mov ebx, eax
test ebx, ebx
je 0x4d4572
mov eax, ebx
call fcn.004027b4
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x4d456b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404b38
push eax
call fcn.0040726c
test eax, eax
je 0x4d4555
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x4d4598
mov eax, dword [ebp - 0x10]
push eax
call fcn.0040727c
test eax, eax
je 0x4d4555
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d4572
mov eax, dword [ebp - 0x10]
call fcn.004027d4
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d458f
lea eax, [ebp - 8]
call fcn.00404688
ret

Function at 0x4d5324
Capabilities:
Hide graphical window

Disassembly:
push ebx
mov ebx, eax
mov eax, dword [0x4f7db8]
mov eax, dword [eax]
mov eax, dword [eax + 0x44]
test eax, eax
je 0x4d5371
mov edx, dword [0x4f7db8]
cmp byte [eax + 0x22b], 1
je 0x4d5371
cmp byte [ebx + 0x2b8], 0
je 0x4d5365
mov edx, dword [0x4f7db8]
xor edx, edx
call fcn.0047d6b4
mov eax, dword [0x4f7db8]
mov eax, dword [eax]
mov byte [eax + 0x5b], 0
mov eax, dword [0x4f7db8]
mov eax, dword [eax]
call fcn.004838fc
push 0
mov eax, dword [0x4f7db8]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
call fcn.00407b14
mov byte [ebx + 0x258], 0
pop ebx
ret

Function at 0x4d5de0
Capabilities:
Query service configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov edi, edx
mov ebx, eax
mov eax, ebx
call fcn.004d6020
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 0
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebx + 8]
push eax
call fcn.004bd14c
test eax, eax
jne 0x4d5ea6
call fcn.00406fd4
mov esi, eax
cmp esi, 0x7a
jne 0x4d5e93
mov eax, dword [ebp - 4]
call fcn.004027b4
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x4d5e8c
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebx + 8]
push eax
call fcn.004bd14c
test eax, eax
jne 0x4d5e6a
call fcn.00406fd4
mov ecx, eax
mov dl, 1
mov eax, dword [0x4d5af4]
call fcn.004d5be8
call fcn.0040406c
mov eax, dword [ebp - 8]
mov esi, eax
mov ecx, 9
rep movsd dword es:[edi], dword [esi]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d5ea6
mov eax, dword [ebp - 8]
call fcn.004027d4
ret
mov ecx, esi
mov dl, 1
mov eax, dword [0x4d5af4]
call fcn.004d5be8
call fcn.0040406c
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret
Function at 0x4d6378
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff9c
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], ecx
mov edi, edx
mov esi, eax
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.00404b28
xor eax, eax
push ebp
push 0x4d64e5
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 1
push 0x4d6500
push esi
push 0x4d6500
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404a00
test edi, edi
je 0x4d63df
push dword [ebp - 0xc]
push 0x4d650c
push edi
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404a00
cmp dword [ebp - 4], 0
jne 0x4d63fa
lea edx, [ebp - 0x64]
mov eax, esi
call fcn.00427d58
mov eax, dword [ebp - 0x64]
lea edx, [ebp - 4]
call fcn.004d65d0
lea eax, [ebp - 0x50]
xor ecx, ecx
mov edx, 0x44
call fcn.004030fc
mov dword [ebp - 0x50], 0x44
mov dword [ebp - 0x24], 1
mov ax, word [ebp + 0x10]
mov word [ebp - 0x20], ax
cmp dword [ebp - 4], 0
je 0x4d6431
mov eax, dword [ebp - 4]
call fcn.00404b38
mov esi, eax
jmp 0x4d6433
xor esi, esi
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x50]
push eax
push esi
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 0xc]
call fcn.00404b38
push eax
push 0
call fcn.00406eac
test eax, eax
jne 0x4d646a
mov byte [ebp - 5], 0
call fcn.00406fd4
mov edx, dword [ebp + 8]
mov dword [edx], eax
jmp 0x4d64bf
mov eax, dword [ebp - 0x5c]
push eax
call fcn.00406e54
cmp byte [ebp + 0x14], 0
je 0x4d6484
push 0xffffffffffffffff
mov eax, dword [ebp - 0x60]
push eax
call fcn.00407b64
cmp byte [ebp + 0x18], 0
je 0x4d64a9
test ebx, ebx
je 0x4d6490
call ebx
push 0xff
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x60]
push eax
push 1
call fcn.0040799c
cmp eax, 1
je 0x4d648a
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp - 0x60]
push eax
call fcn.00406fb4
mov eax, dword [ebp - 0x60]
push eax
call fcn.00406e54
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d64ec
lea eax, [ebp - 0x64]
call fcn.00404688
lea eax, [ebp - 0xc]
call fcn.00404688
lea eax, [ebp - 4]
call fcn.00404688
ret

Function at 0x4d6510
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ecx
mov edi, edx
mov esi, eax
mov eax, dword [ebp + 0x10]
call fcn.00404b28
xor eax, eax
push ebp
push 0x4d65bc
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp + 0x10], 0
jne 0x4d6556
lea edx, [ebp - 8]
mov eax, esi
call fcn.00427d58
mov eax, dword [ebp - 8]
lea edx, [ebp + 0x10]
call fcn.004d65d0
cmp dword [ebp + 0x10], 0
je 0x4d6568
mov eax, dword [ebp + 0x10]
call fcn.00404b38
mov ebx, eax
jmp 0x4d656a
xor ebx, ebx
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, edi
call fcn.00404b38
push eax
mov eax, esi
call fcn.00404b38
push eax
mov eax, dword [ebp - 4]
call fcn.00404b38
push eax
push 0
call fcn.0041ac04
cmp eax, 0x20
setg bl
test bl, bl
jne 0x4d659e
mov edx, dword [ebp + 8]
mov dword [edx], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d65c3
lea eax, [ebp - 8]
call fcn.00404688
lea eax, [ebp + 0x10]
call fcn.00404688
ret
Function at 0x4d67d0
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffefc
mov ebx, eax
push 0x104
lea eax, [esp + 4]
push eax
call fcn.004070a4
mov edx, ebx
mov eax, esp
call fcn.004281bc
add esp, 0x104
pop ebx
ret

Function at 0x4d67fc
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffefc
mov ebx, eax
push 0x104
lea eax, [esp + 4]
push eax
call fcn.00407044
mov edx, ebx
mov eax, esp
call fcn.004281bc
add esp, 0x104
pop ebx
ret

Function at 0x4d6a60
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], ecx
mov edi, edx
mov esi, eax
xor eax, eax
push ebp
push 0x4d6b09
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea eax, [ebp - 0xc]
push eax
push 0
lea eax, [ebp - 8]
push eax
push 0
push edi
push esi
call fcn.00406e4c
test eax, eax
jne 0x4d6af3
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 0xc]
je 0x4d6aac
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 8]
jne 0x4d6af3
cmp dword [ebp - 0xc], 2
jae 0x4d6abe
mov eax, dword [ebp - 4]
call fcn.00404688
mov bl, 1
jmp 0x4d6af3
mov edx, dword [ebp - 0xc]
dec edx
lea eax, [ebp - 0x10]
call fcn.00404cc4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
call fcn.00404b90
push eax
push 0
push 0
push edi
push esi
call fcn.00406e4c
test eax, eax
jne 0x4d6af3
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x10]
call fcn.004046dc
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d6b10
lea eax, [ebp - 0x10]
call fcn.00404688
ret
Function at 0x4e0988
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff6c
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x94], ecx
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x4e0b0a
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x90]
mov eax, esi
call fcn.004e0668
mov eax, ebx
call fcn.004462ec
dec al
je 0x4e09cc
dec al
je 0x4e09d2
jmp 0x4e09d8
mov byte [ebp - 0x77], 2
jmp 0x4e09dc
mov byte [ebp - 0x77], 1
jmp 0x4e09dc
mov byte [ebp - 0x77], 0
mov eax, dword [ebp - 0x8c]
or eax, 0x80000000
or eax, 1
or eax, 2
or eax, 4
or eax, 8
or eax, 0x20000000
or eax, 0x40000000
mov dword [ebp - 0x8c], eax
mov eax, ebx
call fcn.00446278
shl eax, 2
lea eax, [eax + eax*4]
mov dword [ebp - 0x84], eax
mov eax, ebx
call fcn.004462b4
test al, 1
je 0x4e0a28
or dword [ebp - 0x88], 1
mov eax, ebx
call fcn.004462b4
test al, 2
je 0x4e0a3a
or dword [ebp - 0x88], 2
mov eax, ebx
call fcn.004462b4
test al, 4
je 0x4e0a4c
or dword [ebp - 0x88], 4
mov eax, ebx
call fcn.004462b4
test al, 8
je 0x4e0a5e
or dword [ebp - 0x88], 8
lea edx, [ebp - 0x94]
mov eax, ebx
call fcn.00446204
mov edx, dword [ebp - 0x94]
lea eax, [ebp - 0x76]
mov ecx, 0x20
call fcn.00428080
mov edi, dword [ebx + 0x18]
cmp edi, 0x80000008
je 0x4e0a91
cmp edi, 0x20000000
jne 0x4e0a9d
mov dword [ebp - 0x88], 0x40000000
jmp 0x4e0aa7
mov eax, edi
call fcn.00445b10
mov dword [ebp - 0x7c], eax
or dword [ebp - 0x8c], 0x8000000
mov eax, ebx
call fcn.0044631c
mov byte [ebp - 0x78], al
lea eax, [ebp - 0x3c]
push eax
push 0x3c
mov eax, ebx
call fcn.00446008
push eax
call fcn.004073fc
test eax, eax
je 0x4e0ae4
or dword [ebp - 0x8c], 0x400000
mov ax, word [ebp - 0x2c]
mov word [ebp - 0x56], ax
lea edx, [ebp - 0x90]
mov eax, esi
call fcn.004e06d4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e0b11
lea eax, [ebp - 0x94]
call fcn.00404688
ret

Function at 0x4e5d50
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov dword [esp], ecx
mov ebx, edx
mov edi, eax
mov eax, dword [esp]
mov edx, ebx
call fcn.00402fe0
cmp byte [edi], 0
jbe 0x4e5d9c
movzx esi, byte [ebx]
test esi, esi
jle 0x4e5d9c
mov ebp, 1
lea ecx, [ebx + 1]
mov ebx, dword [esp]
inc ebx
mov eax, ebp
dec eax
xor edx, edx
mov dl, byte [edi]
push ecx
mov ecx, edx
cdq
idiv ecx
pop ecx
inc edx
mov al, byte [edi + edx]
mov dl, byte [ecx]
xor al, dl
mov byte [ebx], al
inc ebp
inc ebx
inc ecx
dec esi
jne 0x4e5d7e
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x401190
Capabilities:
Encode data using base64

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov esi, eax
test edi, edi
je 0x40135d
test esi, esi
je 0x40135d
mov ebp, dword [esp + 0x24]
test ebp, ebp
je 0x40135d
mov ebx, dword [esp + 0x20]
mov eax, ebx
call fcn.00401100
cmp dword [ebp], eax
jl 0x40135d
mov eax, 0x55555556
imul ebx
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
lea edx, [ecx*4]
mov eax, 0x6bca1af3
imul edx
sar edx, 5
mov ebx, edx
shr ebx, 0x1f
add ebx, edx
xor eax, eax
mov dword [esp + 0x10], 0
mov dword [esp + 0x18], ecx
mov ebp, 0x13
mov dword [esp + 0x14], eax
test ebx, ebx
jl 0x4012d1
cmp eax, ebx
jne 0x40122d
mov edx, ebx
imul edx, edx, 0x4c
lea eax, [ecx*4]
sub eax, edx
cdq
and edx, 3
add eax, edx
mov ebp, eax
sar ebp, 2
test ebp, ebp
jle 0x40129b
mov eax, ebp
movzx ecx, byte [edi]
movzx edx, byte [edi + 1]
shl ecx, 8
or ecx, edx
movzx edx, byte [edi + 2]
shl ecx, 8
or ecx, edx
shl ecx, 8
mov edx, ecx
shr edx, 0x1a
movzx edx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi], dl
shl ecx, 6
mov edx, ecx
shr edx, 0x1a
movzx edx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
shl ecx, 6
mov byte [esi + 1], dl
mov edx, ecx
shr edx, 0x1a
movzx edx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
shr ecx, 0x14
and ecx, 0x3f
mov byte [esi + 2], dl
mov cl, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + 3], cl
add edi, 3
add esi, 4
sub eax, 1
jne 0x401233
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
lea eax, [edx + ebp*4]
add eax, 2
mov byte [esi], 0xd
inc esi
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x14]
inc eax
mov byte [esi], 0xa
inc esi
cmp eax, ebx
mov dword [esp + 0x14], eax
jle 0x401212
cmp dword [esp + 0x10], 0
je 0x4012d1
sub esi, 2
sub dword [esp + 0x10], 2
lea eax, [ecx + ecx*2]
mov ecx, dword [esp + 0x20]
sub ecx, eax
je 0x401346
lea ebp, [ecx + 1]
test ebp, ebp
je 0x401346
xor eax, eax
test ecx, ecx
jle 0x4012ed
movzx eax, byte [edi]
inc edi
shl eax, 8
cmp ecx, 1
jle 0x4012fb
movzx edx, byte [edi]
or eax, edx
inc edi
shl eax, 8
cmp ecx, 2
jle 0x401308
movzx ecx, byte [edi]
or eax, ecx
shl eax, 8
test ebp, ebp
jle 0x401327
mov ecx, ebp
mov edx, eax
shr edx, 0x1a
mov dl, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi], dl
inc esi
shl eax, 6
sub ecx, 1
jne 0x401311
add dword [esp + 0x10], ebp
mov edi, 4
sub edi, ebp
test edi, edi
jle 0x401342
push edi
push 0x3d
push esi
call fcn.00431e40
add esp, 0xc
add dword [esp + 0x10], edi
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x10]
mov dword [eax], ecx
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret
Function at 0x402b00
Capabilities:
Initialize winsock library

Disassembly:
lea ecx, [esi + 0x10]
xor eax, eax
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
push ebx
mov dword [ecx + 0x10], eax
xor ebx, ebx
mov dword [ecx + 0x14], eax
call fcn.00410f20
cmp eax, ebx
jge 0x402b28
push eax
call fcn.00411a00
lea ecx, [esi + 0x28]
xor eax, eax
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
mov dword [ecx + 0x10], eax
mov dword [ecx + 0x14], eax
call fcn.00410f20
cmp eax, ebx
jge 0x402b4d
push eax
call fcn.00411a00
mov dword [esi], 1
mov dword [esi + 0xc], ebx
mov dword [esi + 8], ebx
mov dword [esi + 4], ebx
mov dword [esi + 0x40], 0xffffffff
mov byte [esi + 0x44], bl
mov dword [esi + 0x48], ebx
mov dword [esi + 0x4c], 0x2710
cmp dword [0x45b288], ebx
je 0x402b8a
push 0x45b0f8
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov dword [0x45b288], eax
mov eax, esi
pop ebx
ret

Function at 0x402cd0
Capabilities:
Connect socket

Disassembly:
sub esp, 0x2c
cmp byte [esi + 0x44], 0
je 0x402cdf
mov al, 1
add esp, 0x2c
ret
mov eax, dword [esi + 0x40]
push ebx
mov bl, 1
cmp eax, 0xffffffff
jne 0x402cf1
xor al, al
pop ebx
add esp, 0x2c
ret
push 0
push 0
push 0
push 0
push ecx
push edx
push eax
call dword [sym.imp.WS2_32.dll_WSAConnect]
test eax, eax
je 0x402d53
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x402d4e
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x402d51
push 0x2c
push eax
lea edx, [esp + 0xc]
push edx
call fcn.00431e40
mov ecx, dword [esi + 0x40]
add esp, 0xc
lea eax, [esp + 4]
push eax
push 0
push ecx
call dword [sym.imp.WS2_32.dll_WSAEnumNetworkEvents]
mov eax, dword [esp + 0x18]
test eax, eax
je 0x402d53
mov dword [esi + 0x48], eax
xor bl, bl
mov byte [esi + 0x44], bl
mov al, bl
pop ebx
add esp, 0x2c
ret
Function at 0x402d60
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0xc]
sub esp, 0x14
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push eax
push ecx
call ebx
test eax, eax
je 0x402d88
mov dword [esi + 0x48], 0x2749
xor al, al
pop ebx
add esp, 0x14
ret 8
mov edx, dword [esi + 8]
push 0
push edx
call ebx
cmp eax, 0x102
jne 0x402da7
mov dword [esi + 0x48], 0x2734
xor al, al
pop ebx
add esp, 0x14
ret 8
push ebp
lea ebp, [esi + 0x28]
push ebp
mov dword [edi], 0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 8]
push eax
mov dword [esp + 0x1c], eax
call dword [sym.imp.WS2_32.dll_WSAResetEvent]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
push 0
lea eax, [esp + 0xc]
push eax
mov eax, dword [esi + 0x40]
push 0
push edi
push ecx
push edx
push eax
call dword [sym.imp.WS2_32.dll_WSASend]
test eax, eax
je 0x402df5
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
jne 0x402e3b
mov ecx, dword [esi + 0x4c]
mov edx, dword [esi + 8]
push ecx
push edx
call ebx
test eax, eax
jne 0x402e3e
mov edx, dword [esi + 0x40]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x24]
push eax
push 0
push edi
lea ecx, [esp + 0x14]
push ecx
push edx
call dword [sym.imp.WS2_32.dll_WSAGetOverlappedResult]
test eax, eax
je 0x402e35
push ebp
mov bl, 1
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop ebp
mov al, bl
pop ebx
add esp, 0x14
ret 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x48], eax
push ebp
xor bl, bl
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop ebp
mov al, bl
pop ebx
add esp, 0x14
ret 8
Function at 0x402e60
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0xc]
sub esp, 0x20
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push ebp
push eax
push ecx
call ebx
test eax, eax
je 0x402e8a
mov dword [esi + 0x48], 0x2749
xor al, al
pop ebp
pop ebx
add esp, 0x20
ret 4
mov edx, dword [esi + 4]
push 0
push edx
call ebx
cmp eax, 0x80
jne 0x402eaa
mov dword [esi + 0x48], 0x2734
xor al, al
pop ebp
pop ebx
add esp, 0x20
ret 4
mov eax, dword [esp + 0x2c]
mov ecx, dword [edi]
mov dword [esp + 0x10], eax
xor eax, eax
lea ebp, [esi + 0x10]
push ebp
mov dword [esp + 0x10], ecx
mov dword [edi], 0
mov dword [esp + 0xc], 0
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
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 4]
push eax
mov dword [esp + 0x28], eax
call dword [sym.imp.WS2_32.dll_WSAResetEvent]
push 0
lea edx, [esp + 0x18]
push edx
mov edx, dword [esi + 0x40]
lea eax, [esp + 0x10]
push eax
push edi
push 1
lea ecx, [esp + 0x20]
push ecx
push edx
call dword [sym.imp.WS2_32.dll_WSARecv]
test eax, eax
je 0x402f23
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
jne 0x402f69
mov eax, dword [esi + 0x4c]
mov ecx, dword [esp + 0x24]
push eax
push ecx
call ebx
test eax, eax
jne 0x402f6c
mov ecx, dword [esi + 0x40]
lea edx, [esp + 8]
push edx
push eax
mov dword [esp + 0x10], eax
push edi
lea eax, [esp + 0x20]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_WSAGetOverlappedResult]
test eax, eax
je 0x402f63
push ebp
mov bl, 1
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, bl
pop ebp
pop ebx
add esp, 0x20
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x48], eax
push ebp
xor bl, bl
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop ebp
mov al, bl
pop ebx
add esp, 0x20
ret 4
Function at 0x409310
Capabilities:
Check internet connectivity via wininet
Read .ini file

Disassembly:
sub esp, 0x8c
mov eax, dword [0x4594f0]
xor eax, esp
mov dword [esp + 0x88], eax
push ebx
push ebp
push esi
push edi
mov edi, ecx
cmp dword [edi + 0xc8], 0
je 0x409387
mov ebx, dword [sym.imp.WININET.dll_InternetGetConnectedState]
push 0
lea eax, [esp + 0x14]
push eax
mov esi, 0xa
call ebx
test eax, eax
jne 0x40936a
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
test esi, esi
je 0x409387
push 0x2710
call ebp
push 0
lea ecx, [esp + 0x14]
push ecx
dec esi
call ebx
test eax, eax
je 0x409351
lea esi, [edi + 0xb8]
mov ecx, edi
call fcn.00409440
mov esi, eax
test esi, esi
jne 0x40938f
mov eax, 1
jmp 0x409420
or eax, 0xffffffff
jmp 0x409420
mov ecx, dword [edi + 0xa8]
push esi
call fcn.004094d0
movzx edx, al
push esi
mov dword [edi + 0xbc], edx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp dword [edi + 0xbc], 0
je 0x40937d
mov eax, dword [edi + 0xa8]
mov edx, dword [edi + 0xb0]
push eax
push 0x80
lea ecx, [esp + 0x20]
push ecx
push 0x44e224
push str.VERSION
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [esp + 0x18]
lea esi, [edi + 0xc0]
push eax
mov ecx, esi
call fcn.00411b40
mov edi, dword [edi + 0xc4]
cmp dword [edi - 0xc], 0
je 0x40937d
mov esi, dword [esi]
push edi
call fcn.00431a8a
fstp qword [esp + 0x14]
push esi
call fcn.00431a8a
fcomp qword [esp + 0x18]
add esp, 8
fnstsw ax
test ah, 0x41
jnp 0x40937d
xor eax, eax
mov ecx, dword [esp + 0x98]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0042f79c
add esp, 0x8c
ret
Function at 0x410df0
Capabilities:
Resolve dns

Disassembly:
sub esp, 0x28
push esi
mov esi, eax
mov eax, dword [esi + 4]
add esi, 4
test eax, eax
je 0x410e0d
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
mov dword [esi], 0
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x30]
xor eax, eax
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], eax
push esi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], eax
lea eax, [esp + 0xc]
push eax
push ecx
push edx
mov dword [esp + 0x20], 1
call dword [sym.imp.WS2_32.dll_getaddrinfo]
pop esi
add esp, 0x28
ret 8

Function at 0x411630
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 0x411649
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x411684
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x411680
lea ebx, [ebx]
cmp esi, eax
jae 0x411684
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x411670
cmp esi, eax
jb 0x41168a
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x413cce
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
test ebx, 0xffff0000
jne 0x413cf2
cmp dword [edi + 0x54], 0
jne 0x413cf2
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.0041d070
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.00413c8f
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x41452a
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x44440e
call fcn.004322a0
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x41454f
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x414595
lea ecx, [ebp - 0x10]
call fcn.004111a0
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00411270
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.004118a0
mov eax, esi
call fcn.00432378
ret 8