joyce8/EMBER2024-capa huggingface dataset:
Function at 0x444b7b
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x473040]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x444bc6
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.00445132
test al, al
jne 0x444bc0
sub edx, 2
cmp edx, edi
jne 0x444ba6
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x444be8
lea eax, [edi + 2]
cmp edx, eax
je 0x444be8
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.00444774
add esp, 0x10
jmp 0x444ce2
push esi
lea ecx, [ebp - 0x255]
call fcn.00445132
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x444c2b
push dword [ebp - 0x25c]
jmp 0x444bd8
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x444c68
cmp word [ebp - 0x226], 0
je 0x444c89
cmp word [ebp - 0x226], ax
jne 0x444c68
cmp word [ebp - 0x224], 0
je 0x444c89
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.00444774
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x444cd5
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x444c42
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x444cbd
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x444ce2
push 0x44405a
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.004036b1
add esp, 0x10
jmp 0x444cb2
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040222a
leave
ret

Function at 0x44b695
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.00402ca7
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x44b704
cmp esi, dword [ebp - 4]
je 0x44b6ff
cmp dword [ebp + 0xc], 0
je 0x44b6ff
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x44b6dc
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.0044b0bd
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x44b706
xor eax, eax
inc eax
jmp 0x44b706
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x457dec
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x475118]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x457e2c
cmp byte [ebx], 0xa
jne 0x457e2c
or byte [edi + eax + 0x28], 4
jmp 0x457e31
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x457f30
mov dl, byte [eax]
cmp dl, 0x1a
je 0x457f13
inc eax
cmp dl, 0xd
je 0x457e5d
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x457e83
cmp eax, ecx
jae 0x457e91
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x457e45
jmp 0x457f30
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x457f0e
cmp dword [ebp - 0x10], 0
je 0x457f0e
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x475118]
test byte [eax + edi + 0x28], 0x48
je 0x457ee8
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x457ed3
mov byte [esi], dl
jmp 0x457ee4
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x475118]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x457f30
cmp byte [ebp - 1], 0xa
jne 0x457ef7
cmp esi, ebx
jne 0x457ef7
mov byte [esi], 0xa
jmp 0x457f2f
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0040150a
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x457f30
mov byte [esi], 0xd
jmp 0x457f2f
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x475118]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x457f2d
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x457f30
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x457f8c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x475118]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x457fd2
cmp word [ebx], dx
jne 0x457fd2
or byte [eax + edi + 0x28], 4
jmp 0x457fd7
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x45813a
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x45811a
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x458018
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x45804e
cmp eax, edx
jae 0x45805c
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
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 - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x457ff3
jmp 0x45813a
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x458115
cmp dword [ebp - 0x18], 0
je 0x458115
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x475118]
test byte [eax + edi + 0x28], 0x48
je 0x4580eb
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x4580af
mov word [esi], cx
jmp 0x4580e6
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x475118]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x475118]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x475118]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x45813a
pop eax
cmp word [ebp - 4], ax
jne 0x4580fb
cmp esi, ebx
jne 0x4580fb
mov word [esi], ax
jmp 0x458137
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0040150a
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x45813a
push 0xd
pop eax
jmp 0x4580f6
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x475118]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x458134
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x45813a
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x401080
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [esp], str.Usage:_eject___u____a____h___x:_..._n
call dbg.wine_dbg_printf
mov dword [esp], str._____a__Eject_all_the_CD_drives_we_find_n
call dbg.wine_dbg_printf
mov dword [esp], str._____h__Display_this_help_message_n
call dbg.wine_dbg_printf
mov dword [esp], str._____u__Unmount_only__dont_eject_the_CD_n
call dbg.wine_dbg_printf
mov dword [esp], str.____x:__Eject_drive_x:_n
call dbg.wine_dbg_printf
mov dword [esp], 1
call dword [sym.imp.ucrtbase.dll_exit]
nop
Function at 0x401490
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
and esp, 0xfffffff0
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 0x4014eb
cmp byte [esi + ebx - 1], 0xa
je 0x4014bf
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x4060c4], 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]
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
Function at 0x401f40
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
mov dword [esp], 1
call sym.__configure_narrow_argv
call sym.__initialize_narrow_environment
call sym.___p___argc
mov esi, dword [eax]
call sym.___p___argv
mov edi, dword [eax]
call sym.__get_initial_narrow_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 dbg.main
mov dword [esp], eax
call sym._exit
Function at 0x1000fb37
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
pushal
call 0x1000fb46
pop dword [ebp - 0x44]
mov eax, 0x408a079
sub eax, 0xf407a533
sub dword [ebp - 0x44], eax
mov dword [ebp - 0x54], 0xb2afc7d
add dword [ebp - 0x54], 0x432748ce
mov dword [ebp - 0x50], 0xb84eebad
sub dword [ebp - 0x50], 0x861b9f68
mov dword [ebp - 0x4c], 0x42df7a0
add dword [ebp - 0x4c], 0x481e4c8e
mov dword [ebp - 0x48], 0xf5a5b0a9
add dword [ebp - 0x48], 0xa5a4f57
lea eax, [ebp - 0x54]
push eax
mov eax, 0xa252adb6
sub eax, 0x924d1caa
add eax, dword [ebp - 0x44]
call dword [eax]
mov dword [ebp - 0x54], 0xedf66cec
sub dword [ebp - 0x54], 0x79840396
mov dword [ebp - 0x50], 0xebc049fa
add dword [ebp - 0x50], 0x55ac177b
mov dword [ebp - 0x4c], 0x50c86a45
add dword [ebp - 0x4c], 0x12a70227
mov dword [ebp - 0x48], 0xc885fa7f
sub dword [ebp - 0x48], 0xc885fa7f
lea ebx, [ebp - 0x54]
push ebx
push eax
mov eax, 0x6075c591
sub eax, 0x50703551
add eax, dword [ebp - 0x44]
call dword [eax]
push 0x40
push 0x1000
push 0x60c0d
push 0
call eax
mov ecx, 0x8a54007d
add ecx, 0x75ac5489
xor edi, edi
add edi, eax
mov ebx, 0x50d798b9
sub ebx, 0x40d104b9
add ebx, dword [ebp - 0x44]
mov edx, 0xc560be3f
add dword [ebp - 0x10], ebx
mov esi, dword [ebx]
add dword [ebp - 0x30], edx
sub esi, edx
xor dword [ebp - 0x34], edi
mov dword [edi], esi
add dword [ebp - 0xc], ebx
add edi, 0x7ad613f6
sub edi, 0x7ad613f2
add ebx, 0x3f31ce06
sub ebx, 0x3f31ce02
loop 0x1000fc64
add eax, 0x146eb
xor ebx, ebx
add ebx, eax
add eax, 0x44ec40c0
add eax, 0xbb13bf45
mov ecx, 0x4e3ec7a8
add ecx, 0xc1c13858
add ecx, dword [ebp - 0x44]
call ebx
leave
ret
Function at 0x1000105f
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x400
cmp dword [0x1004787c], 0
jne 0x10001083
push str.ASUSHWIO.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [0x1004787c], eax
jmp 0x1000108a
mov al, 1
jmp 0x100011da
cmp dword [0x1004787c], 0
jne 0x100010cc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._d:_Failed_to_load_ASUSHWIO.DLL.
lea eax, [ebp - 0x400]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 0x30
push str.ASCDEnum.DLL
lea ecx, [ebp - 0x400]
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor al, al
jmp 0x100011da
push str.ASHW_InPort
mov edx, dword [0x1004787c]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x10009070], eax
push str.ASHW_OutPort
mov eax, dword [0x1004787c]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x10009068], eax
push str.ASHW_InPortd
mov ecx, dword [0x1004787c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x10009060], eax
push str.ASHW_OutPortd
mov edx, dword [0x1004787c]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x10009064], eax
push str.ASHW_PciCfg_Read
mov eax, dword [0x1004787c]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x10009074], eax
push str.ASHW_PciCfg_Read_BYTE
mov ecx, dword [0x1004787c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x10009058], eax
push str.ASHW_NT_MapMemory
mov edx, dword [0x1004787c]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x1000906c], eax
push str.ASHW_NT_UnMapMemory
mov eax, dword [0x1004787c]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x10047878], eax
cmp dword [0x10009070], 0
je 0x100011c0
cmp dword [0x10009068], 0
je 0x100011c0
cmp dword [0x10009060], 0
je 0x100011c0
cmp dword [0x10009064], 0
je 0x100011c0
cmp dword [0x10009074], 0
je 0x100011c0
cmp dword [0x10009058], 0
je 0x100011c0
cmp dword [0x1000906c], 0
jne 0x100011d8
push 0x30
push str.ASCDEnum.DLL
push str.Failed_to_load_function_from_ASUSHWIO.DLL...
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor al, al
jmp 0x100011da
mov al, 1
mov esp, ebp
pop ebp
ret
Function at 0x100039a3
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x10008790
cmp edx, dword [eax]
je 0x100039c5
add eax, 8
inc ecx
cmp eax, 0x10008820
jl 0x100039b6
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x10008790]
jne 0x10003af3
mov eax, dword [0x1004f88c]
cmp eax, 1
je 0x10003acd
test eax, eax
jne 0x100039f6
cmp dword [0x1004f890], 1
je 0x10003acd
cmp edx, 0xfc
je 0x10003af3
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x10003a2d
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.10001df0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.10002ec0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x10003a70
lea eax, [ebp - 0x1a4]
push eax
call fcn.10002ec0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x100073d4
push edi
call fcn.10005390
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.10001df0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.10001e00
lea eax, [ebp - 0xa0]
push 0x100073b4
push eax
call fcn.10001e00
push dword [esi + 0x10008794]
lea eax, [ebp - 0xa0]
push eax
call fcn.10001e00
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.10005305
add esp, 0x2c
pop edi
jmp 0x10003af3
lea eax, [ebp + 8]
lea esi, [esi + 0x10008794]
push 0
push eax
push dword [esi]
call fcn.10002ec0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x408f70
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48466b
mov eax, dword fs:[0]
push eax
mov eax, 0x1020
call fcn.004839d0
mov eax, dword [0x4ab00c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 4], 1
cmp byte [esi + 0x60], 0
jne 0x408fb9
mov esi, 2
jmp 0x409095
cmp dword [ebp + 0x1c], 0
je 0x409090
cmp dword [ebp + 0x34], 0
je 0x409090
cmp dword [ebp + 8], 1
jl 0x409090
mov ecx, esi
call fcn.00403b40
push 0x1000
lea eax, [ebp - 0x1014]
push 0
push eax
call fcn.0046dcc0
xor eax, eax
mov dword [ebp - 0x101c], 0
add esp, 0xc
mov dword [ebp - 0x1018], 7
mov word [ebp - 0x102c], ax
mov byte [ebp - 4], 2
cmp dword [esi + 0x50], 0xa
jge 0x409020
lea esi, [eax + 0xb]
jmp 0x409095
cmp dword [ebp + 0x38], 8
lea ecx, [ebp + 0x24]
lea eax, [ebp + 0xc]
cmovae ecx, dword [ebp + 0x24]
cmp dword [ebp + 0x20], 8
push ecx
push dword [ebp + 8]
cmovae eax, dword [ebp + 0xc]
push eax
lea eax, [ebp - 0x1014]
push 0x4929b0
push eax
call fcn.0040a970
add esp, 0x14
lea eax, [ebp - 0x1014]
mov ecx, esi
push 0xf
push eax
call fcn.00404920
test al, al
je 0x409070
cmp dword [esi + 0x8c], 0
jne 0x409070
xor esi, esi
jmp 0x409095
cmp dword [ebp + 0x38], 8
lea eax, [ebp + 0x24]
cmovae eax, dword [ebp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [esi + 0x8c], 0
mov esi, 9
jne 0x409095
mov esi, 8
mov edx, dword [ebp + 0x20]
cmp edx, 8
jb 0x4090cb
mov ecx, dword [ebp + 0xc]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4090c1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409133
push edx
push ecx
call fcn.0046ba31
add esp, 8
mov edx, dword [ebp + 0x38]
xor eax, eax
mov dword [ebp + 0x1c], 0
mov dword [ebp + 0x20], 7
mov word [ebp + 0xc], ax
cmp edx, 8
jb 0x409115
mov ecx, dword [ebp + 0x24]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40910b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409138
push edx
push ecx
call fcn.0046ba31
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0046b9f0
mov esp, ebp
pop ebp
ret 0x34
call fcn.00471513
call fcn.00471513
int3
Function at 0x40c1e0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x484828
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x4ab00c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov esi, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
mov dword [ebp - 4], eax
mov eax, 0x2aaaaaab
mov ecx, dword [ebx + 4]
sub ecx, dword [ebx]
imul ecx
sar edx, 2
mov edi, edx
shr edi, 0x1f
add edi, edx
test esi, esi
je 0x40c2a1
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40c246
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x2c]
call fcn.00402430
cmp byte [ebx + 0xe], 0
je 0x40c2a1
mov ecx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x18]
movzx edx, word [ebx + 0xc]
cmp ecx, esi
jae 0x40c290
lea eax, [ecx + 1]
cmp esi, 8
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
mov word [eax + ecx*2], dx
xor edx, edx
mov word [eax + ecx*2 + 2], dx
jmp 0x40c2a1
push edx
mov byte [ebp - 0x30], 0
push dword [ebp - 0x30]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.00469f20
test edi, edi
jle 0x40c312
xor esi, esi
mov eax, dword [ebx]
add eax, esi
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x40c2b5
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.0040a760
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
push 0
cmovae eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x18]
cmp ecx, edx
jae 0x40c2f8
lea eax, [ecx + 1]
cmp edx, 8
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
mov dword [eax + ecx*2], 0x5c
jmp 0x40c30a
push 0x5c
mov byte [ebp - 0x30], 0
push dword [ebp - 0x30]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.00469f20
add esi, 0x18
sub edi, 1
jne 0x40c2a7
mov edx, dword [ebp - 0x18]
cmp edx, 8
jb 0x40c348
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40c33e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c366
push edx
push ecx
call fcn.0046ba31
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0046b9f0
mov esp, ebp
pop ebp
ret 4
call fcn.00471513
int3
Function at 0x410bb0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
mov edx, dword [esi]
test edx, edx
jne 0x410bc8
mov dword [esi + 4], 6
pop esi
pop ebp
ret 8
mov eax, dword [ebp + 0xc]
push ebx
lea ebx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x410bd0
sub eax, ebx
sar eax, 1
lea eax, [eax*2 + 2]
push eax
push dword [ebp + 0xc]
push 1
push 0
push dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop ebx
mov dword [esi + 4], eax
pop esi
pop ebp
ret 8

Function at 0x410c10
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov edx, dword [ebp + 0x20]
cmp edx, 8
mov eax, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
lea esi, [ebp + 0xc]
cmovae esi, ecx
cmp dword [edi], 0
jne 0x410c39
mov eax, 6
jmp 0x410c6d
mov ecx, esi
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x410c40
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push esi
push 1
push 0
push dword [ebp - 4]
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edx, dword [ebp + 0x20]
mov ecx, dword [ebp + 0xc]
mov dword [edi + 4], eax
pop edi
pop esi
cmp edx, 8
jb 0x410ca2
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x410c98
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x410ca8
push edx
push ecx
call fcn.0046ba31
add esp, 8
mov esp, ebp
pop ebp
ret 0x1c
call fcn.00471513
int3