joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405b98
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x456054], 0
je 0x405bf9
cmp word [0x456330], 0xd7b2
jne 0x405bc1
cmp dword [0x456338], 0
jbe 0x405bc1
mov eax, 0x45632c
call dword [0x456348]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x405c24
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x45202c], 0
jne 0x405c15
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x408694
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe94
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x164], ecx
mov dword [ebp - 0x168], ecx
mov dword [ebp - 0x16c], ecx
mov dword [ebp - 8], edx
mov esi, eax
xor eax, eax
push ebp
push 0x4087fb
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
xor edx, edx
call fcn.00406b1c
cmp si, word [0x4527cc]
jb 0x40872e
cmp si, word [0x4529cc]
ja 0x40872e
mov edi, 0x40
xor eax, eax
mov dword [ebp - 0xc], eax
cmp edi, dword [ebp - 0xc]
jb 0x40872e
mov ebx, dword [ebp - 0xc]
add ebx, edi
shr ebx, 1
cmp si, word [ebx*8 + 0x4527cc]
jae 0x408708
mov edi, ebx
dec edi
jmp 0x408729
cmp si, word [ebx*8 + 0x4527cc]
jbe 0x408718
inc ebx
mov dword [ebp - 0xc], ebx
jmp 0x408729
mov edx, dword [ebp - 8]
mov eax, dword [ebx*8 + 0x4527d0]
call fcn.004085a4
jmp 0x40872e
cmp edi, dword [ebp - 0xc]
jae 0x4086f2
mov eax, dword [ebp - 8]
cmp dword [eax], 0
jne 0x4087dd
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x4087dd
push 0x55
lea eax, [ebp - 0xb6]
push eax
push 0x59
movzx ebx, si
push ebx
call sub.kernel32.dll_GetLocaleInfoW
push 0x55
lea eax, [ebp - 0x160]
push eax
push 0x5a
push ebx
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x164]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.00406d1c
push dword [ebp - 0x164]
push 0x408818
lea eax, [ebp - 0x168]
lea edx, [ebp - 0x160]
mov ecx, 0x55
call fcn.00406d1c
push dword [ebp - 0x168]
push 0x408828
lea eax, [ebp - 0x16c]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.00406d1c
push dword [ebp - 0x16c]
mov eax, dword [ebp - 8]
mov edx, 5
call fcn.00407014
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408802
lea eax, [ebp - 0x16c]
mov edx, 3
call fcn.00406b14
ret
Function at 0x4089b4
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x408ab9
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x458b5c
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x458b74]
jne 0x408a00
mov eax, esi
mov edx, 0x458b78
mov ecx, 0x55
call fcn.00406d1c
push 0x458b5c
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x408aa3
push 0x458b5c
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
xor edx, edx
call fcn.00406b1c
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x408a71
cmp byte [0x458b58], 0
je 0x408a36
mov edx, esi
mov eax, ebx
call fcn.00408894
jmp 0x408a71
mov edx, esi
mov eax, ebx
call fcn.00408694
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x408a71
cmp dword [esi], 0
je 0x408a5a
mov eax, esi
mov edx, 0x408ad4
call fcn.00406e70
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.00408694
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.00406e70
push 0x458b5c
call sub.kernel32.dll_EnterCriticalSection
mov word [0x458b74], bx
push 0xaa
mov eax, dword [esi]
call fcn.00406ba8
push eax
push 0x458b78
call sub.kernel32.dll_lstrcpynW
push 0x458b5c
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408ac0
lea eax, [ebp - 4]
call fcn.00406b0c
ret
Function at 0x408cf8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00406b04
xor eax, eax
push ebp
push 0x408edd
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x408d38
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x408d52
push 0x105
mov eax, dword [ebp - 4]
call fcn.00406ba8
push eax
lea eax, [ebp - 0x21a]
push eax
call sub.kernel32.dll_lstrcpynW
cmp word [ebp - 0x21a], 0
je 0x408ec7
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x408eec
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x408de1
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x408eec
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x408de1
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x408f20
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x408de1
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x408f54
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x408ec7
xor eax, eax
push ebp
push 0x408ec0
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.00408afc
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x21a]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x408e50
mov eax, dword [ebp - 0x10]
call fcn.004040f4
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
lea eax, [ebp - 0x21a]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00406cc8
jmp 0x408e9b
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x408f94
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x408e9b
mov eax, dword [ebp - 0x10]
call fcn.004040f4
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x408f94
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00406cc8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408ec7
cmp dword [ebp - 8], 0
je 0x408eb6
mov eax, dword [ebp - 8]
call fcn.00404110
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408ee4
lea eax, [ebp - 4]
call fcn.00406b0c
ret
Function at 0x4091a8
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdd8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x228], ebx
mov dword [ebp - 0x224], ebx
mov dword [ebp - 0x220], ebx
mov esi, ecx
mov dword [ebp - 0x21c], edx
mov dword [ebp - 0x218], eax
mov eax, dword [ebp - 0x218]
call fcn.00406b04
mov eax, dword [ebp - 0x21c]
call fcn.00406b04
lea edi, [ebp - 0x210]
xor eax, eax
push ebp
push 0x409347
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
xor edx, edx
call fcn.00406b1c
xor ebx, ebx
push 0x105
mov eax, dword [ebp - 0x21c]
call fcn.00406ba8
push eax
lea eax, [ebp - 0x20a]
push eax
call sub.kernel32.dll_lstrcpynW
lea eax, [ebp - 0x20a]
push eax
call sub.kernel32.dll_lstrlenW
add eax, eax
lea edx, [ebp - 0x20a]
add eax, edx
sub eax, 2
mov dword [edi], eax
jmp 0x409248
sub dword [edi], 2
mov eax, dword [edi]
cmp word [eax], 0x2e
je 0x40925a
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
jne 0x409245
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
je 0x409313
add dword [edi], 2
mov eax, dword [edi]
mov word [eax], 0
lea eax, [ebp - 0x20a]
mov edx, dword [edi]
sub edx, eax
sar edx, 1
jns 0x409283
adc edx, 0
mov eax, 0x105
sub eax, edx
mov dword [ebp - 0x214], eax
lea edx, [ebp - 0x220]
mov eax, dword [ebp - 0x218]
call fcn.00408cf8
cmp dword [ebp - 0x220], 0
je 0x4092bb
push ebp
mov eax, dword [ebp - 0x220]
call fcn.0040909c
pop ecx
mov ebx, eax
jmp 0x409313
push ebp
call sub.kernel32.dll_GetUserDefaultUILanguage
lea edx, [ebp - 0x224]
call fcn.004089b4
mov eax, dword [ebp - 0x224]
call fcn.0040909c
pop ecx
mov ebx, eax
test bl, bl
jne 0x409306
cmp byte [0x458b58], 0
jne 0x409306
push ebp
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 0x228]
call fcn.004089b4
mov eax, dword [ebp - 0x228]
call fcn.0040909c
pop ecx
mov ebx, eax
test bl, bl
jne 0x409313
push ebp
call fcn.0040914c
pop ecx
mov ebx, eax
test bl, bl
je 0x409329
mov eax, esi
lea edx, [ebp - 0x20a]
mov ecx, 0x105
call fcn.00406d1c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40934e
lea eax, [ebp - 0x228]
mov edx, 5
call fcn.00406b14
ret

Function at 0x40ac64
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], 1
mov edi, 0xfffffff9
mov ebx, 0x452b26
mov esi, 0x452b2e
movzx eax, byte [ebx]
push eax
call sub.user32.dll_GetKeyState
movsx eax, ax
and eax, dword [ebp - 8]
je 0x40ac9f
movzx eax, byte [esi]
or dword [ebp - 4], eax
mov dword [ebp - 8], 0x8000
dec esi
dec ebx
inc edi
jne 0x40ac88
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret
Function at 0x40cee4
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf4
push ebx
push esi
push edi
mov edi, edx
mov esi, eax
test esi, esi
jne 0x40cf1c
push 0x20a
lea eax, [ebp - 0x20a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW_2
mov ecx, eax
lea edx, [ebp - 0x20a]
mov eax, edi
call fcn.00406c58
jmp 0x40cf6f
call sub.kernel32.dll_GetCommandLineW_1
call fcn.0040ce90
mov ebx, eax
mov eax, ebx
call fcn.0040cea4
dec esi
test esi, esi
jge 0x40cf21
mov edx, eax
sub edx, ebx
sar edx, 1
jns 0x40cf3f
adc edx, 0
cmp edx, 2
jl 0x40cf5b
cmp word [ebx], 0x22
jne 0x40cf5b
mov edx, eax
sub edx, 2
cmp word [edx], 0x22
jne 0x40cf5b
add ebx, 2
sub eax, 2
mov ecx, eax
sub ecx, ebx
sar ecx, 1
jns 0x40cf66
adc ecx, 0
mov eax, edi
mov edx, ebx
call fcn.00406c58
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00406ba8
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x40d140
test al, 0x10
je 0x40d145
xor eax, eax
pop ebx
pop ebp
ret
mov al, 1
pop ebx
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov esi, eax
push 0x8001
call sub.kernel32.dll_SetErrorMode
mov edi, eax
mov eax, esi
call fcn.00406ba8
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x40d30a
test al, 0x10
jne 0x40d30e
xor ebx, ebx
jmp 0x40d310
mov bl, 1
push edi
call sub.kernel32.dll_SetErrorMode
mov eax, ebx
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x40d7b8
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf0
push ebx
xor edx, edx
mov dword [ebp - 0x210], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40d822
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x20a]
push eax
push 0x105
call sub.kernel32.dll_GetTempPathW
lea eax, [ebp - 0x210]
lea edx, [ebp - 0x20a]
call fcn.00406cc8
mov eax, dword [ebp - 0x210]
mov edx, ebx
call fcn.0040d444
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d829
lea eax, [ebp - 0x210]
call fcn.00406b0c
ret

Function at 0x40d830
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
lea eax, [ebp - 0x20a]
push eax
push 0
mov eax, esi
call fcn.00406ba8
push eax
mov eax, ebx
call fcn.00406ba8
push eax
call sub.kernel32.dll_GetTempFileNameW
mov eax, edi
lea edx, [ebp - 0x20a]
mov ecx, 0x105
call fcn.00406d1c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40dfb8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
add eax, 0xfffffff8
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x14]
push eax
mov eax, dword [ebp + 8]
add eax, 0xfffffffc
push eax
push 0
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x10]
call fcn.00406ba8
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
sete al
pop ebp
ret

Function at 0x40e05c
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov esi, eax
mov eax, dword [ebp - 4]
call fcn.00406b04
xor eax, eax
push ebp
push 0x40e0ee
push dword fs:[eax]
mov dword fs:[eax], esp
test esi, esi
je 0x40e0d4
mov eax, dword [ebp - 4]
test eax, eax
je 0x40e0a1
mov edx, eax
sub edx, 0xa
cmp word [edx], 2
je 0x40e0a1
lea eax, [ebp - 4]
mov edx, dword [ebp - 4]
call fcn.00405f00
mov ebx, eax
test ebx, ebx
je 0x40e0ac
sub ebx, 4
mov ebx, dword [ebx]
inc ebx
mov eax, ebx
add eax, eax
push eax
mov eax, dword [ebp - 4]
call fcn.00406ba8
push eax
push 1
push 0
mov eax, edi
call fcn.00406ba8
push eax
push esi
call sub.advapi32.dll_RegSetValueExW
test eax, eax
sete al
jmp 0x40e0d6
xor eax, eax
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e0f5
lea eax, [ebp - 4]
call fcn.00406b0c
ret

Function at 0x40e174
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], edx
mov edi, eax
xor eax, eax
push ebp
push 0x40e235
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
mov eax, dword [ebp - 4]
call fcn.00413cc4
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0
push 0
push edi
call sub.advapi32.dll_RegQueryInfoKeyW
test eax, eax
jne 0x40e21f
cmp dword [ebp - 8], 0
jbe 0x40e21d
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
add eax, eax
call fcn.004040f4
mov ebx, eax
xor esi, esi
jmp 0x40e1fb
lea eax, [ebp - 0x10]
mov edx, ebx
call fcn.00406cc8
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.00413c9c
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 0xc], eax
inc esi
push 0
push 0
push 0
push 0
lea eax, [ebp - 0xc]
push eax
push ebx
push esi
push edi
call sub.advapi32.dll_RegEnumKeyExW
cmp eax, 0x103
jne 0x40e1de
mov eax, ebx
call fcn.00404110
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e23c
lea eax, [ebp - 0x10]
call fcn.00406b0c
ret
Function at 0x40e248
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], edx
mov edi, eax
xor eax, eax
push ebp
push 0x40e309
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
mov eax, dword [ebp - 4]
call fcn.00413cc4
push 0
push 0
push 0
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push edi
call sub.advapi32.dll_RegQueryInfoKeyW
test eax, eax
jne 0x40e2f3
cmp dword [ebp - 8], 0
jbe 0x40e2f1
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
add eax, eax
call fcn.004040f4
mov ebx, eax
xor esi, esi
jmp 0x40e2cf
lea eax, [ebp - 0x10]
mov edx, ebx
call fcn.00406cc8
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.00413c9c
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 0xc], eax
inc esi
push 0
push 0
push 0
push 0
lea eax, [ebp - 0xc]
push eax
push ebx
push esi
push edi
call sub.advapi32.dll_RegEnumValueW
cmp eax, 0x103
jne 0x40e2b2
mov eax, ebx
call fcn.00404110
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e310
lea eax, [ebp - 0x10]
call fcn.00406b0c
ret

Function at 0x40e51c
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
mov eax, dword [0x455d0c]
mov byte [eax], 1
mov edx, dword [0x40a880]
xor eax, eax
call fcn.0040ae08
mov ebx, eax
mov byte [ebx + 0x18], 1
lea eax, [ebx + 0x1e]
push eax
push 4
push ebx
push 0x40e50c
push 0
push 0
call sub.kernel32.dll_CreateThread
mov dword [ebx + 0x1a], eax
mov eax, ebx
pop ebx
pop ebp
ret

Function at 0x40e69c
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, eax
mov byte [ebx + 0x18], 0
mov eax, dword [ebx + 0x1a]
push eax
call sub.kernel32.dll_ResumeThread
cmp eax, 1
jbe 0x40e6bb
mov byte [ebx + 0x18], 1
pop ebx
pop ebp
ret
cmp word [ebx + 0x2c], 0
je 0x40e6ca
mov edx, ebx
mov eax, dword [ebx + 0x2e]
call dword [ebx + 0x2a]
pop ebx
pop ebp
ret

Function at 0x40e6d0
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, eax
mov byte [ebx + 0x18], 1
cmp word [ebx + 0x24], 0
je 0x40e6ee
push dword [ebx + 0x26]
push dword [ebx + 0x22]
mov eax, ebx
call fcn.0040e6fc
mov eax, dword [ebx + 0x1a]
push eax
call sub.kernel32.dll_SuspendThread
pop ebx
pop ebp
ret

Function at 0x40e758
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, eax
push 0
mov eax, dword [ebx + 0x1a]
push eax
call sub.kernel32.dll_TerminateThread
mov byte [ebx + 0x19], 1
pop ebx
pop ebp
ret
Function at 0x40ed94
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, edx
mov dword [ebp - 4], eax
xor edi, edi
mov eax, dword [ebp + 8]
push eax
push ecx
push esi
call sub.kernel32.dll_FindResourceW
mov ebx, eax
test ebx, ebx
je 0x40edfd
push ebx
push esi
call sub.kernel32.dll_SizeofResource
mov dword [ebp - 8], eax
push ebx
push esi
call sub.kernel32.dll_LoadResource
mov ebx, eax
test ebx, ebx
je 0x40edfd
push ebx
call sub.kernel32.dll_GlobalLock
mov esi, eax
test esi, esi
jne 0x40ede4
call sub.kernel32.dll_GetLastError_1
cmp eax, 6
jne 0x40edfd
mov esi, ebx
mov edx, esi
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
call fcn.0040e83c
mov edi, eax
cmp esi, ebx
je 0x40edfd
push ebx
call sub.kernel32.dll_GlobalUnlock
mov eax, edi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 4

Function at 0x40ee30
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 8], ebx
mov esi, ecx
mov edi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40eec8
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [ebx + 0x18], 0
jne 0x40ee7d
mov eax, dword [ebx + 0x19]
call fcn.00406ba8
push eax
push esi
mov eax, edi
call fcn.00406ba8
push eax
mov eax, dword [ebx + 0x1d]
call fcn.00406ba8
push eax
call sub.kernel32.dll_GetPrivateProfileIntW
mov dword [ebp - 4], eax
jmp 0x40eeb2
mov dword [ebp - 4], esi
mov eax, dword [ebx + 0x19]
call fcn.00406ba8
push eax
lea edx, [ebp - 8]
mov eax, esi
call fcn.0040c198
mov eax, dword [ebp - 8]
call fcn.00406ba8
push eax
mov eax, edi
call fcn.00406ba8
push eax
mov eax, dword [ebx + 0x1d]
call fcn.00406ba8
push eax
call sub.kernel32.dll_WritePrivateProfileStringW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40eecf
lea eax, [ebp - 8]
call fcn.00406b0c
ret

Function at 0x40eedc
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 2
add esp, 0xfffff004
push eax
dec eax
jne 0x40eee5
mov eax, dword [ebp - 4]
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov edi, dword [ebp + 8]
cmp byte [ebx + 0x18], 0
jne 0x40ef65
mov word [ebp - 0x2004], 0
mov eax, dword [ebx + 0x19]
call fcn.00406ba8
push eax
push 0x1000
lea eax, [ebp - 0x2004]
push eax
mov eax, esi
call fcn.00406ba8
push eax
mov eax, dword [ebp - 4]
call fcn.00406ba8
push eax
mov eax, dword [ebx + 0x1d]
call fcn.00406ba8
push eax
call sub.kernel32.dll_GetPrivateProfileStringW
test eax, eax
je 0x40ef5a
mov eax, edi
lea edx, [ebp - 0x2004]
mov ecx, 0x1000
call fcn.00406d1c
jmp 0x40ef96
mov eax, edi
xor edx, edx
call fcn.00406b1c
jmp 0x40ef96
mov eax, edi
mov edx, esi
call fcn.00406b1c
mov eax, dword [ebx + 0x19]
call fcn.00406ba8
push eax
mov eax, esi
call fcn.00406ba8
push eax
mov eax, dword [ebp - 4]
call fcn.00406ba8
push eax
mov eax, dword [ebx + 0x1d]
call fcn.00406ba8
push eax
call sub.kernel32.dll_WritePrivateProfileStringW
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x40efc8
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 8], ecx
mov edi, edx
mov esi, eax
xor eax, eax
push ebp
push 0x40f059
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, 0xfffe
call fcn.004040f4
mov dword [ebp - 4], eax
mov ebx, dword [ebp - 4]
mov eax, dword [esi + 0x19]
call fcn.00406ba8
push eax
push 0x7fff
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GetPrivateProfileSectionNamesW
mov esi, eax
add esi, esi
add esi, ebx
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00406cc8
mov edx, dword [ebp - 8]
mov eax, edi
call fcn.00413c9c
mov eax, ebx
call fcn.00406908
add eax, eax
add ebx, eax
add ebx, 2
cmp esi, ebx
ja 0x40f015
mov eax, dword [ebp - 4]
call fcn.00404110
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40f060
lea eax, [ebp - 8]
call fcn.00406b0c
ret

Function at 0x41158c
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, eax
and dword [ebx + 0x24], 0xefffffff
test dl, dl
je 0x4115a4
or dword [ebx + 0x24], 0x10000000
cmp dword [ebx + 0x1c], 0
je 0x4115da
test dl, dl
je 0x4115c3
mov eax, ebx
call dword [0x452acc]
push 5
mov eax, dword [ebx + 0x1c]
push eax
call sub.user32.dll_ShowWindow
jmp 0x4115da
and byte [ebx + 0x37], 0xfe
push 0
mov eax, dword [ebx + 0x1c]
push eax
call sub.user32.dll_ShowWindow
mov eax, ebx
call dword [0x452acc]
pop ebx
pop ebp
ret

Function at 0x413ac0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x413b70
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, edx
mov edx, 0x80000301
call fcn.0040d0c0
mov edi, eax
cmp edi, 0xffffffff
setne bl
test bl, bl
je 0x413b5a
push 0
push edi
call sub.kernel32.dll_GetFileSize
mov dword [ebp - 0xc], eax
push 0
lea eax, [ebp - 4]
mov ecx, dword [ebp - 0xc]
xor edx, edx
call fcn.00405e68
mov esi, dword [ebp - 4]
test esi, esi
je 0x413b32
mov eax, esi
sub eax, 0xa
cmp word [eax], 1
je 0x413b32
lea eax, [ebp - 4]
xor ecx, ecx
mov edx, dword [ebp - 4]
call fcn.00405f30
mov esi, eax
lea eax, [ebp - 4]
call fcn.004064b4
mov edx, eax
mov ecx, dword [ebp - 0xc]
mov eax, edi
call fcn.0040d160
mov eax, edi
call fcn.0040d10c
mov eax, dword [ebp - 8]
xor ecx, ecx
mov edx, dword [ebp - 4]
call fcn.004134e8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x413b77
lea eax, [ebp - 4]
call fcn.00405d6c
ret