joyce8/EMBER2024-capa huggingface dataset:
Function at 0x410f88
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 4], 0
mov eax, ecx
push ebx
push esi
lea ecx, [ebp - 4]
mov dword [ebp - 8], eax
push ecx
push 0x2001f
push 0
mov ebx, edx
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, 2
jne 0x410fb7
xor esi, esi
inc esi
jmp 0x410ffc
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x410ffc
mov ecx, dword [ebp - 4]
call fcn.00410dd0
mov esi, eax
test esi, esi
js 0x410ffc
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
and dword [ebp - 4], 0
push ebx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
cmp dword [ebp - 4], 0
je 0x41100b
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4114d3
Capabilities:
Terminate process

Disassembly:
push 0x14
push 0x42c1e8
call fcn.00411be0
push 1
call fcn.004116c9
pop ecx
test al, al
jne 0x41138a
push 7
call fcn.004119e6
xor bl, bl
mov byte [ebp - 0x19], bl
and dword [ebp - 4], 0
call fcn.00411694
mov byte [ebp - 0x24], al
mov eax, dword [0x42eb5c]
xor ecx, ecx
inc ecx
cmp eax, ecx
je 0x411383
test eax, eax
jne 0x4113f4
mov dword [0x42eb5c], ecx
push 0x4252bc
push 0x4252a0
call fcn.00418290
pop ecx
pop ecx
test eax, eax
je 0x4113d7
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x4114cd
push 0x42529c
push 0x425294
call fcn.00418234
pop ecx
pop ecx
mov dword [0x42eb5c], 2
jmp 0x4113f9
mov bl, cl
mov byte [ebp - 0x19], bl
push dword [ebp - 0x24]
call fcn.00411836
pop ecx
call fcn.004119da
mov esi, eax
xor edi, edi
cmp dword [esi], edi
je 0x411429
push esi
call fcn.004117ac
pop ecx
test al, al
je 0x411429
push edi
push 2
push edi
mov esi, dword [esi]
mov ecx, esi
call fcn.00411bda
call esi
call fcn.004119e0
mov esi, eax
cmp dword [esi], edi
je 0x411447
push esi
call fcn.004117ac
pop ecx
test al, al
je 0x411447
push dword [esi]
call fcn.00418552
pop ecx
call fcn.00411afc
movzx eax, ax
push eax
call fcn.004181e1
push eax
push edi
push 0x400000
call main
mov esi, eax
call fcn.00418461
test al, al
jne 0x411472
push esi
call fcn.0041858a
test bl, bl
jne 0x41147b
call fcn.0041852d
push edi
push 1
call fcn.00411853
pop ecx
pop ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
jmp 0x4114cd
call fcn.00411c25
ret
call fcn.0041191a
jmp 0x41136b

Function at 0x413f83
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
push esi
push str.FlsAlloc
push 0x425454
push str.FlsAlloc
push 0
call fcn.00413f03
mov esi, eax
add esp, 0x10
test esi, esi
je 0x413fb5
push dword [ebp + 8]
mov ecx, esi
call fcn.00411bda
call esi
pop esi
pop ebp
ret
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsAlloc]
Function at 0x413ff7
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
push str.FlsGetValue
push 0x425478
push str.FlsGetValue
push 2
call fcn.00413f03
add esp, 0x10
mov esi, eax
push dword [ebp + 8]
test esi, esi
je 0x414028
mov ecx, esi
call fcn.00411bda
call esi
jmp 0x41402e
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
pop esi
pop ebp
ret

Function at 0x414031
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
push str.FlsSetValue
push 0x42548c
push str.FlsSetValue
push 3
call fcn.00413f03
add esp, 0x10
mov esi, eax
push dword [ebp + 0xc]
push dword [ebp + 8]
test esi, esi
je 0x414065
mov ecx, esi
call fcn.00411bda
call esi
jmp 0x41406b
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop esi
pop ebp
ret
Function at 0x402aa0
Capabilities:
Accept command line arguments

Disassembly:
push 2
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call fcn.004029e0
add esp, 4
call dword [sym.imp.ole32.dll_CoUninitialize]
xor eax, eax
ret 0x10

Function at 0x402d76
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x406018]
jne 0x402d80
repz ret
jmp fcn.004031ad
Function at 0x3000e693
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x30004298]
jne 0x3000f0fb
ret
push ebp
mov ebp, esp
sub esp, 0x328
mov dword [0x300117b8], eax
mov dword [0x300117b4], ecx
mov dword [0x300117b0], edx
mov dword [0x300117ac], ebx
mov dword [0x300117a8], esi
mov dword [0x300117a4], edi
mov word [0x300117d0], ss
mov word [0x300117c4], cs
mov word [0x300117a0], ds
mov word [0x3001179c], es
mov word [0x30011798], fs
mov word [0x30011794], gs
pushfd
pop dword [0x300117c8]
mov eax, dword [ebp]
mov dword [0x300117bc], eax
mov eax, dword [ebp + 4]
mov dword [0x300117c0], eax
lea eax, [ebp + 8]
mov dword [0x300117cc], eax
mov eax, dword [ebp - 0x320]
mov dword [0x30011708], 0x10001
mov eax, dword [0x300117c0]
mov dword [0x300116bc], eax
mov dword [0x300116b0], 0xc0000409
mov dword [0x300116b4], 1
mov eax, dword [0x30004298]
mov dword [ebp - 0x328], eax
mov eax, dword [0x30011344]
mov dword [ebp - 0x324], eax
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x30011700], eax
push 1
call sub.MSVCR80.dll__crt_debugger_hook
pop ecx
push 0
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
push 0x300045f8
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x30011700], 0
jne 0x3000f1eb
push 1
call sub.MSVCR80.dll__crt_debugger_hook
pop ecx
push 0xc0000409
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
leave
ret

Function at 0x3000e6a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push 0x300042e4
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x3000e6f8
mov eax, dword [ebp + 0xc]
push edi
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
push 0
push 0
push 0x300042dc
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
pop edi
jne 0x3000e6f8
mov al, 1
jmp 0x3000e6fa
xor al, al
leave
ret 8
Function at 0x4011d2
Capabilities:
Accept command line arguments
Create process on windows
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2b8
mov eax, dword [0x4360e4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push str.PopMgr
lea ecx, [ebp - 0x27c]
call fcn.0040322b
lea eax, [ebp - 0x260]
mov dword [ebp - method.CCfgOPBaseT_int_.virtual_0], 0x42caec
push eax
xorps xmm0, xmm0
lea ecx, [ebp - 0x27c]
mov ebx, str.crashesTime
movlpd qword [ebp - 0x260], xmm0
push ebx
call fcn.00402065
test eax, eax
jne 0x401234
xorps xmm0, xmm0
movlpd qword [ebp - 0x260], xmm0
mov eax, dword [ebp - 0x260]
lea edi, [ebp - 0x258]
mov dword [ebp - 0x268], eax
xor esi, esi
mov eax, dword [ebp - 0x25c]
push 9
pop ecx
mov dword [ebp - 0x264], eax
xor eax, eax
rep stosd dword es:[edi], eax
push 9
pop ecx
lea edi, [ebp - 0x234]
rep stosd dword es:[edi], eax
push esi
call fcn.0041503d
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x268]
push eax
lea eax, [ebp - 0x234]
mov dword [ebp - 0x25c], edx
push eax
call fcn.00415309
lea eax, [ebp - 0x260]
push eax
lea eax, [ebp - 0x258]
push eax
call fcn.00415309
mov eax, dword [ebp - 0x220]
add esp, 0x14
cmp eax, dword [ebp - 0x244]
jne 0x4012bd
mov eax, dword [ebp - 0x218]
cmp eax, dword [ebp - 0x23c]
je 0x401312
lea eax, [ebp - 0x25c]
push eax
push 0x432a74
lea ecx, [ebp - 0x278]
call fcn.004020a4
mov ecx, dword [ebp - 0x25c]
xor edx, edx
test eax, eax
push esi
cmovne ecx, edx
cmp ecx, 2
jb 0x401324
call fcn.0041503d
pop ecx
push 8
mov dword [ebp - 0x268], eax
lea eax, [ebp - 0x268]
push eax
push 0xb
push esi
push ebx
push dword [ebp - 0x278]
mov dword [ebp - 0x264], edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 1
lea ecx, [ebp - 0x27c]
call fcn.00401040
jmp 0x4013b0
lea ecx, [ebp - 0x27c]
call fcn.00401040
push 0x3c
pop edi
push edi
lea eax, [ebp - 0x2b8]
push esi
push eax
call fcn.0040fff0
push 0x20a
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.0040fff0
add esp, 0x18
lea eax, [ebp - 0x210]
push 0x104
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x210]
mov dword [ebp - 0x2b8], edi
mov dword [ebp - 0x2b4], 0x40
mov dword [ebp - 0x2ac], str.open
mov dword [ebp - 0x2a8], eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov dword [ebp - 0x2a4], eax
lea eax, [ebp - 0x2b8]
push eax
mov dword [ebp - 0x29c], esi
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
xor esi, esi
inc esi
lea ecx, [ebp - 0x27c]
call fcn.004020d9
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040d86d
leave
ret
Function at 0x401897
Capabilities:
Get common file path

Disassembly:
push 8
mov eax, 0x42ae08
call fcn.0040e19f
mov edi, ecx
mov dword [ebp - 0x14], edi
call fcn.00402b49
push eax
lea ecx, [ebp - 0x10]
call fcn.0040289f
xor esi, esi
lea ecx, [ebp - 0x10]
push esi
push 0x1a
push 0x200
mov dword [ebp - 4], esi
call fcn.00402d07
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
call fcn.00402322
mov esi, dword [ebp - 0x10]
mov eax, dword [esi - 0xc]
test eax, eax
jne 0x4018f8
push 0x432b90
mov ecx, edi
call fcn.00402012
lea ecx, [esi - 0x10]
jmp 0x401948
dec eax
lea ecx, [ebp - 0x10]
push eax
call fcn.00401b43
cmp ax, 0x5c
je 0x40191e
mov esi, 0x432c3c
push esi
call fcn.00401edb
pop ecx
push eax
push esi
lea ecx, [ebp - 0x10]
call fcn.00401c68
mov esi, str.6789Zip_
push esi
call fcn.00401edb
pop ecx
push eax
push esi
lea ecx, [ebp - 0x10]
call fcn.00401c68
mov esi, dword [ebp - 0x10]
add esi, 0xfffffff0
push esi
call fcn.00402e65
pop ecx
add eax, 0x10
mov ecx, esi
mov dword [edi], eax
call fcn.00402f18
mov eax, edi
call fcn.0040e179
ret

Function at 0x4019f5
Capabilities:
Check if file exists

Disassembly:
push 8
mov eax, 0x42ae77
call fcn.0040e19f
lea ecx, [ebp - 0x14]
call fcn.00401955
and dword [ebp - 4], 0
push str.AppTest.txt
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00402ec0
mov ecx, dword [ebp - 0x14]
add esp, 0xc
lea ecx, [ecx - 0x10]
call fcn.00402f18
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ecx, dword [ebp - 0x10]
mov esi, eax
add ecx, 0xfffffff0
call fcn.00402f18
mov eax, esi
call fcn.0040e179
ret

Function at 0x402243
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x4360e4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x234], eax
push edi
test esi, esi
je 0x40230f
push 0x228
xor edi, edi
lea eax, [ebp - 0x22c]
push edi
push eax
call fcn.0040fff0
add esp, 0xc
push edi
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40230f
lea eax, [ebp - 0x230]
mov dword [ebp - 0x230], 0x22c
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
jmp 0x4022cf
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.00411d86
pop ecx
pop ecx
test eax, eax
je 0x4022d5
lea eax, [ebp - 0x230]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x4022ae
jmp 0x402304
push dword [ebp - 0x228]
push edi
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push dword [ebp - 0x234]
mov esi, eax
push 0xf01ff
push esi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
jmp 0x402311
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040d86d
leave
ret 8
Function at 0x402353
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push esi
mov esi, ecx
test edx, edx
jne 0x402365
push 0xd
pop eax
jmp 0x402397
mov ecx, edx
push ebx
push edi
xor ebx, ebx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x40236e
sub ecx, edi
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push dword [ebp + 0x10]
push ebx
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop ebx
pop esi
pop ebp
ret 0xc
Function at 0x40375a
Capabilities:
Check if file exists

Disassembly:
push 0x218
mov eax, 0x42b0fa
call fcn.0040e1d3
mov ebx, ecx
mov dword [ebp - 0x220], ebx
mov dword [ebp - 0x224], ebx
call fcn.00405e74
and dword [ebp - 4], 0
mov dword [ebx], vtable.CServerConnect.0
call fcn.00402b49
push eax
lea ecx, [ebx + 0x10]
call fcn.0040289f
mov byte [ebp - 4], 1
call fcn.00402b49
push eax
lea ecx, [ebx + 0x14]
call fcn.0040289f
mov byte [ebp - 4], 2
call fcn.00402b49
push eax
lea ecx, [ebx + 0x18]
call fcn.0040289f
mov byte [ebp - 4], 3
call fcn.00402b49
push eax
lea ecx, [ebx + 0x1c]
call fcn.0040289f
push 0
mov byte [ebp - 4], 4
call fcn.0041503d
push eax
call fcn.004156c4
mov esi, 0x100
lea eax, [ebp - 0x110]
push esi
push 0
push eax
call fcn.0040fff0
lea eax, [ebp - 0x110]
push esi
push eax
call fcn.00407e19
add esp, 0x1c
lea eax, [ebp - 0x210]
mov dword [ebp - 0x214], eax
lea ecx, [ebp - 0x214]
lea eax, [ebp - 0x110]
push 3
push eax
call fcn.00405058
push dword [ebp - 0x214]
mov byte [ebp - 4], 5
call fcn.00401edb
pop ecx
push eax
push dword [ebp - 0x214]
lea ecx, [ebx + 0x10]
call fcn.00402771
lea eax, [ebp - 0x210]
mov byte [ebp - 4], 4
cmp dword [ebp - 0x214], eax
je 0x40385c
push dword [ebp - 0x214]
call fcn.00411a15
pop ecx
xor eax, eax
lea ecx, [ebx + 0x14]
inc eax
xor esi, esi
push 0x16
push str.https:__soft.6789.net_
mov dword [ebx + 0x34], eax
mov dword [ebx + 0x30], eax
mov dword [ebx + 0x38], esi
mov dword [ebx + 0x3c], esi
call fcn.00402771
push 0x1b
push str.https:__read.soft.6789.net_
lea ecx, [ebx + 0x18]
call fcn.00402771
lea eax, [ebp - 0x21c]
push esi
push eax
call fcn.004047cb
push str.AppTest.txt
push eax
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 6
push eax
call fcn.00402ec0
mov ecx, dword [ebp - 0x21c]
add esp, 0x14
mov byte [ebp - 4], 4
lea ecx, [ecx - 0x10]
call fcn.00402f18
push dword [ebp - 0x218]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ecx, dword [ebp - 0x218]
mov esi, eax
lea ecx, [ecx - 0x10]
call fcn.00402f18
test esi, esi
je 0x403901
push 0x15
push str.http:__soft.6789.net_
lea ecx, [ebx + 0x14]
call fcn.00402771
push 0x1a
push str.http:__read.soft.6789.net_
lea ecx, [ebx + 0x18]
call fcn.00402771
xor edi, edi
lea esi, [ebx + 0x20]
push edi
push edi
push edi
push esi
mov dword [ebx + 0x28], edi
mov dword [ebx + 0x2c], edi
call fcn.00404c55
add esp, 0x10
test eax, eax
jne 0x40391e
mov dword [esi], edi
mov dword [ebx + 0x40], edi
mov eax, ebx
mov dword [ebx + 0x44], edi
call fcn.0040e18e
ret
Function at 0x4045a6
Capabilities:
Check if file exists
Create directory

Disassembly:
push 0xc
mov eax, 0x42b312
call fcn.0040e19f
push dword [ebp + 8]
lea ecx, [ebp - 0x10]
call fcn.00402012
push dword [ebp - 0x10]
and dword [ebp - 4], 0
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40463c
push eax
jmp 0x40462b
call fcn.00402b49
push eax
lea ecx, [ebp - 0x14]
call fcn.0040289f
inc edi
mov byte [ebp - 4], 1
push edi
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x10]
call fcn.00401d95
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.004027e5
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
call fcn.00402f18
mov esi, dword [ebp - 0x14]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40461e
push esi
call fcn.004153c4
pop ecx
lea ecx, [esi - 0x10]
mov byte [ebp - 4], 0
call fcn.00402f18
push edi
push 0x5c
lea ecx, [ebp - 0x10]
call fcn.00401863
mov edi, eax
cmp edi, 0xffffffff
jne 0x4045d1
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.00402f18
call fcn.0040e179
ret
Function at 0x404c55
Capabilities:
Check os version
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x158
mov eax, dword [0x4360e4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0x14]
push edi
mov dword [ebp - 0x12c], eax
mov eax, dword [ebp + 0xc]
push str.RtlGetVersion
mov dword [ebp - 0x130], eax
mov eax, dword [ebp + 0x10]
push str.ntdll.dll
mov dword [ebp - 0x134], eax
mov dword [ebp - 0x128], esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 9
mov dword [ebp - 0x124], eax
lea edi, [ebp - 0x158]
pop eax
mov ecx, eax
xor ebx, ebx
xor eax, eax
push 0x118
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x11c]
push ebx
push eax
call fcn.0040fff0
mov eax, dword [ebp - 0x124]
add esp, 0xc
mov dword [ebp - 0x120], 0x11c
test eax, eax
je 0x404cf3
lea ecx, [ebp - 0x120]
push ecx
call eax
test eax, eax
jns 0x404d08
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x404e95
test esi, esi
je 0x404d1d
mov edi, dword [ebp - 0x128]
lea esi, [ebp - 0x120]
push 0x47
pop ecx
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x158]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
movzx esi, word [ebp - 0xc]
xor ecx, ecx
cmp dword [ebp - 0x140], 0x21d8
push 2
sete cl
pop edx
mov dword [ebp - 0x124], ecx
cmp dword [ebp - 0x110], edx
jne 0x404e3b
mov eax, dword [ebp - 0x11c]
cmp eax, 0xa
jne 0x404d7a
cmp dword [ebp - 0x118], ebx
jne 0x404e6e
xor ebx, ebx
cmp byte [ebp - 6], 1
setne bl
add ebx, 0x11
jmp 0x404e6e
cmp eax, 6
jne 0x404de0
mov eax, dword [ebp - 0x118]
cmp eax, 3
jne 0x404d9b
xor ebx, ebx
cmp byte [ebp - 6], 1
setne bl
add ebx, 0xf
jmp 0x404e6e
cmp eax, edx
jne 0x404db0
xor ebx, ebx
cmp byte [ebp - 6], 1
setne bl
add ebx, 0xd
jmp 0x404e6e
cmp eax, 1
jne 0x404dc5
xor ebx, ebx
cmp byte [ebp - 6], al
setne bl
add ebx, 0xb
jmp 0x404e6e
test eax, eax
jne 0x404e6e
xor ebx, ebx
cmp byte [ebp - 6], 1
push 9
setne bl
pop eax
add ebx, eax
jmp 0x404e6e
cmp eax, 5
jne 0x404e31
mov eax, dword [ebp - 0x118]
cmp eax, edx
jne 0x404e20
push 0x59
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x404dff
push 8
jmp 0x404e17
cmp byte [ebp - 6], 1
jne 0x404e15
push 9
pop eax
cmp word [ebp - 0x158], ax
jne 0x404e15
push 6
jmp 0x404e17
push 7
mov ecx, dword [ebp - 0x124]
pop ebx
jmp 0x404e6e
cmp eax, 1
jne 0x404e29
push 6
jmp 0x404e38
test eax, eax
jne 0x404e6e
push 5
jmp 0x404e38
cmp eax, 4
ja 0x404e6e
push 4
pop ebx
jmp 0x404e6e
cmp dword [ebp - 0x110], 1
jne 0x404e6e
cmp dword [ebp - 0x11c], 4
jne 0x404e6e
mov eax, dword [ebp - 0x118]
test eax, eax
jne 0x404e5c
xor ebx, ebx
inc ebx
jmp 0x404e6e
cmp eax, 0xa
jne 0x404e65
mov ebx, edx
jmp 0x404e6e
push 3
cmp eax, 0x5a
pop edx
cmove ebx, edx
mov eax, dword [ebp - 0x12c]
test eax, eax
je 0x404e7a
mov dword [eax], ebx
mov eax, dword [ebp - 0x130]
test eax, eax
je 0x404e86
mov dword [eax], esi
mov eax, dword [ebp - 0x134]
test eax, eax
je 0x404e92
mov dword [eax], ecx
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040d86d
leave
ret
Function at 0x404f6d
Capabilities:
Get common file path

Disassembly:
push 4
mov eax, 0x42b4c3
call fcn.0040e19f
call fcn.00402b49
push eax
lea ecx, [ebp - 0x10]
call fcn.0040289f
xor esi, esi
lea ecx, [ebp - 0x10]
push esi
push 0x1a
push 0x200
mov dword [ebp - 4], esi
call fcn.00402d07
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
call fcn.00402322
mov esi, dword [ebp - 0x10]
mov eax, dword [esi - 0xc]
test eax, eax
jne 0x404fd2
mov ecx, dword [ebp + 8]
push 0x432b90
call fcn.00402012
lea ecx, [esi - 0x10]
call fcn.00402f18
mov eax, dword [ebp + 8]
jmp 0x40502b
dec eax
lea ecx, [ebp - 0x10]
push eax
call fcn.00401b43
cmp ax, 0x5c
je 0x404ff1
push 1
push 0x432c3c
lea ecx, [ebp - 0x10]
call fcn.00401c68
push 8
push str.6789Zip_
lea ecx, [ebp - 0x10]
call fcn.00401c68
cmp dword [ebp + 0xc], 0
mov esi, dword [ebp - 0x10]
je 0x405010
push esi
call fcn.004045a6
pop ecx
lea edi, [esi - 0x10]
push edi
call fcn.00402e65
mov esi, dword [ebp + 8]
add eax, 0x10
pop ecx
mov ecx, edi
mov dword [esi], eax
call fcn.00402f18
mov eax, esi
call fcn.0040e179
ret

Function at 0x406171
Capabilities:
Check if file exists
Delete file

Disassembly:
push 8
mov eax, 0x42b635
call fcn.0040e19f
mov edi, ecx
push dword [ebp + 0x10]
mov eax, dword [edi]
push dword [ebp + 8]
call dword [eax + 4]
test eax, eax
je 0x406275
call fcn.00402b49
push eax
lea ecx, [ebp + 0x10]
call fcn.0040289f
xor eax, eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov ebx, dword [ebp + 0xc]
push ebx
mov byte [ebp - 4], 1
call fcn.00401edb
pop ecx
push eax
push ebx
lea ecx, [ebp + 0x10]
call fcn.00402771
push 0x5c
push dword [ebp + 0x10]
call fcn.0040f175
pop ecx
pop ecx
test eax, eax
jne 0x4061d8
or eax, 0xffffffff
jmp 0x4061dd
sub eax, dword [ebp + 0x10]
sar eax, 1
inc eax
lea ecx, [ebp + 0x10]
push eax
lea eax, [ebp + 8]
push eax
call fcn.00401d95
push eax
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 2
call fcn.004027e5
mov ecx, dword [ebp + 8]
mov byte [ebp - 4], 1
lea ecx, [ecx - 0x10]
call fcn.00402f18
mov esi, dword [ebp + 0x10]
push esi
call fcn.004045a6
pop ecx
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x406223
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor eax, eax
lea ecx, [ebp - 0x14]
push eax
push eax
push 0x80
push 2
push eax
push 0xc0000000
push ebx
call fcn.00405f19
test eax, eax
js 0x40625a
push 0
push dword [edi + 8]
lea ecx, [ebp - 0x14]
push dword [edi + 4]
call fcn.00406c1d
test eax, eax
js 0x40625a
xor ebx, ebx
inc ebx
jmp 0x40625c
xor ebx, ebx
cmp dword [ebp - 0x14], 0
je 0x40626b
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esi - 0x10]
call fcn.00402f18
mov eax, ebx
call fcn.0040e179
ret 0xc
Function at 0x4062f1
Capabilities:
Check if file exists

Disassembly:
push 8
mov eax, 0x42b658
call fcn.0040e19f
lea eax, [ebp - 0x14]
push 0
push eax
call fcn.004047cb
and dword [ebp - 4], 0
push str.AppTest.txt
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00402ec0
mov ecx, dword [ebp - 0x14]
add esp, 0x14
lea ecx, [ecx - 0x10]
call fcn.00402f18
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ecx, dword [ebp - 0x10]
mov esi, eax
add ecx, 0xfffffff0
call fcn.00402f18
mov eax, esi
call fcn.0040e179
ret