joyce8/EMBER2024-capa huggingface dataset:
Function at 0x570419
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x5db040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.005653d0
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.005653d0
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x570490
cmp word [ecx], dx
je 0x570490
mov eax, dword [0x5b9e44]
push edi
dec eax
push eax
push 0x5b9d30
call fcn.005703b8
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x570503
cmp word [eax], dx
je 0x570503
mov eax, dword [edi]
test eax, eax
je 0x5704b4
cmp word [eax], dx
je 0x5704b4
lea eax, [ebp - 0x10]
push eax
call fcn.0056fd9b
jmp 0x5704bd
lea eax, [ebp - 0x10]
push eax
call fcn.0056fe36
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x57052d
mov eax, dword [0x5b9d2c]
push dword [ebp - 0x14]
dec eax
push eax
push 0x5b9a20
call fcn.005703b8
add esp, 0xc
test al, al
je 0x57052d
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x5704f8
cmp word [eax], di
je 0x5704f8
lea eax, [ebp - 0x10]
push eax
call fcn.0056fd9b
pop ecx
jmp 0x57052f
lea eax, [ebp - 0x10]
push eax
call fcn.0056fe36
jmp 0x5704f5
mov eax, dword [edi]
test eax, eax
je 0x57051a
cmp word [eax], dx
je 0x57051a
lea eax, [ebp - 0x10]
push eax
call fcn.0056fd50
pop ecx
jmp 0x57052d
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x5705f8
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.0057023d
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x5705f8
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x5705f8
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x5705f8
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x570585
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.00567af3
test ebx, ebx
je 0x5705f3
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.00567af3
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x5705f8
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x5705f8
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.0055e5b5
add esp, 0x10
xor eax, eax
inc eax
jmp 0x5705fa
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00549495
leave
ret
Function at 0x575550
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x57557d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x57557d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x425426
Capabilities:
Check for software breakpoints

Disassembly:
call 0x42542b
pop eax
mov ebx, 0x400000
mov edi, dword [ebx + 0x194]
mov esi, dword [ebx + 0xc0]
mov edx, edi
sub edx, esi
lea ebp, [edx + eax + 0x40]
lea eax, [ebx + esi]
dec eax
mov cl, byte [eax]
cmp cl, 0xcc
je 0x42544b
sub eax, 9
add dword [eax], edx
add eax, 6
add dword [eax], edx
mov edx, dword [eax]
mov ecx, esi
sub ecx, dword [ebx + 0x16c]
add esi, ebx
add edi, ebx
dec esi
dec edi
mov al, byte [esi]
mov byte [edi], al
dec ecx
je 0x42547a
cmp edi, ebp
jne 0x42546b
jmp ebp
mov esi, edi
lea edi, [ebx + 0x1000]
push edi
mov ecx, edx
sub ecx, esi
push ecx
push esi
call fcn.004252cd
lea edx, [eax - 4]
sub edx, dword [edx]
mov esi, dword [edx + 0x80]
push edx
add esi, ebx
mov eax, dword [esi + 0xc]
or eax, eax
je 0x4254e6
add eax, ebx
push eax
call sub.kernel32.dll_LoadLibraryA
mov ebp, eax
mov ecx, dword [esi]
add ecx, ebx
mov edi, dword [esi + 0x10]
add edi, ebx
mov eax, dword [ecx]
or eax, eax
je 0x4254e1
pushal
test eax, 0x80000000
je 0x4254cb
and eax, 0x7fffffff
jmp 0x4254cf
lea eax, [ebx + eax + 2]
push eax
push ebp
call sub.kernel32.dll_GetProcAddress
mov dword [edi], eax
popal
add edi, 4
add ecx, 4
jmp 0x4254b6
add esi, 0x14
jmp 0x42549c
pop edx
add ebx, dword [edx + 0x28]
call 0x4254ef
pop ecx
sub ecx, edx
shr ecx, 2
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
jmp ebx
Function at 0x40ce09
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x422234]
jne 0x40ce13
repz ret
jmp fcn.00413639

Function at 0x413b7e
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004104e0
and dword [ebp - 4], 0
cmp dword [0x423e1c], 0
mov ebx, eax
jne 0x413c2f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x413ce0
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x413ce0
push eax
call fcn.0041046e
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x423e1c], eax
call esi
push eax
call fcn.0041046e
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x423e20], eax
call esi
push eax
call fcn.0041046e
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x423e24], eax
call esi
push eax
call fcn.0041046e
pop ecx
mov dword [0x423e2c], eax
test eax, eax
je 0x413c2f
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0041046e
pop ecx
mov dword [0x423e28], eax
mov eax, dword [0x423e28]
cmp eax, ebx
je 0x413c87
cmp dword [0x423e2c], ebx
je 0x413c87
push eax
call fcn.004104e9
push dword [0x423e2c]
mov esi, eax
call fcn.004104e9
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x413c87
test edi, edi
je 0x413c87
call esi
test eax, eax
je 0x413c7e
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x413c7e
test byte [ebp - 0xc], 1
jne 0x413c87
or dword [ebp + 0x10], 0x200000
jmp 0x413cc0
mov eax, dword [0x423e20]
cmp eax, ebx
je 0x413cc0
push eax
call fcn.004104e9
pop ecx
test eax, eax
je 0x413cc0
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x413cc0
mov eax, dword [0x423e24]
cmp eax, ebx
je 0x413cc0
push eax
call fcn.004104e9
pop ecx
test eax, eax
je 0x413cc0
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x423e1c]
call fcn.004104e9
pop ecx
test eax, eax
je 0x413ce0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x413ce2
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x401000
Capabilities:
Execute command

Disassembly:
push ebp
mov ebp, esp
sub esp, 0
nop
mov eax, section..data
push eax
call sub.msvcrt.dll_puts
add esp, 4
mov eax, str.pause
push eax
call sub.msvcrt.dll_system
add esp, 4
leave
ret
Function at 0x40222b
Capabilities:
Access the windows event log
Clear file content
Clear windows event logs
Get common file path
Get keyboard layout

Disassembly:
sub esp, 0x800
push esi
push edi
xor esi, esi
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFindAtomA]
cmp edi, 0x58ce99d
jg 0x40224f
inc edi
cmp edi, 0x1f6502b0
jl 0x402237
cmp dword [0x47de1c], 0x400
jne 0x4022a8
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push esi
push esi
call dword [sym.imp.USER32.dll_DdeCmpStringHandles]
push esi
call dword [sym.imp.USER32.dll_GetKeyboardLayoutNameW]
push 0x46ba98
push esi
call dword [sym.imp.ADVAPI32.dll_BackupEventLogW]
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_ClearEventLogW]
push str.digehogacisicaxafoxanet
push esi
call fcn.004025ee
push esi
push esi
call fcn.00402744
push esi
call fcn.004027f1
push esi
call fcn.00402800
add esp, 0x18
xor edi, edi
cmp edi, 0xd0fe
jge 0x4022b9
push esi
call dword [sym.imp.USER32.dll_GetCaretPos]
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp edi, 0x58bc6e
jg 0x4022d8
inc edi
cmp edi, 0xe52f
jl 0x4022aa
mov eax, dword [0x46deb4]
mov dword [0x47de1c], eax
call fcn.00402004
mov edi, 0x3078f
cmp dword [0x47de1c], 0x51f
jne 0x402304
push esi
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
dec edi
jne 0x4022ec
pop edi
xor eax, eax
pop esi
add esp, 0x800
ret 0x10

Function at 0x40615e
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x46db90]
jne 0x406168
repz ret
jmp fcn.00407ad3
Function at 0x40769e
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x46db90]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00403a56
and dword [ebp - 0x14], 0
cmp dword [0x4789dc], 0
mov dword [ebp - 0x18], eax
jne 0x407751
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4077f9
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x4077f9
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x4789dc], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x4789e0], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x4789e4], eax
call edi
push eax
call esi
mov dword [0x4789ec], eax
test eax, eax
je 0x407751
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x4789e8], eax
mov eax, dword [0x4789e8]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x4077aa
cmp dword [0x4789ec], ecx
je 0x4077aa
push eax
call esi
push dword [0x4789ec]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4077aa
test ebx, ebx
je 0x4077aa
call edi
test eax, eax
je 0x4077a1
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4077a1
test byte [ebp - 8], 1
jne 0x4077aa
or dword [ebp + 0x10], 0x200000
jmp 0x4077dd
mov eax, dword [0x4789e0]
cmp eax, dword [ebp - 0x18]
je 0x4077dd
push eax
call esi
test eax, eax
je 0x4077dd
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4077dd
mov eax, dword [0x4789e4]
cmp eax, dword [ebp - 0x18]
je 0x4077dd
push eax
call esi
test eax, eax
je 0x4077dd
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4789dc]
call esi
test eax, eax
je 0x4077f9
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4077fb
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040615e
leave
ret
Function at 0x401000
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x401090
push ebp
mov ebp, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x10]
push ebx
cmp byte [esi], 0
je 0x40108d
push 0x5c
push esi
call dword [sym.imp.MSVCR71.dll_strchr]
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x40108d
push edi
mov byte [esi], 0
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x401066
push 0
push edi
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
test eax, eax
jne 0x40105f
test ebp, ebp
je 0x40105f
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
jmp 0x401066
push edi
push 1
call ebp
pop ecx
pop ecx
test bl, 0x10
jne 0x401087
push 0xb7
call dword [sym.imp.kernel32.dll_SetLastError]
test ebp, ebp
je 0x401087
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
mov byte [esi], 0x5c
inc esi
jne 0x401018
pop ebx
pop edi
pop ebp
xor eax, eax
inc eax
pop esi
ret

Function at 0x402bf1
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
pushal
call 0x402c00
pop dword [ebp - 0x14]
mov eax, 0x72f5fff4
add eax, 0x8d4a2c0c
sub dword [ebp - 0x14], eax
mov dword [ebp - 0x24], 0x703a2f74
sub dword [ebp - 0x24], 0x21e7ea29
mov dword [ebp - 0x20], 0x256407bd
add dword [ebp - 0x20], 0xccf4488
mov dword [ebp - 0x1c], 0xb0b0b92
sub dword [ebp - 0x1c], 0xbebec764
mov dword [ebp - 0x18], 0x823ae4b
add dword [ebp - 0x18], 0xf7dc51b5
lea eax, [ebp - 0x24]
push eax
mov eax, 0x56ad3ba2
add eax, 0xa99344ea
add eax, dword [ebp - 0x14]
call dword [eax]
mov dword [ebp - 0x24], 0x6d32ef61
sub dword [ebp - 0x24], 0xf8c0860b
mov dword [ebp - 0x20], 0xaa36d091
add dword [ebp - 0x20], 0x973590e4
mov dword [ebp - 0x1c], 0xd0289f67
add dword [ebp - 0x1c], 0x9346cd05
mov dword [ebp - 0x18], 0x8326537
sub dword [ebp - 0x18], 0x8326537
lea ebx, [ebp - 0x24]
push ebx
push eax
mov eax, 0xb8549d30
sub eax, 0xb8141c5c
add eax, dword [ebp - 0x14]
call dword [eax]
push 0x40
push 0x1000
push 0x359fe
push 0
call eax
mov ecx, 0xa9349c0e
add ecx, 0x56cba7b0
xor edx, edx
add edx, eax
mov ebx, 0x979c5567
add ebx, 0x68a4ba99
add ebx, dword [ebp - 0x14]
mov edi, 0x6059711a
add edi, 0x2775e52f
xor dword [ebp - 0x10], 0xa0b6037b
mov esi, dword [ebx]
sub dword [ebp - 8], edx
sub esi, edi
sub dword [ebp - 0x10], 0xb42a1aee
mov dword [edx], esi
sub dword [ebp - 0xc], 0x27354525
add edx, 4
add ebx, 4
loop 0x402d24
add eax, 0x2ad83057
sub eax, 0x2ad72e8c
mov ebx, eax
add eax, 5
mov ecx, 0x25eeba4f
sub ecx, 0x25aeba4f
add ecx, dword [ebp - 0x14]
call ebx
leave
ret
Function at 0x401030
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x40286b
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
push esi
push edi
mov eax, dword [0x405028]
xor eax, esp
push eax
lea eax, [esp + 0x98]
mov dword fs:[0], eax
mov esi, ecx
push 0x403510
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40109f
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [esp + 0x98]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0xc]
push eax
mov dword [esp + 0x10], 8
mov dword [esp + 0x14], 0xff
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
mov ecx, esi
call sub.mfc90u.dll_CWinApp::InitInstance
push 0
call sub.mfc90u.dll_AfxEnableControlContainer
add esp, 4
push 0x403520
mov ecx, esi
call sub.mfc90u.dll_CWinApp::SetRegistryKey
lea ecx, [esp + 0x14]
push ecx
call fcn.00401170
lea edx, [esp + 0x14]
mov dword [esp + 0xa0], 0
mov ecx, edx
mov dword [esi + 0x20], edx
call sub.mfc90u.dll_CDialog::DoModal
lea ecx, [esp + 0x14]
mov dword [esp + 0xa0], 0xffffffff
call sub.mfc90u.dll_CDialog::CDialog
xor eax, eax
mov ecx, dword [esp + 0x98]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x401220
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
sub esp, 0x23c
mov eax, dword [0x405028]
xor eax, esp
mov dword [esp + 0x238], eax
push esi
push edi
mov esi, ecx
call sub.mfc90u.dll_CDialog::OnInitDialog
mov eax, dword [esi + 0x74]
mov ecx, dword [esi + 0x20]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push eax
push 1
push 0x80
push ecx
call edi
mov edx, dword [esi + 0x74]
mov eax, dword [esi + 0x20]
push edx
push 0
push 0x80
push eax
call edi
lea ecx, [esp + 8]
push ecx
push 0x20006
push 0
push 0x4036e8
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4012d9
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x42]
push eax
mov word [esp + 0x44], dx
call sub.MSVCR90.dll_memset
add esp, 0xc
push 0x104
lea ecx, [esp + 0x3c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov ecx, dword [esp + 8]
lea edx, [eax + eax]
push edx
lea eax, [esp + 0x3c]
push eax
push 1
push 0
push 0x403744
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esp + 0xc]
push eax
mov ecx, esi
mov dword [esp + 0x10], 0x2c
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 2
call sub.mfc90u.dll_CWnd::SetWindowPlacement
mov ecx, dword [esi + 0x20]
mov edi, dword [sym.imp.USER32.dll_SetTimer]
push 0
push 0x32
push 0x3e8
push ecx
call edi
mov edx, dword [esi + 0x20]
push 0
push 0x2710
push 0x3e9
push edx
call edi
mov ecx, dword [esp + 0x240]
pop edi
pop esi
xor ecx, esp
mov eax, 1
call fcn.004020c6
add esp, 0x23c
ret
Function at 0x401420
Capabilities:
Get file version info

Disassembly:
push 0xffffffffffffffff
push 0x4027ff
mov eax, dword fs:[0]
push eax
sub esp, 0x448
mov eax, dword [0x405028]
xor eax, esp
mov dword [esp + 0x444], eax
push ebp
push esi
push edi
mov eax, dword [0x405028]
xor eax, esp
push eax
lea eax, [esp + 0x458]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x46c]
xor edi, edi
mov ecx, ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x1c], edi
call dword [0x403358]
push 0x424
lea eax, [esp + 0x34]
mov dword [esp + 0x464], edi
push edi
mov esi, 1
push eax
mov dword [esp + 0x28], esi
mov dword [esp + 0x38], 0x428
call sub.MSVCR90.dll_memset
mov ecx, dword [esp + 0x474]
add esp, 0xc
push ecx
push 8
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
lea edx, [esp + 0x2c]
push edx
push eax
call sub.KERNEL32.dll_Module32FirstW
lea eax, [esp + 0x24c]
push eax
lea ecx, [esp + 0x14]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_class]
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x14]
mov dword [esp + 0x464], esi
call dword [sym.imp.mfc90u.dll_ATL::CSimpleStringT_wchar_t_1_::GetBuffer_1]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
push 0xffffffffffffffff
lea ecx, [esp + 0x14]
mov esi, eax
call dword [sym.imp.mfc90u.dll_ATL::CSimpleStringT_wchar_t_1_::ReleaseBuffer]
cmp esi, edi
jbe 0x4015af
push esi
call sub.mfc90u.dll_new__
mov edx, dword [esp + 0x24]
add esp, 4
mov edi, eax
push edi
push esi
push edx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x24], edi
call dword [sym.imp.mfc90u.dll_ATL::CSimpleStringT_wchar_t_1_::GetBuffer_1]
push eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x40159a
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x18]
push ecx
push 0x40375c
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x40159a
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx + 0x14]
lea esi, [ecx + 0x14]
movzx edx, ax
push edx
lea edi, [ecx + 0x10]
mov ecx, dword [edi]
shr eax, 0x10
push eax
movzx eax, cx
push eax
shr ecx, 0x10
push ecx
push 0x403760
push ebx
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Format]
mov edi, dword [edi]
mov esi, dword [esi]
mov eax, edi
shr eax, 0x10
lea ecx, [eax + eax*4]
movzx edx, di
mov edi, dword [esp + 0x30]
lea eax, [edx + ecx*2]
mov ecx, esi
add esp, 0x18
lea eax, [eax + eax*4]
shr ecx, 0x10
lea eax, [ecx + eax*2]
lea edx, [eax + eax*4]
movzx eax, si
lea ecx, [eax + edx*2]
mov dword [ebp], ecx
push 0xffffffffffffffff
lea ecx, [esp + 0x14]
call dword [sym.imp.mfc90u.dll_ATL::CSimpleStringT_wchar_t_1_::ReleaseBuffer]
push edi
call sub.mfc90u.dll_delete__
add esp, 4
lea ecx, [esp + 0x10]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov eax, ebx
mov ecx, dword [esp + 0x458]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x444]
xor ecx, esp
call fcn.004020c6
add esp, 0x454
ret
Function at 0x4015f0
Capabilities:
Get common file path
Read .ini file
Terminate process

Disassembly:
push 0xffffffffffffffff
push 0x4028b4
mov eax, dword fs:[0]
push eax
sub esp, 0x224
mov eax, dword [0x405028]
xor eax, esp
mov dword [esp + 0x220], eax
push ebx
push esi
push edi
mov eax, dword [0x405028]
xor eax, esp
push eax
lea eax, [esp + 0x234]
mov dword fs:[0], eax
mov edi, dword [sym.imp.USER32.dll_FindWindowW]
push str.BatteryTestSystem
push 0
call edi
mov esi, eax
test esi, esi
jne 0x40165f
push str.UPowerful_BTS
push eax
call edi
mov esi, eax
test esi, esi
jne 0x40165f
push str.UPowerfulBTS
push eax
call edi
mov esi, eax
test esi, esi
je 0x401779
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x32]
push ecx
mov word [esp + 0x34], ax
call sub.MSVCR90.dll_memset
add esp, 0xc
push 0x104
lea edx, [esp + 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push str.Test.INI
lea ecx, [esp + 0x28]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_class]
mov edi, eax
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x20]
mov dword [esp + 0x240], 0
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_class]
lea ecx, [esp + 0x18]
push edi
push ecx
mov ecx, eax
mov byte [esp + 0x244], 1
call fcn.004019b0
add esp, 8
lea ecx, [esp + 0x1c]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
lea ecx, [esp + 0x24]
mov byte [esp + 0x23c], 4
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov edx, dword [esp + 0x18]
push edx
push 0
push str.IsRun
push str.ExeRun
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov edi, eax
lea eax, [esp + 0x10]
push eax
push esi
mov dword [esp + 0x1c], 0
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push ecx
push edx
lea ebx, [esp + 0x28]
call fcn.00401420
mov eax, dword [esp + 0x1c]
add esp, 8
cmp eax, 0x44c
jae 0x40173a
test eax, eax
jne 0x40173e
test edi, edi
jne 0x401765
mov eax, dword [esp + 0x10]
push eax
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push 4
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
jne 0x401765
push eax
push eax
push 2
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
lea ecx, [esp + 0x20]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
lea ecx, [esp + 0x18]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov ecx, dword [esp + 0x234]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x220]
xor ecx, esp
call fcn.004020c6
add esp, 0x230
ret

Function at 0x4020c6
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x405028]
jne 0x4020d0
repz ret
jmp fcn.004025ee