joyce8/EMBER2024-capa huggingface dataset:
Function at 0x99768c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x9976b3
call fcn.00939c18
mov dword [eax], esi
call fcn.00939c05
push 0x16
pop esi
mov dword [eax], esi
call fcn.0093a85a
mov eax, esi
jmp 0x997708
test dword [ebp + 0xc], 0xfffffff9
jne 0x997699
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x9976e0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00939c2b
pop ecx
call fcn.00939c05
mov eax, dword [eax]
jmp 0x997708
test al, 0x10
jne 0x997706
test al, 1
je 0x997706
test byte [ebp + 0xc], 2
je 0x997706
call fcn.00939c18
mov dword [eax], 5
call fcn.00939c05
mov dword [eax], 0xd
jmp 0x9976d7
xor eax, eax
pop esi
pop ebp
ret

Function at 0x1b1e058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.01b1e1a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x1b1e07e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1b1e06a
add dl, dl
jne 0x1b1e089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1b1e0dc
xor eax, eax
add dl, dl
jne 0x1b1e096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1b1e17d
add dl, dl
jne 0x1b1e0a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1b1e0b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1b1e0bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1b1e0c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x1b1e0d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x1b1e075
mov eax, 1
add dl, dl
jne 0x1b1e0ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1b1e0f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1b1e0e1
sub eax, ebx
mov ebx, 1
jne 0x1b1e128
mov ecx, 1
add dl, dl
jne 0x1b1e10e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1b1e119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1b1e105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1b1e075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1b1e13f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1b1e14a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1b1e136
cmp eax, 0x7d00
jae 0x1b1e16d
cmp eax, 0x500
jb 0x1b1e168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1b1e075
cmp eax, 0x7f
ja 0x1b1e170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1b1e075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x1b1e19e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x1b1e075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x405ef4
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x422a34], 0
push esi
jne 0x405f2b
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405f05
mov dword [ecx*4 + 0x422a30], eax
inc ecx
cmp ecx, 0x100
jl 0x405f00
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405f5c
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x422a30]
xor eax, esi
inc ecx
dec edx
jne 0x405f3e
pop edi
not eax
pop esi
ret 0xc

Function at 0x503b67
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
mov ecx, ebp
push ebp
mov ebp, esp
mov dword [0x505076], ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x505298], eax
mov dword [0x505220], 0x5032dd
mov dword [0x50521c], 2
jmp 0x503b97
mov dword [0x505224], 0
mov dword [0x505228], 0
mov dword [0x505218], 0x30
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
mov dword [0x50522c], eax
mov dword [0x505240], 0x504088
mov dword [0x505238], 0xf
mov dword [0x50506e], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadIconA]
mov dword [0x505230], eax
mov dword [0x505244], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
mov dword [0x505234], eax
push 0x505218
call dword [sym.imp.user32.dll_RegisterClassExA]
push 0
push dword [0x50506e]
push 0
push 0
push 0x1e5
push 0x21e
push 0xffffe52a
push 0xfffff588
push 0x40000
push str.wait
push str.aroka
push 0
call dword [sym.imp.user32.dll_CreateWindowExA]
mov dword [0x505290], eax
push 5
push dword [0x505290]
call dword [sym.imp.user32.dll_ShowWindow]
push dword [0x505290]
call dword [sym.imp.user32.dll_UpdateWindow]
jmp 0x503c6a
push 0
push 0
push 0
push 0x505248
call dword [sym.imp.user32.dll_GetMessageA]
or eax, eax
je 0x503c97
push 0x505248
call dword [sym.imp.user32.dll_TranslateMessage]
push 0x505248
call dword [sym.imp.user32.dll_DispatchMessageA]
jmp 0x503c6a
mov eax, dword [0x505250]
jmp 0x503ca4
call 0x502b16
ret

Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
pop eax
nop
nop
nop
nop
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
nop
nop
nop
mov ebx, dword [eax]
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x433030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43301e
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x4044c0
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call dbg.__acrt_iob_func
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sym._fwrite
mov dword [esp], 2
call dbg.__acrt_iob_func
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x404520
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x40b39c]
test esi, esi
jle 0x404620
mov eax, dword [0x40b3a0]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp edx, ebx
ja 0x404550
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x4045cf
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x404540
mov dword [esp], ebx
call dbg.__mingw_GetSectionForAddress
mov edi, eax
test eax, eax
je 0x404647
mov eax, dword [0x40b3a0]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call dbg._GetPEImageBase
mov edx, dword [0x40b3a0]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x404627
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x4045c8
sub eax, 4
and eax, 0xfffffffb
jne 0x4045d6
add dword [0x40b39c], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
add ebx, dword [0x40b3a0]
mov dword [ebx + 4], eax
mov dword [ebx + 8], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0x40
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x4045c8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call dbg.__report_error
xor esi, esi
jmp 0x40455a
mov eax, dword [0x40b3a0]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call dbg.__report_error
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call dbg.__report_error
lea esi, [esi]
nop
Function at 0x404b00
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x40b3b8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x40b3b0]
sub esp, 4
test ebx, ebx
je 0x404b55
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x404b4e
test esi, esi
je 0x404b4e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x404b30
mov dword [esp], 0x40b3b8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x1000114e
Capabilities:
Allocate or change rwx memory
Encode data using xor
Execute shellcode via indirect call
Read file on windows

Disassembly:
push esi
push edi
push str.ShellExecuteW
push str.shell32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 1
xor edi, edi
push edi
push edi
push 0x10002054
push str.open
push edi
call eax
push 0x40
mov esi, 0x1000
push esi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push str.desktop.ini
mov dword [0x10003228], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x1000322c], eax
cmp eax, 0xffffffff
je 0x100011f3
push edi
push 0x10003230
push esi
push dword [0x10003228]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [0x10003228]
movzx ecx, byte [eax]
xor ecx, 0x4e
xor esi, esi
cmp dword [0x10003230], edi
jbe 0x100011f1
mov dl, byte [eax + esi]
xor dl, cl
add dl, 0x42
mov byte [eax + esi], dl
inc esi
cmp esi, dword [0x10003230]
jb 0x100011dd
call eax
pop edi
pop esi
ret 0x10

Function at 0x710c7a
Capabilities:
Encode data using xor

Disassembly:
push 0x7109ec
pop eax
mov ecx, ebx
add ecx, 1
call fcn.00710cb6
add ecx, ebx
sub esp, 4
mov dword [esp], ebx
pop ebx
add ebx, 0x5424684
xor dword [edx], eax
sub ebx, ecx
or ebx, ecx
or ecx, ecx
inc edx
add ebx, ecx
cmp edx, esi
jne fcn.00710c7a
add ecx, ecx
or ebx, ecx
ret
Function at 0x537a10
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xe1000]
push edi
jmp 0x537a2a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x537a31
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x537a20
mov eax, 1
add ebx, ebx
jne 0x537a43
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x537a54
jne 0x537a73
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x537a73
dec eax
add ebx, ebx
jne 0x537a60
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x537a38
add ebx, ebx
jne 0x537a6f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x537ac5
xor ecx, ecx
sub eax, 3
jb 0x537a8b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x537afa
sar eax, 1
mov ebp, eax
jmp 0x537a96
add ebx, ebx
jne 0x537a96
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x537a64
inc ecx
add ebx, ebx
jne 0x537aa4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x537a64
add ebx, ebx
jne 0x537ab1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x537aa6
jne 0x537ac2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x537aa6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x537ae4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x537ad6
jmp 0x537a26
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x537ae4
add edi, ecx
jmp 0x537a26
pop esi
mov edi, esi
mov ecx, 0x3ed3
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x537b02
cmp byte [edi], 0x11
jne 0x537b02
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x537b07
lea edi, [esi + 0x130000]
mov eax, dword [edi]
or eax, eax
je 0x537b7f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x196374]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1964f0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x537b34
mov ecx, edi
jns 0x537b63
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1964f4]
or eax, eax
je 0x537b79
mov dword [ebx], eax
add ebx, 4
jmp 0x537b51
call dword [esi + 0x196504]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x537bb0
cmp al, 0xef
ja 0x537ba3
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x537b85
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x537b92
mov ebp, dword [esi + 0x1964f8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x22f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x537be4
sub esp, 0xffffff80
jmp 0x427dcd
Function at 0x4010d0
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 4], 0
je 0x4010df
xor eax, eax
pop esi
ret 8
lea eax, [esi + 8]
push eax
mov eax, dword [esp + 0x10]
xor ecx, ecx
cmp ecx, eax
mov ecx, dword [esi + 0xc]
sbb edx, edx
and edx, 0x10000
push edx
push ecx
push 0x401080
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 4], eax
test eax, eax
je 0x401119
mov edx, dword [esp + 8]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
xor eax, eax
cmp dword [esi + 4], eax
pop esi
setne al
ret 8

Function at 0x401130
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 4]
test eax, eax
jne 0x40113c
pop esi
ret
push edi
push 1
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov edi, eax
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
mov dword [esi + 4], 0
mov dword [esi + 8], 0
pop esi
ret

Function at 0x401320
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x850
mov eax, dword [0x64786c]
xor eax, esp
mov dword [esp + 0x848], eax
mov ecx, dword [esp + 0x860]
push esi
mov esi, dword [esp + 0x858]
lea eax, [esp + 0x868]
push eax
push ecx
lea edx, [esp + 0x450]
push edx
mov byte [esp + 0x10], 0x56
mov byte [esp + 0x11], 0x49
mov byte [esp + 0x12], 0x57
mov byte [esp + 0x13], 0x45
call fcn.0059cfae
add esp, 0xc
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
test byte [0x653734], 8
je 0x4013c5
movsx edx, byte [esp + esi + 4]
lea ecx, [esp + 0x448]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
movzx ecx, word [esp + 0x1c]
movzx edx, word [esp + 0x1a]
push eax
movzx eax, word [esp + 0x22]
push eax
movzx eax, word [esp + 0x20]
push ecx
push edx
push eax
lea ecx, [esp + 0x34]
push str.__02d:_02d:_02d__03d_thread:_d__c___s
push ecx
call fcn.005992e6
add esp, 0x24
jmp 0x4013fd
movsx eax, byte [esp + esi + 4]
movzx ecx, word [esp + 0x16]
lea edx, [esp + 0x448]
push edx
movzx edx, word [esp + 0x18]
push eax
movzx eax, word [esp + 0x1a]
push ecx
movzx ecx, word [esp + 0x1c]
push edx
push eax
push ecx
lea edx, [esp + 0x30]
push str.__02d:_02d:_02d__03d__c___s
push edx
call fcn.005992e6
add esp, 0x20
test byte [0x653734], 4
je 0x40143a
push 0x612afc
push 0x6569b0
call fcn.00599840
mov esi, eax
add esp, 8
test esi, esi
je 0x40143a
lea eax, [esp + 0x18]
push esi
push eax
call fcn.0059cfc8
push esi
push 0xa
call fcn.0059ce24
push esi
call fcn.0059951c
add esp, 0x14
test byte [0x653734], 1
je 0x401450
lea ecx, [esp + 0x18]
push ecx
call fcn.0059d0d7
add esp, 4
test byte [0x653734], 2
je 0x40146d
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea edx, [esp + 0x18]
push edx
call esi
push 0x612b00
call esi
mov ecx, dword [esp + 0x84c]
pop esi
xor ecx, esp
call fcn.0059709c
add esp, 0x850
ret
Function at 0x4015c0
Capabilities:
Encode data using base64

Disassembly:
push ecx
push ebx
push ebp
mov ebp, dword [esp + 0x10]
push esi
mov esi, dword [esp + 0x18]
mov ebx, eax
test edi, edi
je 0x401609
test ebp, ebp
jle 0x401609
lea eax, [ebp + 2]
mov dword [esp + 0xc], eax
fild dword [esp + 0xc]
fdiv qword [0x631718]
call fcn.0059c610
add eax, eax
add eax, eax
mov ecx, eax
mov eax, 2
sub eax, ecx
lea edx, [eax - 1]
cmp edx, dword [ebx]
jle 0x40161b
mov ecx, esi
test ecx, ecx
je 0x401614
mov byte [ecx], 0
pop esi
pop ebp
mov dword [ebx], 0
pop ebx
pop ecx
ret
pop esi
pop ebp
mov dword [ebx], eax
pop ebx
pop ecx
ret
add eax, 0xfffffffe
mov dword [ebx], eax
lea ecx, [ebp - 2]
xor eax, eax
test ecx, ecx
jle 0x401699
lea esp, [esp]
movzx edx, byte [edi + eax]
shr edx, 2
movzx edx, byte [edx + 0x6207b8]
mov byte [esi], dl
movsx edx, byte [edi + eax]
movzx ebx, byte [edi + eax + 1]
and edx, 3
shl edx, 4
shr ebx, 4
or edx, ebx
movzx edx, byte [edx + 0x6207b8]
mov byte [esi + 1], dl
movsx ebx, byte [edi + eax + 1]
movzx edx, byte [edi + eax + 2]
inc esi
and ebx, 0xf
shr edx, 6
add ebx, ebx
add ebx, ebx
or edx, ebx
movzx edx, byte [edx + 0x6207b8]
inc esi
mov byte [esi], dl
movsx edx, byte [edi + eax + 2]
and edx, 0x3f
movzx edx, byte [edx + 0x6207b8]
inc esi
mov byte [esi], dl
add eax, 3
inc esi
cmp eax, ecx
jl 0x401630
cmp eax, ebp
jge 0x401708
movzx ecx, byte [eax + edi]
shr ecx, 2
mov dl, byte [ecx + 0x6207b8]
mov byte [esi], dl
dec ebp
inc esi
cmp eax, ebp
jne 0x4016d5
movsx eax, byte [eax + edi]
and eax, 3
shl eax, 4
mov cl, byte [eax + 0x6207b8]
mov byte [esi], cl
inc esi
mov byte [esi], 0x3d
inc esi
mov byte [esi], 0x3d
inc esi
mov byte [esi], 0
pop esi
pop ebp
pop ebx
pop ecx
ret
movsx edx, byte [eax + edi]
lea ecx, [eax + edi + 1]
movzx eax, byte [ecx]
and edx, 3
shr eax, 4
shl edx, 4
or edx, eax
mov dl, byte [edx + 0x6207b8]
mov byte [esi], dl
movsx eax, byte [ecx]
and eax, 0xf
mov cl, byte [eax*4 + 0x6207b8]
inc esi
mov byte [esi], cl
inc esi
mov byte [esi], 0x3d
inc esi
mov byte [esi], 0
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x401b10
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, dword [esp + 0xc]
push esi
mov esi, eax
test ebp, ebp
jne 0x401b21
pop esi
xor eax, eax
pop ebp
ret
mov eax, dword [esp + 0xc]
push ebx
push 0x6207fc
push eax
call fcn.00599840
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x401b3e
pop ebx
pop esi
pop ebp
ret
test esi, esi
jne 0x401b52
mov eax, ebp
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401b47
sub eax, edx
mov esi, eax
push edi
push esi
call fcn.005974ee
mov edi, eax
add esp, 4
test edi, edi
jne 0x401b72
push ebx
call fcn.0059951c
add esp, 4
pop edi
pop ebx
pop esi
xor eax, eax
pop ebp
ret
push esi
push ebp
push edi
call fcn.00597e30
push esi
mov eax, esi
call fcn.004038c0
push ebx
push 1
push 8
push 0x620800
mov dword [esp + 0x38], eax
call fcn.005996fa
push ebx
push 1
lea ecx, [esp + 0x40]
push 4
push ecx
call fcn.005996fa
push ebx
push 1
push esi
push edi
call fcn.005996fa
add esp, 0x40
push edi
call fcn.005975b8
push ebx
call fcn.0059951c
add esp, 8
pop edi
pop ebx
pop esi
mov eax, 1
pop ebp
ret
Function at 0x402930
Capabilities:
Read file on windows

Disassembly:
push ecx
push ebx
push ebp
mov ebp, dword [esp + 0x10]
push esi
push edi
push 2
push 0
push ebp
mov esi, eax
call fcn.0059a346
push ebp
call fcn.0059a24e
push 0
push 0
push ebp
mov ebx, eax
call fcn.0059a346
add esp, 0x1c
cmp ebx, 0x4000000
jle 0x402973
mov dword [esi + 0x20], 0xfffffffe
xor al, al
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4
lea eax, [ebx + 2]
push eax
mov dword [esi + 0x18], eax
call fcn.005971c5
add esp, 4
mov dword [esi + 0x14], eax
test eax, eax
jne 0x40299a
mov dword [esi + 0x20], 0xfffffffb
xor al, al
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4
push ebp
push 0xc
push 1
push eax
call fcn.0059a094
mov edi, eax
add esp, 0x10
cmp edi, 0xc
jne 0x402a1b
mov eax, dword [esi + 0x14]
cmp byte [eax], 0x31
jne 0x402a1b
cmp byte [eax + 1], 0x32
jne 0x402a1b
cmp byte [eax + 2], 0x78
jne 0x402a1b
cmp byte [eax + 3], 0
jne 0x402a1b
movsx ecx, byte [eax + 4]
mov edx, dword [eax + 8]
push ebp
push 1
lea edi, [ebx - 0xc]
push edi
push eax
mov dword [esp + 0x20], ecx
mov dword [esp + 0x28], edx
call fcn.0059a094
mov eax, dword [esi + 0x14]
push edi
push 0
push edi
push eax
call fcn.00403900
add esp, 0x20
cmp eax, dword [esp + 0x18]
je 0x402a0c
mov dword [esi + 0x20], 0xfffffffd
xor al, al
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4
xor ecx, ecx
cmp dword [esp + 0x10], ecx
setne cl
inc ecx
mov dword [esi + 0x20], ecx
jmp 0x402a3f
mov dword [esi + 0x20], 0
cmp ebx, edi
jbe 0x402a3f
mov eax, dword [esi + 0x14]
push ebp
mov edx, ebx
push 1
sub edx, edi
push edx
add eax, 0xc
push eax
call fcn.0059a094
add esp, 0x10
mov edi, ebx
test edi, edi
jbe 0x402969
mov ecx, dword [esi + 0x14]
mov byte [edi + ecx], 0
call fcn.00402a60
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
pop ecx
ret 4

Function at 0x403380
Capabilities:
Read file on windows
Write file on windows

Disassembly:
sub esp, 0x804
mov eax, dword [0x64786c]
xor eax, esp
mov dword [esp + 0x800], eax
mov eax, dword [esp + 0x808]
push ebx
push esi
push edi
mov edi, dword [esp + 0x818]
push 0x62081c
push eax
xor ebx, ebx
call fcn.00599840
mov esi, eax
add esp, 8
test esi, esi
je 0x403426
push 0x6207fc
push edi
call fcn.00599840
mov edi, eax
add esp, 8
test edi, edi
je 0x40341d
push esi
push 0x800
lea eax, [esp + 0x14]
push 1
push eax
call fcn.0059a094
add esp, 0x10
test eax, eax
jle 0x40340f
push edi
push 1
push eax
lea ecx, [esp + 0x18]
push ecx
call fcn.005996fa
push esi
push 0x800
lea edx, [esp + 0x24]
push 1
push edx
call fcn.0059a094
add esp, 0x20
test eax, eax
jg 0x4033e8
push edi
call fcn.0059951c
add esp, 4
mov ebx, 1
push esi
call fcn.0059951c
add esp, 4
mov ecx, dword [esp + 0x80c]
pop edi
pop esi
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.0059709c
add esp, 0x804
ret