joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408860
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x10
push str.shell:
call fcn.0040b590
add esp, 0x10
mov ebx, eax
test eax, eax
js 0x4088b0
sub esp, 0xc
push 8
call sub.msvcrt.dll_malloc
add esp, 0xc
mov dword [eax], ebx
mov dword [eax + 4], 0
push eax
push 0
push 0x4088e0
call sub.msvcrt.dll__beginthread
mov eax, ebx
call fcn.00407f20
xor eax, eax
add esp, 0x10
mov ebx, dword [ebp - 4]
leave
ret
call fcn.0040af10
push edx
push eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
push 0x4a0867
add eax, 0x40
push eax
call fcn.00407d40
mov eax, 1
add esp, 0x10
mov ebx, dword [ebp - 4]
leave
ret
Function at 0x40bbd0
Capabilities:
Create directory
Get common file path
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x248
mov dword [ebp - 0x240], eax
mov dword [ebp - 0x244], edx
push 0x4a16dc
call sub.msvcrt.dll_getenv
add esp, 0x10
mov edi, eax
test eax, eax
je 0x40bd01
test byte [0x4dcfc9], 4
jne 0x40bc93
sub esp, 0xc
push 0x4a1725
push edi
lea edi, [ebp - 0x133]
push 0x4a172e
push 0x103
push edi
call fcn.00495c90
add esp, 0x20
cmp eax, 0x102
jle 0x40bc40
or eax, 0xffffffff
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
lea eax, [ebp - 0x30]
push esi
push esi
push eax
push edi
call sub.msvcrt.dll__stat
add esp, 0x10
test eax, eax
je 0x40bc67
sub esp, 0xc
push edi
call sub.msvcrt.dll__mkdir
add esp, 0x10
test eax, eax
js 0x40bd22
sub esp, 0xc
push str.adbkey
push edi
push 0x4a172e
mov ebx, dword [ebp - 0x244]
push ebx
mov ecx, dword [ebp - 0x240]
push ecx
call fcn.00495c90
add esp, 0x20
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
call sub.msvcrt.dll__errno
sub esp, 0xc
mov esi, dword [eax]
push 0x4dcfd8
call sub.KERNEL32.dll_EnterCriticalSection
mov ebx, dword [sym.imp.msvcrt.dll__iob]
add esp, 0xc
add ebx, 0x40
push str.get_user_keyfilepath
push str.system_core_adb_adb_auth_host.c
push 0x4a1710
push ebx
call fcn.0040bbb0
call sub.msvcrt.dll__errno
add esp, 0xc
mov dword [eax], esi
push edi
push str.home__s_n
push ebx
call fcn.0040bbb0
mov dword [esp], ebx
call sub.msvcrt.dll_fflush
mov dword [esp], 0x4dcfd8
call sub.KERNEL32.dll_LeaveCriticalSection
add esp, 0xc
call sub.msvcrt.dll__errno
mov dword [eax], esi
jmp 0x40bc0c
sub esp, 0xc
lea ebx, [ebp - 0x236]
mov edi, ebx
push ebx
push 0
push 0
push 0x28
push 0
call sub.SHELL32.DLL_SHGetFolderPathA
add esp, 0xc
jmp 0x40bbff
test byte [0x4dcfc9], 4
je 0x40bc35
call sub.msvcrt.dll__errno
sub esp, 0xc
mov esi, dword [eax]
push 0x4dcfd8
call sub.KERNEL32.dll_EnterCriticalSection
mov ebx, dword [sym.imp.msvcrt.dll__iob]
add esp, 0xc
add ebx, 0x40
push str.get_user_keyfilepath
push str.system_core_adb_adb_auth_host.c
push 0x4a1710
push ebx
call fcn.0040bbb0
call sub.msvcrt.dll__errno
add esp, 0xc
mov dword [eax], esi
push edi
push str.Cannot_mkdir__s
push ebx
call fcn.0040bbb0
mov dword [esp], ebx
call sub.msvcrt.dll_fflush
mov dword [esp], 0x4dcfd8
call sub.KERNEL32.dll_LeaveCriticalSection
add esp, 0xc
call sub.msvcrt.dll__errno
mov dword [eax], esi
or eax, 0xffffffff
jmp 0x40bc38
Function at 0x40fb00
Capabilities:
Create thread

Disassembly:
push ebp
mov ecx, 4
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xc
mov edi, str.tcp:
mov ebx, dword [ebp + 8]
cld
mov esi, ebx
repe cmpsb byte [esi], byte es:[edi]
jne 0x40fb75
sub esp, 0xc
add ebx, 4
push ebx
call sub.msvcrt.dll_atoi
pop ecx
pop edi
push 0x3a
mov esi, eax
push ebx
call sub.msvcrt.dll_strchr
add esp, 0x10
mov ebx, eax
test eax, eax
je 0x40fbb7
sub esp, 0xc
push 0x4dd058
call sub.KERNEL32.dll_EnterCriticalSection
push eax
push eax
lea eax, [ebx + 1]
push 1
push esi
push eax
call fcn.00415ce0
add esp, 0x14
mov esi, eax
push 0x4dd058
call sub.KERNEL32.dll_LeaveCriticalSection
add esp, 0xc
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
cld
mov esi, str.dns:
mov ecx, 4
mov edi, ebx
repe cmpsb byte [esi], byte es:[edi]
seta dl
setb al
or esi, 0xffffffff
cmp dl, al
jne 0x40fb6b
sub esp, 0xc
lea eax, [ebx + 4]
push eax
call sub.msvcrt.dll__strdup
add esp, 0x10
test eax, eax
je 0x40fb6b
lea esp, [ebp - 0xc]
mov edx, eax
mov eax, 0x40fa80
pop ebx
pop esi
pop edi
pop ebp
jmp fcn.0040f800
push edx
push edx
push 1
push esi
call fcn.004160a0
add esp, 0x10
mov esi, eax
test eax, eax
js 0x40fb6b
sub esp, 0xc
push eax
call fcn.00414c30
add esp, 0x10
jmp 0x40fb6b
Function at 0x411c20
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push 0
push 0
push 0x412090
call sub.msvcrt.dll__beginthread
add esp, 0x10
inc eax
je 0x411c40
leave
ret
sub esp, 0xc
push str.cannot_create_input_thread
call fcn.00402820
add esp, 0x10
leave
ret

Function at 0x412930
Capabilities:
Get common file path
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x120
push str.ANDROID_SDK_HOME
call sub.msvcrt.dll_getenv
add esp, 0x10
test eax, eax
je 0x412966
push eax
mov ebx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
push str._s_s_s
push eax
push ebx
call fcn.004128f0
add esp, 0x10
mov ebx, dword [ebp - 4]
leave
ret
sub esp, 0xc
lea ebx, [ebp - 0x108]
push ebx
push 0
push 0
push 0x28
push 0
call sub.SHELL32.DLL_SHGetFolderPathA
add esp, 0xc
push ebx
jmp 0x41294c
Function at 0x414c30
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
call fcn.00413b00
mov edx, eax
test eax, eax
je 0x414c4c
cmp dword [eax], 0x4a3570
je 0x414c50
leave
ret
sub esp, 0xc
lea eax, [ebp - 4]
push 4
push eax
push 1
push 6
mov eax, dword [edx + 0xc]
push eax
call sub.WS2_32.DLL_setsockopt
add esp, 0xc
leave
ret

Function at 0x415160
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x198
mov eax, dword [0x4d9f48]
test eax, eax
je 0x415174
leave
ret
lea eax, [ebp - 0x190]
push ecx
push ecx
push eax
push 0x202
call sub.WS2_32.DLL_WSAStartup
pop ecx
test eax, eax
pop edx
jne 0x4151b0
sub esp, 0xc
push 0x4151d0
call section..text
mov dword [0x4d9f48], 1
add esp, 0x10
leave
ret
sub esp, 0xc
push str.adb:_could_not_initialize_Winsock_n
call fcn.00401470
add esp, 0x10
jmp 0x41518d
Function at 0x415260
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x30
mov esi, dword [ebp + 8]
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push esi
call sub.KERNEL32.dll_CreateFileA
mov esi, eax
pop ebx
xor eax, eax
cmp esi, 0xffffffff
je 0x4152b2
push ecx
push ecx
push 0
push esi
call sub.KERNEL32.dll_GetFileSize
xor ebx, ebx
mov edi, eax
pop eax
test edi, edi
pop edx
jne 0x4152c0
sub esp, 0xc
push esi
call sub.KERNEL32.dll_CloseHandle
mov eax, dword [ebp + 0xc]
add esp, 0xc
mov dword [eax], edi
mov eax, ebx
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
sub esp, 0xc
lea eax, [edi + 1]
push eax
call sub.msvcrt.dll_malloc
add esp, 0x10
mov ebx, eax
test eax, eax
je 0x415311
sub esp, 0xc
lea eax, [ebp - 0x10]
push 0
push eax
push edi
push ebx
push esi
call sub.KERNEL32.dll_ReadFile
add esp, 0xc
test eax, eax
je 0x4152f2
cmp edi, dword [ebp - 0x10]
je 0x41529f
cmp byte [0x4dcfc8], 0
js 0x41539e
sub esp, 0xc
xor edi, edi
push ebx
call sub.msvcrt.dll_free
xor ebx, ebx
add esp, 0x10
jmp 0x41529f
cmp byte [0x4dcfc8], 0
js 0x41531e
xor edi, edi
jmp 0x41529f
call sub.msvcrt.dll__errno
sub esp, 0xc
mov eax, dword [eax]
push 0x4dcfd8
mov dword [ebp - 0x28], eax
call sub.KERNEL32.dll_EnterCriticalSection
mov eax, dword [sym.imp.msvcrt.dll__iob]
add esp, 0xc
add eax, 0x40
push str.load_file
mov dword [ebp - 0x2c], eax
push str.system_core_adb_sysdeps_win32.c
push str._s::_s__:
push eax
call fcn.00412fb0
call sub.msvcrt.dll__errno
add esp, 0xc
mov edx, dword [ebp - 0x28]
mov dword [eax], edx
push edi
mov edi, dword [ebp - 0x2c]
push str.load_file:_could_not_allocate__ld_bytes_n
push edi
call fcn.00412fb0
pop ecx
mov edx, dword [ebp - 0x2c]
push edx
call sub.msvcrt.dll_fflush
mov dword [esp], 0x4dcfd8
call sub.KERNEL32.dll_LeaveCriticalSection
add esp, 0xc
xor edi, edi
call sub.msvcrt.dll__errno
mov edx, dword [ebp - 0x28]
mov dword [eax], edx
jmp 0x41529f
call sub.msvcrt.dll__errno
sub esp, 0xc
mov eax, dword [eax]
push 0x4dcfd8
mov dword [ebp - 0x24], eax
call sub.KERNEL32.dll_EnterCriticalSection
mov eax, dword [sym.imp.msvcrt.dll__iob]
add esp, 0xc
add eax, 0x40
push str.load_file
mov dword [ebp - 0x20], eax
push str.system_core_adb_sysdeps_win32.c
push str._s::_s__:
push eax
call fcn.00412fb0
call sub.msvcrt.dll__errno
mov edx, dword [ebp - 0x24]
mov dword [eax], edx
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp - 0x20]
push edi
push str.load_file:_could_not_read__ld_bytes_from__s_n
push eax
call fcn.00412fb0
add esp, 0x14
mov eax, dword [ebp - 0x20]
push eax
call sub.msvcrt.dll_fflush
mov dword [esp], 0x4dcfd8
call sub.KERNEL32.dll_LeaveCriticalSection
add esp, 0xc
call sub.msvcrt.dll__errno
mov edx, dword [ebp - 0x24]
mov dword [eax], edx
jmp 0x4152ff
Function at 0x415b00
Capabilities:
Create udp socket
Set socket configuration

Disassembly:
push ebp
mov eax, 0x4a3570
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2c
mov edi, dword [ebp + 0xc]
call fcn.004139e0
mov esi, eax
or eax, 0xffffffff
test esi, esi
je 0x415c04
mov eax, dword [0x4d9f48]
test eax, eax
je 0x415c10
sub esp, 0xc
mov eax, dword [ebp + 8]
and eax, 0xffff
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov word [ebp - 0x20], 2
push eax
call sub.WS2_32.DLL_htons
mov word [ebp - 0x1e], ax
push 0
call sub.WS2_32.DLL_htonl
mov dword [ebp - 0x1c], eax
push eax
push eax
push 0
push edi
push 2
call sub.WS2_32.DLL_socket
add esp, 0x14
mov ebx, eax
cmp eax, 0xffffffff
je 0x415cc9
sub esp, 0xc
mov dword [esi + 0xc], eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 1
push 4
push eax
push 0xfffffffffffffffb
push 0xffff
push ebx
call sub.WS2_32.DLL_setsockopt
push eax
push eax
lea eax, [ebp - 0x20]
push 0x10
push eax
push ebx
call sub.WS2_32.DLL_bind
add esp, 0x14
test eax, eax
js 0x415cc9
mov edx, str.udp:
cmp edi, 1
je 0x415cb0
push eax
push eax
mov eax, dword [ebp + 8]
push eax
mov eax, esi
push edx
call fcn.00412aa0
push eax
lea eax, [esi + 0x18]
push str._d_any_server:_s_d_
push 0x20
push eax
call fcn.00495c90
add esp, 0x20
cmp byte [0x4dcfc8], 0
js 0x415c20
mov eax, esi
call fcn.00412aa0
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
call fcn.00415160
jmp 0x415b30
call sub.msvcrt.dll__errno
sub esp, 0xc
mov eax, dword [eax]
push 0x4dcfd8
mov dword [ebp - 0x30], eax
call sub.KERNEL32.dll_EnterCriticalSection
mov ebx, dword [sym.imp.msvcrt.dll__iob]
add esp, 0xc
add ebx, 0x40
push str.socket_inaddr_any_server
push str.system_core_adb_sysdeps_win32.c
push str._s::_s__:
push ebx
call fcn.00412fb0
call sub.msvcrt.dll__errno
mov edx, dword [ebp - 0x30]
mov dword [eax], edx
mov eax, esi
call fcn.00412aa0
add esp, 0x10
mov edx, 0x4a31a4
dec edi
je 0x415cd8
sub esp, 0xc
mov edi, dword [ebp + 8]
push eax
push edx
push edi
push str.socket_inaddr_server:_port__d_type__s___fd__d_n
push ebx
call fcn.00412fb0
add esp, 0x14
push ebx
call sub.msvcrt.dll_fflush
mov dword [esp], 0x4dcfd8
call sub.KERNEL32.dll_LeaveCriticalSection
add esp, 0xc
call sub.msvcrt.dll__errno
mov edx, dword [ebp - 0x30]
mov dword [eax], edx
jmp 0x415bfd
push eax
push eax
push 4
push ebx
call sub.WS2_32.DLL_listen
pop edx
test eax, eax
pop ecx
mov edx, 0x4a318a
jns 0x415bd2
mov eax, esi
call fcn.00412af0
or eax, 0xffffffff
jmp 0x415c04
mov edx, 0x4a31a8
jmp 0x415c74
Function at 0x415ce0
Capabilities:
Connect socket
Resolve dns

Disassembly:
push ebp
mov eax, 0x4a3570
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov edi, dword [ebp + 0x10]
call fcn.004139e0
mov esi, eax
or eax, 0xffffffff
test esi, esi
je 0x415dec
mov edx, dword [0x4d9f48]
test edx, edx
je 0x415df4
sub esp, 0xc
mov eax, dword [ebp + 8]
push eax
call sub.WS2_32.DLL_gethostbyname
add esp, 0xc
mov ebx, eax
test eax, eax
je 0x415ea3
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov eax, dword [eax + 8]
sub esp, 0xc
mov word [ebp - 0x1c], ax
mov eax, dword [ebp + 0xc]
and eax, 0xffff
push eax
call sub.WS2_32.DLL_htons
mov word [ebp - 0x1a], ax
sub esp, 8
movsx eax, word [ebx + 0xa]
mov edx, dword [ebx + 0xc]
push eax
lea ecx, [ebp - 0x18]
mov eax, dword [edx]
push eax
push ecx
call sub.msvcrt.dll_memcpy
add esp, 0x1c
push 0
push edi
movsx eax, word [ebx + 8]
push eax
call sub.WS2_32.DLL_socket
pop edx
cmp eax, 0xffffffff
je 0x415ea3
mov dword [esi + 0xc], eax
lea edx, [ebp - 0x1c]
push ebx
push 0x10
push edx
push eax
call sub.WS2_32.DLL_connect
pop ecx
test eax, eax
js 0x415ea3
mov eax, str.udp:
cmp edi, 1
je 0x415e92
mov ebx, dword [ebp + 0xc]
push edx
push edx
push ebx
push eax
mov eax, esi
call fcn.00412aa0
push eax
lea eax, [esi + 0x18]
push str._d_net_client:_s_d_
push 0x20
push eax
call fcn.00495c90
add esp, 0x20
cmp byte [0x4dcfc8], 0
js 0x415e00
mov eax, esi
call fcn.00412aa0
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
call fcn.00415160
jmp 0x415d11
call sub.msvcrt.dll__errno
sub esp, 0xc
mov eax, dword [eax]
push 0x4dcfd8
mov dword [ebp - 0x20], eax
call sub.KERNEL32.dll_EnterCriticalSection
mov ebx, dword [sym.imp.msvcrt.dll__iob]
add esp, 0xc
add ebx, 0x40
push str.socket_network_client
push str.system_core_adb_sysdeps_win32.c
push str._s::_s__:
push ebx
call fcn.00412fb0
call sub.msvcrt.dll__errno
mov edx, dword [ebp - 0x20]
mov dword [eax], edx
mov eax, esi
call fcn.00412aa0
add esp, 0x10
mov edx, 0x4a31a4
dec edi
je 0x415e9c
push ecx
push ecx
push eax
mov eax, dword [ebp + 0xc]
push edx
push eax
mov eax, dword [ebp + 8]
push eax
push str.socket_network_client:_host__s_port__d_type__s___fd__d_n
push ebx
call fcn.00412fb0
add esp, 0x14
push ebx
call sub.msvcrt.dll_fflush
mov dword [esp], 0x4dcfd8
call sub.KERNEL32.dll_LeaveCriticalSection
add esp, 0xc
call sub.msvcrt.dll__errno
mov edx, dword [ebp - 0x20]
mov dword [eax], edx
jmp 0x415de5
mov eax, 0x4a318a
jmp 0x415dba
mov edx, 0x4a31a8
jmp 0x415e54
mov eax, esi
call fcn.00412af0
or eax, 0xffffffff
jmp 0x415dec
Function at 0x415ec0
Capabilities:
Create udp socket
Set socket configuration

Disassembly:
push ebp
mov eax, 0x4a3570
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2c
call fcn.004139e0
mov ebx, eax
test eax, eax
jne 0x415ee4
or eax, 0xffffffff
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [0x4d9f48]
test eax, eax
je 0x415fd0
sub esp, 0xc
mov eax, dword [ebp + 8]
mov dword [ebp - 0x20], 0
and eax, 0xffff
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov word [ebp - 0x20], 2
push eax
call sub.WS2_32.DLL_htons
mov word [ebp - 0x1e], ax
lea edi, [ebp - 0x20]
push 0x7f000001
call sub.WS2_32.DLL_htonl
mov dword [ebp - 0x1c], eax
push eax
push eax
push 0
mov eax, dword [ebp + 0xc]
push eax
push 2
call sub.WS2_32.DLL_socket
add esp, 0x14
mov esi, eax
cmp eax, 0xffffffff
je 0x415ed9
sub esp, 0xc
mov dword [ebx + 0xc], eax
mov dword [ebp - 0x10], 1
lea eax, [ebp - 0x10]
push 4
push eax
push 0xfffffffffffffffb
push 0xffff
push esi
call sub.WS2_32.DLL_setsockopt
push eax
push eax
push 0x10
push edi
push esi
call sub.WS2_32.DLL_bind
add esp, 0x14
test eax, eax
js 0x41607c
mov edx, str.udp:
cmp dword [ebp + 0xc], 1
je 0x416063
push edi
push edi
mov esi, dword [ebp + 8]
mov eax, ebx
push esi
push edx
call fcn.00412aa0
push eax
lea eax, [ebx + 0x18]
push str._d_lo_server:_s_d_
push 0x20
push eax
call fcn.00495c90
add esp, 0x20
cmp byte [0x4dcfc8], 0
js 0x415fda
mov eax, ebx
call fcn.00412aa0
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
call fcn.00415160
jmp 0x415ef1
call sub.msvcrt.dll__errno
sub esp, 0xc
mov edi, dword [eax]
push 0x4dcfd8
call sub.KERNEL32.dll_EnterCriticalSection
mov esi, dword [sym.imp.msvcrt.dll__iob]
add esp, 0xc
add esi, 0x40
push str.socket_loopback_server
push str.system_core_adb_sysdeps_win32.c
push str._s::_s__:
push esi
call fcn.00412fb0
call sub.msvcrt.dll__errno
mov dword [eax], edi
mov eax, ebx
call fcn.00412aa0
add esp, 0x10
mov edx, 0x4a31a4
cmp dword [ebp + 0xc], 1
je 0x416090
sub esp, 0xc
push eax
push edx
mov ecx, dword [ebp + 8]
push ecx
push str.socket_loopback_server:_port__d_type__s___fd__d_n
push esi
call fcn.00412fb0
add esp, 0x14
push esi
call sub.msvcrt.dll_fflush
mov dword [esp], 0x4dcfd8
call sub.KERNEL32.dll_LeaveCriticalSection
add esp, 0xc
call sub.msvcrt.dll__errno
mov dword [eax], edi
jmp 0x415fc1
push edi
push edi
push 4
push esi
call sub.WS2_32.DLL_listen
pop edx
test eax, eax
pop ecx
mov edx, 0x4a318a
jns 0x415f96
mov eax, ebx
call fcn.00412af0
or eax, 0xffffffff
jmp 0x415edc
mov edx, 0x4a31a8
jmp 0x41602b
Function at 0x41e1a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x41e1d4
mov edx, dword [ebp + 0xc]
test edx, edx
je 0x41e1d4
mov eax, dword [eax + 0x20]
mov ecx, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 0x10]
push 1
push eax
push ecx
call sub.msvcrt.dll_fwrite
add esp, 0x10
mov edx, dword [ebp + 0x10]
test eax, eax
jne 0x41e1d6
xor edx, edx
mov eax, edx
leave
ret

Function at 0x41e250
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x28
mov edi, dword [ebp + 8]
push edi
call sub.msvcrt.dll_strlen
pop ebx
pop esi
lea esi, [eax + 1]
push 0
push 0
push esi
push edi
push 8
push 0xfde9
call sub.KERNEL32.dll_MultiByteToWideChar
mov edx, eax
pop eax
test edx, edx
pop ecx
mov ecx, 8
jle 0x41e3c1
lea eax, [edx + edx + 0x1e]
and eax, 0xfffffff0
call fcn.00495580
lea ebx, [esp + 0xf]
push eax
and ebx, 0xfffffff0
push eax
push edx
push ebx
push esi
push edi
push ecx
push 0xfde9
call sub.KERNEL32.dll_MultiByteToWideChar
pop edx
test eax, eax
pop ecx
jne 0x41e340
call sub.KERNEL32.dll_GetLastError
sub esp, 0xc
push 0xa9
push 0x4a67f8
push eax
push 1
push 2
call fcn.00423b20
add esp, 0x18
mov eax, dword [ebp + 0xc]
push 0x4a681f
push eax
push 0x4a6822
push edi
push str.fopen_
push 5
call fcn.00423760
add esp, 0x20
call sub.msvcrt.dll__errno
cmp dword [eax], 2
je 0x41e326
sub esp, 0xc
push 0xae
push 0x4a67f8
push 2
push 0x6d
push 0x20
xor ebx, ebx
call fcn.00423b20
add esp, 0x20
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
sub esp, 0xc
push 0xac
push 0x4a67f8
push pe_nt_image_headers32
jmp 0x41e30e
lea esi, [ebp - 0x1c]
push eax
push eax
push 8
push esi
mov eax, dword [ebp + 0xc]
sub esp, 0xc
push eax
call sub.msvcrt.dll_strlen
add esp, 0x10
inc eax
push eax
mov eax, dword [ebp + 0xc]
push eax
push 0
push 0xfde9
call sub.KERNEL32.dll_MultiByteToWideChar
pop edx
test eax, eax
pop ecx
je 0x41e2b8
push ecx
push ecx
push esi
push ebx
call sub.msvcrt.dll__wfopen
add esp, 0x10
mov esi, eax
test eax, eax
je 0x41e41a
sub esp, 0xc
call fcn.0041dce0
push eax
call fcn.0041ee40
add esp, 0x10
mov ebx, eax
test eax, eax
je 0x41e434
push eax
push eax
push 0
push ebx
call fcn.0041e450
push esi
push 1
push 0x6a
push ebx
call fcn.0041e750
add esp, 0x20
jmp 0x41e31c
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x3ec
je 0x41e3f7
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x459
jne 0x41e2b8
mov eax, dword [ebp + 0xc]
push edx
push edx
push eax
push edi
call sub.msvcrt.dll_fopen
add esp, 0x10
mov esi, eax
test eax, eax
jne 0x41e389
jmp 0x41e2b8
push ebx
push ebx
push 0
push 0
push esi
push edi
push 0
push 0xfde9
call sub.KERNEL32.dll_MultiByteToWideChar
mov edx, eax
pop eax
test edx, edx
pop ecx
jle 0x41e3cd
xor ecx, ecx
jmp 0x41e28a
call sub.msvcrt.dll__errno
cmp dword [eax], 2
je 0x41e3dd
call sub.msvcrt.dll__errno
cmp dword [eax], 9
jne 0x41e2b8
jmp 0x41e3dd
sub esp, 0xc
push esi
call sub.msvcrt.dll_fclose
add esp, 0x10
jmp 0x41e31c
Function at 0x426ee0
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x11c
mov ebx, dword [ebp + 8]
push 0xfffffffffffffff4
call sub.KERNEL32.dll_GetStdHandle
add esp, 0xc
test eax, eax
je 0x426f10
sub esp, 0xc
push eax
call sub.KERNEL32.dll_GetFileType
add esp, 0xc
test eax, eax
jne 0x426f96
lea eax, [ebp + 0xc]
lea esi, [ebp - 0x110]
mov dword [ebp - 0xc], eax
push eax
push ebx
push 0xff
push esi
call sub.msvcrt.dll__vsnprintf
mov byte [ebp - 0x11], 0
call sub.KERNEL32.dll_GetVersion
add esp, 0x10
test eax, eax
js 0x426f80
call fcn.00426dd0
test eax, eax
jle 0x426f80
push eax
push eax
push str.OPENSSL
push 0
call sub.ADVAPI32.DLL_RegisterEventSourceA
mov dword [ebp - 0x10], esi
mov ebx, eax
push eax
lea eax, [ebp - 0x10]
push 0
push eax
push 0
push 1
push 0
push 0
push 0
push 1
push ebx
call sub.ADVAPI32.DLL_ReportEventA
push ebx
call sub.ADVAPI32.DLL_DeregisterEventSource
add esp, 0xc
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
push 0x10
push str.OpenSSL:_FATAL
push esi
push 0
call sub.USER32.dll_MessageBoxA
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
lea eax, [ebp + 0xc]
mov dword [ebp - 0xc], eax
push edx
push eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
push ebx
push eax
call sub.msvcrt.dll_vfprintf
add esp, 0x10
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
Function at 0x42b650
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 4
mov dword [ebp - 0x10], 0
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
test eax, eax
jle 0x42b75d
mov ebx, edx
mov edi, eax
jmp 0x42b6e4
xor edx, edx
xor eax, eax
mov dl, byte [esi]
mov al, byte [esi + 1]
shl eax, 8
shl edx, 0x10
or edx, eax
xor eax, eax
mov al, byte [esi + 2]
or edx, eax
mov eax, edx
shr eax, 0x12
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebx], al
mov eax, edx
shr eax, 0xc
and eax, 0x3f
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebx + 1], al
mov eax, edx
shr eax, 6
and edx, 0x3f
and eax, 0x3f
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebx + 2], al
mov al, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebx + 3], al
lea eax, [ebx + 4]
mov edx, eax
mov ecx, dword [ebp - 0x10]
sub edi, 3
add ecx, 4
mov ebx, eax
mov dword [ebp - 0x10], ecx
test edi, edi
jle 0x42b75d
add esi, 3
cmp edi, 2
jg 0x42b677
xor ecx, ecx
mov cl, byte [esi]
shl ecx, 0x10
cmp edi, 2
je 0x42b724
mov eax, ecx
mov dl, 0x3d
shr eax, 0x12
shr ecx, 0xc
and ecx, 0x3f
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebx], al
mov al, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebx + 1], al
lea eax, [ebx + 2]
mov byte [eax], dl
mov byte [eax + 1], 0x3d
lea edx, [eax + 2]
lea eax, [ebx + 4]
jmp 0x42b6cf
xor edx, edx
mov dl, byte [esi + 1]
shl edx, 8
or edx, ecx
mov eax, edx
shr eax, 0x12
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebx], al
mov eax, edx
shr eax, 0xc
shr edx, 6
and eax, 0x3f
and edx, 0x3f
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebx + 1], al
mov dl, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
lea eax, [ebx + 2]
jmp 0x42b716
mov byte [edx], 0
mov eax, dword [ebp - 0x10]
pop edx
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x43ae20
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov edx, dword [ebp + 8]
test edx, edx
je 0x43ae74
mov al, byte [edx]
test al, al
je 0x43ae74
mov ebx, edx
xor esi, esi
mov edi, 0x100
lea esi, [esi]
movsx eax, al
or eax, edi
mov edx, esi
mov esi, eax
mov ecx, eax
imul esi, eax
shr ecx, 2
add edi, 0x100
xor ecx, eax
mov al, byte [ebx + 1]
and ecx, 0xf
inc ebx
rol edx, cl
xor esi, edx
test al, al
jne 0x43ae40
mov eax, esi
pop ebx
shr eax, 0x10
xor eax, esi
pop esi
pop edi
pop ebp
ret
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret