joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41eec8
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x487928]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41ef0b
cmp word [esi], dx
jne 0x41ef0b
or byte [edi + eax + 0x28], 4
jmp 0x41ef10
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x41f063
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x41f043
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x41ef52
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x41ef88
cmp eax, edx
jae 0x41ef94
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x41ef2a
jmp 0x41f063
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41f03f
cmp dword [ebp - 0x14], 0
je 0x41f03f
mov eax, dword [ebx*4 + 0x487928]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x41f017
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x41efe0
mov word [esi], cx
jmp 0x41f013
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x487928]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x487928]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x487928]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x41f063
pop ebx
cmp word [ebp - 4], bx
jne 0x41f028
cmp esi, dword [ebp + 0xc]
jne 0x41f028
mov word [esi], bx
jmp 0x41f060
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00418a30
add esp, 0x10
cmp word [ebp - 4], bx
je 0x41f063
push 0xd
jmp 0x41f05c
mov ecx, dword [ebx*4 + 0x487928]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41f05a
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41f063
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x6451d0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x1a3000]
push edi
or ebp, 0xffffffff
jmp 0x6451f2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x6451f9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x6451e8
mov eax, 1
add ebx, ebx
jne 0x64520b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x64521c
jne 0x64523b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x64523b
dec eax
add ebx, ebx
jne 0x645228
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x645200
add ebx, ebx
jne 0x645237
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x64528d
xor ecx, ecx
sub eax, 3
jb 0x645253
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x6452c2
sar eax, 1
mov ebp, eax
jmp 0x64525e
add ebx, ebx
jne 0x64525e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x64522c
inc ecx
add ebx, ebx
jne 0x64526c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x64522c
add ebx, ebx
jne 0x645279
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x64526e
jne 0x64528a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x64526e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x6452ac
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x64529e
jmp 0x6451ee
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x6452ac
add edi, ecx
jmp 0x6451ee
pop esi
mov edi, esi
mov ecx, 0x6dc4
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x6452ca
cmp byte [edi], 0x1e
jne 0x6452ca
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 0x6452cf
lea edi, [esi + 0x242000]
mov eax, dword [edi]
or eax, eax
je 0x645347
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x246ee8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x247050]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x6452fc
mov ecx, edi
jns 0x64532b
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 + 0x247054]
or eax, eax
je 0x645341
mov dword [ebx], eax
add ebx, 4
jmp 0x645319
call dword [esi + 0x247064]
mov ebp, dword [esi + 0x247058]
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 0x64537b
sub esp, 0xffffff80
jmp 0x4db0c4
Function at 0x406550
Capabilities:
Encode data using xor

Disassembly:
or al, byte [ecx]
lea eax, [ecx + esi + 0xa]
xor dword [edx], ecx
xor dword [edx], ecx
fcom qword [ebp - 0x1018]
push edx
push edi
call 0xdf8ab960
add eax, 0xc0f74c0
adc esp, dword [eax]
xor byte [eax], al
add byte [eax + 0x40a9f4c], al
lea eax, [eax + esi + 0xa]
lea eax, [ecx]
loopne 0x40654c
invalid

Function at 0x406840
Capabilities:
Connect socket

Disassembly:
push es
nop
nop
nop
nop
nop
nop
nop
push ebp
mov ebp, esp
pop edi
in al, dx
adc byte [edx], al
add byte [eax], al
push ebx
mov ebx, dword [ebp + 8]
adc byte [edi + 0x48], dl
or byte [eax], dl
push edi
dec eax
mov bh, 4
jb 0x40684c
or dword [edi], 0xffffff84
xchg esp, eax
add dword [ecx + 0x104b8bd4], esp
dec ebx
adc byte [ebp - 0x767bf0a8], al
add dword [eax], eax
cmp al, 0x8b

Function at 0x407545
Capabilities:
Encode data using xor

Disassembly:
test eax, eax
je 0x407570
mov eax, dword [ebp - 0x10]
lea ebp, [ebx + 1]
cmp ecx, 0x200
jb 0x40755c
mov eax, 0x1ff
cmp dword [ebp + 0x4a], eax
or byte [edi], 0x4e
dec esi
push es
xor byte [ebx + 0x3b41fc4d], cl
enter 0x4d89, 0xfffffffffffffffc
jb 0x407561
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x4077df
cmp byte [esi], 0x30
je 0x40781b
dec esi
mov byte [esi], 0x30
jmp 0x4f4077d8
dec ebx
inc ebp
int3
jge 0x407829
rol eax, cl
je 0x407847
sub al, 0x45
fdiv qword [edx + 0x19]
push edi
mov dword [edi], eax
dec dword [esi]
add al, 0x83
les eax, [eax*4 - 0x6c7a9e40]
add eax, dword [eax]
add byte [ebx + 0x747864f], cl
mov dword [ebp - 3], ecx
mov dl, byte [esi]
mov byte [eax], dl
inc eax
mov word [edi], ds
hlt
mov esi, dword [ebx - 0x1fb27414]
mov al, byte [esi - 0xa]
push ebp
pop eax
mov edx, dword [ebp - 4]
dec edx
dec ecx
mov dword [ebx - 4], eax
mov dword [ebp - 0x20], ecx
jmp 0x407aab
mov byte [ebp + 0x17], 0x20
mov dword [ebp - 4], ecx
jmp 0x4077df
test dword [esi + 0x74], edi
daa
cmp ebx, dword [eax]
mov byte [0x8969193f], al
pop es
call dword [ebp + 8]
sbb dword [eax], 4
test eax, eax
jne 0x407bba
mov ecx, dword [edi + 4]
mov esi, edi
mov dword [ebp + 0x6f], ecx
mov dl, byte [ebp + 0x71]
mov byte [eax], dl
inc eax
mov ebp, 0x4d8bf497
in al, dx
mov eax, dword [eax + 0x1a]
jmp 0x407a67
in al, dx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x3d
Function at 0x1002c33
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_GetSysColor]
push edi
push 0xd
call esi
mov ecx, eax
shr ecx, 8
movzx edi, cl
movzx ecx, al
shl ecx, 8
shr eax, 0x10
or edi, ecx
movzx eax, al
shl edi, 8
push 5
or edi, eax
call esi
mov ecx, eax
shr ecx, 8
movzx ebx, cl
movzx ecx, al
shr eax, 0x10
shl ecx, 8
or ebx, ecx
movzx eax, al
shl ebx, 8
or ebx, eax
movzx eax, word [ebp + 8]
push 2
push eax
push dword [0x100fa44]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x1002ca0
xor eax, eax
jmp 0x1002d4c
push esi
push dword [0x100fa44]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x1002c99
push esi
push dword [0x100fa44]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp + 8], eax
test eax, eax
je 0x1002c99
push eax
call dword [sym.imp.msvcrt.dll_malloc]
mov esi, eax
pop ecx
test esi, esi
je 0x1002c99
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
push esi
call sub.msvcrt.dll_memcpy
mov eax, dword [esi]
add esp, 0xc
push 0x10
add eax, esi
pop edx
mov ecx, dword [eax]
dec edx
cmp ecx, 0xff
jne 0x1002d02
mov dword [eax], ebx
jmp 0x1002d0c
cmp ecx, 0xff00ff
jne 0x1002d0c
mov dword [eax], edi
add eax, 4
test edx, edx
jg 0x1002cf3
mov cl, byte [esi + 0xe]
xor eax, eax
inc eax
shl eax, cl
push 0
lea edi, [esi + eax*4 + 0x28]
call dword [sym.imp.USER32.dll_GetDC]
push 0
push esi
push edi
push 4
mov ebx, eax
push esi
push ebx
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
push ebx
push 0
mov edi, eax
call dword [sym.imp.USER32.dll_ReleaseDC]
push esi
call dword [sym.imp.msvcrt.dll_free]
pop ecx
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x100434d
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x100f3b4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov esi, dword [ebp + 8]
xor eax, eax
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
xor eax, eax
lea edi, [ebp - 0x1c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
push 5
lea eax, [ebp - 0x10]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
je 0x10043ff
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x10]
push 0x10014f8
push eax
call sub.msvcrt.dll_swscanf_s
add esp, 0xc
cmp eax, 0xffffffff
je 0x10043ff
push esi
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
mov ecx, 0x2bd
cmp eax, ecx
jne 0x10043d4
push ecx
call fcn.010028b7
cmp dword [ebp - 0x20], eax
jl 0x10043c5
cmp dword [ebp - 0x20], 0xfffd
jle 0x10043d4
push esi
call dword [sym.imp.USER32.dll_GetParent]
push eax
call fcn.010041be
jmp 0x10043ff
push esi
call dword [sym.imp.USER32.dll_GetParent]
push eax
call fcn.010041be
push 5
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.0100281a
test eax, eax
je 0x10043ff
lea eax, [ebp - 0x1c]
push eax
push esi
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
xor eax, eax
pop esi
call fcn.0100c8fb
leave
ret 4
Function at 0x1007181
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x70
mov eax, dword [0x100f3b4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetACP]
push 2
lea ecx, [ebp - 0x70]
push ecx
push eax
mov dword [0x100fa44], edi
call dword [sym.imp.GDI32.dll_TranslateCharsetInfo]
xor esi, esi
test eax, eax
jne 0x10071ba
mov dword [ebp - 0x70], esi
xor eax, eax
push 0x20
mov word [ebp - 8], ax
lea eax, [ebp - 0x48]
push eax
push 0x2af8
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
jne 0x10071f2
push 0xffffffffffffffff
push 0x100161c
lea eax, [ebp - 0x48]
push 0x20
push eax
call sub.msvcrt.dll_wcsncpy_s
add esp, 0x10
lea eax, [ebp - 0x48]
push eax
push 2
push esi
push esi
push esi
push dword [ebp - 0x70]
push esi
push esi
push esi
push 0x190
push esi
push esi
push esi
push 9
call fcn.010023f2
neg eax
push eax
call dword [sym.imp.GDI32.dll_CreateFontW]
push 9
mov dword [0x100fc6c], eax
call fcn.010023f2
push esi
push 0x1005dbd
push esi
push 0x65
add eax, eax
push edi
mov dword [0x100fc54], eax
call dword [sym.imp.USER32.dll_CreateDialogParamW]
mov dword [0x100fc74], eax
cmp eax, esi
jne 0x100724c
xor eax, eax
jmp 0x100735a
mov edi, dword [sym.imp.USER32.dll_GetWindowLongW]
push ebx
push 0xffffffffffffffec
push eax
call edi
push 0x68
push dword [0x100fc74]
mov ebx, eax
and ebx, 0x400000
call dword [sym.imp.USER32.dll_GetDlgItem]
mov dword [ebp - 0x50], eax
cmp eax, esi
je 0x1007291
push 0xffffffffffffffec
push eax
call edi
or eax, ebx
push eax
push 0xffffffffffffffec
push dword [ebp - 0x50]
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov eax, dword [0x100fee0]
cmp eax, esi
jne 0x1007298
xor eax, eax
jmp 0x1007359
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push 4
pop ebx
lea ecx, [ebp - 0x4c]
push ecx
push 0x100fed4
push esi
push esi
push 0x1001608
push eax
mov dword [ebp - 0x4c], ebx
call edi
test eax, eax
jge 0x10072c5
mov dword [0x100fed4], 0xc8
lea eax, [ebp - 0x4c]
push eax
push 0x100fed8
push esi
push esi
push 0x10015f0
push dword [0x100fee0]
mov dword [ebp - 0x4c], ebx
call edi
test eax, eax
jge 0x10072ee
mov dword [0x100fed8], 2
lea eax, [ebp - 0x4c]
push eax
push 0x100fedc
push esi
push esi
push 0x10015c8
push dword [0x100fee0]
mov dword [ebp - 0x4c], ebx
call edi
test eax, eax
jge 0x1007317
mov dword [0x100fedc], 0x32
movzx eax, word [0x100f41c]
push esi
push eax
push esi
call fcn.01002f14
push dword [ebp + 0xc]
push dword [0x100fc74]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [0x100fc74]
call dword [sym.imp.USER32.dll_UpdateWindow]
push 0x69
push dword [0x100fc74]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SetFocus]
xor eax, eax
inc eax
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0100c8fb
leave
ret 8
Function at 0x10078be
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x100f3b4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x10c], eax
xor eax, eax
push 0xfe
push eax
mov word [ebp - 0x104], ax
lea eax, [ebp - 0x102]
push eax
mov dword [ebp - 0x108], esi
call sub.msvcrt.dll_memset
add esp, 0xc
test esi, esi
jne 0x1007910
xor eax, eax
jmp 0x100796d
mov esi, dword [sym.imp.USER32.dll_SendDlgItemMessageW]
push 0
push 0
push 0x147
push dword [ebp + 0xc]
push edi
call esi
cmp eax, 0xffffffff
je 0x100790c
lea ecx, [ebp - 0x104]
push ecx
push eax
push 0x148
push dword [ebp + 0xc]
push edi
call esi
cmp eax, 0xffffffff
je 0x100790c
push 0x100
lea eax, [ebp - 0x104]
push eax
push 1
push 0
push dword [ebp - 0x10c]
push dword [ebp - 0x108]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
xor ecx, ecx
test eax, eax
setge cl
mov eax, ecx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0100c8fb
leave
ret 0x10

Function at 0x1007a13
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x100f3b4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 0x18]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x108], eax
xor eax, eax
push 0xfe
push eax
mov word [ebp - 0x104], ax
lea eax, [ebp - 0x102]
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
test esi, esi
je 0x1007aa7
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x104]
push eax
push 0
push 0
push dword [ebp - 0x108]
mov dword [ebp - 0x10c], 0x100
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1007aa7
lea eax, [ebp - 0x104]
push eax
push 0x80
push ebx
call fcn.01002dc8
test eax, eax
jge 0x1007aa7
or eax, 0xffffffff
jmp 0x1007acf
mov esi, dword [sym.imp.USER32.dll_SendDlgItemMessageW]
push ebx
push 0xffffffffffffffff
push 0x14d
push dword [ebp + 0xc]
push edi
call esi
cmp eax, 0xffffffff
jne 0x1007acf
push 0
push 0
push 0x14e
push dword [ebp + 0xc]
push edi
call esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0100c8fb
leave
ret 0x14
Function at 0x10097ea
Capabilities:
Hash data using sha1
Hash data using sha1 via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push esi
xor esi, esi
push edi
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], 0x14
cmp dword [ebp + 8], esi
je 0x10098af
mov edi, dword [ebp + 0x10]
cmp edi, esi
je 0x10098af
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0xf0000000
xor edi, edi
inc edi
push edi
push 0x10016b0
push esi
lea eax, [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x100988a
lea eax, [ebp - 4]
push eax
push esi
push esi
push 0x8004
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x100988a
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x100988a
push esi
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
push 2
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x100988a
cmp dword [ebp - 0xc], 0x14
jne 0x100988a
mov dword [ebp - 0x10], edi
cmp dword [ebp - 4], esi
je 0x100989b
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov dword [ebp - 4], esi
cmp dword [ebp - 8], esi
je 0x10098aa
push esi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, dword [ebp - 0x10]
jmp 0x10098b1
xor eax, eax
pop edi
pop esi
leave
ret 0xc
Function at 0x1009b7b
Capabilities:
Get file size
Read file via mapping

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x100f3b4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
push ebx
push esi
push edi
xor esi, esi
push esi
push 1
push 3
push esi
push 1
push 0x80000000
push eax
mov dword [ebp - 0x28], ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp - 0x20], edi
cmp edi, 0xffffffff
je 0x1009c71
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov ebx, eax
push ebx
push esi
push 2
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebp - 0x24], eax
cmp eax, esi
je 0x1009c68
cmp ebx, 0x10
jb 0x1009c68
push esi
push esi
push esi
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
cmp edi, esi
je 0x1009c5f
push ebx
push edi
call fcn.01009b0e
test eax, eax
je 0x1009c58
cmp dword [edi], 0x58454355
jne 0x1009c58
mov eax, dword [edi + 4]
add eax, edi
push 0x100169c
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
mov esi, dword [sym.imp.KERNEL32.dll_IsValidLanguageGroup]
test eax, eax
jne 0x1009c84
call fcn.01008510
test eax, eax
je 0x1009c58
xor ebx, ebx
inc ebx
push ebx
push 7
call esi
test eax, eax
jne 0x1009c87
push ebx
push 0xa
call esi
test eax, eax
jne 0x1009c87
push ebx
push 8
call esi
test eax, eax
jne 0x1009c87
push ebx
push 9
call esi
test eax, eax
jne 0x1009c87
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0100c8fb
leave
ret 8
xor ebx, ebx
inc ebx
movzx eax, word [edi + 8]
mov ecx, 0x4b0
mov dword [ebp - 0x1c], eax
cmp ax, cx
je 0x1009d1f
movzx eax, ax
push eax
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x1009c58
lea eax, [ebp - 0x18]
push eax
movzx eax, word [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetCPInfo]
test eax, eax
je 0x1009c58
cmp dword [ebp - 0x18], ebx
jbe 0x1009ce7
push 2
lea eax, [ebp - 0x48]
push eax
movzx eax, word [ebp - 0x1c]
push eax
call dword [sym.imp.GDI32.dll_TranslateCharsetInfo]
test eax, eax
je 0x1009ce7
push dword [ebp - 0x48]
call fcn.010084cf
test eax, eax
je 0x1009c58
mov eax, dword [ebp - 0x1c]
mov ecx, 0x3a4
cmp ax, cx
jne 0x1009cf9
push ebx
push 7
jmp 0x1009d15
mov ecx, 0x3a8
cmp ax, cx
jne 0x1009d08
push ebx
push 0xa
jmp 0x1009d15
mov ecx, 0x3b5
cmp ax, cx
jne 0x1009d37
push ebx
push 8
call esi
test eax, eax
je 0x1009c58
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x20]
mov dword [eax], ecx
mov ecx, dword [ebp - 0x24]
mov dword [eax + 4], ecx
mov dword [eax + 8], edi
mov eax, ebx
jmp 0x1009c73
mov ecx, 0x3b6
cmp ax, cx
jne 0x1009d1f
push ebx
push 9
jmp 0x1009d15
Function at 0x1009d4b
Capabilities:
Enumerate files on windows
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x670
mov eax, dword [0x100f3b4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, 0x104
push esi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x1009d7f
xor eax, eax
jmp 0x1009e7f
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x1009db9
cmp eax, 0x103
jge 0x1009db9
add eax, eax
cmp word [ebp + eax - 0x20e], 0x5c
je 0x1009db9
push 0x5c
pop ecx
mov word [ebp + eax - 0x20c], cx
xor ecx, ecx
mov word [ebp + eax - 0x20a], cx
lea eax, [ebp - 0x20c]
push eax
push esi
lea eax, [ebp - 0x414]
push eax
call fcn.01002dc8
test eax, eax
jl 0x1009d78
push 0x1001710
push esi
lea eax, [ebp - 0x414]
push eax
call fcn.01008555
test eax, eax
jl 0x1009d78
push edi
lea eax, [ebp - 0x664]
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x1009e78
test byte [ebp - 0x664], 0x10
jne 0x1009e5f
lea eax, [ebp - 0x20c]
push eax
push esi
lea eax, [ebp - 0x414]
push eax
call fcn.01002dc8
test eax, eax
jl 0x1009e8c
lea eax, [ebp - 0x638]
push eax
push esi
lea eax, [ebp - 0x414]
push eax
call fcn.01008555
test eax, eax
jl 0x1009e8c
lea eax, [ebp - 0x670]
push eax
lea eax, [ebp - 0x414]
push eax
call fcn.01009b7b
test eax, eax
je 0x1009e5f
lea eax, [ebp - 0x670]
push eax
call fcn.010098bc
lea eax, [ebp - 0x664]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1009e03
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [0x10300a0]
inc eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0100c8fb
leave
ret
xor eax, eax
jmp 0x1009e7e