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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x4407ff
call fcn.0044b6de
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4407ff
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x44081b
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.00440330
mov esi, eax
test edi, edi
je 0x440819
test ebx, ebx
je 0x440819
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x440fea
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x47fcb0
call fcn.00460d4f
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x44100f
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x441055
lea ecx, [ebp - 0x10]
call fcn.00403696
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.0043482c
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.004010d2
mov eax, esi
call fcn.00460e27
ret 8

Function at 0x441845
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x44188d
call fcn.0044b6de
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x44188d
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x4418d0
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x4418b9
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x4418b9
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x4418cd
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x44e26a
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 0x44e28e
cmp dword [edi + 0x54], 0
jne 0x44e28e
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.0044b6de
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
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.0044e22b
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 0x450567
Capabilities:
Create http request

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
mov esi, ecx
and dword [esi + 0x10], 0
and dword [esi + 0xc], 0
mov dword [esi + 4], eax
mov eax, dword [ebp + 8]
mov dword [esi], vtable.CInternetSession.0
test eax, eax
jne 0x450592
call fcn.0044b6de
mov eax, dword [eax + 0x10]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [esi + 8], eax
test eax, eax
jne 0x4505b5
push eax
push dword [esi + 4]
call fcn.004504ed
push esi
push eax
mov ecx, 0x4adf38
call fcn.00450174
mov eax, esi
pop esi
pop ebp
ret 0x18

Function at 0x451035
Capabilities:
Connect to http server

Disassembly:
push 4
mov eax, 0x480ad8
call fcn.00460d4f
mov esi, ecx
mov dword [ebp - 0x10], esi
push dword [ebp + 0x1c]
mov edi, dword [ebp + 8]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call fcn.00450ff5
and dword [ebp - 4], 0
lea ecx, [esi + 0x18]
mov dword [esi], vtable.CHttpConnection.0
call fcn.00403696
push dword [esi + 8]
mov edi, dword [edi + 8]
push 0
push 3
push dword [ebp + 0x18]
mov byte [ebp - 4], 1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call dword [sym.imp.WININET.dll_InternetConnectW]
mov dword [esi + 4], eax
test eax, eax
jne 0x45109b
push eax
push dword [esi + 8]
call fcn.004504ed
push dword [esi + 0xc]
mov ecx, 0x4adf38
push eax
call fcn.00450174
mov eax, esi
call fcn.00460e27
ret 0x18

Function at 0x460bfe
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4aa7dc]
jne 0x460c08
repz ret
jmp fcn.00470db5
Function at 0x473080
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.0046626b
and dword [ebp - 4], 0
cmp dword [0x4af134], 0
mov ebx, eax
jne 0x473131
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4731e2
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4731e2
push eax
call fcn.004661f9
mov dword [esp], 0x490288
push edi
mov dword [0x4af134], eax
call esi
push eax
call fcn.004661f9
mov dword [esp], 0x490274
push edi
mov dword [0x4af138], eax
call esi
push eax
call fcn.004661f9
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4af13c], eax
call esi
push eax
call fcn.004661f9
pop ecx
mov dword [0x4af144], eax
test eax, eax
je 0x473131
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004661f9
pop ecx
mov dword [0x4af140], eax
mov eax, dword [0x4af140]
cmp eax, ebx
je 0x473189
cmp dword [0x4af144], ebx
je 0x473189
push eax
call fcn.00466274
push dword [0x4af144]
mov esi, eax
call fcn.00466274
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x473189
test edi, edi
je 0x473189
call esi
test eax, eax
je 0x473180
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x473180
test byte [ebp - 0xc], 1
jne 0x473189
or dword [ebp + 0x10], 0x200000
jmp 0x4731c2
mov eax, dword [0x4af138]
cmp eax, ebx
je 0x4731c2
push eax
call fcn.00466274
pop ecx
test eax, eax
je 0x4731c2
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4731c2
mov eax, dword [0x4af13c]
cmp eax, ebx
je 0x4731c2
push eax
call fcn.00466274
pop ecx
test eax, eax
je 0x4731c2
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4af134]
call fcn.00466274
pop ecx
test eax, eax
je 0x4731e2
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4731e4
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4023d8
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
add esp, 0xfffffffc
push ebx
push esi
mov dword [ebp - 4], ecx
mov ebx, eax
cmp dword [ebp + 8], 0
je 0x4023f8
mov eax, dword [ebp + 8]
mov byte [eax], 0
test ebx, ebx
je 0x402401
cmp byte [ebx], 0
jne 0x402408
xor eax, eax
jmp 0x402488
xor esi, esi
jmp 0x40244b
mov al, byte [ebx]
xor ecx, ecx
mov cl, al
inc ebx
cmp ecx, 0x3d
jne 0x402432
cmp dword [ebp - 4], 0
je 0x402432
test esi, esi
jne 0x402432
cmp dword [ebp + 8], 0
je 0x40242e
mov eax, dword [ebp + 8]
mov byte [eax], 1
mov esi, edx
jmp 0x40244b
xor ecx, ecx
mov cl, al
cmp ecx, 0xd
je 0x402440
cmp ecx, 0xa
jne 0x402448
cmp ecx, 0xd
jne 0x402450
inc ebx
jmp 0x402450
mov byte [edx], al
inc edx
cmp byte [ebx], 0
jne 0x40240c
mov byte [edx], 0
cmp dword [ebp - 4], 0
je 0x402486
mov eax, dword [ebp - 4]
test esi, esi
mov byte [eax], 0
je 0x402486
push 0x1000
lea edx, [ebp - 0x1004]
push edx
push esi
call sub.KERNEL32.DLL_ExpandEnvironmentStringsA
lea edx, [ebp - 0x1004]
mov eax, dword [ebp - 4]
call fcn.0040f718
mov byte [esi], 0
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4026f6
Capabilities:
Delete file
Get common file path
Set current directory

Disassembly:
add esp, 0xfffffbe0
push esp
push 0x400
call sub.KERNEL32.DLL_GetCurrentDirectoryA
cmp byte [0x414045], 0
jne 0x40277f
mov eax, esp
call fcn.00405b80
mov ecx, 6
mov edx, dword [str.RarSFX]
call fcn.0040f7c4
test eax, eax
jne 0x40277f
push 0x414203
call sub.KERNEL32.DLL_SetCurrentDirectoryA
mov eax, esp
call fcn.0040f698
mov byte [esp + eax + 1], 0
lea eax, [esp + 0x400]
mov ecx, 0x1e
xor edx, edx
call fcn.0040f618
mov dword [esp + 0x404], 3
mov word [esp + 0x410], 0x14
mov eax, esp
mov dword [esp + 0x408], eax
lea edx, [esp + 0x400]
push edx
call sub.SHELL32.DLL_SHFileOperationA
add esp, 0x420
ret

Function at 0x40283a
Capabilities:
Set registry value

Disassembly:
push ebx
add esp, 0xfffffbf8
mov ebx, eax
cmp byte [0x41405d], 0
je 0x4028b1
cmp byte [0x415978], 0
je 0x4028b1
lea edx, [esp + 8]
mov eax, 0x415978
call fcn.00402809
lea ecx, [esp + 4]
push ecx
lea eax, [esp + 4]
push eax
push 0
push 0x20006
push 0
push 0
push 0
push str.SoftwareWinRAR_SFX
push 0x80000001
call sub.ADVAPI32.DLL_RegCreateKeyExA
test eax, eax
jne 0x4028b1
mov eax, ebx
call fcn.0040f698
inc eax
push eax
push ebx
push 1
push 0
lea edx, [esp + 0x18]
push edx
push dword [esp + 0x14]
call sub.ADVAPI32.DLL_RegSetValueExA
push dword [esp]
call sub.ADVAPI32.DLL_RegCloseKey
add esp, 0x408
pop ebx
ret

Function at 0x4029f8
Capabilities:
Get geographical location

Disassembly:
add esp, 0xffffff9c
push 0x64
lea eax, [esp + 4]
push eax
push 0xf
push 0x400
call sub.KERNEL32.DLL_GetLocaleInfoA
xor eax, eax
mov al, byte [esp]
add esp, 0x64
ret

Function at 0x402a02
Capabilities:
Get geographical location

Disassembly:
add esp, 0xffffff9c
push 0x64
lea eax, [esp + 4]
push eax
push 0xf
push 0x400
call sub.KERNEL32.DLL_GetLocaleInfoA
xor eax, eax
mov al, byte [esp]
add esp, 0x64
ret
Function at 0xba1440
Capabilities:
Encode data using xor
Encrypt data using rc4 ksa
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x400
push ebx
push esi
push edi
xor edi, edi
xor eax, eax
mov dword [ebp + eax*4 - 0x400], eax
inc eax
cmp eax, 0x100
jb 0xba1450
mov ebx, 2
lea ecx, [ebp - 0x3fc]
lea ebx, [ebx]
xor edx, edx
lea eax, [ebx - 2]
div dword [ebp + 0x14]
mov eax, dword [ebp + 0xc]
add ecx, 0x10
movzx esi, byte [edx + eax]
add esi, dword [ecx - 0x14]
mov al, byte [ecx - 0x14]
add esi, edi
movzx eax, al
and esi, 0xff
mov edx, dword [ebp + esi*4 - 0x400]
mov dword [ecx - 0x14], edx
mov dword [ebp + esi*4 - 0x400], eax
xor edx, edx
lea eax, [ebx - 1]
div dword [ebp + 0x14]
mov eax, dword [ebp + 0xc]
movzx edi, byte [edx + eax]
add edi, dword [ecx - 0x10]
mov al, byte [ecx - 0x10]
add edi, esi
movzx eax, al
and edi, 0xff
mov edx, dword [ebp + edi*4 - 0x400]
mov dword [ecx - 0x10], edx
mov dword [ebp + edi*4 - 0x400], eax
xor edx, edx
mov eax, ebx
div dword [ebp + 0x14]
mov eax, dword [ebp + 0xc]
movzx esi, byte [edx + eax]
add esi, dword [ecx - 0xc]
mov al, byte [ecx - 0xc]
add esi, edi
movzx eax, al
and esi, 0xff
mov edx, dword [ebp + esi*4 - 0x400]
mov dword [ecx - 0xc], edx
mov dword [ebp + esi*4 - 0x400], eax
xor edx, edx
lea eax, [ebx + 1]
div dword [ebp + 0x14]
mov eax, dword [ebp + 0xc]
add ebx, 4
movzx edi, byte [edx + eax]
add edi, dword [ecx - 8]
mov al, byte [ecx - 8]
add edi, esi
and edi, 0xff
mov edx, dword [ebp + edi*4 - 0x400]
mov dword [ecx - 8], edx
movzx eax, al
lea edx, [ebx - 2]
mov dword [ebp + edi*4 - 0x400], eax
cmp edx, 0x100
jb 0xba1470
mov eax, dword [ebp + 8]
xor ecx, ecx
xor edx, edx
xor esi, esi
cmp dword [ebp + 0x10], ecx
jbe 0xba15b7
jmp 0xba1560
inc edx
and edx, 0xff
mov edi, dword [ebp + edx*4 - 0x400]
mov bl, byte [ebp + edx*4 - 0x400]
add edi, esi
and edi, 0xff
mov esi, edi
mov edi, dword [ebp + esi*4 - 0x400]
mov dword [ebp + edx*4 - 0x400], edi
movzx edi, bl
mov dword [ebp + esi*4 - 0x400], edi
mov ebx, dword [ebp + edx*4 - 0x400]
add ebx, edi
and ebx, 0xff
movzx ebx, byte [ebp + ebx*4 - 0x400]
xor byte [ecx + eax], bl
inc ecx
cmp ecx, dword [ebp + 0x10]
jb 0xba1560
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0xba1c50
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0xbb6f98]
push ebx
xor ebx, ebx
push esi
mov dword [ebp - 4], ebx
cmp eax, ebx
jne 0xba1c7e
push 0xbb1410
push 0xbb13f4
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call fcn.00ba3750
cmp eax, ebx
je 0xba1cd0
mov cl, byte [ebp + 0x14]
xor edx, edx
test cl, cl
setne dl
push ebx
movzx ecx, cl
push 0x80
add edx, 2
push edx
mov edx, dword [ebp + 8]
neg ecx
sbb ecx, ecx
push 0
and ecx, 0xc0000004
push 2
add ecx, 0x40000000
push ecx
push edx
call eax
mov esi, eax
cmp esi, 0xffffffff
je 0xba1cdf
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
push 0
lea eax, [ebp - 4]
push eax
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov bl, al
jmp 0xba1cd3
mov esi, dword [ebp - 4]
cmp esi, 0xffffffff
je 0xba1cdf
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0xba1cf0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne al
pop ebp
ret

Function at 0xba1e60
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
or eax, 0xffffffff
xor ecx, ecx
test edx, edx
jbe 0xba1e91
push esi
mov esi, dword [ebp + 8]
push edi
movzx edi, byte [ecx + esi]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + section..data]
inc ecx
cmp ecx, edx
jb 0xba1e74
pop edi
pop esi
not eax
pop ebp
ret
Function at 0xba2220
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Initialize winsock library
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5a8
push esi
xor esi, esi
push 0x3ff
lea eax, [ebp - 0x417]
push esi
push eax
mov dword [ebp - 4], esi
mov byte [ebp - 0x418], 0
call sub.MSVCRT.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x5a8]
push ecx
push 0x202
call sub.WS2_32.dll_WSAStartup
test eax, eax
jne 0xba2391
push str.i.root_servers.org
call fcn.00ba9300
add esp, 4
mov dword [ebp - 0x10], eax
cmp eax, esi
je 0xba2391
push edi
mov edx, 2
push 0x50
mov word [ebp - 0x14], dx
call sub.WS2_32.dll_htons
push 6
push 1
push 2
mov word [ebp - 0x12], ax
call sub.WS2_32.dll_socket
mov edi, eax
cmp edi, 0xffffffff
je 0xba2398
push 0x10
lea eax, [ebp - 0x14]
push eax
push edi
call sub.WS2_32.dll_connect
cmp eax, 0xffffffff
je 0xba2398
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebx
push eax
call main
add esp, 4
mov edi, edi
call fcn.00ba3870
cdq
mov ecx, 0x1a
idiv ecx
inc esi
add dl, 0x61
cmp esi, 0x400
mov byte [ebp + esi - 0x419], dl
jl 0xba22d0
mov byte [ebp - 0x18], 0
call ebx
mov edx, eax
mov eax, 0x10624dd3
mul edx
mov esi, edx
shr esi, 6
add esi, 0xa
call ebx
mov ecx, eax
mov eax, 0x10624dd3
mul ecx
shr edx, 6
cmp edx, esi
jae 0xba2362
lea esp, [esp]
mov eax, dword [0xbea29c]
push 0
push 0x400
test eax, eax
je 0xba233c
lea edx, [ebp - 0x418]
push edx
push edi
call eax
jmp 0xba2349
lea eax, [ebp - 0x418]
push eax
push edi
call sub.WS2_32.dll_send
test eax, eax
jle 0xba2350
add dword [ebp - 4], eax
call ebx
mov ecx, eax
mov eax, 0x10624dd3
mul ecx
shr edx, 6
cmp edx, esi
jb 0xba2320
push edi
call sub.WS2_32.dll_closesocket
mov eax, dword [ebp - 4]
cdq
and edx, 0x3ff
add eax, edx
mov ecx, eax
sar ecx, 0xa
mov eax, 0x66666667
imul ecx
sar edx, 2
pop ebx
mov eax, edx
shr eax, 0x1f
pop edi
add eax, edx
pop esi
mov esp, ebp
pop ebp
ret
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0xba2810
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x190
xor eax, eax
push 0x18e
push eax
lea ecx, [ebp - 0x18e]
push ecx
mov word [ebp - 0x190], ax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea edx, [ebp - 0x190]
push edx
push 0x202
call sub.WS2_32.dll_WSAStartup
test eax, eax
jne 0xba286b
cmp byte [ebp - 0x190], 2
jne 0xba286b
mov eax, dword [ebp - 0x190]
shr eax, 8
cmp al, 2
jne 0xba286b
mov eax, 1
mov esp, ebp
pop ebp
ret
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0xba2880
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
xor edi, edi
push 8
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
call fcn.00ba2460
mov esi, eax
add esp, 4
cmp esi, edi
je 0xba29cf
push 4
call fcn.00ba2460
add esp, 4
mov dword [esi + 4], eax
cmp eax, edi
je 0xba29cf
mov edi, dword [ebp + 8]
push edi
call sub.WS2_32.dll_inet_addr
mov ebx, eax
cmp ebx, 0xffffffff
je 0xba2914
test ebx, ebx
je 0xba2914
push 4
call fcn.00ba2460
add esp, 4
mov dword [esi], eax
test eax, eax
je 0xba29cf
push 4
call fcn.00ba2460
mov ecx, dword [esi]
mov dword [ecx], eax
mov eax, dword [esi]
add esp, 4
cmp dword [eax], 0
je 0xba29cf
mov edx, dword [eax]
mov dword [edx], ebx
mov eax, dword [esi + 4]
mov dword [eax], 1
mov dword [ebp - 4], 1
jmp 0xba29cf
mov eax, dword [0xbb6fa4]
push 0
test eax, eax
je 0xba292e
lea ecx, [ebp - 8]
push ecx
push 0
push 8
push 1
push edi
call eax
jmp 0xba293e
lea edx, [ebp - 8]
push edx
push 0
push 8
push 1
push edi
call sub.DNSAPI.dll_DnsQuery_A
test eax, eax
jne 0xba29cf
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 4]
push edi
push ecx
call sub.MSVCRT.dll__strcmpi
add esp, 8
test eax, eax
jne 0xba29cf
mov edi, dword [ebp - 8]
test edi, edi
je 0xba29e6
mov ebx, 1
cmp word [edi + 8], bx
jne 0xba29c0
mov edx, dword [esi + 4]
mov eax, dword [edx]
mov edx, dword [esi]
lea ecx, [eax*4 + 4]
push ecx
push edx
call fcn.00ba2490
add esp, 8
mov dword [esi], eax
test eax, eax
je 0xba29c8
push 4
call fcn.00ba2460
mov ecx, dword [esi + 4]
mov edx, dword [ecx]
mov ecx, dword [esi]
mov dword [ecx + edx*4], eax
mov edx, dword [esi + 4]
mov eax, dword [edx]
mov ecx, dword [esi]
lea eax, [ecx + eax*4]
add esp, 4
cmp dword [eax], 0
je 0xba29c8
mov edx, dword [eax]
mov eax, dword [edi + 0x18]
mov dword [edx], eax
mov eax, dword [esi + 4]
add dword [eax], ebx
mov dword [ebp - 4], ebx
mov edi, dword [edi]
test edi, edi
jne 0xba2965
jmp 0xba29cf
mov dword [ebp - 4], 0
mov eax, dword [ebp - 8]
test eax, eax
je 0xba29de
push 1
push eax
call sub.DNSAPI.dll_DnsFree
mov eax, dword [ebp - 4]
cmp eax, 1
je 0xba2a24
test esi, esi
je 0xba2a1a
mov ecx, dword [esi + 4]
xor edi, edi
cmp dword [ecx], edi
jbe 0xba2a09
mov edx, dword [esi]
mov eax, dword [edx + edi*4]
push eax
call fcn.00ba24a0
mov ecx, dword [esi + 4]
inc edi
add esp, 4
cmp edi, dword [ecx]
jb 0xba29f3
mov edx, dword [esi]
push edx
call fcn.00ba24a0
push esi
call fcn.00ba24a0
add esp, 8
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0xc]
pop edi
mov dword [ecx], esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0xba2a30
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
xor esi, esi
push eax
xor edi, edi
mov dword [ebp - 8], esi
call sub.WS2_32.dll_htons
movzx ecx, ax
xor eax, eax
xor edx, edx
push 0x44
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], edi
mov word [ebp - 0x1c], dx
mov dword [ebp - 0x1a], eax
mov dword [ebp - 0x16], eax
mov dword [ebp - 0x12], eax
mov word [ebp - 0xe], ax
call fcn.00ba2460
mov ebx, eax
add esp, 4
cmp ebx, edi
je 0xba2b5e
push 6
push 1
push 2
mov dword [ebx], 0xffffffff
mov dword [ebx + 4], edi
call sub.WS2_32.dll_socket
mov dword [ebx], eax
cmp eax, 0xffffffff
jne 0xba2ab3
call sub.WS2_32.dll_WSAGetLastError
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
call fcn.00ba24a0
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 4]
push eax
push ecx
call fcn.00ba2880
mov esi, dword [ebp - 4]
add esp, 8
cmp eax, 1
jne 0xba2b22
mov edx, dword [esi + 4]
cmp dword [edx], edi
jbe 0xba2b22
mov eax, 2
mov word [ebp - 0x1c], ax
mov ecx, dword [esi]
mov edx, dword [ecx + edi*4]
mov eax, dword [edx]
mov cx, word [ebp - 0xc]
push eax
mov dword [ebp - 0x18], eax
mov word [ebp - 0x1a], cx
call sub.WS2_32.dll_inet_ntoa
mov eax, dword [ebx]
push 0x10
lea edx, [ebp - 0x1c]
push edx
push eax
call sub.WS2_32.dll_connect
cmp eax, 0xffffffff
jne 0xba2b1b
push 0x5dc
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [esi + 4]
inc edi
cmp edi, dword [ecx]
jb 0xba2ad2
jmp 0xba2b22
mov dword [ebp - 8], 1
test esi, esi
je 0xba2b57
mov edx, dword [esi + 4]
xor edi, edi
cmp dword [edx], edi
jbe 0xba2b46
nop
mov eax, dword [esi]
mov ecx, dword [eax + edi*4]
push ecx
call fcn.00ba24a0
mov edx, dword [esi + 4]
inc edi
add esp, 4
cmp edi, dword [edx]
jb 0xba2b30
mov eax, dword [esi]
push eax
call fcn.00ba24a0
push esi
call fcn.00ba24a0
add esp, 8
mov esi, dword [ebp - 8]
test esi, esi
jne 0xba2b70
push ebx
call fcn.00ba24a0
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 8]
pop edi
mov eax, esi
pop esi
mov dword [ecx], ebx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0xba2de0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
not eax
test ecx, ecx
je 0xba2e0f
mov edx, dword [ebp + 0xc]
push esi
movzx esi, byte [edx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0xbb7528]
dec ecx
inc edx
test ecx, ecx
jne 0xba2df3
pop esi
not eax
pop ebp
ret