joyce8/EMBER2024-capa huggingface dataset:
Function at 0x432f90
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
push ebx
push esi
push edi
mov bl, dl
push ebp
xor ebp, ebp
mov dword [esp + 0x10], ebp
call fcn.0044c420
cmp eax, 0xffffffff
mov esi, eax
je 0x433076
lea eax, [esp + 0x18]
push ebp
lea ecx, [esp + 0x18]
push eax
push 4
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x43306f
mov edi, dword [esp + 0x20]
lea eax, [esp + 0x10]
mov ecx, dword [esp + 0x14]
push edi
push eax
mov edx, ebx
add ecx, 0x1c
call fcn.00414c00
mov eax, dword [esp + 0x10]
cmp eax, ebp
je 0x43306f
lea ebx, [eax + 0x1c]
mov dword [eax + 0xc], ebp
mov eax, dword [esp + 0x10]
mov word [eax + 4], bp
mov eax, dword [esp + 0x10]
mov word [eax + 6], bp
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x10]
mov eax, dword [eax + 0x20]
dec ax
mov word [ecx + 8], ax
mov ecx, dword [esp + 0x10]
push ebp
mov eax, dword [ecx + 0x24]
dec ax
mov word [ecx + 0xa], ax
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x1c]
push eax
mov dword [ecx], 0xbc614e
mov edx, dword [esp + 0x1c]
push edx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x433060
mov eax, dword [ebx + 0xc]
cmp eax, ebp
jle 0x43306f
lea eax, [ebx + 0x1c]
mov ecx, dword [eax]
add eax, 0xc
add ecx, ebx
inc ebp
mov dword [eax - 0xc], ecx
cmp dword [ebx + 0xc], ebp
jg 0x43304e
jmp 0x43306f
mov ecx, edi
call fcn.00414c70
mov dword [esp + 0x10], 0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0xc
ret 4

Function at 0x4336b0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x18
push ebx
push esi
push edi
mov esi, ecx
lea eax, [esp + 0x10]
push ebp
mov ecx, dword [esi + 0x138]
push eax
lea edx, [esp + 0x14]
mov eax, dword [esp + 0x30]
push edx
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
movsx ebx, word [esp + 0x38]
mov word [esi + 0x12c], 0
push ebx
push eax
push ecx
call ebp
mov di, ax
test di, di
jge 0x433706
push edi
mov ecx, esi
neg di
call fcn.00433650
mov ax, di
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x18
ret 8
mov ax, di
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x18
ret 8

Function at 0x4337c0
Capabilities:
Read file on windows

Disassembly:
push esi
push edi
mov esi, ecx
xor edi, edi
mov dword [esi + 0x148], edi
lea ecx, [esi + 0x148]
lea eax, [esi + 0x168]
push ecx
push eax
mov dword [ecx + 4], edi
push 0x3e80
mov dword [ecx + 8], edi
mov dword [ecx + 0xc], edi
mov dword [ecx + 0x10], edi
mov ecx, dword [esi + 0x160]
push ecx
mov edx, dword [esi + 0x138]
push edx
mov dword [esi + 0x164], edi
mov dword [eax], edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov word [esi + 0x15c], ax
cmp ax, di
jne 0x433839
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
mov word [esi + 0x15c], ax
movsx eax, ax
cmp eax, 0x3e5
je 0x433830
call edi
jmp 0x433839
mov word [esi + 0x15c], 1
mov ecx, esi
call fcn.00433720
movsx eax, word [esi + 0x15c]
pop edi
pop esi
ret
Function at 0x433980
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xc
mov dword [esp + 4], edx
push esi
mov dword [esp + 0xc], ecx
push edi
mov esi, dword [esp + 0x10]
lea edi, [0x46d648]
mov ecx, dword [esp + 0xc]
xor edx, edx
dec edx
xor eax, eax
mov al, byte [esi]
inc esi
xor al, dl
mov ax, word [edi + eax*2]
xor al, dh
mov edx, eax
dec ecx
jne 0x43399e
mov word [esp + 0xa], dx
mov ax, word [esp + 0xa]
pop edi
pop esi
add esp, 0xc
ret

Function at 0x434150
Capabilities:
Get file size

Disassembly:
sub esp, 0xc
mov dword [esp], edx
push ebx
push esi
xor ebx, ebx
push edi
mov esi, ecx
push ebp
xor edi, edi
xor ebp, ebp
mov eax, dword [esp + 0x20]
and eax, 3
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], 0xffffffff
je 0x4341eb
cmp eax, 3
je 0x4341eb
push 0x24
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebp, eax
test ebp, ebp
je 0x4341e4
mov eax, dword [esp + 0x20]
mov dword [ebp], 0x4953444d
mov dword [ebp + 0x14], edi
test al, 2
mov dword [ebp + 0x20], edi
jne 0x4341f0
mov ebx, 1
lea eax, [esp + 0x18]
lea edx, [esp + 0x14]
push eax
mov ecx, dword [esp + 0x14]
call fcn.004159a0
mov dword [esp + 0x10], eax
test eax, eax
je 0x4341dd
mov eax, dword [esp + 0x14]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edx, dword [esp + 0x10]
push eax
mov ecx, ebp
call fcn.00434230
mov edi, eax
jmp 0x4341f0
mov edi, 2
jmp 0x4341f0
mov edi, 1
jmp 0x4341f0
mov edi, 4
test edi, edi
je 0x434201
test ebp, ebp
je 0x434203
push ebp
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x434203
mov dword [esi], ebp
test ebx, ebx
je 0x434219
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
push eax
call fcn.00415a20
mov eax, edi
pop ebp
pop edi
pop esi
pop ebx
add esp, 0xc
ret 4
Function at 0x441940
Capabilities:
Get geographical location

Disassembly:
push ebx
mov ecx, str.Data_Courses_
movsx eax, byte [0x467a6d]
push esi
push edi
push str..CRS
mov edx, dword [eax*4 + 0x46df58]
call fcn.00443380
mov dl, byte [0x4753cc]
mov ecx, eax
call fcn.00414f90
mov dword [0x49bcf0], eax
test eax, eax
jne 0x441981
mov ecx, dword [0x4c5d84]
call fcn.00448080
mov eax, dword [0x46df70]
test eax, eax
je 0x4419b9
mov esi, 0x46df7c
xor edi, edi
mov eax, dword [esi + 4]
test eax, eax
jne 0x4419af
push 8
mov edx, dword [esi - 4]
inc edx
mov ecx, dword [esi - 8]
call fcn.004153a0
mov dword [esi], eax
test eax, eax
je 0x4419af
mov dword [esi + 4], eax
mov eax, dword [esi + 8]
add esi, 0x14
test eax, eax
jne 0x441991
xor ebx, ebx
xor edi, edi
cmp dword [0x46df70], ebx
je 0x441a0f
mov esi, 0x46df80
mov ecx, dword [esi]
test ecx, ecx
je 0x441a04
mov eax, dword [esi - 0xc]
cmp eax, 0x43454c20
jne 0x4419f1
xor edx, edx
call fcn.0040b800
mov dword [esi], eax
test eax, eax
jne 0x4419fd
lea ecx, [edi + 1]
call fcn.00448080
jmp 0x4419fd
cmp eax, 0x414e494d
jne 0x4419fd
call fcn.0044a200
mov eax, dword [esi]
mov ecx, dword [esi - 0x10]
mov dword [ecx], eax
mov eax, dword [esi + 4]
add esi, 0x14
inc edi
test eax, eax
jne 0x4419ca
call fcn.00448030
pop edi
mov dword [0x4c1270], eax
pop esi
pop ebx
ret
Function at 0x441b40
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0x18
mov eax, dword [0x46e100]
cmp eax, 0xffffffff
nop
push ebx
push esi
push edi
mov esi, ecx
je 0x441b58
call fcn.00442500
mov eax, dword [0x46c4cc]
cmp eax, 0x185
jne 0x441bac
lea ecx, [esp + 0x14]
xor eax, eax
push 0x1b54
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
call sub.WSOCK32.dll_htons
and eax, 0xffff
lea ecx, [esp + 0xc]
lea edx, [esp + 0x10]
push eax
push ecx
lea ecx, [esp + 0x1c]
call fcn.00441c90
mov cx, word [esp + 0x14]
mov ebx, eax
mov ax, word [esp + 0x16]
mov word [esi], cx
mov word [esi + 2], ax
jmp 0x441bfc
lea eax, [esp + 0x14]
xor edi, edi
push 0x4242
mov dword [eax], edi
mov dword [eax + 4], edi
mov dword [eax + 8], edi
mov word [eax + 0xc], di
call sub.WSOCK32.dll_htons
and eax, 0xffff
lea ecx, [esp + 0xc]
lea edx, [esp + 0x10]
push eax
push ecx
lea ecx, [esp + 0x1c]
call fcn.00441cd0
mov ebx, eax
push 0x4242
call sub.WSOCK32.dll_htons
and eax, 0xffff
xor edx, edx
push eax
mov ecx, esi
push edi
call fcn.00441cd0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
push eax
push 2
push ecx
call sub.WSOCK32.dll_socket
cmp eax, 0xffffffff
mov edi, eax
jne 0x441c1f
xor al, al
pop edi
pop esi
pop ebx
add esp, 0x18
ret 8
lea eax, [esp + 0x14]
push ebx
push eax
push edi
call sub.WSOCK32.dll_bind
mov dword [0x49bd78], eax
cmp eax, 0xffffffff
jne 0x441c40
xor al, al
pop edi
pop esi
pop ebx
add esp, 0x18
ret 8
mov eax, dword [esp + 0x2c]
push ebx
mov ecx, dword [esp + 0x2c]
push esi
push 0
push eax
push ecx
push edi
call sub.WSOCK32.dll_sendto
mov dword [0x49bd78], eax
cmp eax, 0xffffffff
jne 0x441c69
xor al, al
pop edi
pop esi
pop ebx
add esp, 0x18
ret 8
push edi
call sub.WSOCK32.dll_closesocket
pop edi
mov dword [0x49bd78], eax
pop esi
cmp eax, 0xffffffff
setne dl
mov al, dl
pop ebx
add esp, 0x18
ret 8
Function at 0x441d00
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0xc
mov eax, dword [0x46e100]
push esi
push edi
mov edi, edx
mov esi, ecx
xor ecx, ecx
cmp eax, 0xffffffff
mov dword [esp + 8], ecx
jne 0x441dee
mov eax, dword [0x46c4cc]
cmp eax, 0x185
jne 0x441d62
mov dword [0x49bd80], ecx
mov eax, 0x49bd80
push 0x1b54
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
call sub.WSOCK32.dll_htons
and eax, 0xffff
lea ecx, [esp + 0xc]
lea edx, [esp + 0x10]
push eax
push ecx
mov ecx, 0x49bd80
call fcn.00441c90
jmp 0x441d98
mov ecx, 0x49bd80
xor eax, eax
push 0x4242
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov word [ecx + 0xc], ax
call sub.WSOCK32.dll_htons
and eax, 0xffff
lea ecx, [esp + 0xc]
lea edx, [esp + 0x10]
push eax
push ecx
mov ecx, 0x49bd80
call fcn.00441cd0
mov ecx, dword [esp + 0x10]
mov dword [0x49bda8], eax
mov eax, dword [esp + 0xc]
push eax
push 2
push ecx
call sub.WSOCK32.dll_socket
mov dword [0x46e100], eax
cmp eax, 0xffffffff
jne 0x441dc0
xor eax, eax
pop edi
pop esi
add esp, 0xc
ret
mov ecx, dword [0x49bda8]
mov dword [0x46e100], eax
push ecx
push 0x49bd80
push eax
call sub.WSOCK32.dll_bind
mov dword [0x49bd78], eax
cmp eax, 0xffffffff
mov eax, dword [0x46e100]
jne 0x441dee
xor eax, eax
pop edi
pop esi
add esp, 0xc
ret
lea ecx, [esp + 8]
push ecx
push 0x4004667f
push eax
call sub.WSOCK32.dll_ioctlsocket
mov dword [0x49bd78], eax
cmp eax, 0xffffffff
jne 0x441e10
xor eax, eax
pop edi
pop esi
add esp, 0xc
ret
mov eax, dword [esp + 8]
test eax, eax
je 0x441e5b
cmp eax, edi
jle 0x441e20
mov dword [esp + 8], edi
mov eax, dword [esp + 8]
push 0x49bda8
push 0x49bd80
mov ecx, dword [0x46e100]
push 0
push eax
push esi
push ecx
call sub.WSOCK32.dll_recvfrom
mov dword [0x49bd78], eax
cmp eax, 0xffffffff
jne 0x441e50
xor eax, eax
pop edi
pop esi
add esp, 0xc
ret
pop edi
mov dword [0x49bd78], eax
pop esi
add esp, 0xc
ret
xor eax, eax
pop edi
pop esi
add esp, 0xc
ret

Function at 0x441fb0
Capabilities:
Create thread
Terminate thread

Disassembly:
sub esp, 0x14
mov eax, dword [esp + 0x18]
push ebx
mov dword [esp + 8], ecx
push esi
push edi
mov esi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push ebp
xor edi, edi
mov ebx, 0x102
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x10], edi
lea eax, [esp + 0x20]
lea ecx, [esp + 0x14]
push eax
push 0
push ecx
push 0x442050
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebp, eax
push 0x7d0
push ebp
call esi
cmp eax, ebx
jne 0x442010
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov dword [esp + 0x10], ebx
jmp 0x442028
lea eax, [esp + 0x10]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
jne 0x442028
mov dword [esp + 0x10], 0xffffffff
mov eax, dword [esp + 0x10]
cmp eax, ebx
jne 0x442036
inc edi
cmp edi, 3
jl 0x441fd8
mov eax, dword [esp + 0x10]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x14
ret 4
Function at 0x4421e0
Capabilities:
Get local ipv4 addresses
Get socket information
Resolve dns

Disassembly:
sub esp, 0xc
mov eax, dword [0x46e104]
push ebx
push esi
push edi
mov esi, ecx
cmp dword [0x46c4cc], eax
jne 0x4421fd
test dl, dl
je 0x442307
mov eax, dword [0x46c4cc]
cmp eax, 0x185
jne 0x442247
push 0x4c1220
call sub.WSOCK32.dll_gethostbyname
mov edi, eax
push 0
call sub.WSOCK32.dll_htons
and eax, 0xffff
lea ecx, [esp + 0x10]
lea edx, [esp + 0x14]
push eax
push ecx
mov ecx, 0x49bdb0
call fcn.00441c90
mov dword [esp + 0xc], eax
mov ecx, dword [edi + 0xc]
mov edx, dword [ecx]
mov eax, dword [edx]
mov dword [0x49bdb4], eax
jmp 0x44227d
mov ecx, 0x49bdb0
xor eax, eax
push eax
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov word [ecx + 0xc], ax
call sub.WSOCK32.dll_htons
and eax, 0xffff
lea ecx, [esp + 0x10]
lea edx, [esp + 0x14]
push eax
push ecx
mov ecx, 0x49bdb0
call fcn.00441cd0
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
push eax
push 2
push ecx
call sub.WSOCK32.dll_socket
cmp eax, 0xffffffff
mov edi, eax
je 0x442325
mov eax, dword [esp + 0xc]
push eax
push 0x49bdb0
push edi
call sub.WSOCK32.dll_bind
mov dword [0x49bd78], eax
cmp eax, 0xffffffff
je 0x442325
lea eax, [esp + 0xc]
push eax
push 0x49bdb0
push edi
call sub.WSOCK32.dll_getsockname
mov dword [0x49bd78], eax
cmp eax, 0xffffffff
je 0x442325
mov eax, dword [0x46c4cc]
cmp eax, 0x185
jne 0x4422e1
mov ax, word [0x49bdb2]
jmp 0x4422e7
mov ax, word [0x49bdbc]
mov word [0x46e0fc], ax
push edi
call sub.WSOCK32.dll_closesocket
mov dword [0x49bd78], eax
cmp eax, 0xffffffff
je 0x442325
mov eax, dword [0x46c4cc]
mov dword [0x46e104], eax
mov eax, dword [0x49bdb0]
mov ecx, 0x49bdb0
mov dword [esi], eax
mov edx, dword [ecx + 4]
mov dword [esi + 4], edx
mov ebx, dword [ecx + 8]
mov dword [esi + 8], ebx
mov eax, dword [ecx + 0xc]
mov dword [esi + 0xc], eax
pop edi
pop esi
pop ebx
add esp, 0xc
ret
Function at 0x442330
Capabilities:
Send data
Send data on socket
Set socket configuration

Disassembly:
sub esp, 0xc
mov dword [esp + 8], 1
push esi
push edi
mov edi, edx
mov esi, ecx
mov ecx, dword [0x46e108]
cmp ecx, 0xffffffff
jne 0x442497
mov eax, dword [0x46c4cc]
mov ecx, 0x49bd98
cmp eax, 0x185
jne 0x442393
xor eax, eax
push 0x1b53
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
call sub.WSOCK32.dll_htons
and eax, 0xffff
lea ecx, [esp + 8]
lea edx, [esp + 0xc]
push eax
push ecx
mov ecx, 0x49bd98
call fcn.00441c90
jmp 0x4423c4
xor eax, eax
push 0x42ff
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov word [ecx + 0xc], ax
call sub.WSOCK32.dll_htons
and eax, 0xffff
lea ecx, [esp + 8]
lea edx, [esp + 0xc]
push eax
push ecx
mov ecx, 0x49bd98
call fcn.00441cd0
mov ecx, dword [esp + 0xc]
mov dword [0x49bd90], eax
mov eax, dword [esp + 8]
push eax
push 2
push ecx
call sub.WSOCK32.dll_socket
mov dword [0x46e108], eax
cmp eax, 0xffffffff
jne 0x4423ec
xor al, al
pop edi
pop esi
add esp, 0xc
ret
mov ecx, dword [0x49bd90]
mov dword [0x46e108], eax
push ecx
push 0x49bd98
push eax
call sub.WSOCK32.dll_bind
mov dword [0x49bd78], eax
cmp eax, 0xffffffff
jne 0x442415
xor al, al
pop edi
pop esi
add esp, 0xc
ret
mov eax, dword [0x46c4cc]
cmp eax, 0x185
jne 0x442439
push 0xffffffffffffffff
call sub.WSOCK32.dll_htonl
mov dword [0x49bd20], 0
mov dword [0x49bd9c], eax
jmp 0x442465
push 4
mov edx, str.00000000
mov ecx, 0x49bd9a
call fcn.00441a50
push 6
mov edx, str.FFFFFFFFFFFF
mov ecx, 0x49bd9e
call fcn.00441a50
mov dword [0x49bd20], 4
lea eax, [esp + 0x10]
push 4
push eax
mov ecx, dword [0x46e108]
push 0x20
push 0xffff
push ecx
call sub.WSOCK32.dll_setsockopt
mov ecx, dword [0x46e108]
mov dword [0x49bd78], eax
cmp eax, 0xffffffff
jne 0x442497
xor al, al
pop edi
pop esi
add esp, 0xc
ret
mov eax, dword [0x49bd90]
mov edx, dword [0x49bd20]
push eax
push 0x49bd98
push edx
push edi
push esi
push ecx
call sub.WSOCK32.dll_sendto
pop edi
mov dword [0x49bd78], eax
pop esi
cmp eax, 0xffffffff
setne cl
mov al, cl
add esp, 0xc
ret
Function at 0x442530
Capabilities:
Receive data
Receive data on socket
Set socket configuration

Disassembly:
sub esp, 0x10
mov dword [esp + 0xc], 1
push esi
push edi
mov edi, edx
mov esi, ecx
mov ecx, dword [0x46e108]
cmp ecx, 0xffffffff
jne 0x442653
mov eax, dword [0x46c4cc]
mov ecx, 0x49bdc0
cmp eax, 0x185
jne 0x442593
xor eax, eax
push 0x1b53
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
call sub.WSOCK32.dll_htons
and eax, 0xffff
lea ecx, [esp + 8]
lea edx, [esp + 0xc]
push eax
push ecx
mov ecx, 0x49bdc0
call fcn.00441c90
jmp 0x4425c4
xor eax, eax
push 0x42ff
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov word [ecx + 0xc], ax
call sub.WSOCK32.dll_htons
and eax, 0xffff
lea ecx, [esp + 8]
lea edx, [esp + 0xc]
push eax
push ecx
mov ecx, 0x49bdc0
call fcn.00441cd0
mov ecx, dword [esp + 0xc]
mov dword [0x49bcf8], eax
mov eax, dword [esp + 8]
push eax
push 2
push ecx
call sub.WSOCK32.dll_socket
mov dword [0x46e108], eax
cmp eax, 0xffffffff
jne 0x4425ec
xor al, al
pop edi
pop esi
add esp, 0x10
ret
mov ecx, dword [0x49bcf8]
mov dword [0x46e108], eax
push ecx
push 0x49bdc0
push eax
call sub.WSOCK32.dll_bind
mov ecx, dword [0x46e108]
mov dword [0x49bd78], eax
cmp eax, 0xffffffff
jne 0x44261b
xor al, al
pop edi
pop esi
add esp, 0x10
ret
mov eax, dword [0x46c4cc]
cmp eax, 0x186
jne 0x442653
lea eax, [esp + 0x14]
push 4
push eax
push 0x20
push 0xffff
push ecx
call sub.WSOCK32.dll_setsockopt
mov ecx, dword [0x46e108]
mov dword [0x49bd78], eax
cmp eax, 0xffffffff
jne 0x442653
xor al, al
pop edi
pop esi
add esp, 0x10
ret
lea eax, [esp + 0x10]
push eax
push 0x4004667f
push ecx
call sub.WSOCK32.dll_ioctlsocket
mov dword [0x49bd78], eax
cmp eax, 0xffffffff
jne 0x442675
xor al, al
pop edi
pop esi
add esp, 0x10
ret
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4426a8
push 0x49bcf8
mov eax, dword [0x46e108]
push 0x49bdc0
push 0
push edi
push esi
push eax
call sub.WSOCK32.dll_recvfrom
mov dword [0x49bd78], eax
cmp eax, 0xffffffff
jne 0x4426a8
xor al, al
pop edi
pop esi
add esp, 0x10
ret
mov al, byte [esp + 0x10]
pop edi
pop esi
add esp, 0x10
ret

Function at 0x4426c0
Capabilities:
Get hostname
Initialize winsock library

Disassembly:
sub esp, 0x190
lea eax, [esp]
push edi
push eax
push 0x101
call sub.WSOCK32.dll_WSAStartup
mov dword [0x49bd78], eax
test eax, eax
je 0x442738
cmp eax, 0x2726
je 0x4426fb
cmp eax, 0x276b
je 0x442702
cmp eax, 0x276c
je 0x442709
mov ecx, 0x1bb
jmp 0x44270e
mov ecx, 0x1bf
jmp 0x44270e
mov ecx, 0x1bd
jmp 0x44270e
mov ecx, 0x1be
mov eax, dword [0x49bd78]
mov edx, dword [0x475378]
push eax
nop
mov eax, dword [edx + 0x6f0]
mov ecx, dword [edx + ecx*4]
push ecx
push eax
call fcn.00443120
add esp, 0xc
xor al, al
pop edi
add esp, 0x190
ret
mov edi, 0x49bd00
mov eax, 0xffffffff
mov ecx, 8
push 0x50
rep stosd dword es:[edi], eax
mov byte [0x46e10c], 1
push 0x4c1220
call sub.WSOCK32.dll_gethostname
mov al, 1
pop edi
add esp, 0x190
ret
Function at 0x4427f0
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 4
mov dword [esp], 0
push ebx
push esi
push edi
mov esi, edx
push ebp
mov edi, ecx
xor ebx, ebx
mov ebp, dword [esp + 0x18]
mov eax, dword [ebx*4 + 0x49bd00]
cmp eax, 0xffffffff
je 0x44283a
lea ecx, [esp + 0x10]
push ecx
push 0x4004667f
push eax
call sub.WSOCK32.dll_ioctlsocket
mov dword [0x49bd78], eax
cmp eax, 0xffffffff
je 0x44284c
mov eax, dword [esp + 0x10]
mov dword [ebp], ebx
test eax, eax
jne 0x442858
inc ebx
cmp ebx, 8
jb 0x442809
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 4
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 4
mov eax, dword [esp + 0x10]
cmp eax, esi
jle 0x442864
mov dword [esp + 0x10], esi
mov eax, dword [esp + 0x10]
push 0
push eax
mov ecx, dword [ebx*4 + 0x49bd00]
push edi
push ecx
call sub.WSOCK32.dll_recv
mov dword [0x49bd78], eax
cmp eax, 0xffffffff
jne 0x44288f
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 4
mov eax, dword [0x49bd78]
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 4

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

Disassembly:
push ebx
push esi
mov eax, dword [ecx*4 + 0x49bd00]
push edi
push ebp
mov edi, edx
mov esi, ecx
cmp eax, 0xffffffff
je 0x4428f3
xor ebp, ebp
mov ebx, dword [esp + 0x14]
push 0
mov eax, dword [esi*4 + 0x49bd00]
push ebx
push edi
push eax
call sub.WSOCK32.dll_send
mov dword [0x49bd78], eax
cmp eax, 0xffffffff
jne 0x4428eb
call sub.WSOCK32.dll_WSAGetLastError
cmp eax, 0x2733
mov ebp, eax
jne 0x4428f3
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp ebp, 0x2733
je 0x4428ba
pop ebp
pop edi
pop esi
pop ebx
ret 4

Function at 0x4436a0
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 4
push ebx
push esi
push edi
mov esi, edx
push ebp
mov ebx, ecx
xor edi, edi
mov al, byte [0x475384]
test al, al
mov eax, 0
je 0x4436cc
push str..DAT
mov ecx, str.Data_Bikers_Hi
mov edx, ebx
call fcn.00443380
test eax, eax
jne 0x4436e9
push str..DAT
mov ecx, str.Data_Bikers_Lo
mov edx, ebx
call fcn.00443380
test eax, eax
je 0x443793
push 0
push 0x8000000
push 3
push 0
push 0
push connect
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov ebp, eax
je 0x443793
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, eax
mov ebx, eax
lea eax, [esi + 4]
mov dl, byte [0x4753cc]
push eax
push esi
call fcn.00414c00
mov esi, dword [esi]
test esi, esi
je 0x44378c
lea eax, [esp + 0x10]
push 0
push eax
push ebx
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x44378c
mov eax, dword [esp + 0x10]
cmp eax, ebx
jne 0x44378c
mov edi, dword [esp + 0x1c]
test edi, edi
je 0x443787
mov ebx, dword [esp + 0x18]
mov al, byte [esi]
inc esi
inc esi
xor edx, edx
mov byte [ebx + 4], al
xor eax, eax
mov cl, byte [esi - 1]
mov dl, cl
mov byte [ebx + 5], cl
mov al, byte [ebx + 4]
imul eax, edx
test eax, eax
je 0x44377b
mov dword [ebx], esi
add esi, eax
jmp 0x443781
mov dword [ebx], 0
add ebx, 8
dec edi
jne 0x443758
mov edi, 1
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 8
Function at 0x4465f0
Capabilities:
Get geographical location

Disassembly:
sub esp, 4
xor eax, eax
movsx ecx, byte [0x467a6d]
push ebx
push esi
push edi
mov esi, dword [ecx*4 + 0x46df58]
cmp byte [0x475388], al
je 0x44661f
push str..CAR
mov ecx, str.Data_Cars_Hi
mov edx, esi
call fcn.00443380
test eax, eax
jne 0x446634
push str..CAR
mov ecx, str.Data_Cars_
mov edx, esi
call fcn.00443380
xor ebx, ebx
test eax, eax
je 0x44677f
mov dl, byte [0x4753cc]
mov ecx, eax
call fcn.00414f90
mov dword [0x474d8c], eax
test eax, eax
je 0x44677f
mov byte [esp + 0xf], bl
movsx esi, bl
push 8
mov ecx, 0x414e494d
lea edx, [esi + 1]
call fcn.004153a0
mov ecx, eax
test ecx, ecx
je 0x446779
mov dword [esi*8 + 0x474dbc], ecx
mov eax, dword [ecx]
cmp eax, 0x5252414e
jne 0x44668f
call fcn.0044a200
jmp 0x44669b
cmp eax, 0x4f465353
jne 0x44669b
call fcn.0044a1d0
push 8
mov ecx, 0x43414e53
movsx edx, byte [esp + 0x13]
inc edx
lea edi, [esi*8 + 0x474db8]
call fcn.004153a0
test eax, eax
jne 0x4466c3
mov eax, dword [esi*8 + str.2raC]
mov dword [edi], eax
jmp 0x4466cf
mov cl, byte [esp + 0xf]
mov dword [edi], eax
inc cl
mov byte [esp + 0xf], cl
push 1
mov eax, dword [esi*4 + 0x474ee8]
mov edx, str.sraC
mov ecx, dword [eax]
push ecx
mov ecx, edi
call fcn.0040b6a0
test al, al
jne 0x4466fa
mov eax, dword [esi*4 + 0x474ee8]
mov ecx, dword [eax]
mov dword [ecx], 0xffffffff
push 1
mov eax, dword [esi*4 + 0x474ee8]
mov edx, str.1raC
mov ecx, dword [eax + 4]
push ecx
mov ecx, edi
call fcn.0040b6a0
test al, al
jne 0x446727
mov eax, dword [esi*4 + 0x474ee8]
mov ecx, dword [eax + 4]
mov dword [ecx], 0xffffffff
push 1
mov eax, dword [esi*4 + 0x474ee8]
mov edx, str.2raC
mov ecx, dword [eax + 8]
push ecx
mov ecx, edi
call fcn.0040b6a0
test al, al
jne 0x446754
mov eax, dword [esi*4 + 0x474ee8]
mov ecx, dword [eax + 8]
mov dword [ecx], 0xffffffff
lea eax, [esi*4 + 0x4b8fe0]
xor edx, edx
push eax
mov ecx, edi
push 0
inc bl
call fcn.0040b6f0
cmp bl, 0xf
jl 0x44665c
pop edi
pop esi
pop ebx
add esp, 4
ret
mov byte [0x474d88], bl
pop edi
pop esi
pop ebx
add esp, 4
ret