joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41488d
Capabilities:
Capture microphone audio

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
mov esi, ecx
push edi
push 8
mov cx, word [esi + 0xc]
mov di, word [esi + 0x14]
mov word [ebp - 0x12], cx
mov edx, dword [esi + 0x10]
movzx eax, di
movzx ecx, cx
imul eax, ecx
mov ecx, eax
mov dword [ebp - 0x10], edx
imul ecx, edx
shr ecx, 3
mov dword [ebp - 0xc], ecx
pop ecx
cdq
idiv ecx
and word [ebp - 4], 0
push 1
push 0
push 0
mov word [ebp - 6], di
mov edi, dword [sym.imp.WINMM.dll_waveInOpen]
mov word [ebp - 0x14], 1
mov word [ebp - 8], ax
lea eax, [ebp - 0x14]
push eax
push 0xffffffffffffffff
push 0
call edi
test eax, eax
mov dword [esi + 0x1c], eax
je 0x4148f7
xor eax, eax
jmp 0x41491d
push 0x20000
lea eax, [ebp - 0x14]
push dword [0x49dd84]
push dword [esi + 8]
push eax
lea eax, [esi + 0x18]
push 0xffffffffffffffff
push eax
call edi
xor ecx, ecx
mov dword [esi + 0x1c], eax
test eax, eax
sete cl
mov eax, ecx
pop edi
pop esi
leave
ret

Function at 0x41492a
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 4], ebx
je 0x414979
push edi
push 0x32
pop edi
push ebx
push ebx
push 0x12
push dword [esi + 8]
call dword [sym.imp.USER32.dll_PostThreadMessageA]
lea eax, [ebp - 4]
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.DLL_GetExitCodeThread]
cmp dword [ebp - 4], 0x103
jne 0x414975
push 0xa
call dword [sym.imp.KERNEL32.DLL_Sleep]
dec edi
jne 0x41494a
push ebx
push dword [esi + 4]
call dword [sym.imp.KERNEL32.DLL_TerminateThread]
mov dword [esi + 4], ebx
pop edi
push 1
pop eax
pop esi
pop ebx
leave
ret

Function at 0x414a11
Capabilities:
Capture microphone audio

Disassembly:
push esi
mov esi, ecx
push edi
push dword [esi + 0x18]
call dword [sym.imp.WINMM.dll_waveInReset]
test eax, eax
mov dword [esi + 0x1c], eax
jne 0x414aa3
push 0x140
call sub.MFC42.DLL_operatornew
pop ecx
mov dword [esi + 0x20], eax
xor edi, edi
mov eax, dword [esi + 0x20]
push 0x20
add eax, edi
push 0
push eax
call sub.MSVCRT.dll_memset
push 0x3c0
call sub.MFC42.DLL_operatornew
mov ecx, dword [esi + 0x20]
add esp, 0x10
mov dword [ecx + edi], eax
mov eax, dword [esi + 0x20]
push 0x20
mov dword [eax + edi + 4], 0x3c0
mov eax, dword [esi + 0x20]
add eax, edi
push eax
push dword [esi + 0x18]
call dword [sym.imp.WINMM.dll_waveInPrepareHeader]
test eax, eax
mov dword [esi + 0x1c], eax
jne 0x414aa3
mov eax, dword [esi + 0x20]
push 0x20
add eax, edi
push eax
push dword [esi + 0x18]
call dword [sym.imp.WINMM.dll_waveInAddBuffer]
test eax, eax
mov dword [esi + 0x1c], eax
jne 0x414aa3
add edi, 0x20
cmp edi, 0x140
jl 0x414a35
push 1
pop eax
pop edi
pop esi
ret
xor eax, eax
jmp 0x414aa0

Function at 0x414c09
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
lea eax, [esi + 0x1c]
push eax
push 0
push esi
push 0x414b4a
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_CreateThread]
xor ecx, ecx
mov dword [esi + 0x18], eax
test eax, eax
setne cl
mov eax, ecx
pop esi
ret
Function at 0x414c30
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x18], ebx
je 0x414c7f
push edi
push 0x32
pop edi
push ebx
push ebx
push 0x12
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_PostThreadMessageA]
lea eax, [ebp - 4]
push eax
push dword [esi + 0x18]
call dword [sym.imp.KERNEL32.DLL_GetExitCodeThread]
cmp dword [ebp - 4], 0x103
jne 0x414c7b
push 0xa
call dword [sym.imp.KERNEL32.DLL_Sleep]
dec edi
jne 0x414c50
push ebx
push dword [esi + 0x18]
call dword [sym.imp.KERNEL32.DLL_TerminateThread]
mov dword [esi + 0x18], ebx
pop edi
push 1
pop eax
pop esi
pop ebx
leave
ret
Function at 0x41b5b0
Capabilities:
Get system information on windows

Disassembly:
sub esp, 0x24
push esi
mov esi, dword [esp + 0x2c]
mov eax, dword [esi]
sar eax, 0x10
cmp al, 1
je 0x41b5cb
mov eax, 0xfffffffc
pop esi
add esp, 0x24
ret
mov dword [esi + 4], 0x10302
mov dword [esi + 8], str.xvid_1.3.2
call fcn.0041b4d0
lea ecx, [esp + 4]
mov dword [esi + 0xc], eax
push ecx
mov dword [esi + 0x10], 0
call dword [sym.imp.KERNEL32.DLL_GetSystemInfo]
mov edx, dword [esp + 0x18]
xor eax, eax
mov dword [esi + 0x10], edx
pop esi
add esp, 0x24
ret
Function at 0x403e4a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
pushal
call 0x403e59
pop dword [ebp - 0x50]
mov eax, 0x403e59
sub dword [ebp - 0x50], eax
mov dword [ebp - 0x60], 0x5a5d27fa
add dword [ebp - 0x60], 0xf3f51d51
mov dword [ebp - 0x5c], 0xd9bcf492
sub dword [ebp - 0x5c], 0xa789a84d
mov dword [ebp - 0x58], 0xaceffdc
add dword [ebp - 0x58], 0x417d4452
mov dword [ebp - 0x54], 0x175c1586
sub dword [ebp - 0x54], 0x175c1586
lea eax, [ebp - 0x60]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x50]
call dword [eax]
mov dword [ebp - 0x60], 0xb61dccdb
sub dword [ebp - 0x60], 0x41ab6385
mov dword [ebp - 0x5c], 0x11e1a289
sub dword [ebp - 0x5c], 0xd0754114
mov dword [ebp - 0x58], 0x89304e98
sub dword [ebp - 0x58], 0x25c0e22c
mov dword [ebp - 0x54], 0xc39e78c6
sub dword [ebp - 0x54], 0xc39e78c6
lea ebx, [ebp - 0x60]
push ebx
push eax
mov eax, 0x292fe688
sub eax, 0x28ef65b4
add eax, dword [ebp - 0x50]
call dword [eax]
push 0x40
push 0x1000
push 0x32f61
push 0
call eax
mov ecx, 0x38db
xor edx, edx
add edx, eax
mov edi, 0x42516b8
sub edi, 0x3e406b8
add edi, dword [ebp - 0x50]
mov esi, 0xe12c9883
sub esi, 0x30410904
sub dword [ebp - 0x40], edi
mov ebx, dword [edi]
sub dword [ebp - 0x18], 0xffee165b
xor ebx, esi
xor dword [ebp - 0x48], 0xbcd52d54
mov dword [edx], ebx
add edx, 4
add edi, 0xb0afaefe
sub edi, 0xb0afaefa
loop 0x403f6d
add eax, 0xd63f
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x400000
add ecx, dword [ebp - 0x50]
call ebx
leave
ret
Function at 0x100036f0
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 0x10003751
mov cl, byte [esi]
lea esi, [esi + 1]
dec edi
cmp cl, 0x23
jne 0x10003734
cmp edi, 2
jb 0x10003734
cmp byte [esi], cl
jne 0x10003734
cmp byte [esi + 1], cl
jne 0x10003734
mov eax, ebx
movzx ecx, cl
movzx edx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x10043408]
jmp 0x10003705
movzx edx, al
movzx ecx, cl
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x10043408]
test edi, edi
jne 0x10003705
pop edi
pop esi
not eax
pop ebx
pop ebp
ret
mov cl, byte [esi]
inc esi
test cl, cl
je 0x10003780
cmp cl, 0x23
jne 0x10003767
cmp byte [esi], cl
jne 0x10003767
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 + 0x10043408]
test cl, cl
jne 0x10003758
pop edi
pop esi
not eax
pop ebx
pop ebp
ret

Function at 0x10003890
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 0x100038a4
mov dword [ebx], 0
mov edx, 0x1004301c
call fcn.10003790
mov esi, eax
test esi, esi
je 0x10003992
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 0x10003988
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 0x10003988
push esi
call edi
mov edi, eax
add esp, 4
mov dword [ebp + 8], edi
cmp edi, 0xffffffff
je 0x10003988
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 0x10003988
mov eax, dword [0x100598d8]
test eax, eax
je 0x1000391c
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 0x10003988
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 0x1000396d
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov eax, dword [0x100598d8]
add esp, 4
test eax, eax
je 0x1000395a
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 0x1000397f
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 0x100063e0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x1004b040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
lea edx, [ebp - 8]
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov esi, 4
mov eax, dword [edi + 0xe4]
mov ebx, dword [edi + 0xec]
mov ebx, dword [ebx + eax*4 - 4]
not ebx
nop dword [eax + eax]
movzx eax, byte [edx]
lea edx, [edx + 1]
movzx ecx, bl
xor ecx, eax
shr ebx, 8
xor ebx, dword [ecx*4 + 0x10043408]
sub esi, 1
jne 0x10006420
mov eax, dword [edi]
not ebx
cmp dword [eax + 0x3e94], ebx
jne 0x10006457
push ecx
push dword [ebp - 0xc]
lea edx, [esi + 4]
mov ecx, ebx
call fcn.10018c00
add esp, 8
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100400ab
mov esp, ebp
pop ebp
ret 4
Function at 0x10008510
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [0x100598d8]
mov ebx, edx
push edi
mov edi, ecx
mov dword [ebp - 0xc], edi
mov eax, dword [esi + 0x47ec]
mov edx, dword [eax]
inc dword [esi + 0xa8]
mov ecx, dword [edi + 0x264]
mov dword [ebp - 4], edx
cmp dword [ecx + 0x7c], 1
jle 0x1000854f
push ecx
add ecx, 0x78
call fcn.10024b70
mov edx, dword [ebp - 4]
mov edi, dword [edi + 0x264]
mov esi, dword [edx + ebx*4 + 0x70]
mov eax, dword [edi]
test eax, eax
je 0x100085c2
cmp eax, 1
jne 0x10008573
mov eax, dword [edi + 8]
cmp dword [eax + 0x1c], 0
jne 0x10008573
cmp dword [eax + 0x20], 0
je 0x100085c2
mov eax, dword [esi]
mov ecx, dword [esi + 4]
cmp eax, ecx
jne 0x100085a9
lea edx, [eax + 1]
mov dword [ebp - 8], edx
test ecx, ecx
je 0x10008594
mov eax, ecx
cdq
sub eax, edx
mov edx, dword [ebp - 8]
sar eax, 1
add eax, ecx
jmp 0x10008599
mov eax, 8
cmp eax, edx
mov ecx, esi
cmovg edx, eax
push edx
call fcn.10019380
mov edx, dword [ebp - 4]
mov ecx, dword [esi]
mov eax, dword [esi + 8]
mov dword [eax + ecx*4], edi
inc dword [esi]
inc dword [edx + 0x3c]
mov eax, dword [edi + 0x18]
add dword [edx + 0x44], eax
mov eax, dword [edi + 0xc]
add dword [edx + 0x40], eax
mov eax, dword [ebp - 0xc]
mov esi, dword [eax + 0x188]
mov eax, dword [eax + 0x180]
lea edi, [esi + eax*4]
cmp esi, edi
je 0x10008602
nop dword [eax + eax]
mov ecx, dword [esi]
cmp byte [ecx + 0xaa], 0
je 0x100085fb
cmp byte [ecx + 0xb1], 0
jne 0x100085fb
mov edx, ebx
call fcn.10008510
add esi, 4
cmp esi, edi
jne 0x100085e0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10009720
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [0x100598d8]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0xc], ecx
mov ebx, dword [esi + 0x3e60]
mov ecx, ebx
mov dword [ebp - 8], edx
mov eax, dword [ebx + 0xc]
and eax, 4
or eax, 0x1000103
or edi, eax
cmp dword [ebx + 0x190], 0
mov dword [ebp + 0x10], edi
jne 0x10009767
cmp dword [esi + 0x4a28], 0
mov eax, 0x228
je 0x1000976c
mov eax, 0x1f8
movss xmm4, dword [eax + ebx]
xorps xmm3, xmm3
movss xmm5, dword [eax + ebx + 4]
subss xmm4, dword [ecx + 0xf0]
subss xmm5, dword [ecx + 0xf4]
mov ecx, dword [ebp + 8]
movss xmm2, dword [0x1004820c]
mov dword [ebp - 4], 0
mov dword [ebp + 8], 2
cvttss2si eax, dword [ecx]
movd xmm1, eax
cvttss2si eax, dword [ecx + 4]
cvtdq2ps xmm1, xmm1
movd xmm0, eax
ucomiss xmm1, xmm3
cvtdq2ps xmm0, xmm0
lahf
xor ecx, ecx
test ah, 0x44
mov eax, 1
cmovnp ecx, eax
ucomiss xmm0, xmm3
lahf
test ah, 0x44
mov eax, dword [ebp - 4]
cmovnp eax, dword [ebp + 8]
or eax, ecx
comiss xmm3, xmm1
mov dword [ebp - 4], eax
jb 0x100097ef
addss xmm1, xmm4
comiss xmm1, xmm2
jae 0x100097ef
movaps xmm1, xmm2
comiss xmm3, xmm0
jb 0x10009800
addss xmm0, xmm5
comiss xmm0, xmm2
jae 0x10009800
movaps xmm0, xmm2
or dword [esi + 0x4714], 2
mov ecx, dword [ebp - 0xc]
movss dword [esi + 0x4734], xmm1
movss dword [esi + 0x4738], xmm0
mov dword [esi + 0x471c], 1
mov eax, dword [ebx + 4]
push edx
test ecx, ecx
je 0x10009843
push ecx
push eax
push str._s__s__08X
lea eax, [ebp + 8]
push 0
push eax
call fcn.10003640
add esp, 0x18
jmp 0x10009857
push eax
push str._s__08X
lea eax, [ebp + 8]
push 0
push eax
call fcn.10003640
add esp, 0x14
movss xmm0, dword [esi + 0x37b8]
xor edx, edx
mov ecx, dword [ebp + 8]
push edi
movss dword [ebp - 0xc], xmm0
call fcn.1000c180
mov edi, dword [esi + 0x3e60]
add esp, 4
movss xmm0, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
movss dword [esi + 0x37b8], xmm0
cmp word [edi + 0xb6], 1
mov byte [ebp + 0xb], al
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], edi
mov dword [edi + 0x74], edx
mov byte [edi + 0xc6], al
jne 0x100098b6
mov ecx, dword [edi + 0x14]
mov eax, dword [edi + 0x18]
mov dword [ebx + 0xf0], ecx
mov dword [ebx + 0xf4], eax
mov edi, edx
mov al, 0x23
not edi
mov edx, 0x100425f1
mov ebx, edi
cmp al, 0x23
jne 0x100098d1
cmp byte [edx], al
jne 0x100098d1
cmp byte [edx + 1], al
cmove ebx, edi
movzx ecx, bl
movzx eax, al
xor ecx, eax
shr ebx, 8
mov al, byte [edx]
inc edx
xor ebx, dword [ecx*4 + 0x10043408]
test al, al
jne 0x100098c3
mov edi, dword [ebp - 0xc]
not ebx
cmp dword [esi + 0x3eac], ebx
jne 0x10009900
xor edx, edx
xor ecx, ecx
call fcn.10006470
mov eax, dword [ebp - 8]
cmp dword [esi + 0x47fc], eax
jne 0x1000994e
test dword [ebp + 0x10], 0x800000
jne 0x1000994e
cmp word [edi + 0x14c], 0
jne 0x10009927
cmp byte [edi + 0x152], 0
je 0x1000994e
xor edx, edx
mov ecx, edi
call fcn.1000eb90
xor dl, dl
mov ecx, edi
call fcn.10014250
mov edx, edi
mov ecx, ebx
call fcn.10006470
mov eax, dword [esi + 0x4820]
mov dword [esi + 0x3ecc], eax
mov al, byte [ebp + 0xb]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10009bd0
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 0x10009c0f
cmp bl, 0x23
jne 0x10009bf1
cmp byte [esi], bl
jne 0x10009bf1
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 + 0x10043408]
test bl, bl
jne 0x10009be2
mov ecx, dword [0x100598d8]
not eax
mov esi, dword [ecx + 0x3e48]
mov edi, dword [ecx + 0x3e50]
lea ebx, [edi + esi*8]
test esi, esi
je 0x10009c4e
nop word [eax + eax]
mov edx, esi
shr edx, 1
cmp dword [edi + edx*8], eax
lea ecx, [edi + edx*8]
jae 0x10009c48
lea edi, [ecx + 8]
or ecx, 0xffffffff
sub ecx, edx
add esi, ecx
jmp 0x10009c4a
mov esi, edx
test esi, esi
jne 0x10009c30
cmp edi, ebx
je 0x10009c5d
cmp dword [edi], eax
jne 0x10009c5d
mov eax, dword [edi + 4]
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
xor eax, eax
pop ebx
ret
Function at 0x10017450
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 + 0x5b40], 0
lea esi, [edi + 0x5b44]
je 0x100174d2
mov ecx, dword [esi + 4]
test ecx, ecx
jns 0x1001748c
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.10019840
push dword [ebp + 8]
mov ecx, esi
mov dword [esi], 0
push ebx
call fcn.10003ca0
mov edx, dword [esi]
mov ecx, 0x100598d4
push dword [edi + 0x5b40]
lea eax, [edx - 1]
neg edx
sbb edx, edx
and edx, eax
mov eax, dword [edi + 0x5b4c]
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.10003ca0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x100178c0
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 [0x100598d8]
test bl, bl
je 0x10017906
or edi, 0xffffffff
cmp bl, 0x23
jne 0x100178e7
cmp byte [esi], bl
jne 0x100178e7
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 + 0x10043408]
test bl, bl
jne 0x100178d8
mov edi, dword [0x100598d8]
mov ecx, dword [edi + 0x5ae4]
not eax
mov edx, dword [edi + 0x5aec]
pop edi
pop esi
lea ecx, [ecx + ecx*8]
lea ecx, [edx + ecx*4]
pop ebx
cmp edx, ecx
je 0x1001792d
cmp dword [edx + 4], eax
je 0x10017930
add edx, 0x24
cmp edx, ecx
jne 0x10017921
xor eax, eax
ret
mov eax, edx
ret

Function at 0x10017b60
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword [0x100598d8]
sub esp, 8
push esi
mov esi, ecx
mov dword [eax + 0x5ad4], 0
push edi
test esi, esi
je 0x10017bbd
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], 0
call fcn.10017bd0
mov edx, 0x10043020
mov ecx, esi
mov edi, eax
call fcn.10003790
mov esi, eax
test esi, esi
je 0x10017bbd
push esi
push dword [esp + 0x10]
push 1
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 0x14
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10022100
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 0x1002213a
mov eax, dword [0x100598d8]
mov dword [esi + 4], 0
mov dword [esi], 0
test eax, eax
je 0x1002212d
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 0x1002216b
mov eax, dword [0x100598d8]
mov dword [esi + 0x10], 0
mov dword [esi + 0xc], 0
test eax, eax
je 0x1002215e
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 0x1002219c
mov eax, dword [0x100598d8]
mov dword [esi + 0x1c], 0
mov dword [esi + 0x18], 0
test eax, eax
je 0x1002218f
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 0x100221e9
mov eax, dword [0x100598d8]
mov dword [esi + 0x40], 0
mov dword [esi + 0x3c], 0
test eax, eax
je 0x100221dc
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 0x1002221a
mov eax, dword [0x100598d8]
mov dword [esi + 0x4c], 0
mov dword [esi + 0x48], 0
test eax, eax
je 0x1002220d
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 0x1002224b
mov eax, dword [0x100598d8]
mov dword [esi + 0x58], 0
mov dword [esi + 0x54], 0
test eax, eax
je 0x1002223e
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.10024a60
Function at 0x100258b0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x174
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
movss dword [esp + 0x10], xmm3
mov dword [esp + 0x14], ecx
movzx ebx, byte [esi + 8]
movzx eax, byte [esi + 9]
shl ebx, 8
add ebx, eax
movzx eax, byte [esi + 0xa]
shl ebx, 8
add ebx, eax
movzx eax, byte [esi + 0xb]
shl ebx, 8
add ebx, eax
mov eax, dword [0x100598d8]
test eax, eax
je 0x100258fa
inc dword [eax + 0xb0]
push ebx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
movzx edx, byte [esi]
add esp, 4
movzx ecx, byte [esi + 1]
shl edx, 8
add edx, ecx
mov dword [esp + 0xc], eax
movzx ecx, byte [esi + 2]
shl edx, 8
add edx, ecx
movzx ecx, byte [esi + 3]
shl edx, 8
add edx, ecx
cmp edx, 0x57bc0000
jne 0x100259b5
movzx ecx, byte [esi + 4]
movzx eax, byte [esi + 5]
shl ecx, 8
add ecx, eax
movzx eax, byte [esi + 6]
shl ecx, 8
add ecx, eax
movzx eax, byte [esi + 7]
shl ecx, 8
add ecx, eax
jne 0x100259b5
movzx ecx, byte [esi + 8]
movzx eax, byte [esi + 9]
mov edx, dword [esp + 0xc]
movzx edi, byte [esi + 0xb]
shl ecx, 8
add ecx, eax
mov dword [0x10059914], esi
movzx eax, byte [esi + 0xa]
add esi, 0x10
shl ecx, 8
add ecx, eax
mov dword [0x1005991c], edx
shl ecx, 8
add ecx, edx
mov dword [0x10059920], edx
add edi, ecx
mov ecx, esi
mov dword [0x10059918], edi
call fcn.10028f60
cmp eax, esi
je 0x100259b5
nop
cmp dword [0x10059920], edi
ja 0x100259b5
mov ecx, eax
mov esi, eax
call fcn.10028f60
cmp eax, esi
jne 0x100259a0
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x100259d3
mov ecx, 0x1e
lea edi, [esp + 0x108]
rep movsd dword es:[edi], dword [esi]
lea esi, [esp + 0x108]
jmp 0x10025a17
push 0x78
lea eax, [esp + 0x1c]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov eax, 0xffff
mov byte [esp + 0x2c], 1
add esp, 0xc
mov dword [esp + 0x2c], 2
mov dword [esp + 0x30], 1
lea esi, [esp + 0x18]
mov dword [esp + 0x50], 0x7f7fffff
mov dword [esp + 0x5c], 0x3f800000
mov word [esp + 0x60], ax
movss xmm0, dword [esp + 0x10]
lea edi, [esp + 0x90]
comiss xmm0, dword [0x10048140]
mov eax, dword [esp + 0xc]
mov ecx, 0x1e
rep movsd dword es:[edi], dword [esi]
mov ecx, 0x1e
mov byte [esp + 0x98], 1
lea esi, [esp + 0x90]
lea edi, [esp + 0x18]
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ebx
jbe 0x10025a60
movss dword [esp + 0x28], xmm0
mov eax, dword [ebp + 0x14]
test eax, eax
mov ecx, dword [esp + 0x48]
cmovne ecx, eax
lea eax, [esp + 0x18]
mov dword [esp + 0x48], ecx
mov ecx, dword [esp + 0x14]
push eax
call fcn.100255d0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10