joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41561d
Capabilities:
Delete file

Disassembly:
push 0x18
mov eax, 0x45ac82
call fcn.0043f22a
and dword [ebp - 4], 0
call fcn.0041d57f
push eax
lea ecx, [ebp - 0x14]
call fcn.00403246
mov byte [ebp - 4], 1
call fcn.0041d57f
push eax
lea ecx, [ebp - 0x20]
call fcn.00403246
mov byte [ebp - 4], 2
call fcn.0041d57f
push eax
lea ecx, [ebp - 0x1c]
call fcn.00403246
mov byte [ebp - 4], 3
push dword [ebp + 0x20]
lea eax, [ebp - 0x10]
push eax
lea edi, [ebp - 0x18]
lea esi, [ebp - 0x24]
call fcn.00414a8a
pop ecx
pop ecx
push 0x468384
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 4
call fcn.00403522
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.00405e4d
add esp, 0xc
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 5
call fcn.00403289
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.004010ea
mov esi, dword [ebp - 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov edi, eax
call fcn.004010ea
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.004010ea
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
call fcn.004010ea
lea ecx, [esi - 0x10]
call fcn.004010ea
lea esi, [ebp + 8]
call fcn.0040eec2
mov eax, edi
call fcn.0043f302
ret

Function at 0x4156f9
Capabilities:
Check if file exists

Disassembly:
push 0x18
mov eax, 0x45b36e
call fcn.0043f22a
and dword [ebp - 4], 0
push dword [ebp + 0xc]
push str.ExePath__:__s
call fcn.0040762c
pop ecx
pop ecx
call fcn.0041d57f
push eax
lea ecx, [ebp - 0x14]
call fcn.00403246
mov byte [ebp - 4], 1
call fcn.0041d57f
push eax
lea ecx, [ebp - 0x20]
call fcn.00403246
mov byte [ebp - 4], 2
call fcn.0041d57f
push eax
lea ecx, [ebp - 0x1c]
call fcn.00403246
mov byte [ebp - 4], 3
push dword [ebp + 0x20]
lea eax, [ebp - 0x10]
push eax
lea edi, [ebp - 0x18]
lea esi, [ebp - 0x24]
call fcn.00414a8a
pop ecx
pop ecx
push 0x468384
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 4
call fcn.00403522
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.00405e4d
add esp, 0xc
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 5
call fcn.00403289
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.004010ea
mov esi, dword [ebp - 0x14]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov edi, eax
call fcn.004010ea
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.004010ea
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
call fcn.004010ea
lea ecx, [esi - 0x10]
call fcn.004010ea
lea esi, [ebp + 8]
call fcn.0040eec2
mov eax, edi
call fcn.0043f302
ret
Function at 0x415b1c
Capabilities:
Modify service

Disassembly:
push 4
mov eax, 0x45b2a5
call fcn.0043f22a
xor esi, esi
mov dword [ebp - 4], esi
call fcn.0041d57f
push eax
lea ecx, [ebp - 0x10]
call fcn.00403246
push 0xf003f
push esi
push esi
mov byte [ebp - 4], 1
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
cmp ebx, esi
jne 0x415b83
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.OpenSCManager_failed___d_
call fcn.0040762c
pop ecx
pop ecx
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.004010ea
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.004010ea
xor eax, eax
call fcn.0043f302
ret
push 0x468500
call fcn.0040762c
pop ecx
push 2
push dword [ebp + 8]
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
cmp edi, esi
jne 0x415bbc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.OpenService_failed___d_
call fcn.0040762c
pop ecx
pop ecx
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x415b65
push 0x46e600
call fcn.0040762c
pop ecx
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push 0xffffffffffffffff
push dword [ebp + 0xc]
push 0xffffffffffffffff
push edi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
test eax, eax
jne 0x415c10
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ChangeServiceConfig_failed___d_
call fcn.0040762c
pop ecx
pop ecx
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.004010ea
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.004010ea
mov eax, esi
jmp 0x415b7d
push str.Service_Updated_successfully.
call fcn.0040762c
mov dword [esp], 0x46e684
call fcn.0040762c
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop ecx
push edi
call esi
push ebx
call esi
xor esi, esi
inc esi
jmp 0x415bf3

Function at 0x415c38
Capabilities:
Create process on windows

Disassembly:
push 0xc
mov eax, 0x45b27a
call fcn.0043f22a
xor esi, esi
inc esi
mov dword [ebp - 4], esi
call fcn.0041d57f
push eax
lea ecx, [ebp - 0x14]
call fcn.00403246
push 0x46e688
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.00403522
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp - 0x14]
push edi
push esi
push ebx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push esi
push str.ZM_CMD_:__s
mov dword [ebp - 0x18], eax
call fcn.0040762c
pop ecx
pop ecx
call fcn.0041d57f
push eax
lea ecx, [ebp - 0x10]
call fcn.00403246
push dword [ebp - 0x18]
lea eax, [ebp - 0x10]
push str.Application__Started_with_status_code_:__d
push eax
mov byte [ebp - 4], 3
call fcn.0040397a
add esp, 0xc
push dword [ebp - 0x10]
push 0x468d8c
call fcn.0040762c
pop ecx
pop ecx
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.004010ea
lea ecx, [esi - 0x10]
call fcn.004010ea
lea ecx, [ebx - 0x10]
call fcn.004010ea
lea ecx, [edi - 0x10]
call fcn.004010ea
mov eax, dword [ebp - 0x18]
call fcn.0043f302
ret
Function at 0x4160b1
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xbc4
mov eax, 0x45b1d7
call fcn.0043f293
mov esi, ecx
xor edi, edi
push 0xbb6
lea eax, [ebp - 0xbc6]
mov dword [ebp - 4], edi
push edi
push eax
mov dword [ebp - 0xbd0], 0x3ffe
mov word [ebp - 0xbc8], di
call fcn.0043b970
add esp, 0xc
cmp dword [esi + 0x10], edi
mov esi, dword [esi + 4]
lea eax, [ebp - 0xbcc]
mov dword [ebp - 0xbcc], edi
push eax
je 0x416109
push 0xf013f
jmp 0x41610e
push 0xf003f
push edi
push esi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
jne 0x4161ab
push edi
push str.writeValue:__Key_found_..._:__d
call fcn.0040762c
push str.writeValue:__After_addRegistryKey_method_in_writeValue_method__
call fcn.0040762c
mov esi, dword [ebp + 8]
add esp, 0xc
lea eax, [ebp - 0xbd0]
push eax
lea eax, [ebp - 0xbc8]
push eax
lea eax, [ebp + 0xc]
push eax
push edi
push esi
push dword [ebp - 0xbcc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x416193
push str.value_is_found
call fcn.0040762c
pop ecx
lea eax, [ebp - 0xbc8]
push eax
push 0x468d8c
push ebx
call fcn.0040397a
add esp, 0xc
push dword [ebp - 0xbcc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esi - 0x10]
jmp 0x4161be
push dword [ebp - 0xbcc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esi - 0x10]
call fcn.004010ea
xor al, al
jmp 0x4161c5
push eax
push str.writeValue:__Key_open_failure___d
call fcn.0040762c
pop ecx
pop ecx
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.004010ea
mov al, 1
call fcn.0043f316
ret 8
Function at 0x4163e3
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45b1a7
mov eax, dword fs:[0]
push eax
mov eax, 0x8bd0
call fcn.0043fb50
mov eax, dword [0x4809a0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor edi, edi
push 0xbb6
xor ebx, ebx
lea eax, [ebp - 0xbc6]
push edi
inc ebx
push eax
mov dword [ebp - 0x8bd4], 0x3ffe
mov dword [ebp - 0x8bd8], 0x3fff
mov dword [ebp - 0x8bdc], ebx
mov word [ebp - 0xbc8], di
call fcn.0043b970
mov eax, dword [esi + 4]
add esp, 0xc
cmp dword [esi + 0x10], edi
push esi
je 0x41645f
push 0x101
jmp 0x416460
push ebx
push edi
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
cmp ebx, edi
je 0x416489
push ebx
push dword [esi + 4]
push str.ReadDwordRegistryData:_Error_while_opening_registry_key__s_and_the_errorcode_is_:__d
call fcn.0040762c
add esp, 0xc
jmp 0x4165bb
push 0x464fb4
lea ecx, [ebp - 0x8bcc]
call fcn.00402fb8
lea ecx, [esi + 0x18]
push 0x464fda
mov dword [ebp - 4], edi
call fcn.00403040
mov dword [esi + 0x14], edi
mov dword [ebp - 0x8bd0], edi
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x8bd8]
push eax
lea eax, [ebp - 0x8bc8]
push eax
push dword [ebp - 0x8bd0]
mov dword [ebp - 0x8bd8], 0x3fff
push dword [esi]
mov word [ebp - 0x8bc8], di
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x4165a5
lea eax, [ebp - 0x8bd4]
push eax
lea eax, [ebp - 0xbc8]
push eax
lea eax, [ebp - 0x8bdc]
push eax
push edi
lea eax, [ebp - 0x8bc8]
push eax
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x8bd4]
mov ebx, eax
lea eax, [ebp - 0xbc8]
push eax
lea eax, [ebp - 0x8bc8]
push eax
push str.ReadURSInfoFromReg___s___s__Len:_d_n
call fcn.004076c2
add esp, 0x10
lea eax, [ebp - 0x8bc8]
push eax
lea ecx, [ebp - 0x8bcc]
call fcn.00403547
mov eax, dword [ebp - 0x8bcc]
cmp dword [eax - 0xc], 8
jle 0x416592
inc dword [esi + 0x14]
lea eax, [ebp - 0xbc8]
push eax
lea eax, [ebp - 0x8bc8]
push eax
lea eax, [ebp - 0x8bcc]
push str._s_t_s
push eax
call fcn.0040397a
add esp, 0x10
lea eax, [ebp - 0x8bcc]
push eax
lea ecx, [esi + 0x18]
call fcn.004032d6
push 0x46ef64
lea ecx, [esi + 0x18]
call fcn.00403522
inc dword [ebp - 0x8bd0]
cmp dword [ebp - 0x8bd0], 0x64
jb 0x4164b2
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x8bcc]
add ecx, 0xfffffff0
call fcn.004010ea
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004388b9
leave
ret
Function at 0x4165d6
Capabilities:
Delete registry value

Disassembly:
push 0x10
mov eax, 0x45b177
call fcn.0043f293
mov esi, ecx
lea edi, [esi + 4]
xor ebx, ebx
push edi
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], ebx
call fcn.0040326b
push 0x468384
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.00403522
mov eax, dword [ebp + 8]
push dword [eax - 0xc]
lea ecx, [ebp - 0x14]
push eax
call fcn.0040377c
cmp dword [esi + 0x10], ebx
mov eax, dword [edi]
lea ecx, [ebp - 0x18]
push ecx
je 0x416627
push 0x102
jmp 0x416629
push 2
push ebx
push eax
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
cmp esi, ebx
je 0x416669
push dword [edi]
push esi
push 0x46ef68
call fcn.0040762c
add esp, 0xc
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.004010ea
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.004010ea
mov eax, esi
call fcn.0043f316
ret 4
push ebx
lea ecx, [ebp + 8]
call fcn.0040339a
push eax
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 0x18]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, ebx
je 0x4166a0
push dword [ebp + 8]
push esi
push str.Deleting_key:_:__d____s
call fcn.0040762c
add esp, 0xc
xor esi, esi
jmp 0x416649
xor esi, esi
inc esi
jmp 0x416649
Function at 0x416819
Capabilities:
Check os version
Get token membership

Disassembly:
push ebp
lea ebp, [esp - 0xf0]
sub esp, 0x170
mov eax, dword [0x4809a0]
xor eax, ebp
mov dword [ebp + 0xec], eax
push ebx
push esi
push edi
xor edi, edi
push 0x110
lea eax, [ebp - 0x68]
push edi
push eax
mov dword [ebp - 0x80], edi
xor ebx, ebx
mov dword [ebp - 0x74], edi
mov dword [ebp - 0x70], edi
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x6c], 0x114
call fcn.0043b970
add esp, 0xc
lea eax, [ebp - 0x74]
push eax
push 0xa
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x416918
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x416918
cmp dword [ebp - 0x68], 6
jb 0x4168c9
mov esi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea eax, [ebp - 0x78]
push eax
push 4
lea eax, [ebp - 0x7c]
push eax
push 0x12
push dword [ebp - 0x74]
call esi
test eax, eax
je 0x416918
cmp dword [ebp - 0x7c], 3
jne 0x4168c9
lea eax, [ebp - 0x78]
push eax
push 4
lea eax, [ebp - 0x70]
push eax
push 0x13
push dword [ebp - 0x74]
call esi
test eax, eax
je 0x416918
cmp dword [ebp - 0x70], edi
jne 0x4168e1
lea eax, [ebp - 0x70]
push eax
push 1
push dword [ebp - 0x74]
call dword [sym.imp.ADVAPI32.dll_DuplicateToken]
test eax, eax
je 0x416918
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp + 0xa8]
push eax
push edi
push 0x1a
mov dword [ebp - 0x78], 0x44
call dword [sym.imp.ADVAPI32.dll_CreateWellKnownSid]
test eax, eax
je 0x416918
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp + 0xa8]
push eax
push dword [ebp - 0x70]
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x416920
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp dword [ebp - 0x74], edi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x416933
push dword [ebp - 0x74]
call esi
mov dword [ebp - 0x74], edi
cmp dword [ebp - 0x70], edi
je 0x416940
push dword [ebp - 0x70]
call esi
mov dword [ebp - 0x70], edi
cmp ebx, edi
je 0x416955
push 0x478fe8
lea eax, [ebp - 0x7c]
push eax
mov dword [ebp - 0x7c], ebx
call fcn.0043f606
mov ecx, dword [ebp + 0xec]
mov eax, dword [ebp - 0x80]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004388b9
add ebp, 0xf0
leave
ret
Function at 0x416f6c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45b0ba
mov eax, dword fs:[0]
push eax
mov eax, 0x139c
call fcn.0043fb50
mov eax, dword [0x4809a0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor edi, edi
push 0x1386
lea eax, [ebp - 0x1396]
push edi
push eax
mov dword [ebp - 0x139c], 0x3ffe
mov dword [ebp - 0x13a0], 7
mov word [ebp - 0x1398], di
call fcn.0043b970
mov eax, dword [esi + 4]
add esp, 0xc
cmp dword [esi + 0x10], edi
push esi
je 0x416fde
push 0x101
jmp 0x416fe0
push 1
push edi
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
je 0x417009
push eax
push dword [esi + 4]
push str.ReadDwordRegistryData:_Error_while_opening_registry_key__s_and_the_errorcode_is_:__d
call fcn.0040762c
add esp, 0xc
xor eax, eax
jmp 0x41708f
push 0x464fb4
lea ecx, [ebp - 0x13a4]
call fcn.00402fb8
lea eax, [ebp - 0x139c]
push eax
lea eax, [ebp - 0x1398]
push eax
lea eax, [ebp - 0x13a0]
push eax
mov dword [ebp - 4], edi
inc dword [esi + 0x14]
push edi
push dword [esi + 0x18]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [ebp - 0x139c]
xor ecx, ecx
push 2
inc eax
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041ce2f
mov edi, eax
mov eax, dword [ebp - 0x139c]
pop ecx
push eax
mov dword [ebx], eax
lea eax, [ebp - 0x1398]
push eax
push edi
call fcn.0043bb80
add esp, 0xc
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x13a4]
add ecx, 0xfffffff0
call fcn.004010ea
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004388b9
leave
ret

Function at 0x41716b
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov esi, eax
xor eax, eax
push eax
push eax
lea ecx, [ebp - 4]
push ecx
push 0x400
push dword [esi + 0x54]
push eax
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 0x50]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
push dword [ebp - 4]
mov edi, eax
push dword [esi + 0x54]
push str.CustomURLProtocol::Failed_with_error__d:__s
push edi
call dword [sym.imp.KERNEL32.dll_LocalSize]
mov ecx, eax
shr ecx, 1
call fcn.004170a7
add esp, 0xc
push edi
add esi, 0x58
push esi
call fcn.00417505
push edi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push dword [ebp - 4]
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
call esi
push edi
call esi
pop edi
pop esi
leave
ret
Function at 0x41743e
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
cmp dword [esi + 0x18], 8
push ebx
lea ebx, [esi + 4]
jb 0x417454
mov eax, dword [ebx]
jmp 0x417456
mov eax, ebx
lea ecx, [ebp - 4]
push ecx
push 0xf003f
push 0
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
mov dword [esi + 0x54], eax
jne 0x4174f2
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push str.DefaultIcon
push dword [ebp - 4]
call edi
neg eax
sbb eax, eax
inc eax
mov dword [esi + 0x54], eax
je 0x4174f1
push str.ShellOpencommand
push dword [ebp - 4]
call edi
neg eax
sbb eax, eax
inc eax
mov dword [esi + 0x54], eax
je 0x4174f1
push str.ShellOpen
push dword [ebp - 4]
call edi
neg eax
sbb eax, eax
inc eax
mov dword [esi + 0x54], eax
je 0x4174f1
push str.Shell
push dword [ebp - 4]
call edi
neg eax
sbb eax, eax
inc eax
mov dword [esi + 0x54], eax
je 0x4174f1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
neg eax
sbb eax, eax
inc eax
mov dword [esi + 0x54], eax
je 0x4174f1
cmp dword [esi + 0x18], 8
jb 0x4174e6
mov ebx, dword [ebx]
push ebx
push SysReAllocString
call edi
mov dword [esi + 0x54], eax
pop edi
cmp dword [esi + 0x54], 0
pop ebx
je 0x417500
mov eax, esi
call fcn.0041716b
mov eax, dword [esi + 0x54]
leave
ret
Function at 0x41834f
Capabilities:
Accept command line arguments

Disassembly:
push 0xc
mov eax, 0x45be74
call fcn.0043f22a
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
cmp dword [0x484070], 1
jle 0x418396
push eax
lea ecx, [ebp - 0x10]
call fcn.00402fb8
and dword [ebp - 4], 0
push ecx
lea eax, [ebp - 0x10]
mov dword [ebp - 0x14], esp
mov ecx, esp
push eax
call fcn.0040326b
call fcn.0041839c
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.004010ea
call fcn.0043f302
ret

Function at 0x41c7e2
Capabilities:
Read file on windows

Disassembly:
push 8
mov eax, 0x45af4d
call fcn.0043f22a
mov esi, ecx
xor edi, edi
mov dword [ebp - 0x14], edi
push 0x464fda
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 4], edi
call fcn.0041cd94
mov byte [ebp - 4], 1
mov ebx, dword [ebp + 0xc]
cmp dword [ebx - 0xc], edi
jne 0x41c846
push str.Check_Arg_passed___Empty_Filename
call fcn.0040762c
mov dword [esp], str.FAILED
push dword [ebp + 8]
call fcn.0041cd94
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.004010ea
lea ecx, [ebx - 0x10]
call fcn.004010ea
mov eax, dword [ebp + 8]
jmp 0x41c998
cmp byte [ebp + 0x10], 0
push 0x40
je 0x41c853
mov eax, dword [esi + 0xc]
jmp 0x41c856
mov eax, dword [esi + 0x10]
push eax
push ebx
call fcn.0043a919
add esp, 0xc
cmp eax, edi
mov dword [ebp + 0x10], eax
jne 0x41c881
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.File_open_Error_:__d
call fcn.0040762c
pop ecx
pop ecx
push str.FAILED
jmp 0x41c823
push 2
push edi
push dword [ebp + 0x10]
call fcn.0043c542
add esp, 0xc
test eax, eax
je 0x41c8b1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.File_seek_Error_:__d
call fcn.0040762c
push dword [ebp + 0x10]
call fcn.0043b4dc
add esp, 0xc
jmp 0x41c87a
push dword [ebp + 0x10]
call fcn.0043c44d
pop ecx
push dword [ebp + 0x10]
mov dword [esi], eax
call fcn.0043bf78
mov edi, dword [esi]
pop ecx
inc edi
push edi
lea ecx, [ebp - 0x10]
call fcn.00406194
push edi
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x14], eax
call fcn.004061be
push dword [ebp + 0x10]
push dword [esi]
mov esi, dword [ebp - 0x14]
push 1
push esi
call fcn.0043c29a
add esp, 0x10
test eax, eax
jne 0x41c930
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.File_read_error_:__d
call fcn.0040762c
cmp dword [ebp - 0x10], 0
pop ecx
pop ecx
jne 0x41c911
xor eax, eax
jmp 0x41c91a
push dword [ebp - 0x10]
call fcn.00439b10
pop ecx
push eax
lea ecx, [ebp - 0x10]
call fcn.004061be
push dword [ebp + 0x10]
call fcn.0043b4dc
jmp 0x41c81c
mov byte [esi + eax], 0
cmp dword [ebp - 0x10], 0
jne 0x41c93e
xor eax, eax
jmp 0x41c947
push dword [ebp - 0x10]
call fcn.00439b10
pop ecx
push eax
lea ecx, [ebp - 0x10]
call fcn.004061be
push dword [ebp + 0x10]
call fcn.0043b4dc
test eax, eax
pop ecx
je 0x41c96e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.File_close_error_:__d
jmp 0x41c873
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
push eax
call fcn.004061e4
mov esi, dword [ebp + 8]
pop ecx
mov ecx, dword [ebp - 0x10]
add eax, 0x10
add ecx, 0xfffffff0
mov dword [esi], eax
call fcn.004010ea
lea ecx, [ebx - 0x10]
call fcn.004010ea
mov eax, esi
call fcn.0043f302
ret 0xc
Function at 0x41f518
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
je 0x41f55e
call fcn.00429507
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x41f55e
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 4], eax
je 0x41f5a1
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
je 0x41f58a
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x41f58a
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x41f59e
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x4265da
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x426613
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0041d4e3
push eax
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0041a808
pop esi
ret 4
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
pop esi
jmp dword [eax + 0x8c]

Function at 0x4280eb
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x42812e
call fcn.00429507
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x42812e
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x428149
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.00427ca5
test ebx, ebx
mov esi, eax
je 0x428147
test edi, edi
je 0x428147
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x42b466
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 0x42b494
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x42b4b2
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0042b3d0
jmp 0x42b4b2
mov eax, dword [esi + 0x14]
test eax, eax
je 0x42b4b2
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.0042b3d0
test edi, edi
mov eax, edi
jne 0x42b49c
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x483fc0]
test ecx, ecx
je 0x42b575
jmp 0x42b465
ret 8