joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48624a
Capabilities:
Set registry value

Disassembly:
push 0xec
mov eax, 0x534c95
call fcn.00508cc4
mov esi, ecx
xor ebx, ebx
xor eax, eax
mov dword [ebp - 4], ebx
push 0xc6
mov word [ebp - 0xd8], ax
lea eax, [ebp - 0xd6]
push ebx
push eax
call fcn.00508650
add esp, 0xc
mov dword [ebp - 0xf8], ebx
lea ecx, [ebp - 0xf0]
push 0x56d7b8
call fcn.00450db2
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
push 0x64
cmovae eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0xd8]
push 0x64
push eax
call fcn.00504861
add esp, 0x10
lea ecx, [ebp - 0xf8]
cmp dword [ebp - 0xdc], 8
lea eax, [ebp - 0xf0]
cmovae eax, dword [ebp - 0xf0]
push ecx
lea ecx, [ebp - 0xf4]
push ecx
push ebx
push 0x20106
push ebx
push ebx
push ebx
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jne 0x486324
lea eax, [ebp - 0xd8]
push eax
call ebx
add eax, eax
push eax
lea eax, [ebp - 0xd8]
push eax
push 1
push 0
push esi
push dword [ebp - 0xf4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0xf4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0xdc], 8
lea ecx, [ebp - 0xf8]
push ecx
lea ecx, [ebp - 0xf4]
push ecx
lea eax, [ebp - 0xf0]
cmovae eax, dword [ebp - 0xf0]
xor ecx, ecx
push ecx
push 0x20206
push ecx
push ecx
push ecx
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x486391
lea eax, [ebp - 0xd8]
push eax
call ebx
add eax, eax
push eax
lea eax, [ebp - 0xd8]
push eax
push 1
push 0
push esi
push dword [ebp - 0xf4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0xf4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0
push 1
lea ecx, [ebp - 0xf0]
call fcn.004510e8
push 0
push 1
lea ecx, [ebp + 8]
call fcn.004510e8
call fcn.00508c73
ret
Function at 0x486b97
Capabilities:
Get common file path
Get explorer pid

Disassembly:
push 0xffffffffffffffff
push 0x534e6d
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x590700]
xor eax, esp
mov dword [esp + 0x218], eax
push ebx
push ebp
push esi
mov eax, dword [0x590700]
xor eax, esp
push eax
lea eax, [esp + 0x22c]
mov dword fs:[0], eax
mov esi, ecx
xor ebp, ebp
mov dword [esp + 0x1c], esi
mov dword [esp + 0x18], ebp
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], ebp
mov word [esi], ax
mov dword [esp + 0x234], ebp
mov dword [esp + 0x18], 1
call dword [sym.imp.USER32.dll_GetShellWindow]
lea ecx, [esp + 0x14]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push dword [esp + 0x14]
push ebp
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
test ebx, ebx
je 0x486c9f
lea eax, [esp + 0x10]
push eax
push 0xb
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x486c98
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
test eax, eax
je 0x486c8e
xor eax, eax
push 0x206
mov word [esp + 0x24], ax
lea eax, [esp + 0x26]
push ebp
push eax
call fcn.00508650
add esp, 0xc
lea eax, [esp + 0x20]
push eax
push ebp
push dword [esp + 0x18]
push 0x1c
push ebp
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea eax, [esp + 0x20]
push eax
call fcn.00450d8e
pop ecx
push eax
lea eax, [esp + 0x24]
mov ecx, esi
push eax
call fcn.00450d21
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
mov ecx, dword [esp + 0x22c]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x218]
xor ecx, esp
call fcn.00503ade
add esp, 0x228
ret
Function at 0x486cc8
Capabilities:
Query environment variable

Disassembly:
push 0x29c
mov eax, 0x534edd
call fcn.00508cc4
mov esi, ecx
xor eax, eax
xor edi, edi
push 0x206
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push edi
push eax
call fcn.00508650
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push 0x56d8a8
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x486ecc
push 0x56d8d4
mov edx, esi
lea ecx, [ebp - 0x278]
call fcn.00454123
pop ecx
lea eax, [ebp - 0x218]
mov dword [ebp - 4], edi
push eax
lea ecx, [ebp - 0x290]
call fcn.00450db2
xor ebx, ebx
lea ecx, [ebp - 0x230]
inc ebx
mov edx, eax
push 0x56d8d0
mov byte [ebp - 4], bl
call fcn.00465f56
pop ecx
push edi
push ebx
lea ecx, [ebp - 0x290]
mov byte [ebp - 4], 3
call fcn.004510e8
push dword [ebp - 0x220]
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
push edi
cmovae eax, dword [ebp - 0x230]
lea ecx, [ebp - 0x278]
push eax
call fcn.004616b8
cmp eax, 0xffffffff
jne 0x486e82
push 3
push edi
lea eax, [ebp - 0x2a8]
push eax
lea ecx, [ebp - 0x230]
call fcn.00453de3
push str.Program_Files_
mov edx, eax
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x260]
call fcn.00465f56
pop ecx
push edi
push ebx
lea ecx, [ebp - 0x2a8]
mov byte [ebp - 4], 6
call fcn.004510e8
push dword [ebp - 0x250]
cmp dword [ebp - 0x24c], 8
lea eax, [ebp - 0x260]
push edi
cmovae eax, dword [ebp - 0x260]
lea ecx, [ebp - 0x278]
push eax
call fcn.004616b8
cmp eax, 0xffffffff
jne 0x486e75
push 3
push edi
lea eax, [ebp - 0x290]
push eax
lea ecx, [ebp - 0x230]
call fcn.00453de3
push 0x56d8d8
mov edx, eax
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x248]
call fcn.00465f56
pop ecx
push edi
push ebx
lea ecx, [ebp - 0x290]
call fcn.004510e8
push dword [ebp - 0x238]
cmp dword [ebp - 0x234], 8
lea eax, [ebp - 0x248]
push edi
cmovae eax, dword [ebp - 0x248]
lea ecx, [ebp - 0x278]
push eax
call fcn.004616b8
lea ecx, [ebp - 0x248]
push edi
push ebx
cmp eax, 0xffffffff
je 0x486ea0
call fcn.004510e8
push edi
push ebx
lea ecx, [ebp - 0x260]
call fcn.004510e8
push edi
push ebx
lea ecx, [ebp - 0x230]
call fcn.004510e8
push edi
push ebx
lea ecx, [ebp - 0x278]
call fcn.004510e8
mov al, bl
jmp 0x486ece
call fcn.004510e8
push edi
push ebx
lea ecx, [ebp - 0x260]
call fcn.004510e8
push edi
push ebx
lea ecx, [ebp - 0x230]
call fcn.004510e8
push edi
push ebx
lea ecx, [ebp - 0x278]
call fcn.004510e8
xor al, al
call fcn.00508c73
ret
Function at 0x48a0bc
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x535628
mov eax, dword fs:[0]
push eax
sub esp, 0x448
mov eax, dword [0x590700]
xor eax, esp
mov dword [esp + 0x440], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x590700]
xor eax, esp
push eax
lea eax, [esp + 0x45c]
mov dword fs:[0], eax
mov ebx, edx
mov ebp, ecx
mov esi, dword [esp + 0x46c]
xor edi, edi
mov dword [esp + 0x464], edi
mov dword [esp + 0x20], ebp
mov dword [esp + 0x1c], edi
call fcn.00450742
push eax
mov ecx, ebp
call fcn.00450570
mov dword [esp + 0x464], edi
xor eax, eax
mov edi, 0x206
mov word [esp + 0x24c], ax
push edi
push eax
lea eax, [esp + 0x256]
mov dword [esp + 0x24], 1
push eax
call fcn.00508650
xor eax, eax
push edi
push eax
mov word [esp + 0x58], ax
lea eax, [esp + 0x5a]
push eax
call fcn.00508650
add esp, 0x18
lea edi, [esp + 0x24]
xor eax, eax
push 8
pop ecx
rep stosd dword es:[edi], eax
xor ecx, ecx
lea eax, [esp + 0x18]
push eax
push ecx
push ecx
push 0x11
push ebx
mov dword [esp + 0x2c], ecx
call dword [sym.imp.SHELL32.dll_SHGetFolderLocation]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x28], eax
lea eax, [esp + 0x24c]
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x24]
push eax
mov dword [esp + 0x38], 0x51
mov dword [esp + 0x34], esi
mov dword [esp + 0x28], ebx
call dword [sym.imp.SHELL32.dll_SHBrowseForFolderW]
test eax, eax
je 0x48a1d9
lea ecx, [esp + 0x44]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x48a1d9
lea eax, [esp + 0x44]
push eax
push 0x56ed40
push ebp
call fcn.0047d9a1
add esp, 0xc
mov eax, ebp
mov ecx, dword [esp + 0x45c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x440]
xor ecx, esp
call fcn.00503ade
add esp, 0x454
ret
Function at 0x48ab8b
Capabilities:
Decode data using base64 via dword translation table

Disassembly:
push 0xffffffffffffffff
push 0x535786
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov eax, dword [0x590700]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov esi, edx
mov edi, ecx
mov dword [esp + 0x20], edi
xor ebx, ebx
mov dword [esp + 0x18], ebx
mov ebp, dword [esi + 0x10]
mov dword [edi + 0x14], 0xf
mov dword [edi + 0x10], ebx
mov byte [edi], bl
mov dword [esp + 0x2c], ebx
push ebp
mov dword [esp + 0x1c], 1
call fcn.00454287
test ebp, ebp
je 0x48acd9
cmp dword [esi + 0x14], 0x10
jb 0x48abf3
mov eax, dword [esi]
jmp 0x48abf5
mov eax, esi
cmp dword [esi + 0x14], 0x10
movzx eax, byte [eax + ebx]
mov cl, byte [eax*4 + 0x592b50]
jb 0x48ac0a
mov eax, dword [esi]
jmp 0x48ac0c
mov eax, esi
movzx eax, byte [eax + ebx + 1]
shl cl, 2
mov al, byte [eax*4 + 0x592b50]
mov byte [esp + 0x17], al
sar al, 4
and al, 3
or al, cl
mov ecx, edi
mov byte [esp + 0x1c], al
push dword [esp + 0x1c]
mov byte [esp + 0x1a], al
push 1
call fcn.0045a764
add ebx, 2
cmp ebx, ebp
jae 0x48ac8e
cmp dword [esi + 0x14], 0x10
jb 0x48ac4c
mov eax, dword [esi]
jmp 0x48ac4e
mov eax, esi
cmp byte [eax + ebx], 0x3d
je 0x48acd9
cmp dword [esi + 0x14], 0x10
jb 0x48ac62
mov eax, dword [esi]
jmp 0x48ac64
mov eax, esi
movzx eax, byte [eax + ebx]
mov cl, byte [esp + 0x17]
shl cl, 4
mov al, byte [eax*4 + 0x592b50]
mov byte [esp + 0x16], al
sar al, 2
and al, 0xf
or al, cl
mov ecx, edi
movzx eax, al
push eax
push 1
call fcn.0045a764
inc ebx
cmp ebx, ebp
jae 0x48acd0
cmp dword [esi + 0x14], 0x10
jb 0x48ac9d
mov eax, dword [esi]
jmp 0x48ac9f
mov eax, esi
cmp byte [eax + ebx], 0x3d
je 0x48acd9
cmp dword [esi + 0x14], 0x10
jb 0x48acaf
mov eax, dword [esi]
jmp 0x48acb1
mov eax, esi
movzx eax, byte [eax + ebx]
mov cl, byte [esp + 0x16]
shl cl, 6
or cl, byte [eax*4 + 0x592b50]
movzx eax, cl
mov ecx, edi
push eax
push 1
call fcn.0045a764
inc ebx
cmp ebx, ebp
jb 0x48abe9
mov eax, edi
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
Function at 0x48b1b2
Capabilities:
Encode data using xor
Hash data using murmur3

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push edi
test ebx, ebx
je 0x48b25c
mov edi, dword [esp + 0xc]
mov eax, dword [edi + 4]
sub eax, dword [edi]
cmp eax, 0x40
jne 0x48b25c
push ebp
push esi
push ecx
mov ecx, ebx
call fcn.0048b4bb
xor esi, esi
mov ecx, dword [edi]
movzx edx, byte [esi + ecx]
movzx eax, byte [esi + ecx + 1]
shl edx, 8
or edx, eax
movzx eax, byte [esi + ecx + 2]
shl edx, 8
or edx, eax
movzx eax, byte [esi + ecx + 3]
shl edx, 8
or edx, eax
mov eax, dword [ebx]
mov dword [esi + eax], edx
add esi, 4
cmp esi, 0x40
jl 0x48b1de
push 4
pop ebp
mov edi, dword [ebx]
mov ecx, dword [edi + ebp]
mov esi, ecx
mov edx, dword [edi + ebp + 0x34]
mov eax, ecx
rol esi, 0xe
ror eax, 7
xor esi, eax
shr ecx, 3
xor esi, ecx
mov eax, edx
mov ecx, edx
rol eax, 0xd
rol ecx, 0xf
xor ecx, eax
shr edx, 0xa
xor ecx, edx
add esi, ecx
add esi, dword [edi + ebp - 4]
add esi, dword [edi + ebp + 0x20]
mov dword [edi + ebp + 0x3c], esi
add ebp, 4
cmp ebp, 0xc4
jl 0x48b212
pop esi
mov al, 1
pop ebp
jmp 0x48b25e
xor al, al
pop edi
pop ebx
ret 8

Function at 0x48b263
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 8]
sub esp, 0x10
push ebx
test ecx, ecx
je 0x48b386
mov eax, dword [ecx + 4]
sub eax, dword [ecx]
and eax, 0xfffffffc
cmp eax, 0x20
jne 0x48b386
mov ebx, dword [esp + 0x18]
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
and eax, 0xfffffffc
cmp eax, 0x100
jne 0x48b386
push ebp
push esi
push edi
push ecx
lea ecx, [esp + 0x18]
call fcn.0048b474
and dword [esp + 0x10], 0
mov edi, dword [esp + 0x14]
mov edx, dword [edi + 0x10]
mov ebp, edx
mov esi, dword [edi + 0x18]
mov eax, edx
rol eax, 7
mov ecx, edx
ror ebp, 0xb
not ecx
xor ebp, eax
and ecx, esi
mov eax, edx
ror eax, 6
xor ebp, eax
mov eax, dword [edi + 0x14]
and eax, edx
xor ecx, eax
mov eax, dword [0x597c40]
add ebp, ecx
mov ecx, dword [esp + 0x10]
add ebp, dword [ecx + eax]
mov eax, dword [ebx]
add ebp, dword [ecx + eax]
mov ecx, dword [esp + 0x14]
mov ebx, dword [ecx]
add ebp, dword [ecx + 0x1c]
mov edx, dword [ecx + 8]
mov edi, dword [ecx + 4]
mov dword [ecx + 0x1c], esi
mov eax, dword [ecx + 0x14]
mov dword [ecx + 0x18], eax
mov eax, dword [ecx + 0x10]
mov dword [ecx + 0x14], eax
mov eax, dword [ecx + 0xc]
add eax, ebp
mov dword [ecx + 0x10], eax
mov eax, dword [ecx + 8]
mov dword [ecx + 0xc], eax
mov eax, dword [ecx + 4]
mov dword [ecx + 8], eax
mov eax, dword [ecx]
mov dword [ecx + 4], eax
mov ecx, ebx
ror ecx, 0xd
mov eax, ebx
rol eax, 0xa
xor ecx, eax
mov eax, ebx
ror eax, 2
xor ecx, eax
mov eax, edi
xor eax, edx
and edi, edx
and eax, ebx
add ecx, ebp
mov ebx, dword [esp + 0x24]
xor eax, edi
mov edi, dword [esp + 0x14]
add eax, ecx
mov dword [edi], eax
mov eax, dword [esp + 0x10]
add eax, 4
mov dword [esp + 0x10], eax
cmp eax, 0x100
jl 0x48b2b1
mov esi, dword [esp + 0x28]
xor edx, edx
mov ecx, dword [esi]
mov eax, dword [edx + edi]
add dword [edx + ecx], eax
add edx, 4
cmp edx, 0x20
jl 0x48b368
push edi
call fcn.004b5cd0
pop ecx
pop edi
pop esi
mov al, 1
pop ebp
jmp 0x48b388
xor al, al
pop ebx
add esp, 0x10
ret 8
Function at 0x48bb7b
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x198
mov eax, dword [0x590700]
xor eax, esp
mov dword [esp + 0x194], eax
lea eax, [esp]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x48bbc0
mov eax, dword [esp]
cmp al, 2
jne 0x48bbba
shr eax, 8
cmp al, 2
jne 0x48bbba
dec al
jmp 0x48bbc2
call dword [sym.imp.WS2_32.dll_WSACleanup]
xor al, al
mov ecx, dword [esp + 0x194]
xor ecx, esp
call fcn.00503ade
mov esp, ebp
pop ebp
ret
Function at 0x48bf3f
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
sub esp, 0x11c
mov eax, dword [0x590700]
xor eax, esp
mov dword [esp + 0x114], eax
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x130]
mov esi, ecx
test edi, edi
je 0x48bf99
cmp dword [esp + 0x134], 0
jl 0x48bf99
cmp byte [esi + 0xc], 0
jne 0x48bfb7
cmp dword [0x59735c], 0
je 0x48bf99
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push str._ERROR___d___socket__receive_failed__no_connected.
push 1
push dword [0x59735c]
call fcn.00481614
add esp, 0x10
or eax, 0xffffffff
mov ecx, dword [esp + 0x124]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00503ade
add esp, 0x11c
ret 8
mov eax, dword [esi + 4]
xor ecx, ecx
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x10]
push eax
push ecx
push ecx
lea eax, [esp + 0x24]
mov dword [esp + 0x1c], 0x1e
push eax
push ecx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], 1
call dword [sym.imp.WS2_32.dll_select]
mov ebx, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
or ebp, 0xffffffff
cmp ebx, ebp
jne 0x48c023
cmp dword [0x59735c], 0
je 0x48c01c
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push str._ERROR___d___socket__receive_failed__select_err__d_.
push 1
push dword [0x59735c]
call fcn.00481614
add esp, 0x14
mov eax, ebp
jmp 0x48bf9c
test ebx, ebx
jne 0x48c040
cmp dword [0x59735c], ebx
je 0x48c01c
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push str._WARN___d___socket__receive_failed__select_ret_0___err__d_.
push 2
jmp 0x48c00e
push 0
push dword [esp + 0x138]
push edi
push dword [esi + 4]
call dword [sym.imp.WS2_32.dll_recv]
mov edi, eax
test edi, edi
jne 0x48c08b
cmp dword [0x59735c], eax
je 0x48c07d
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push str._WARN___d___socket__receive_failed__size_0_.
push 2
push dword [0x59735c]
call fcn.00481614
add esp, 0x10
mov ecx, esi
call fcn.0048bf1f
mov eax, edi
jmp 0x48bf9c
cmp edi, ebp
jne 0x48c084
cmp dword [0x59735c], 0
je 0x48c01c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push str._ERROR___d___socket__receive_failed__err__d_
jmp 0x48c00c
Function at 0x48c119
Capabilities:
Get socket status
Send data
Send data on socket

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x590700]
xor eax, ebp
mov dword [ebp + 0x8c], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 0x98]
mov esi, ecx
test edi, edi
je 0x48c1ae
xor eax, eax
inc eax
cmp dword [ebp + 0x9c], eax
jl 0x48c1ae
cmp byte [esi + 0xc], 0
je 0x48c1ae
mov dword [ebp - 0x78], eax
xor ebx, ebx
mov eax, dword [esi + 4]
push 0xfc
mov dword [ebp - 0x74], eax
lea eax, [ebp - 0x70]
push ebx
push eax
mov dword [ebp - 0x80], 0x1e
mov dword [ebp - 0x7c], ebx
call fcn.00508650
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
push ebx
lea eax, [ebp - 0x78]
push eax
push ebx
push ebx
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
je 0x48c1ae
test eax, eax
je 0x48c1ae
push ebx
push dword [ebp + 0x9c]
push edi
push dword [esi + 4]
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
setne al
jmp 0x48c1b0
xor al, al
mov ecx, dword [ebp + 0x8c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00503ade
lea esp, [ebp + 0x90]
pop ebp
ret 8

Function at 0x48c1ca
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x590700]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor edi, edi
cmp dword [ebp + 8], edi
je 0x48c201
mov ecx, dword [ebp + 8]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x48c1e7
sub ecx, edx
sar ecx, 1
lea esi, [ecx + 1]
cmp esi, 0x3fffffff
jle 0x48c205
mov eax, edi
jmp 0x48c21b
add esi, esi
mov eax, esi
call fcn.00509160
mov edx, dword [ebp + 8]
mov ecx, esp
push 3
push esi
call fcn.0048ba9a
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x48c231
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
test eax, eax
je 0x48c231
mov edi, dword [eax]
mov eax, edi
lea esp, [ebp - 0xc]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00503ade
mov esp, ebp
pop ebp
ret 4
Function at 0x48d02a
Capabilities:
Terminate thread

Disassembly:
push ebx
xor ebx, ebx
push esi
mov esi, ecx
inc ebx
test esi, esi
je 0x48d054
cmp esi, 0xffffffff
je 0x48d054
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x48d054
push 0
push esi
xor bl, bl
call dword [sym.imp.KERNEL32.dll_TerminateThread]
pop esi
mov al, bl
pop ebx
ret
Function at 0x48e352
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov esi, ecx
test eax, eax
je 0x48e3b8
xor ecx, ecx
cmp dword [esi + 0x24], ecx
jne 0x48e3b8
mov dword [esi + 0x24], eax
lea eax, [ebp + 8]
push eax
push ecx
push esi
push 0x48e2f2
push 0x500000
push ecx
mov dword [ebp + 8], ecx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 4], eax
test eax, eax
je 0x48e393
cmp eax, 0xffffffff
je 0x48e393
mov al, 1
jmp 0x48e3ba
cmp dword [0x59735c], 0
je 0x48e3b8
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push 0x571148
push 1
push dword [0x59735c]
call fcn.00481614
add esp, 0x10
xor al, al
pop esi
pop ebp
ret 4
Function at 0x48fdf5
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x590700]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor edi, edi
test ebx, ebx
je 0x48fe30
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x48fe16
sub ecx, edx
sar ecx, 1
lea esi, [ecx + 1]
cmp esi, 0x3fffffff
jle 0x48fe34
mov eax, edi
jmp 0x48fe49
add esi, esi
mov eax, esi
call fcn.00509160
mov ecx, esp
mov edx, ebx
push 3
push esi
call fcn.0048ba9a
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov esi, dword [ebp + 0xc]
mov ebx, eax
test ebx, ebx
je 0x48fe96
mov ecx, esi
call fcn.0049234d
mov ebx, dword [ebx + 0xc]
mov eax, dword [ebx]
test eax, eax
je 0x48fe96
mov dword [ebp - 8], edi
mov eax, dword [eax]
mov ecx, esi
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0049259d
push eax
add eax, 0x10
push eax
push ecx
lea eax, [ebp - 0x14]
mov ecx, esi
push eax
call fcn.004925c6
lea ebx, [ebx + 4]
mov eax, dword [ebx]
test eax, eax
jne 0x48fe6c
xor eax, eax
cmp dword [esi + 4], edi
setne al
lea esp, [ebp - 0x20]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00503ade
mov esp, ebp
pop ebp
ret 8
Function at 0x490f3f
Capabilities:
Get file size
Write file on windows

Disassembly:
sub esp, 0x2c
push ebx
push ebp
push esi
push edi
mov edi, ecx
xor ebx, ebx
mov eax, dword [edi + 0x54]
test eax, eax
je 0x491041
cmp dword [edi + 0x60], ebx
je 0x491041
cmp byte [eax + 0x6c], bl
je 0x491041
lea ebp, [edi + 0x5c]
cmp dword [ebp], ebx
je 0x491041
lea eax, [esp + 0x14]
push eax
call fcn.00490a6d
push ebx
push 0x80
push 3
push ebx
push 3
push 0xc0000000
push dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x490faf
mov ecx, dword [esp + 0x14]
lea ecx, [ecx - 0x10]
call fcn.00450cc2
jmp 0x491041
lea eax, [esp + 0x20]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x49102a
push 2
lea eax, [esp + 0x2c]
push eax
push 0xffffffffffffffff
push 0xfffffffffffffffc
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x49102a
push ebx
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], ebx
push eax
push 4
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call ebp
test eax, eax
je 0x49102a
imul eax, dword [edi + 0x50], 0x18
push 0xfffffffffffffffc
pop ecx
push 2
sub ecx, eax
mov eax, ecx
lea ecx, [esp + 0x34]
push ecx
cdq
push edx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x49102a
push ebx
lea eax, [esp + 0x20]
mov dword [esp + 0x20], ebx
push eax
imul eax, dword [edi + 0x50], 0x18
push eax
push dword [edi + 0x60]
push esi
call ebp
test eax, eax
je 0x49102a
mov bl, 1
mov ecx, dword [esp + 0x14]
lea ecx, [ecx - 0x10]
call fcn.00450cc2
test esi, esi
je 0x491041
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
add esp, 0x2c
ret
Function at 0x492eb4
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x536236
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [0x590700]
xor eax, esp
mov dword [esp + 0x78], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x590700]
xor eax, esp
push eax
lea eax, [esp + 0x94]
mov dword fs:[0], eax
mov ebp, ecx
mov esi, dword [esp + 0xa4]
lea edi, [ebp + 8]
xor ebx, ebx
mov dword [esp + 0x28], edi
push edi
mov byte [esp + 0x1c], bl
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 7
mov dword [esp + 0xa0], ebx
xor eax, eax
pop ecx
mov dword [esp + 0x70], ecx
mov dword [esp + 0x6c], ebx
mov word [esp + 0x5c], ax
mov dword [esp + 0x40], ecx
mov dword [esp + 0x3c], ebx
mov word [esp + 0x2c], ax
mov dword [esp + 0x58], ecx
mov dword [esp + 0x54], ebx
mov word [esp + 0x44], ax
push esi
lea ecx, [esp + 0x78]
mov byte [esp + 0xa0], 3
call fcn.00450db2
lea eax, [esp + 0x44]
mov byte [esp + 0x9c], 4
push eax
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x64]
push eax
lea eax, [esp + 0x80]
push eax
call fcn.00492d54
mov bl, al
mov byte [esp + 0x9c], 3
xor eax, eax
lea ecx, [esp + 0x74]
push 0
inc eax
push eax
call fcn.004510e8
test bl, bl
je 0x492fe9
lea eax, [esp + 0x2c]
mov ecx, ebp
push eax
lea eax, [esp + 0x24]
push eax
call fcn.0049518d
mov eax, dword [esp + 0x20]
xor ebx, ebx
mov esi, dword [esp + 0x24]
mov dword [esp + 0x1c], eax
cmp eax, esi
je 0x492fe9
lea ecx, [esp + 0x1c]
inc ebx
call fcn.0044dddf
cmp dword [esp + 0x1c], esi
jne 0x492fb2
test ebx, ebx
je 0x492fe9
lea eax, [esp + 0x2c]
mov ecx, ebp
push eax
call fcn.004950b6
mov ecx, dword [esp + 0x18]
push 1
movzx ecx, cl
cmp dword [eax + 4], 0
pop esi
cmovne ecx, esi
mov dword [esp + 0x18], ecx
jmp 0x492fec
xor esi, esi
inc esi
push 0
push esi
lea ecx, [esp + 0x4c]
call fcn.004510e8
push 0
push esi
lea ecx, [esp + 0x34]
call fcn.004510e8
push 0
push esi
lea ecx, [esp + 0x64]
call fcn.004510e8
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, byte [esp + 0x18]
mov ecx, dword [esp + 0x94]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.00503ade
add esp, 0x8c
ret 4