joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42ae80
Capabilities:
Send data
Send data on socket

Disassembly:
push ecx
cmp dword [esp + 0xc], 0x1f
mov eax, dword [esp + 8]
mov eax, dword [eax]
push ebp
mov ebp, dword [eax + 0x164]
mov dword [esp + 4], eax
jne 0x42afd9
push ebx
push esi
push edi
lea ebx, [ebp + 0x1cb0]
lea edi, [ebp + 0x1eb0]
mov dword [edi], ebx
cmp ebx, edi
jae 0x42aeb7
mov byte [ebx], 0xff
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x42aec2
mov byte [eax], 0xfa
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x42aecd
mov byte [eax], 0x1f
inc dword [edi]
movzx ecx, word [ebp + 0x1ca8]
mov esi, dword [sym.imp.WS2_32.dll_htons]
push ecx
call esi
movzx edx, ax
movzx eax, word [ebp + 0x1caa]
push eax
mov dword [esp + 0x20], edx
call esi
movzx ecx, ax
mov eax, dword [edi]
cmp eax, edi
jae 0x42aeff
mov dl, byte [esp + 0x1c]
mov byte [eax], dl
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x42af0d
mov dl, byte [esp + 0x1d]
mov byte [eax], dl
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x42af17
mov byte [eax], cl
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x42af21
mov byte [eax], ch
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x42af2c
mov byte [eax], 0xff
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x42af37
mov byte [eax], 0xf0
inc dword [edi]
mov eax, dword [edi]
mov esi, dword [esp + 0x10]
mov ecx, eax
sub ecx, ebx
sub ecx, 2
push ecx
mov dword [ebp + 0x1eb4], eax
lea eax, [ebp + 0x1cb2]
push 0x3e
mov dword [edi], ebx
call fcn.0042a380
mov edi, dword [esp + 0x20]
mov edx, dword [edi + 0x1a8]
add esp, 8
push 0
push 3
push ebx
mov ebx, dword [sym.imp.WS2_32.dll_send]
push edx
call ebx
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
jge 0x42af94
call esi
push eax
mov eax, dword [esp + 0x14]
push str.Sending_data_failed___d_
push eax
call fcn.00414f30
add esp, 0xc
lea ecx, [ebp + 0x1cb3]
push ecx
push edi
mov eax, 4
call fcn.0042ac00
mov edx, dword [edi + 0x1a8]
add esp, 8
push 0
push 2
add ebp, 0x1cb7
push ebp
push edx
call ebx
test eax, eax
jge 0x42afd6
call esi
push eax
mov eax, dword [esp + 0x14]
push str.Sending_data_failed___d_
push eax
call fcn.00414f30
add esp, 0xc
pop edi
pop esi
pop ebx
pop ebp
pop ecx
ret
Function at 0x42bb90
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x18
mov eax, dword [0x46c180]
xor eax, esp
mov dword [esp + 0x14], eax
push ebx
push ebp
push esi
push edi
mov esi, ecx
mov ebx, dword [esi + 0x1ac]
mov ebp, dword [esi]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x18]
push ecx
push ebx
or edi, 0xffffffff
mov dword [esp + 0x1c], 0x10
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x42bbe7
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x18]
push eax
push ebx
mov dword [esp + 0x1c], 0x10
call dword [sym.imp.WS2_32.dll_accept]
mov edi, eax
push ebx
push esi
call fcn.00417940
add esp, 8
cmp edi, 0xffffffff
jne 0x42bc1c
push str.Error_accept__ing_server_connect
push ebp
call fcn.00414f30
add esp, 8
pop edi
pop esi
pop ebp
mov eax, 0x1e
pop ebx
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.0044404d
add esp, 0x18
ret
push str.Connection_accepted_from_server_n
push ebp
call fcn.00414ea0
push 1
push edi
mov dword [esi + 0x2c0], 0
mov dword [esi + 0x1ac], edi
call fcn.0043aef0
mov dword [esi + 0x1bc], 1
mov eax, dword [ebp + 0x1e8]
add esp, 0x10
test eax, eax
je 0x42bc86
mov ecx, dword [ebp + 0x1ec]
push 1
push edi
push ecx
call eax
add esp, 0xc
test eax, eax
je 0x42bc86
call fcn.0042baf0
pop edi
pop esi
pop ebp
mov eax, 0x2a
pop ebx
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.0044404d
add esp, 0x18
ret
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
xor eax, eax
call fcn.0044404d
add esp, 0x18
ret
Function at 0x42f650
Capabilities:
Check http status code

Disassembly:
push ebx
mov ebx, eax
mov eax, 0x51eb851f
imul ecx
sar edx, 5
push ebp
mov ebp, dword [esp + 0xc]
mov eax, edx
shr eax, 0x1f
push esi
add eax, edx
xor esi, esi
push edi
mov edi, dword [ebx]
cmp eax, 2
je 0x42f68a
push str.Couldnt_set_desired_mode
push edi
call fcn.00414f30
add esp, 8
pop edi
lea eax, [esi + 0x11]
pop esi
pop ebp
pop ebx
ret
cmp ecx, 0xc8
je 0x42f6a1
push ecx
push str.Got_a__03d_response_code_instead_of_the_assumed_200_n
push edi
call fcn.00414ea0
add esp, 0xc
cmp ebp, 0x13
jne 0x42f6b6
push ebx
call fcn.0042f5d0
add esp, 4
pop edi
mov esi, eax
pop esi
pop ebp
pop ebx
ret
cmp ebp, 0x14
jne 0x42f6c7
call fcn.0042c6f0
pop edi
mov esi, eax
pop esi
pop ebp
pop ebx
ret
cmp ebp, 0x15
jne 0x42f6e0
push 0xd
push 1
push ebx
call fcn.0042e8b0
add esp, 0xc
pop edi
mov esi, eax
pop esi
pop ebp
pop ebx
ret
cmp ebp, 0x16
jne 0x42f6f4
push 0xe
push 1
push ebx
call fcn.0042e8b0
add esp, 0xc
mov esi, eax
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret
Function at 0x436c80
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x108
mov eax, dword [0x46c180]
xor eax, esp
mov dword [esp + 0x104], eax
mov eax, dword [esp + 0x10c]
push eax
call fcn.004469b5
add esp, 4
mov byte [esp], 0
test eax, eax
je 0x436ce5
push 0x104
lea ecx, [esp + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [esp], 0
je 0x436ce5
lea edx, [esp]
push edx
call dword [0x46c00c]
add esp, 4
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.0044404d
add esp, 0x108
ret
mov ecx, dword [esp + 0x104]
xor ecx, esp
xor eax, eax
call fcn.0044404d
add esp, 0x108
ret
jmp 0x436c80

Function at 0x436d00
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x108
mov eax, dword [0x46c180]
xor eax, esp
mov dword [esp + 0x104], eax
mov eax, dword [esp + 0x10c]
push eax
call fcn.004469b5
add esp, 4
mov byte [esp], 0
test eax, eax
je 0x436ce5
push 0x104
lea ecx, [esp + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [esp], 0
je 0x436ce5
lea edx, [esp]
push edx
call dword [0x46c00c]
add esp, 4
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.0044404d
add esp, 0x108
ret
mov ecx, dword [esp + 0x104]
xor ecx, esp
xor eax, eax
call fcn.0044404d
add esp, 0x108
ret
jmp 0x436c80
Function at 0x43d400
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
mov esi, dword [esp + 0x20]
mov ebp, dword [esi + 0x34]
mov ebx, dword [ebp]
push edi
mov edi, dword [ebx + 0x224]
test edi, edi
jne 0x43d41e
mov edi, dword [esi + 0x30]
lea eax, [esp + 0x10]
push eax
call fcn.00414840
lea ecx, [esi + 0x20]
mov esi, dword [ecx]
sub esp, 0xc
mov edx, esp
mov dword [edx], esi
mov esi, dword [ecx + 4]
mov dword [edx + 4], esi
mov esi, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
mov dword [edx + 8], esi
mov dword [edx + 0xc], ecx
mov edx, dword [eax]
sub esp, 0x10
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
call fcn.00414880
mov ecx, eax
mov eax, edx
mov dword [esp + 0x44], eax
mov eax, edi
cdq
add esp, 0x20
mov edi, eax
sub edi, ecx
mov ecx, dword [esp + 0x24]
mov esi, edx
sbb esi, ecx
cmp dword [ebx + 0x218], 0
je 0x43d4f0
lea edx, [esp + 0x10]
push edx
call fcn.00414840
lea ecx, [ebp + 0x188]
mov ebp, dword [ecx]
sub esp, 0xc
mov edx, esp
mov dword [edx], ebp
mov ebp, dword [ecx + 4]
mov dword [edx + 4], ebp
mov ebp, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
mov dword [edx + 8], ebp
mov dword [edx + 0xc], ecx
mov edx, dword [eax]
sub esp, 0x10
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
call fcn.00414880
mov ecx, eax
mov eax, dword [ebx + 0x218]
mov ebp, edx
cdq
add esp, 0x20
sub eax, ecx
sbb edx, ebp
cmp esi, edx
jl 0x43d4f0
jg 0x43d4f4
cmp edi, eax
jae 0x43d4f4
mov eax, edi
mov edx, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret

Function at 0x43e830
Capabilities:
Get hostname

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push esi
mov byte [esi], 0
call dword [sym.imp.WS2_32.dll_gethostname]
mov byte [esi + edi - 1], 0
test eax, eax
jne 0x43e862
push 0x2e
push esi
call fcn.00446420
add esp, 8
test eax, eax
je 0x43e860
mov byte [eax], 0
xor eax, eax
pop edi
pop esi
ret
Function at 0x43e940
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using des via winapi
Encrypt or decrypt via wincrypt

Disassembly:
sub esp, 0x24
mov eax, dword [0x46c180]
xor eax, esp
mov dword [esp + 0x20], eax
push ebp
mov ebp, dword [esp + 0x30]
push 0xf0000000
push 1
push 0
push 0
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x1c], 8
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x43e9ea
xor eax, eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
push esi
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
lea esi, [esp + 0x20]
mov eax, ebp
mov byte [esp + 0x14], 8
mov byte [esp + 0x15], 2
mov dword [esp + 0x18], 0x6601
mov dword [esp + 0x1c], 8
call fcn.0043e8b0
mov ecx, esi
push 8
push ecx
call fcn.00442dc0
mov ecx, dword [esp + 0x10]
add esp, 8
lea edx, [esp + 0x10]
push edx
push 0
push 0
push 0x14
lea eax, [esp + 0x24]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
pop esi
test eax, eax
jne 0x43e9fc
mov edx, dword [esp + 4]
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.0044404d
add esp, 0x24
ret
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax]
mov dword [edi], ecx
mov edx, dword [eax + 4]
mov eax, dword [esp + 8]
push eax
lea ecx, [esp + 0xc]
push ecx
push edi
push 0
push 0
mov dword [edi + 4], edx
mov edx, dword [esp + 0x20]
push 0
push edx
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov ecx, dword [esp + 4]
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov ecx, dword [esp + 0x24]
pop ebp
xor ecx, esp
mov eax, 1
call fcn.0044404d
add esp, 0x24
ret
Function at 0x43eb50
Capabilities:
Hash data using md4
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
sub esp, 0xc
push ebp
mov ebp, dword [esp + 0x18]
push esi
mov eax, ebp
push edi
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x43eb60
sub eax, edx
mov edi, eax
je 0x43eb79
lea eax, [edi + edi]
push eax
call dword [section..data]
jmp 0x43eb84
push 0x468e9c
call dword [0x46c00c]
mov esi, eax
add esp, 4
test esi, esi
jne 0x43eb97
pop edi
lea eax, [esi + 0x1b]
pop esi
pop ebp
add esp, 0xc
ret
xor eax, eax
test edi, edi
jbe 0x43ebb0
lea ecx, [ecx]
mov cl, byte [eax + ebp]
mov byte [esi + eax*2], cl
mov byte [esi + eax*2 + 1], 0
inc eax
cmp eax, edi
jb 0x43eba0
push 0xf0000000
push 1
push 0
push 0
lea edx, [esp + 0x20]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
mov ebp, dword [esp + 0x24]
test eax, eax
je 0x43ec32
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0xc]
push eax
push 0
push 0
push 0x8002
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x43ec25
mov eax, dword [esp + 0xc]
push 0
lea edx, [edi + edi]
push edx
push esi
push eax
mov dword [esp + 0x24], 0x10
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
mov edx, dword [esp + 0xc]
push 0
lea ecx, [esp + 0x18]
push ecx
push ebp
push 2
push edx
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov ecx, dword [esp + 0x10]
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor eax, eax
mov dword [ebp + 0x10], eax
push esi
mov byte [ebp + 0x14], al
call dword [0x46c004]
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0xc
ret
Function at 0x443930
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x14]
lea eax, [ecx + eax*2 + 0xc]
push edi
push eax
call dword [section..data]
mov edi, eax
add esp, 4
test edi, edi
jne 0x443955
pop edi
pop esi
pop ecx
ret
lea eax, [edi + 0xc]
mov dword [edi], esi
mov dword [edi + 4], eax
mov edx, dword [esi + 0xc]
push ebx
add edx, eax
push ebp
mov ebp, dword [esp + 0x20]
mov dword [edi + 8], edx
cmp ebp, dword [esi + 0x10]
jbe 0x44399c
push eax
mov eax, dword [esi]
call eax
mov ecx, dword [esp + 0x20]
mov edx, dword [edi + 4]
mov eax, dword [esi + 4]
push ebp
push ecx
push edx
call eax
mov ebx, dword [edi + 8]
mov ecx, dword [edi + 4]
add ebx, dword [esi + 0xc]
mov edx, dword [esi + 8]
push ecx
push ebx
call edx
mov ebp, dword [esi + 0x14]
add esp, 0x18
jmp 0x4439a0
mov ebx, dword [esp + 0x1c]
mov eax, dword [edi + 4]
mov ecx, dword [esi]
push eax
call ecx
mov edx, dword [edi + 8]
mov eax, dword [esi]
push edx
call eax
add esp, 8
mov dword [esp + 0x10], 0
test ebp, ebp
jbe 0x4439fe
mov dword [esp + 0x10], ebp
mov cl, byte [ebx]
xor cl, 0x36
mov byte [esp + 0x18], cl
mov eax, dword [edi + 4]
mov ecx, dword [esi + 4]
push 1
lea edx, [esp + 0x1c]
push edx
push eax
call ecx
mov dl, byte [ebx]
xor dl, 0x5c
mov byte [esp + 0x24], dl
mov ecx, dword [edi + 8]
mov edx, dword [esi + 4]
push 1
lea eax, [esp + 0x28]
push eax
push ecx
inc ebx
call edx
add esp, 0x18
sub ebp, 1
jne 0x4439c3
mov eax, dword [esp + 0x10]
pop ebp
pop ebx
cmp eax, dword [esi + 0x10]
jae 0x443a41
lea esp, [esp]
mov ecx, dword [edi + 4]
mov edx, dword [esi + 4]
push 1
push 0x466fca
push ecx
call edx
mov eax, dword [edi + 8]
mov ecx, dword [esi + 4]
push 1
push 0x466fcb
push eax
call ecx
mov eax, dword [esp + 0x20]
inc eax
add esp, 0x18
mov dword [esp + 8], eax
cmp eax, dword [esi + 0x10]
jb 0x443a10
mov eax, edi
pop edi
pop esi
pop ecx
ret

Function at 0x44404d
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x46c180]
jne 0x444057
repz ret
jmp fcn.0044b067
Function at 0x454baa
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0044c53a
and dword [ebp - 4], 0
cmp dword [0x46e51c], 0
mov ebx, eax
jne 0x454c5b
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x454d0c
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x454d0c
push eax
call fcn.0044c4c8
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x46e51c], eax
call esi
push eax
call fcn.0044c4c8
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x46e520], eax
call esi
push eax
call fcn.0044c4c8
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x46e524], eax
call esi
push eax
call fcn.0044c4c8
pop ecx
mov dword [0x46e52c], eax
test eax, eax
je 0x454c5b
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0044c4c8
pop ecx
mov dword [0x46e528], eax
mov eax, dword [0x46e528]
cmp eax, ebx
je 0x454cb3
cmp dword [0x46e52c], ebx
je 0x454cb3
push eax
call fcn.0044c543
push dword [0x46e52c]
mov esi, eax
call fcn.0044c543
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x454cb3
test edi, edi
je 0x454cb3
call esi
test eax, eax
je 0x454caa
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x454caa
test byte [ebp - 0xc], 1
jne 0x454cb3
or dword [ebp + 0x10], 0x200000
jmp 0x454cec
mov eax, dword [0x46e520]
cmp eax, ebx
je 0x454cec
push eax
call fcn.0044c543
pop ecx
test eax, eax
je 0x454cec
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x454cec
mov eax, dword [0x46e524]
cmp eax, ebx
je 0x454cec
push eax
call fcn.0044c543
pop ecx
test eax, eax
je 0x454cec
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x46e51c]
call fcn.0044c543
pop ecx
test eax, eax
je 0x454d0c
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x454d0e
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x45a1f8
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x45a229
call fcn.00446533
mov dword [eax], esi
call fcn.00446520
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.00444c25
add esp, 0x14
push 0x16
pop eax
jmp 0x45a27e
test dword [ebp + 0xc], 0xfffffff9
jne 0x45a205
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x45a256
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00446546
pop ecx
call fcn.00446520
mov eax, dword [eax]
jmp 0x45a27e
test al, 0x10
jne 0x45a27c
test al, 1
je 0x45a27c
test byte [ebp + 0xc], 2
je 0x45a27c
call fcn.00446533
mov dword [eax], 5
call fcn.00446520
mov dword [eax], 0xd
jmp 0x45a24d
xor eax, eax
pop esi
pop ebp
ret
Function at 0x44b610
Capabilities:
Accept command line arguments

Disassembly:
mov ecx, dword [sym.imp.KERNEL32.dll_RaiseException]
mov al, 2
mov byte [0x662200], al
mov byte [0xa646e4], al
mov eax, 0xd7b0
push esi
mov dword [0x662218], ecx
mov word [0xa6473c], ax
mov word [0xa6473e], ax
mov word [0x662614], ax
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, dword [sym.imp.KERNEL32.dll_GetVersion]
mov dword [0x662248], eax
call esi
and eax, 0x80000000
cmp eax, 0x80000000
je 0x44b665
call esi
cmp al, 4
ja 0x44b66b
call dword [sym.imp.KERNEL32.dll_GetThreadLocale]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [0x662244], eax
pop esi
ret

Function at 0x653749
Capabilities:
Encode data using xor

Disassembly:
out 0xf1, al
test byte [ecx - 0x5fc62acc], ah
xlatb
xor bl, byte [esp + ecx*2]
pop ss
dec ebp
cmp dword [ecx + 0x52], edi
mov byte [0x1ca2bfb], al
jne 0x653751
push 0x413f2c8b
push ebx
cmp edx, edx
or eax, 0xbb70c0ff
test dh, ch
add al, 0xe1
popal
cmpsb byte [esi], byte es:[edi]
inc edi
xchg ebp, eax
adc al, 0x76
mov esp, 0x36d2ab29
ljmp 0x78f1
Function at 0x100014c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x100014db
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x10001512
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x1000150e
jmp 0x10001500
cmp esi, eax
jae 0x10001512
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x10001500
cmp esi, eax
jb 0x10001519
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x10002fd0
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x10027cd0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp byte [esi + 0x44], 0
mov ecx, dword [ebp + 8]
je 0x10002fff
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100111b0
mov esp, ebp
pop ebp
ret 8
mov eax, dword [esi + 0x40]
push ebx
mov bl, 1
cmp eax, 0xffffffff
jne 0x1000301e
pop ebx
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100111b0
mov esp, ebp
pop ebp
ret 8
mov edx, dword [ebp + 0xc]
push 0
push 0
push 0
push 0
push edx
push ecx
push eax
call dword [sym.imp.WS2_32.dll_WSAConnect]
test eax, eax
je 0x10003080
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x1000307b
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 0x1000307e
push 0x2c
push eax
lea edx, [ebp - 0x30]
push edx
call fcn.100111c0
mov ecx, dword [esi + 0x40]
add esp, 0xc
lea eax, [ebp - 0x30]
push eax
push 0
push ecx
call dword [sym.imp.WS2_32.dll_WSAEnumNetworkEvents]
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x10003080
mov dword [esi + 0x48], eax
xor bl, bl
mov ecx, dword [ebp - 4]
mov byte [esi + 0x44], bl
mov al, bl
pop ebx
xor ecx, ebp
pop esi
call fcn.100111b0
mov esp, ebp
pop ebp
ret 8
Function at 0x10003110
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
mov esi, ecx
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0xc]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push eax
push ecx
call edi
test eax, eax
je 0x1000313f
pop edi
mov dword [esi + 0x48], 0x2749
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 0xc
mov edx, dword [esi + 8]
push 0
push edx
call edi
cmp eax, 0x102
jne 0x1000315f
pop edi
mov dword [esi + 0x48], 0x2734
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 0xc
push ebx
mov ebx, dword [ebp + 0x10]
lea edi, [esi + 0x28]
push edi
mov dword [ebx], 0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 8]
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.WS2_32.dll_WSAResetEvent]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push 0
lea eax, [ebp - 0x14]
push eax
mov eax, dword [esi + 0x40]
push 0
push ebx
push ecx
push edx
push eax
call dword [sym.imp.WS2_32.dll_WSASend]
test eax, eax
je 0x100031ac
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
jne 0x100031f4
mov ecx, dword [esi + 0x4c]
mov edx, dword [esi + 8]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x100031f7
mov edx, dword [esi + 0x40]
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0x10]
push eax
push 0
push ebx
lea ecx, [ebp - 0x14]
push ecx
push edx
call dword [sym.imp.WS2_32.dll_WSAGetOverlappedResult]
test eax, eax
je 0x100031ee
push edi
mov bl, 1
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, bl
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x48], eax
push edi
xor bl, bl
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, bl
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10003210
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
mov esi, ecx
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0xc]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push eax
push ecx
call edi
test eax, eax
je 0x1000323f
pop edi
mov dword [esi + 0x48], 0x2749
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 8
mov edx, dword [esi + 4]
push ebx
xor ebx, ebx
push ebx
push edx
call edi
cmp eax, 0x80
jne 0x10003262
pop ebx
pop edi
mov dword [esi + 0x48], 0x2734
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov ecx, dword [edi]
mov dword [ebp - 8], eax
xor eax, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
lea eax, [esi + 0x10]
push eax
mov dword [ebp - 0xc], ecx
mov dword [edi], ebx
mov dword [ebp - 4], ebx
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 4]
push eax
mov dword [ebp - 0x10], eax
call dword [sym.imp.WS2_32.dll_WSAResetEvent]
push ebx
lea edx, [ebp - 0x20]
push edx
mov edx, dword [esi + 0x40]
lea eax, [ebp - 4]
push eax
push edi
push 1
lea ecx, [ebp - 0xc]
push ecx
push edx
call dword [sym.imp.WS2_32.dll_WSARecv]
test eax, eax
je 0x100032cb
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
jne 0x10003302
mov eax, dword [esi + 0x4c]
mov ecx, dword [ebp - 0x10]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x10003305
mov ecx, dword [esi + 0x40]
lea edx, [ebp - 4]
push edx
push ebx
push edi
lea eax, [ebp - 0x20]
push eax
push ecx
mov dword [ebp - 4], ebx
call dword [sym.imp.WS2_32.dll_WSAGetOverlappedResult]
test eax, eax
je 0x100032fc
mov bl, 1
jmp 0x10003305
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x48], eax
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, bl
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8