joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47f3c0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push edi
mov edi, dword [esp + 8]
test edi, edi
je 0x47f49a
push ebp
mov ebp, dword [esp + 0x10]
test ebp, ebp
je 0x47f4cb
mov eax, dword [esp + 0x14]
test eax, eax
je 0x47f4fc
push ebx
push dword [esp + 0x1c]
mov dword [edi + 4], 0
push eax
push ebp
push dword [edi]
call dword [sym.imp.WS2_32.dll_recv]
mov ebx, eax
cmp ebx, 0xffffffff
sete al
mov byte [esp + 0x10], al
jne 0x47f48c
push esi
nop
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
mov dword [edi + 4], esi
call fcn.004c3d2b
mov dword [eax], esi
mov eax, dword [edi + 4]
cmp eax, 0xb
je 0x47f438
cmp eax, 0x2733
je 0x47f438
cmp eax, 0x2734
jne 0x47f487
push dword [esp + 0x28]
push dword [esp + 0x28]
push 0x300
push edi
call fcn.0047e900
add esp, 0x10
test al, al
je 0x47f487
push dword [esp + 0x20]
mov dword [edi + 4], 0
push dword [esp + 0x20]
push ebp
push dword [edi]
call dword [sym.imp.WS2_32.dll_recv]
mov ebx, eax
cmp ebx, 0xffffffff
sete al
mov byte [esp + 0x14], al
je 0x47f410
or ecx, 0xffffffff
test al, al
pop esi
cmovne ebx, ecx
mov eax, ebx
pop ebx
pop ebp
pop edi
ret
mov al, byte [esp + 0x14]
pop esi
or ecx, 0xffffffff
test al, al
cmovne ebx, ecx
mov eax, ebx
pop ebx
pop ebp
pop edi
ret
push str.sock
push str.mongoc_socket_recv
push 0x43d
push str.C:Usersprocr_vcpkg_buildtreesmongo_c_driver_src1.24.3_56c7a21808.clean_srclibmongoc_srcmongocmongoc_socket.c
push str._s:_d__s__:_precondition_failed:__s_n
push 2
call fcn.004b9cc5
add esp, 4
push eax
call fcn.00443a60
add esp, 0x18
call fcn.004c3b6b
push 0x4ec3f8
push str.mongoc_socket_recv
push 0x43e
push str.C:Usersprocr_vcpkg_buildtreesmongo_c_driver_src1.24.3_56c7a21808.clean_srclibmongoc_srcmongocmongoc_socket.c
push str._s:_d__s__:_precondition_failed:__s_n
push 2
call fcn.004b9cc5
add esp, 4
push eax
call fcn.00443a60
add esp, 0x18
call fcn.004c3b6b
push str.buflen
push str.mongoc_socket_recv
push 0x43f
push str.C:Usersprocr_vcpkg_buildtreesmongo_c_driver_src1.24.3_56c7a21808.clean_srclibmongoc_srcmongocmongoc_socket.c
push str._s:_d__s__:_precondition_failed:__s_n
push 2
call fcn.004b9cc5
add esp, 4
push eax
call fcn.00443a60
add esp, 0x18
call fcn.004c3b6b
int3
Function at 0x48fcc0
Capabilities:
Resolve dns

Disassembly:
mov eax, dword [esp + 4]
mov eax, dword [eax + 0x10]
test eax, eax
je 0x48fce0
mov edx, dword [esp + 8]
nop
cmp dword [eax], edx
je 0x48fce1
ja 0x48fce0
mov eax, dword [eax + 0x240]
test eax, eax
jne 0x48fcd0
ret
lea ecx, [eax + 0x250]
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
jmp fcn.0048f970

Function at 0x4998e0
Capabilities:
Generate random numbers via winapi

Disassembly:
mov eax, dword [0x647e24]
test eax, eax
jne 0x49991b
push eax
push eax
push 0x4fd384
push 0x647e24
call sub.bcrypt.dll_BCryptOpenAlgorithmProvider
test eax, eax
jns 0x499916
push eax
push str.BCryptOpenAlgorithmProvider__:__ld
push str.mongoc
push 0
call fcn.00454e20
add esp, 0x10
xor eax, eax
ret
mov eax, dword [0x647e24]
push 0
push dword [esp + 0xc]
push dword [esp + 0xc]
push eax
call sub.bcrypt.dll_BCryptGenRandom
test eax, eax
js 0x499935
mov eax, 1
ret
push eax
push str.BCryptGenRandom__:__ld
push str.mongoc
push 0
call fcn.00454e20
add esp, 0x10
xor eax, eax
ret

Function at 0x4a14b0
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
mov dword [eax + 4], 0
mov dword [eax], 0
mov dword [eax + 8], 0x67452301
mov dword [eax + 0xc], 0xefcdab89
mov dword [eax + 0x10], 0x98badcfe
mov dword [eax + 0x14], 0x10325476
ret

Function at 0x4a1d50
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
push esi
push edi
mov edi, dword [esp + 0x14]
xor esi, esi
test edi, edi
je 0x4a1d85
push ebx
mov ebx, dword [esp + 0x14]
sub ebx, eax
nop word [eax + eax]
movzx edx, byte [ebx + eax]
lea eax, [eax + 1]
movzx ecx, byte [eax - 1]
xor edx, ecx
or esi, edx
sub edi, 1
jne 0x4a1d70
pop ebx
xor eax, eax
test esi, esi
pop edi
setne al
pop esi
ret
Function at 0x4a2720
Capabilities:
Decrypt data via sspi
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x40
mov eax, dword [0x522298]
xor eax, esp
mov dword [esp + 0x3c], eax
push esi
mov esi, dword [esp + 0x48]
push edi
xor edi, edi
mov eax, dword [esi + 0x28]
test eax, eax
je 0x4a287c
push ebx
push ebp
test edi, edi
jne 0x4a287a
push eax
push dword [esi + 0x30]
lea eax, [esp + 0x24]
push 1
push eax
call fcn.004a4950
push edi
push edi
lea eax, [esp + 0x40]
push edi
push eax
call fcn.004a4950
push edi
push edi
lea eax, [esp + 0x5c]
push edi
push eax
call fcn.004a4950
push edi
push edi
lea eax, [esp + 0x78]
push edi
push eax
call fcn.004a4950
add esp, 0x40
lea eax, [esp + 0x1c]
push 4
push eax
lea eax, [esp + 0x18]
push eax
call fcn.004a4970
add esp, 0xc
lea eax, [esp + 0x10]
push edi
push edi
push eax
push dword [esi + 8]
call sub.Secur32.dll_DecryptMessage
mov edi, eax
test edi, edi
je 0x4a27d6
cmp edi, 0x90321
je 0x4a27d6
cmp edi, 0x90317
je 0x4a27d6
cmp edi, 0x80090318
je 0x4a286f
mov dword [esi + 0x40], 1
jmp 0x4a286f
cmp dword [esp + 0x2c], 1
jne 0x4a2817
mov eax, dword [esi + 0x24]
lea ecx, [esi + 0x24]
sub eax, dword [esi + 0x2c]
lea ebp, [esi + 0x34]
mov ebx, dword [esp + 0x28]
cmp eax, ebx
jae 0x4a27fc
push ebx
push ebp
push ecx
call fcn.004a52c0
add esp, 0xc
test ebx, ebx
je 0x4a2817
mov eax, dword [ebp]
add eax, dword [esi + 0x2c]
push ebx
push dword [esp + 0x34]
push eax
call fcn.004b5e30
add esp, 0xc
add dword [esi + 0x2c], ebx
cmp dword [esp + 0x44], 5
jne 0x4a284a
mov edx, dword [esp + 0x40]
test edx, edx
je 0x4a284a
mov ebx, dword [esi + 0x28]
cmp ebx, edx
jbe 0x4a2851
mov ecx, dword [esi + 0x30]
mov eax, ecx
sub eax, edx
push edx
add eax, ebx
push eax
push ecx
call fcn.004b5e30
mov eax, dword [esp + 0x4c]
add esp, 0xc
mov dword [esi + 0x28], eax
jmp 0x4a2851
mov dword [esi + 0x28], 0
cmp edi, 0x90321
je 0x4a286f
cmp edi, 0x90317
jne 0x4a286f
cmp byte [esi + 0x45], 0
mov byte [esi + 0x44], 1
jne 0x4a286f
mov byte [esi + 0x45], 1
mov eax, dword [esi + 0x28]
test eax, eax
jne 0x4a2743
pop ebp
pop ebx
mov ecx, dword [esp + 0x44]
pop edi
pop esi
xor ecx, esp
call fcn.004b3f14
add esp, 0x40
ret
Function at 0x4a2e70
Capabilities:
Encrypt data via sspi

Disassembly:
sub esp, 0x48
mov eax, dword [0x522298]
xor eax, esp
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x50]
push ebp
mov ebp, dword [esp + 0x50]
push esi
mov esi, dword [esp + 0x5c]
push edi
mov edi, dword [ebp + 0x44]
mov dword [esp + 0x10], eax
test edi, edi
je 0x4a2fb4
cmp dword [edi + 0x14], 0
push ebx
lea ebx, [edi + 0xc]
jne 0x4a2ecb
push ebx
push 4
push dword [edi + 8]
call sub.Secur32.dll_QueryContextAttributesA
test eax, eax
je 0x4a2ecb
pop ebx
pop edi
pop esi
or eax, 0xffffffff
pop ebp
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.004b3f14
add esp, 0x48
ret
cmp esi, dword [edi + 0x14]
mov eax, dword [edi + 0x10]
cmova esi, dword [edi + 0x14]
add eax, esi
add eax, dword [ebx]
push eax
call fcn.00449bb0
push dword [ebx]
mov dword [esp + 0x18], eax
push eax
lea eax, [esp + 0x30]
push 7
push eax
call fcn.004a4950
mov eax, dword [ebx]
add eax, dword [esp + 0x24]
push esi
push eax
lea eax, [esp + 0x4c]
push 1
push eax
call fcn.004a4950
push dword [edi + 0x10]
mov eax, dword [esp + 0x38]
add eax, esi
add eax, dword [ebx]
push eax
lea eax, [esp + 0x68]
push 6
push eax
call fcn.004a4950
push 0
push 0
lea eax, [esp + 0x84]
push 0
push eax
call fcn.004a4950
add esp, 0x44
lea eax, [esp + 0x24]
push 4
push eax
lea eax, [esp + 0x20]
push eax
call fcn.004a4970
push esi
push dword [esp + 0x24]
push dword [esp + 0x4c]
call fcn.004b5e30
add esp, 0x18
lea eax, [esp + 0x18]
push 0
push eax
push 0
push dword [edi + 8]
call sub.Secur32.dll_EncryptMessage
test eax, eax
jne 0x4a2f89
mov esi, dword [esp + 0x3c]
add esi, dword [esp + 0x24]
add esi, dword [esp + 0x30]
push esi
push dword [esp + 0x14]
push ebp
call fcn.004a5a20
add esp, 0xc
mov edi, eax
jmp 0x4a2f8c
or edi, 0xffffffff
push dword [esp + 0x10]
call fcn.00449ba0
mov ecx, dword [esp + 0x58]
add esp, 4
cmp esi, edi
cmove edi, dword [esp + 0x30]
pop ebx
mov eax, edi
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.004b3f14
add esp, 0x48
ret
push str.secure_channel
push str._mongoc_stream_tls_secure_channel_write
push 0xfc
push str.C:Usersprocr_vcpkg_buildtreesmongo_c_driver_src1.24.3_56c7a21808.clean_srclibmongoc_srcmongocmongoc_stream_tls_secure_channel.c
push str._s:_d__s__:_precondition_failed:__s_n
push 2
call fcn.004b9cc5
add esp, 4
push eax
call fcn.00443a60
add esp, 0x18
call fcn.004c3b6b
int3
Function at 0x4a5310
Capabilities:
Read file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0x10]
push edi
push 0x51573c
mov dword [esp + 0xc], 0
push dword [ebx + 8]
call fcn.004be628
mov edi, eax
add esp, 8
test edi, edi
jne 0x4a5351
push dword [ebx + 8]
push str.Couldnt_open_file__s
push str.stream_secure_channel
push eax
call fcn.00454e20
add esp, 0x10
xor al, al
pop edi
pop ebx
pop ecx
ret
push ebp
push 2
push 0
push edi
call fcn.004ba660
push edi
call fcn.004bb135
push 0
push 0
push edi
mov ebp, eax
call fcn.004ba660
add esp, 0x1c
cmp ebp, 1
jge 0x4a5394
push dword [ebx + 8]
push str.Couldnt_determine_file_size_of__s
push str.stream_secure_channel
push 2
call fcn.00454e20
add esp, 0x10
xor al, al
pop ebp
pop edi
pop ebx
pop ecx
ret
push esi
push ebp
call fcn.00449bf0
push edi
push ebp
mov esi, eax
push 1
push esi
call fcn.004ba23c
push edi
call fcn.004b9bcd
push str._____BEGIN_CERTIFICATE_____
push esi
call fcn.004b5a20
mov esi, eax
add esp, 0x20
test esi, esi
jne 0x4a53e0
push dword [ebx + 8]
push str.Couldnt_find_certificate_in__s
push str.stream_secure_channel
push 2
call fcn.00454e20
add esp, 0x10
xor al, al
pop esi
pop ebp
pop edi
pop ebx
pop ecx
ret
mov edi, dword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
lea eax, [esp + 0x10]
push 0
push 0
push eax
push 0
push 0
push 0
push esi
call edi
test eax, eax
jne 0x4a541f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Failed_to_convert_BASE64_public_key._Error_0x_.8X
push str.stream_secure_channel
push 0
call fcn.00454e20
add esp, 0x10
xor al, al
pop esi
pop ebp
pop edi
pop ebx
pop ecx
ret
push dword [esp + 0x10]
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
push 0
push 0
mov ebx, eax
lea eax, [esp + 0x18]
push eax
push ebx
push 0
push 0
push esi
call edi
test eax, eax
je 0x4a53fc
push dword [esp + 0x10]
push ebx
push 1
call dword [sym.imp.CRYPT32.dll_CertCreateCertificateContext]
mov edi, eax
test edi, edi
jne 0x4a5471
push str.Could_not_convert_certificate
push str.stream_secure_channel
push 2
call fcn.00454e20
add esp, 0xc
xor al, al
pop esi
pop ebp
pop edi
pop ebx
pop ecx
ret
push str.Root
push 0x20000
push 0
push 0x10001
push 0xa
call dword [sym.imp.CRYPT32.dll_CertOpenStore]
mov esi, eax
test esi, esi
jne 0x4a54ab
push str.Error_opening_certificate_store
push str.stream_secure_channel
push eax
call fcn.00454e20
add esp, 0xc
xor al, al
pop esi
pop ebp
pop edi
pop ebx
pop ecx
ret
push 0
push 2
push edi
push esi
call dword [sym.imp.CRYPT32.dll_CertAddCertificateContextToStore]
test eax, eax
je 0x4a54cc
push 0
push esi
call dword [sym.imp.CRYPT32.dll_CertCloseStore]
pop esi
pop ebp
pop edi
mov al, 1
pop ebx
pop ecx
ret
push str.Failed_adding_the_cert
push str.stream_secure_channel
push 2
call fcn.00454e20
add esp, 0xc
push 0
push esi
call dword [sym.imp.CRYPT32.dll_CertCloseStore]
pop esi
pop ebp
pop edi
xor al, al
pop ebx
pop ecx
ret
Function at 0x4a7be0
Capabilities:
Create thread

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x4a7c25
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x4a7bfd
push str.MCOMMON_NAME_PREFIX_thread_create
push str.func
jmp 0x4a7c2f
push 0
push 0
push dword [esp + 0x18]
push eax
push 0
push 0
call fcn.004c80da
add esp, 0x18
mov dword [esi], eax
test eax, eax
jne 0x4a7c21
call fcn.004c3d2b
pop esi
mov eax, dword [eax]
ret
xor eax, eax
pop esi
ret
push str.MCOMMON_NAME_PREFIX_thread_create
push str.thread
push str.The_parameter:__s__in_function__s__cannot_be_NULL_n
push 2
call fcn.004b9cc5
add esp, 4
push eax
call fcn.00443a60
add esp, 0x10
call fcn.004c3b6b
int3

Function at 0x4ab680
Capabilities:
Get outbound credentials handle via credssp

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x24
push esi
mov esi, dword [esp + 0x4c]
push dword [esp + 0x2c]
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x3c], getpeername
mov dword [esi + 0x34], eax
mov word [esi + 0x38], 0
call fcn.004c816b
add esp, 4
mov dword [esi + 0x28], eax
test eax, eax
je 0x4ab75f
push 0x2f
push eax
call fcn.004b65bd
add esp, 8
test eax, eax
jne 0x4ab6e9
push 0x40
push dword [esi + 0x28]
call fcn.004b65bd
add esp, 8
test eax, eax
je 0x4ab6e9
mov ecx, 0x2f
mov word [eax], cx
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x44]
test eax, eax
je 0x4ab725
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], 2
lea eax, [esp + 4]
xor edx, edx
push eax
lea eax, [esi + 0x18]
test ecx, ecx
push eax
push 0
push 0
lea eax, [esp + 0x1c]
cmove eax, edx
push eax
push edx
push 2
push str.kerberos
push edx
call dword [sym.imp.Secur32.dll_AcquireCredentialsHandleW]
test eax, eax
je 0x4ab767
push str.AcquireCredentialsHandle
push eax
call fcn.004abfa0
add esp, 8
or eax, 0xffffffff
pop esi
add esp, 0x24
ret
mov byte [esi + 0x38], 1
mov eax, 1
pop esi
add esp, 0x24
ret
Function at 0x4ab9b0
Capabilities:
Decrypt data via sspi

Disassembly:
sub esp, 0x24
push esi
mov esi, dword [esp + 0x2c]
lea eax, [esp + 0x10]
mov dword [esp + 0xc], eax
push edi
mov dword [esp + 8], 0
mov eax, dword [esi + 0x2c]
lea edi, [esi + 0x3c]
mov dword [esp + 0xc], 2
test eax, eax
je 0x4ab9f1
push eax
call fcn.004ba048
add esp, 4
mov dword [esi + 0x2c], 0
mov dword [edi], getpeername
cmp byte [esi + 0x39], 0
je 0x4abaa0
lea eax, [esp + 0x30]
push eax
push dword [esp + 0x38]
call fcn.004abea0
add esp, 8
mov dword [esp + 0x1c], eax
test eax, eax
je 0x4abaa0
mov eax, dword [esp + 0x30]
push edi
mov dword [esp + 0x18], eax
lea eax, [esp + 0xc]
push 0
push eax
lea eax, [esi + 0x20]
mov dword [esp + 0x24], 0xa
push eax
mov dword [esp + 0x38], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 1
call sub.Secur32.dll_DecryptMessage
test eax, eax
jne 0x4aba76
lea edi, [eax + 1]
mov eax, dword [esp + 0x20]
test eax, eax
je 0x4aba87
push eax
push dword [esp + 0x2c]
call fcn.004abf20
add esp, 8
mov dword [esi + 0x2c], eax
test eax, eax
jne 0x4aba87
jmp 0x4aba84
push 0x501078
push eax
call fcn.004abfa0
add esp, 8
or edi, 0xffffffff
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4aba98
push eax
call fcn.004ba048
add esp, 4
mov eax, edi
pop edi
pop esi
add esp, 0x24
ret
pop edi
or eax, 0xffffffff
pop esi
add esp, 0x24
ret
Function at 0x4abea0
Capabilities:
Decode data using base64 via winapi

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x10]
push 0
push 0
push edi
push 0
push 1
push 0
push dword [esp + 0x24]
call dword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
test eax, eax
je 0x4abef5
push dword [edi]
call fcn.004bab05
mov esi, eax
add esp, 4
test esi, esi
je 0x4abef5
push 0
push 0
push edi
push esi
push 1
push 0
push dword [esp + 0x24]
call dword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
test eax, eax
je 0x4abeec
pop edi
mov eax, esi
pop esi
ret
push esi
call fcn.004ba048
add esp, 4
push str.CryptStringToBinary_failed.
push 0x5157b8
push str.mongoc
push 0
call fcn.00454e20
add esp, 0x10
xor eax, eax
pop edi
pop esi
ret

Function at 0x4abf20
Capabilities:
Encode data using base64 via winapi

Disassembly:
push ecx
push esi
lea eax, [esp + 4]
push eax
push 0
push 0x40000001
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.CRYPT32.dll_CryptBinaryToStringA]
test eax, eax
je 0x4abf7d
push dword [esp + 4]
call fcn.004bab05
mov esi, eax
add esp, 4
test esi, esi
je 0x4abf7d
lea eax, [esp + 4]
push eax
push esi
push 0x40000001
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.CRYPT32.dll_CryptBinaryToStringA]
test eax, eax
je 0x4abf74
mov eax, esi
pop esi
pop ecx
ret
push esi
call fcn.004ba048
add esp, 4
push str.CryptBinaryToString_failed.
push 0x5157b8
push str.mongoc
push 0
call fcn.00454e20
add esp, 0x10
xor eax, eax
pop esi
pop ecx
ret
Function at 0x4adeb0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x4ae035
cmp dword [esi + 0x20], 0
je 0x4ae035
cmp dword [esi + 0x24], 0
je 0x4ae035
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x4ae035
cmp dword [eax], esi
jne 0x4ae035
mov eax, dword [eax + 4]
cmp eax, 0x2a
je 0x4adf15
cmp eax, 0x39
je 0x4adf15
cmp eax, 0x45
je 0x4adf15
cmp eax, 0x49
je 0x4adf15
cmp eax, 0x5b
je 0x4adf15
cmp eax, 0x67
je 0x4adf15
cmp eax, 0x71
je 0x4adf15
cmp eax, 0x29a
jne 0x4ae035
push edi
mov edi, dword [esi + 0x1c]
mov dword [esi + 0x14], 0
mov dword [esi + 8], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x2c], 2
mov ecx, dword [edi + 0x18]
mov eax, dword [edi + 8]
mov dword [edi + 0x14], 0
mov dword [edi + 0x10], eax
test ecx, ecx
jns 0x4adf4e
neg ecx
mov dword [edi + 0x18], ecx
cmp ecx, 2
mov eax, 0x2a
push 0
mov edx, 0x39
cmove eax, edx
push 0
mov dword [edi + 4], eax
push 0
jne 0x4adf70
call fcn.004b0840
jmp 0x4adf75
call fcn.004b05c0
add esp, 0xc
mov dword [esi + 0x30], eax
mov dword [edi + 0x28], 0xfffffffe
push edi
call fcn.004b11c0
mov esi, dword [esi + 0x1c]
xor edx, edx
mov eax, dword [esi + 0x2c]
mov ecx, dword [esi + 0x4c]
add eax, eax
mov dword [esi + 0x3c], eax
mov eax, dword [esi + 0x44]
mov word [eax + ecx*2 - 2], dx
mov eax, dword [esi + 0x4c]
lea eax, [eax*2 - 2]
push eax
push edx
push dword [esi + 0x44]
call fcn.004b63b0
mov eax, dword [esi + 0x84]
add esp, 0x10
lea ecx, [eax + eax*2]
movzx eax, word [ecx*4 + 0x50110a]
mov dword [esi + 0x80], eax
movzx eax, word [ecx*4 + 0x501108]
mov dword [esi + 0x8c], eax
movzx eax, word [ecx*4 + 0x50110c]
mov dword [esi + 0x90], eax
xor eax, eax
movzx ecx, word [ecx*4 + 0x50110e]
pop edi
mov dword [esi + 0x7c], ecx
mov dword [esi + 0x6c], 0
mov dword [esi + 0x5c], 0
mov dword [esi + 0x74], 0
mov dword [esi + 0x16b4], 0
mov dword [esi + 0x78], 2
mov dword [esi + 0x60], 2
mov dword [esi + 0x68], 0
mov dword [esi + 0x48], 0
pop esi
ret
mov eax, 0xfffffffe
pop esi
ret
Function at 0x4b51b1
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4b51f0
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4b51f0
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4b51f0
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4b51f0
cmp dword [ecx + 0x74], 0xe
jbe 0x4b51f0
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x4baf2e
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.004b4cb0
mov eax, dword [0x522298]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.004cda18
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4baf70
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4bb0cc
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.004b48b0
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x648920]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.004cef8b
mov ecx, dword [esi*4 + 0x648920]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x4bb0c5
cmp eax, dword [ecx + edi + 0x24]
jne 0x4bb0c5
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4bb0c5
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004cef8b
add esp, 0x14
test edx, edx
jl 0x4bb0c5
jg 0x4bb03b
test eax, eax
jb 0x4bb0c5
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4bb0c5
jl 0x4bb055
cmp dword [ebp - 0x1008], eax
ja 0x4bb0c5
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x4bb073
test ebx, ebx
je 0x4bb0ac
cmp ecx, edi
jae 0x4bb0ac
mov al, byte [ecx]
cmp al, 0xd
jne 0x4bb08d
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4bb099
cmp byte [ecx + 1], 0xa
jne 0x4bb099
inc ecx
jmp 0x4bb099
movzx eax, al
movsx eax, byte [eax + 0x522410]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x4bb073
cmp edx, ebx
jne 0x4bb073
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4bb0ca
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004b3f14
leave
ret
Function at 0x4c605b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x648920]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4c609b
cmp byte [ebx], 0xa
jne 0x4c609b
or byte [edi + eax + 0x28], 4
jmp 0x4c60a0
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x4c619f
mov dl, byte [eax]
cmp dl, 0x1a
je 0x4c6182
inc eax
cmp dl, 0xd
je 0x4c60cc
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x4c60f2
cmp eax, ecx
jae 0x4c6100
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x4c60b4
jmp 0x4c619f
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4c617d
cmp dword [ebp - 0x10], 0
je 0x4c617d
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x648920]
test byte [eax + edi + 0x28], 0x48
je 0x4c6157
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4c6142
mov byte [esi], dl
jmp 0x4c6153
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x648920]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4c619f
cmp byte [ebp - 1], 0xa
jne 0x4c6166
cmp esi, ebx
jne 0x4c6166
mov byte [esi], 0xa
jmp 0x4c619e
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004cefa9
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4c619f
mov byte [esi], 0xd
jmp 0x4c619e
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x648920]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4c619c
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4c619f
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret