joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44731c
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 0x447410
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 0x44741c
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 0x447458
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 0x44738c
mov esi, dword [esp + 0x58]
cmp esi, dword [ebx + 0x10]
jae 0x447410
mov dword [esp + 8], 1
mov dword [esp + 4], 0x5af4fc
mov edx, dword [ebp + 4]
mov dword [esp], edx
call dword [ebx + 4]
mov dword [esp + 8], 1
mov dword [esp + 4], 0x5af4fd
mov edx, dword [ebp + 8]
mov dword [esp], edx
call dword [ebx + 4]
inc esi
cmp dword [ebx + 0x10], esi
ja 0x4473d8
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 0x447365
xor esi, esi
jmp 0x4473d3
Function at 0x447f34
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, 0x5af6c0
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 0x447fa4
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 0x447fa4
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 0x448ff4
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 0x44905b
mov dword [esp], ebx
call sub.WS2_32.dll_inet_addr
mov dword [edi + 4], eax
sub esp, 4
inc eax
je 0x4490a4
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 0x44904b
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 0x44902c
jmp 0x4490a4
mov dword [esp], ebx
call sub.WS2_32.dll_gethostbyname
sub esp, 4
test eax, eax
je 0x4490bc
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
test eax, eax
jne 0x4490e4
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.00452044
mov dword [ebp - 0x10], 0
jmp 0x44903f
mov eax, dword [eax]
mov dword [edi + 4], eax
jmp 0x44902c
Function at 0x449744
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 0x4497f1
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 0x44980e
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.00459370
cmp eax, 0xffffffff
mov esi, eax
jne 0x449860
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.00452044
cmp ebx, 4
jne 0x449834
mov eax, dword [0x660450]
test eax, eax
jne 0x449834
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 0x449784
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 0x449797
cmp ebx, 0x274c
sete al
cmp ebx, 0xb
sete dl
or eax, edx
test al, 1
je 0x449856
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 0x449856

Function at 0x449874
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 0x4498a4
mov dword [esp + 4], ebx
mov dword [esp + 8], ecx
mov dword [esp], edx
call fcn.00459470
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 0x454d44
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 0x454d9d
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 0x483570
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 0x4836c0
cmp edx, 0x100
je 0x4836c0
mov edx, dword [esp + 0x54]
mov edx, dword [edx + 4]
mov dword [esp + 0x28], edx
cmp esi, edx
ja 0x4836b0
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 0x483710
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 0x4836f0
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 0x483630
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 0x4836b0
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 0x4835bc
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x483613
jmp 0x48366a
mov ecx, dword [eax + 0x88]
test ecx, ecx
je 0x483726
lea edx, [ebx + 1]
mov dword [esp + 0x2c], edx
jmp 0x4835d8
mov ebp, dword [eax + 0x58]
mov dword [esp + 8], 8
mov dword [esp + 4], 0x5e0920
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 0x48375e
and edx, 1
jne 0x48375e
or eax, 8
mov dword [ebp], eax
test al, 8
jne 0x48376e
lea ecx, [ebx + 1]
mov dword [esp + 0x2c], ecx
jmp 0x4835d8
test ebx, ebx
je 0x48377c
mov dword [esp + 0x2c], ebx
dec ebx
jmp 0x4835d8
mov dword [esp + 0x2c], 1
jmp 0x4835d8
Function at 0x483790
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 0x483990
cmp ebp, 0x40
ja 0x483960
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 0x483930
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 0x483940
test bl, 2
je 0x48382a
mov word [edi], 0
add edi, 2
and ebx, 1
je 0x483832
mov byte [edi], 0
mov ebx, dword [esp + 0xdc]
cmp dword [esp + 0x2c], ebx
jae 0x4838de
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 0x483870
mov edx, dword [esp + 0x2c]
test ebp, ebp
je 0x483920
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 0x4838f0
add esp, 0xbc
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0x2c], 0
jmp 0x4837fd
test esi, 1
jne 0x4839b1
test edi, 2
jne 0x4839bc
mov ecx, ebx
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
jmp 0x48381d
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.004d2d10
jmp 0x4837cb
mov dword [esp + 8], str.orig_len___md_size
mov dword [esp + 4], 0xe8
mov dword [esp], str.s3_cbc.c
call fcn.004d2d10
jmp 0x4837c2
mov byte [esi], 0
lea edi, [esi + 1]
lea ebx, [ebp - 1]
jmp 0x483948
mov word [edi], 0
add edi, 2
sub ebx, 2
jmp 0x483950
Function at 0x4906d8
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 0x490849
mov ebp, dword [esp + 0x3c]
mov dword [esp], ebx
call sym.curl.exe_libssh2_session_block_directions
mov edi, eax
test eax, eax
je 0x490854
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 0x490864
test ebp, ebp
je 0x490745
cmp ebp, eax
jle 0x490864
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 [0x5e101c]
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 0x49088c
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 0x49087c
mov eax, dword [ebx + 0x11c]
mov dword [esp + 0x4c], eax
mov dword [esp + 0x48], 1
lea edx, [esp + 0x48]
and edi, 2
je 0x490878
mov dword [esp + 0x150], eax
mov dword [esp + 0x14c], 1
lea ecx, [esp + 0x14c]
test ebp, ebp
je 0x490874
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 0x49088c
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 0x490739
xor eax, eax
test esi, esi
setg al
mov ebp, eax
jmp 0x49079c
xor esi, esi
jmp 0x490823
xor ecx, ecx
jmp 0x49081b
xor edx, edx
mov eax, dword [ebx + 0x11c]
jmp 0x4907fd
mov dword [ebx + 0x130], 0xfffffff7
mov eax, 0xfffffff7
jmp 0x490849
Function at 0x49a7bc
Capabilities:
Write file on windows

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x83c
cmp dword [esp + 0x858], 1
je 0x49a800
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.0049ffcc
mov edx, eax
mov eax, edx
add esp, 0x83c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 4], 0x5e261d
mov eax, dword [esp + 0x854]
mov dword [esp], eax
call sub.msvcrt.dll_fopen
mov edi, eax
test eax, eax
je 0x49a8ec
mov eax, dword [esp + 0x850]
add eax, 4
mov dword [esp], eax
call fcn.004a0520
mov ebx, eax
test eax, eax
je 0x49a8c0
lea esi, [esp + 0x30]
lea ebp, [esp + 0x2c]
jmp 0x49a878
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 0x49a8c4
mov dword [esp], ebx
call fcn.004a0528
mov ebx, eax
test eax, eax
je 0x49a8c0
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.00499d50
test eax, eax
je 0x49a848
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 0x49a8a1
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.0049ffcc
mov edx, eax
jmp 0x49a8a1
mov dword [esp + 8], str.Failed_to_open_file
mov dword [esp + 4], 0xfffffff0
jmp 0x49a7e0
Function at 0x4a027c
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 0x4a0474
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 0x4a04bc
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 0x4a03dc
inc eax
mov cl, byte [ebp]
mov byte [edx], cl
inc ebp
dec ebx
inc edx
cmp edx, dword [esp + 0x30]
jne 0x4a02e2
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 0x4a0434
cmp eax, 2
je 0x4a03e4
mov dl, byte [esp + 0x20]
and edx, 0x3f
movsx eax, byte [edx + 0x5e3980]
mov dword [esp + 0x18], eax
and esi, 0xff
movsx eax, byte [esi + 0x5e3980]
mov dword [esp + 0x14], eax
movzx ecx, cl
movsx eax, byte [ecx + 0x5e3980]
mov dword [esp + 0x10], eax
movzx eax, byte [esp + 0x3b]
movsx eax, byte [eax + 0x5e3980]
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.005946d0
add dword [esp + 0x34], 4
test ebx, ebx
jne 0x4a02dc
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 0x4a02f2
and esi, 0xff
movsx eax, byte [esi + 0x5e3980]
mov dword [esp + 0x14], eax
movzx ecx, cl
movsx eax, byte [ecx + 0x5e3980]
mov dword [esp + 0x10], eax
movzx eax, byte [esp + 0x3b]
movsx eax, byte [eax + 0x5e3980]
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.005946d0
jmp 0x4a03a5
movzx ecx, cl
movsx eax, byte [ecx + 0x5e3980]
mov dword [esp + 0x10], eax
movzx eax, byte [esp + 0x3b]
movsx eax, byte [eax + 0x5e3980]
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.005946d0
jmp 0x4a03a5
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 0x4a04bc
test ebx, ebx
jne 0x4a02c8
mov dword [esp + 0x34], eax
jmp 0x4a03b2
xor eax, eax
jmp 0x4a03d3
Function at 0x4a9fc0
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 0x4aa1c7
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 0x4aa0eb
xor ebx, ebx
cmp dword [esp + 0x24], 1
je 0x4aa050
jle 0x4aa190
cmp dword [esp + 0x24], 2
je 0x4aa170
cmp dword [esp + 0x24], 4
je 0x4aa120
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 0x4aa154
mov edx, dword [esp + 0x2c]
test edx, edx
je 0x4aa100
mov dword [esp + 8], eax
mov dword [esp + 4], 6
lea eax, [esp + 0x4a]
mov dword [esp], eax
call fcn.004f6b50
test eax, eax
jle 0x4aa0d7
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.004a9d70
test eax, eax
js 0x4aa03f
add esi, eax
inc ebx
cmp ebx, dword [esp + 0x1c]
jne 0x4aa0b0
mov ebp, dword [esp + 0x3c]
cmp dword [esp + 0x28], ebp
je 0x4aa044
cmp dword [esp + 0x20], ebp
jne 0x4aa01a
mov bl, byte [esp + 0x3b]
neg ebx
and ebx, 0x20
jmp 0x4aa01c
or bl, byte [esp + 0x3a]
xor edx, edx
mov dl, bl
mov dword [esp], edi
mov ecx, dword [esp + 0x74]
call fcn.004a9d70
test eax, eax
js 0x4aa03f
add esi, eax
jmp 0x4aa0d7
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 0x4aa064
cmp byte [esp + 0x3b], 0
je 0x4aa064
mov bl, 0x40
jmp 0x4aa064
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 0x4aa05a
mov ecx, dword [esp + 0x24]
test ecx, ecx
jne 0x4aa03f
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.004f6860
test eax, eax
js 0x4aa03f
add ebp, eax
mov eax, dword [esp + 0x44]
jmp 0x4aa05a
xor esi, esi
jmp 0x4aa044