joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40ba5e
Capabilities:
Move file

Disassembly:
mov eax, 0x47f86c
call fcn.0047e070
sub esp, 0x10
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x40bad7
push esi
push edi
push dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
call fcn.0042d8e3
mov esi, eax
push dword [ebp + 8]
and dword [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.0042d8e3
mov edi, eax
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.0042f61b
push eax
mov ecx, edi
call fcn.0042f61b
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x1c]
push str.error_d_while_renaming__s_to__s
push eax
call fcn.0042a481
add esp, 0x14
lea eax, [ebp - 0x1c]
push 0x4924b4
push eax
call sub.MSVCRT.dll__CxxThrowException
pop edi
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret

Function at 0x40bdb4
Capabilities:
Get common file path

Disassembly:
mov eax, 0x47f8d7
call fcn.0047e070
sub esp, 0x14
push ebx
push esi
xor ebx, ebx
push edi
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x14], ebx
call fcn.0042eba0
mov esi, dword [ebp + 0xc]
xor edi, edi
inc edi
dec esi
neg esi
sbb esi, esi
push 0x104
and esi, 0xfffffff9
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], edi
add esi, 0x23
call fcn.0042f3a1
push eax
push ebx
push ebx
push esi
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
cmp eax, ebx
jge 0x40be21
push eax
lea eax, [ebp - 0x20]
push str.SHGetFolderPathW___Error_X
push eax
call fcn.0042a481
add esp, 0xc
lea eax, [ebp - 0x20]
push 0x4924b4
push eax
call sub.MSVCRT.dll__CxxThrowException
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
call fcn.0042f477
lea eax, [ebp - 0x10]
push eax
call fcn.0040b92a
lea ecx, [ebp - 0x10]
mov dword [esp], str.AMMYY_
call fcn.0042f350
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call fcn.0042ebac
mov dword [ebp - 0x14], edi
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], bl
call fcn.0042eea2
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x40bea9
Capabilities:
Get hostname

Disassembly:
mov eax, 0x47f903
call fcn.0047e070
sub esp, 0x18
and dword [ebp - 0x18], 0
push esi
lea ecx, [ebp - 0x10]
call fcn.0042d52f
xor esi, esi
lea ecx, [ebp - 0x14]
mov eax, 0x400
inc esi
push ecx
push eax
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], esi
mov dword [ebp - 0x14], eax
call fcn.0042dd18
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
test eax, eax
jne 0x40bf0f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x24]
push str.GetComputerName___error_d
push eax
call fcn.0042a481
add esp, 0xc
lea eax, [ebp - 0x24]
push 0x4924b4
push eax
call sub.MSVCRT.dll__CxxThrowException
push dword [ebp - 0x14]
lea ecx, [ebp - 0x10]
call fcn.0042ddee
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call fcn.0042d53b
mov dword [ebp - 0x18], esi
and byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.0042d82b
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x40ce94
Capabilities:
Get process heap force flags

Disassembly:
mov eax, 0x47fbdf
call fcn.0047e070
push ecx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi], 0x486c18
lea ecx, [esi + 0x6c]
mov dword [ebp - 4], 9
call fcn.0040d5af
lea ecx, [esi + 0x60]
mov byte [ebp - 4], 8
call fcn.0042cd96
lea ecx, [esi + 0x54]
mov byte [ebp - 4], 7
call fcn.0042cd96
lea ecx, [esi + 0x48]
mov byte [ebp - 4], 6
call fcn.0042cd96
lea ecx, [esi + 0x3c]
mov byte [ebp - 4], 5
call fcn.0042cd96
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 4
call fcn.0042cd96
lea ecx, [esi + 0x24]
mov byte [ebp - 4], 3
call fcn.0042cd96
lea ecx, [esi + 0x18]
mov byte [ebp - 4], 2
call fcn.0042eea2
lea ecx, [esi + 0x14]
mov byte [ebp - 4], 1
call fcn.0042eea2
and byte [ebp - 4], 0
lea ecx, [esi + 0x10]
call fcn.0042eea2
or dword [ebp - 4], 0xffffffff
mov ecx, esi
call fcn.0042cd96
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x40f661
Capabilities:
Get common file path

Disassembly:
mov eax, 0x4800a3
call fcn.0047e070
sub esp, 0x14
push ebx
xor ebx, ebx
push esi
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x14], ebx
call fcn.0042eba0
xor esi, esi
push 0x104
inc esi
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], esi
call fcn.0042f3a1
push eax
push ebx
push ebx
push 5
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
cmp eax, ebx
jge 0x40f6c0
push eax
lea eax, [ebp - 0x20]
push str.SHGetFolderPathW___Error_X
push eax
call fcn.0042a481
add esp, 0xc
lea eax, [ebp - 0x20]
push 0x4924b4
push eax
call sub.MSVCRT.dll__CxxThrowException
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
call fcn.0042f477
lea eax, [ebp - 0x10]
push eax
call fcn.0040b92a
pop ecx
lea eax, [ebp - 0x10]
mov ecx, dword [ebp + 8]
push eax
call fcn.0042ebac
mov dword [ebp - 0x14], esi
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], bl
call fcn.0042eea2
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x412f45
Capabilities:
Get process heap flags
Get process heap force flags

Disassembly:
mov eax, 0x4808f5
call fcn.0047e070
push ecx
push ebx
push esi
xor ebx, ebx
push edi
mov esi, ecx
push ebx
mov dword [ebp - 0x10], esi
call fcn.0042d13e
lea ecx, [esi + 0x10]
mov dword [ebp - 4], ebx
call fcn.00420e7f
lea edi, [esi + 0x18]
push ebx
mov ecx, edi
call fcn.0042cd68
mov dword [edi], 0x486c2c
push ebx
lea ecx, [esi + 0x24]
mov byte [ebp - 4], 1
call fcn.0042cd68
push ebx
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 2
call fcn.0042cd68
push ebx
lea ecx, [esi + 0x3c]
mov byte [ebp - 4], 3
call fcn.0042cd68
push ebx
lea ecx, [esi + 0x48]
mov byte [ebp - 4], 4
call fcn.0042cd68
push ebx
lea ecx, [esi + 0x54]
mov byte [ebp - 4], 5
call fcn.0042cd68
lea edi, [esi + 0x60]
push ebx
mov ecx, edi
mov byte [ebp - 4], 6
call fcn.0042cd68
mov dword [edi], 0x486c30
push ebx
lea ecx, [esi + 0x6c]
mov byte [ebp - 4], 7
call fcn.0042cd68
push ebx
lea ecx, [esi + 0x78]
mov byte [ebp - 4], 8
call fcn.0042cd68
push ebx
lea ecx, [esi + 0x84]
mov byte [ebp - 4], 9
call fcn.0042cd68
lea ecx, [esi + 0x90]
mov byte [ebp - 4], 0xa
call fcn.0042ca73
lea ecx, [esi + 0xb4]
mov byte [ebp - 4], 0xb
call fcn.0040da88
push fcn.0041f192
push fcn.0041f15a
push 0x10
lea eax, [esi + 0x278]
push 0x18
push eax
mov byte [ebp - 4], 0xc
call fcn.0047e253
lea ecx, [esi + 0x3f8]
mov byte [ebp - 4], 0xd
call fcn.0041f15a
push 5
mov dword [esi], 0x486cb4
call dword [sym.imp.GDI32.dll_GetStockObject]
mov edi, dword [sym.imp.GDI32.dll_CreateSolidBrush]
push 0xdef5d2
mov dword [esi + 0x204], eax
call edi
push 0xf6e8d4
mov dword [0x4b338c], eax
call edi
push 0xffffff
mov dword [0x4b3390], eax
call edi
push 0xe9e9e9
mov dword [0x4b3394], eax
call edi
push 0xf0dcf5
mov dword [0x4b3398], eax
call edi
push 0x4a65f4
push 2
push ebx
push ebx
push 8
push 1
mov edi, dword [sym.imp.GDI32.dll_CreateFontA]
push ebx
push ebx
push ebx
push 0x190
push ebx
push ebx
push ebx
push 0xe
mov dword [0x4b339c], eax
call edi
push 0x4a65f4
push 2
push ebx
push ebx
push 8
push 1
push ebx
push ebx
push ebx
push 0x2bc
push ebx
push ebx
push ebx
push 0xe
mov dword [esi + 0x26c], eax
call edi
push 0x4a65f4
push 2
push ebx
push ebx
push 8
push 1
push ebx
push ebx
push ebx
push 0x2bc
push ebx
push ebx
push ebx
push 0xe
mov dword [esi + 0x270], eax
call edi
mov edi, dword [sym.imp.USER32.dll_LoadImageA]
push ebx
push 0x10
push 0x10
push 1
push 0x80
push 0x400000
mov dword [esi + 0x274], eax
call edi
push ebx
push 0x20
push 0x20
push 1
push 0x80
push 0x400000
mov dword [esi + 0x424], eax
call edi
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x428], eax
mov byte [esi + 0x410], bl
mov dword [0x4b3294], esi
mov dword [esi + 0x41c], ebx
mov dword [esi + 0x268], ebx
mov dword [esi + 0x420], ebx
mov dword [esi + 0x260], ebx
mov dword [esi + 0x264], ebx
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x413198
Capabilities:
Get process heap flags
Get process heap force flags

Disassembly:
mov eax, 0x4809bb
call fcn.0047e070
push ecx
push ecx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x14], esi
mov dword [esi], 0x486cb4
mov dword [ebp - 4], 0xe
mov edi, 0x4b3d10
jmp 0x4131c7
push 2
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, edi
call fcn.00450761
test al, al
jne 0x4131bf
push ebx
mov ebx, dword [sym.imp.GDI32.dll_DeleteObject]
lea edi, [esi + 0x26c]
mov dword [ebp - 0x10], 3
push dword [edi]
call ebx
add edi, 4
dec dword [ebp - 0x10]
jne 0x4131e6
and dword [0x4b3294], 0
lea edi, [esi + 0x41c]
mov eax, dword [edi]
test eax, eax
je 0x41320f
push eax
call dword [sym.imp.GDI32.dll_DeleteDC]
and dword [edi], 0
lea edi, [esi + 0x268]
mov eax, dword [edi]
test eax, eax
je 0x413221
push eax
call ebx
and dword [edi], 0
mov eax, dword [esi + 0x420]
test eax, eax
je 0x41322e
push eax
call ebx
mov eax, dword [esi + 0x264]
pop ebx
test eax, eax
je 0x413240
push eax
call dword [sym.imp.USER32.dll_DestroyMenu]
lea ecx, [esi + 0x3f8]
mov byte [ebp - 4], 0xd
call fcn.0041f192
push fcn.0041f192
push 0x10
lea eax, [esi + 0x278]
push 0x18
push eax
mov byte [ebp - 4], 0xc
call fcn.0047e15f
lea ecx, [esi + 0xb4]
mov byte [ebp - 4], 0xb
call fcn.0040db83
lea ecx, [esi + 0x90]
mov byte [ebp - 4], 0xa
call fcn.0042cae1
lea ecx, [esi + 0x84]
mov byte [ebp - 4], 9
call fcn.0042cd96
lea ecx, [esi + 0x78]
mov byte [ebp - 4], 8
call fcn.0042cd96
lea ecx, [esi + 0x6c]
mov byte [ebp - 4], 7
call fcn.0042cd96
lea ecx, [esi + 0x60]
mov byte [ebp - 4], 6
call fcn.0042cd96
lea ecx, [esi + 0x54]
mov byte [ebp - 4], 5
call fcn.0042cd96
lea ecx, [esi + 0x48]
mov byte [ebp - 4], 4
call fcn.0042cd96
lea ecx, [esi + 0x3c]
mov byte [ebp - 4], 3
call fcn.0042cd96
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 2
call fcn.0042cd96
lea ecx, [esi + 0x24]
mov byte [ebp - 4], 1
call fcn.0042cd96
and byte [ebp - 4], 0
lea ecx, [esi + 0x18]
call fcn.0042cd96
or dword [ebp - 4], 0xffffffff
mov ecx, esi
call fcn.0042cd96
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x413c81
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x480a93
call fcn.0047e070
sub esp, 0xa0
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x20], esi
jmp 0x413ca1
lea edi, [esi + 0x10]
xor ebx, ebx
mov ecx, edi
mov dword [ebp - 4], ebx
call fcn.00420e86
cmp byte [edi], bl
jne 0x413e47
mov eax, dword [0x4b3298]
push 0x4a64b4
xor eax, 0xfe7ded7b
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.0040bae9
add esp, 0xc
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.0042f61b
push eax
lea ecx, [esi + 0x6c]
call fcn.0042ce4a
mov ecx, esi
call fcn.0041331a
push dword [esi + 4]
call dword [sym.imp.USER32.dll_DrawMenuBar]
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], bl
call fcn.0042d82b
jmp 0x413e47
cmp byte [esi + 0x10], bl
push ebx
push ebx
je 0x413fde
push 0x10
mov dword [ebp - 4], 8
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SendMessageA]
push 0x1e
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x14]
push ebx
push eax
call fcn.0040c107
pop ecx
pop ecx
lea eax, [ebp - 0x88]
mov byte [ebp - 4], 9
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.0040b53c
pop ecx
pop ecx
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 0xa
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.0040c045
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0xb
call fcn.0042efe3
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0xa
call fcn.0042eea2
lea ecx, [ebp - 0x18]
call fcn.0042f61b
push ebx
lea ecx, [ebp - 0x14]
mov esi, eax
call fcn.0042f3a1
lea ecx, [ebp - 0x44]
push ecx
lea ecx, [ebp - 0x88]
push ecx
push esi
push ebx
push ebx
push ebx
push ebx
push ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
cmp eax, ebx
jne 0x413f39
lea ecx, [ebp - 0x14]
call fcn.0042f61b
push eax
lea ecx, [ebp - 0x24]
call fcn.0042d8e3
mov ecx, eax
mov byte [ebp - 4], 0xc
call fcn.0042f61b
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
lea eax, [ebp - 0x34]
push str.Cant_run__s_error_d
push eax
call fcn.0042a481
add esp, 0x10
lea eax, [ebp - 0x34]
push 0x4924b4
push eax
call sub.MSVCRT.dll__CxxThrowException
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 9
call fcn.0042eea2
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 8
call fcn.0042eea2
mov byte [0x4b31d5], 1
jmp 0x413fef
mov ecx, 0x4b3350
mov dword [ebp - 4], 0x10
call fcn.0040abf1
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x41ab88
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags

Disassembly:
mov eax, 0x48165c
call fcn.0047e070
sub esp, 0x1c
push ebx
push esi
push edi
mov esi, ecx
push dword [ebp + 8]
lea ecx, [ebp - 0x28]
call fcn.0042cd68
and dword [ebp - 4], 0
mov ecx, eax
call fcn.0042ce3a
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x10], eax
call fcn.0042cd96
push 0
lea ecx, [ebp - 0x1c]
call fcn.0042cd68
push dword [ebp - 0x10]
mov ebx, dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 0x1c]
push 0xa2
push 0x7e
push ebx
push edi
push 7
push 0x3c
push dword [ebp + 8]
mov ecx, esi
mov dword [ebp - 4], 1
push eax
call fcn.0041aacd
push dword [ebp - 0x10]
add ebx, 0x15
add edi, 0xa
mov ecx, esi
push 0xa
push 0x71
push ebx
mov dword [ebp + 0x10], edi
push edi
mov edi, 0x10003
push edi
push 0xe
push dword [ebp + 8]
push esi
call fcn.0041aacd
push dword [ebp - 0x10]
mov eax, dword [ebp + 0xc]
add ebx, 0x10
add eax, 0x17
push 0xa
push 0x5e
push ebx
push eax
push edi
push 0xf
push dword [ebp + 8]
mov dword [ebp + 0xc], eax
lea eax, [esi + 0xc]
mov ecx, esi
push eax
call fcn.0041aacd
push dword [ebp - 0x10]
add ebx, 0x10
lea eax, [esi + 0x18]
mov ecx, esi
push 0xa
push 0x5e
push ebx
push dword [ebp + 0xc]
push edi
push 0x10
push dword [ebp + 8]
push eax
call fcn.0041aacd
push dword [ebp - 0x10]
add ebx, 0x10
push 0xa
push 0x5e
push ebx
push dword [ebp + 0xc]
lea eax, [esi + 0x24]
mov ecx, esi
push edi
push 0x11
push dword [ebp + 8]
push eax
call fcn.0041aacd
push dword [ebp - 0x10]
add ebx, 0x14
lea eax, [esi + 0x30]
mov ecx, esi
push 0xa
push 0x71
push ebx
push dword [ebp + 0x10]
push edi
push 0x12
push dword [ebp + 8]
push eax
call fcn.0041aacd
push dword [ebp - 0x10]
add ebx, 0x10
lea eax, [esi + 0x3c]
mov ecx, esi
push 0xa
push 0x71
push ebx
push dword [ebp + 0x10]
push edi
push 0x13
push dword [ebp + 8]
push eax
call fcn.0041aacd
push dword [ebp - 0x10]
add ebx, 0x10
lea eax, [esi + 0x48]
mov ecx, esi
push 0xa
push 0x71
push ebx
push dword [ebp + 0x10]
push edi
push 0x14
push dword [ebp + 8]
push eax
call fcn.0041aacd
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.0042cd96
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0xc
Function at 0x41d694
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
push esi
xor esi, esi
push edi
push esi
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
jne 0x41d6b4
xor eax, eax
jmp 0x41d705
lea eax, [ebp - 0x128]
mov dword [ebp - pe_nt_image_headers32], 0x128
push eax
push edi
call sub.KERNEL32.dll_Process32First
jmp 0x41d6f0
push dword [ebp + 8]
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.MSVCRT.dll__stricmp]
pop ecx
test eax, eax
pop ecx
je 0x41d6f6
lea eax, [ebp - 0x128]
push eax
push edi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x41d6cd
jmp 0x41d6fc
mov esi, dword [ebp - 0x120]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop edi
pop esi
leave
ret

Function at 0x41d910
Capabilities:
Get session user name
Impersonate user

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xac
push ebx
push esi
push edi
mov esi, ecx
xor edi, edi
mov dword [ebp - 8], esi
mov dword [esi], edi
mov dword [esi + 4], edi
cmp byte [0x4b31d4], 0
je 0x41da42
mov ecx, 0x4b33a8
call fcn.0041d709
cmp eax, edi
mov dword [esi + 4], eax
je 0x41da42
push eax
call dword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
test eax, eax
jne 0x41d971
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ERROR__d_ImpersonateLoggedOnUser__
push str.S:Ammyy_sourcesmainImpersonateWrapper.cpp
push edi
push 0x4b39b0
jmp 0x41da3a
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0x80
push eax
lea eax, [ebp - 0xac]
push eax
mov byte [ebp - 1], 1
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
mov ebx, str.S:Ammyy_sourcesmainImpersonateWrapper.cpp
mov esi, 0x4b39b0
jne 0x41d9b6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ERROR__d_GetUserName__
push ebx
push edi
push esi
call fcn.0041dab3
add esp, 0x14
and byte [ebp - 1], 0
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
test eax, eax
jne 0x41d9d7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ERROR__d_RevertToSelf__
push ebx
push edi
push esi
call fcn.0041dab3
add esp, 0x14
cmp byte [ebp - 1], 0
je 0x41da42
push 7
xor eax, eax
pop ecx
lea edi, [ebp - 0x28]
rep stosd dword es:[edi], eax
mov edi, dword [ebp - 8]
lea eax, [ebp - 0xac]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x2c]
push eax
mov dword [ebp - 0x2c], 0x20
push dword [edi + 4]
mov dword [ebp - 0x28], 1
call dword [sym.imp.USERENV.dll_LoadUserProfileA]
test eax, eax
jne 0x41da20
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ERROR__d_LoadUserProfile__
jmp 0x41da36
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x41da30
cmp eax, 0xffffffff
je 0x41da30
mov dword [edi], eax
jmp 0x41da42
push eax
push str.Invalid_profile_X
push ebx
push 0
push esi
call fcn.0041dab3
add esp, 0x14
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41dbb4
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, 0x481a27
call fcn.0047e070
mov eax, 0x1de4
call fcn.0047e130
push ebx
push esi
push edi
mov esi, ecx
push 0x200
lea ecx, [ebp - 0x24]
call fcn.0042bbba
and dword [ebp - 4], 0
lea ecx, [ebp - 0x38]
call fcn.00454c09
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, eax
push 0x3d
mov edi, ebx
lea ecx, [ebp - 0x24]
shr edi, 7
call fcn.0042bd59
push ebx
lea ecx, [ebp - 0x24]
call fcn.0042bd68
lea eax, [ebp - 0x38]
push 0x10
push eax
lea ecx, [ebp - 0x24]
call fcn.0042bd21
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 8]
test al, al
sete cl
inc cl
test al, al
mov byte [ebp - 0x28], cl
je 0x41dc2e
push 0x37
pop ebx
jmp 0x41dc31
mov ebx, dword [esi + 8]
push edi
lea ecx, [ebp - 0x24]
call fcn.0042bd68
push 0
lea ecx, [ebp - 0x24]
call fcn.0042bd68
call fcn.00423ec1
push eax
lea ecx, [ebp - 0x24]
call fcn.0042bd77
push dword [ebp - 0x28]
lea ecx, [ebp - 0x24]
call fcn.0042bd59
mov eax, dword [0x4b3298]
lea ecx, [ebp - 0x24]
xor eax, 0xfe7ded7b
push eax
call fcn.0042bd77
push ebx
lea ecx, [ebp - 0x24]
call fcn.0042bd77
mov eax, dword [esi]
lea ecx, [ebp - 0x24]
push ecx
mov ecx, esi
call dword [eax + 0x14]
mov ecx, dword [esi + 0xc]
push 1
push 0x4a7284
add ecx, 0xc
call fcn.00429fda
lea ecx, [ebp - 0x1df0]
call fcn.0041ea4b
mov eax, dword [esi + 0xc]
lea ecx, [ebp - 0x1df0]
add eax, 0xc
mov byte [ebp - 4], 1
push eax
call fcn.004284ec
push 0x12
lea ecx, [ebp - 0x24]
call fcn.0042c48e
inc eax
lea ecx, [ebp - 0x1df0]
push eax
call fcn.00429e8a
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x24]
add eax, 0xffffffed
push eax
call fcn.0042c48e
mov ecx, dword [esi + 0xc]
add eax, 0x13
push eax
add ecx, 0xc
call fcn.00429e8a
push 0
lea ecx, [ebp - 0x24]
push dword [ebp - 0x18]
call fcn.0042c48e
push eax
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_send]
cmp eax, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
je 0x41dd31
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
lea eax, [ebp - 0x34]
push str.error_d__while_sending_Initial_msg
push eax
call fcn.0041ea4e
add esp, 0xc
lea eax, [ebp - 0x34]
push 0x496330
push eax
call sub.MSVCRT.dll__CxxThrowException
and byte [ebp - 4], 0
lea ecx, [ebp - 0x1df0]
call fcn.004284eb
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.0042bc46
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret 4
Function at 0x41e7d4
Capabilities:
Check for time delay via gettickcount
Receive data
Receive data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
mov esi, dword [ebp + 0x14]
mov ebx, eax
and dword [ebp + 0x14], 0
lea eax, [ebp + 0x14]
push eax
push 0x4004667f
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_ioctlsocket]
cmp dword [ebp + 0x14], esi
jae 0x41e836
call edi
sub eax, ebx
cmp eax, dword [ebp + 0xc]
ja 0x41e818
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x41e7ea
lea eax, [ebp - 0xc]
push str.Routers_Initial_reply_timeout_is_expired
push eax
call fcn.0041ea4e
pop ecx
lea eax, [ebp - 0xc]
pop ecx
push 0x496330
push eax
call sub.MSVCRT.dll__CxxThrowException
push 0
push esi
push dword [ebp + 0x10]
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, esi
je 0x41e86f
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
lea eax, [ebp - 0xc]
push str.ReadNonBlock___error_d
push eax
call fcn.0041ea4e
add esp, 0xc
lea eax, [ebp - 0xc]
push 0x496330
push eax
call sub.MSVCRT.dll__CxxThrowException
pop edi
pop esi
pop ebx
leave
ret 0x10

Function at 0x41e9c4
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 4]
push eax
push 0
push ecx
push 0x41ea3d
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x41ea0a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x10]
push str.CreateThread___Error__d
push eax
call fcn.0042a481
add esp, 0xc
lea eax, [ebp - 0x10]
push 0x4924b4
push eax
call sub.MSVCRT.dll__CxxThrowException
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x41ea3b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x10]
push str.CloseHandle___Error__d
push eax
call fcn.0042a481
add esp, 0xc
lea eax, [ebp - 0x10]
push 0x4924b4
push eax
call sub.MSVCRT.dll__CxxThrowException
leave
ret