joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4108d0
Capabilities:
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x480160]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
mov eax, 0x4710f8
call fcn.0040f410
mov esi, eax
test esi, esi
je 0x41095e
cmp dword [0x491608], 0
jne 0x410901
call fcn.004101b0
mov ebx, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov eax, 2
push ebx
mov word [ebp - 0x18], ax
call dword [sym.imp.WS2_32.dll_htons]
push 0
mov word [ebp - 0x16], ax
call dword [sym.imp.WS2_32.dll_htonl]
push 0
push 1
push 2
mov dword [ebp - 0x14], eax
call dword [sym.imp.WS2_32.dll_socket]
mov edi, eax
cmp edi, 0xffffffff
jne 0x410972
xor edi, edi
cmp dword [esi + 4], edi
je 0x41095e
mov ecx, dword [esi]
mov edx, dword [ecx + 4]
push esi
call edx
add esp, 4
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov dword [esi], edi
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00459ce1
mov esp, ebp
pop ebp
ret
push 4
lea eax, [ebp - 0x1c]
push eax
push 0xfffffffffffffffb
push 0xffff
mov dword [esi + 0xc], edi
push edi
mov dword [ebp - 0x1c], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
push 0x10
lea ecx, [ebp - 0x18]
push ecx
push edi
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
jns 0x4109cf
xor edi, edi
cmp dword [esi + 4], edi
je 0x41095e
mov edx, dword [esi]
mov eax, dword [edx + 4]
push esi
call eax
add esp, 4
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov dword [esi], edi
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00459ce1
mov esp, ebp
pop ebp
ret
push 4
push edi
call dword [sym.imp.WS2_32.dll_listen]
test eax, eax
jns 0x4109f5
call fcn.0040f530
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00459ce1
mov esp, ebp
pop ebp
ret
push ebx
push 0x46f8ad
mov eax, esi
call fcn.0040f3d0
push eax
push str._d_any_server:_s_d_
lea ecx, [esi + 0x18]
push 0x20
push ecx
call dword [sym.imp.MSVCR100.dll__snprintf]
add esp, 0x18
test byte [0x4815b8], 0x80
je 0x410aaa
mov edi, dword [sym.imp.MSVCR100.dll__errno]
call edi
mov ebx, dword [eax]
push 0x4815a0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push str.socket_inaddr_any_server
push str.sysdeps_win32.cpp
push str._s::_s__:
call dword [sym.imp.MSVCR100.dll___iob_func]
add eax, 0x40
push eax
call dword [sym.imp.MSVCR100.dll_fprintf]
add esp, 0x10
call edi
mov dword [eax], ebx
mov eax, esi
call fcn.0040f3d0
mov edx, dword [ebp + 8]
push eax
push 0x4712dc
push edx
push str.socket_inaddr_server:_port__d_type__s___fd__d_n
call dword [sym.imp.MSVCR100.dll___iob_func]
add eax, 0x40
push eax
call dword [sym.imp.MSVCR100.dll_fprintf]
add esp, 0x14
call dword [sym.imp.MSVCR100.dll___iob_func]
add eax, 0x40
push eax
call dword [sym.imp.MSVCR100.dll_fflush]
add esp, 4
push 0x4815a0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call edi
mov dword [eax], ebx
mov eax, esi
call fcn.0040f3d0
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00459ce1
mov esp, ebp
pop ebp
ret
Function at 0x4161a0
Capabilities:
Query environment variable
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x4c
mov eax, dword [0x480160]
xor eax, esp
mov dword [esp + 0x48], eax
push ebx
push esi
push edi
push str.ADBHOST
call dword [sym.imp.MSVCR100.dll_getenv]
add esp, 4
test eax, eax
je 0x4161dd
mov ecx, dword [ebp + 0xc]
push ecx
mov ecx, eax
call fcn.004106d0
mov esi, eax
add esp, 4
test esi, esi
jns 0x4161f3
mov edx, dword [ebp + 0xc]
push edx
call fcn.00410220
mov esi, eax
add esp, 4
test esi, esi
js 0x4162e1
test byte [0x4815b8], 8
je 0x416272
mov edi, dword [sym.imp.MSVCR100.dll__errno]
call edi
mov ebx, dword [eax]
push 0x4815a0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push str.local_connect_arbitrary_ports
push str.transport_local.cpp
push str._s::_s__:
call dword [sym.imp.MSVCR100.dll___iob_func]
add eax, 0x40
push eax
call dword [sym.imp.MSVCR100.dll_fprintf]
add esp, 0x10
call edi
push esi
push str.client:_connected_on_remote_on_fd__d_n
mov dword [eax], ebx
call dword [sym.imp.MSVCR100.dll___iob_func]
add eax, 0x40
push eax
call dword [sym.imp.MSVCR100.dll_fprintf]
add esp, 0xc
call dword [sym.imp.MSVCR100.dll___iob_func]
add eax, 0x40
push eax
call dword [sym.imp.MSVCR100.dll_fflush]
add esp, 4
push 0x4815a0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call edi
mov dword [eax], ebx
push esi
call fcn.0040f2b0
add esp, 4
test eax, eax
je 0x41629c
cmp dword [eax], 0x4710f8
jne 0x41629c
mov edx, dword [eax + 0xc]
push 4
lea ecx, [esp + 0x10]
push ecx
push 1
push 6
push edx
call dword [sym.imp.WS2_32.dll_setsockopt]
mov eax, dword [ebp + 8]
push eax
push str.emulator_
push str._s_d
lea ecx, [esp + 0x1c]
push 0x40
push ecx
call dword [sym.imp.MSVCR100.dll__snprintf]
mov edx, dword [ebp + 0xc]
add esp, 0x14
push 1
push edx
push esi
lea ecx, [esp + 0x1c]
call fcn.00415420
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.00459ce1
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x54]
pop edi
pop esi
pop ebx
xor ecx, esp
or eax, 0xffffffff
call fcn.00459ce1
mov esp, ebp
pop ebp
ret
Function at 0x416670
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [0x4936e0], 0
mov dword [ebp - 4], 0x416300
jne 0x41668b
mov dword [ebp - 4], 0x4163c0
test byte [0x4815b8], 8
je 0x41671e
push ebx
push esi
mov esi, dword [sym.imp.MSVCR100.dll__errno]
push edi
call esi
mov edi, dword [eax]
push 0x4815a0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [sym.imp.MSVCR100.dll___iob_func]
push str.local_init
push str.transport_local.cpp
push str._s::_s__:
call ebx
add eax, 0x40
push eax
call dword [sym.imp.MSVCR100.dll_fprintf]
add esp, 0x10
call esi
cmp dword [0x4936e0], 0
mov dword [eax], edi
mov eax, str.client
jne 0x4166eb
mov eax, str.server
push eax
push str.transport:_local__s_init_n
call ebx
add eax, 0x40
push eax
call dword [sym.imp.MSVCR100.dll_fprintf]
call ebx
add eax, 0x40
push eax
call dword [sym.imp.MSVCR100.dll_fflush]
add esp, 0x10
push 0x4815a0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call esi
mov dword [eax], edi
pop edi
pop esi
pop ebx
mov eax, dword [ebp - 4]
push 0x15b3
push 0
push eax
call dword [sym.imp.MSVCR100.dll__beginthread]
add esp, 0xc
cmp eax, 0xffffffff
jne 0x416755
cmp dword [0x4936e0], 0
mov eax, str.client
jne 0x41674a
mov eax, str.server
push eax
push str.cannot_create_local_socket__s_thread
call fcn.00401060
mov esp, ebp
pop ebp
ret

Function at 0x416e70
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x480160]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov ecx, 0x31
mov esi, 0x4801b0
mov edi, 0x4934c8
rep movsd dword es:[edi], dword [esi]
lea esi, [ebp - 0x108]
mov dword [0x4937f8], 0x31
call fcn.00416fb0
test eax, eax
jne 0x416f6f
mov eax, esi
push 0x46ea00
push eax
call dword [sym.imp.MSVCR100.dll_fopen]
mov esi, eax
add esp, 8
mov dword [ebp - 0x10c], esi
test esi, esi
je 0x416f6f
push esi
lea ecx, [ebp - 0x108]
push 0x104
push ecx
call dword [sym.imp.MSVCR100.dll_fgets]
add esp, 0xc
test eax, eax
je 0x416f6f
mov edi, dword [sym.imp.MSVCR100.dll__errno]
push ebx
mov ebx, dword [sym.imp.MSVCR100.dll_strtol]
nop
cmp byte [ebp - 0x108], 0x23
je 0x416f54
push 0
lea edx, [ebp - 0x108]
push 0
push edx
call ebx
add esp, 0xc
mov esi, eax
call edi
cmp dword [eax], 0x16
je 0x416f7f
call edi
cmp dword [eax], 0x22
je 0x416f7f
cmp esi, 0x7fffffff
jg 0x416f7f
test esi, esi
js 0x416f7f
mov eax, dword [0x4937f8]
mov dword [eax*4 + 0x4934c8], esi
inc eax
mov dword [0x4937f8], eax
cmp eax, 0x80
je 0x416f6e
mov esi, dword [ebp - 0x10c]
push esi
lea eax, [ebp - 0x108]
push 0x104
push eax
call dword [sym.imp.MSVCR100.dll_fgets]
add esp, 0xc
test eax, eax
jne 0x416f00
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00459ce1
mov esp, ebp
pop ebp
ret
push str.adb_usb.ini
push str.Invalid_content_in__s._Quitting._n
call dword [sym.imp.MSVCR100.dll___iob_func]
add eax, 0x40
push eax
call dword [sym.imp.MSVCR100.dll_fprintf]
add esp, 0xc
push 2
call dword [sym.imp.MSVCR100.dll_exit]
int3
Function at 0x416fb0
Capabilities:
Get common file path
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x480160]
xor eax, ebp
mov dword [ebp - 4], eax
push str.ANDROID_SDK_HOME
call dword [sym.imp.MSVCR100.dll_getenv]
add esp, 4
test eax, eax
jne 0x416fed
lea edx, [ebp - 0x108]
push edx
push eax
push eax
push 0x28
push eax
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
lea eax, [ebp - 0x108]
push str.adb_usb.ini
push str..android
push eax
push str._s_s_s
push 0x104
push esi
call dword [sym.imp.MSVCR100.dll__snprintf]
xor ecx, ecx
add esp, 0x18
cmp eax, 0x104
setge cl
mov eax, ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00459ce1
mov esp, ebp
pop ebp
ret
Function at 0x41a9a0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45ac4c
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x480160]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x14], esi
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x41a9dd
mov dword [eax], 0
cmp dword [esi + 4], 0
jne 0x41aa01
push 6
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov bl, byte [ebp + 8]
test bl, bl
je 0x41aa0e
mov byte [ebp - 0x18], 0
jmp 0x41aa18
cmp dword [ebp + 0x1c], 0
setne al
mov byte [ebp - 0x18], al
push 0x34
mov dword [ebp - 4], 0
call dword [sym.imp.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_]
add esp, 4
mov dword [ebp - 0x1c], eax
mov edi, dword [ebp + 0x10]
mov byte [ebp - 4], 1
test eax, eax
je 0x41aa4d
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp + 0x18]
push ecx
push edx
push edi
push eax
mov ecx, esi
call fcn.0041b570
mov esi, eax
jmp 0x41aa4f
xor esi, esi
mov dword [ebp - 4], 0xffffffff
mov eax, dword [esi]
mov edx, dword [eax + 0xc]
mov ecx, esi
call edx
xor ecx, ecx
mov dword [ebp + 0x10], eax
mov dword [ebp + 8], ecx
cmp eax, ecx
je 0x41ab43
mov eax, dword [ebp + 0x1c]
cmp eax, ecx
jne 0x41aaab
lea ecx, [esi + 0x10]
push ecx
mov ecx, dword [ebp + 0xc]
test bl, bl
je 0x41aa96
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x18]
lea edx, [ebp + 8]
push edx
push edi
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
jmp 0x41ab0e
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0x18]
lea edx, [ebp + 8]
push edx
push edi
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x41ab0e
xor edx, edx
test bl, bl
setne dl
mov dword [ebp - 0x2c], eax
xor eax, eax
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], ecx
mov ecx, dword [ebp + 0xc]
dec edx
and edx, edi
test bl, bl
setne al
mov dword [ebp - 0x28], edx
dec eax
and eax, ecx
mov dword [ebp - 0x24], eax
test bl, bl
jne 0x41aadd
mov edi, 4
lea ecx, [esi + 0x2c]
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0x18]
lea edx, [esi + 0x10]
push edx
lea edx, [ebp + 8]
push edx
push edi
movzx edx, bl
push ecx
neg edx
sbb edx, edx
push 0x10
lea ecx, [ebp - 0x2c]
and edx, 0xffffbffe
push ecx
add edx, 0x22803c
push edx
push eax
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov edi, eax
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x41ab1c
mov ecx, dword [ebp + 8]
mov dword [eax], ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test edi, edi
jne 0x41ab43
cmp ebx, 0x3e5
je 0x41ab43
mov edx, dword [esi]
mov eax, dword [edx + 0x10]
mov ecx, esi
call eax
push ebx
mov dword [ebp + 0x10], edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edx, dword [esi]
mov eax, dword [edx + 8]
mov ecx, esi
call eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
Function at 0x41ab80
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
mov edi, dword [ebp + 0x14]
xor ebx, ebx
mov esi, ecx
cmp edi, ebx
je 0x41ab96
mov dword [edi], ebx
cmp dword [esi + 4], ebx
jne 0x41abae
push 6
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov al, byte [ebp + 8]
mov edx, dword [ebp + 0x18]
cmp al, bl
je 0x41abbd
mov byte [ebp + 0xb], bl
jmp 0x41abc3
cmp edx, ebx
setne byte [ebp + 0xb]
xor ecx, ecx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp + 0x18], ebx
cmp edx, ebx
jne 0x41ac0e
cmp al, bl
mov eax, dword [esi + 0x18]
je 0x41abf8
mov edx, dword [ebp + 0x10]
lea ecx, [ebp - 0x24]
push ecx
mov ecx, dword [ebp + 0xc]
push edi
push edx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
jmp 0x41ac74
mov ecx, dword [ebp + 0x10]
lea edx, [ebp - 0x24]
push edx
mov edx, dword [ebp + 0xc]
push edi
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x41ac74
mov edi, dword [ebp + 0x10]
xor ecx, ecx
cmp al, bl
setne cl
mov dword [ebp - 0x10], edx
mov edx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
dec ecx
and ecx, edi
mov dword [ebp - 0xc], ecx
xor ecx, ecx
cmp al, bl
setne cl
dec ecx
and ecx, edx
mov dword [ebp - 8], ecx
cmp al, bl
jne 0x41ac43
mov edi, 4
lea edx, [ebp + 0x18]
mov ecx, dword [esi + 0x18]
lea ebx, [ebp - 0x24]
push ebx
movzx eax, al
lea ebx, [ebp + 0xc]
push ebx
push edi
push edx
neg eax
sbb eax, eax
push 0x10
lea edx, [ebp - 0x10]
and eax, 0xffffbffe
push edx
add eax, 0x22803c
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov edi, dword [ebp + 0x14]
xor ebx, ebx
cmp eax, ebx
jne 0x41ac89
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x41aba3
mov esi, dword [esi + 0x18]
push 1
lea ecx, [ebp + 0x10]
push ecx
lea edx, [ebp - 0x24]
push edx
push esi
mov dword [ebp + 0x10], ebx
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
cmp eax, ebx
je 0x41acb7
cmp edi, ebx
je 0x41acb5
mov ecx, dword [ebp + 0x18]
cmp byte [ebp + 0xb], bl
jne 0x41acb3
mov ecx, dword [ebp + 0x10]
mov dword [edi], ecx
cmp eax, ebx
pop edi
pop esi
setne al
pop ebx
mov esp, ebp
pop ebp
ret 0x14
Function at 0x41b570
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45ab18
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [0x480160]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov dword [esi + 4], 0
mov dword [esi + 8], 3
mov dword [esi + 0xc], 1
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], 0
mov dword [esi + 0x28], eax
mov dword [esi], vtable.AdbIOCompletion.0
mov dword [esi + 0x24], ecx
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp + 0x10]
mov dl, byte [ebp + 0x14]
xor eax, eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x2c], eax
mov dword [esi + 0x20], ecx
mov dword [esi], vtable.AdbLegacyIOCompletion.0
mov byte [esi + 0x30], dl
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 0x10

Function at 0x41f620
Capabilities:
Check if file exists

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
push edi
push esi
push ebx
call sub.MSVCR100.dll_fopen
mov edi, eax
add esp, 8
test edi, edi
jne 0x41f6b0
push 0x7a
push str..crypto_bio_bss_file.c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 1
push 2
call fcn.00422060
push 0x45c5d0
push esi
push 0x45c5cc
push ebx
push str.fopen_
push 5
call fcn.00422260
add esp, 0x2c
call sub.MSVCR100.dll__errno
cmp dword [eax], 2
jne 0x41f695
push 0x7d
push str..crypto_bio_bss_file.c
push 0x80
push 0x6d
push 0x20
call fcn.00422060
add esp, 0x14
pop edi
pop esi
xor eax, eax
pop ebx
ret
push 0x7f
push str..crypto_bio_bss_file.c
push 2
push 0x6d
push 0x20
call fcn.00422060
add esp, 0x14
pop edi
pop esi
xor eax, eax
pop ebx
ret
push 0x477028
call fcn.0041e900
mov esi, eax
add esp, 4
test esi, esi
jne 0x41f6d2
push edi
call sub.MSVCR100.dll_fclose
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
ret
push 0
push esi
call fcn.0041e3e0
push edi
push 1
push 0x6a
push esi
call fcn.0041e6f0
add esp, 0x18
pop edi
mov eax, esi
pop esi
pop ebx
ret
Function at 0x4242d0
Capabilities:
Access the windows event log

Disassembly:
mov eax, pe_nt_image_headers32
call fcn.0045a200
mov eax, dword [0x480160]
xor eax, esp
mov dword [esp + 0x104], eax
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
test eax, eax
je 0x424335
push eax
call dword [sym.imp.KERNEL32.dll_GetFileType]
test eax, eax
je 0x424335
mov ecx, dword [esp + 0x10c]
lea eax, [esp + 0x110]
push eax
push ecx
call sub.MSVCR100.dll___iob_func
add eax, 0x40
push eax
call sub.MSVCR100.dll_vfprintf
add esp, 0xc
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.00459ce1
add esp, 0x108
ret
mov eax, dword [esp + 0x10c]
lea edx, [esp + 0x110]
push edx
push eax
lea ecx, [esp + 0xc]
push 0xff
push ecx
call sub.MSVCR100.dll__vsnprintf
add esp, 0x10
mov byte [esp + 0x103], 0
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x4243c4
call fcn.004241f0
test eax, eax
je 0x4243c4
push esi
push str.OPENSSL
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
push 0
mov esi, eax
lea eax, [esp + 8]
push eax
push 0
push 1
push 0
push 0
push 0
push 1
lea edx, [esp + 0x28]
push esi
mov dword [esp + 0x28], edx
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
pop esi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.00459ce1
add esp, 0x108
ret
push 0x10
push str.OpenSSL:_FATAL
lea ecx, [esp + 0xc]
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.00459ce1
add esp, 0x108
ret
Function at 0x42ec50
Capabilities:
Encode data using base64

Disassembly:
mov ecx, dword [esp + 4]
push ebp
push edi
mov edi, dword [esp + 0x14]
xor ebp, ebp
test edi, edi
jle 0x42ed33
push esi
mov esi, dword [esp + 0x14]
lea esp, [esp]
cmp edi, 3
movzx edx, byte [esi]
jl 0x42ecce
movzx eax, byte [esi + 1]
shl edx, 8
or edx, eax
movzx eax, byte [esi + 2]
shl edx, 8
or edx, eax
mov eax, edx
shr eax, 0x12
and eax, 0x3f
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], al
mov eax, edx
shr eax, 0xc
and eax, 0x3f
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + 1], al
inc ecx
mov eax, edx
shr eax, 6
and eax, 0x3f
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
inc ecx
mov byte [ecx], al
inc ecx
and edx, 0x3f
mov dl, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], dl
jmp 0x42ed20
shl edx, 0x10
cmp edi, 2
jne 0x42ecdf
movzx eax, byte [esi + 1]
shl eax, 8
or edx, eax
mov eax, edx
shr eax, 0x12
and eax, 0x3f
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], al
mov eax, edx
shr eax, 0xc
and eax, 0x3f
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
inc ecx
mov byte [ecx], al
inc ecx
cmp edi, 1
jne 0x42ed0d
lea edx, [edi + 0x3c]
jmp 0x42ed1a
shr edx, 6
and edx, 0x3f
movzx edx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], dl
inc ecx
mov byte [ecx], 0x3d
sub edi, 3
inc ecx
add ebp, 4
add esi, 3
test edi, edi
jg 0x42ec70
pop esi
pop edi
mov eax, ebp
mov byte [ecx], 0
pop ebp
ret

Function at 0x42ff40
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
push esi
xor esi, esi
test edx, edx
je 0x42ff87
mov al, byte [edx]
test al, al
je 0x42ff87
push edi
mov edi, 0x100
movsx eax, al
or eax, edi
mov ecx, eax
shr ecx, 2
xor ecx, eax
and ecx, 0xf
add edi, 0x100
rol esi, cl
mov ecx, eax
imul ecx, eax
mov al, byte [edx + 1]
inc edx
xor esi, ecx
test al, al
jne 0x42ff57
mov eax, esi
shr eax, 0x10
pop edi
xor eax, esi
pop esi
ret
xor eax, eax
pop esi
ret
Function at 0x4320e0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x28
call fcn.0045a200
mov eax, dword [0x480160]
xor eax, esp
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x3c]
push ebx
mov ebx, dword [esp + 0x3c]
push ebp
mov ebp, dword [esp + 0x38]
dec ebp
lea edx, [ebp - 0x29]
cmp ebx, edx
push edi
mov edi, dword [esp + 0x38]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ecx
jle 0x432145
push 0x2d
push str..crypto_rsa_rsa_oaep.c
push 0x6e
push 0x79
push 4
call fcn.00422060
add esp, 0x14
pop edi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.00459ce1
add esp, 0x28
ret
cmp ebp, 0x29
jge 0x432173
push 0x33
push str..crypto_rsa_rsa_oaep.c
push 0x78
push 0x79
push 4
call fcn.00422060
add esp, 0x14
pop edi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.00459ce1
add esp, 0x28
ret
push 0x37
lea eax, [ebp - 0x14]
push str..crypto_rsa_rsa_oaep.c
push eax
mov dword [esp + 0x18], eax
call fcn.00423600
add esp, 0xc
mov dword [esp + 0x10], eax
test eax, eax
jne 0x4321bb
push 0x3a
push str..crypto_rsa_rsa_oaep.c
push 0x41
push 0x79
push 4
call fcn.00422060
add esp, 0x14
pop edi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.00459ce1
add esp, 0x28
ret
push esi
mov byte [edi], 0
lea esi, [edi + 1]
push 0
add edi, 0x15
call fcn.0043f370
mov ecx, dword [esp + 0x20]
push eax
mov eax, dword [esp + 0x58]
push 0
push edi
push eax
push ecx
call fcn.0043f280
mov edx, ebp
sub edx, ebx
sub edx, 0x29
push edx
lea eax, [edi + 0x14]
push 0
push eax
call sub.MSVCR100.dll_memset
mov edx, dword [esp + 0x3c]
mov ecx, edi
sub ecx, ebx
add ebp, ecx
push ebx
mov byte [ebp - 0x15], 1
push edx
add ebp, 0xffffffec
push ebp
call sub.MSVCR100.dll_memcpy
push 0x14
push esi
call fcn.00428430
add esp, 0x38
test eax, eax
jg 0x43222f
pop esi
pop edi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.00459ce1
add esp, 0x28
ret
call fcn.0043f370
mov ebx, dword [esp + 0x10]
mov ebp, dword [esp + 0x14]
push eax
push 0x14
push esi
push ebx
push ebp
call fcn.00431fa0
add esp, 0x14
test ebx, ebx
jle 0x43225f
mov eax, edi
sub ebp, edi
mov ecx, ebx
mov dl, byte [eax + ebp]
xor byte [eax], dl
inc eax
sub ecx, 1
jne 0x432254
call fcn.0043f370
push eax
push ebx
push edi
lea eax, [esp + 0x2c]
push 0x14
push eax
call fcn.00431fa0
lea ecx, [esp + 0x34]
lea edi, [esp + 0x35]
lea ebp, [esp + 0x36]
lea edx, [esp + 0x37]
sub ecx, esi
sub edi, esi
sub ebp, esi
sub edx, esi
lea ebx, [esp + 0x38]
add esp, 0x14
sub ebx, esi
mov eax, esi
mov dword [esp + 0x10], ebx
mov esi, 4
nop
movzx ebx, byte [ecx + eax]
xor byte [eax], bl
movzx ebx, byte [edi + eax]
xor byte [eax + 1], bl
movzx ebx, byte [eax + ebp]
xor byte [eax + 2], bl
movzx ebx, byte [edx + eax]
xor byte [eax + 3], bl
mov ebx, dword [esp + 0x10]
movzx ebx, byte [ebx + eax]
xor byte [eax + 4], bl
add eax, 5
sub esi, 1
jne 0x4322a0
mov ecx, dword [esp + 0x14]
push ecx
call fcn.004237b0
mov ecx, dword [esp + 0x38]
add esp, 4
lea eax, [esi + 1]
pop esi
pop edi
pop ebp
pop ebx
xor ecx, esp
call fcn.00459ce1
add esp, 0x28
ret