joyce8/EMBER2024-capa huggingface dataset:
Function at 0x2002a0bc
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x9c8], 0
push edi
mov edi, 0x270
jne 0x2002a0e9
push 0x9c0
lea eax, [esi + 8]
push eax
call fcn.20029527
mov dword [esi + 0x9c8], 1
mov dword [esi + 4], edi
cmp dword [esi + 4], edi
jb 0x2002a18b
and dword [esi + 4], 0
push ebx
lea edi, [esi + 8]
push ebp
mov ecx, edi
mov ebx, 0xe3
mov edx, bind
mov eax, dword [ecx + 4]
xor eax, dword [ecx]
and eax, edx
xor eax, dword [ecx]
mov ebp, eax
and ebp, 1
imul ebp, ebp, 0x9908b0df
sar eax, 1
xor ebp, eax
xor ebp, dword [ecx + 0x634]
mov dword [ecx], ebp
add ecx, 4
dec ebx
jne 0x2002a107
lea ecx, [esi + 0x394]
mov ebx, 0x18c
mov eax, dword [ecx + 4]
xor eax, dword [ecx]
and eax, edx
xor eax, dword [ecx]
mov ebp, eax
and ebp, 1
imul ebp, ebp, 0x9908b0df
sar eax, 1
xor ebp, eax
xor ebp, dword [ecx - 0x38c]
mov dword [ecx], ebp
add ecx, 4
dec ebx
jne 0x2002a138
mov eax, dword [edi]
xor eax, dword [esi + 0x9c4]
pop ebp
and eax, edx
xor eax, dword [esi + 0x9c4]
pop ebx
mov ecx, eax
and ecx, 1
imul ecx, ecx, 0x9908b0df
sar eax, 1
xor ecx, eax
xor ecx, dword [esi + 0x638]
mov dword [esi + 0x9c4], ecx
mov eax, dword [esi + 4]
mov ecx, dword [esi + eax*4 + 8]
inc eax
mov dword [esi + 4], eax
mov eax, ecx
shr eax, 0xb
xor ecx, eax
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
pop edi
xor eax, ecx
pop esi
ret
Function at 0x2002af51
Capabilities:
Check internet connectivity via wininet
Create http request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x200cc84c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x48], eax
xor esi, esi
push esi
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
test eax, eax
jne 0x2002af88
push 4
pop eax
jmp 0x2002afe6
push edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
lea eax, [ebp - 0x44]
push str.Agent_ld
push eax
call fcn.2007d900
add esp, 0xc
test byte [ebp - 0x50], 4
push esi
push esi
lea eax, [ebp - 0x44]
push esi
jne 0x2002afb1
push 4
jmp 0x2002afb2
push esi
push eax
call dword [sym.imp.WININET.dll_InternetOpenA]
mov edi, eax
cmp edi, esi
je 0x2002afe2
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
push dword [ebp - 0x48]
push dword [ebp - 0x4c]
push edi
call fcn.2002ad0d
add esp, 0x18
push edi
mov esi, eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, esi
jmp 0x2002afe5
push 4
pop eax
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.2007c9ae
leave
ret
Function at 0x2002ebe0
Capabilities:
Print debug messages
Read .ini file

Disassembly:
mov eax, 0x2009d8c1
call fcn.2007d394
sub esp, 0x134
mov eax, dword [0x200cc84c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
xor ebx, ebx
mov dword [ebp - 4], ebx
mov edi, dword [ebp + 8]
cmp byte [edi + 0x24], bl
jne 0x2002ecf8
push 0x104
lea eax, [ebp - 0x118]
push eax
push dword [0x200cdc18]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov dword [ebp - 0x13c], eax
mov byte [ebp + eax - 0x118], bl
lea eax, [ebp - 0x118]
push eax
lea ecx, [ebp - 0x11c]
call fcn.20004f37
mov byte [ebp - 4], 1
push 0x5c
lea ecx, [ebp - 0x11c]
call fcn.2002e9fc
mov dword [ebp - 0x140], eax
push eax
lea eax, [ebp - 0x12c]
push eax
lea ecx, [ebp - 0x11c]
call fcn.2002ea3a
mov dword [ebp - 0x130], eax
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x11c]
call fcn.20015e97
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x12c]
call fcn.200026ee
push str.psnetwork.ini
lea ecx, [ebp - 0x11c]
call fcn.200037d8
push dword [ebp - 0x11c]
push ebx
push str.OutputDebugInfo
push 0x200a7b84
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 0x11d], al
mov byte [edi + 0x24], al
cmp al, bl
jne 0x2002ecea
mov dword [ebp - 0x134], ebx
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x11c]
call fcn.200026ee
jmp 0x2002ed8e
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x11c]
call fcn.200026ee
mov byte [ebp - 0x11e], bl
lea eax, [edi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 0x124], ebx
mov byte [ebp - 4], 3
lea eax, [ebp + 0x10]
mov dword [ebp - 0x128], eax
push eax
push dword [ebp + 0xc]
mov esi, 0x200cdcc8
push esi
call fcn.2007d83d
mov dword [ebp - 0x124], eax
mov dword [ebp - 0x128], ebx
push esi
call fcn.2007d3c0
add esp, 0x10
mov dword [ebp - 0x138], eax
cmp byte [eax + 0x200cdcc7], 0xa
je 0x2002ed5b
push 0x200a6810
push esi
call fcn.2007f130
pop ecx
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x2002ed6f
mov dword [ebp - 4], ebx
add edi, 4
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp - 0x124]
jmp 0x2002ed90
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.2007c9ae
leave
ret
Function at 0x20030bfd
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push esi
mov esi, ecx
push edi
lea ecx, [ebp - 4]
lea eax, [esi + 0x28]
push ecx
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov edi, eax
test edi, edi
je 0x20030cf7
push ebx
lea ebx, [edi + 1]
push ebx
call fcn.2008f9f9
push ebx
push 0
push eax
mov dword [esi], eax
call fcn.2007e690
add esp, 0x10
push dword [esi]
lea eax, [esi + 0x28]
push edi
push dword [ebp - 4]
push eax
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
pop ebx
je 0x20030cf7
lea eax, [ebp - 0x38]
push eax
mov ecx, esi
call fcn.20030b08
test eax, eax
je 0x20030cf7
mov eax, dword [ebp - 0x30]
mov ecx, eax
shr ecx, 0x10
mov word [esi + 0xa], ax
mov eax, dword [ebp - 0x2c]
mov word [esi + 8], cx
mov ecx, eax
mov word [esi + 0xe], ax
mov eax, dword [ebp - 0x28]
shr ecx, 0x10
mov word [esi + 0xc], cx
mov ecx, eax
mov word [esi + 0x12], ax
mov eax, dword [ebp - 0x24]
shr ecx, 0x10
mov word [esi + 0x16], ax
mov word [esi + 0x10], cx
mov ecx, eax
mov eax, dword [ebp - 0x1c]
mov dword [esi + 0x18], eax
mov eax, dword [ebp - 0x18]
mov dword [esi + 0x1c], eax
mov eax, dword [ebp - 0x14]
mov dword [esi + 0x20], eax
mov eax, dword [ebp - 0x10]
mov dword [esi + 0x24], eax
shr ecx, 0x10
lea eax, [esi + 0x230]
push eax
mov word [esi + 0x14], cx
push 0x200a7d40
mov ecx, esi
call fcn.20030b48
lea eax, [esi + 0x640]
push eax
push 0x200a7d30
mov ecx, esi
call fcn.20030b48
lea eax, [esi + 0x438]
push eax
push 0x200a7d24
mov ecx, esi
call fcn.20030b48
xor eax, eax
inc eax
jmp 0x20030cf9
xor eax, eax
pop edi
pop esi
leave
ret

Function at 0x200315fc
Capabilities:
Get hostname
Resolve dns

Disassembly:
push ebp
lea ebp, [esp - 0x88]
sub esp, 0x108
mov eax, dword [0x200cc84c]
push ebx
xor eax, ebp
push edi
mov dword [ebp + 0x84], eax
push 0x100
lea eax, [ebp - 0x7c]
push eax
xor edi, edi
xor ebx, ebx
call dword [sym.imp.WS2_32.dll_gethostname]
test eax, eax
jne 0x2003168c
push esi
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov esi, eax
cmp esi, edi
je 0x2003168b
cmp word [esi + 0xa], 4
jne 0x2003168b
mov eax, dword [esi + 0xc]
cmp dword [eax], edi
je 0x2003168b
xor ecx, ecx
movsx edx, word [esi + 0xa]
push edx
push dword [eax + ecx]
lea eax, [ebp - 0x80]
push eax
call fcn.2007ca70
add esp, 0xc
cmp byte [ebp - 0x80], 0xa
je 0x20031677
cmp byte [ebp - 0x80], 0xc0
je 0x20031677
cmp byte [ebp - 0x7f], 0xa8
jne 0x20031688
mov eax, dword [esi + 0xc]
inc edi
mov ecx, edi
shl ecx, 2
cmp dword [eax + ecx], 0
jne 0x20031651
jmp 0x2003168b
xor ebx, ebx
inc ebx
pop esi
mov ecx, dword [ebp + 0x84]
pop edi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.2007c9ae
add ebp, 0x88
leave
ret
Function at 0x2003183a
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x200cc84c]
push ebx
push esi
mov esi, ecx
xor eax, ebp
lea ecx, [esi + 0x3c]
mov dword [ebp - 4], eax
mov byte [esi + 0xd], 1
call fcn.20025fbd
lea ecx, [esi + 0x1c]
call fcn.20001adc
lea ecx, [esi + 0x24]
call fcn.20001adc
mov eax, dword [esi + 0x58]
xor ebx, ebx
cmp eax, ebx
je 0x200318ca
cmp dword [esi + 0x5c], ebx
je 0x200318ca
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
xor eax, eax
mov ax, word [esi + 0x10]
mov word [ebp - 0x14], 2
push eax
call dword [sym.imp.WS2_32.dll_htons]
push 0x10
mov word [ebp - 0x12], ax
lea eax, [ebp - 0x14]
push eax
push ebx
push 1
push 0x200a4c6c
push dword [esi + 8]
mov dword [ebp - 0x10], 0x100007f
call dword [sym.imp.WS2_32.dll_sendto]
test eax, eax
jg 0x200318bc
xor al, al
jmp 0x200318e5
push 0x4e20
push dword [esi + 0x5c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp byte [esi + 0xc], bl
je 0x200318dd
mov eax, dword [esi + 8]
cmp eax, ebx
je 0x200318dd
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esi + 8], ebx
mov byte [esi + 0xc], bl
mov al, 1
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.2007c9ae
leave
ret

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

Disassembly:
mov eax, 0x2009db9c
call fcn.2007d394
sub esp, 0x20
mov eax, dword [0x200cc84c]
xor eax, ebp
push ebx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x28], eax
mov eax, dword [esi + 8]
push 0x200a4a9c
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x2c], eax
call fcn.20004f37
and dword [ebp - 4], 0
mov ebx, dword [sym.imp.WS2_32.dll_inet_addr]
lea edi, [esi + 0xe0]
mov eax, dword [edi]
mov ecx, dword [eax - 0xc]
cmp ecx, 4
jle 0x200327c6
push eax
call ebx
cmp al, 0xa
je 0x200327c3
cmp al, 0xc0
jne 0x200327c6
cmp ah, 0xa8
jne 0x200327c6
push edi
jmp 0x200327e6
add esi, 0xe4
mov eax, dword [esi]
cmp dword [eax - 0xc], 4
jle 0x200327ee
push dword [edi]
call ebx
cmp al, 0xa
je 0x200327e5
cmp al, 0xc0
jne 0x200327ee
cmp ah, 0xa8
jne 0x200327ee
push esi
lea ecx, [ebp - 0x24]
call fcn.20015e97
mov eax, dword [ebp - 0x24]
cmp dword [eax - 0xc], 0
jne 0x20032804
push str.239.255.255.250
lea ecx, [ebp - 0x24]
call fcn.20003052
push 0x10
lea eax, [ebp - 0x20]
push 0
push eax
call fcn.2007e690
add esp, 0xc
push dword [ebp - 0x24]
call ebx
push 0x76c
mov dword [ebp - 0x1c], eax
mov word [ebp - 0x20], 2
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x1e], ax
push 0x10
lea eax, [ebp - 0x20]
push eax
push 0
push dword [ebp - 0x28]
call fcn.2007d3c0
pop ecx
push eax
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
call dword [sym.imp.WS2_32.dll_sendto]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.200026ee
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop esi
xor ecx, ebp
xor al, al
pop ebx
call fcn.2007c9ae
leave
ret 4
Function at 0x20033aec
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov eax, 0x2009ddc9
call fcn.2007d394
push ecx
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [esi + 0x1c]
mov dword [ebp - 0x10], esi
mov dword [esi], 0x200a843c
call fcn.200026bf
xor ebx, ebx
mov dword [ebp - 4], ebx
lea ecx, [esi + 0x20]
call fcn.200026bf
mov byte [ebp - 4], 1
lea ecx, [esi + 0x24]
call fcn.200026bf
mov byte [ebp - 4], 2
lea ecx, [esi + 0x28]
call fcn.200026bf
mov byte [ebp - 4], 3
lea ecx, [esi + 0x2c]
call fcn.200026bf
mov byte [ebp - 4], 4
lea ecx, [esi + 0x30]
call fcn.20033ac6
mov byte [ebp - 4], 5
lea ecx, [esi + 0x3c]
call fcn.20025f6d
mov byte [ebp - 4], 6
lea ecx, [esi + 0x68]
call fcn.20076fbd
mov byte [ebp - 4], 7
lea ecx, [esi + 0xe0]
call fcn.200026bf
mov byte [ebp - 4], 8
lea ecx, [esi + 0xe4]
call fcn.200026bf
mov byte [ebp - 4], 9
lea ecx, [esi + 0xe8]
call fcn.200026bf
mov byte [ebp - 4], 0xa
lea ecx, [esi + 0xec]
call fcn.200026bf
mov byte [ebp - 4], 0xb
mov edi, 0x200a4a9c
push edi
lea ecx, [esi + 0x20]
mov dword [esi + 0x64], ebx
mov dword [esi + 4], ebx
mov byte [esi + 0xc], bl
call fcn.20003052
push edi
lea ecx, [esi + 0x24]
call fcn.20003052
push edi
lea ecx, [esi + 0x1c]
call fcn.20003052
push edi
lea ecx, [esi + 0xe8]
call fcn.20003052
push edi
lea ecx, [esi + 0xec]
call fcn.20003052
push edi
lea ecx, [esi + 0x28]
call fcn.20003052
push edi
lea ecx, [esi + 0x2c]
mov dword [esi + 8], ebx
call fcn.20003052
push ebx
push ebx
push 1
push ebx
mov byte [esi + 0xd], bl
mov dword [esi + 0x58], ebx
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x60], ebx
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [esi + 0x58], eax
mov dword [esi + 0x14], ebx
mov byte [esi + 0x18], 1
mov dword [esi + 0x10], 0x76c
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x20033c8f
Capabilities:
Get local ipv4 addresses
Get socket information
Set socket configuration

Disassembly:
mov eax, 0x2009dd0d
call fcn.2007d394
sub esp, 0x64
mov eax, dword [0x200cc84c]
push esi
xor eax, ebp
mov esi, ecx
cmp byte [esi + 0xc], 0
mov dword [ebp - 0x10], eax
je 0x20033cb6
xor eax, eax
jmp 0x20033df9
push ebx
push edi
lea ebx, [esi + 0xe0]
mov edi, 0x200a4a9c
push edi
mov ecx, ebx
call fcn.20003052
lea ecx, [esi + 0xe4]
push edi
call fcn.20003052
lea ecx, [ebp - 0x60]
call fcn.2003a6dc
xor edi, edi
mov dword [ebp - 4], edi
lea ecx, [ebp - 0x60]
call fcn.2003a9d4
test eax, eax
je 0x20033cfb
lea eax, [ebp - 0x34]
push eax
mov ecx, ebx
call fcn.20015e97
lea ecx, [ebp - 0x60]
call fcn.2003a86f
test eax, eax
je 0x20033d16
lea eax, [ebp - 0x34]
push eax
lea ecx, [esi + 0xe4]
call fcn.20015e97
push edi
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
push 4
lea ecx, [ebp - 0x6c]
push ecx
push 0x1006
push 0xffff
push eax
mov dword [esi + 8], eax
mov dword [ebp - 0x6c], 0xbb8
call dword [sym.imp.WS2_32.dll_setsockopt]
push 0x10
mov dword [ebp - 0x68], edi
mov dword [ebp - 0x64], edi
mov dword [esi + 0x10], 0x76c
pop ebx
cmp dword [ebp - 0x64], 1
jne 0x20033d5f
mov dword [esi + 0x10], 0x4a42
push ebx
lea eax, [ebp - 0x20]
push edi
push eax
call fcn.2007e690
xor eax, eax
mov ax, word [esi + 0x10]
add esp, 0xc
mov word [ebp - 0x20], 2
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x1e], ax
push ebx
lea eax, [ebp - 0x20]
push eax
push dword [esi + 8]
mov dword [ebp - 0x1c], edi
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x20033da8
inc dword [esi + 0x10]
inc dword [ebp - 0x64]
cmp dword [ebp - 0x64], 5
jg 0x20033db4
jmp 0x20033daf
mov dword [ebp - 0x68], 1
cmp dword [ebp - 0x68], edi
je 0x20033d52
cmp dword [ebp - 0x68], edi
jne 0x20033dc7
push dword [esi + 8]
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esi + 8], edi
jmp 0x20033de9
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x20]
push eax
push dword [esi + 8]
mov dword [ebp - 0x70], ebx
call dword [sym.imp.WS2_32.dll_getsockname]
mov ecx, esi
mov byte [esi + 0xc], 1
call fcn.20033c35
xor edi, edi
inc edi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x60]
call fcn.2003a7a8
mov eax, edi
pop edi
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
pop esi
call fcn.2007c9ae
leave
ret
Function at 0x20034471
Capabilities:
Resolve dns

Disassembly:
mov eax, 0x2009de5d
call fcn.2007d394
sub esp, 0x5c
mov eax, dword [0x200cc84c]
xor eax, ebp
push ebx
xor ebx, ebx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
cmp eax, ebx
push esi
mov esi, ecx
mov dword [esi], ebx
mov word [esi + 4], bx
je 0x200345f0
push edi
push eax
lea ecx, [ebp - 0x48]
call fcn.20003c27
mov dword [ebp - 4], ebx
push 1
push ebx
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x48]
mov byte [ebp - 0x4c], 0x3a
call fcn.200017e0
push ebx
lea ecx, [ebp - 0x2c]
mov edi, eax
mov dword [ebp - 0x14], 0xf
call fcn.20001bc0
mov byte [ebp - 4], 1
cmp edi, ebx
jle 0x20034584
push edi
push ebx
lea eax, [ebp - 0x68]
push eax
lea ecx, [ebp - 0x48]
call fcn.200039ea
mov byte [ebp - 4], 2
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp - 0x2c]
call fcn.20002fc3
mov byte [ebp - 4], 1
push ebx
push 1
lea ecx, [ebp - 0x68]
call fcn.2000275e
push edi
push ebx
lea eax, [ebp - 0x68]
push eax
lea ecx, [ebp - 0x48]
call fcn.200039ea
mov byte [ebp - 4], 3
cmp dword [eax + 0x18], 0x10
jb 0x20034527
mov eax, dword [eax + 4]
jmp 0x2003452a
add eax, 4
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [esi], eax
mov byte [ebp - 4], 1
push ebx
push 1
lea ecx, [ebp - 0x68]
call fcn.2000275e
mov eax, dword [ebp - 0x34]
inc edi
sub eax, edi
push eax
push edi
lea eax, [ebp - 0x68]
push eax
lea ecx, [ebp - 0x48]
call fcn.200039ea
mov byte [ebp - 4], 4
cmp dword [eax + 0x18], 0x10
jb 0x20034565
mov eax, dword [eax + 4]
jmp 0x20034568
add eax, 4
push eax
call fcn.2007db04
pop ecx
mov word [esi + 4], ax
mov byte [ebp - 4], 1
push ebx
push 1
lea ecx, [ebp - 0x68]
call fcn.2000275e
jmp 0x20034593
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x2c]
call fcn.20002fc3
cmp dword [ebp - 0x14], 0x10
mov eax, dword [ebp - 0x28]
pop edi
jae 0x200345a0
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp eax, 0xffffffff
mov dword [esi], eax
jne 0x200345d3
cmp byte [ebp + 0xc], bl
je 0x200345d3
cmp dword [ebp - 0x14], 0x10
mov eax, dword [ebp - 0x28]
jae 0x200345bf
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
cmp eax, ebx
je 0x200345d3
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [esi], eax
mov byte [ebp - 4], bl
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.2000275e
or dword [ebp - 4], 0xffffffff
push ebx
push 1
lea ecx, [ebp - 0x48]
call fcn.2000275e
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop esi
xor ecx, ebp
pop ebx
call fcn.2007c9ae
leave
ret 8
Function at 0x20034639
Capabilities:
Get hostname
Resolve dns

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x200cc84c]
push ebx
xor eax, ebp
push edi
mov edi, dword [ebp + 0x94]
mov dword [ebp + 0x88], eax
push 0x100
lea eax, [ebp - 0x78]
xor ebx, ebx
push eax
mov dword [ebp - 0x7c], ebx
call dword [sym.imp.WS2_32.dll_gethostname]
test eax, eax
jne 0x200346d4
push esi
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov esi, eax
cmp esi, ebx
je 0x200346d3
cmp word [esi + 0xa], 4
jne 0x200346d3
mov eax, dword [esi + 0xc]
xor ecx, ecx
cmp dword [eax], ecx
je 0x200346d3
movsx edx, word [esi + 0xa]
push edx
push dword [eax + ecx]
lea eax, [ebp - 0x80]
push eax
call fcn.2007ca70
mov eax, dword [edi + 4]
add esp, 0xc
lea ecx, [ebp - 0x80]
push ecx
push eax
mov ecx, edi
call fcn.2003460a
cmp dword [ebp - 0x7c], 0
jne 0x200346c4
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x7c], eax
mov eax, dword [esi + 0xc]
inc ebx
mov ecx, ebx
shl ecx, 2
cmp dword [eax + ecx], 0
jne 0x20034695
pop esi
mov ecx, dword [ebp + 0x88]
mov eax, dword [ebp - 0x7c]
pop edi
xor ecx, ebp
pop ebx
call fcn.2007c9ae
add ebp, 0x8c
leave
ret
Function at 0x20037b0a
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x2009e224
call fcn.2007d394
push ecx
push esi
mov esi, ecx
or dword [esi + 8], 0xffffffff
and dword [esi + 0xc], 0
mov dword [ebp - 0x10], esi
mov dword [esi], 0x200a8ac4
mov dword [esi + 4], 5
and dword [ebp - 4], 0
lea ecx, [esi + 0x10]
mov dword [esi], 0x200a8ad4
call fcn.20002957
mov byte [ebp - 4], 1
lea ecx, [esi + 0x30]
call fcn.20030aae
mov byte [ebp - 4], 2
lea ecx, [esi + 0x3c]
call fcn.20002e4a
mov byte [ebp - 4], 3
lea ecx, [esi + 0x48]
call fcn.20002e5d
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x200383f0
Capabilities:
Get memory capacity
Get system information on windows

Disassembly:
push esi
push edi
mov esi, ecx
push 0x20
lea edi, [esi + 0x120]
push 0
push edi
call fcn.2007e690
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
push 0x24
add esi, 0x140
push 0
push esi
call fcn.2007e690
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
pop edi
pop esi
ret
Function at 0x200386c7
Capabilities:
Check os version

Disassembly:
mov eax, 0x2009e3ca
call fcn.2007d394
sub esp, 0xc8
mov eax, dword [0x200cc84c]
push ebx
push esi
push edi
xor eax, ebp
mov edi, 0x9c
xor ebx, ebx
push edi
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xac]
mov esi, ecx
push ebx
push eax
mov word [esi + 0x11e], bx
call fcn.2007e690
add esp, 0xc
lea eax, [ebp - 0xac]
mov dword [ebp - 0xac], edi
mov edi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
push eax
call edi
cmp eax, ebx
jne 0x20038739
lea eax, [ebp - 0xac]
push eax
mov dword [ebp - 0xac], 0x94
call edi
test eax, eax
je 0x200388cb
cmp dword [ebp - 0x9c], 1
mov eax, dword [ebp - 0xa4]
jne 0x20038775
cmp dword [ebp - 0xa8], 4
jne 0x200388c8
cmp eax, ebx
je 0x2003875e
cmp eax, 0xa
jne 0x20038765
or byte [esi + 0x11e], 1
cmp eax, 0x5a
jne 0x200388c8
or byte [esi + 0x11e], 0x80
push 2
pop edi
cmp dword [ebp - 0x9c], edi
jne 0x200388c8
cmp dword [ebp - 0xa8], 6
jne 0x200387ae
cmp eax, ebx
jne 0x200388c8
cmp byte [ebp - 0x12], 1
jne 0x200387a7
or byte [esi + 0x11f], 1
jmp 0x200388c8
or byte [esi + 0x11f], 2
cmp dword [ebp - 0xa8], 5
jne 0x20038897
cmp eax, edi
jne 0x20038821
push str.GetNativeSystemInfo
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x200387e3
lea ecx, [ebp - 0xd4]
push ecx
call eax
push 0x59
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x200387f8
or byte [esi + 0x11e], 0x40
jmp 0x20038818
cmp byte [ebp - 0x12], 1
jne 0x20038811
cmp word [ebp - 0xd4], 9
jne 0x20038811
or byte [esi + 0x11f], 4
jmp 0x20038818
or byte [esi + 0x11e], 0x20
cmp dword [ebp - 0xa8], 5
jne 0x20038897
cmp dword [ebp - 0xa4], 1
jne 0x20038888
lea eax, [ebp - 0x98]
push eax
lea ecx, [ebp - 0xb0]
call fcn.20004f37
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0xb0]
call fcn.20008e10
push 0x200a8b48
push dword [ebp - 0xb0]
call fcn.2007e81b
test eax, eax
pop ecx
pop ecx
jne 0x20038869
or byte [esi + 0x11e], 0x10
jmp 0x20038870
or byte [esi + 0x11e], 8
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xb0]
call fcn.200026ee
cmp dword [ebp - 0xa8], 5
jne 0x20038897
cmp dword [ebp - 0xa4], ebx
jne 0x200388c8
or byte [esi + 0x11e], 4
cmp dword [ebp - 0xa8], 3
jne 0x200388b0
cmp dword [ebp - 0xa4], 0x33
jne 0x200388c8
or word [esi + 0x11e], di
cmp dword [ebp - 0xa8], 4
jne 0x200388c8
cmp dword [ebp - 0xa4], ebx
jne 0x200388c8
or word [esi + 0x11e], di
xor eax, eax
inc eax
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop esi
xor ecx, ebp
pop ebx
call fcn.2007c9ae
leave
ret
Function at 0x20038ab5
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x2009e416
call fcn.2007d394
sub esp, 0x124
mov eax, dword [0x200cc84c]
push esi
push str.isfor.ini
xor eax, ebp
push 0x104
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
push eax
push 0x200a4a9c
push str.forname
push str.base
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x130]
call fcn.20003c27
xor eax, eax
mov dword [ebp - 4], eax
xor esi, esi
cmp dword [ebp - 0x11c], eax
je 0x20038b18
inc esi
or dword [ebp - 4], 0xffffffff
push eax
push 1
lea ecx, [ebp - 0x130]
call fcn.2000275e
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.2007c9ae
leave
ret
Function at 0x2003b07b
Capabilities:
Check for time delay via gettickcount

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x108f4], 0
je 0x2003b0d7
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
push edi
lea edi, [esi + 0x10e68]
call ebx
sub eax, dword [edi]
cmp eax, 0x64
jbe 0x2003b0d5
call ebx
mov dword [edi], eax
lea eax, [esi + 0x10e5c]
inc dword [eax]
mov ecx, dword [eax]
cmp ecx, 2
jl 0x2003b0b4
and dword [eax], 0
cmp dword [eax], 0
je 0x2003b0c1
mov eax, dword [esi + 0x10e60]
jmp 0x2003b0c3
xor eax, eax
mov ecx, dword [esi + 0x108f4]
mov edx, dword [ecx]
push 0x200a4c04
push eax
push 2
call dword [edx]
pop edi
pop ebx
pop esi
ret