joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5e1c35
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [ecx + 0x30]
cmp eax, 1
je fcn.005dfee8
test eax, eax
jne 0x5e1c46
inc eax
push 0
push 3
push eax
mov dword [ecx + 0x30], eax
call fcn.005e1c6b
ret 4

Function at 0x5e3c9f
Capabilities:
Get disk information via ioctl

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor ebx, ebx
push edi
push ebx
push ebx
or dword [esi], 0xffffffff
push 3
push ebx
push 3
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x5e3ccc
xor eax, eax
jmp 0x5e3d00
push ebx
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], ebx
push eax
push 0xc
lea eax, [ebp - 0xc]
push eax
push ebx
push ebx
push 0x2d1080
push edi
call dword [sym.imp.KERNEL32.DLL_DeviceIoControl]
test eax, eax
je 0x5e3cf1
mov eax, dword [ebp - 8]
mov dword [esi], eax
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
xor eax, eax
cmp dword [esi], 0xffffffff
setne al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x5e5c40
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
mov esi, ecx
mov eax, dword [esi]
call dword [eax + 8]
push dword [esp + 0x10]
push dword [esp + 0x10]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.DLL_FindResourceW]
mov ebx, eax
test ebx, ebx
jne 0x5e5c68
xor al, al
jmp 0x5e5d45
push edi
push ebx
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
mov edi, eax
test edi, edi
je 0x5e5c92
push ebx
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.DLL_LoadResource]
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x5e5c99
xor al, al
jmp 0x5e5d44
push ebp
push edi
push 2
call dword [sym.imp.KERNEL32.DLL_GlobalAlloc]
mov dword [esi + 0x10], eax
test eax, eax
je 0x5e5d41
push eax
call dword [sym.imp.KERNEL32.DLL_GlobalLock]
xor ebp, ebp
test eax, eax
je 0x5e5d35
push edi
push ebx
push eax
call fcn.0064fe80
add esp, 0xc
mov dword [esp + 0x1c], ebp
lea eax, [esp + 0x1c]
push eax
push ebp
push dword [esi + 0x10]
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x5e5d2c
push ebp
push dword [esp + 0x20]
call fcn.005e5b51
mov dword [esi + 4], eax
mov eax, dword [esp + 0x1c]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x5e5d2c
mov eax, dword [ecx + 8]
mov dword [ecx + 8], ebp
mov ecx, dword [esi + 4]
test eax, eax
jne 0x5e5d1f
call fcn.005b29e6
mov ecx, dword [esi + 4]
mov dword [esi + 8], eax
call fcn.005b1cde
mov dword [esi + 0xc], eax
mov al, 1
jmp 0x5e5d43
test ecx, ecx
je 0x5e5d29
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [esi + 4], ebp
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.DLL_GlobalUnlock]
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.DLL_GlobalFree]
mov dword [esi + 0x10], ebp
xor al, al
pop ebp
pop edi
pop esi
pop ebx
ret 0xc
Function at 0x5ee994
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x25c
push esi
push 0
push 2
mov dword [esp + 0x3c], 0x22c
call sub.KERNEL32.DLL_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x5eea9e
lea eax, [esp + 0x34]
push eax
push esi
call sub.KERNEL32.DLL_Process32FirstW
test eax, eax
jne 0x5ee9d2
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
jmp 0x5eea9e
push ebx
mov ebx, dword [esp + 0x26c]
push ebp
push edi
mov edi, dword [sym.imp.KERNEL32.DLL_CloseHandle]
xor ebp, ebp
lea eax, [esp + 0x64]
push eax
call fcn.005ee95e
test eax, eax
jne 0x5eea71
push dword [esp + 0x48]
push eax
push 0x410
call dword [sym.imp.KERNEL32.DLL_OpenProcess]
mov dword [esp + 0x14], eax
cmp eax, 0xffffffff
jne 0x5eea10
push eax
call edi
jmp 0x5eea71
push 0x104
lea eax, [esp + 0x68]
push eax
imul eax, ebp, 0x20c
add eax, ebx
push eax
call fcn.00427959
lea eax, [ebp + 1]
mov ebp, dword [esp + 0x14]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x18]
push 0x28
push eax
push ebp
call sub.PSAPI.DLL_GetProcessMemoryInfo
test eax, eax
je 0x5eea59
imul ecx, dword [esp + 0x10], 0x20c
mov eax, dword [esp + 0x24]
mov dword [ecx + ebx + 0x208], eax
jmp 0x5eea69
imul eax, dword [esp + 0x10], 0x20c
and dword [eax + ebx + 0x208], 0
push ebp
call edi
mov ebp, dword [esp + 0x10]
inc ebp
lea eax, [ebp + 1]
imul eax, eax, 0x20c
add eax, ebx
cmp eax, dword [esp + 0x270]
jae 0x5eea98
lea eax, [esp + 0x40]
push eax
push esi
call sub.KERNEL32.DLL_Process32NextW
test eax, eax
jne 0x5ee9e4
push esi
call edi
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x25c
ret 8
Function at 0x5f1590
Capabilities:
Get number of processors

Disassembly:
mov eax, 0x6aa5a8
call fcn.006375a8
push ecx
push esi
push 0x64
call fcn.00637305
pop ecx
mov dword [ebp - 0x10], eax
xor esi, esi
mov dword [ebp - 4], esi
test eax, eax
je 0x5f15bf
push dword [ebp + 0xc]
mov ecx, eax
push dword [ebp + 8]
call fcn.005f0f77
mov esi, eax
mov eax, dword [esi + 0x30]
mov ecx, esi
or dword [ebp - 4], 0xffffffff
push dword [eax + 4]
push 0xf
call fcn.0058a522
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
Function at 0x5fc5fa
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ecx
push esi
push edi
push dword [esp + 0x14]
mov esi, ecx
mov byte [esp + 0xf], 0
push dword [esp + 0x14]
push dword [esi + 0x24]
call dword [sym.imp.KERNEL32.DLL_FindResourceW]
mov edi, eax
test edi, edi
jne 0x5fc625
call dword [sym.imp.KERNEL32.DLL_GetLastError]
xor al, al
jmp 0x5fc699
push ebx
push edi
push dword [esi + 0x24]
call dword [sym.imp.KERNEL32.DLL_LoadResource]
mov ebx, eax
test ebx, ebx
jne 0x5fc63a
xor al, al
jmp 0x5fc698
push ebp
push ebx
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov ebp, eax
test ebp, ebp
je 0x5fc68c
cmp dword [esp + 0x20], 0
push edi
push dword [esi + 0x24]
jne 0x5fc661
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
mov ecx, dword [esp + 0x24]
mov dword [ecx], eax
jmp 0x5fc687
mov eax, dword [esp + 0x2c]
mov eax, dword [eax]
mov dword [esp + 0x2c], eax
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
mov ecx, dword [esp + 0x24]
cmp ecx, eax
jl 0x5fc68c
push ecx
push ebp
push dword [esp + 0x28]
call fcn.0064fe80
add esp, 0xc
mov byte [esp + 0x13], 1
push ebx
call dword [sym.imp.KERNEL32.DLL_FreeResource]
mov al, byte [esp + 0x13]
pop ebp
pop ebx
pop edi
pop esi
pop ecx
ret 0x10

Function at 0x5fca24
Capabilities:
Hide graphical window

Disassembly:
push 0x6b0
push dword [ecx + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
ret

Function at 0x5fcabd
Capabilities:
Create process on windows

Disassembly:
mov edx, dword [esp + 4]
push esi
mov esi, ecx
mov eax, dword [edx + 8]
cmp eax, 0x6b0
je 0x5fcb33
cmp eax, 0x6b1
je 0x5fcaea
cmp eax, 0x6b3
je 0x5fcaea
mov ecx, 0x748
cmp eax, ecx
je 0x5fcb0e
jbe 0x5fcb56
cmp eax, 0x74b
ja 0x5fcb56
mov ecx, dword [edx + 0xc]
test ecx, ecx
je 0x5fcb56
cmp dword [ecx + 8], 0x701
jne 0x5fcb56
mov eax, dword [ecx + 0x14]
sub eax, dword [ecx + 0xc]
mov dword [esi + 0x58], eax
mov eax, dword [ecx + 0x18]
sub eax, dword [ecx + 0x10]
mov dword [esi + 0x5c], eax
jmp 0x5fcb56
mov eax, dword [edx + 0xc]
test eax, eax
je 0x5fcb56
cmp dword [eax + 8], 0xfffffffe
jne 0x5fcb56
push 5
xor ecx, ecx
add eax, 0x7c
push ecx
push ecx
push eax
push 0x6b7324
push ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
jmp 0x5fcb56
mov eax, dword [edx + 0xc]
test eax, eax
je 0x5fcb56
cmp dword [eax + 8], 0xfffffffe
jne 0x5fcb56
xor ecx, ecx
mov dword [esi + 0x54], 2
push ecx
push ecx
push 0x10
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
pop esi
ret 4
Function at 0x5fee93
Capabilities:
Hide graphical window

Disassembly:
mov eax, 0x6ac6ce
call fcn.006375a8
sub esp, 0x48
push ebx
push esi
push edi
mov edi, ecx
mov esi, dword [ebp + 8]
xor ecx, ecx
mov dword [ebp - 4], ecx
test esi, esi
je 0x5fefd0
mov eax, 0x76c
cmp esi, 2
jbe 0x5feec7
cmp esi, eax
jne 0x5fefd0
xor ebx, ebx
inc ebx
cmp esi, eax
jne 0x5fef79
mov dword [ebp - 0x10], 0xf
mov dword [ebp - 0x14], ecx
mov byte [ebp - 0x24], cl
mov eax, dword [edi + 0x7c]
mov byte [ebp - 4], bl
sub eax, ecx
je 0x5fef00
sub eax, ebx
jne 0x5fef19
push str.lrecBadAd
call fcn.0040d6de
pop ecx
push eax
push str.lrecBadAd
jmp 0x5fef11
push str.ftBadAd
call fcn.0040d6de
pop ecx
push eax
push str.ftBadAd
lea ecx, [ebp - 0x24]
call fcn.0040d457
push str.BAdSendBtn
lea ecx, [ebp - 0x3c]
call fcn.0040d4cf
push 0
push ebx
lea eax, [ebp - 0x3c]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x54]
push eax
call fcn.0049372a
push 0
push ebx
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 4
call fcn.0040daff
xor eax, eax
push eax
push eax
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x54]
push eax
push 0x14
call fcn.00485ab0
push 0
push ebx
lea ecx, [ebp - 0x54]
call fcn.0040daff
push 0
push ebx
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 0
call fcn.0040daff
xor ecx, ecx
push ecx
push dword [edi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push ebx
push 0
push 0
call fcn.005ff39a
cmp dword [ebp + 0x24], 8
mov eax, dword [ebp + 0x10]
jae 0x5fef99
lea eax, [ebp + 0x10]
push eax
mov dword [ebp + 8], eax
call fcn.00426a30
pop ecx
push eax
push dword [ebp + 8]
lea ecx, [edi + 0x80]
call fcn.004372ba
lea eax, [edi + 0x80]
cmp dword [eax + 0x14], 8
jb 0x5fefc0
mov eax, dword [eax]
push eax
push esi
push dword [edi + 0x34]
push dword [edi + 0x78]
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x5fefdf
xor ebx, ebx
mov ecx, edi
inc ebx
push ebx
push dword [ebp + 0xc]
push esi
call fcn.005fe9bc
push 0
push ebx
lea ecx, [ebp + 0x10]
call fcn.004267c2
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x20
Function at 0x5ff5dc
Capabilities:
Hide graphical window

Disassembly:
mov eax, 0x6ac745
call fcn.006375a8
sub esp, 0x1c
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
call fcn.0058a3bf
mov eax, dword [ebp + 0x1c]
xor ebx, ebx
mov edi, dword [ebp + 0xc]
mov dword [esi + 0x38], eax
lea eax, [esi + 0x40]
mov dword [esi], 0x725bc8
mov byte [esi + 0x30], bl
mov dword [esi + 0x34], edi
mov dword [esi + 0x3c], ebx
mov dword [eax + 0x14], 7
mov dword [eax + 0x10], ebx
cmp dword [eax + 0x14], 8
mov dword [ebp - 4], ebx
jb 0x5ff628
mov eax, dword [eax]
xor ecx, ecx
mov word [eax], cx
push dword [ebp + 0x18]
lea ecx, [esi + 0x58]
mov byte [ebp - 4], 1
call fcn.0040d4cf
push dword [ebp + 0x10]
lea ecx, [esi + 0x70]
mov byte [ebp - 4], 2
call fcn.00427f43
lea eax, [esi + 0xbc]
mov dword [esi + 0xb8], ebx
mov dword [eax + 0x14], 7
mov dword [eax + 0x10], ebx
cmp dword [eax + 0x14], 8
jb 0x5ff669
mov eax, dword [eax]
xor ecx, ecx
mov word [eax], cx
mov eax, dword [ebp + 0x14]
mov ecx, esi
or dword [esi + 0x10], 0x84
push edi
push dword [ebp + 8]
mov byte [ebp - 4], 4
mov dword [esi + 0xd4], eax
mov byte [esi + 0xd8], bl
call fcn.0058a522
push 0x200
push ebx
push dword [esi + 4]
call fcn.0058a4dd
push dword [ebp + 0x18]
lea ecx, [ebp - 0x28]
call fcn.0040d4cf
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 5
push eax
call fcn.005a41c8
push 0
push 1
lea ecx, [ebp - 0x28]
mov bl, al
call fcn.0040daff
test bl, bl
je 0x5ff6d2
mov byte [esi + 0xd8], 1
cmp byte [ebp + 0x20], 0
je 0x5ff6e5
cmp byte [esi + 0xd8], 0
jne 0x5ff6e5
push 5
jmp 0x5ff6e7
push 0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x60bfcb
Capabilities:
Hide graphical window

Disassembly:
mov eax, 0x6ad393
call fcn.006375a8
sub esp, 0x5c
push ebx
push esi
push edi
push 0x48
call fcn.00637305
pop ecx
mov dword [ebp - 0x10], eax
and dword [ebp - 4], 0
mov esi, dword [ebp + 0x14]
test eax, eax
je 0x60c000
push esi
push dword [ebp + 8]
mov ecx, eax
call fcn.0060bf6f
mov edi, eax
jmp 0x60c002
xor edi, edi
or dword [ebp - 4], 0xffffffff
mov ecx, edi
neg esi
push 0
sbb esi, esi
and esi, 0x22
add esi, 0x160
push esi
call fcn.0058ae38
lea eax, [ebp - 0x20]
push eax
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebp - 0x14]
xor ebx, ebx
sub eax, dword [ebp - 0x1c]
inc ebx
push ebx
push eax
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp - 0x20]
push eax
mov eax, dword [ebp + 0x10]
add eax, 0xa
push eax
push dword [ebp + 0xc]
push dword [edi + 4]
call dword [sym.imp.USER32.dll_MoveWindow]
push 5
push dword [edi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
and dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0xf
mov byte [ebp - 0x38], 0
push str.action
lea ecx, [ebp - 0x50]
mov dword [ebp - 4], ebx
call fcn.0040d4cf
xor esi, esi
mov byte [ebp - 4], 2
push esi
push str.HotSpotShown
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x68]
push eax
call fcn.004684c0
push eax
lea ecx, [ebp - 0x38]
call fcn.0040d122
push esi
push ebx
lea ecx, [ebp - 0x68]
call fcn.0040daff
push esi
push ebx
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], bl
call fcn.0040daff
push str.ONBOARDING
lea ecx, [ebp - 0x50]
call fcn.0040d4cf
xor eax, eax
mov byte [ebp - 4], 3
push eax
push eax
push eax
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x38]
push eax
push 0x2f
call fcn.00485ab0
push esi
push ebx
lea ecx, [ebp - 0x50]
call fcn.0040daff
push esi
push ebx
lea ecx, [ebp - 0x38]
call fcn.0040daff
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x60d138
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
mov ecx, 0x7d9530
push dword [ebp + 8]
mov dword [0x7d952c], eax
call fcn.005ac07d
mov al, byte [ebp + 0x10]
mov byte [0x7d953c], al
lea eax, [ebp + 0xc]
push eax
xor eax, eax
push eax
push 0x7d952c
push 0x60d7ef
push eax
push eax
call dword [sym.imp.KERNEL32.DLL_CreateThread]
mov dword [0x7d9500], eax
pop ebp
ret 0xc

Function at 0x60e451
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
push 5
push dword [esi + 0x4c]
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [esi + 0x60]
sub eax, dword [esi + 0x58]
push 0x254
push eax
mov eax, dword [esi + 0x5c]
sub eax, dword [esi + 0x54]
push eax
push dword [esi + 0x58]
push dword [esi + 0x54]
push 0
push dword [esi + 0x4c]
call dword [sym.imp.USER32.dll_SetWindowPos]
push 1
push 0
push dword [esi + 0x4c]
call dword [sym.imp.USER32.dll_InvalidateRect]
pop esi
ret
Function at 0x61487d
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x6937b1
call fcn.006375a8
sub esp, 0x84
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x1c], 0
je 0x6149cb
lea edi, [esi + 0x24]
cmp dword [edi + 0x10], 0
je 0x6149cb
push ebx
lea ebx, [esi + 0xc]
push ebx
lea ecx, [ebp - 0x3c]
call fcn.0042615e
and dword [ebp - 4], 0
push 0x6b7668
call fcn.00426a30
pop ecx
push eax
push 0x6b7668
lea ecx, [ebp - 0x3c]
call fcn.0042689e
push 0xffffffffffffffff
push 0
push edi
lea ecx, [ebp - 0x3c]
call fcn.0042680e
and dword [ebp - 0x14], 0
xor eax, eax
mov dword [ebp - 0x10], 7
mov word [ebp - 0x24], ax
mov byte [ebp - 4], 1
cmp dword [esi + 0x4c], eax
je 0x61492e
push 0xffffffffffffffff
push eax
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x24]
call fcn.0042692e
mov edi, 0x6b69e0
push edi
call fcn.00426a30
pop ecx
push eax
push edi
lea ecx, [ebp - 0x24]
call fcn.0042689e
push 0xffffffffffffffff
push 0
lea eax, [esi + 0x3c]
push eax
lea ecx, [ebp - 0x24]
call fcn.0042680e
xor eax, eax
lea edi, [ebp - 0x4c]
stosd dword es:[edi], eax
push 0x44
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x90]
pop edi
push edi
push 0
push eax
call fcn.00651ed0
or dword [esi + 0x54], 0xffffffff
add esp, 0xc
cmp dword [ebx + 0x14], 8
mov dword [ebp - 0x90], edi
jb 0x61495e
mov ebx, dword [ebx]
cmp dword [ebp - 0x10], 8
mov ecx, dword [ebp - 0x24]
jae 0x61496a
lea ecx, [ebp - 0x24]
cmp dword [ebp - 0x28], 8
mov eax, dword [ebp - 0x3c]
jae 0x614976
lea eax, [ebp - 0x3c]
lea edx, [ebp - 0x4c]
push edx
lea edx, [ebp - 0x90]
push edx
push ebx
xor ebx, ebx
push ebx
push 0x4008
push ebx
push ebx
push ebx
push ecx
push eax
call dword [sym.imp.KERNEL32.DLL_CreateProcessW]
test eax, eax
je 0x6149ad
push dword [ebp - 0x48]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [ebp - 0x4c]
cmp eax, 0xffffffff
je 0x6149ad
mov dword [esi + 0x54], eax
mov esi, dword [esi + 0x54]
lea ecx, [ebp - 0x24]
push ebx
push 1
call fcn.004267c2
push ebx
push 1
lea ecx, [ebp - 0x3c]
call fcn.004267c2
mov eax, esi
pop ebx
jmp 0x6149ce
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x61591c
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb8
push esi
push edi
push 0
mov esi, ecx
lea ecx, [ebp - 0x28]
push 0
call fcn.004c870d
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov edi, dword [ebp + 8]
mov dword [edi], eax
cmp eax, 0xffffffff
jne 0x615953
push 0xfffffffffffffffe
pop eax
jmp 0x6159e8
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
push edi
call fcn.006158e5
test eax, eax
je 0x61597c
push 0xa
push 0x554
call fcn.00588778
push eax
mov ecx, esi
call fcn.00616183
or eax, 0xffffffff
jmp 0x6159e8
lea ecx, [ebp - 0x14]
call fcn.004c8773
push dword [ebp + 0x10]
lea eax, [ebp - 0x14]
mov ecx, esi
push dword [ebp + 0xc]
push eax
call fcn.00615b1a
test eax, eax
jne 0x6159e8
lea ecx, [ebp - 0x14]
call fcn.004663a7
test al, al
je 0x6159ae
push 0xa
push 0x56c
jmp 0x61596a
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0xb8]
push eax
lea ecx, [ebp - 0x14]
call fcn.0047752e
lea eax, [ebp - 0x14]
push eax
push 0x6c8024
lea eax, [ebp - 0x38]
push 0x10
push eax
call fcn.00462cfa
add esp, 0x10
lea eax, [ebp - 0x14]
mov ecx, esi
push dword [ebp + 0x14]
push eax
push dword [edi]
call fcn.006159f0
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10

Function at 0x6159f0
Capabilities:
Connect socket
Set socket configuration

Disassembly:
mov eax, 0x6adce0
call fcn.006375a8
sub esp, 0x8c
push ebx
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 1
push eax
push 0x8004667e
push dword [ebp + 8]
mov ebx, ecx
call dword [sym.imp.WS2_32.dll_ioctlsocket]
cmp eax, 0xffffffff
jne 0x615a28
or eax, eax
jmp 0x615b09
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x18]
push esi
push eax
lea eax, [ebp - 0x98]
push eax
call fcn.0047752e
mov byte [ebp - 0xd], 1
call fcn.00475cf1
push dword [ebp - 0x18]
and dword [ebp - 4], 0
lea eax, [ebp - 0x98]
push eax
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x615a9d
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp esi, 0x2733
je 0x615a95
cmp esi, 0x2734
je 0x615a95
push esi
push 0x48e
call fcn.00588778
push eax
mov ecx, ebx
call fcn.006160b0
mov dword [ebp - 4], 1
jmp 0x615b01
push dword [ebp + 0xc]
call fcn.00473dd9
mov dword [ebp - 4], 2
call fcn.00475d32
push dword [ebp + 0x10]
or dword [ebp - 4], 0xffffffff
mov ecx, ebx
push dword [ebp + 8]
call fcn.00615ef6
mov esi, eax
mov byte [ebp + 0x13], 1
call fcn.00475cf1
mov dword [ebp - 4], 3
test esi, esi
je 0x615af2
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push 0x564
call fcn.00588778
push eax
mov ecx, ebx
call fcn.006160b0
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_closesocket]
push dword [ebp + 0xc]
call fcn.00475931
mov dword [ebp - 4], 4
call fcn.00475d32
mov eax, esi
pop esi
mov ecx, dword [ebp - 0xc]
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x615be6
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 0x10]
mov ebx, ecx
and dword [ebp + 0x10], 0
push edi
mov dword [ebp - 8], esi
xor edi, edi
mov dword [ebp - 4], eax
jmp 0x615c47
push dword [ebp + 0x14]
mov ecx, ebx
push dword [ebp + 8]
call fcn.00615e72
test eax, eax
jne 0x615c4b
push eax
push eax
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp + 0xc]
push eax
push 1
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_WSARecv]
test eax, eax
jne 0x615c60
mov eax, dword [ebp + 0xc]
sub esi, eax
add dword [ebp - 4], eax
add edi, eax
mov dword [ebp - 8], esi
test esi, esi
je 0x615c5c
test eax, eax
je 0x615c5c
test esi, esi
jg 0x615c04
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
neg eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov eax, edi
jmp 0x615c53
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push 0x48f
call fcn.00588778
push eax
mov ecx, ebx
call fcn.006160b0
neg esi
mov eax, esi
jmp 0x615c53

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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 0x10]
mov ebx, ecx
push edi
mov dword [ebp - 8], esi
xor edi, edi
mov dword [ebp - 4], eax
jmp 0x615fd0
push dword [ebp + 0x14]
mov ecx, ebx
push dword [ebp + 8]
call fcn.00615ef6
test eax, eax
jne 0x615fd4
push eax
push eax
push eax
lea eax, [ebp + 0x10]
push eax
push 1
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_WSASend]
test eax, eax
jne 0x615fe9
mov eax, dword [ebp + 0x10]
sub esi, eax
add dword [ebp - 4], eax
add edi, eax
mov dword [ebp - 8], esi
test esi, esi
je 0x615fe5
test esi, esi
jg 0x615f94
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
neg eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov eax, edi
jmp 0x615fdc
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push 0x490
call fcn.00588778
push eax
mov ecx, ebx
call fcn.006160b0
neg esi
mov eax, esi
jmp 0x615fdc
Function at 0x616a8e
Capabilities:
Get common file path

Disassembly:
sub esp, 0x22c
cmp dword [0x7d986c], 0
mov dword [esp], 0x72743c
mov dword [esp + 4], 0x616609
mov dword [esp + 8], str.getnameinfo
mov dword [esp + 0xc], 0x6168b2
mov dword [esp + 0x10], 0x727454
mov dword [esp + 0x14], fcn.006165ce
jne 0x616be5
push 0x104
lea eax, [esp + 0x128]
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryA]
test eax, eax
je 0x616bdb
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x134]
mov ebx, 0x10c
push eax
lea eax, [esp + 0x2c]
push ebx
push eax
call fcn.00669a58
push str.ws2_32
lea eax, [esp + 0x38]
push ebx
push eax
call fcn.00669ab2
add esp, 0x18
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov ebx, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov esi, eax
mov ebp, dword [sym.imp.KERNEL32.DLL_FreeLibrary]
xor edi, edi
test esi, esi
je 0x616b4e
push 0x72743c
push esi
call ebx
test eax, eax
jne 0x616b4a
push esi
call ebp
mov esi, edi
test esi, esi
jne 0x616b9f
lea eax, [esp + 0x134]
mov esi, 0x10c
push eax
lea eax, [esp + 0x2c]
push esi
push eax
call fcn.00669a58
push str.wship6
lea eax, [esp + 0x38]
push esi
push eax
call fcn.00669ab2
add esp, 0x18
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x616bd7
push 0x72743c
push esi
call ebx
test eax, eax
jne 0x616b9b
push esi
call ebp
mov esi, edi
test esi, esi
je 0x616bd7
mov ebx, edi
push dword [esp + ebx*8 + 0x10]
push esi
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov dword [esp + ebx*8 + 0x14], eax
test eax, eax
je 0x616bbc
inc ebx
cmp ebx, 3
jl 0x616ba1
jmp 0x616bc1
push esi
call ebp
mov esi, edi
test esi, esi
je 0x616bd7
mov eax, dword [esp + edi + 0x14]
mov dword [edi + 0x798a7c], eax
add edi, 8
cmp edi, 0x18
jl 0x616bc5
pop edi
pop esi
pop ebp
pop ebx
mov dword [0x7d986c], 1
movzx eax, word [esp + 0x230]
mov eax, dword [eax*8 + 0x798a7c]
add esp, 0x22c
ret 4

Function at 0x616ddf
Capabilities:
Resolve dns

Disassembly:
push ebx
mov ebx, dword [esp + 0x18]
push ebp
mov ebp, dword [esp + 0x20]
push esi
push edi
push dword [esp + 0x14]
and dword [ebp], 0
mov byte [ebx], 0
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov esi, eax
test esi, esi
je 0x616e5b
cmp word [esi + 8], 2
jne 0x616e3d
push 4
pop eax
cmp word [esi + 0xa], ax
jne 0x616e3d
mov edi, dword [esi + 0xc]
jmp 0x616e37
push dword [eax]
push dword [esp + 0x24]
push dword [esp + 0x24]
push dword [esp + 0x24]
call fcn.00616d39
mov dword [ebp], eax
test eax, eax
je 0x616e56
lea ebp, [eax + 0x1c]
add edi, 4
mov eax, dword [edi]
test eax, eax
jne 0x616e17
push 0x400
push dword [esi]
push 0x401
push ebx
call fcn.00669bcc
add esp, 0x10
xor eax, eax
jmp 0x616e79
push 8
pop eax
jmp 0x616e79
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, 0x2af9
sub eax, ecx
je 0x616e77
sub eax, 1
je 0x616e87
sub eax, 1
je 0x616e80
sub eax, 1
mov eax, ecx
pop edi
pop esi
pop ebp
pop ebx
ret 0x18
mov eax, 0x2afb
jmp 0x616e79
mov eax, 0x2afa
jmp 0x616e79