joyce8/EMBER2024-capa huggingface dataset:
Function at 0x477d00
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x47000]
mov dword [edi + 0x63d00], 0xc48b0577
push edi
jmp 0x477d2a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x477d31
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x477d20
mov eax, 1
add ebx, ebx
jne 0x477d43
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x477d54
jne 0x477d73
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x477d73
dec eax
add ebx, ebx
jne 0x477d60
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x477d38
add ebx, ebx
jne 0x477d6f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x477dc5
xor ecx, ecx
sub eax, 3
jb 0x477d8b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x477dfa
sar eax, 1
mov ebp, eax
jmp 0x477d96
add ebx, ebx
jne 0x477d96
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x477d64
inc ecx
add ebx, ebx
jne 0x477da4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x477d64
add ebx, ebx
jne 0x477db1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x477da6
jne 0x477dc2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x477da6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x477de4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x477dd6
jmp 0x477d26
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x477de4
add edi, ecx
jmp 0x477d26
pop esi
mov edi, esi
mov ecx, 0x283d
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x477e02
cmp byte [edi], 0x22
jne 0x477e02
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 0x477e07
lea edi, [esi + 0x74000]
mov eax, dword [edi]
or eax, eax
je 0x477e7f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x7b620]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x7b728]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x477e34
mov ecx, edi
jns 0x477e63
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 + 0x7b730]
or eax, eax
je 0x477e79
mov dword [ebx], eax
add ebx, 4
jmp 0x477e51
call dword [esi + 0x7b72c]
mov ebp, dword [esi + 0x7b734]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x237]
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 0x477eb3
sub esp, 0xffffff80
jmp 0x42c2ee
Function at 0x401340
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get process heap flags
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov ebx, edx
sub esp, 0x34
mov dword [ebp - 0x18], eax
test byte [section..data], 8
jne 0x401420
lea edi, [ebp - 0x10]
lea esi, [ebp - 0x14]
mov dword [esp + 4], ebx
mov ecx, dword [sym.imp.advapi32.dll_RegQueryValueExW]
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
mov dword [ebp - 0x1c], ecx
call ecx
sub esp, 0x18
test eax, eax
jne 0x401470
mov edx, dword [ebp - 0x10]
mov ecx, dword fs:[0x18]
add edx, 4
mov dword [ebp - 0x28], edx
mov dword [esp + 8], edx
mov dword [esp + 4], 0
mov eax, dword [ecx + 0x30]
mov dword [ebp - 0x24], ecx
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
sub esp, 0xc
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], eax
mov dword [ebp - 0x20], eax
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0
mov dword [esp + 4], ebx
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
mov ecx, dword [ebp - 0x1c]
call ecx
mov edx, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x24]
sub esp, 0x18
test eax, eax
jne 0x401450
mov eax, dword [ebp - 0x28]
xor ecx, ecx
xor ebx, ebx
and eax, 0xfffffffe
mov word [edx + eax - 2], cx
mov word [edx + eax - 4], bx
lea esp, [ebp - 0xc]
mov eax, edx
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0xc], 0x404017
mov dword [esp + 8], str.GetRegValue
mov dword [esp + 4], 0x403000
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x40135b
mov dword [esp + 8], edx
mov dword [esp + 4], 0
mov eax, dword [ecx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
nop
xor edx, edx
jmp 0x401411
Function at 0x402290
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x4022e8
cmp byte [esi + ebx - 1], 0xa
je 0x4022bc
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x406084], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0x10
pop ebx
pop esi
pop ebp
ret
Function at 0x402890
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xe0
mov edi, dword [0x406094]
mov esi, dword [ebp + 8]
test edi, edi
je 0x402a50
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call dword [0x406094]
movzx eax, al
bt eax, esi
jae 0x402ab0
mov ecx, dword [0x406084]
xor eax, eax
mov edx, dword fs:[0x18]
cmp dword [edx + 0x24], ecx
je 0x402955
test byte [0x403018], 8
jne 0x4029f0
lea ebx, [ebp - 0xd4]
mov edi, ebx
test byte [0x403028], 8
jne 0x4029a0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
mov dword [esp + 4], str._04x:
mov dword [esp], edi
mov dword [esp + 8], eax
call sym._sprintf
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x402924
cmp esi, 3
jbe 0x402960
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp], ebx
mov esi, eax
call dword [sym.imp.ucrtbase.dll_strlen]
mov dword [esp + 0xc], esi
mov dword [esp + 8], eax
mov dword [esp + 4], 1
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0xe0
pop ebx
pop esi
pop edi
pop ebp
ret
add eax, edi
mov edi, dword [ebp + 0x10]
mov dword [esp + 8], str._s:_s:_s
mov dword [esp], eax
mov dword [esp + 0x14], edi
mov edi, dword [ebp + 0xc]
lea edx, [edi + 1]
mov dword [esp + 0x10], edx
mov edx, dword [esi*4 + 0x4044e8]
mov dword [esp + 0xc], edx
mov edx, ebx
sub edx, eax
add edx, 0xc8
mov dword [esp + 4], edx
call sym._snprintf.constprop.0
jmp 0x402924
mov ecx, dword [0x406094]
test ecx, ecx
je 0x402a90
mov dword [esp], 0x403028
call dword [0x406094]
test al, 8
je 0x4028fb
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x20]
mov dword [esp], edi
mov dword [esp + 4], str._04x:
mov dword [esp + 8], eax
call sym._sprintf
add edi, eax
jmp 0x4028fb
mov ebx, dword [0x406094]
test ebx, ebx
je 0x402a70
mov dword [esp], 0x403018
call dword [0x406094]
test al, 8
je 0x4028e6
call dword [sym.imp.kernel32.dll_GetTickCount]
lea ebx, [ebp - 0xd4]
mov dword [esp + 4], str._3u._03u:
mov ecx, eax
mov eax, 0x10624dd3
mov dword [esp], ebx
mul ecx
shr edx, 6
imul eax, edx, 0x3e8
mov dword [esp + 8], edx
sub ecx, eax
mov dword [esp + 0xc], ecx
call sym._sprintf
lea edi, [ebx + eax]
jmp 0x4028ee
mov ecx, sym._fallback__wine_dbg_get_channel_flags
mov edx, str.__wine_dbg_get_channel_flags
mov eax, 0x406094
call sym._load_func.part.0
jmp 0x4028ad
mov ecx, sym._fallback__wine_dbg_get_channel_flags
mov edx, str.__wine_dbg_get_channel_flags
mov eax, 0x406094
call sym._load_func.part.0
jmp 0x4029fa
mov ecx, sym._fallback__wine_dbg_get_channel_flags
mov edx, str.__wine_dbg_get_channel_flags
mov eax, 0x406094
call sym._load_func.part.0
jmp 0x4029ae
mov eax, 0xffffffff
jmp 0x402955
Function at 0x402c10
Capabilities:
Get process heap flags
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xc
mov dword [esp], 1
call sym.__configure_wide_argv
call sym.__initialize_wide_environment
call sym.___p___argc
mov esi, dword [eax]
call sym.___p___wargv
mov edi, dword [eax]
call sym.__get_initial_wide_environment
mov ebx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete al
movzx eax, al
add eax, 1
mov dword [esp], eax
call sym.__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call sym._wmain
mov dword [esp], eax
call sym._exit
nop
nop
nop
Function at 0x433002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40de38
nop
mov ecx, 0x73150a93
nop
nop
nop
test eax, eax
nop
nop
je 0x43304e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x433024
nop
mov eax, section..data
nop
nop
mov ebx, 0x4304d8
mov ecx, 0x63677924
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x433084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x2e013ece
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x10
mov eax, 0x2e03021f
call fcn.2e00153c
mov edi, ecx
mov dword [ebp - 0x18], edi
xor ebx, ebx
mov dword [edi + 0x14], 0xf
mov dword [edi + 0x10], ebx
mov byte [edi], bl
mov dword [ebp - 4], ebx
call fcn.2e014c10
test ax, ax
je 0x2e013f76
lea eax, [ebp - 0x10]
push eax
push str.softwaremicrosoftwindows_shell_associationsurlassociationshttpuserchoice
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x2e013f76
lea eax, [ebp - 0x14]
push eax
push ebx
push ebx
push ebx
push str.progid
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x2e013f6d
mov eax, dword [ebp - 0x14]
inc eax
push eax
call fcn.2e01f177
mov esi, eax
pop ecx
mov dword [ebp - 0x1c], esi
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 1
push eax
push esi
push ebx
push ebx
push str.progid
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x2e013f60
push esi
mov ecx, edi
call fcn.2e010c49
push 1
push esi
mov byte [ebp - 4], bl
call fcn.2e01f177
pop ecx
pop ecx
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
call fcn.2e001586
ret

Function at 0x2e0149fe
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x28
mov eax, 0x2e030292
call fcn.2e02e16c
mov esi, dword [ebp + 8]
xor eax, eax
mov bl, al
mov edi, dword [ebp + 0xc]
cmp dword [ecx + 0x10], eax
jbe 0x2e014b02
push ecx
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
call fcn.2e0148ed
and dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
push esi
call fcn.2e010b76
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x30]
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push ecx
push eax
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x2e014ac0
lea eax, [ebp - 0x2c]
push eax
push 0
push 0x2e032941
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
test eax, eax
jne 0x2e014ab7
mov eax, dword [ebp - 0x2c]
inc eax
push eax
call fcn.2e01f177
mov esi, eax
pop ecx
mov dword [ebp - 0x34], esi
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 1
push eax
push esi
push 0
push 0
push 0x2e032941
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x2e014aa9
push esi
mov ecx, edi
call fcn.2e010c49
mov bl, 1
push 1
push esi
mov byte [ebp - 4], 0
call fcn.2e01f177
pop ecx
pop ecx
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x2e014b02
mov ecx, dword [ebp - 0x28]
inc eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x34], ecx
mov dword [ebp - 4], 2
cmp eax, 0x1000
jb 0x2e014af9
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.2e01f177
mov eax, dword [ebp - 0x2c]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x34]
push eax
push ecx
call fcn.2e01f177
pop ecx
pop ecx
mov al, bl
call fcn.2e02e14a
ret 8
Function at 0x2e014b3c
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xc
mov eax, 0x2e0302bf
call fcn.2e00153c
lea eax, [ebp - 0x10]
xor ebx, ebx
push eax
push dword [ebp + 8]
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x2e014b76
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x2e014bdc
lea eax, [ebp - 0x14]
mov edi, 0x2e032941
push eax
push ebx
push edi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
test eax, eax
jne 0x2e014bd3
mov eax, dword [ebp - 0x14]
test eax, eax
js 0x2e014bd3
inc eax
push eax
call fcn.2e01f177
mov esi, eax
pop ecx
mov dword [ebp - 0x18], esi
lea eax, [ebp - 0x14]
mov dword [ebp - 4], ebx
push eax
push esi
push ebx
push ebx
push edi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x2e014bc5
mov ecx, dword [ebp + 0xc]
push esi
call fcn.2e010c49
mov bl, 1
or dword [ebp - 4], 0xffffffff
push 1
push esi
call fcn.2e01f177
pop ecx
pop ecx
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
call fcn.2e001586
ret 8
Function at 0x2e01e341
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x30
mov eax, 0x2e030586
call fcn.2e02e16c
lea eax, [ebp - 0x2c]
xor ebx, ebx
push eax
push str.softwaremicrosoftwindows_shell_associationsurlassociationshttpuserchoice
push 0x80000001
mov edi, ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x2e01e45f
lea eax, [ebp - 0x30]
push eax
push ebx
push ebx
push ebx
push str.progid
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x2e01e456
mov eax, dword [ebp - 0x30]
inc eax
push eax
call fcn.2e01f177
mov esi, eax
pop ecx
mov dword [ebp - 0x3c], esi
lea eax, [ebp - 0x30]
mov dword [ebp - 4], ebx
push eax
push esi
push ebx
push ebx
push str.progid
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
xor ecx, ecx
inc ecx
test eax, eax
jne 0x2e01e449
push esi
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], bl
call fcn.2e010c49
push str.IE.HTTP
lea ecx, [ebp - 0x28]
call fcn.2e01f177
test al, al
jne 0x2e01e3fc
push ebx
push str.AppX
lea ecx, [ebp - 0x28]
call fcn.2e01f177
push 1
test eax, eax
pop edx
cmove edi, edx
jmp 0x2e01e3ff
xor edx, edx
inc edx
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x2e01e439
mov ecx, dword [ebp - 0x28]
inc eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x38], ecx
mov byte [ebp - 4], dl
cmp eax, 0x1000
jb 0x2e01e430
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x38]
push eax
call fcn.2e01f177
mov eax, dword [ebp - 0x34]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x38]
push eax
push ecx
call fcn.2e01f177
pop ecx
pop ecx
xor ecx, ecx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], 0xf
inc ecx
mov byte [ebp - 0x28], bl
or dword [ebp - 4], 0xffffffff
push ecx
push esi
call fcn.2e01f177
pop ecx
pop ecx
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ax, di
call fcn.2e02e14a
ret
Function at 0x2e01f177
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
pushal
call 0x2e01f186
pop dword [ebp - 8]
mov eax, 0x60d082dd
sub eax, 0x32ce9157
sub dword [ebp - 8], eax
mov dword [ebp - 0x18], 0x56c60381
sub dword [ebp - 0x18], 0x873be36
mov dword [ebp - 0x14], 0x74916852
add dword [ebp - 0x14], 0xbda1e3f3
mov dword [ebp - 0x10], 0x2003a88
sub dword [ebp - 0x10], 0xb5b3f65a
mov dword [ebp - 0xc], 0x6a9c6134
sub dword [ebp - 0xc], 0x6a9c6134
lea eax, [ebp - 0x18]
push eax
mov eax, 0x472f29e
add eax, 0x29902e2a
add eax, dword [ebp - 8]
call dword [eax]
mov dword [ebp - 0x18], 0x7dc6a80a
sub dword [ebp - 0x18], 0x9543eb4
mov dword [ebp - 0x14], 0x405eff24
sub dword [ebp - 0x14], 0xfef29daf
mov dword [ebp - 0x10], 0x22987aca
add dword [ebp - 0x10], 0x40d6f1a2
mov dword [ebp - 0xc], 0xb5ffd5dd
add dword [ebp - 0xc], 0x4a002a23
lea ebx, [ebp - 0x18]
push ebx
push eax
mov eax, 0x988963ca
sub eax, 0x6a86430e
add eax, dword [ebp - 8]
call dword [eax]
push 0x40
push 0x1000
push 0x408bf
push 0
call eax
mov ecx, 0x4644
xor esi, esi
add esi, eax
mov edx, 0x56f43f46
sub edx, 0x28eed146
add edx, dword [ebp - 8]
mov edi, 0xe61e29d5
add edi, 0xccf6f5f5
sub dword [ebp - 4], 0x20e70f09
mov ebx, dword [edx]
xor ebx, edi
add dword [ebp - 4], edi
mov dword [esi], ebx
add dword [ebp - 4], 0x3b45489e
add esi, 4
add edx, 0x5670cafb
sub edx, 0x5670caf7
loop 0x2e01f2a4
add eax, 0x10be3
xor ebx, ebx
add ebx, eax
add eax, 0x9422a0f0
add eax, 0x6bdd5f15
mov ecx, 0x2e000000
add ecx, dword [ebp - 8]
call ebx
leave
ret
Function at 0x10072e0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x43c
mov eax, dword [0x1013050]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push dword [0x1013020]
mov dword [ebp - 0x438], eax
push eax
mov dword [ebp - 0x434], ecx
call dword [sym.imp.MSVCR100.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x10074e9
mov esi, dword [sym.imp.MSVCR100.dll__wgetenv]
push 0x1005b58
call esi
push 0x1005b80
mov edi, eax
call esi
add esp, 8
test edi, edi
jne 0x1007358
test eax, eax
je 0x10074e9
mov edi, dword [0x101302c]
test edi, edi
je 0x10074e9
xor eax, eax
mov word [ebp - 0x204], ax
mov eax, dword [ebx + 0x24]
xor esi, esi
test eax, eax
je 0x1007390
cmp word [eax], si
je 0x1007390
push esi
push esi
push 0xff
lea ecx, [ebp - 0x204]
push ecx
push esi
push esi
push esi
push esi
push eax
call dword [sym.imp.MSVCR100.dll__wsplitpath_s]
add esp, 0x24
mov esi, 1
mov ebx, dword [ebx + 0x3c]
lea eax, [ebp - 0x43c]
push eax
call dword [sym.imp.MSVCR100.dll__time64]
lea eax, [ebp - 0x43c]
push eax
lea eax, [ebp - 0x430]
push eax
call dword [sym.imp.MSVCR100.dll__gmtime64_s]
add esp, 0xc
test eax, eax
je 0x10073e7
lea eax, [ebp - 0x204]
test esi, esi
jne 0x10073ca
mov eax, dword [0x1013030]
push ebx
push eax
push 0x1005b90
lea eax, [ebp - 0x40c]
push 0x104
push eax
call fcn.01007050
add esp, 0x14
jmp 0x1007432
lea ecx, [ebp - 0x204]
test esi, esi
jne 0x10073f7
mov ecx, dword [0x1013030]
push dword [ebp - 0x428]
mov eax, dword [ebp - 0x420]
push dword [ebp - 0x424]
inc eax
push eax
mov eax, dword [ebp - 0x41c]
add eax, 0x76c
push eax
push ebx
push ecx
push 0x1005ba8
lea eax, [ebp - 0x40c]
push 0x104
push eax
call fcn.01007050
add esp, 0x24
test eax, eax
jns 0x100745f
push 0x1005bf0
push 1
push 0x10130b0
call fcn.01007a00
add esp, 0xc
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0100f899
mov esp, ebp
pop ebp
ret 0xc
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x100746f
test al, 0x10
jne 0x10074ad
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x10074ad
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push 0x1005c38
push 1
push 0x10130b0
call fcn.01007a00
add esp, 0x14
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0100f899
mov esp, ebp
pop ebp
ret 0xc
push dword [0x101301c]
lea eax, [ebp - 0x40c]
push eax
push edi
push 0
push 0x104
push dword [ebp - 0x434]
call dword [sym.imp.MSVCR100.dll__wmakepath_s]
add esp, 0x18
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0100f899
mov esp, ebp
pop ebp
ret 0xc
push dword [ebp - 0x434]
push dword [ebp - 0x438]
push dword [ebx + 0x14]
call fcn.01007520
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0100f899
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10077a0
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x1011800
push 0x100f9c0
mov eax, dword fs:[0]
push eax
sub esp, 0x268
mov eax, dword [0x1013050]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov dword [ebp - 0x278], edi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x270], 0
mov dword [ebp - 0x274], 0xffffffff
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x26c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
mov dword [ebp - 0x274], ebx
cmp ebx, 0xffffffff
je 0x100786a
mov ecx, 0x94
lea esi, [ebp - 0x26c]
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x26c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x1007852
mov edi, dword [ebp - 0x278]
push edi
lea eax, [ebp - 0x26c]
push eax
call fcn.010078c0
test eax, eax
jle 0x1007827
jmp 0x100781a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
jne 0x100786a
mov esi, 1
mov dword [ebp - 0x270], esi
jmp 0x1007870
mov esi, dword [ebp - 0x270]
mov dword [ebp - 4], 0xfffffffe
call fcn.010078a8
mov eax, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.0100f899
mov esp, ebp
pop ebp
ret 8

Function at 0x1007b80
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push edi
mov edi, ecx
cmp dword [edi + 0x4414], 0
je 0x1007c07
cmp dword [edi + 0x410], 0
jne 0x1007ba4
call fcn.01007c20
test eax, eax
je 0x1007c07
push esi
push 2
push 0
push 0
push dword [edi + 0x410]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [edi + 0x4414]
add eax, eax
push eax
lea esi, [edi + 0x414]
push esi
push dword [edi + 0x410]
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [edi + 0x410]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push 0x4000
push 0
push esi
mov dword [edi + 0x4414], 0
call sub.MSVCR100.dll_memset
add esp, 0xc
pop esi
pop edi
mov esp, ebp
pop ebp
ret