joyce8/EMBER2024-capa huggingface dataset:
Function at 0x423a08
Capabilities:
Copy file
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
xor ecx, ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040470c
mov eax, dword [ebp - 8]
call fcn.0040470c
xor eax, eax
push ebp
push 0x423b11
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
call fcn.0040d0bc
push 0
mov eax, dword [ebp - 8]
call fcn.0040471c
push eax
mov eax, dword [ebp - 4]
call fcn.0040471c
push eax
call sub.kernel32.dll_CopyFileA
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 8]
call fcn.00408044
mov eax, dword [ebp - 0xc]
push eax
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 8]
call fcn.00408010
mov eax, dword [ebp - 0x10]
pop edx
call fcn.004233dc
mov edx, eax
mov eax, dword [ebp - 8]
call fcn.00423770
mov edx, 2
mov eax, dword [ebp - 8]
call fcn.00407df8
lea eax, [ebp - 8]
mov edx, 0x423b24
call fcn.0040452c
mov eax, 0x42cc6c
xor ecx, ecx
mov edx, 0x44
call fcn.00402e48
mov dword [0x42cc6c], 0x44
mov dword [0x42cc98], 1
mov word [0x42cc9c], 1
push 0x42ccb0
push 0x42cc6c
push 0
push 0
push 0x30
push 0xffffffffffffffff
push 0
push 0
mov eax, dword [ebp - 8]
call fcn.0040471c
push eax
push 0
call sub.kernel32.dll_CreateProcessA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x423b18
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.00404290
ret
Function at 0x427f94
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff9c
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x64], ecx
mov dword [ebp - 0x14], ecx
mov ebx, eax
xor eax, eax
push ebp
push 0x428162
push dword fs:[eax]
mov dword fs:[eax], esp
mov esi, ebx
mov edx, dword [esi + 8]
mov eax, dword [esi + 4]
call fcn.00427f84
test al, al
je 0x428144
lea eax, [ebp - 0x64]
push eax
mov ecx, 0x428170
mov edx, 0x428178
mov eax, 0x80000000
call fcn.0040e8e0
mov eax, dword [ebp - 0x64]
mov edx, 0x428190
call fcn.00404668
je 0x428144
xor edi, edi
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
mov dword [ebp - 0xc], eax
xor eax, eax
mov dword [ebp - 0x10], eax
mov esi, 0x13
lea eax, [ebp - 0x60]
xor edx, edx
mov dword [eax], edx
add eax, 4
dec esi
jne 0x42800e
push 0x428178
push 0x428194
call sub.user32.dll_FindWindowA
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x428064
lea eax, [ebp - 0x14]
push eax
mov ecx, 0x4281a0
mov edx, 0x428178
mov eax, 0x80000000
call fcn.0040e8e0
cmp dword [ebp - 0x14], 0
je 0x428064
mov eax, dword [ebp - 0x14]
call fcn.0040471c
push eax
push 0x428194
call sub.user32.dll_FindWindowA
mov dword [ebp - 4], eax
mov esi, 0x13
lea ebx, [ebp - 0x60]
push 0
push 0x4281ac
push edi
mov eax, dword [ebp - 4]
push eax
call sub.user32.dll_FindWindowExA
mov dword [ebx], eax
mov edi, dword [ebx]
test edi, edi
je 0x4280a7
inc dword [ebp - 0xc]
push edi
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4280a1
inc dword [ebp - 8]
cmp dword [ebp - 8], 1
jne 0x4280a1
mov dword [0x42e144], edi
add ebx, 4
dec esi
jne 0x42806c
cmp dword [ebp - 8], 2
jne 0x428144
call sub.user32.dll_GetFocus
xor edx, edx
push edx
push eax
mov eax, dword [0x42e144]
cdq
cmp edx, dword [esp + 4]
jne 0x4280c9
cmp eax, dword [esp]
pop edx
pop eax
jne 0x428144
mov edi, dword [ebp - 0xc]
test edi, edi
jle 0x428144
lea ebx, [ebp - 0x60]
mov esi, 0x42ce44
cmp dword [ebx], 0
je 0x428138
mov eax, dword [ebx]
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x428138
mov eax, esi
push eax
push pe_nt_image_headers32
push 0xd
mov eax, dword [ebx]
push eax
call sub.user32.dll_SendMessageA
cmp dword [ebp - 0x10], 0
jne 0x42811e
push esi
push 1
mov ecx, 0x4281b4
mov edx, 0x428178
mov eax, 0x80000000
call fcn.0040e68c
jmp 0x428135
push esi
push 1
mov ecx, 0x4281b8
mov edx, 0x428178
mov eax, 0x80000000
call fcn.0040e68c
inc dword [ebp - 0x10]
add esi, 0x100
add ebx, 4
dec edi
jne 0x4280dc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x428169
lea eax, [ebp - 0x64]
call fcn.0040426c
lea eax, [ebp - 0x14]
call fcn.0040426c
ret
Function at 0x42a38c
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, 0x42ccf0
mov esi, 0x42cd28
mov eax, dword [0x42c710]
mov dword [0x42cd18], eax
mov dword [ebx], 0xc0
mov dword [ebx + 4], 0x42a334
mov eax, dword [0x42cd18]
mov dword [ebx + 0x10], eax
mov dword [ebx + 0x1c], 0x10
mov eax, 0x42a48c
mov dword [ebx + 0x24], eax
push 0x7f00
push 0
call sub.user32.dll_LoadCursorA
mov dword [ebx + 0x18], eax
push ebx
call sub.user32.dll_RegisterClassA
test ax, ax
je 0x42a486
push 0
mov eax, dword [0x42cd18]
push eax
push 0
push 0
push 0xa
push 0xa
push 0
push 0
push 0xcc0000
push 0x42a490
push 0x42a48c
push pe_nt_image_headers32
call sub.user32.dll_CreateWindowExA
mov dword [0x42cd1c], eax
cmp dword [0x42cd1c], 0
je 0x42a486
call fcn.0040bd50
push 0x4281f4
push 0x5dc
push 1
mov eax, dword [0x42cd1c]
push eax
call sub.user32.dll_SetTimer
push 0x4297dc
push 0xea60
push 2
mov eax, dword [0x42cd1c]
push eax
call sub.user32.dll_SetTimer
push 0
mov eax, dword [0x42cd1c]
push eax
call sub.user32.dll_ShowWindow
jmp 0x42a46d
push esi
call sub.user32.dll_TranslateMessage
push esi
call sub.user32.dll_DispatchMessageA
push 0
push 0
mov eax, dword [0x42cd1c]
push eax
push esi
call sub.user32.dll_GetMessageA
test eax, eax
jne 0x42a461
call fcn.0040bea8
pop esi
pop ebx
ret

Function at 0x438c1e
Capabilities:
Copy file
Create process on windows
Persist via run registry key

Disassembly:
mov eax, 0x38c1e
mov ebx, 0x38c9d
call fcn.00438c32
jmp fcn.0042a608

Function at 0x430003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
mov eax, section..00cfg
mov ebx, 0x408ecc
nop
mov ecx, 0x7bb33764
nop
test eax, eax
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x430024
nop
nop
nop
nop
mov eax, section..data
mov ebx, 0x42e1d0
nop
nop
mov ecx, 0x74fb16e1
nop
test eax, eax
nop
nop
nop
nop
je 0x430084
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x4014e1
Capabilities:
Delete registry key
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, esi
lea eax, [ebp - 4]
push eax
and esi, 0x300
mov eax, esi
or eax, 9
push eax
push dword [ebp + 0xc]
and edi, 1
push dword [ebp + 8]
call fcn.004062fc
xor ebx, ebx
cmp eax, ebx
jne 0x4015c5
test byte [ebp + 0x10], 2
je 0x401543
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push ebx
push dword [ebp - 4]
mov dword [ebp - 8], ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, 0x103
jne 0x4015aa
push 0x105
lea eax, [ebp - 0x214]
push eax
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
jmp 0x40157f
test edi, edi
jne 0x4015aa
push dword [ebp + 0x10]
lea eax, [ebp - 0x214]
push eax
push dword [ebp - 4]
call fcn.004014e1
test eax, eax
jne 0x401588
push 0x105
lea eax, [ebp - 0x214]
push eax
push edi
push dword [ebp - 4]
call ebx
test eax, eax
je 0x401558
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 3
call fcn.00406616
test eax, eax
jne 0x4015ba
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
jmp 0x4015c5
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x3eb
jmp 0x4015c5
push 0
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x405e53
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
and dword [ebp - 0x14], 0
and dword [ebp - 4], 0
push 4
pop eax
mov word [ebp - 0x1e], ax
mov eax, 0x408898
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
mov byte [ebp - 0x20], 1
mov byte [ebp - 0x1f], 0
mov dword [ebp - 0x10], 0x408888
mov dword [ebp - 0xc], 0xc
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x405ea4
xor eax, eax
jmp 0x405ed1
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0xb7
jne 0x405ed0
lea eax, [ebp - 0x20]
push eax
push 0x80000007
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityW]
test eax, eax
je 0x405ece
xor eax, eax
jmp 0x405ed0
call esi
pop esi
leave
ret 4

Function at 0x405ef2
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
push eax
push 0x425208
xor eax, eax
push eax
push eax
push 0x4000000
push eax
push eax
push eax
push dword [ebp + 8]
mov dword [0x425208], 0x44
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x405f31
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4

Function at 0x405f35
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 4]
and dword [eax + 0x24], 0
push eax
mov dword [eax], 0x3c
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
ret 4

Function at 0x406100
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
je 0x406120
and eax, 0xfffffffe
push eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, esi
pop esi
ret 4

Function at 0x406126
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, eax
inc ecx
push 0
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
ret 0xc

Function at 0x406155
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
mov eax, dword [0x408974]
mov dword [ebp - 8], eax
mov eax, dword [0x408978]
dec edi
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
pop ecx
xor edx, edx
div ecx
push esi
push 0
lea eax, [ebp - 8]
push eax
push dword [ebp + 0xc]
add word [ebp - 4], dx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x4061a5
test edi, edi
jne 0x406162
mov word [esi], ax
pop edi
pop esi
leave
ret 8
mov eax, esi
jmp 0x40619f
Function at 0x40635d
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp + 0x18]
push eax
mov eax, dword [ebp + 0x18]
neg eax
sbb eax, eax
and eax, 0x100
or eax, 0x20019
push eax
push dword [ebp + 0xc]
mov dword [ebp - 4], 0x800
push dword [ebp + 8]
call fcn.004062fc
mov esi, dword [ebp + 0x14]
test eax, eax
jne 0x4063ce
push edi
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp + 0x18]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test edi, edi
mov word [esi + 0x7fe], ax
pop edi
jne 0x4063ce
cmp dword [ebp + 0xc], 1
je 0x4063d3
cmp dword [ebp + 0xc], 2
je 0x4063d3
xor eax, eax
mov word [esi], ax
pop esi
leave
ret 0x14

Function at 0x4065a6
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
push esi
lea eax, [ebp - 0x23c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x4065ca
xor eax, eax
test eax, eax
je 0x4065dd
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x4065dd
xor ecx, ecx
jmp 0x4065e0
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x4082b0]
push ecx
lea eax, [ebp + eax*2 - 0x23c]
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
push 8
push 0
lea eax, [ebp - 0x23c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

Function at 0x406719
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push esi
call fcn.00406100
mov edi, eax
cmp edi, 0xffffffff
je 0x40675a
test byte [esp + 0x10], 1
push esi
je 0x406743
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x40674b
xor eax, eax
inc eax
jmp 0x40675c
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x40673a
test byte [esp + 0x10], 4
jne 0x40675a
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor eax, eax
pop edi
pop esi
ret 8

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

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x425250
push esi
call fcn.00406491
push esi
call fcn.00406029
mov edi, eax
test edi, edi
jne 0x406825
xor eax, eax
jmp 0x406883
push edi
call fcn.004064ce
test byte [0x429d70], 0x80
je 0x406842
movzx eax, word [edi]
test ax, ax
je 0x406821
cmp ax, 0x5c
je 0x406821
sub edi, esi
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
sar edi, 1
jmp 0x406864
push esi
call fcn.0040657f
test eax, eax
je 0x40685e
test byte [eax], 0x10
je 0x406888
push esi
call fcn.00406790
push esi
call ebx
cmp eax, edi
jg 0x40684f
push esi
call fcn.00406761
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop ebx
pop edi
pop esi
ret 4
xor eax, eax
jmp 0x406882
Function at 0x406acf
Capabilities:
Get file size

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
mov dword [0x425a50], 0x55004e
mov dword [0x425a54], 0x4c
mov edi, 0x400
mov ebp, 0x425a50
test esi, esi
je 0x406b25
push 1
push 0
push esi
call fcn.00406126
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x406c44
cmp eax, edi
jg 0x406c44
push edi
mov esi, 0x4270a0
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x406c44
cmp eax, edi
jg 0x406c44
push esi
push ebp
push str._ls_ls_r_n
push 0x4264a0
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov ebx, eax
mov eax, dword [0x429d0c]
push dword [eax + 0x128]
push esi
call fcn.0040688c
push 4
push 0xc0000000
push esi
call fcn.00406126
mov ebp, eax
mov dword [esp + 0x18], ebp
cmp ebp, 0xffffffff
je 0x406c44
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x406c3d
push edi
push esi
push ebp
call fcn.004061a9
test eax, eax
je 0x406c3d
push str._Rename__r_n
push esi
call fcn.00406086
test eax, eax
jne 0x406bdb
push str._Rename__r_n
lea eax, [esi + edi]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add edi, 0xa
jmp 0x406c10
push 0x4089a4
add eax, 0xa
push eax
call fcn.00406086
mov ebp, eax
test ebp, ebp
je 0x406c0c
lea ecx, [esi + edi]
lea eax, [ecx + ebx]
jmp 0x406bfd
mov dl, byte [ecx]
mov byte [eax], dl
dec eax
dec ecx
cmp ecx, ebp
ja 0x406bf7
sub ebp, esi
inc ebp
mov eax, ebp
mov ebp, dword [esp + 0x18]
jmp 0x406c12
mov ebp, dword [esp + 0x18]
mov eax, edi
push ebx
push 0x4264a0
add eax, esi
push eax
call fcn.004060dc
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
add edi, ebx
push edi
push esi
push ebp
call fcn.004061d8
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x406c49
Capabilities:
Move file

Disassembly:
push 5
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x406c6c
push dword [esp + 8]
push dword [esp + 8]
call fcn.00406acf
pop ecx
pop ecx
inc dword [0x429dd0]
ret 8
Function at 0x406c75
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
push ebx
mov ebx, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
mov eax, ebx
and eax, 4
push edi
mov dword [ebp - 4], eax
call fcn.00406804
mov dword [ebp - 8], eax
test bl, 8
je 0x406cb3
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
inc eax
add dword [0x429dc8], eax
jmp 0x406e35
mov dword [ebp + 8], ebx
and dword [ebp + 8], 1
push esi
je 0x406cce
test eax, eax
je 0x406de1
test bl, 2
je 0x406de1
push edi
mov esi, 0x4268a0
push esi
call fcn.00406491
cmp dword [ebp + 8], 0
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatW]
je 0x406cf0
push str..
push esi
call ebx
jmp 0x406cf6
push edi
call fcn.00406790
cmp word [edi], 0
jne 0x406d06
cmp word [0x4268a0], 0x5c
jne 0x406d0e
push 0x4082b0
push edi
call ebx
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ebx, [edi + eax*2]
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x406dd5
cmp word [ebp - 0x22c], 0x2e
jne 0x406d59
cmp word [ebp - 0x22a], 0
je 0x406db8
cmp word [ebp - 0x22a], 0x2e
jne 0x406d59
cmp word [ebp - 0x228], 0
je 0x406db8
lea eax, [ebp - 0x22c]
push eax
push ebx
call fcn.00406491
test byte [ebp - 0x258], 0x10
je 0x406d84
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x406db8
push dword [ebp + 0xc]
push edi
call fcn.00406c75
jmp 0x406db8
push dword [ebp - 4]
push edi
call fcn.00406719
test eax, eax
jne 0x406db0
cmp dword [ebp - 4], eax
je 0x406da8
push edi
push 0xfffffffffffffff1
call fcn.004051cc
push 0
push edi
call fcn.00406c49
jmp 0x406db8
inc dword [0x429dc8]
jmp 0x406db8
push edi
push 0xfffffffffffffff2
call fcn.004051cc
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x406d31
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x406de1
xor eax, eax
mov word [ebx - 2], ax
xor esi, esi
cmp dword [ebp + 8], esi
je 0x406e34
cmp dword [ebp - 8], esi
je 0x406e24
push edi
call fcn.0040657f
test eax, eax
je 0x406e34
push edi
call fcn.00406761
mov eax, dword [ebp - 4]
or eax, 1
push eax
push edi
call fcn.00406719
test eax, eax
jne 0x406e2c
cmp dword [ebp - 4], esi
je 0x406e24
push edi
push 0xfffffffffffffff1
call fcn.004051cc
push esi
push edi
call fcn.00406c49
jmp 0x406e34
inc dword [0x429dc8]
jmp 0x406e34
push edi
push 0xffffffffffffffe5
call fcn.004051cc
pop esi
pop edi
pop ebx
leave
ret 8
Function at 0x406e3b
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x4278a4], 0
jne 0x406e79
xor ecx, ecx
push esi
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
movzx edx, dl
neg edx
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406e4f
mov dword [ecx*4 + 0x4278a0], eax
inc ecx
cmp ecx, 0x100
jl 0x406e4a
pop esi
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp + 8]
not eax
jbe 0x406ea6
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
dec dword [ebp + 0x10]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x4278a0]
inc ecx
cmp dword [ebp + 0x10], 0
ja 0x406e87
not eax
pop ebp
ret 0xc
Function at 0x401d90
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [section..data]
jne 0x401d9a
repz ret
jmp fcn.0041199a

Function at 0x401d9f
Capabilities:
Create thread

Disassembly:
push esi
push edi
mov esi, ecx
xor edi, edi
cmp dword [esi + 0x50], edi
je 0x401de5
cmp dword [esi + 4], edi
je 0x401dc8
push edi
push edi
push 0x12
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_PostThreadMessageA]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 4], edi
lea eax, [esi + 0xc]
push eax
push edi
push esi
push 0x4043a7
push edi
push edi
mov dword [esi + 8], 1
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 4], eax
pop edi
pop esi
ret

Function at 0x402129
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x7fe
push eax
mov word [ebp - 0x804], ax
lea eax, [ebp - 0x802]
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
push 0x400
lea eax, [ebp - 0x804]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push str.cfgs_setup.cfg
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x804]
push eax
push 0x409
push str.UILanguage
push str.Local
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401d90
leave
ret

Function at 0x40249f
Capabilities:
Accept command line arguments

Disassembly:
push 0x24
mov eax, 0x411f9f
call fcn.004019d2
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [ebp - 0x2c]
call fcn.004021b5
mov ecx, dword [esi]
and dword [ebp - 4], 0
lea eax, [ebp - 0x2c]
push eax
call fcn.004026c8
mov ebx, eax
neg ebx
sbb bl, bl
or dword [ebp - 4], 0xffffffff
xor edi, edi
push 0
inc edi
push edi
lea ecx, [ebp - 0x2c]
call fcn.00402368
inc bl
je 0x4024ef
or eax, 0xffffffff
jmp 0x402588
mov ecx, esi
call fcn.00402fd7
mov ecx, esi
call fcn.0040322b
mov ecx, dword [esi]
call fcn.004033e9
dec eax
je 0x40257e
dec eax
je 0x402574
dec eax
je 0x40256a
dec eax
je 0x402560
dec eax
je 0x402556
dec eax
je 0x40254d
dec eax
je 0x40251d
mov eax, edi
jmp 0x402588
call fcn.004110d1
lea ecx, [ebp - 0x30]
call fcn.00411151
mov ecx, esi
mov dword [ebp - 4], edi
mov dword [esi + 4], 2
call fcn.00406c90
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
mov esi, eax
call fcn.00404d8d
mov eax, esi
jmp 0x402588
mov ecx, esi
call fcn.00406852
jmp 0x402588
mov ecx, dword [esi + 8]
call fcn.0040f691
jmp 0x402588
mov ecx, dword [esi + 8]
call fcn.0040fee9
jmp 0x402588
mov ecx, dword [esi + 8]
call fcn.0040f5a2
jmp 0x402588
mov ecx, dword [esi + 8]
call fcn.0040fd5e
jmp 0x402588
mov ecx, esi
mov dword [esi + 4], edi
call fcn.00406c10
call fcn.00401d81
ret
Function at 0x40345c
Capabilities:
Accept command line arguments

Disassembly:
push 0x60
mov eax, 0x413684
call fcn.004019d2
mov edi, dword [ebp + 8]
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x68], ebx
mov dword [esi], ebx
xor eax, eax
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], ebx
mov dword [ebp - 0x6c], esi
mov word [esi + 4], ax
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push str._PerfTool
push eax
call dword [sym.imp.MSVCR100.dll_wcsstr]
pop ecx
pop ecx
test eax, eax
je 0x4035ea
cmp dword [edi + 0x10], ebx
jne 0x4034c2
lea eax, [ebp - 0x48]
push eax
call fcn.00411621
pop ecx
mov byte [ebp - 4], 1
mov dword [ebp - 0x68], 1
jmp 0x4034d4
push edi
lea ecx, [ebp - 0x64]
call fcn.00402bc7
push 2
pop ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 0x68], ecx
push str.perftool.dll
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.004114e9
add esp, 0xc
mov dword [ebp - 4], 3
test byte [ebp - 0x68], 2
je 0x403502
and dword [ebp - 0x68], 0xfffffffd
push ebx
push 1
lea ecx, [ebp - 0x64]
call fcn.00402368
test byte [ebp - 0x68], 1
mov byte [ebp - 4], 5
je 0x403517
push ebx
push 1
lea ecx, [ebp - 0x48]
call fcn.00402368
lea eax, [ebp - 0x2c]
push eax
mov ecx, esi
call fcn.0041141d
push edi
mov ecx, esi
call fcn.0041155b
test al, al
je 0x4035dc
push str.PerfToolInit
mov ecx, esi
call fcn.00411374
push str.PerfToolTerm
mov ecx, esi
mov dword [0x41b2d0], eax
call fcn.00411374
push str.PerfToolTermForce
mov ecx, esi
mov dword [0x41b2d4], eax
call fcn.00411374
push str.PerfLogBegin
mov ecx, esi
mov dword [0x41b2d8], eax
call fcn.00411374
push str.PerfLogEnd
mov ecx, esi
mov dword [0x41b2dc], eax
call fcn.00411374
push str.PerfLogBegin2
mov ecx, esi
mov dword [0x41b2e0], eax
call fcn.00411374
push str.PerfLogEnd2
mov ecx, esi
mov dword [0x41b2e4], eax
call fcn.00411374
push str.AddToStrTable
mov ecx, esi
mov dword [0x41b2e8], eax
call fcn.00411374
push str.PerfStubBegin
mov ecx, esi
mov dword [0x41b2ec], eax
call fcn.00411374
push str.PerfStubEnd
mov ecx, esi
mov dword [0x41b2f0], eax
call fcn.00411374
mov dword [0x41b2f4], eax
push ebx
push 1
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], bl
call fcn.00402368
mov eax, dword [0x41b2d0]
cmp eax, ebx
je 0x4035f5
call eax
mov eax, esi
call fcn.00401d81
ret 4