joyce8/EMBER2024-capa huggingface dataset:
Function at 0x7c867100
Capabilities:
Clear file content

Disassembly:
mov eax, 0x1004
call fcn.7c860540
push ebx
mov ebx, dword [esp + 0x100c]
push ebp
push esi
push edi
xor ebp, ebp
push 1
push ebp
push ebx
call fcn.7c8613f0
mov edi, eax
add esp, 0xc
cmp edi, 0xffffffff
mov dword [esp + 0x10], edi
je 0x7c867240
push 2
push ebp
push ebx
call fcn.7c8613f0
add esp, 0xc
cmp eax, 0xffffffff
je 0x7c867240
mov ecx, dword [esp + 0x101c]
mov esi, ecx
sub esi, eax
test esi, esi
jle 0x7c8671e1
mov ecx, 0x400
xor eax, eax
lea edi, [esp + 0x14]
push 0x8000
rep stosd dword es:[edi], eax
push ebx
call fcn.7c862090
add esp, 8
mov edi, eax
cmp esi, 0x1000
mov eax, 0x1000
jge 0x7c867186
mov eax, esi
push eax
lea eax, [esp + 0x18]
push eax
push ebx
call fcn.7c860eb0
add esp, 0xc
cmp eax, 0xffffffff
je 0x7c8671a2
sub esi, eax
test esi, esi
jle 0x7c8671ba
jmp 0x7c867177
call fcn.7c863fe0
cmp dword [eax], 5
jne 0x7c8671b7
call fcn.7c863fd0
mov dword [eax], 0xd
or ebp, 0xffffffff
push edi
push ebx
call fcn.7c862090
mov edi, dword [esp + 0x18]
add esp, 8
push 0
push edi
push ebx
call fcn.7c8613f0
add esp, 0xc
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1004
ret
jge 0x7c867227
push 0
push ecx
push ebx
call fcn.7c8613f0
add esp, 0xc
push ebx
call fcn.7c866ed0
add esp, 4
push eax
call dword [0x7c87b354]
mov ebp, eax
neg ebp
sbb ebp, ebp
neg ebp
dec ebp
cmp ebp, 0xffffffff
jne 0x7c867227
call fcn.7c863fd0
mov dword [eax], 0xd
call dword [0x7c87b254]
mov esi, eax
call fcn.7c863fe0
mov dword [eax], esi
push 0
push edi
push ebx
call fcn.7c8613f0
add esp, 0xc
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1004
ret
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x1004
ret
Function at 0x7c86b050
Capabilities:
Get geographical location

Disassembly:
mov eax, dword [0x7c878de4]
push ebx
push ebp
push esi
mov esi, dword [0x7c87b228]
push edi
test eax, eax
jne 0x7c86b098
push 0
push 0
push 1
push 0
call esi
test eax, eax
je 0x7c86b078
mov eax, 1
jmp 0x7c86b093
push 0
push 0
push 1
push 0
call dword [0x7c87b2cc]
test eax, eax
je 0x7c86b169
mov eax, 2
mov dword [0x7c878de4], eax
cmp eax, 1
jne 0x7c86b0b8
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x18]
push ecx
push edx
push eax
call esi
pop edi
pop esi
pop ebp
pop ebx
ret
cmp eax, 2
jne 0x7c86b17b
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x7c86b0d3
mov ecx, dword [0x7c878b10]
mov dword [esp + 0x24], ecx
mov ebx, dword [esp + 0x18]
mov ebp, dword [esp + 0x14]
push 0
push 0
push ebx
push ebp
call dword [0x7c87b2cc]
mov esi, eax
test esi, esi
jne 0x7c86b0f2
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
call fcn.7c862f90
mov edi, eax
add esp, 4
test edi, edi
jne 0x7c86b106
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
push edi
push ebx
push ebp
call dword [0x7c87b2cc]
test eax, eax
je 0x7c86b160
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x7c86b144
mov edx, dword [esp + 0x24]
push eax
push eax
push 0xffffffffffffffff
push edi
push 1
push edx
call dword [0x7c87b30c]
mov esi, eax
test esi, esi
je 0x7c86b160
push edi
call fcn.7c862330
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, dword [esp + 0x24]
push eax
mov eax, dword [esp + 0x20]
push eax
push 0xffffffffffffffff
push edi
push 1
push ecx
call dword [0x7c87b30c]
mov esi, eax
test esi, esi
jne 0x7c86b170
push edi
call fcn.7c862330
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
push edi
call fcn.7c862330
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x7c86b180
Capabilities:
Get geographical location

Disassembly:
mov eax, dword [0x7c878de8]
push ebx
push ebp
push esi
mov esi, dword [0x7c87b2cc]
push edi
test eax, eax
jne 0x7c86b1c8
push 0
push 0
push 1
push 0
call esi
test eax, eax
je 0x7c86b1a8
mov eax, 2
jmp 0x7c86b1c3
push 0
push 0
push 1
push 0
call dword [0x7c87b228]
test eax, eax
je 0x7c86b2a8
mov eax, 1
mov dword [0x7c878de8], eax
cmp eax, 2
jne 0x7c86b1e8
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x18]
push ecx
push edx
push eax
call esi
pop edi
pop esi
pop ebp
pop ebx
ret
cmp eax, 1
jne 0x7c86b2ba
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x7c86b203
mov ecx, dword [0x7c878b10]
mov dword [esp + 0x24], ecx
mov ebx, dword [esp + 0x18]
mov ebp, dword [esp + 0x14]
push 0
push 0
push ebx
push ebp
call dword [0x7c87b228]
mov edi, eax
test edi, edi
jne 0x7c86b222
pop edi
pop esi
pop ebp
pop ebx
ret
lea edx, [edi + edi]
push edx
call fcn.7c862f90
mov esi, eax
add esp, 4
test esi, esi
jne 0x7c86b239
pop edi
pop esi
pop ebp
pop ebx
ret
push edi
push esi
push ebx
push ebp
call dword [0x7c87b228]
test eax, eax
je 0x7c86b29f
mov eax, dword [esp + 0x20]
push 0
test eax, eax
push 0
jne 0x7c86b280
mov eax, dword [esp + 0x2c]
push 0
push 0
push 0xffffffffffffffff
push esi
push 0x220
push eax
call dword [0x7c87b310]
mov edi, eax
test edi, edi
je 0x7c86b29f
push esi
call fcn.7c862330
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x2c]
push eax
push ecx
push 0xffffffffffffffff
push esi
push 0x220
push edx
call dword [0x7c87b310]
mov edi, eax
test edi, edi
jne 0x7c86b2af
push esi
call fcn.7c862330
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
call fcn.7c862330
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x4015d0
Capabilities:
Create a process with modified i/o handles and window
Create pipe
Create process on windows
Create process suspended
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x4ac
lea eax, [ebp - 0x47c]
mov dword [esp + 8], eax
lea eax, [ebp - 0x484]
mov dword [esp + 4], eax
lea eax, [ebp - 0x488]
mov dword [ebp - 0x47c], 0xc
mov dword [ebp - 0x478], 0
mov dword [ebp - 0x474], 1
mov dword [esp + 0xc], 0
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CreatePipe]
sub esp, 0x10
test eax, eax
jne 0x401634
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
lea ebx, [ebp - 0x460]
mov dword [esp], ebx
mov edi, ebx
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
xor eax, eax
mov ecx, 0x11
rep stosd dword es:[edi], eax
mov eax, dword [ebp - 0x484]
mov dword [ebp - 0x460], 0x44
mov dword [ebp - 0x434], 0x101
mov dword [ebp - 0x420], eax
sub esp, 4
mov dword [ebp - 0x424], eax
lea eax, [ebp - 0x470]
mov dword [esp + 0x24], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 1
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov eax, dword [eax]
mov dword [esp], 0
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
sub esp, 0x28
test eax, eax
je 0x40162c
mov eax, dword [ebp - 0x484]
lea ebx, [ebp - 0x419]
mov edi, ebx
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x48c], eax
call eax
mov edx, 0x401
sub esp, 4
test bl, 1
jne 0x4017b4
test edi, 2
jne 0x4017a3
mov ecx, edx
xor eax, eax
shr ecx, 2
test dl, 2
rep stosd dword es:[edi], eax
jne 0x401795
and edx, 1
jne 0x401790
mov dword [ebp - 0x480], 0
lea esi, [ebp - 0x480]
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
jmp 0x40174e
mov eax, dword [ebp - 0x480]
mov byte [ebp + eax - 0x419], 0
mov eax, dword [ebp - 0x488]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0x400
mov dword [esp + 4], ebx
mov dword [esp], eax
call edi
sub esp, 0x14
test eax, eax
jne 0x401740
mov eax, dword [ebp - 0x488]
mov dword [esp], eax
call dword [ebp - 0x48c]
sub esp, 4
jmp 0x40162c
mov byte [edi], 0
jmp 0x401724
xor eax, eax
add edi, 2
mov word [edi - 2], ax
jmp 0x40171f
xor ecx, ecx
add edi, 2
mov word [edi - 2], cx
sub edx, 2
jmp 0x401711
mov byte [ebp - 0x419], 0
lea edi, [ebp - 0x418]
xor dl, dl
jmp 0x401705
Function at 0x401c40
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x120
lea ebx, [ebp - 0x10c]
mov dword [esp + 4], ebx
mov dword [esp], 0xfc
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov edx, ebx
sub esp, 8
mov ecx, dword [edx]
add edx, 4
lea eax, [ecx - 0x1010101]
not ecx
and eax, ecx
and eax, 0x80808080
je 0x401c67
mov ecx, eax
shr ecx, 0x10
test eax, 0x8080
cmove eax, ecx
lea ecx, [edx + 2]
cmove edx, ecx
add al, al
sbb edx, 3
mov dword [edx], 0x2e626461
mov dword [edx + 4], 0x676f6c
mov dword [esp + 4], 0x4b10ba
mov dword [esp], 0x4b10bd
call sub.msvcrt.dll_fopen
test eax, eax
mov esi, eax
je 0x401cef
mov edx, dword [esi]
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [eax], edx
mov edx, dword [esi + 4]
mov dword [eax + 4], edx
mov edx, dword [esi + 8]
mov dword [eax + 8], edx
mov edx, dword [esi + 0xc]
mov dword [eax + 0xc], edx
mov edx, dword [esi + 0x10]
mov dword [eax + 0x10], edx
mov edx, dword [esi + 0x14]
mov dword [eax + 0x14], edx
mov edx, dword [esi + 0x18]
mov dword [eax + 0x18], edx
mov edx, dword [esi + 0x1c]
mov dword [eax + 0x1c], edx
mov dword [esp], ebx
mov dword [esp + 4], 0x4b10c1
call sub.msvcrt.dll_fopen
mov dword [esp + 0xc], 0
mov dword [esp + 8], 4
mov dword [esp + 4], 0
test eax, eax
mov ebx, eax
cmove ebx, esi
mov dword [esp], ebx
call sub.msvcrt.dll_setvbuf
mov edx, dword [ebx]
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [eax + 0x20], edx
mov edx, dword [ebx + 4]
mov dword [eax + 0x24], edx
mov edx, dword [ebx + 8]
mov dword [eax + 0x28], edx
mov edx, dword [ebx + 0xc]
mov dword [eax + 0x2c], edx
mov edx, dword [ebx + 0x10]
mov dword [eax + 0x30], edx
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x34], edx
mov edx, dword [ebx + 0x18]
mov dword [eax + 0x38], edx
mov edx, dword [ebx + 0x1c]
mov dword [eax + 0x3c], edx
mov edx, dword [ebx]
mov dword [eax + 0x40], edx
mov edx, dword [ebx + 4]
mov dword [eax + 0x44], edx
mov edx, dword [ebx + 8]
mov dword [eax + 0x48], edx
mov edx, dword [ebx + 0xc]
mov dword [eax + 0x4c], edx
mov edx, dword [ebx + 0x10]
mov dword [eax + 0x50], edx
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x54], edx
mov edx, dword [ebx + 0x18]
mov dword [eax + 0x58], edx
mov edx, dword [ebx + 0x1c]
mov dword [eax + 0x5c], edx
call sub.msvcrt.dll__getpid
mov dword [esp + 4], str.____adb_starting__pid__d______n
mov dword [esp + 8], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call fcn.0049fc30
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
Function at 0x401dc0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x3c
call fcn.004019d0
lea ebx, [ebp - 0x20]
mov dword [esp], 0x4019c0
call fcn.00491bc0
mov dword [esp + 4], 1
mov dword [esp], 0x401510
call dword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
sub esp, 8
call fcn.00411230
mov dword [0x4f3064], 1
call fcn.0040e020
mov dword [esp], 0x15b3
call fcn.00413330
call fcn.00415490
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], str.tcp:_d
mov dword [esp], ebx
mov dword [esp + 8], eax
call fcn.00421270
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x4b10ea
mov dword [esp], ebx
call fcn.00415b50
test eax, eax
jne 0x401f67
mov edx, dword [ebp + 8]
test edx, edx
jne 0x401f22
test byte [0x4f3060], 1
je 0x401f00
mov ebx, dword [sym.imp.msvcrt.dll__errno]
call ebx
mov esi, dword [eax]
mov dword [esp], 0x4f3068
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
sub esp, 4
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edi, eax
call sub.msvcrt.dll__getpid
mov dword [esp + 0x10], edi
mov dword [esp + 8], str.adb_main
mov dword [esp + 4], 0x4b10fc
mov dword [esp + 0xc], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call fcn.0049fc30
call ebx
mov dword [eax], esi
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 4], str.Event_loop_starting_n
add eax, 0x40
mov dword [esp], eax
call fcn.0049fc30
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sub.msvcrt.dll_fflush
mov dword [esp], 0x4f3068
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
call ebx
mov dword [eax], esi
call fcn.0041ac10
call fcn.0040e060
mov eax, dword [ebp - 0x20]
lea ebx, [eax - 0xc]
cmp ebx, 0x4b0f44
jne 0x401f73
lea esp, [ebp - 0xc]
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], 0xfffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
lea edx, [ebp - 0x1c]
sub esp, 4
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], 0
mov dword [esp + 8], 3
mov dword [esp + 4], 0x4b10f8
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
sub esp, 0x14
call fcn.00401c40
jmp 0x401e64
mov dword [esp], 1
call sub.msvcrt.dll_exit
cmp dword [0x4ac46c], 0
jne 0x401f9e
mov edx, dword [eax - 4]
lea ecx, [edx - 1]
mov dword [eax - 4], ecx
mov eax, edx
test eax, eax
jg 0x401f18
lea eax, [ebp - 0x1c]
mov ecx, ebx
mov dword [esp], eax
call fcn.004a5860
push eax
jmp 0x401f18
sub eax, 4
call fcn.004aab90
jmp 0x401f87
Function at 0x4021b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, eax
push esi
push ebx
sub esp, 0x22c
test eax, eax
js 0x4023b6
lea esi, [ebp - 0x218]
jmp 0x40222b
mov dword [esp + 8], 0x200
mov dword [esp + 4], esi
mov dword [esp], edi
call fcn.00418e20
test byte [0x4f3060], 1
mov ebx, eax
jne 0x4022e0
test ebx, ebx
jle 0x4023b6
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], ebx
mov dword [esp + 4], 1
mov dword [esp], esi
add eax, 0x20
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_fwrite
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x20
mov dword [esp], eax
call sub.msvcrt.dll_fflush
test byte [0x4f3060], 1
je 0x4021d0
call dword [sym.imp.msvcrt.dll__errno]
mov ebx, dword [eax]
mov dword [esp], 0x4f3068
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
sub esp, 4
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebp - 0x21c], eax
call sub.msvcrt.dll__getpid
mov edx, dword [ebp - 0x21c]
mov dword [esp + 8], str.read_and_dump
mov dword [esp + 4], 0x4b120b
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call fcn.0049fc30
call dword [sym.imp.msvcrt.dll__errno]
mov dword [eax], ebx
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], edi
mov dword [esp + 4], str.read_and_dump__:_pre_adb_read_fd_d__n
add eax, 0x40
mov dword [esp], eax
call fcn.0049fc30
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sub.msvcrt.dll_fflush
mov dword [esp], 0x4f3068
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
call dword [sym.imp.msvcrt.dll__errno]
mov dword [eax], ebx
jmp 0x4021d0
mov edx, dword [sym.imp.msvcrt.dll__errno]
mov dword [ebp - 0x224], edx
call edx
mov eax, dword [eax]
mov dword [esp], 0x4f3068
mov dword [ebp - 0x21c], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
sub esp, 4
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebp - 0x220], eax
call sub.msvcrt.dll__getpid
mov edx, dword [sym.imp.msvcrt.dll__iob]
mov ecx, dword [ebp - 0x220]
mov dword [esp + 8], str.read_and_dump
mov dword [esp + 4], 0x4b120b
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], eax
lea eax, [edx + 0x40]
mov dword [esp], eax
call fcn.0049fc30
mov edx, dword [ebp - 0x224]
mov dword [ebp - 0x220], edx
call edx
mov ecx, dword [ebp - 0x21c]
mov dword [eax], ecx
mov edx, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 0xc], ebx
mov dword [esp + 8], edi
mov dword [esp + 4], str.read_and_dump__:_post_adb_read_fd_d_:_len_d_n
lea eax, [edx + 0x40]
mov dword [esp], eax
call fcn.0049fc30
mov edx, dword [sym.imp.msvcrt.dll__iob]
lea eax, [edx + 0x40]
mov dword [esp], eax
call sub.msvcrt.dll_fflush
mov dword [esp], 0x4f3068
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edx, dword [ebp - 0x220]
sub esp, 4
call edx
mov ecx, dword [ebp - 0x21c]
test ebx, ebx
mov dword [eax], ecx
jg 0x4021fb
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x40e020
Capabilities:
Create thread

Disassembly:
sub esp, 0x1c
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], 0x40f070
call dword [sym.imp.msvcrt.dll__beginthread]
cmp eax, 0xffffffff
je 0x40e050
add esp, 0x1c
ret
mov dword [esp], 0x4b5c20
call fcn.0040b990
add esp, 0x1c
ret
Function at 0x413070
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x3c
mov esi, dword [ebp + 0xc]
mov dword [esp], str.ADBHOST
call sub.msvcrt.dll_getenv
test eax, eax
je 0x413137
mov dword [esp + 8], 1
mov dword [esp + 4], esi
mov dword [esp], eax
call fcn.00419880
test eax, eax
mov ebx, eax
js 0x413137
test byte [0x4f3060], 8
jne 0x41315f
lea edi, [ebp - 0x1c]
mov dword [esp + 0x10], 4
mov dword [esp + 0xc], edi
mov dword [esp + 8], 1
mov dword [esp + 4], 6
mov dword [esp], ebx
mov dword [ebp - 0x1c], 1
call fcn.0041a210
mov eax, dword [ebp + 8]
mov dword [esp + 4], str.emulator__d
mov dword [esp], edi
mov dword [esp + 8], eax
call fcn.00421270
mov eax, dword [ebp - 0x1c]
mov dword [esp + 0xc], 1
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call fcn.00412120
mov eax, dword [ebp - 0x1c]
lea ecx, [eax - 0xc]
cmp ecx, 0x4b0f44
jne 0x413207
xor eax, eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 4], 1
mov dword [esp], esi
call fcn.00419180
mov ebx, eax
mov eax, 0xffffffff
test ebx, ebx
js 0x41312f
test byte [0x4f3060], 8
je 0x4130bb
mov edi, dword [sym.imp.msvcrt.dll__errno]
call edi
mov eax, dword [eax]
mov dword [esp], 0x4f3068
mov dword [ebp - 0x2c], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
sub esp, 4
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebp - 0x30], eax
call sub.msvcrt.dll__getpid
mov ecx, dword [ebp - 0x30]
mov dword [esp + 8], str.local_connect_arbitrary_ports
mov dword [esp + 4], 0x4b6980
mov dword [esp + 0x10], ecx
mov ecx, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 0xc], eax
lea eax, [ecx + 0x40]
mov dword [esp], eax
call fcn.004128c0
call edi
mov edx, dword [ebp - 0x2c]
mov dword [eax], edx
mov ecx, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], ebx
mov dword [esp + 4], str.client:_connected_on_remote_on_fd__d_n
lea eax, [ecx + 0x40]
mov dword [esp], eax
call fcn.004128c0
mov ecx, dword [sym.imp.msvcrt.dll__iob]
lea eax, [ecx + 0x40]
mov dword [esp], eax
call sub.msvcrt.dll_fflush
mov dword [esp], 0x4f3068
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
call edi
mov edx, dword [ebp - 0x2c]
mov dword [eax], edx
jmp 0x4130bb
cmp dword [0x4ac46c], 0
jne 0x413234
mov edx, dword [eax - 4]
lea ebx, [edx - 1]
mov dword [eax - 4], ebx
mov eax, edx
test eax, eax
jg 0x41312d
lea eax, [ebp - 0x1d]
mov dword [esp], eax
call fcn.004a5860
push eax
jmp 0x41312d
or edx, 0xffffffff
lock xadd dword [eax - 4], edx
mov eax, edx
jmp 0x41321b
Function at 0x413330
Capabilities:
Create thread

Disassembly:
push ebp
mov eax, 0x4128f0
mov ebp, esp
push edi
push esi
push ebx
mov ebx, 0x413260
sub esp, 0x2c
mov esi, dword [0x4f3064]
test esi, esi
cmove ebx, eax
test byte [0x4f3060], 8
jne 0x413380
mov eax, dword [ebp + 8]
mov dword [esp + 4], 0
mov dword [esp], ebx
mov dword [esp + 8], eax
call dword [sym.imp.msvcrt.dll__beginthread]
cmp eax, 0xffffffff
je 0x413431
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov esi, dword [sym.imp.msvcrt.dll__errno]
call esi
mov edi, dword [eax]
mov dword [esp], 0x4f3068
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
sub esp, 4
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebp - 0x1c], eax
call sub.msvcrt.dll__getpid
mov edx, dword [ebp - 0x1c]
mov dword [esp + 8], str.local_init
mov dword [esp + 4], 0x4b6980
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call fcn.004128c0
call esi
mov edx, 0x4b6b57
mov dword [eax], edi
mov ecx, dword [0x4f3064]
mov eax, 0x4b6b50
mov dword [esp + 4], str.transport:_local__s_init_n
test ecx, ecx
cmove eax, edx
mov dword [esp + 8], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call fcn.004128c0
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sub.msvcrt.dll_fflush
mov dword [esp], 0x4f3068
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
call esi
mov dword [eax], edi
jmp 0x413357
mov edx, dword [0x4f3064]
mov eax, 0x4b6b50
mov dword [esp], str.cannot_create_local_socket__s_thread
test edx, edx
mov edx, 0x4b6b57
cmove eax, edx
mov dword [esp + 4], eax
call fcn.0040b990
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x41a210
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2c
mov eax, dword [ebp + 8]
call fcn.00416b40
test eax, eax
je 0x41a231
cmp dword [eax], 0x4b87d0
je 0x41a2f4
test byte [0x4f3060], 0x80
mov esi, 0xffffffff
jne 0x41a250
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
mov ebx, dword [sym.imp.msvcrt.dll__errno]
call ebx
mov edi, dword [eax]
mov dword [esp], 0x4f3068
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
sub esp, 4
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebp - 0x1c], eax
call sub.msvcrt.dll__getpid
mov ecx, dword [ebp - 0x1c]
mov dword [esp + 8], str.adb_setsockopt
mov dword [esp + 4], 0x4b7278
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call fcn.0049fc30
call ebx
mov dword [eax], edi
mov eax, dword [ebp + 8]
mov dword [esp + 4], str.adb_setsockopt:_invalid_fd__d_n
mov dword [esp + 8], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call fcn.0049fc30
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sub.msvcrt.dll_fflush
mov dword [esp], 0x4f3068
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
call ebx
mov dword [eax], edi
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
mov edx, dword [ebp + 0x18]
mov dword [esp + 0x10], edx
mov edx, dword [ebp + 0x14]
mov dword [esp + 0xc], edx
mov edx, dword [ebp + 0x10]
mov dword [esp + 8], edx
mov edx, dword [ebp + 0xc]
mov dword [esp + 4], edx
mov eax, dword [eax + 0xc]
mov dword [esp], eax
call dword [sym.imp.WS2_32.dll_setsockopt]
sub esp, 0x14
mov esi, eax
jmp 0x41a23f
Function at 0x427020
Capabilities:
Encode data using base64

Disassembly:
push ebp
push edi
push esi
push ebx
mov esi, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
test esi, esi
je 0x42712b
xor eax, eax
lea esi, [esi]
cmp esi, 2
jbe 0x4270b0
movzx ebp, byte [ebx]
add edx, 4
add eax, 4
movzx edi, byte [ebx + 1]
add ebx, 3
shl ebp, 0x10
shl edi, 8
or ebp, edi
movzx edi, byte [ebx - 1]
or ebp, edi
mov edi, ebp
shr edi, 0x12
movzx ecx, byte [edi + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov edi, ebp
shr edi, 0xc
and edi, 0x3f
mov byte [edx - 4], cl
movzx ecx, byte [edi + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov edi, ebp
shr edi, 6
and edi, 0x3f
mov byte [edx - 3], cl
movzx ecx, byte [edi + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edx - 2], cl
mov ecx, ebp
and ecx, 0x3f
sub esi, 3
movzx ecx, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edx - 1], cl
jne 0x427040
mov ecx, edx
jmp 0x4270eb
movzx ecx, byte [ebx]
shl ecx, 0x10
cmp esi, 2
je 0x4270f3
mov ebx, ecx
shr ecx, 0xc
shr ebx, 0x12
and ecx, 0x3f
movzx ecx, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
movzx ebx, byte [ebx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edx + 1], cl
mov ecx, 0x3d
mov byte [edx], bl
mov byte [edx + 2], cl
add eax, 4
lea ecx, [edx + 4]
mov byte [edx + 3], 0x3d
mov byte [ecx], 0
pop ebx
pop esi
pop edi
pop ebp
ret
movzx ebx, byte [ebx + 1]
shl ebx, 8
or ebx, ecx
mov ecx, ebx
shr ecx, 0x12
movzx ecx, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edx], cl
mov ecx, ebx
shr ecx, 0xc
and ecx, 0x3f
movzx ecx, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
shr ebx, 6
and ebx, 0x3f
mov byte [edx + 1], cl
movzx ecx, byte [ebx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
jmp 0x4270de
mov ecx, edx
xor eax, eax
jmp 0x4270eb