joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403a60
Capabilities:
Copy file
Create directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xa6c
mov eax, dword [0x418014]
xor eax, esp
mov dword [esp + 0xa68], eax
push ebx
mov ebx, ecx
push esi
push edi
mov dword [esp + 0x10], ebx
mov eax, dword [ebx + 0x28]
cmp dword [eax + 0x10], 0
jle 0x403c9c
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [esp + 0x2c]
push eax
movzx eax, word [esp + 0x2e]
push eax
movzx eax, word [esp + 0x30]
push eax
movzx eax, word [esp + 0x32]
push eax
movzx eax, word [esp + 0x32]
push eax
movzx eax, word [esp + 0x34]
push eax
lea eax, [ebx + 0x129c]
push eax
push 0x41008c
lea eax, [esp + 0x670]
push 0x104
push eax
call fcn.004033f0
add esp, 0x28
mov dword [esp + 0x14], 0xc
lea eax, [esp + 0x14]
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
push eax
lea eax, [esp + 0x654]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 1
lea eax, [esp + 0x34]
push eax
lea eax, [esp + 0x240]
push eax
lea eax, [esp + 0x86c]
lea esi, [ebx + 0x30]
mov ebx, dword [sym.imp.mketools.dll_MkeAnalyzeFileName]
push eax
push esi
call ebx
add esp, 0x14
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x23c]
push eax
lea eax, [esp + 0x658]
push eax
push str._s_s._s
lea eax, [esp + 0x450]
push 0x104
push eax
call fcn.004033f0
mov edi, dword [sym.imp.KERNEL32.dll_CopyFileW]
lea eax, [esp + 0x458]
add esp, 0x18
push 0
push eax
push esi
call edi
mov esi, dword [esp + 0x10]
lea eax, [esp + 0x238]
push 1
push eax
lea eax, [esp + 0x38]
add esi, 0x23c
push eax
lea eax, [esp + 0x86c]
push eax
push esi
call ebx
add esp, 0x14
lea eax, [esp + 0x238]
push eax
lea eax, [esp + 0x34]
push eax
lea eax, [esp + 0x658]
push eax
push str._s_s._s
push 0x104
lea eax, [esp + 0x454]
push eax
call fcn.004033f0
add esp, 0x18
lea eax, [esp + 0x440]
push 0
push eax
push esi
call edi
mov esi, dword [esp + 0x10]
lea eax, [esp + 0x238]
push 1
push eax
lea eax, [esp + 0x38]
add esi, 0x448
push eax
lea eax, [esp + 0x86c]
push eax
push esi
call ebx
add esp, 0x14
lea eax, [esp + 0x238]
push eax
lea eax, [esp + 0x34]
push eax
lea eax, [esp + 0x658]
push eax
push str._s_s._s
lea eax, [esp + 0x450]
push 0x104
push eax
call fcn.004033f0
add esp, 0x18
lea eax, [esp + 0x440]
push 0
push eax
push esi
call edi
mov esi, dword [esp + 0x10]
lea eax, [esp + 0x238]
push 1
push eax
lea eax, [esp + 0x38]
add esi, 0x654
push eax
lea eax, [esp + 0x86c]
push eax
push esi
call ebx
add esp, 0x14
lea eax, [esp + 0x238]
push eax
lea eax, [esp + 0x34]
push eax
lea eax, [esp + 0x658]
push eax
push str._s_s._s
lea eax, [esp + 0x450]
push 0x104
push eax
call fcn.004033f0
add esp, 0x18
lea eax, [esp + 0x440]
push 0
push eax
push esi
call edi
mov ecx, dword [esp + 0xa74]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040c38d
mov esp, ebp
pop ebp
ret
Function at 0x404580
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40d69e
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x418014]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
lea ecx, [ebp - 0x10]
xor ebx, ebx
call dword [sym.imp.mfc140u.dll_Ordinal_296]
mov dword [ebp - 4], ebx
mov esi, dword [sym.imp.mketools.dll_MkeTlTraceLevel3]
push str._LogSave___Log_save_Worker_thread__start__n
call esi
add esp, 4
lea eax, [ebp - 0x10]
mov ecx, edi
push eax
call fcn.00403cc0
mov dword [ebp - 0x14], eax
test eax, eax
jne 0x4045e3
push str._LogSave__Snapshot_creation_succeeded_n
call esi
jmp 0x404604
cmp eax, 1
jne 0x4045f6
push str._LogSave__Cancel_process_during_snapshot_creation_n
call esi
mov ebx, 1
jmp 0x404604
push str._LogSave___ERR__Failed_in_creating_snapshot_n
call dword [sym.imp.mketools.dll_MkeTlTraceLevel0]
mov ebx, dword [ebp - 0x14]
add esp, 4
cmp dword [edi + 0x18d0], 0
je 0x40461a
mov ebx, 1
jmp 0x4046c8
test ebx, ebx
jne 0x4046c8
lea esi, [edi + 0x14ac]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edx, dword [ebp - 0x10]
lea eax, [edi + 0x18d4]
push eax
mov ecx, esi
call fcn.00406390
add esp, 4
test eax, eax
jne 0x40465a
push str._LogSave___ERR__Failed_in_creating_ZIP_file_n
call dword [sym.imp.mketools.dll_MkeTlTraceLevel0]
add esp, 4
mov ebx, 0xfffffff6
cmp dword [edi + 0x18d0], 0
je 0x40467a
push str._LogSave__Cancel_process_during_ZIP_file_creation_n
mov esi, dword [sym.imp.mketools.dll_MkeTlTraceLevel3]
call esi
add esp, 4
mov ebx, 1
jmp 0x4046c8
test ebx, ebx
jne 0x4046c2
cmp dword [edi + 0x18cc], ebx
je 0x4046bc
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
nop dword [eax]
cmp dword [edi + 0x18d0], 0
jne 0x4046af
push 0x64
call esi
cmp dword [edi + 0x18cc], 0
jne 0x404690
cmp dword [edi + 0x18d0], 0
je 0x4046bc
inc dword [edi + 0x18d4]
push str._LogSave__Cancel_process_at_the_final_stage_n
jmp 0x404668
inc dword [edi + 0x18d4]
mov esi, dword [sym.imp.mketools.dll_MkeTlTraceLevel3]
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], 0
jle 0x4046ea
push eax
push 0
call dword [sym.imp.mketools.dll_MkeRemoveDirectory]
add esp, 8
lea eax, [edi + 0x16b8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [edi + 0x18d0], 0
je 0x404700
lea eax, [edi + 0x14ac]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push str._LogSave___Log_save_Worker_thread__end__n
mov dword [edi + 0x18c4], ebx
mov dword [edi + 0x18c8], 1
call esi
add esp, 4
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x409300
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40dd16
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x418014]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 8
push eax
mov dword [ebp - 0x18], 0xff
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
mov ecx, ebx
call dword [sym.imp.mfc140u.dll_CWinApp::InitInstance]
push 0
push 1
push str.SymSystemCheckMutex
call dword [sym.imp.mketools.dll_MkeCheckAppInstance]
add esp, 0xc
cmp eax, 1
jne 0x40939c
push 0x411d88
push 0
call dword [sym.imp.USER32.dll_FindWindowW]
mov esi, eax
test esi, esi
je 0x409410
push 1
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, ebx
call fcn.00409830
push 0x412958
mov ecx, ebx
call dword [sym.imp.mfc140u.dll_CWinApp::SetRegistryKey]
push 0x1a4
call dword [sym.imp.mfc140u.dll_operator_2]
mov edi, eax
add esp, 4
mov dword [ebp - 0x10], edi
mov dword [ebp - 4], 0
test edi, edi
je 0x409403
mov ecx, edi
call dword [0x40e488]
lea esi, [edi + 0x120]
mov byte [ebp - 4], 1
mov ecx, esi
mov dword [edi], vtable.CMainFrame.0
mov dword [ebp - 0x14], esi
call dword [sym.imp.mfc140u.dll_CWnd::CWnd]
mov dword [esi], vtable.CChildView.0
mov dword [esi + 0x80], 0
jmp 0x409405
xor edi, edi
mov dword [ebp - 4], 0xffffffff
test edi, edi
jne 0x409424
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push 0
mov dword [ebx + 0x20], edi
mov ecx, edi
mov eax, dword [edi]
push 0xcf8000
push 0x64
call dword [eax + 0x170]
push 0x64
push dword [ebx + 0x44]
call dword [sym.imp.USER32.dll_LoadIconW]
push eax
push 0
push 0x80
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_SendMessageW]
push 5
mov ecx, edi
call dword [sym.imp.mfc140u.dll_CWnd::ShowWindow]
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_UpdateWindow]
mov ecx, ebx
call fcn.0040a0b0
push 0
push 0
push 0x1400
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_PostMessageW]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40c43f
Capabilities:
Encode data using xor

Disassembly:
imul ebp, eax
dec ch
test dh, dl
and cl, 8
mov dh, cl
bswap edx
mov esi, edi
mov ebp, 0
test ch, dh
or ecx, eax
sub ebp, 0xfff77227
xchg esi, esi
xor ebp, 0x4fa
imul edx, eax
sub edi, ebp
xchg dl, bh
add edi, 0x88922
lea ebp, [0xe1529306]
mov dl, 0x54
imul edx, ebx, 0x86aac901
cmp edi, 0x142
jae 0x40c420
dec ebx
ret
Function at 0x527f90
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xd3000]
push edi
jmp 0x527faa
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x527fb1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x527fa0
mov eax, 1
add ebx, ebx
jne 0x527fc3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x527fd4
jne 0x527ff3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x527ff3
dec eax
add ebx, ebx
jne 0x527fe0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x527fb8
add ebx, ebx
jne 0x527fef
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x528045
xor ecx, ecx
sub eax, 3
jb 0x52800b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x52807a
sar eax, 1
mov ebp, eax
jmp 0x528016
add ebx, ebx
jne 0x528016
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x527fe4
inc ecx
add ebx, ebx
jne 0x528024
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x527fe4
add ebx, ebx
jne 0x528031
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x528026
jne 0x528042
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x528026
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x528064
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x528056
jmp 0x527fa6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x528064
add edi, ecx
jmp 0x527fa6
pop esi
mov edi, esi
mov ecx, 0x3ed9
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x528082
cmp byte [edi], 0x11
jne 0x528082
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 0x528087
lea edi, [esi + 0x120000]
mov eax, dword [edi]
or eax, eax
je 0x5280ff
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x177cb0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x177e2c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x5280b4
mov ecx, edi
jns 0x5280e3
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 + 0x177e30]
or eax, eax
je 0x5280f9
mov dword [ebx], eax
add ebx, 4
jmp 0x5280d1
call dword [esi + 0x177e40]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x528130
cmp al, 0xef
ja 0x528123
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x528105
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x528112
mov ebp, dword [esi + 0x177e34]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x227]
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 0x528164
sub esp, 0xffffff80
jmp 0x425f74
Function at 0x10001f10
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
xor eax, eax
nop dword [eax + eax]
mov edx, eax
mov ecx, eax
sar edx, 5
or ecx, 0x1f
cmp ecx, 0x68
lea edi, [ebx + edx*4]
mov ecx, 9
mov esi, 0x20
cmovge esi, ecx
xor edx, edx
bts edx, esi
xor ecx, ecx
cmp esi, 0x20
cmovae ecx, edx
add eax, 0x20
xor edx, ecx
dec edx
or dword [edi], edx
cmp eax, 0x68
jle 0x10001f20
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100038d0
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, edx
not ebx
mov esi, ecx
mov eax, ebx
test edi, edi
je 0x10003931
mov cl, byte [esi]
lea esi, [esi + 1]
dec edi
cmp cl, 0x23
jne 0x10003914
cmp edi, 2
jb 0x10003914
cmp byte [esi], cl
jne 0x10003914
cmp byte [esi + 1], cl
jne 0x10003914
mov eax, ebx
movzx ecx, cl
movzx edx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x10048268]
jmp 0x100038e5
movzx edx, al
movzx ecx, cl
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x10048268]
test edi, edi
jne 0x100038e5
pop edi
pop esi
not eax
pop ebx
pop ebp
ret
mov cl, byte [esi]
inc esi
test cl, cl
je 0x10003960
cmp cl, 0x23
jne 0x10003947
cmp byte [esi], cl
jne 0x10003947
cmp byte [esi + 1], cl
cmove eax, ebx
movzx edx, al
movzx ecx, cl
xor edx, ecx
shr eax, 8
mov cl, byte [esi]
inc esi
xor eax, dword [edx*4 + 0x10048268]
test cl, cl
jne 0x10003938
pop edi
pop esi
not eax
pop ebx
pop ebp
ret

Function at 0x10003a70
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
test ebx, ebx
je 0x10003a84
mov dword [ebx], 0
mov edx, 0x10047ef4
call fcn.10003970
mov esi, eax
test esi, esi
je 0x10003b72
mov edi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
push esi
call edi
add esp, 4
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
je 0x10003b68
push 2
push 0
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
add esp, 0xc
test eax, eax
jne 0x10003b68
push esi
call edi
mov edi, eax
add esp, 4
mov dword [ebp + 8], edi
cmp edi, 0xffffffff
je 0x10003b68
push 0
push dword [ebp - 4]
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
add esp, 0xc
test eax, eax
jne 0x10003b68
mov eax, dword [0x100508f0]
test eax, eax
je 0x10003afc
inc dword [eax + 0xb0]
push edi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov edi, eax
add esp, 4
test edi, edi
je 0x10003b68
push esi
push dword [ebp + 8]
push 1
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
push esi
cmp eax, dword [ebp + 8]
je 0x10003b4d
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov eax, dword [0x100508f0]
add esp, 4
test eax, eax
je 0x10003b3a
dec dword [eax + 0xb0]
push edi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
test ebx, ebx
je 0x10003b5f
mov eax, dword [ebp + 8]
mov dword [ebx], eax
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1000a5d0
Capabilities:
Hash data with crc32

Disassembly:
push ebx
mov bl, byte [ecx]
or eax, 0xffffffff
push esi
lea esi, [ecx + 1]
or ecx, 0xffffffff
push edi
test bl, bl
je 0x1000a60f
cmp bl, 0x23
jne 0x1000a5f1
cmp byte [esi], bl
jne 0x1000a5f1
cmp byte [esi + 1], bl
cmove eax, ecx
movzx edx, al
movzx ecx, bl
mov bl, byte [esi]
xor edx, ecx
shr eax, 8
inc esi
mov ecx, 0xffffffff
xor eax, dword [edx*4 + 0x10048268]
test bl, bl
jne 0x1000a5e2
mov ecx, dword [0x100508f0]
not eax
mov esi, dword [ecx + 0x3e00]
mov edi, dword [ecx + 0x3e08]
lea ebx, [edi + esi*8]
test esi, esi
je 0x1000a64e
nop word [eax + eax]
mov edx, esi
shr edx, 1
cmp dword [edi + edx*8], eax
lea ecx, [edi + edx*8]
jae 0x1000a648
lea edi, [ecx + 8]
or ecx, 0xffffffff
sub ecx, edx
add esi, ecx
jmp 0x1000a64a
mov esi, edx
test esi, esi
jne 0x1000a630
cmp edi, ebx
je 0x1000a65d
cmp dword [edi], eax
jne 0x1000a65d
mov eax, dword [edi + 4]
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
xor eax, eax
pop ebx
ret
Function at 0x100106c0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x10050040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, ecx
lea edx, [ebp - 8]
push ebx
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov eax, dword [0x100508f0]
push esi
push edi
mov esi, 4
mov edi, dword [eax + 0x3e18]
mov eax, dword [edi + 0xc8]
mov ebx, dword [edi + 0xd0]
mov ebx, dword [ebx + eax*4 - 4]
not ebx
movzx eax, byte [edx]
lea edx, [edx + 1]
movzx ecx, bl
xor ecx, eax
shr ebx, 8
xor ebx, dword [ecx*4 + 0x10048268]
sub esi, 1
jne 0x10010700
mov eax, dword [0x100508f0]
not ebx
cmp dword [eax + 0x3e38], ebx
jne 0x1001073a
push ecx
push dword [ebp - 0xc]
lea edx, [esi + 4]
mov ecx, ebx
call fcn.10017680
add esp, 8
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], ebx
push eax
lea ecx, [edi + 0xc8]
call fcn.10017cb0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10043d30
mov esp, ebp
pop ebp
ret

Function at 0x10016410
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
push esi
push edi
mov edi, ecx
mov ebx, edx
cmp dword [edi + 0x5254], 0
lea esi, [edi + 0x5258]
je 0x10016492
mov ecx, dword [esi + 4]
test ecx, ecx
jns 0x1001644c
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
xor ecx, ecx
test eax, eax
cmovg ecx, eax
push ecx
mov ecx, esi
call fcn.100183d0
push dword [ebp + 8]
mov ecx, esi
mov dword [esi], 0
push ebx
call fcn.10003e90
mov edx, dword [esi]
mov ecx, 0x100508ec
push dword [edi + 0x5254]
lea eax, [edx - 1]
neg edx
sbb edx, edx
and edx, eax
mov eax, dword [edi + 0x5260]
test eax, eax
push edx
cmovne ecx, eax
push 1
push ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [ebp + 8]
mov ecx, esi
push ebx
call fcn.10003e90
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10016950
Capabilities:
Hash data with crc32

Disassembly:
push ebx
mov bl, byte [ecx]
or eax, 0xffffffff
push esi
lea esi, [ecx + 1]
push edi
mov edi, dword [0x100508f0]
test bl, bl
je 0x10016996
or edi, 0xffffffff
cmp bl, 0x23
jne 0x10016977
cmp byte [esi], bl
jne 0x10016977
cmp byte [esi + 1], bl
cmove eax, edi
movzx edx, al
movzx ecx, bl
mov bl, byte [esi]
xor edx, ecx
shr eax, 8
inc esi
xor eax, dword [edx*4 + 0x10048268]
test bl, bl
jne 0x10016968
mov edi, dword [0x100508f0]
mov esi, dword [edi + 0x5218]
xor ecx, ecx
not eax
test esi, esi
jle 0x100169bc
mov edi, dword [edi + 0x5220]
lea edx, [edi + 4]
nop dword [eax]
cmp dword [edx], eax
je 0x100169c2
inc ecx
add edx, 0x24
cmp ecx, esi
jl 0x100169b0
pop edi
pop esi
xor eax, eax
pop ebx
ret
lea eax, [ecx + ecx*8]
lea eax, [edi + eax*4]
pop edi
pop esi
pop ebx
ret
Function at 0x10020070
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x100200aa
mov eax, dword [0x100508f0]
mov dword [esi + 4], 0
mov dword [esi], 0
test eax, eax
je 0x1002009d
dec dword [eax + 0xb0]
push ecx
call edi
add esp, 4
mov dword [esi + 8], 0
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x100200db
mov eax, dword [0x100508f0]
mov dword [esi + 0x10], 0
mov dword [esi + 0xc], 0
test eax, eax
je 0x100200ce
dec dword [eax + 0xb0]
push ecx
call edi
add esp, 4
mov dword [esi + 0x14], 0
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x1002010c
mov eax, dword [0x100508f0]
mov dword [esi + 0x1c], 0
mov dword [esi + 0x18], 0
test eax, eax
je 0x100200ff
dec dword [eax + 0xb0]
push ecx
call edi
add esp, 4
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov ecx, dword [esi + 0x44]
test ecx, ecx
je 0x10020159
mov eax, dword [0x100508f0]
mov dword [esi + 0x40], 0
mov dword [esi + 0x3c], 0
test eax, eax
je 0x1002014c
dec dword [eax + 0xb0]
push ecx
call edi
add esp, 4
mov dword [esi + 0x44], 0
mov ecx, dword [esi + 0x50]
test ecx, ecx
je 0x1002018a
mov eax, dword [0x100508f0]
mov dword [esi + 0x4c], 0
mov dword [esi + 0x48], 0
test eax, eax
je 0x1002017d
dec dword [eax + 0xb0]
push ecx
call edi
add esp, 4
mov dword [esi + 0x50], 0
mov ecx, dword [esi + 0x5c]
test ecx, ecx
je 0x100201bb
mov eax, dword [0x100508f0]
mov dword [esi + 0x58], 0
mov dword [esi + 0x54], 0
test eax, eax
je 0x100201ae
dec dword [eax + 0xb0]
push ecx
call edi
add esp, 4
mov dword [esi + 0x5c], 0
pop edi
lea ecx, [esi + 0x78]
pop esi
jmp fcn.100228b0
Function at 0x100278b0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x34
mov eax, dword [0x10050040]
xor eax, esp
mov dword [esp + 0x30], eax
push ebx
mov ebx, dword [0x100508f0]
mov dword [esp + 0x28], ebx
push esi
push edi
test ebx, ebx
je 0x100278da
mov esi, dword [ebx + 0x78]
jmp 0x100278dc
xor esi, esi
mov ecx, dword [ebx + 0x48]
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x14]
mov dword [esp + 0x18], esi
push eax
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x30]
push eax
call fcn.10022f80
mov eax, dword [ebx + 0x48]
mov ebx, dword [esp + 0x20]
cmp byte [eax + 0x12], 0
je 0x10027985
mov eax, ebx
imul eax, dword [esp + 0x10]
mov ecx, eax
mov dword [esp + 0x1c], eax
imul ecx, dword [esp + 0x28]
mov eax, dword [0x100508f0]
test eax, eax
je 0x1002792a
inc dword [eax + 0xb0]
push ecx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov edi, eax
add esp, 4
mov eax, dword [esp + 0x1c]
mov esi, edi
mov dword [esp + 0x18], edi
lea eax, [edi + eax*4]
mov dword [esp + 0x2c], eax
cmp edi, eax
jae 0x1002798d
mov eax, dword [esp + 0x24]
mov ebx, dword [esp + 0x2c]
sub eax, edi
mov edi, eax
mov edx, dword [edi + esi]
mov eax, edx
shr eax, 0x10
movzx ecx, al
movzx eax, dl
and edx, 0xff00ff00
shl eax, 0x10
or ecx, eax
or ecx, edx
mov dword [esi], ecx
add esi, 4
cmp esi, ebx
jb 0x10027957
mov ebx, dword [esp + 0x20]
mov edi, dword [esp + 0x18]
jmp 0x1002798d
mov edi, dword [esp + 0x24]
mov dword [esp + 0x18], edi
mov eax, dword [esp + 0x14]
push 0
lea esi, [eax + 0xc]
mov dword [esi], 0
mov ecx, dword [eax]
push esi
push 0
push 0x15
mov eax, dword [ecx]
push 0x200
push 1
push dword [esp + 0x28]
push ebx
push ecx
call dword [eax + 0x5c]
test eax, eax
js 0x10027a5f
mov ecx, dword [esi]
lea edx, [esp + 0x34]
push 0
push 0
push edx
mov eax, dword [ecx]
push 0
push ecx
call dword [eax + 0x4c]
test eax, eax
jne 0x10027a5f
xor esi, esi
cmp dword [esp + 0x10], esi
jle 0x10027a04
imul ebx, dword [esp + 0x28]
mov eax, dword [esp + 0x34]
imul eax, esi
push ebx
push edi
add eax, dword [esp + 0x40]
push eax
call sub.VCRUNTIME140.dll_memcpy
inc esi
add esp, 0xc
add edi, ebx
cmp esi, dword [esp + 0x10]
jl 0x100279e5
mov esi, dword [esp + 0x14]
push 0
mov eax, dword [esi + 0xc]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x50]
mov edx, dword [esp + 0x30]
mov eax, dword [esi + 0xc]
mov ecx, dword [edx + 0x48]
mov dword [ecx + 4], eax
mov eax, dword [edx + 0x48]
cmp byte [eax + 0x12], 0
je 0x10027a4b
mov eax, dword [esp + 0x18]
test eax, eax
je 0x10027a41
mov ecx, dword [0x100508f0]
test ecx, ecx
je 0x10027a41
dec dword [ecx + 0xb0]
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.10043d30
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x3c]
xor al, al
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10043d30
mov esp, ebp
pop ebp
ret