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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x3c
mov ebx, dword [esp + 0x50]
mov esi, dword [esp + 0x54]
mov edx, dword [ebx + 0xc]
mov eax, dword [ebx + 0x14]
lea eax, [eax + edx*2 + 0xc]
mov dword [esp], eax
call dword [0x59b010]
mov ebp, eax
test eax, eax
je 0x446ff0
mov dword [eax], ebx
lea edx, [eax + 0xc]
mov dword [eax + 4], edx
mov ecx, dword [ebx + 0xc]
add ecx, edx
mov dword [eax + 8], ecx
mov eax, dword [esp + 0x58]
cmp dword [ebx + 0x10], eax
jb 0x446ffc
mov dword [esp], edx
call dword [ebx]
mov edx, dword [ebp + 8]
mov dword [esp], edx
call dword [ebx]
mov eax, dword [esp + 0x58]
test eax, eax
je 0x447038
mov eax, dword [esp + 0x58]
add eax, esi
mov dword [esp + 0x1c], eax
lea edi, [esp + 0x2f]
mov dl, byte [esi]
xor edx, 0x36
mov byte [esp + 0x2f], dl
mov dword [esp + 8], 1
mov dword [esp + 4], edi
mov edx, dword [ebp + 4]
mov dword [esp], edx
call dword [ebx + 4]
mov dl, byte [esi]
xor edx, 0x5c
mov byte [esp + 0x2f], dl
inc esi
mov dword [esp + 8], 1
mov dword [esp + 4], edi
mov edx, dword [ebp + 8]
mov dword [esp], edx
call dword [ebx + 4]
cmp esi, dword [esp + 0x1c]
jne 0x446f6c
mov esi, dword [esp + 0x58]
cmp esi, dword [ebx + 0x10]
jae 0x446ff0
mov dword [esp + 8], 1
mov dword [esp + 4], 0x5af41c
mov edx, dword [ebp + 4]
mov dword [esp], edx
call dword [ebx + 4]
mov dword [esp + 8], 1
mov dword [esp + 4], 0x5af41d
mov edx, dword [ebp + 8]
mov dword [esp], edx
call dword [ebx + 4]
inc esi
cmp dword [ebx + 0x10], esi
ja 0x446fb8
mov eax, ebp
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], edx
call dword [ebx]
mov eax, dword [esp + 0x58]
mov dword [esp + 8], eax
mov dword [esp + 4], esi
mov edx, dword [ebp + 4]
mov dword [esp], edx
call dword [ebx + 4]
mov esi, dword [ebp + 8]
add esi, dword [ebx + 0xc]
mov edx, dword [ebp + 4]
mov dword [esp + 4], edx
mov dword [esp], esi
call dword [ebx + 8]
mov eax, dword [ebx + 0x14]
mov dword [esp + 0x58], eax
mov edx, dword [ebp + 4]
jmp 0x446f45
xor esi, esi
jmp 0x446fb3
Function at 0x447b14
Capabilities:
Encode data using xor
Encrypt data using xtea

Disassembly:
push ebp
mov ebp, esp
push edi
xor edi, edi
push esi
push ebx
sub esp, 0xc
mov esi, dword [ebp + 8]
mov dword [ebp - 0x10], edx
movzx edx, byte [eax + 1]
shl esi, 4
add esi, 0x5af5e0
movzx ecx, byte [eax]
shl edx, 8
movzx ebx, byte [eax + 4]
or ecx, edx
movzx edx, byte [eax + 2]
shl edx, 0x10
or ecx, edx
movzx edx, byte [eax + 3]
shl edx, 0x18
or ecx, edx
movzx edx, byte [eax + 5]
shl edx, 8
or ebx, edx
movzx edx, byte [eax + 6]
movzx eax, byte [eax + 7]
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x18], 0x1f
shl edx, 0x10
or ebx, edx
shl eax, 0x18
or ebx, eax
jmp 0x447b84
mov eax, ebx
mov edx, ebx
mov esi, dword [ebp - 0x14]
shr edx, 5
shl eax, 4
xor eax, edx
mov edx, edi
add eax, ebx
and edx, 3
mov edx, dword [esi + edx*4]
add edx, edi
xor eax, edx
add ecx, eax
sub edi, 0x61c88647
mov edx, ecx
mov eax, ecx
shl edx, 4
shr eax, 5
xor edx, eax
mov eax, edi
add edx, ecx
shr eax, 0xb
and eax, 3
mov eax, dword [esi + eax*4]
add eax, edi
xor edx, eax
add ebx, edx
dec dword [ebp - 0x18]
jns 0x447b84
mov eax, dword [ebp - 0x10]
mov byte [eax], cl
shr ecx, 8
mov byte [eax + 4], bl
shr ebx, 8
mov byte [eax + 1], cl
shr ecx, 8
mov byte [eax + 5], bl
shr ebx, 8
mov byte [eax + 2], cl
shr ecx, 8
mov byte [eax + 6], bl
shr ebx, 8
mov byte [eax + 3], cl
mov byte [eax + 7], bl
add esp, 0xc
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x448bd4
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], esi
mov esi, edx
mov dword [ebp - 4], edi
mov edx, dword [edx + 4]
mov edi, eax
mov dword [ebp - 0x10], 1
mov eax, dword [esi]
mov ebx, eax
cmp byte [edx + eax], 0
jne 0x448c3b
mov dword [esp], ebx
call sub.WS2_32.dll_inet_addr
mov dword [edi + 4], eax
sub esp, 4
inc eax
je 0x448c84
movzx eax, word [ebp + 8]
mov dword [esp], eax
call sub.WS2_32.dll_htons
mov word [edi + 2], ax
sub esp, 4
cmp dword [esi], ebx
je 0x448c2b
mov dword [esp], ebx
call sub.msvcrt.dll_free
mov eax, dword [ebp - 0x10]
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
lea eax, [edx + 1]
mov dword [esp], eax
call sub.msvcrt.dll_malloc
mov ebx, eax
mov edx, dword [esi]
mov eax, dword [esi + 4]
mov dword [esp], ebx
mov dword [esp + 4], edx
mov dword [esp + 8], eax
call sub.msvcrt.dll_memcpy
mov eax, dword [esi + 4]
mov byte [ebx + eax], 0
mov dword [esp], ebx
call sub.WS2_32.dll_inet_addr
mov dword [edi + 4], eax
sub esp, 4
inc eax
jne 0x448c0c
jmp 0x448c84
mov dword [esp], ebx
call sub.WS2_32.dll_gethostbyname
sub esp, 4
test eax, eax
je 0x448c9c
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
test eax, eax
jne 0x448cc4
mov dword [esp + 8], ebx
mov edx, str.Problem_accessing_the_DNS.__addr:__s_
mov dword [esp + 4], edx
mov dword [esp], 1
call fcn.00451c24
mov dword [ebp - 0x10], 0
jmp 0x448c1f
mov eax, dword [eax]
mov dword [edi + 4], eax
jmp 0x448c0c
Function at 0x449324
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov edi, dword [ebp + 8]
mov ebx, dword [edi + 4]
test ebx, ebx
jne 0x4493d1
mov ecx, dword [edi + 0x4010]
lea edx, [edi + 0xc]
mov eax, edi
mov dword [edi + 8], edx
sub eax, edx
sub eax, ebx
test ecx, ecx
lea esi, [eax + 0x400c]
je 0x4493ee
mov esi, esi
lea edi, [edi]
mov dword [esp + 8], esi
lea eax, [edx + ebx]
mov dword [esp + 4], eax
mov dword [esp], ecx
call fcn.00458f50
cmp eax, 0xffffffff
mov esi, eax
jne 0x449440
call sub.WS2_32.dll_WSAGetLastError
mov dword [esp], eax
mov ebx, eax
call sub.msvcrt.dll_strerror
mov dword [esp + 0x14], eax
mov eax, 0xffffffff
mov dword [esp + 0xc], eax
mov eax, str.RTMPSockBuf_Fill
mov dword [esp + 8], eax
mov eax, str._s__recv_returned__d._GetSockError__:__d___s_
mov dword [esp + 0x10], ebx
mov dword [esp + 4], eax
mov dword [esp], 4
call fcn.00451c24
cmp ebx, 4
jne 0x449414
mov eax, dword [0x65f450]
test eax, eax
jne 0x449414
mov ebx, dword [edi + 4]
mov edx, dword [edi + 8]
mov eax, edi
mov ecx, dword [edi + 0x4010]
sub eax, edx
sub eax, ebx
test ecx, ecx
lea esi, [eax + 0x400c]
jne 0x449364
mov dword [esp + 8], esi
xor eax, eax
mov dword [esp + 0xc], eax
lea eax, [edx + ebx]
mov dword [esp + 4], eax
mov eax, dword [edi]
mov dword [esp], eax
call sub.WS2_32.dll_recv
sub esp, 0x10
jmp 0x449377
cmp ebx, 0x274c
sete al
cmp ebx, 0xb
sete dl
or eax, edx
test al, 1
je 0x449436
mov eax, 1
xor esi, esi
mov dword [edi + 0x400c], eax
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
add dword [edi + 4], esi
jmp 0x449436

Function at 0x449454
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov edx, dword [eax + 0x4010]
test edx, edx
je 0x449484
mov dword [esp + 4], ebx
mov dword [esp + 8], ecx
mov dword [esp], edx
call fcn.00459050
mov ebx, dword [ebp - 4]
leave
ret
mov dword [esp + 4], ebx
xor edx, edx
mov dword [esp + 0xc], edx
mov dword [esp + 8], ecx
mov eax, dword [eax]
mov dword [esp], eax
call sub.WS2_32.dll_send
sub esp, 0x10
mov ebx, dword [ebp - 4]
leave
ret
Function at 0x454924
Capabilities:
Write file on windows

Disassembly:
push ebp
mov edx, 0x46
mov ebp, esp
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov ebx, dword [ebp + 8]
mov dword [esp + 8], edx
add eax, 0x40
mov dword [esp + 0xc], eax
mov eax, 1
mov dword [esp + 4], eax
mov dword [esp], str.libidn:_warning:_libiconv_not_installed__cannot_convert_data_to_UTF_8_n
call sub.msvcrt.dll_fwrite
mov dword [esp], ebx
call sub.msvcrt.dll_strlen
inc eax
mov dword [esp], eax
call sub.msvcrt.dll_malloc
test eax, eax
je 0x45497d
mov dword [ebp + 0xc], ebx
mov dword [ebp + 8], eax
add esp, 0x14
pop ebx
pop ebp
jmp sub.msvcrt.dll_strcpy
add esp, 0x14
xor eax, eax
pop ebx
pop ebp
ret
Function at 0x483150
Capabilities:
Encode data using xor

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x3c
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x58]
mov esi, dword [esp + 0x5c]
inc esi
mov edx, dword [eax]
cmp edx, 0xfeff
je 0x4832a0
cmp edx, 0x100
je 0x4832a0
mov edx, dword [esp + 0x54]
mov edx, dword [edx + 4]
mov dword [esp + 0x28], edx
cmp esi, edx
ja 0x483290
mov ecx, dword [esp + 0x54]
mov edi, dword [ecx + 0xc]
mov ebx, dword [esp + 0x28]
mov dl, byte [edi + ebx - 1]
xor ebx, ebx
mov bl, dl
test byte [eax + 0x101], 2
jne 0x4832f0
lea eax, [ebx + 1]
mov dword [esp + 0x2c], eax
lea eax, [ebx + esi]
mov esi, dword [esp + 0x28]
sub esi, eax
mov edx, dword [esp + 0x28]
xor edx, eax
or esi, edx
not esi
not eax
and eax, dword [esp + 0x28]
or esi, eax
sar esi, 0x1f
mov edx, dword [esp + 0x28]
dec edx
mov dword [esp + 0x24], edx
cmp edx, 0xfe
jbe 0x4832d0
mov dword [esp + 0x24], 0xff
mov ecx, ebx
xor edx, edx
mov eax, dword [esp + 0x28]
sub eax, ebx
add edi, eax
mov dword [esp + 0x1c], ebx
lea esi, [esi]
lea edi, [edi]
mov eax, dword [esp + 0x1c]
xor eax, edx
or eax, ecx
not eax
mov ebp, edx
not ebp
and ebp, dword [esp + 0x1c]
or eax, ebp
sar eax, 0x1f
and eax, 0xff
mov bl, byte [edi + ecx - 1]
and ebx, 0xff
mov ebp, dword [esp + 0x1c]
xor ebp, ebx
and eax, ebp
not eax
and esi, eax
inc edx
dec ecx
cmp edx, dword [esp + 0x24]
jb 0x483210
and esi, 0xff
xor esi, 0xff
lea edx, [esi - 1]
not esi
and edx, esi
sar edx, 0x1f
mov eax, dword [esp + 0x2c]
and eax, edx
mov ecx, dword [esp + 0x28]
sub ecx, eax
mov ebx, dword [esp + 0x54]
mov dword [ebx + 4], ecx
shl eax, 8
or dword [ebx], eax
mov eax, edx
not eax
and edx, 1
or eax, edx
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
xor eax, eax
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
mov ebx, dword [esp + 0x54]
mov edx, dword [ebx + 4]
lea ebx, [esi + ecx]
cmp ebx, edx
ja 0x483290
mov ebx, dword [esp + 0x54]
mov edi, dword [ebx + 0xc]
add edi, ecx
mov dword [ebx + 0xc], edi
add dword [ebx + 0x10], ecx
sub edx, ecx
mov dword [esp + 0x28], edx
mov dword [ebx + 4], edx
mov ebx, edx
jmp 0x48319c
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x4831f3
jmp 0x48324a
mov ecx, dword [eax + 0x88]
test ecx, ecx
je 0x483306
lea edx, [ebx + 1]
mov dword [esp + 0x2c], edx
jmp 0x4831b8
mov ebp, dword [eax + 0x58]
mov dword [esp + 8], 8
mov dword [esp + 4], 0x5e0840
lea eax, [ebp + 8]
mov dword [esp], eax
mov byte [esp + 0x20], dl
call sub.msvcrt.dll_memcmp
test eax, eax
mov dl, byte [esp + 0x20]
mov eax, dword [ebp]
jne 0x48333e
and edx, 1
jne 0x48333e
or eax, 8
mov dword [ebp], eax
test al, 8
jne 0x48334e
lea ecx, [ebx + 1]
mov dword [esp + 0x2c], ecx
jmp 0x4831b8
test ebx, ebx
je 0x48335c
mov dword [esp + 0x2c], ebx
dec ebx
jmp 0x4831b8
mov dword [esp + 0x2c], 1
jmp 0x4831b8
Function at 0x483370
Capabilities:
Encode data using xor

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0xbc
mov ebp, dword [esp + 0xd8]
mov ebx, dword [esp + 0xd4]
mov ebx, dword [ebx + 4]
mov dword [esp + 0x18], ebx
sub ebx, ebp
mov dword [esp + 0x1c], ebx
cmp ebp, dword [esp + 0xdc]
ja 0x483570
cmp ebp, 0x40
ja 0x483540
lea esi, [esp + 0x30]
mov eax, esi
neg eax
and eax, 0x3f
add esi, eax
lea eax, [ebp + 0x100]
cmp dword [esp + 0xdc], eax
jbe 0x483510
mov eax, dword [esp + 0xdc]
sub eax, ebp
sub eax, 0x100
mov dword [esp + 0x2c], eax
mov eax, ebp
shr eax, 1
shl eax, 0x18
add eax, dword [esp + 0x1c]
sub eax, dword [esp + 0x2c]
xor edx, edx
div ebp
mov ebx, ebp
mov edi, esi
cmp ebp, 4
jae 0x483520
test bl, 2
je 0x48340a
mov word [edi], 0
add edi, 2
and ebx, 1
je 0x483412
mov byte [edi], 0
mov ebx, dword [esp + 0xdc]
cmp dword [esp + 0x2c], ebx
jae 0x4834be
mov ebx, dword [esp + 0xd4]
mov ebx, dword [ebx + 0xc]
mov dword [esp + 0x20], ebx
mov ebx, dword [esp + 0x1c]
not ebx
mov dword [esp + 0x24], ebx
mov ebx, dword [esp + 0x18]
not ebx
mov dword [esp + 0x28], ebx
mov ecx, dword [esp + 0x2c]
xor edi, edi
mov dword [esp + 0x2c], edx
nop
mov edx, ecx
sub edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x1c]
xor eax, ecx
or edx, eax
not edx
mov eax, ecx
sub eax, dword [esp + 0x18]
mov ebx, dword [esp + 0x18]
xor ebx, ecx
or eax, ebx
not eax
mov ebx, dword [esp + 0x24]
and ebx, ecx
or edx, ebx
sar edx, 0x1f
mov ebx, dword [esp + 0x20]
and dl, byte [ebx + ecx]
mov ebx, dword [esp + 0x28]
and ebx, ecx
or eax, ebx
sar eax, 0x1f
not eax
and edx, eax
or byte [esi + edi], dl
lea eax, [edi + 1]
mov edi, eax
xor edi, ebp
not edi
mov edx, eax
sub edx, ebp
and edi, edx
mov edx, eax
not edx
and edx, ebp
or edi, edx
sar edi, 0x1f
and edi, eax
inc ecx
cmp ecx, dword [esp + 0xdc]
jne 0x483450
mov edx, dword [esp + 0x2c]
test ebp, ebp
je 0x483500
xor ecx, ecx
mov eax, edx
mov ebx, dword [esp + 0xd0]
lea esi, [esi]
mov edx, eax
xor edx, 0x20
add edx, esi
mov dl, byte [edx]
mov dl, byte [esi + eax]
mov byte [ebx + ecx], dl
lea edx, [eax + 1]
mov eax, edx
xor eax, ebp
not eax
mov edi, edx
sub edi, ebp
and eax, edi
mov edi, edx
not edi
and edi, ebp
or eax, edi
sar eax, 0x1f
and eax, edx
inc ecx
cmp ecx, ebp
jne 0x4834d0
add esp, 0xbc
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0x2c], 0
jmp 0x4833dd
test esi, 1
jne 0x483591
test edi, 2
jne 0x48359c
mov ecx, ebx
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
jmp 0x4833fd
mov dword [esp + 8], str.md_size___EVP_MAX_MD_SIZE
mov dword [esp + 4], 0xe9
mov dword [esp], str.s3_cbc.c
call fcn.004d2910
jmp 0x4833ab
mov dword [esp + 8], str.orig_len___md_size
mov dword [esp + 4], 0xe8
mov dword [esp], str.s3_cbc.c
call fcn.004d2910
jmp 0x4833a2
mov byte [esi], 0
lea edi, [esi + 1]
lea ebx, [ebp - 1]
jmp 0x483528
mov word [edi], 0
add edi, 2
sub ebx, 2
jmp 0x483530
Function at 0x4902b8
Capabilities:
Get socket status

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x25c
mov ebx, dword [esp + 0x270]
mov dword [ebx + 0x130], 0
lea eax, [esp + 0x3c]
mov dword [esp + 4], eax
mov dword [esp], ebx
call sym.curl.exe_libssh2_keepalive_send
test eax, eax
js 0x490429
mov ebp, dword [esp + 0x3c]
mov dword [esp], ebx
call sym.curl.exe_libssh2_session_block_directions
mov edi, eax
test eax, eax
je 0x490434
lea eax, [ebp + ebp*4]
lea eax, [eax + eax*4]
lea esi, [eax + eax*4]
shl esi, 3
mov eax, dword [ebx + 0x54]
test eax, eax
jle 0x490444
test ebp, ebp
je 0x490325
cmp ebp, eax
jle 0x490444
mov dword [esp], 0
call sub.msvcrt.dll_time
mov dword [esp + 4], eax
mov eax, dword [esp + 0x274]
mov dword [esp], eax
call sub.msvcrt.dll_difftime
fmul dword [0x5e0f3c]
fnstcw word [esp + 0x2e]
mov ax, word [esp + 0x2e]
mov ah, 0xc
mov word [esp + 0x2c], ax
fldcw word [esp + 0x2c]
fistp dword [esp + 0x28]
fldcw word [esp + 0x2e]
mov eax, dword [esp + 0x28]
mov esi, dword [ebx + 0x54]
cmp eax, esi
jg 0x49046c
sub esi, eax
mov ebp, 1
mov ecx, 0x10624dd3
mov eax, esi
imul ecx
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], edx
mov ecx, dword [esp + 0x24]
sar ecx, 6
mov eax, esi
cdq
sub ecx, edx
mov dword [esp + 0x40], ecx
lea eax, [ecx + ecx*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
sub esi, eax
lea eax, [esi + esi*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
mov dword [esp + 0x44], eax
test edi, 1
je 0x49045c
mov eax, dword [ebx + 0x11c]
mov dword [esp + 0x4c], eax
mov dword [esp + 0x48], 1
lea edx, [esp + 0x48]
and edi, 2
je 0x490458
mov dword [esp + 0x150], eax
mov dword [esp + 0x14c], 1
lea ecx, [esp + 0x14c]
test ebp, ebp
je 0x490454
lea esi, [esp + 0x40]
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 0
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
inc eax
mov dword [esp], eax
call sub.WS2_32.dll_select
sub esp, 0x14
test eax, eax
jle 0x49046c
xor eax, eax
add esp, 0x25c
pop ebx
pop esi
pop edi
pop ebp
ret
mov esi, 0x3e8
mov eax, dword [ebx + 0x54]
test eax, eax
jg 0x490319
xor eax, eax
test esi, esi
setg al
mov ebp, eax
jmp 0x49037c
xor esi, esi
jmp 0x490403
xor ecx, ecx
jmp 0x4903fb
xor edx, edx
mov eax, dword [ebx + 0x11c]
jmp 0x4903dd
mov dword [ebx + 0x130], 0xfffffff7
mov eax, 0xfffffff7
jmp 0x490429
Function at 0x49a39c
Capabilities:
Write file on windows

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x83c
cmp dword [esp + 0x858], 1
je 0x49a3e0
mov dword [esp + 8], str.Unsupported_type_of_known_host_information_store
mov dword [esp + 4], 0xffffffdf
mov edx, dword [esp + 0x850]
mov eax, dword [edx]
mov dword [esp], eax
call fcn.0049fbac
mov edx, eax
mov eax, edx
add esp, 0x83c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 4], 0x5e253d
mov eax, dword [esp + 0x854]
mov dword [esp], eax
call sub.msvcrt.dll_fopen
mov edi, eax
test eax, eax
je 0x49a4cc
mov eax, dword [esp + 0x850]
add eax, 4
mov dword [esp], eax
call fcn.004a0100
mov ebx, eax
test eax, eax
je 0x49a4a0
lea esi, [esp + 0x30]
lea ebp, [esp + 0x2c]
jmp 0x49a458
mov dword [esp + 0xc], edi
mov eax, dword [esp + 0x2c]
mov dword [esp + 8], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call sub.msvcrt.dll_fwrite
cmp eax, dword [esp + 0x2c]
jne 0x49a4a4
mov dword [esp], ebx
call fcn.004a0108
mov ebx, eax
test eax, eax
je 0x49a4a0
mov dword [esp + 8], 1
mov dword [esp + 4], ebp
mov dword [esp], 0x800
mov ecx, esi
mov edx, ebx
mov eax, dword [esp + 0x850]
call fcn.00499930
test eax, eax
je 0x49a428
mov edx, eax
mov dword [esp], edi
mov dword [esp + 0x1c], edx
call sub.msvcrt.dll_fclose
mov edx, dword [esp + 0x1c]
mov eax, edx
add esp, 0x83c
pop ebx
pop esi
pop edi
pop ebp
ret
xor edx, edx
jmp 0x49a481
mov dword [esp + 8], str.Write_failed
mov dword [esp + 4], 0xfffffff0
mov edx, dword [esp + 0x850]
mov eax, dword [edx]
mov dword [esp], eax
call fcn.0049fbac
mov edx, eax
jmp 0x49a481
mov dword [esp + 8], str.Failed_to_open_file
mov dword [esp + 4], 0xfffffff0
jmp 0x49a3c0
Function at 0x49fe5c
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x5c
mov esi, dword [esp + 0x70]
mov ebx, dword [esp + 0x78]
mov eax, dword [esp + 0x7c]
mov dword [eax], 0
test ebx, ebx
je 0x4a0054
mov dword [esp + 4], esi
lea eax, [ebx*4]
mov edx, 0xaaaaaaab
mul edx
shr edx, 1
add edx, 4
mov dword [esp], edx
call dword [esi + 4]
mov dword [esp + 0x3c], eax
test eax, eax
je 0x4a009c
nop
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x34], eax
mov ebp, dword [esp + 0x74]
lea edx, [esp + 0x50]
mov dword [esp + 0x30], edx
lea edx, [esp + 0x4d]
xor eax, eax
test ebx, ebx
je 0x49ffbc
inc eax
mov cl, byte [ebp]
mov byte [edx], cl
inc ebp
dec ebx
inc edx
cmp edx, dword [esp + 0x30]
jne 0x49fec2
mov dl, byte [esp + 0x4d]
shr dl, 2
mov byte [esp + 0x3b], dl
mov dl, byte [esp + 0x4d]
and edx, 3
shl edx, 4
mov cl, byte [esp + 0x4e]
shr cl, 4
or ecx, edx
mov dl, byte [esp + 0x4f]
mov byte [esp + 0x20], dl
mov dl, byte [esp + 0x4e]
and edx, 0xf
mov edi, edx
shl edi, 2
mov dl, byte [esp + 0x20]
shr dl, 6
mov esi, edx
or esi, edi
cmp eax, 1
je 0x4a0014
cmp eax, 2
je 0x49ffc4
mov dl, byte [esp + 0x20]
and edx, 0x3f
movsx eax, byte [edx + 0x5e38a0]
mov dword [esp + 0x18], eax
and esi, 0xff
movsx eax, byte [esi + 0x5e38a0]
mov dword [esp + 0x14], eax
movzx ecx, cl
movsx eax, byte [ecx + 0x5e38a0]
mov dword [esp + 0x10], eax
movzx eax, byte [esp + 0x3b]
movsx eax, byte [eax + 0x5e38a0]
mov dword [esp + 0xc], eax
mov dword [esp + 8], str._c_c_c_c
mov dword [esp + 4], 5
mov ecx, dword [esp + 0x34]
mov dword [esp], ecx
call fcn.005942b0
add dword [esp + 0x34], 4
test ebx, ebx
jne 0x49febc
mov ecx, dword [esp + 0x34]
mov byte [ecx], 0
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x7c]
mov dword [eax], edx
xor eax, eax
mov ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
not ecx
lea eax, [ecx - 1]
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
ret
mov byte [edx], 0
jmp 0x49fed2
and esi, 0xff
movsx eax, byte [esi + 0x5e38a0]
mov dword [esp + 0x14], eax
movzx ecx, cl
movsx eax, byte [ecx + 0x5e38a0]
mov dword [esp + 0x10], eax
movzx eax, byte [esp + 0x3b]
movsx eax, byte [eax + 0x5e38a0]
mov dword [esp + 0xc], eax
mov dword [esp + 8], str._c_c_c
mov dword [esp + 4], 5
mov edx, dword [esp + 0x34]
mov dword [esp], edx
call fcn.005942b0
jmp 0x49ff85
movzx ecx, cl
movsx eax, byte [ecx + 0x5e38a0]
mov dword [esp + 0x10], eax
movzx eax, byte [esp + 0x3b]
movsx eax, byte [eax + 0x5e38a0]
mov dword [esp + 0xc], eax
mov dword [esp + 8], str._c_c
mov dword [esp + 4], 5
mov ecx, dword [esp + 0x34]
mov dword [esp], ecx
call fcn.005942b0
jmp 0x49ff85
xor eax, eax
mov ecx, 0xffffffff
mov edi, dword [esp + 0x74]
repne scasb al, byte es:[edi]
not ecx
lea ebx, [ecx - 1]
mov dword [esp + 4], esi
lea eax, [ebx*4]
mov edx, 0xaaaaaaab
mul edx
shr edx, 1
add edx, 4
mov dword [esp], edx
call dword [esi + 4]
mov dword [esp + 0x3c], eax
test eax, eax
je 0x4a009c
test ebx, ebx
jne 0x49fea8
mov dword [esp + 0x34], eax
jmp 0x49ff92
xor eax, eax
jmp 0x49ffb3
Function at 0x4a9ba0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x5c
mov dword [esp + 0x20], eax
mov dword [esp + 0x30], edx
mov edi, dword [esp + 0x78]
mov al, byte [esp + 0x70]
mov byte [esp + 0x3a], al
mov eax, dword [esp + 0x20]
add eax, edx
mov dword [esp + 0x28], eax
cmp dword [esp + 0x20], eax
je 0x4a9da7
mov edx, ecx
and edx, 7
mov dword [esp + 0x24], edx
mov al, byte [esp + 0x3a]
and eax, 1
mov byte [esp + 0x3b], al
and ecx, 8
mov dword [esp + 0x2c], ecx
mov ebp, dword [esp + 0x20]
xor esi, esi
cmp dword [esp + 0x20], ebp
je 0x4a9ccb
xor ebx, ebx
cmp dword [esp + 0x24], 1
je 0x4a9c30
jle 0x4a9d70
cmp dword [esp + 0x24], 2
je 0x4a9d50
cmp dword [esp + 0x24], 4
je 0x4a9d00
mov esi, 0xffffffff
mov eax, esi
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
ret
xor eax, eax
mov al, byte [ebp]
mov dword [esp + 0x44], eax
inc ebp
cmp dword [esp + 0x28], ebp
je 0x4a9d34
mov edx, dword [esp + 0x2c]
test edx, edx
je 0x4a9ce0
mov dword [esp + 8], eax
mov dword [esp + 4], 6
lea eax, [esp + 0x4a]
mov dword [esp], eax
call fcn.004f6750
test eax, eax
jle 0x4a9cb7
or bl, byte [esp + 0x3a]
and ebx, 0xff
mov dword [esp + 0x34], ebx
lea ebx, [esp + 0x4a]
mov edx, ebx
add edx, eax
mov dword [esp + 0x1c], edx
mov dword [esp + 0x3c], ebp
mov ebp, dword [esp + 0x34]
nop
xor eax, eax
mov al, byte [ebx]
mov dword [esp], edi
mov ecx, dword [esp + 0x74]
mov edx, ebp
call fcn.004a9950
test eax, eax
js 0x4a9c1f
add esi, eax
inc ebx
cmp ebx, dword [esp + 0x1c]
jne 0x4a9c90
mov ebp, dword [esp + 0x3c]
cmp dword [esp + 0x28], ebp
je 0x4a9c24
cmp dword [esp + 0x20], ebp
jne 0x4a9bfa
mov bl, byte [esp + 0x3b]
neg ebx
and ebx, 0x20
jmp 0x4a9bfc
or bl, byte [esp + 0x3a]
xor edx, edx
mov dl, bl
mov dword [esp], edi
mov ecx, dword [esp + 0x74]
call fcn.004a9950
test eax, eax
js 0x4a9c1f
add esi, eax
jmp 0x4a9cb7
xor eax, eax
mov al, byte [ebp]
shl eax, 0x18
xor edx, edx
mov dl, byte [ebp + 1]
shl edx, 0x10
or eax, edx
xor edx, edx
mov dl, byte [ebp + 3]
or eax, edx
xor edx, edx
mov dl, byte [ebp + 2]
shl edx, 8
or eax, edx
mov dword [esp + 0x44], eax
add ebp, 4
cmp dword [esp + 0x28], ebp
jne 0x4a9c44
cmp byte [esp + 0x3b], 0
je 0x4a9c44
mov bl, 0x40
jmp 0x4a9c44
xor eax, eax
mov al, byte [ebp]
shl eax, 8
xor edx, edx
mov dl, byte [ebp + 1]
or eax, edx
mov dword [esp + 0x44], eax
add ebp, 2
jmp 0x4a9c3a
mov ecx, dword [esp + 0x24]
test ecx, ecx
jne 0x4a9c1f
lea edx, [esp + 0x44]
mov dword [esp + 8], edx
mov edx, dword [esp + 0x30]
mov dword [esp + 4], edx
mov dword [esp], ebp
call fcn.004f6460
test eax, eax
js 0x4a9c1f
add ebp, eax
mov eax, dword [esp + 0x44]
jmp 0x4a9c3a
xor esi, esi
jmp 0x4a9c24