joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4602b4
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x46045f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x460440
mov dl, 1
mov eax, dword [0x41a2e0]
call fcn.00403d0c
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404ba8
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x46042f
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.0044de5c
test al, al
je 0x460422
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x460470
lea eax, [ebp - 0x254]
call fcn.0040a12c
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x460422
xor eax, eax
push ebp
push 0x46041b
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x4604a8
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x460404
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404e18
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x460404
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404e18
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x460422
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x460325
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.0041efd4
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x460466
lea eax, [ebp - 0x260]
call fcn.00404ba8
ret

Function at 0x460df0
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x4b7bb8]
cmp byte [eax + 0xa5], 0
jne 0x460e61
cmp dword [0x4b7bd0], 0
jne 0x460e22
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x460dac
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x4b7bd0], eax
cmp dword [0x4b7bcc], 0
jne 0x460e3d
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x4b7bcc], eax
cmp dword [0x4b7bd4], 0
jne 0x460e61
push esp
push 0
push 0
push 0x460d50
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x4b7bd4], eax
pop edx
ret
Function at 0x4614f4
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x4b7bb8]
cmp dword [eax + 0x30], 0
je 0x46159e
cmp dword [ebx + 0x94], 0
jne 0x461598
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x461484
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x461598
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x46155e
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x461598
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.0041c65c
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x46156d
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x4620fc
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x462131
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00404c98
jmp 0x46213e
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404bfc
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x463268
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x4632a9
mov eax, esi
call fcn.00449438
test al, al
je 0x4632a9
mov eax, dword [ebx + 0x84]
call fcn.00449134
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4632a9
push 0
mov eax, dword [ebx + 0x84]
call fcn.00449134
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x467e3c
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa4
xor eax, eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x46801c
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x28]
mov edx, 0x24
call fcn.0046aa28
lea eax, [ebp - 0x28]
push eax
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [ebp - 0x14]
mov dword [0x4b452c], eax
mov eax, dword [ebp - 0xc]
mov dword [0x4b4530], eax
mov eax, dword [ebp - 0x24]
mov dword [0x4b4534], eax
mov eax, dword [0x4b6dbc]
cmp dword [eax], 2
sete byte [0x4b3e10]
push 0x468028
call sub.kernel32.dll_GetModuleHandleA_2
lea edx, [ebp - 4]
call fcn.0046a790
xor eax, eax
mov dword [ebp - 0x2c], eax
cmp byte [0x4b3e10], 0
jne 0x467ecb
lea edx, [ebp - 0x5c]
mov eax, dword [ebp - 4]
call fcn.0046a8d4
test al, al
je 0x467ecb
mov eax, dword [ebp - 0x4c]
mov dword [0x4b7c38], eax
jmp 0x467ed2
xor eax, eax
mov dword [0x4b7c38], eax
call fcn.00467b74
and eax, 0x7f
cmp eax, 0x12
ja case.0x467ee3.0
jmp dword [eax*4 + 0x467eea]
mov byte [0x4b3dfc], 1
jmp case.0x467ee3.0
mov byte [0x4b3e00], 1
jmp case.0x467ee3.0
mov byte [0x4b3e04], 1
jmp case.0x467ee3.0
mov byte [0x4b3e08], 1
jmp case.0x467ee3.0
mov byte [0x4b3e0c], 1
jmp case.0x467ee3.0
mov byte [0x4b3e14], 1
mov byte [0x4b3e18], 1
jmp case.0x467ee3.0
mov byte [0x4b3e14], 1
mov byte [0x4b3e1c], 1
jmp case.0x467ee3.0
mov byte [0x4b3e14], 1
mov byte [0x4b3e1c], 1
mov byte [0x4b3e20], 1
jmp case.0x467ee3.0
mov byte [0x4b3e24], 1
jmp case.0x467ee3.0
mov byte [0x4b3e28], 1
jmp case.0x467ee3.0
mov byte [0x4b3e2c], 1
jmp case.0x467ee3.0
mov byte [0x4b3e30], 1
jmp case.0x467ee3.0
mov byte [0x4b3e34], 1
jmp case.0x467ee3.0
mov byte [0x4b3e38], 1
jmp case.0x467ee3.0
mov byte [0x4b3e3c], 1
jmp case.0x467ee3.0
mov byte [0x4b3e40], 1
jmp case.0x467ee3.0
mov byte [0x4b3e44], 1
jmp case.0x467ee3.0
mov byte [0x4b3e48], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x468023
lea eax, [ebp - 4]
call fcn.00404ba8
ret

Function at 0x469b4c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x469bb0
push dword fs:[edx]
mov dword fs:[edx], esp
push 6
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.00404e18
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00409520
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x469bb7
lea eax, [ebp - 0xc]
call fcn.00404ba8
ret
Function at 0x46a8d4
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x46a98a
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
mov eax, esi
call fcn.00405068
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov edi, eax
test edi, edi
jbe 0x46a974
lea eax, [ebp - 0x10]
mov edx, edi
call fcn.004051f4
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x10]
push eax
push edi
mov eax, dword [ebp - 0xc]
push eax
mov eax, esi
call fcn.00405068
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x46a974
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x46a99c
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x46a974
cmp dword [ebp - 8], 0x34
jne 0x46a974
mov bl, 1
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 4]
mov esi, eax
mov edi, edx
mov ecx, 0xd
rep movsd dword es:[edi], dword [esi]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46a991
lea eax, [ebp - 0x10]
call fcn.00404ba8
ret

Function at 0x46aec4
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
call fcn.0046ae80
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x46af38
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov dword [0x4b9a98], eax
mov ebx, 0x46ae0c
lea eax, [ebp - 8]
push eax
push 0x40
push 4
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x46af38
xor eax, eax
push ebp
push 0x46af31
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov dword [eax], ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46af38
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
push 4
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_VirtualProtect
ret
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x46af40
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
call fcn.0046ae80
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x46afab
mov ebx, dword [0x4b9a98]
lea eax, [ebp - 8]
push eax
push 0x40
push 4
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x46afab
xor eax, eax
push ebp
push 0x46afa4
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov dword [eax], ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46afab
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
push 4
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_VirtualProtect
ret
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x46e7bc
Capabilities:
Create process on windows

Disassembly:
push ebx
mov ebx, eax
push 1
push 0
push 0
push ebx
push 0x46e7dc
push 0
call sub.shell32.dll_ShellExecuteA
cmp eax, 0x20
seta al
pop ebx
ret
Function at 0x47cb04
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x47cb32
mov eax, ebx
call fcn.0047d5b8
cmp dword [ebx + 0x40], 0
je 0x47cb2b
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x47cba3
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x47cb95
cmp dword [ebx + 8], 0
je 0x47cb54
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x47cb66
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x47cb95
cmp dword [ebx + 8], 0
je 0x47cb47
cmp eax, 3
je 0x47cb79
dec eax
jne 0x47cb47
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x47cb47
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x47cb47
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x47cbc1
cmp dword [ebx + 0x14], 0xcc
je 0x47cbc1
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.0047cbcc
pop ebx
ret

Function at 0x492770
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x1c]
test al, al
jne 0x492850
mov eax, dword [ebp - 4]
call fcn.0042df38
call fcn.00429a84
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x2c]
test eax, eax
jl 0x492850
inc eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x20]
test eax, eax
jl 0x492844
inc eax
mov dword [ebp - 0x1c], eax
xor esi, esi
push esi
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.gdi32.dll_GetPixel
mov edi, eax
mov eax, edi
call fcn.00407bd4
xor ebx, ebx
mov bl, al
imul ebx, dword [ebp - 8]
mov eax, edi
call fcn.00407bd8
and eax, 0xff
imul dword [ebp - 0xc]
add ebx, eax
mov eax, edi
call fcn.00407bdc
and eax, 0xff
imul dword [ebp + 8]
add ebx, eax
mov eax, ebx
mov edx, dword [ebp - 8]
add edx, dword [ebp - 0xc]
add edx, dword [ebp + 8]
mov ecx, edx
cdq
idiv ecx
mov edi, eax
mov ebx, edi
mov ecx, ebx
mov edx, ebx
mov eax, ebx
call fcn.00407bb8
push eax
push esi
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.gdi32.dll_SetPixel
inc esi
dec dword [ebp - 0x1c]
jne 0x4927cf
inc dword [ebp - 0x10]
dec dword [ebp - 0x18]
jne 0x4927bd
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x49285c
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x1c]
test al, al
jne 0x49293c
mov eax, dword [ebp - 4]
call fcn.0042df38
call fcn.00429a84
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x2c]
test eax, eax
jl 0x49293c
inc eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x20]
test eax, eax
jl 0x492930
inc eax
mov dword [ebp - 0x1c], eax
xor esi, esi
push esi
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.gdi32.dll_GetPixel
mov edi, eax
mov eax, edi
call fcn.00407bd4
xor ebx, ebx
mov bl, al
imul ebx, dword [ebp - 8]
mov eax, edi
call fcn.00407bd8
and eax, 0xff
imul dword [ebp - 0xc]
add ebx, eax
mov eax, edi
call fcn.00407bdc
and eax, 0xff
imul dword [ebp + 8]
add ebx, eax
mov eax, ebx
mov edx, dword [ebp - 8]
add edx, dword [ebp - 0xc]
add edx, dword [ebp + 8]
mov ecx, edx
cdq
idiv ecx
mov edi, eax
mov ebx, edi
mov ecx, ebx
mov edx, ebx
mov eax, ebx
call fcn.00407bb8
push eax
push esi
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.gdi32.dll_SetPixel
inc esi
dec dword [ebp - 0x1c]
jne 0x4928bb
inc dword [ebp - 0x10]
dec dword [ebp - 0x18]
jne 0x4928a9
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4a3cdc
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov ebx, eax
xor eax, eax
push ebp
push 0x4a3d89
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebx + 0x28], eax
xor eax, eax
mov dword [ebx + 0x2c], eax
xor eax, eax
mov dword [ebx + 0x30], eax
xor eax, eax
mov dword [ebx + 4], eax
mov dl, 1
mov eax, dword [0x41a5d0]
call fcn.00403d0c
mov esi, eax
mov dword [ebx + 0xc], esi
mov eax, dword [ebx + 8]
cdq
push edx
push eax
mov eax, esi
call fcn.0041f108
mov esi, dword [ebx + 0xc]
mov eax, esi
mov edx, dword [eax]
call dword [edx]
push edx
push eax
mov eax, esi
call fcn.0041f0a4
lea eax, [ebp - 4]
mov edx, 0x4a3da0
call fcn.00404c40
mov eax, dword [ebp - 4]
call fcn.00405068
mov edx, eax
mov ecx, 1
mov eax, dword [ebx + 0xc]
mov esi, dword [eax]
call dword [esi + 0x10]
xor eax, eax
mov dword [ebx + 0x10], eax
xor eax, eax
mov dword [ebx + 0x14], eax
xor eax, eax
mov dword [ebx + 0x18], eax
xor eax, eax
mov dword [ebx + 0x1c], eax
mov byte [ebx + 0x34], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a3d90
lea eax, [ebp - 4]
call fcn.00404ba8
ret
Function at 0x4a3e28
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
mov dword [ebp - 0x20], 0x20
lea eax, [ebp - 0x20]
push eax
call sub.kernel32.dll_GlobalMemoryStatus
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x28], eax
xor eax, eax
mov dword [ebp - 0x24], eax
fild qword [ebp - 0x28]
fmul qword [ebp + 8]
call fcn.00402ff8
push eax
push 0
push 0x400
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x30], eax
xor eax, eax
mov dword [ebp - 0x2c], eax
fild qword [ebp - 0x30]
fmul qword [ebp + 8]
call fcn.00402ff8
call fcn.00405a34
pop edx
xchg edx, eax
sub eax, edx
cmp eax, 0x10000
jge 0x4a3e87
mov eax, 0x10000
mov esp, ebp
pop ebp
ret 8

Function at 0x4a3e90
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.00404ba8
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
push eax
push 0
call sub.kernel32.dll_GetTempPathA
mov ebx, eax
mov eax, ebx
call fcn.0040e204
mov eax, ebx
call fcn.00408ddc
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x4a3f63
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
push eax
push ebx
call sub.kernel32.dll_GetTempPathA
call fcn.0040e204
mov eax, pe_nt_image_headers32
call fcn.00408ddc
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x4a3f46
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
push eax
push 0
push 0x4a3f90
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GetTempFileNameA
call fcn.0040e204
mov eax, dword [ebp - 0xc]
call fcn.00409a60
mov ecx, eax
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0xc]
call fcn.00404c98
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a3f4d
mov eax, dword [ebp - 8]
call fcn.00402b58
ret
Function at 0x4a5038
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4a5180
push dword fs:[eax]
mov dword fs:[eax], esp
mov ecx, 0x4a5198
mov dl, 4
mov eax, dword [ebp - 4]
call fcn.004a67f8
mov eax, dword [ebp - 4]
call fcn.004a61f4
xor edx, edx
push ebp
push 0x4a5163
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 4]
cmp byte [eax + 0x10098], 0
jne 0x4a5102
test si, si
jne 0x4a50a8
mov eax, dword [ebp - 8]
call fcn.00409a60
mov esi, eax
cmp esi, 0xffff
jbe 0x4a50a8
call fcn.00403c78
movzx ebx, si
push 0
push ebx
movzx eax, si
sub eax, ebx
mov edx, dword [ebp - 8]
lea eax, [edx + eax]
push eax
mov eax, dword [ebp - 4]
movzx eax, word [eax + 0x10110]
push eax
call sub.wsock32.dll_send
test eax, eax
je 0x4a5102
cmp eax, 0xffffffff
jle 0x4a50d7
sub ebx, eax
jmp 0x4a50e6
lea ecx, [ebp - 0xc]
mov dx, 0x2733
mov eax, dword [ebp - 4]
call fcn.004a672c
test ebx, ebx
je 0x4a5102
mov eax, dword [ebp - 4]
cmp byte [eax + 0x10098], 0
jne 0x4a5102
mov eax, dword [ebp - 4]
cmp byte [eax + 0x100bd], 0
je 0x4a50ab
mov eax, dword [ebp - 4]
cmp byte [eax + 0x10098], 0
je 0x4a514d
mov eax, dword [ebp - 4]
mov byte [eax + 0x10098], 0
mov ecx, 0x4a51b0
mov dl, 1
mov eax, dword [0x4a41f0]
call fcn.0040cb74
call fcn.0040451c
mov eax, dword [ebp - 4]
cmp word [eax + 0x1010a], 0
je 0x4a514d
mov ebx, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0x1010c]
call dword [ebx + 0x10108]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a516a
mov eax, dword [ebp - 4]
call fcn.004a6258
ret
Function at 0x4a562c
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
call fcn.00405058
xor eax, eax
push ebp
push 0x4a57fb
push dword fs:[eax]
mov dword fs:[eax], esp
mov ecx, 0x4a5810
mov dl, 8
mov eax, dword [ebp - 4]
call fcn.004a67f8
push 0
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x41a4e0]
call fcn.0041f538
mov dword [ebp - 0xc], eax
xor edx, edx
push ebp
push 0x4a578b
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 4]
cmp byte [eax + 0x10098], 0
jne 0x4a5747
mov eax, dword [ebp - 4]
lea edx, [eax + 0x30]
mov ecx, 0x10000
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov dword [ebp - 0x10], eax
inc ebp
invalid
mov ebx, dword [ebp - 0x10]
push 0
push ebx
mov eax, dword [ebp - 0x10]
sub eax, ebx
cmp eax, 0x10000
jbe 0x4a56c3
call fcn.00403c78
mov edx, dword [ebp - 4]
lea eax, [edx + eax + 0x30]
push eax
mov eax, dword [ebp - 4]
movzx eax, word [eax + 0x10110]
push eax
call sub.wsock32.dll_send
test eax, eax
je 0x4a5747
cmp eax, 0xffffffff
jle 0x4a5718
sub ebx, eax
mov edx, dword [ebp - 4]
add dword [edx + 0x10094], eax
mov eax, dword [ebp - 4]
cmp word [eax + 0x100da], 0
je 0x4a570e
mov esi, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [esi + 0x100dc]
call dword [esi + 0x100d8]
mov eax, dword [ebp - 4]
call fcn.004a61f4
jmp 0x4a5727
lea ecx, [ebp - 0x14]
mov dx, 0x2733
mov eax, dword [ebp - 4]
call fcn.004a672c
mov eax, dword [0x4b6b20]
mov eax, dword [eax]
call fcn.004623ac
test ebx, ebx
je 0x4a5747
mov eax, dword [ebp - 4]
cmp byte [eax + 0x10098], 0
je 0x4a56af
mov eax, dword [ebp - 0xc]
mov edx, dword [eax]
call dword [edx]
push edx
push eax
mov eax, dword [ebp - 0xc]
call fcn.0041f084
cmp edx, dword [esp + 4]
jne 0x4a5761
cmp eax, dword [esp]
pop edx
pop eax
je 0x4a5775
mov eax, dword [ebp - 4]
cmp byte [eax + 0x10098], 0
je 0x4a5686
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a5792
mov eax, dword [ebp - 0xc]
call fcn.00403d3c
ret
Function at 0x4a5838
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4a59e3
push dword fs:[eax]
mov dword fs:[eax], esp
mov ecx, 0x4a59f8
mov dl, 8
mov eax, ebx
call fcn.004a67f8
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.0041f0a4
cmp byte [ebx + 0x10098], 0
jne 0x4a598f
xor eax, eax
mov dword [ebx + 0x10094], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx]
push eax
sar eax, 0x1f
cmp eax, edx
pop eax
je 0x4a589c
call fcn.00403c78
mov dword [ebx + 0x100c4], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx]
push edx
push eax
mov eax, dword [ebp - 4]
call fcn.0041f084
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
push eax
sar eax, 0x1f
cmp eax, edx
pop eax
je 0x4a58ca
call fcn.00403c78
cmp eax, 0x10000
jle 0x4a58d6
mov eax, 0x10000
lea edx, [ebx + 0x30]
mov ecx, eax
mov eax, dword [ebp - 4]
mov esi, dword [eax]
call dword [esi + 0xc]
mov dword [ebp - 8], eax
mov esi, dword [ebp - 8]
push 0
push esi
mov eax, dword [ebp - 8]
sub eax, esi
cmp eax, 0x10000
jbe 0x4a58fd
call fcn.00403c78
lea eax, [ebx + eax + 0x30]
push eax
movzx eax, word [ebx + 0x10110]
push eax
call sub.wsock32.dll_send
test eax, eax
je 0x4a59cd
test eax, eax
jle 0x4a593d
sub esi, eax
add dword [ebx + 0x10094], eax
cmp word [ebx + 0x100da], 0
je 0x4a594b
mov edx, ebx
mov eax, dword [ebx + 0x100dc]
call dword [ebx + 0x100d8]
jmp 0x4a594b
lea ecx, [ebp - 0xc]
mov dx, 0x2733
mov eax, ebx
call fcn.004a672c
mov eax, dword [0x4b6b20]
mov eax, dword [eax]
call fcn.004623ac
test esi, esi
je 0x4a5964
cmp byte [ebx + 0x10098], 0
je 0x4a58e9
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx]
push edx
push eax
mov eax, dword [ebp - 4]
call fcn.0041f084
cmp edx, dword [esp + 4]
jne 0x4a597e
cmp eax, dword [esp]
pop edx
pop eax
je 0x4a598f
cmp byte [ebx + 0x10098], 0
je 0x4a58a2
cmp byte [ebx + 0x10098], 0
je 0x4a59cd
mov byte [ebx + 0x10098], 0
mov ecx, 0x4a5a0c
mov dl, 1
mov eax, dword [0x4a41f0]
call fcn.0040cb74
call fcn.0040451c
cmp word [ebx + 0x1010a], 0
je 0x4a59cd
mov edx, ebx
mov eax, dword [ebx + 0x1010c]
call dword [ebx + 0x10108]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a59ea
lea eax, [ebp - 0xc]
call fcn.00404ba8
ret