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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
push ebx
push 0
push 0
push 3
push 0
push 1
push accept
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
mov dword [ebp - 8], ebx
cmp ebx, 0xffffffff
jne 0x40eb11
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push esi
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
mov dword [ebp - 4], 0
test esi, esi
je 0x40ec7b
lea ecx, [esi + 1]
push edi
push ecx
call dword [sym.imp.MSVCR100.dll_malloc]
mov edi, eax
add esp, 4
mov dword [ebp - 4], edi
test edi, edi
jne 0x40ebcb
test byte [0x4805a8], 0x80
je 0x40ebc4
mov edi, dword [sym.imp.MSVCR100.dll__errno]
call edi
mov ebx, dword [eax]
push 0x480590
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push str.load_file
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
push esi
mov esi, dword [sym.imp.MSVCR100.dll___iob_func]
push str.load_file:_could_not_allocate__ld_bytes_n
mov dword [eax], ebx
call esi
add eax, 0x40
push eax
call dword [sym.imp.MSVCR100.dll_fprintf]
call esi
add eax, 0x40
push eax
call dword [sym.imp.MSVCR100.dll_fflush]
add esp, 0x10
push 0x480590
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call edi
mov dword [eax], ebx
mov ebx, dword [ebp - 8]
xor esi, esi
jmp 0x40ec7a
push 0
lea edx, [ebp - 0xc]
push edx
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40ebe7
cmp dword [ebp - 0xc], esi
je 0x40ec7a
test byte [0x4805a8], 0x80
je 0x40ec6b
mov edi, dword [sym.imp.MSVCR100.dll__errno]
call edi
mov ebx, dword [eax]
push 0x480590
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push str.load_file
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, dword [ebp + 8]
push eax
push esi
mov esi, dword [sym.imp.MSVCR100.dll___iob_func]
push str.load_file:_could_not_read__ld_bytes_from__s_n
call esi
add eax, 0x40
push eax
call dword [sym.imp.MSVCR100.dll_fprintf]
call esi
add eax, 0x40
push eax
call dword [sym.imp.MSVCR100.dll_fflush]
add esp, 0x14
push 0x480590
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call edi
mov edi, dword [ebp - 4]
mov dword [eax], ebx
mov ebx, dword [ebp - 8]
push edi
call dword [sym.imp.MSVCR100.dll_free]
add esp, 4
xor esi, esi
mov dword [ebp - 4], esi
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
mov dword [ecx], esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40fb90
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x198
mov eax, dword [0x47f160]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x4905f8], 0
jne 0x40fbe3
lea eax, [ebp - 0x198]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x40fbcc
push str.adb:_could_not_initialize_Winsock_n
call fcn.00401000
push 0x40fb80
call fcn.00459a71
add esp, 4
mov dword [0x4905f8], 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00459991
mov esp, ebp
pop ebp
ret
Function at 0x40fed0
Capabilities:
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
mov eax, dword [0x47f160]
xor eax, esp
mov dword [esp + 0x18], eax
push ebx
push esi
push edi
mov eax, 0x470114
call fcn.0040edf0
mov esi, eax
test esi, esi
je 0x40ffa2
cmp dword [0x4905f8], 0
jne 0x40ff09
call fcn.0040fb90
mov ebx, dword [ebp + 8]
xor eax, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov eax, 2
push ebx
mov word [esp + 0x18], ax
call dword [sym.imp.WS2_32.dll_htons]
push 0x7f000001
mov word [esp + 0x1a], ax
call dword [sym.imp.WS2_32.dll_htonl]
push 0
push 1
push 2
mov dword [esp + 0x24], eax
call dword [sym.imp.WS2_32.dll_socket]
mov edi, eax
cmp edi, 0xffffffff
je 0x40ffa2
push 4
lea ecx, [esp + 0x14]
push ecx
push 0xfffffffffffffffb
push 0xffff
mov dword [esi + 0xc], edi
push edi
mov dword [esp + 0x24], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
push 0x10
lea edx, [esp + 0x18]
push edx
push edi
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
jns 0x40ffb7
xor edi, edi
cmp dword [esi + 4], edi
je 0x40ffa2
mov eax, dword [esi]
mov ecx, dword [eax + 4]
push esi
call ecx
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 [esp + 0x18]
xor ecx, esp
call fcn.00459991
mov esp, ebp
pop ebp
ret
push 4
push edi
call dword [sym.imp.WS2_32.dll_listen]
test eax, eax
jns 0x40ffde
call fcn.0040ef10
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.00459991
mov esp, ebp
pop ebp
ret
push ebx
push 0x46e90d
mov eax, esi
call fcn.0040edb0
push eax
push str._d_lo_server:_s_d_
lea edx, [esi + 0x18]
push 0x20
push edx
call dword [sym.imp.MSVCR100.dll__snprintf]
add esp, 0x18
test byte [0x4805a8], 0x80
je 0x410093
mov edi, dword [sym.imp.MSVCR100.dll__errno]
call edi
mov ebx, dword [eax]
push 0x480590
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push str.socket_loopback_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.0040edb0
push eax
mov eax, dword [ebp + 8]
push 0x4702f8
push eax
push str.socket_loopback_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 0x480590
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call edi
mov dword [eax], ebx
mov eax, esi
call fcn.0040edb0
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00459991
mov esp, ebp
pop ebp
ret
Function at 0x4102b0
Capabilities:
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x47f160]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
mov eax, 0x470114
call fcn.0040edf0
mov esi, eax
test esi, esi
je 0x41033e
cmp dword [0x4905f8], 0
jne 0x4102e1
call fcn.0040fb90
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 0x410352
xor edi, edi
cmp dword [esi + 4], edi
je 0x41033e
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.00459991
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 0x4103af
xor edi, edi
cmp dword [esi + 4], edi
je 0x41033e
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.00459991
mov esp, ebp
pop ebp
ret
push 4
push edi
call dword [sym.imp.WS2_32.dll_listen]
test eax, eax
jns 0x4103d5
call fcn.0040ef10
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00459991
mov esp, ebp
pop ebp
ret
push ebx
push 0x46e90d
mov eax, esi
call fcn.0040edb0
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 [0x4805a8], 0x80
je 0x41048a
mov edi, dword [sym.imp.MSVCR100.dll__errno]
call edi
mov ebx, dword [eax]
push 0x480590
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.0040edb0
mov edx, dword [ebp + 8]
push eax
push 0x4702f8
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 0x480590
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call edi
mov dword [eax], ebx
mov eax, esi
call fcn.0040edb0
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00459991
mov esp, ebp
pop ebp
ret
Function at 0x415b70
Capabilities:
Query environment variable
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x4c
mov eax, dword [0x47f160]
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 0x415bad
mov ecx, dword [ebp + 0xc]
push ecx
mov ecx, eax
call fcn.004100b0
mov esi, eax
add esp, 4
test esi, esi
jns 0x415bc3
mov edx, dword [ebp + 0xc]
push edx
call fcn.0040fc00
mov esi, eax
add esp, 4
test esi, esi
js 0x415cb1
test byte [0x4805a8], 8
je 0x415c42
mov edi, dword [sym.imp.MSVCR100.dll__errno]
call edi
mov ebx, dword [eax]
push 0x480590
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 0x480590
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call edi
mov dword [eax], ebx
push esi
call fcn.0040ec90
add esp, 4
test eax, eax
je 0x415c6c
cmp dword [eax], 0x470114
jne 0x415c6c
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.00414df0
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.00459991
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.00459991
mov esp, ebp
pop ebp
ret
Function at 0x416040
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [0x4926d0], 0
mov dword [ebp - 4], 0x415cd0
jne 0x41605b
mov dword [ebp - 4], 0x415d90
test byte [0x4805a8], 8
je 0x4160ee
push ebx
push esi
mov esi, dword [sym.imp.MSVCR100.dll__errno]
push edi
call esi
mov edi, dword [eax]
push 0x480590
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 [0x4926d0], 0
mov dword [eax], edi
mov eax, str.client
jne 0x4160bb
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 0x480590
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 0x416125
cmp dword [0x4926d0], 0
mov eax, str.client
jne 0x41611a
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 0x416840
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x47f160]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov ecx, 0x31
mov esi, 0x47f1a0
mov edi, 0x4924b8
rep movsd dword es:[edi], dword [esi]
lea esi, [ebp - 0x108]
mov dword [0x4927e8], 0x31
call fcn.00416980
test eax, eax
jne 0x41693f
mov eax, esi
push 0x46d9f8
push eax
call dword [sym.imp.MSVCR100.dll_fopen]
mov esi, eax
add esp, 8
mov dword [ebp - 0x10c], esi
test esi, esi
je 0x41693f
push esi
lea ecx, [ebp - 0x108]
push 0x104
push ecx
call dword [sym.imp.MSVCR100.dll_fgets]
add esp, 0xc
test eax, eax
je 0x41693f
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 0x416924
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 0x41694f
call edi
cmp dword [eax], 0x22
je 0x41694f
cmp esi, 0x7fffffff
jg 0x41694f
test esi, esi
js 0x41694f
mov eax, dword [0x4927e8]
mov dword [eax*4 + 0x4924b8], esi
inc eax
mov dword [0x4927e8], eax
cmp eax, 0x80
je 0x41693e
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 0x4168d0
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00459991
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 0x416980
Capabilities:
Get common file path
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x47f160]
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 0x4169bd
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.00459991
mov esp, ebp
pop ebp
ret
Function at 0x41a370
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45a8bc
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x47f160]
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 0x41a3ad
mov dword [eax], 0
cmp dword [esi + 4], 0
jne 0x41a3d1
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 0x41a3de
mov byte [ebp - 0x18], 0
jmp 0x41a3e8
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 0x41a41d
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp + 0x18]
push ecx
push edx
push edi
push eax
mov ecx, esi
call fcn.0041b160
mov esi, eax
jmp 0x41a41f
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 0x41a513
mov eax, dword [ebp + 0x1c]
cmp eax, ecx
jne 0x41a47b
lea ecx, [esi + 0x10]
push ecx
mov ecx, dword [ebp + 0xc]
test bl, bl
je 0x41a466
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 0x41a4de
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 0x41a4de
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 0x41a4ad
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 0x41a4ec
mov ecx, dword [ebp + 8]
mov dword [eax], ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test edi, edi
jne 0x41a513
cmp ebx, 0x3e5
je 0x41a513
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 0x41a550
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 0x41a566
mov dword [edi], ebx
cmp dword [esi + 4], ebx
jne 0x41a57e
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 0x41a58d
mov byte [ebp + 0xb], bl
jmp 0x41a593
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 0x41a5de
cmp al, bl
mov eax, dword [esi + 0x18]
je 0x41a5c8
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 0x41a644
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 0x41a644
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 0x41a613
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 0x41a659
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x41a573
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 0x41a687
cmp edi, ebx
je 0x41a685
mov ecx, dword [ebp + 0x18]
cmp byte [ebp + 0xb], bl
jne 0x41a683
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 0x41b160
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45a7b8
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [0x47f160]
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 0x41f2c0
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 0x41f350
push 0x7a
push str..crypto_bio_bss_file.c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 1
push 2
call fcn.00421d00
push 0x45b5d0
push esi
push 0x45b5cc
push ebx
push str.fopen_
push 5
call fcn.00421f00
add esp, 0x2c
call sub.MSVCR100.dll__errno
cmp dword [eax], 2
jne 0x41f335
push 0x7d
push str..crypto_bio_bss_file.c
push 0x80
push 0x6d
push 0x20
call fcn.00421d00
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.00421d00
add esp, 0x14
pop edi
pop esi
xor eax, eax
pop ebx
ret
push 0x476028
call fcn.0041e5a0
mov esi, eax
add esp, 4
test esi, esi
jne 0x41f372
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.0041e080
push edi
push 1
push 0x6a
push esi
call fcn.0041e390
add esp, 0x18
pop edi
mov eax, esi
pop esi
pop ebx
ret
Function at 0x423f80
Capabilities:
Access the windows event log

Disassembly:
mov eax, pe_nt_image_headers32
call fcn.00459eb0
mov eax, dword [0x47f160]
xor eax, esp
mov dword [esp + 0x104], eax
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
test eax, eax
je 0x423fe5
push eax
call dword [sym.imp.KERNEL32.dll_GetFileType]
test eax, eax
je 0x423fe5
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.00459991
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 0x424074
call fcn.00423ea0
test eax, eax
je 0x424074
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.00459991
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.00459991
add esp, 0x108
ret