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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
mov edi, eax
cmp esi, ebx
jne 0x401ec6
push ebx
push ebx
push 2
xor ecx, ecx
pop eax
call fcn.00402e2c
xor al, al
jmp 0x401f6b
call fcn.004019a7
or dword [edi + 8], 0xffffffff
or dword [edi + 4], 0xffffffff
push 2
push ebx
push esi
call fcn.0043725c
push esi
call fcn.0043747e
push ebx
push ebx
push esi
mov dword [ebp - 4], eax
call fcn.0043725c
mov eax, dword [ebp - 4]
add esp, 0x1c
cmp eax, ebx
jg 0x401efd
push ebx
push ebx
push 0xc
jmp 0x401eb7
inc eax
push eax
call fcn.00416ada
push dword [ebp + 8]
mov esi, eax
push 1
push dword [ebp - 4]
mov byte [esi], bl
push esi
call fcn.0043778c
add esp, 0x14
cmp eax, 1
je 0x401f27
push esi
call fcn.00416ae5
pop ecx
jmp 0x401eb3
mov edx, dword [ebp - 4]
mov byte [esi + edx], bl
mov ecx, esi
mov eax, esi
cmp byte [esi], bl
je 0x401f50
mov dl, byte [ecx]
cmp dl, 0xd
jne 0x401f48
mov byte [eax], 0xa
inc eax
inc ecx
cmp byte [ecx], 0xa
jne 0x401f4c
jmp 0x401f4b
mov byte [eax], dl
inc eax
inc ecx
cmp byte [ecx], bl
jne 0x401f35
push ebx
push ebx
mov byte [eax], bl
mov eax, dword [edi]
push esi
mov ecx, edi
call dword [eax + 8]
push esi
call fcn.00416ae5
xor eax, eax
cmp byte [edi + 0x2c], bl
pop ecx
sete al
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x4049df
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
lea eax, [ebp - 4]
push eax
push 0x20
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x404a45
lea eax, [ebp - 0x10]
push eax
push str.SeDebugPrivilege
push esi
mov dword [ebp - 0x14], 1
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
push esi
push esi
push 0x10
lea eax, [ebp - 0x14]
push eax
push esi
push dword [ebp - 4]
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 4]
mov esi, eax
neg esi
sbb esi, esi
inc esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
leave
ret
Function at 0x404c14
Capabilities:
Create thread
Inject dll
Inject thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov eax, edi
push esi
lea ecx, [eax + 1]
xor ebx, ebx
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x404c22
push 4
sub eax, ecx
push 0x1000
inc eax
push eax
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov esi, eax
mov dword [ebp - 4], esi
cmp esi, ebx
jne 0x404c65
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.VirtualAllocEx_error__d
push dword [ebp + 0xc]
call fcn.00409ca8
add esp, 0xc
xor eax, eax
jmp 0x404d99
mov eax, edi
mov dword [ebp - 8], ebx
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x404c6d
sub eax, ecx
lea ecx, [ebp - 8]
push ecx
push eax
push edi
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x404cc2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.WriteProcessMemory_error__d
push dword [ebp + 0xc]
call fcn.00409ca8
mov eax, edi
add esp, 0xc
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x404ca6
sub eax, ecx
push 0x4000
inc eax
push eax
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
jmp 0x404c5e
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push 0x461280
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
jne 0x404d02
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GetProcAddress_error__d
push dword [ebp + 0xc]
call fcn.00409ca8
mov eax, edi
add esp, 0xc
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x404cf9
jmp 0x404cad
push ebx
push ebx
push esi
push eax
push ebx
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov esi, eax
cmp esi, ebx
jne 0x404d65
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 5
jne 0x404d35
push 0x4611e8
push dword [ebp + 0xc]
call fcn.00409ca8
pop ecx
pop ecx
jmp 0x404d48
call esi
push eax
push str.CreateRemoteThread_error__d
push dword [ebp + 0xc]
call fcn.00409ca8
add esp, 0xc
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x404d4d
sub eax, edx
push 0x4000
inc eax
push eax
push dword [ebp - 4]
jmp 0x404cb7
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x404d7a
sub eax, ecx
push 0x4000
inc eax
push eax
push dword [ebp - 4]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
xor eax, eax
inc eax
pop esi
pop ebx
leave
ret 8
Function at 0x404d9f
Capabilities:
Get file size
Read file on windows

Disassembly:
push 4
mov eax, 0x44e1ab
call fcn.00439d63
xor esi, esi
push esi
push 0x80
push 3
push esi
push 1
push SysReAllocString
mov dword [ebp - 4], esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x404e37
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
push ebx
call fcn.00416ada
mov esi, eax
pop ecx
test esi, esi
je 0x404e30
push 0
lea eax, [ebp - 0x10]
push eax
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x404e29
cmp ebx, dword [ebp - 0x10]
jne 0x404e29
mov ecx, dword [ebp + 0xc]
push ebx
push esi
call fcn.00413e1d
push esi
call fcn.00416ae5
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.0040a004
xor eax, eax
inc eax
jmp 0x404e44
push esi
call fcn.00416ae5
pop ecx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.0040a004
xor eax, eax
call fcn.00439e3b
ret 8
Function at 0x405bf8
Capabilities:
Create process on windows

Disassembly:
push 0x5c
mov eax, 0x44e7bb
call fcn.00439d63
push str.qupdater.exe
lea eax, [ebp - 0x10]
push 0xff889c
push eax
call fcn.004071bb
add esp, 0xc
lea eax, [ebp - 0x10]
xor ebx, ebx
push eax
mov dword [ebp - 4], ebx
call fcn.00407022
lea ecx, [ebp - 0x2c]
call fcn.004252cc
push ebx
mov byte [ebp - 4], 1
push dword [ebp - 0x10]
lea ecx, [ebp - 0x2c]
call fcn.00425361
test eax, eax
jne 0x405c62
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], bl
call fcn.004252f2
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.0040a004
xor eax, eax
call fcn.00439e3b
ret
push 0x38
lea eax, [ebp - 0x64]
push ebx
push eax
call fcn.00439ec0
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x58], eax
add esp, 0xc
lea eax, [ebp - 0x68]
push eax
mov dword [ebp - 0x68], 0x3c
mov dword [ebp - 0x64], 0x40
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x54], str._checkforupdates
mov dword [ebp - 0x4c], 5
mov dword [ebp - 0x48], ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
push 0x7530
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x30]
mov dword [ebp - 0x14], ebx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
jne 0x405ce7
xor esi, esi
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], bl
call fcn.004252f2
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.0040a004
mov eax, esi
jmp 0x405c5c
mov esi, dword [ebp - 0x14]
jmp 0x405cca

Function at 0x405cec
Capabilities:
Create process on windows

Disassembly:
push 0x5c
mov eax, 0x44e790
call fcn.00439d63
push str.qupdater.exe
lea eax, [ebp - 0x14]
push 0xff889c
push eax
call fcn.004071bb
add esp, 0xc
lea eax, [ebp - 0x14]
xor ebx, ebx
push eax
mov dword [ebp - 4], ebx
call fcn.00407022
lea ecx, [ebp - 0x2c]
call fcn.004252cc
push ebx
mov byte [ebp - 4], 1
push dword [ebp - 0x14]
lea ecx, [ebp - 0x2c]
call fcn.00425361
test eax, eax
jne 0x405d58
xor esi, esi
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], bl
call fcn.004252f2
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.0040a004
mov eax, esi
call fcn.00439e3b
ret
push 0x38
lea eax, [ebp - 0x64]
push ebx
push eax
call fcn.00439ec0
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x58], eax
add esp, 0xc
lea eax, [ebp - 0x68]
push eax
mov dword [ebp - 0x68], 0x3c
mov dword [ebp - 0x64], 0x40
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x4c], 5
mov dword [ebp - 0x48], ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
xor esi, esi
inc esi
jmp 0x405d3a
Function at 0x406e56
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
mov eax, dword [0x470600]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
push 0x3ff
mov dword [ebp - 0x408], eax
lea eax, [ebp - 0x403]
push 0
push eax
mov byte [ebp - 0x404], 0
call fcn.00439ec0
add esp, 0xc
cmp dword [ebp + 0xc], 0
mov esi, 0x461a28
je 0x406eef
push dword [0xff8898]
mov edi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
push dword [0xff8894]
push str.PATH
push esi
call edi
push dword [0xff88e4]
lea eax, [ebp - 0x404]
push 0x461d78
push 0x400
push eax
call fcn.00438095
add esp, 0x10
push dword [0xff8898]
lea eax, [ebp - 0x404]
push eax
push str.LOADMODE
push esi
call edi
jmp 0x406fc5
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push ebx
push dword [0xff8898]
lea eax, [ebp - 0x404]
push 0x400
push eax
mov ebx, 0x461e0f
push ebx
push str.PATH
push esi
call edi
lea eax, [ebp - 0x404]
push eax
mov ecx, 0xff8894
call fcn.00409c2a
push dword [0xff8898]
push 0
push str.LOADMODE
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push dword [0xff8898]
mov dword [0xff88e4], eax
push 0x400
lea eax, [ebp - 0x404]
push eax
push ebx
push str.BUYLINK
push esi
call edi
lea eax, [ebp - 0x404]
push eax
mov ecx, 0xff88a0
call fcn.00409c2a
push dword [0xff8898]
lea eax, [ebp - 0x404]
push 0x400
push eax
push ebx
push str.DOWNLOADLINK
push esi
call edi
lea eax, [ebp - 0x404]
push eax
mov ecx, 0xff88a4
call fcn.00409c2a
push dword [0xff8898]
lea eax, [ebp - 0x404]
push 0x400
push eax
push ebx
push str.NOTICE
push esi
call edi
lea eax, [ebp - 0x404]
push eax
mov ecx, 0xff88a8
call fcn.00409c2a
pop ebx
mov ecx, dword [ebp - 0x408]
push str.mc.dll
add ecx, 0xc0
call fcn.00407977
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
inc eax
pop esi
call fcn.004363af
leave
ret 8
Function at 0x40e7af
Capabilities:
Initialize winsock library

Disassembly:
push 0x19c
mov eax, 0x44e6b3
call fcn.00439dcc
mov eax, esi
mov dword [ebp - 0x1a4], esi
call fcn.00413e80
lea eax, [esi + 0x30]
xor ebx, ebx
mov dword [ebp - 4], ebx
push eax
mov dword [esi], vtable.Networking.0
call fcn.00411618
lea eax, [esi + 0x48]
push eax
mov byte [ebp - 4], 1
call fcn.00411618
push 4
mov byte [ebp - 4], 2
lea edi, [esi + 0x60]
call fcn.00416aab
pop ecx
cmp eax, ebx
je 0x40e803
mov dword [eax], edi
jmp 0x40e805
xor eax, eax
mov dword [edi], eax
mov dword [edi + 0xc], ebx
mov dword [edi + 0x10], ebx
mov dword [edi + 0x14], ebx
or dword [esi + 0x7c], 0xffffffff
or dword [esi + 0xa4], 0xffffffff
mov dword [esi + 0x78], ebx
mov dword [esi + 0x80], ebx
mov dword [esi + 0x8c], 0x258
mov dword [esi + 0x90], 0x5dc
mov dword [esi + 0x94], ebx
mov dword [esi + 0x9c], ebx
mov dword [esi + 0xa0], 0x3a98
lea eax, [esi + 0xa8]
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
lea eax, [esi + 0xb4]
push 0x190
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
lea eax, [ebp - 0x1a0]
push ebx
push eax
call fcn.00439ec0
add esp, 0xc
lea eax, [ebp - 0x1a0]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
lea eax, [esi + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, esi
call fcn.00439e4f
ret
Function at 0x40eac5
Capabilities:
Act as tcp client
Check for time delay via gettickcount
Connect socket
Connect tcp socket
Create tcp socket
Resolve dns
Set socket configuration

Disassembly:
push 0x3c
mov eax, 0x44eb90
call fcn.00439dcc
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, ecx
call ebx
mov ecx, dword [esi + 0x98]
add ecx, dword [esi + 0x94]
cmp eax, ecx
jbe 0x40eb2c
lea edi, [esi + 0x60]
mov eax, dword [edi + 0x10]
sub eax, dword [edi + 0xc]
xor ebx, ebx
sar eax, 2
test eax, eax
jbe 0x40eb1b
push ebx
mov eax, edi
call fcn.0040f236
push dword [eax]
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, dword [edi + 0x10]
sub eax, dword [edi + 0xc]
inc ebx
sar eax, 2
cmp ebx, eax
jb 0x40eafd
mov eax, edi
call fcn.0040f2f9
call fcn.0040f0e0
jmp 0x40ec45
mov eax, dword [esi + 0xac]
xor edi, edi
cmp eax, edi
jg 0x40eb45
cmp dword [esi + 0xa4], 0xffffffff
je 0x40ec45
call ebx
mov ecx, dword [esi + 0x8c]
add ecx, dword [esi + 0x88]
cmp eax, ecx
jb 0x40ec45
push edi
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x18], 0xf
call fcn.004082dd
lea ebx, [ebp - 0x30]
mov dword [ebp - 4], edi
call fcn.0040e996
test eax, eax
jge 0x40eb80
push edi
jmp 0x40ec37
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x40eb8c
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov ebx, eax
cmp ebx, edi
je 0x40eb7a
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov edi, eax
lea eax, [ebp - 0x48]
push eax
push 0x8004667e
push edi
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x48], 1
call dword [sym.imp.WS2_32.dll_ioctlsocket]
push 2
pop eax
push dword [ebp - 0x14]
mov word [ebp - 0x40], ax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x3e], ax
mov eax, dword [ebx + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [ebp - 0x3c], eax
push 0x10
lea eax, [ebp - 0x40]
push eax
push edi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x40ec07
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2736
jne 0x40ec07
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
jmp 0x40ec35
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
lea eax, [esi + 0x60]
mov dword [esi + 0x88], ecx
mov edx, dword [eax + 0x10]
sub edx, dword [eax + 0xc]
test edx, 0xfffffffc
jne 0x40ec2c
mov dword [esi + 0x84], ecx
lea ecx, [ebp - 0x44]
push ecx
call fcn.0040f29b
push 0
or dword [ebp - 4], 0xffffffff
push 1
lea ecx, [ebp - 0x30]
call fcn.0040799a
call fcn.00439e4f
ret
Function at 0x41251c
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
mov eax, dword [0x470600]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x3ff
lea eax, [ebp - 0x403]
push 0
push eax
mov byte [ebp - 0x404], 0
call fcn.00439ec0
add esp, 0xc
push 0
push 0x400
lea eax, [ebp - 0x404]
push eax
push dword [esi + 4]
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x41258c
mov al, byte [edi]
cmp al, byte [ebp - 0x404]
jne 0x41258c
mov al, byte [edi + 1]
cmp al, byte [ebp - 0x403]
jne 0x41258c
mov al, byte [edi + 2]
cmp al, byte [ebp - 0x402]
jne 0x41258c
mov al, 1
jmp 0x41258e
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004363af
leave
ret
Function at 0x41259a
Capabilities:
Connect socket
Initialize winsock library
Resolve dns
Send data
Send data on socket

Disassembly:
push 0x40
mov eax, 0x44ea6d
call fcn.00439dcc
mov esi, ecx
lea eax, [esi + 8]
push eax
xor edi, edi
push 0x202
mov dword [ebp - 4], edi
call dword [sym.imp.WS2_32.dll_WSAStartup]
or ebx, 0xffffffff
cmp eax, ebx
je 0x4125d5
push edi
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi + 4], eax
cmp eax, ebx
jne 0x4125f2
call fcn.00412502
mov dword [ebp - 4], ebx
push edi
push 1
lea ecx, [ebp + 8]
call fcn.0040799a
xor al, al
call fcn.00439e4f
ret 0x20
cmp dword [ebp + 0x20], 0x10
mov eax, dword [ebp + 0xc]
jae 0x4125fe
lea eax, [ebp + 0xc]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov dword [esi + 0x198], eax
cmp eax, edi
je 0x4125d5
mov eax, dword [eax + 0xc]
cmp dword [eax], edi
je 0x4125d5
xor eax, eax
lea ebx, [esi + 0x19c]
mov edi, ebx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 2
stosd dword es:[edi], eax
pop eax
push dword [ebp + 0x24]
mov word [ebx], ax
call dword [sym.imp.WS2_32.dll_htons]
mov word [esi + 0x19e], ax
mov eax, dword [esi + 0x198]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
push 0x10
push ebx
push dword [esi + 4]
mov dword [esi + 0x1a0], eax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x41266e
call fcn.00412502
or dword [ebp - 4], 0xffffffff
push 0
jmp 0x4125de
mov edi, 0x463b8c
call fcn.0041251c
test al, al
je 0x412663
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x4c]
push str.HELO
push eax
call fcn.004132a6
push 0x460ff8
push eax
lea eax, [ebp - 0x2c]
push eax
mov byte [ebp - 4], 1
call fcn.004132f9
add esp, 0x18
xor ebx, ebx
push ebx
push 1
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 3
call fcn.0040799a
cmp dword [ebp - 0x14], 0x10
mov eax, dword [ebp - 0x28]
jae 0x4126c1
lea eax, [ebp - 0x28]
push ebx
push dword [ebp - 0x18]
push eax
push dword [esi + 4]
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x4126f1
call fcn.00412502
push ebx
push 1
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], bl
call fcn.0040799a
or dword [ebp - 4], 0xffffffff
push ebx
jmp 0x4125de
mov edi, 0x463b98
call fcn.0041251c
test al, al
jne 0x412727
mov byte [ebp - 0x2d], bl
push ebx
push 1
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], bl
call fcn.0040799a
or dword [ebp - 4], 0xffffffff
push ebx
push 1
lea ecx, [ebp + 8]
call fcn.0040799a
mov al, byte [ebp - 0x2d]
jmp 0x4125ea
mov byte [ebp - 0x2d], 1
jmp 0x412702
Function at 0x41272d
Capabilities:
Send data
Send data on socket

Disassembly:
push 0x78
mov eax, 0x44e5f4
call fcn.00439dcc
mov esi, ecx
xor ebx, ebx
push ebx
push 0xc
xor edi, edi
inc edi
push str.AUTH_LOGIN_r_n
mov dword [ebp - 4], edi
push dword [esi + 4]
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x412783
call fcn.00412502
push ebx
push edi
lea ecx, [ebp + 8]
mov byte [ebp - 4], bl
call fcn.0040799a
push ebx
push edi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x24]
call fcn.0040799a
xor al, al
call fcn.00439e4f
ret 0x38
mov edi, 0x463bac
call fcn.0041251c
test al, al
jne 0x4127a4
push ebx
push 1
lea ecx, [ebp + 8]
mov byte [ebp - 4], bl
call fcn.0040799a
push ebx
push 1
jmp 0x41276d
cmp dword [ebp + 0x20], 0x10
mov ecx, dword [ebp + 0xc]
jae 0x4127b0
lea ecx, [ebp + 0xc]
push dword [ebp + 0x1c]
lea eax, [ebp - 0x68]
push eax
call fcn.004121ba
push 0x460ff8
push eax
lea eax, [ebp - 0x2c]
push eax
mov byte [ebp - 4], 2
call fcn.004132f9
add esp, 0xc
xor edi, edi
push ebx
inc edi
push edi
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 4
call fcn.0040799a
cmp dword [ebp - 0x14], 0x10
mov eax, dword [ebp - 0x28]
jae 0x4127ef
lea eax, [ebp - 0x28]
push ebx
push dword [ebp - 0x18]
push eax
push dword [esi + 4]
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x41281a
call fcn.00412502
push ebx
push edi
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.0040799a
jmp 0x41275e
mov edi, 0x463bac
call fcn.0041251c
test al, al
jne 0x41283c
push ebx
push 1
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.0040799a
jmp 0x412791
cmp dword [ebp + 0x3c], 0x10
mov ecx, dword [ebp + 0x28]
jae 0x412848
lea ecx, [ebp + 0x28]
push dword [ebp + 0x38]
lea eax, [ebp - 0x84]
push eax
call fcn.004121ba
push 0x460ff8
push eax
lea eax, [ebp - 0x48]
push eax
mov byte [ebp - 4], 5
call fcn.004132f9
add esp, 0xc
xor edi, edi
push ebx
inc edi
push edi
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 7
call fcn.0040799a
cmp dword [ebp - 0x30], 0x10
mov eax, dword [ebp - 0x44]
jae 0x41288d
lea eax, [ebp - 0x44]
push ebx
push dword [ebp - 0x34]
push eax
push dword [esi + 4]
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x4128b8
call fcn.00412502
push ebx
push edi
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 4
call fcn.0040799a
jmp 0x412807
mov edi, 0x463bb0
call fcn.0041251c
test al, al
jne 0x41290b
mov byte [ebp - 0x49], bl
xor esi, esi
push ebx
inc esi
push esi
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 4
call fcn.0040799a
push ebx
push esi
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.0040799a
push ebx
push esi
lea ecx, [ebp + 8]
mov byte [ebp - 4], bl
call fcn.0040799a
or dword [ebp - 4], 0xffffffff
push ebx
push esi
lea ecx, [ebp + 0x24]
call fcn.0040799a
mov al, byte [ebp - 0x49]
jmp 0x41277b
mov byte [ebp - 0x49], 1
jmp 0x4128c9
Function at 0x413414
Capabilities:
Print debug messages

Disassembly:
push ebp
lea ebp, [esp - 0xb0]
sub esp, 0x130
mov eax, dword [0x470600]
xor eax, ebp
mov dword [ebp + 0xac], eax
push esi
push edi
xor edi, edi
mov esi, ecx
cmp dword [ebp + 0xb8], edi
je 0x41358f
push ebx
push pe_nt_image_headers32
lea ebx, [ebp - 0x78]
mov eax, ebx
push 0x20
push eax
call fcn.00439ec0
add esp, 0xc
mov dword [ebp - 0x80], edi
cmp esi, edi
je 0x413493
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x413463
sub eax, edx
cmp eax, 0x64
mov dword [ebp - 0x80], eax
jge 0x413488
push eax
lea ebx, [ebp + eax - 0x78]
lea eax, [ebp - 0x78]
push esi
push eax
call fcn.00439150
add esp, 0xc
jmp 0x413493
push str.OutDebugStringInLine32_pre_string_is_to_long.
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 8
mov dword [ebp - 0x7c], edi
pop ecx
xor esi, esi
xor eax, eax
mov byte [ebp + 0x88], 0
lea edi, [ebp + 0x89]
rep stosd dword es:[edi], eax
push 8
pop ecx
mov eax, 0x20202020
lea edi, [ebp + 0x88]
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 0xb8]
mov ecx, dword [ebp - 0x7c]
mov cl, byte [ecx + eax]
cmp cl, 0x1f
jbe 0x4134d2
movzx eax, cl
jmp 0x4134d5
push 0x2e
pop eax
mov byte [ebp + esi + 0x88], al
mov al, cl
shr al, 4
mov dl, 9
cmp dl, al
sbb dl, dl
and dl, 7
add dl, 0x30
add al, dl
and cl, 0xf
mov dl, 9
cmp dl, cl
sbb dl, dl
and dl, 7
add dl, 0x30
add cl, dl
xor edx, edx
cmp esi, 0x10
jl 0x41350a
push 3
pop edx
mov edi, esi
imul edi, edi, 3
add edi, edx
cmp esi, 0x1f
lea edx, [edi + ebx]
mov byte [edx], al
mov byte [edx + 1], cl
mov byte [edx + 2], 0x20
jl 0x413563
push 8
pop ecx
lea edi, [ebx + 0x69]
lea esi, [ebp + 0x88]
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x78]
push eax
movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, pe_nt_image_headers32
sub eax, dword [ebp - 0x80]
push eax
push 0x20
push ebx
call fcn.00439ec0
add esp, 0xc
push 8
pop ecx
mov eax, 0x20202020
lea edi, [ebp + 0x88]
rep stosd dword es:[edi], eax
xor esi, esi
jmp 0x413564
inc esi
inc dword [ebp - 0x7c]
cmp dword [ebp - 0x7c], 0x10
jl 0x4134bc
test esi, esi
je 0x41358e
push 8
pop ecx
lea edi, [ebx + 0x69]
lea esi, [ebp + 0x88]
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x78]
push eax
movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop ebx
mov ecx, dword [ebp + 0xac]
pop edi
xor ecx, ebp
pop esi
call fcn.004363af
add ebp, 0xb0
leave
ret

Function at 0x4135a6
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1004
call fcn.0043c1e0
mov eax, dword [0x470600]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x1004]
push eax
call fcn.00438008
add esp, 0xc
lea eax, [ebp - 0x1004]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004363af
leave
ret
Function at 0x413ea0
Capabilities:
Resume thread

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x10]
mov dword [esi], vtable.xThread.0
cmp eax, 0xffffffff
je 0x413ee7
cmp dword [esi + 0x14], 0
je 0x413eca
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
je 0x413eca
mov dword [esi + 0x14], 0
push 1
lea eax, [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov eax, dword [esi + 0x10]
cmp eax, 0xffffffff
je 0x413ee7
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test byte [esp + 8], 1
je 0x413ef7
push esi
call fcn.00416ae5
add esp, 4
mov eax, esi
pop esi
ret 4

Function at 0x413f50
Capabilities:
Create thread

Disassembly:
push ecx
lea ecx, [esp]
push ecx
push 0
push esi
push 0x413f90
push 0
push 0
mov dword [esi + 8], eax
mov dword [esi + 0x14], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, 0xffffffff
jne 0x413f7a
xor eax, eax
pop ecx
ret
mov edx, dword [esp]
mov dword [esi + 0x10], eax
mov dword [esi + 0xc], edx
mov eax, 1
pop ecx
ret