joyce8/EMBER2024-capa huggingface dataset:
Function at 0x586230
Capabilities:
Encode data using xor

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x2c
mov esi, dword [esp + 0x40]
mov ebx, dword [esi]
mov eax, dword [esi + 4]
cmp ebx, 1
je 0x5862e0
jle 0x586281
cmp ebx, 2
je 0x586270
cmp ebx, 3
jne 0x5862d2
mov eax, dword [eax + 8]
mov edi, eax
mov eax, edi
add esp, 0x2c
shl ebx, 0x1e
and eax, 0x3fffffff
or eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [eax + 4]
mov dword [esp], eax
call sym._OPENSSL_LH_strhash
mov ebx, dword [esi]
mov edi, eax
jmp 0x58625a
test ebx, ebx
jne 0x5862d2
mov edx, dword [eax + 0xc]
mov esi, dword [eax + 0x10]
mov ebp, edx
shl ebp, 0x14
test edx, edx
mov edi, ebp
jle 0x58625a
lea eax, [esi + edx]
xor edi, edi
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], eax
mov eax, 0xaaaaaaab
movzx ebx, byte [esi]
mov ecx, edi
mul edi
add esi, 1
add edi, 3
shr edx, 4
lea eax, [edx + edx*2]
shl eax, 3
sub ecx, eax
shl ebx, cl
xor ebp, ebx
cmp dword [esp + 0x18], esi
jne 0x5862a3
mov ebx, dword [esp + 0x1c]
mov edi, ebp
jmp 0x58625a
add esp, 0x2c
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [eax]
mov dword [esp], eax
call sym._OPENSSL_LH_strhash
mov ebx, dword [esi]
mov edi, eax
jmp 0x58625a
Function at 0x59aa00
Capabilities:
Generate random numbers via winapi

Disassembly:
push edi
push esi
push ebx
sub esp, 0x30
mov ebx, dword [esp + 0x40]
mov dword [esp + 4], 1
mov dword [esp], ebx
call sym._rand_pool_bytes_needed
mov dword [esp], ebx
mov dword [esp + 4], eax
mov esi, eax
call sym._rand_pool_add_begin
test eax, eax
je 0x59aa90
mov edi, eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x10], 0xf0000040
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
sub esp, 0x14
test eax, eax
jne 0x59ab20
xor edi, edi
xor esi, esi
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._rand_pool_add_end
mov dword [esp], ebx
call sym._rand_pool_entropy_available
test eax, eax
je 0x59aa90
add esp, 0x30
pop ebx
pop esi
pop edi
ret
mov dword [esp + 4], 1
mov dword [esp], ebx
call sym._rand_pool_bytes_needed
mov dword [esp], ebx
mov dword [esp + 4], eax
mov esi, eax
call sym._rand_pool_add_begin
test eax, eax
mov edi, eax
je 0x59ab10
lea eax, [esp + 0x2c]
mov dword [esp + 0x10], 0xf0000040
mov dword [esp + 0xc], 0x16
mov dword [esp + 8], str.Intel_Hardware_Cryptographic_Service_Provider
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
sub esp, 0x14
test eax, eax
jne 0x59ab70
xor edi, edi
xor esi, esi
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._rand_pool_add_end
mov dword [esp], ebx
call sym._rand_pool_entropy_available
test eax, eax
jne 0x59aa86
mov dword [esp], ebx
call sym._rand_pool_entropy_available
add esp, 0x30
pop ebx
pop esi
pop edi
ret
mov eax, dword [esp + 0x2c]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
sub esp, 0xc
test eax, eax
jne 0x59ab60
xor edi, edi
xor esi, esi
mov eax, dword [esp + 0x2c]
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
sub esp, 8
jmp 0x59aa6a
lea edi, [esi*8]
jmp 0x59ab40
mov eax, dword [esp + 0x2c]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
sub esp, 0xc
test eax, eax
je 0x59abb0
lea edi, [esi*8]
mov eax, dword [esp + 0x2c]
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
sub esp, 8
jmp 0x59aaf0
xor edi, edi
xor esi, esi
jmp 0x59ab93
Function at 0x5a0d20
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push edi
push esi
push ebx
sub esp, 0x20
mov ebx, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
mov esi, dword [esp + 0x38]
mov edi, dword [esp + 0x3c]
mov eax, dword [ebx + 8]
mov ecx, dword [eax + 0x34]
test ecx, ecx
je 0x5a0d50
add esp, 0x20
pop ebx
pop esi
pop edi
jmp ecx
mov eax, dword [eax + 0x38]
test eax, eax
je 0x5a0d77
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], esi
mov dword [esp], ebx
mov dword [esp + 8], 2
mov dword [esp + 4], edx
call eax
add esp, 0x20
pop ebx
pop esi
pop edi
ret
mov dword [esp + 0x34], edi
mov dword [esp + 0x30], esi
add esp, 0x20
mov eax, ebx
mov ecx, 2
pop ebx
pop esi
pop edi
jmp sym._rsa_builtin_keygen

Function at 0x5b7cc0
Capabilities:
Allocate thread local storage

Disassembly:
sub esp, 0xc
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov edx, dword [esp + 0x10]
cmp eax, 0xffffffff
mov dword [edx], eax
setne al
add esp, 0xc
movzx eax, al
ret

Function at 0x5b7ce0
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [esp + 0x20]
mov eax, dword [eax]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
sub esp, 4
mov eax, ebx
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x5b7d20
Capabilities:
Set thread local storage value

Disassembly:
sub esp, 0x1c
mov eax, dword [esp + 0x24]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x20]
mov eax, dword [eax]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
test eax, eax
setne al
add esp, 0x1c
movzx eax, al
ret
Function at 0x5e5430
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov esi, eax
mov ebx, edx
mov edi, ecx
sub esp, 0x4c
mov dword [esp], eax
mov dword [esp + 0xc], ecx
mov dword [esp + 8], edx
mov dword [esp + 4], str.capi_ctx_set_provname__name_s__type_d_n
call sym._CAPI_trace
mov eax, dword [ebp + 8]
test eax, eax
je 0x5e55c0
mov eax, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], 0
mov dword [ebp - 0x2c], eax
call eax
sub esp, 0x18
test eax, eax
mov edx, eax
je 0x5e5516
lea eax, [eax + eax + 0x1e]
shr eax, 4
shl eax, 4
call fcn.006f9d60
sub esp, eax
lea eax, [esp + 0x27]
mov dword [esp + 0x14], edx
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
and eax, 0xfffffff0
mov dword [esp], 0
mov dword [esp + 0x10], eax
mov dword [ebp - 0x30], eax
call dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x30]
lea eax, [ebp - 0x28]
sub esp, 0x18
mov dword [esp + 0x10], 0xf0000000
mov dword [esp + 0xc], edi
mov dword [esp + 4], 0
mov dword [esp], eax
mov dword [esp + 8], ecx
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
sub esp, 0x14
test eax, eax
jne 0x5e55a0
mov eax, dword [0x9475b4]
test eax, eax
jne 0x5e5529
call sym._ERR_get_next_error_library
mov dword [0x9475b4], eax
lea ebx, [ebp - 0x22]
mov dword [esp], eax
mov dword [esp + 0x10], 0x66f
mov dword [esp + 0xc], str.engines_e_capi.c
mov dword [esp + 8], 0x68
mov dword [esp + 4], 0x66
call sym._ERR_put_error
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x83b39d
mov dword [esp + 4], 0xa
call sym._BIO_snprintf
mov dword [esp + 8], ebx
mov dword [esp + 4], str.Error_code_0x
mov dword [esp], 2
call sym._ERR_add_error_data
lea esp, [ebp - 0xc]
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp - 0x28]
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
sub esp, 8
mov esi, esi
lea edi, [edi]
mov dword [esp], ebx
mov dword [esp + 8], 0x675
mov dword [esp + 4], str.engines_e_capi.c
call sym._CRYPTO_strdup
test eax, eax
mov ebx, eax
je 0x5e5610
mov eax, dword [esi + 0xc]
mov dword [esp + 8], 0x67a
mov dword [esp + 4], str.engines_e_capi.c
mov dword [esp], eax
call sym._CRYPTO_free
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], edi
lea esp, [ebp - 0xc]
mov eax, 1
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [0x9475b4]
test eax, eax
jne 0x5e5623
call sym._ERR_get_next_error_library
mov dword [0x9475b4], eax
mov dword [esp], eax
mov dword [esp + 0x10], 0x677
mov dword [esp + 0xc], str.engines_e_capi.c
mov dword [esp + 8], 0x41
mov dword [esp + 4], 0x66
call sym._ERR_put_error
lea esp, [ebp - 0xc]
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x670d40
Capabilities:
Hash data using sha1

Disassembly:
sub esp, 0x1c
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call sym._EVP_MD_CTX_md_data
mov dword [esp + 0x20], eax
add esp, 0x1c
jmp sym._SHA1_Init

Function at 0x670e00
Capabilities:
Write file on windows

Disassembly:
push edi
push esi
push ebx
sub esp, 0x10
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov ebx, dword [esp + 0x20]
mov dword [esp + 8], 0x2e
mov dword [esp + 4], 1
mov dword [esp], str._TEST_ENG_OPENSSL_RC4__test_init_key___called_n
add eax, 0x40
mov dword [esp + 0xc], eax
call sym._fwrite
mov dword [esp], ebx
call sym._EVP_CIPHER_CTX_key_length
mov dword [esp], ebx
mov esi, eax
call sym._EVP_CIPHER_CTX_get_cipher_data
mov edx, dword [esp + 0x24]
mov dword [esp + 8], esi
mov dword [esp], eax
mov dword [esp + 4], edx
call sym._memcpy
mov dword [esp], ebx
call sym._EVP_CIPHER_CTX_get_cipher_data
mov dword [esp], ebx
mov edi, eax
call sym._EVP_CIPHER_CTX_key_length
mov dword [esp], ebx
mov esi, eax
call sym._EVP_CIPHER_CTX_get_cipher_data
add eax, 0x10
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], eax
call sym._RC4_set_key
add esp, 0x10
mov eax, 1
pop ebx
pop esi
pop edi
ret

Function at 0x6759e0
Capabilities:
Encode data using base64

Disassembly:
push ebp
push edi
push esi
push ebx
mov esi, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
sub esp, 4
test eax, eax
mov dword [esp], edx
mov edi, dword [esp + 0x18]
je 0x675a03
test byte [eax + 0x5c], 2
mov eax, str.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz._
cmovne esi, eax
test edi, edi
jle 0x675b20
cmp edi, 2
jg 0x675aa4
xor eax, eax
movzx ebp, byte [ecx]
mov edx, dword [esp]
lea ebx, [edx + 4]
shl ebp, 0x10
cmp edi, 2
je 0x675a60
mov ecx, ebp
shr ebp, 0xc
add eax, ebx
shr ecx, 0x12
and ebp, 0x3f
sub eax, dword [esp]
movzx ecx, byte [esi + ecx]
mov byte [ebx - 4], cl
movzx ecx, byte [esi + ebp]
mov byte [ebx - 2], 0x3d
mov byte [ebx - 1], 0x3d
mov byte [ebx - 3], cl
mov byte [ebx], 0
add esp, 4
pop ebx
pop esi
pop edi
pop ebp
ret
movzx ecx, byte [ecx + 1]
add eax, ebx
sub eax, edx
shl ecx, 8
or ebp, ecx
mov ecx, ebp
shr ecx, 0x12
movzx ecx, byte [esi + ecx]
mov byte [ebx - 4], cl
mov ecx, ebp
shr ebp, 6
shr ecx, 0xc
and ebp, 0x3f
and ecx, 0x3f
movzx ecx, byte [esi + ecx]
mov byte [ebx - 3], cl
movzx ecx, byte [esi + ebp]
mov byte [ebx - 1], 0x3d
mov byte [ebx], 0
mov byte [ebx - 2], cl
add esp, 4
pop ebx
pop esi
pop edi
pop ebp
ret
mov ebx, dword [esp]
mov esi, esi
lea edi, [edi]
movzx eax, byte [ecx + 1]
movzx ebp, byte [ecx]
add ebx, 4
sub edi, 3
add ecx, 3
shl ebp, 0x10
shl eax, 8
or eax, ebp
movzx ebp, byte [ecx - 1]
or eax, ebp
mov ebp, eax
shr ebp, 0x12
movzx edx, byte [esi + ebp]
mov ebp, eax
shr ebp, 0xc
and ebp, 0x3f
mov byte [ebx - 4], dl
movzx edx, byte [esi + ebp]
mov ebp, eax
shr ebp, 6
and eax, 0x3f
and ebp, 0x3f
mov byte [ebx - 3], dl
movzx edx, byte [esi + ebp]
mov byte [ebx - 2], dl
movzx eax, byte [esi + eax]
mov byte [ebx - 1], al
mov eax, ebx
sub eax, dword [esp]
cmp edi, 2
jg 0x675ab0
test edi, edi
mov dword [esp], ebx
jne 0x675a16
jmp 0x675a4d
mov ebx, dword [esp]
xor eax, eax
jmp 0x675a4d
Function at 0x6ca2e0
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x2c
mov ebx, dword [esp + 0x40]
mov dword [esp + 4], dbg.uv_init
mov dword [esp], 0x9479c4
call sym._uv_once
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], 0xffffffff
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
sub esp, 0x10
test eax, eax
mov dword [ebx + 0x1c], eax
je 0x6ca4c0
mov dword [ebx + 0x20], 0
mov dword [ebx + 0x24], 0
lea ebp, [ebx + 0x70]
mov dword [esp], ebx
call dbg.uv_update_time
lea eax, [ebx + 0x68]
mov dword [ebx + 4], 0
mov dword [ebx + 0x28], 0
mov dword [ebx + 0x2c], 0
mov dword [ebx + 0x30], 0
mov dword [ebx + 0x68], eax
mov dword [ebx + 0x6c], eax
lea eax, [ebx + 8]
mov dword [ebx + 0x38], 0
mov dword [ebx + 0x34], 0
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], eax
lea eax, [ebx + 0x10]
mov dword [ebx + 0x3c], 0
mov dword [ebx + 0x40], 0
mov dword [ebx + 0x10], eax
mov dword [ebx + 0x14], eax
mov dword [ebx + 0x44], 0
mov dword [ebx + 0x48], 0
mov dword [ebx + 0x4c], 0
mov dword [ebx + 0x50], 0
mov dword [ebx + 0x54], 0
mov dword [ebx + 0x58], 0
mov dword [ebx + 0x5c], 0
mov dword [ebx + 0x60], 0
mov dword [ebx + 0x64], 0
mov dword [ebx + 0x18], 0
mov dword [esp], ebp
call sym._uv_mutex_init
test eax, eax
mov esi, eax
je 0x6ca412
mov eax, dword [ebx + 0x1c]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
mov dword [ebx + 0x1c], 0xffffffff
mov eax, esi
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret
lea eax, [ebx + 0x88]
mov dword [esp + 8], dbg.uv__work_done
mov dword [esp], ebx
mov dword [esp + 4], eax
call dbg.uv_async_init
test eax, eax
mov esi, eax
jne 0x6ca4f0
mov eax, dword [ebx + 0xb4]
test al, 0x20
je 0x6ca470
mov edx, eax
and edx, 0xffffffdf
test al, 1
mov dword [ebx + 0xb4], edx
jne 0x6ca560
and eax, 0x40
mov ecx, eax
mov eax, edx
test ecx, ecx
je 0x6ca470
mov edx, dword [ebx + 0x8c]
sub dword [edx + 4], 1
nop
lea esi, [esi]
or al, 0x80
mov dword [ebx + 0xb4], eax
mov dword [esp], 0x9479a0
call sym._uv_mutex_lock
mov edi, dword [0x9479bc]
cmp edi, dword [0x9479b8]
mov eax, dword [0x9479c0]
je 0x6ca500
mov dword [eax + edi*4], ebx
add edi, 1
mov dword [esp], 0x9479a0
mov dword [0x9479bc], edi
call sym._uv_mutex_unlock
add esp, 0x2c
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x40], eax
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
jmp dbg.uv_translate_sys_error
mov dword [esp], 0x9479a0
mov esi, 0xe
call sym._uv_mutex_unlock
mov esi, esi
lea edi, [edi]
mov dword [esp], ebp
call sym._uv_mutex_destroy
jmp 0x6ca3f2
add edi, 8
mov eax, dword [0x9479c0]
lea ecx, [edi*4]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 0x1c], ecx
call dbg.uv__realloc
test eax, eax
je 0x6ca4d6
mov edx, dword [0x9479b8]
mov dword [0x9479c0], eax
cmp edi, edx
jle 0x6ca54d
mov ecx, dword [esp + 0x1c]
lea edx, [eax + edx*4]
add ecx, eax
nop
lea esi, [esi]
mov dword [edx], 0
add edx, 4
cmp ecx, edx
jne 0x6ca540
mov dword [0x9479b8], edi
mov edi, dword [0x9479bc]
jmp 0x6ca497
mov eax, edx
jmp 0x6ca470
Function at 0x6cb7d0
Capabilities:
Get common file path

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
mov esi, edx
mov ebx, eax
sub esp, 0x2c
mov dword [esp], eax
call sym._wcslen
test eax, eax
je 0x6cb817
lea ebp, [eax - 1]
mov ecx, eax
movzx eax, word [ebx + ebp*2]
cmp ax, 0x5c
je 0x6cb861
cmp ax, 0x2f
jne 0x6cb813
jmp 0x6cb861
sub ebp, 1
movzx eax, word [ebx + ebp*2]
cmp ax, 0x2f
je 0x6cb861
cmp ax, 0x5c
je 0x6cb861
test ebp, ebp
jne 0x6cb800
test esi, esi
je 0x6cb84d
mov dword [esp], 0x20a
call sym._uv__malloc
test eax, eax
mov dword [esi], eax
je 0x6cb909
mov dword [esp + 4], eax
mov dword [esp], 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
sub esp, 8
test eax, eax
je 0x6cb8f2
mov dword [esp], ebx
call sym._wcsdup
mov dword [edi], eax
add esp, 0x2c
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
test ebp, ebp
je 0x6cb817
test esi, esi
je 0x6cb8ab
lea eax, [ebp + ebp + 4]
mov dword [esp + 0x1c], ecx
mov dword [esp], eax
mov dword [esp + 0x18], eax
call sym._uv__malloc
test eax, eax
mov dword [esi], eax
je 0x6cb909
lea edx, [ebp + 1]
mov dword [esp + 4], ebx
mov dword [esp], eax
mov dword [esp + 8], edx
call sym._wcsncpy
mov eax, dword [esi]
mov edx, dword [esp + 0x18]
xor ecx, ecx
mov word [eax + edx - 2], cx
mov ecx, dword [esp + 0x1c]
mov edx, ecx
sub edx, ebp
lea esi, [edx + edx]
mov dword [esp + 0x18], edx
mov dword [esp], esi
call sym._uv__malloc
test eax, eax
mov dword [edi], eax
je 0x6cb909
mov edx, dword [esp + 0x18]
mov dword [esp], eax
lea ecx, [edx - 1]
lea edx, [ebx + ebp*2 + 2]
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
call sym._wcsncpy
mov eax, dword [edi]
xor edx, edx
mov word [eax + esi - 2], dx
xor eax, eax
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esi]
mov dword [esp], eax
call dbg.uv__free
mov dword [esi], 0
mov eax, 0xffffffff
jmp 0x6cb8ea
mov dword [esp + 4], 0x869788
mov dword [esp], 0xe
call dbg.uv_fatal_error
lea esi, [esi]
Function at 0x6cd220
Capabilities:
Read file on windows

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x7c
mov esi, dword [esp + 0x90]
mov eax, dword [esi + 0xf4]
cmp eax, 0xffffffff
jne 0x6cd252
mov dword [esi + 0x48], 0xfffff00d
mov dword [esi + 0xf0], 6
add esp, 0x7c
pop ebx
pop esi
pop edi
pop ebp
ret
mov edx, dword [esi + 0x110]
mov ecx, dword [esi + 0x114]
mov dword [esp], eax
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], ecx
call dword [sym.imp.msvcrt.dll__get_osfhandle]
cmp eax, 0xffffffff
mov ebp, eax
je 0x6cd431
mov ecx, dword [esp + 0x30]
mov ebx, dword [esp + 0x34]
mov edx, ecx
mov ecx, ebx
not ecx
not edx
mov eax, ecx
or eax, edx
jne 0x6cd353
mov dword [esp + 0x38], 0
mov dword [esp + 0x2c], 0
or ecx, edx
xor ebx, ebx
xor edi, edi
mov dword [esp + 0x28], ecx
jmp 0x6cd2b8
cmp dword [esi + 0x108], ebx
jbe 0x6cd313
mov edx, dword [esp + 0x28]
test edx, edx
je 0x6cd2d4
xor edx, edx
mov eax, edi
add eax, dword [esp + 0x30]
adc edx, dword [esp + 0x34]
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], edx
mov eax, dword [esi + 0x10c]
mov ecx, dword [esp + 0x2c]
lea eax, [eax + ebx*8]
mov dword [esp + 0x10], ecx
lea ecx, [esp + 0x4c]
add ebx, 1
mov dword [esp + 0xc], ecx
mov edx, dword [eax]
mov dword [esp + 8], edx
mov eax, dword [eax + 4]
mov dword [esp], ebp
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
sub esp, 0x14
add edi, dword [esp + 0x4c]
test eax, eax
mov edx, edi
jne 0x6cd2b0
mov ecx, eax
mov eax, dword [esp + 0x38]
test eax, eax
jne 0x6cd3f0
or ecx, edx
je 0x6cd3d0
cmp edx, 0xffffffff
mov dword [esi + 0x48], edx
jne 0x6cd24a
call dword [sym.imp.msvcrt.dll___doserrno]
mov eax, dword [eax]
mov dword [esi + 0xf0], eax
mov dword [esp], eax
call dbg.uv_translate_sys_error
mov dword [esi + 0x48], eax
jmp 0x6cd24a
lea eax, [esp + 0x50]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x28], edx
mov dword [esp + 0x5c], 0
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 0
mov dword [esp + 0x68], 0
mov dword [esp + 0x6c], 0
mov dword [esp + 0x10], 1
mov dword [esp + 0xc], eax
mov dword [esp + 4], 0
mov dword [esp + 8], 0
mov dword [esp], ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
sub esp, 0x14
test eax, eax
setne al
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x3c]
movzx eax, al
mov dword [esp + 0x38], eax
lea eax, [esp + 0x5c]
mov dword [esp + 0x2c], eax
jmp 0x6cd2a4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x26
jne 0x6cd450
mov dword [esi + 0x48], 0
jmp 0x6cd24a
mov dword [esp + 0x2c], edx
mov eax, dword [esp + 0x50]
mov edx, dword [esp + 0x54]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 4], eax
mov dword [esp], ebp
mov dword [esp + 8], edx
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
sub esp, 0x14
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
jmp 0x6cd321
mov dword [esi + 0xf0], 6
mov dword [esp], 6
call dbg.uv_translate_sys_error
mov dword [esi + 0x48], eax
jmp 0x6cd24a
mov dword [esi + 0xf0], eax
mov dword [esp], eax
call dbg.uv_translate_sys_error
mov dword [esi + 0x48], eax
jmp 0x6cd24a
Function at 0x6cd470
Capabilities:
Write file on windows

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x7c
mov esi, dword [esp + 0x90]
mov eax, dword [esi + 0xf4]
cmp eax, 0xffffffff
jne 0x6cd4a2
mov dword [esi + 0x48], 0xfffff00d
mov dword [esi + 0xf0], 6
add esp, 0x7c
pop ebx
pop esi
pop edi
pop ebp
ret
mov edx, dword [esi + 0x110]
mov ecx, dword [esi + 0x114]
mov dword [esp], eax
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], ecx
call dword [sym.imp.msvcrt.dll__get_osfhandle]
cmp eax, 0xffffffff
mov ebp, eax
je 0x6cd681
mov ecx, dword [esp + 0x30]
mov ebx, dword [esp + 0x34]
mov edx, ecx
mov ecx, ebx
not ecx
not edx
mov eax, ecx
or eax, edx
jne 0x6cd5a3
mov dword [esp + 0x38], 0
mov dword [esp + 0x2c], 0
or ecx, edx
xor ebx, ebx
xor edi, edi
mov dword [esp + 0x28], ecx
jmp 0x6cd508
cmp dword [esi + 0x108], ebx
jbe 0x6cd563
mov edx, dword [esp + 0x28]
test edx, edx
je 0x6cd524
xor edx, edx
mov eax, edi
add eax, dword [esp + 0x30]
adc edx, dword [esp + 0x34]
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], edx
mov eax, dword [esi + 0x10c]
mov ecx, dword [esp + 0x2c]
lea eax, [eax + ebx*8]
mov dword [esp + 0x10], ecx
lea ecx, [esp + 0x4c]
add ebx, 1
mov dword [esp + 0xc], ecx
mov edx, dword [eax]
mov dword [esp + 8], edx
mov eax, dword [eax + 4]
mov dword [esp], ebp
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
sub esp, 0x14
add edi, dword [esp + 0x4c]
test eax, eax
mov edx, edi
jne 0x6cd500
mov ecx, eax
mov eax, dword [esp + 0x38]
test eax, eax
jne 0x6cd640
or ecx, edx
je 0x6cd620
cmp edx, 0xffffffff
mov dword [esi + 0x48], edx
jne 0x6cd49a
call dword [sym.imp.msvcrt.dll___doserrno]
mov eax, dword [eax]
mov dword [esi + 0xf0], eax
mov dword [esp], eax
call dbg.uv_translate_sys_error
mov dword [esi + 0x48], eax
jmp 0x6cd49a
lea eax, [esp + 0x50]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x28], edx
mov dword [esp + 0x5c], 0
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 0
mov dword [esp + 0x68], 0
mov dword [esp + 0x6c], 0
mov dword [esp + 0x10], 1
mov dword [esp + 0xc], eax
mov dword [esp + 4], 0
mov dword [esp + 8], 0
mov dword [esp], ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
sub esp, 0x14
test eax, eax
setne al
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x3c]
movzx eax, al
mov dword [esp + 0x38], eax
lea eax, [esp + 0x5c]
mov dword [esp + 0x2c], eax
jmp 0x6cd4f4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0xf0], eax
mov dword [esp], eax
call dbg.uv_translate_sys_error
mov dword [esi + 0x48], eax
add esp, 0x7c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0x2c], edx
mov eax, dword [esp + 0x50]
mov edx, dword [esp + 0x54]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 4], eax
mov dword [esp], ebp
mov dword [esp + 8], edx
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
sub esp, 0x14
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
jmp 0x6cd571
mov dword [esi + 0xf0], 6
mov dword [esp], 6
call dbg.uv_translate_sys_error
mov dword [esi + 0x48], eax
jmp 0x6cd49a
Function at 0x6d4e50
Capabilities:
Resolve dns

Disassembly:
push ebx
sub esp, 0x18
mov ebx, dword [esp + 0x20]
mov eax, dword [ebx + 0x24]
lea edx, [ebx + 0x24]
mov dword [ebx + 0x24], 0
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
mov eax, dword [ebx + 0x20]
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x1c]
mov dword [esp], eax
call dword [sym.imp.WS2_32.dll_GetAddrInfoW]
sub esp, 0x10
mov dword [esp], eax
call dbg.uv__getaddrinfo_translate_error
mov dword [ebx + 0x2c], eax
add esp, 0x18
pop ebx
ret