joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4086b0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x40
push ebx
push esi
push edi
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0xd]
mov byte [esp + 0xc], 0
mov esi, dword [esp + 0x54]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpynA]
push esi
stosb byte es:[edi], al
mov edi, dword [esp + 0x54]
push 0x424380
push edi
call ebx
lea eax, [esp + 0x54]
lea ecx, [esp + 0xc]
push eax
lea edx, [esp + 0x54]
push ecx
push edx
push str.Version
mov ecx, 0x424360
mov dword [esp + 0x64], 0x40
call fcn.004021c0
push eax
push 0x80000002
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
test eax, eax
jne 0x40872d
lea eax, [esp + 0xc]
push esi
push eax
push edi
call ebx
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x40
ret
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x40
ret

Function at 0x408740
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x40
push ebx
push esi
push edi
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0xd]
mov byte [esp + 0xc], 0
mov esi, dword [esp + 0x54]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpynA]
push esi
stosb byte es:[edi], al
mov edi, dword [esp + 0x54]
push 0x424380
push edi
call ebx
lea eax, [esp + 0x54]
lea ecx, [esp + 0xc]
push eax
lea edx, [esp + 0x54]
push ecx
push edx
push str.HotVer
mov ecx, 0x424360
mov dword [esp + 0x64], 0x40
call fcn.004021c0
push eax
push 0x80000002
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
test eax, eax
jne 0x4087bd
lea eax, [esp + 0xc]
push esi
push eax
push edi
call ebx
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x40
ret
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x40
ret

Function at 0x409120
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
push esi
mov esi, ecx
push edi
lea ecx, [esi + 8]
call fcn.0040b000
mov eax, dword [esp + 0x19c]
xor edx, edx
mov dword [esi + 0x330], eax
or eax, 0xffffffff
mov dword [esi + 0x328], eax
mov dword [esi + 0x32c], eax
mov ecx, 0x41
xor eax, eax
lea edi, [esi + 0x224]
mov dword [esi], 0x41ce4c
mov dword [esi + 4], edx
mov byte [esi + 0x18], dl
mov byte [esi + 0x11c], dl
mov dword [esi + 0x220], edx
rep stosd dword es:[edi], eax
cmp dword [esi + 0x330], edx
je 0x4091a3
mov ecx, 0x63
xor eax, eax
lea edi, [esp + 0xa]
mov word [esp + 8], dx
rep stosd dword es:[edi], eax
lea ecx, [esp + 8]
push ecx
push 0x202
stosw word es:[edi], ax
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov eax, esi
pop edi
pop esi
add esp, 0x190
ret 4
Function at 0x409330
Capabilities:
Check if file exists
Delete registry value
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x41b02b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3ac
push ebx
push ebp
push esi
push edi
mov ebp, ecx
call fcn.00403be0
xor ebx, ebx
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0x71]
mov byte [esp + 0x70], bl
mov byte [esp + 0x30], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0x31]
mov byte [esp + 0x1b4], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x1b5]
lea esi, [ebp + 0x18]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push esi
stosb byte es:[edi], al
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x4094a4
lea eax, [ebp + 0x224]
push str.Profile.ini
push eax
push str._s_s
push 0x103
push esi
call sub.MSVCRT.dll__snprintf
add esp, 0x14
lea ecx, [esp + 0x14]
call fcn.00406c20
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0xb1]
mov byte [esp + 0xb0], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0xb0]
push 0x104
push ecx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x3cc], ebx
stosb byte es:[edi], al
call fcn.00407350
test eax, eax
je 0x409453
lea edx, [esp + 0x30]
push 0x40
push edx
call fcn.004086b0
add esp, 8
test eax, eax
je 0x409453
push ebx
call sub.MSVCRT.dll_time
push eax
lea eax, [esp + 0x38]
lea ecx, [esp + 0xb8]
push eax
push ecx
push str.http:__ime.sogou.com_addrservice.php_unci_1h_sv_st_d
lea edx, [esp + 0x1c8]
push 0x208
push edx
call dword [sym.imp.SHLWAPI.dll_wnsprintfA]
add esp, 0x1c
jmp 0x40946b
push 0x208
lea eax, [esp + 0x1b8]
push str.http:__ime.sogou.com_addrservice.php_unci_1
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
lea ecx, [ebp + 8]
lea edx, [esp + 0x1b4]
push ecx
push 0xa
push esi
push edx
call fcn.00407570
add esp, 0x10
mov dword [esp + 0x3c4], 0xffffffff
test eax, eax
lea ecx, [esp + 0x14]
jne 0x40949f
call fcn.00406e20
jmp 0x40954b
call fcn.00406e20
push ebx
push ebx
push 3
push ebx
push 1
push 0x80000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp + 0x328], eax
push esi
lea eax, [esp + 0x74]
push 0x40
push eax
push ebx
push str.version
mov ecx, 0x424428
call fcn.004021c0
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x40954b
lea ecx, [esp + 0x30]
push 0x40
push ecx
call fcn.004086b0
add esp, 8
test eax, eax
je 0x40954b
lea edx, [esp + 0x30]
push 1
lea eax, [esp + 0x74]
push edx
push eax
call fcn.0040b460
add esp, 0xc
test eax, eax
jle 0x40954b
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], ebx
push ecx
mov ecx, ebp
call fcn.00409ce0
test eax, eax
je 0x40954b
mov ecx, 0x4243b8
call fcn.004021c0
mov ecx, 0x4243a8
mov esi, eax
call fcn.004021c0
push eax
push esi
push 0x80000002
call dword [sym.imp.SHLWAPI.dll_SHDeleteValueA]
cmp dword [esp + 0x10], ebx
jne 0x40954b
mov eax, dword [ebp + 4]
mov ecx, dword [esp + 0x3bc]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x3b8
ret
Function at 0x40a8d0
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x128
push esi
push edi
xor eax, eax
mov ecx, 0x49
lea edi, [esp + 0xc]
mov dword [esp + 8], 0
push eax
push 2
rep stosd dword es:[edi], eax
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x40a969
lea eax, [esp + 8]
mov dword [esp + 8], 0x128
push eax
push esi
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x40a962
lea ecx, [esp + 0x2c]
push str.explorer.exe
push ecx
call sub.MSVCRT.dll__mbsicmp
add esp, 8
test eax, eax
je 0x40a94e
lea edx, [esp + 8]
push edx
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x40a962
lea eax, [esp + 0x2c]
push str.explorer.exe
push eax
call sub.MSVCRT.dll__mbsicmp
add esp, 8
test eax, eax
jne 0x40a929
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop edi
pop esi
add esp, 0x128
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor eax, eax
pop esi
add esp, 0x128
ret
Function at 0x40ae70
Capabilities:
Check if file exists
Delete file

Disassembly:
sub esp, 0x208
push ebx
push ebp
mov ebp, dword [esp + 0x21c]
push esi
test ebp, ebp
push edi
je 0x40af69
push ebp
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x40af69
mov esi, dword [esp + 0x220]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x40aefc
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x11]
mov byte [esp + 0x10], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x10]
push eax
push esi
call fcn.0040ce50
add esp, 8
lea ecx, [esp + 0x10]
push ebp
push ecx
call ebx
test eax, eax
jne 0x40aef1
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x208
ret 0xc
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x40af69
mov edx, dword [esp + 0x21c]
push 0
push 0xa
push esi
push edx
call fcn.00407570
add esp, 0x10
test eax, eax
je 0x40af69
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x115]
mov byte [esp + 0x114], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x114]
push eax
push esi
call fcn.0040ce50
add esp, 8
lea ecx, [esp + 0x114]
push ebp
push ecx
call ebx
test eax, eax
jne 0x40af62
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x208
ret 0xc
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x208
ret 0xc

Function at 0x40c220
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x10], ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret
Function at 0x40ce50
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x490
mov ecx, 8
xor eax, eax
push ebx
mov ebx, dword [esp + 0x49c]
push esi
push edi
mov edi, ebx
push 0
rep stosd dword es:[edi], eax
push 0
push 3
stosb byte es:[edi], al
mov eax, dword [esp + 0x4ac]
push 0
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40ce9c
pop edi
pop esi
xor al, al
pop ebx
add esp, 0x490
ret
lea ecx, [esp + 0x44]
push ecx
call fcn.0040c220
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
add esp, 4
lea edx, [esp + 0xc]
lea eax, [esp + 0x9c]
push 0
push edx
push 0x400
push eax
push esi
call edi
test eax, eax
je 0x40cf03
mov eax, dword [esp + 0xc]
test eax, eax
jbe 0x40cf03
lea ecx, [esp + 0x9c]
push eax
lea edx, [esp + 0x48]
push ecx
push edx
call fcn.0040c250
add esp, 0xc
lea eax, [esp + 0xc]
lea ecx, [esp + 0x9c]
push 0
push eax
push 0x400
push ecx
push esi
call edi
test eax, eax
jne 0x40ceca
lea edx, [esp + 0x44]
lea eax, [esp + 0x10]
push edx
push eax
call fcn.0040c300
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
lea edi, [esp + 0x20]
xor ecx, ecx
mov cl, byte [esp + esi + 0x10]
push ecx
push str._02x
push 2
push edi
call sub.MSVCRT.dll__snprintf
add esp, 0x10
inc esi
add edi, 2
cmp esi, 0x10
jl 0x40cf22
mov ecx, 8
lea esi, [esp + 0x20]
mov edi, ebx
mov al, 1
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
pop ebx
add esp, 0x490
ret
Function at 0x40dcb0
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x41b146
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0x20], esi
call fcn.00411b38
mov dword [esi], eax
push 0
mov dword [esp + 0x30], 0
call fcn.00410819
mov dword [esi + 4], eax
push 0
call fcn.00410819
mov dword [esi + 8], eax
mov edi, dword [0x424500]
push 0
call dword [sym.imp.MSVCRT.dll_time]
push eax
call fcn.004105e4
mov dword [edi + 0x238], 0x10
mov edi, dword [esp + 0x44]
push 0
mov ebx, dword [edi*4 + 0x422348]
call fcn.00410819
push ebx
push eax
mov dword [esp + 0x38], eax
call fcn.00413a46
mov ebx, dword [edi*4 + 0x422370]
push 0
call fcn.00410819
push ebx
push eax
mov dword [esp + 0x40], eax
call fcn.00413a46
mov ebx, dword [edi*4 + 0x422320]
push 0
call fcn.00410819
push ebx
push eax
mov dword [esp + 0x48], eax
call fcn.00413a46
mov ebx, dword [edi*4 + 0x4223c0]
push 0
call fcn.00410819
push ebx
push eax
mov dword [esp + 0x50], eax
call fcn.00413a46
add esp, 0x40
mov ebx, dword [edi*4 + 0x4223e8]
push 0
call fcn.00410819
push ebx
push eax
mov dword [esp + 0x18], eax
call fcn.00413a46
mov edi, dword [edi*4 + 0x422398]
push 0
mov byte [esp + 0x3c], 7
call fcn.00410819
mov ebx, eax
push edi
push ebx
call fcn.00413a46
mov eax, dword [esi + 4]
push eax
push ebx
call fcn.004111e2
push ebx
call fcn.00410e17
push 0
lea ecx, [esp + 0x3c]
lea edx, [esp + 0x40]
push ecx
lea eax, [esp + 0x48]
push edx
push eax
call fcn.00413a27
add esp, 0x34
call fcn.00411b38
mov edi, eax
lea ecx, [esp + 0xc]
push edi
push 0
call fcn.0040ec34
push eax
lea ecx, [esp + 0x1c]
call fcn.0040ec34
push eax
call fcn.00411bcf
mov ecx, dword [esi]
push ecx
push edi
call fcn.004123ba
push edi
call fcn.00411ba2
mov edx, dword [esp + 0x28]
push edx
call fcn.00410e17
mov eax, dword [esp + 0x30]
push eax
call fcn.00410e17
mov ecx, dword [esp + 0x38]
push ecx
call fcn.00410e17
mov edx, dword [esp + 0x40]
push edx
call fcn.00410e17
mov eax, dword [esp + 0x48]
push eax
call fcn.00410e17
mov ecx, dword [esp + 0x54]
add esp, 0x30
mov eax, esi
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add esp, 0x24
ret 4
Function at 0x40df20
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x41b198
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push esi
push edi
mov edi, ecx
lea eax, [esp + 8]
lea esi, [edi + 4]
push esi
push eax
call fcn.0040f98d
lea ecx, [esp + 0x10]
push edi
lea edx, [esp + 0x18]
push ecx
push edx
mov dword [esp + 0x34], 0
call fcn.004137dd
add esp, 0x14
mov edi, dword [esp + 0x30]
lea ecx, [esp + 0xc]
push edi
mov byte [esp + 0x24], 1
call fcn.004136ba
mov eax, dword [esi]
push eax
push eax
mov eax, dword [edi]
push eax
call fcn.0041430e
lea ecx, [esp + 0x14]
push esi
lea edx, [esp + 0x40]
push ecx
push edx
call fcn.0040f923
mov ecx, dword [esp + 0x20]
mov edx, dword [eax]
push ecx
push edx
call fcn.004111e2
mov eax, dword [esp + 0x50]
push eax
call fcn.00410e17
mov ecx, dword [esp + 0x4c]
push edi
lea edx, [esp + 0x3c]
push ecx
push edx
call fcn.0040efe3
push eax
mov eax, dword [esp + 0x60]
lea ecx, [esp + 0x44]
push eax
push ecx
mov byte [esp + 0x5c], 2
call fcn.0040ed74
lea edx, [esp + 0x44]
mov byte [esp + 0x5c], 3
push edx
push eax
lea eax, [esp + 0x6c]
push eax
call fcn.0040efe3
add esp, 0x48
push esi
lea ecx, [esp + 0x34]
push eax
push ecx
mov byte [esp + 0x2c], 4
call fcn.0040f168
mov edx, dword [edi + 4]
mov eax, dword [eax]
push edx
push eax
call fcn.004111e2
mov ecx, dword [esp + 0x44]
push ecx
call fcn.00410e17
mov edx, dword [esp + 0x40]
push edx
call fcn.00410e17
mov eax, dword [esp + 0x2c]
push eax
call fcn.00410e17
mov ecx, dword [esp + 0x34]
push ecx
call fcn.00410e17
mov edx, dword [esp + 0x30]
push edx
call fcn.00411ba2
mov eax, dword [esp + 0x30]
push eax
call fcn.00410e17
mov ecx, dword [esp + 0x44]
add esp, 0x2c
mov dword fs:[0], ecx
pop edi
pop esi
add esp, 0x1c
ret 0xc
Function at 0x40e3a0
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x41b258
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
mov ebx, dword [esp + 0x28]
push esi
push edi
cmp ebx, 0x40
mov edi, ecx
jg 0x40e4f7
push 0
call fcn.00410819
mov esi, dword [esp + 0x38]
mov dword [esp + 0x10], eax
push eax
mov eax, dword [esi]
push eax
call fcn.004111e2
add esp, 0xc
lea ecx, [esi + 4]
mov dword [esp + 0x20], 0
push ecx
lea ecx, [esp + 0x14]
call fcn.0040e510
mov al, byte [esi + 8]
mov byte [esp + 0x14], al
test al, al
mov dword [esp + 0x20], 1
jne 0x40e421
mov edx, dword [esp + 0x10]
push edx
call fcn.00410e17
mov eax, dword [esp + 0x10]
push eax
jmp 0x40e4ef
mov ecx, dword [esp + 0xc]
push ecx
call fcn.004110d6
lea edx, [eax*4]
add esp, 4
cmp edx, 0x40
ja 0x40e4e0
mov eax, dword [esp + 0x10]
push eax
call fcn.004110d6
lea ecx, [eax*4]
add esp, 4
cmp ecx, 0x40
ja 0x40e4e0
push 0
call fcn.00410819
mov dword [esp + 0x34], eax
mov edx, dword [esp + 0x30]
lea eax, [esp + 0x38]
push edx
push ebx
push eax
mov byte [esp + 0x30], 2
call fcn.0040f2a7
mov ecx, dword [esp + 0x40]
mov edx, dword [eax]
push ecx
push edx
call fcn.004111e2
mov eax, dword [esp + 0x4c]
push eax
call fcn.00410e17
mov edx, dword [esp + 0x44]
add esp, 0x1c
lea ecx, [esp + 0x30]
push esi
push ecx
push edx
mov ecx, edi
call fcn.0040e060
mov bl, al
mov eax, dword [esp + 0x30]
push eax
call fcn.00410e17
mov ecx, dword [esp + 0x14]
push ecx
call fcn.00410e17
mov edx, dword [esp + 0x14]
push edx
call fcn.00410e17
add esp, 0xc
mov al, bl
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret 0x10
mov eax, dword [esp + 0x10]
push eax
call fcn.00410e17
mov ecx, dword [esp + 0x10]
push ecx
call fcn.00410e17
add esp, 8
mov ecx, dword [esp + 0x18]
pop edi
pop esi
xor al, al
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret 0x10
Function at 0x4105e4
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 1
pop esi
call fcn.004102f7
mov edi, dword [ebp + 8]
mov ecx, eax
mov dword [ebp + 8], 0xe
and dword [ecx + 0x134], 0
and dword [ecx + 0x130], 0
xor dword [ecx + 0x9c], edi
mov eax, dword [ebp + 8]
push 0x25
cdq
pop ebx
add dword [ebp + 8], 0xe
idiv ebx
xor dword [ecx + edx*4 + 0x9c], esi
sub edi, esi
cmp dword [ebp + 8], 0x206
lea eax, [ecx + edx*4 + 0x9c]
mov eax, esi
mov esi, edi
mov edi, eax
jl 0x410612
mov esi, 0x3e8
call fcn.00410562
dec esi
jne 0x410643
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x414c75
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push 0x5c
push 0
push esi
call sub.MSVCRT.dll_memset
and dword [esi + 0x10], 0
and dword [esi + 0x14], 0
add esp, 0xc
and dword [esi + 0x58], 0
mov dword [esi], 0x67452301
mov dword [esi + 4], 0xefcdab89
mov dword [esi + 8], 0x98badcfe
mov dword [esi + 0xc], 0x10325476
pop esi
pop ebp
ret
Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40c7d0
nop
mov ecx, 0x712f01e3
nop
nop
test eax, eax
nop
nop
je 0x43204e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x432024
nop
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42f314
nop
mov ecx, 0x7c1b5626
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x432084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43206c
nop
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x40de38
nop
nop
mov ecx, 0x5ef17046
test eax, eax
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x433024
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x4304d8
nop
mov ecx, 0x11e914a1
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x433084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x401d92
Capabilities:
Terminate process

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

Function at 0x401da1
Capabilities:
Create thread

Disassembly:
push esi
push edi
mov esi, ecx
xor edi, edi
cmp dword [esi + 0x50], edi
je 0x401de7
cmp dword [esi + 4], edi
je 0x401dca
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 0x403e3b
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 0x40212b
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.00401d92
leave
ret

Function at 0x4024a1
Capabilities:
Accept command line arguments

Disassembly:
push 0x24
mov eax, 0x411ba4
call fcn.004019d4
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [ebp - 0x2c]
call fcn.004021b7
mov ecx, dword [esi]
and dword [ebp - 4], 0
lea eax, [ebp - 0x2c]
push eax
call fcn.004026ca
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.0040236a
inc bl
je 0x4024f1
or eax, 0xffffffff
jmp 0x40258a
mov ecx, esi
call fcn.00402fd9
mov ecx, esi
call fcn.0040322d
mov ecx, dword [esi]
call fcn.004033eb
dec eax
je 0x402580
dec eax
je 0x402576
dec eax
je 0x40256c
dec eax
je 0x402562
dec eax
je 0x402558
dec eax
je 0x40254f
dec eax
je 0x40251f
mov eax, edi
jmp 0x40258a
call fcn.00410d6d
lea ecx, [ebp - 0x30]
call fcn.00410ded
mov ecx, esi
mov dword [ebp - 4], edi
mov dword [esi + 4], 2
call fcn.00406871
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
mov esi, eax
call fcn.0040487e
mov eax, esi
jmp 0x40258a
mov ecx, esi
call fcn.00406433
jmp 0x40258a
mov ecx, dword [esi + 8]
call fcn.0040f2b8
jmp 0x40258a
mov ecx, dword [esi + 8]
call fcn.0040fb10
jmp 0x40258a
mov ecx, dword [esi + 8]
call fcn.0040f1c9
jmp 0x40258a
mov ecx, dword [esi + 8]
call fcn.0040f985
jmp 0x40258a
mov ecx, esi
mov dword [esi + 4], edi
call fcn.004067f1
call fcn.00401d83
ret
Function at 0x40345e
Capabilities:
Accept command line arguments

Disassembly:
push 0x60
mov eax, 0x413294
call fcn.004019d4
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 0x4035ec
cmp dword [edi + 0x10], ebx
jne 0x4034c4
lea eax, [ebp - 0x48]
push eax
call fcn.004112bd
pop ecx
mov byte [ebp - 4], 1
mov dword [ebp - 0x68], 1
jmp 0x4034d6
push edi
lea ecx, [ebp - 0x64]
call fcn.00402bc9
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.00411185
add esp, 0xc
mov dword [ebp - 4], 3
test byte [ebp - 0x68], 2
je 0x403504
and dword [ebp - 0x68], 0xfffffffd
push ebx
push 1
lea ecx, [ebp - 0x64]
call fcn.0040236a
test byte [ebp - 0x68], 1
mov byte [ebp - 4], 5
je 0x403519
push ebx
push 1
lea ecx, [ebp - 0x48]
call fcn.0040236a
lea eax, [ebp - 0x2c]
push eax
mov ecx, esi
call fcn.004110b9
push edi
mov ecx, esi
call fcn.004111f7
test al, al
je 0x4035de
push str.PerfToolInit
mov ecx, esi
call fcn.00411010
push str.PerfToolTerm
mov ecx, esi
mov dword [0x41b298], eax
call fcn.00411010
push str.PerfToolTermForce
mov ecx, esi
mov dword [0x41b29c], eax
call fcn.00411010
push str.PerfLogBegin
mov ecx, esi
mov dword [0x41b2a0], eax
call fcn.00411010
push str.PerfLogEnd
mov ecx, esi
mov dword [0x41b2a4], eax
call fcn.00411010
push str.PerfLogBegin2
mov ecx, esi
mov dword [0x41b2a8], eax
call fcn.00411010
push str.PerfLogEnd2
mov ecx, esi
mov dword [0x41b2ac], eax
call fcn.00411010
push str.AddToStrTable
mov ecx, esi
mov dword [0x41b2b0], eax
call fcn.00411010
push str.PerfStubBegin
mov ecx, esi
mov dword [0x41b2b4], eax
call fcn.00411010
push str.PerfStubEnd
mov ecx, esi
mov dword [0x41b2b8], eax
call fcn.00411010
mov dword [0x41b2bc], eax
push ebx
push 1
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], bl
call fcn.0040236a
mov eax, dword [0x41b298]
cmp eax, ebx
je 0x4035f7
call eax
mov eax, esi
call fcn.00401d83
ret 4

Function at 0x403c23
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
lea eax, [ebp - 4]
push eax
push 0x2001f
xor esi, esi
push esi
push dword [ebp + 0xc]
mov dword [ebp - 4], esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x403c83
push edi
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push dword [ebp + 0x10]
mov dword [ebp - 0x10], esi
push dword [ebp - 4]
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
cmp edi, esi
pop edi
je 0x403c86
mov eax, dword [ebp + 0x14]
pop esi
leave
ret