joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40321d
Capabilities:
Create service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x41d190]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x414], eax
mov eax, dword [ebp + 0xc]
push ebx
mov dword [ebp - 0x40c], eax
mov eax, dword [ebp + 0x10]
push esi
mov esi, ecx
mov ecx, dword [ebp + 0x18]
mov dword [ebp - 0x418], eax
mov eax, dword [esi]
push edi
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0x410], ecx
cmp eax, 0xffffffff
je 0x40330f
xor ebx, ebx
cmp eax, ebx
je 0x40330f
push 0x3ff
lea eax, [ebp - 0x403]
push ebx
push eax
mov dword [ebp - 0x408], ecx
mov byte [ebp - 0x404], bl
call fcn.00406310
push 0x400
push dword [ebp - 0x40c]
lea eax, [ebp - 0x404]
push eax
call fcn.00408170
add esp, 0x18
cmp edi, ebx
jne 0x4032d2
lea eax, [ebp - 0x404]
push ebx
push eax
call fcn.0040287b
mov edi, eax
pop ecx
pop ecx
cmp edi, ebx
je 0x40330f
push 0x2e
push edi
call fcn.004064d0
pop ecx
pop ecx
cmp eax, ebx
je 0x4032d2
mov byte [eax], bl
cmp dword [ebp - 0x410], ebx
jne 0x4032e0
mov dword [ebp - 0x408], edi
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [ebp - 0x40c]
push 1
push dword [ebp - 0x418]
push dword [ebp - 0x414]
push 0xf01ff
push dword [ebp - 0x408]
push edi
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
jmp 0x403311
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004062fc
leave
ret 0x14

Function at 0x403710
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x41d190]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, ecx
mov dword [ebp - 0x408], eax
mov eax, dword [esi]
mov byte [ebp - 0x404], 0
cmp eax, 0xffffffff
je 0x4037ea
test eax, eax
je 0x4037ea
push str.Kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp eax, 0xffffffff
je 0x40378b
test eax, eax
je 0x40378b
push str.QueryFullProcessImageNameA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40378b
lea ecx, [ebp - 0x414]
push ecx
lea ecx, [ebp - 0x404]
push ecx
push 0
push dword [esi]
mov dword [ebp - 0x414], 0x400
call eax
cmp byte [ebp - 0x404], 0
je 0x4037ad
lea eax, [ebp - 0x404]
push eax
push dword [ebp - 0x408]
call fcn.00408520
pop ecx
xor eax, eax
pop ecx
inc eax
jmp 0x4037ec
and dword [ebp - 0x40c], 0
lea eax, [ebp - 0x40c]
push eax
push 4
lea eax, [ebp - 0x410]
push eax
push dword [esi]
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
je 0x4037ea
push 0x400
lea eax, [ebp - 0x404]
push eax
push dword [ebp - 0x410]
push dword [esi]
call sub.PSAPI.DLL_GetModuleFileNameExA
jmp 0x403794
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004062fc
leave
ret 4
Function at 0x4037fb
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
mov eax, dword [0x41d190]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor esi, esi
push esi
push 2
mov dword [ebp - 0x134], eax
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
jne 0x403835
xor eax, eax
jmp 0x4038d0
push 0x124
lea eax, [ebp - 0x128]
push esi
push eax
mov dword [ebp - 0x130], esi
call fcn.00406310
add esp, 0xc
lea eax, [ebp - 0x12c]
push eax
mov esi, 0x128
push edi
mov dword [ebp - 0x12c], esi
call sub.KERNEL32.dll_Process32First
jmp 0x4038a7
push dword [ebp - 0x134]
lea eax, [ebp - 0x108]
push eax
call fcn.00412959
pop ecx
pop ecx
test eax, eax
je 0x4038ad
push esi
lea eax, [ebp - 0x12c]
push 0
push eax
call fcn.00406310
add esp, 0xc
lea eax, [ebp - 0x12c]
push eax
push edi
mov dword [ebp - 0x12c], esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x40386a
jmp 0x4038bf
mov eax, dword [ebp - 0x124]
mov dword [ebx], eax
mov dword [ebp - 0x130], 1
test edi, edi
je 0x4038ca
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x130]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004062fc
leave
ret

Function at 0x4038df
Capabilities:
Acquire debug privileges
Terminate process

Disassembly:
push 0x10
push 0x41ae60
call fcn.00408780
xor edi, edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x20], edi
push str.SeDebugPrivilege
call fcn.00405c14
pop ecx
mov dword [ebp - 4], edi
push dword [ebp + 8]
push edi
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x1c], eax
cmp eax, edi
je 0x403929
xor esi, esi
inc esi
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x403929
mov dword [ebp - 0x20], esi
mov dword [ebp - 4], 0xfffffffe
call fcn.00403940
mov eax, dword [ebp - 0x20]
call fcn.004087c5
ret
Function at 0x403a4a
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x32c
mov eax, dword [0x41d190]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
cmp esi, ebx
je 0x403b34
cmp byte [esi], bl
je 0x403b34
push 0x1ff
lea eax, [ebp - 0x203]
push ebx
push eax
mov byte [ebp - 0x204], bl
call fcn.00406310
lea eax, [ebp - 0x204]
push esi
push eax
call fcn.00408520
lea eax, [ebp - 0x204]
push eax
call fcn.00416d96
add esp, 0x18
push ebx
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x403b34
cmp esi, ebx
je 0x403b34
push edi
push 0x124
lea eax, [ebp - 0x328]
push ebx
push eax
xor edi, edi
call fcn.00406310
add esp, 0xc
lea eax, [ebp - 0x32c]
push eax
push esi
mov dword [ebp - 0x32c], 0x128
call sub.KERNEL32.dll_Process32First
jmp 0x403b1f
lea eax, [ebp - 0x308]
push eax
call fcn.00416d96
lea eax, [ebp - 0x204]
push eax
lea eax, [ebp - 0x308]
push eax
call fcn.004086f0
add esp, 0xc
test eax, eax
jne 0x403b25
lea eax, [ebp - 0x32c]
push eax
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x403aec
jmp 0x403b28
xor edi, edi
inc edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
jmp 0x403b36
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004062fc
leave
ret
Function at 0x403b44
Capabilities:
Create process on windows

Disassembly:
push 0x74
mov eax, 0x417047
call fcn.00406b58
xor ebx, ebx
push 0x40
lea eax, [ebp - 0x7c]
push ebx
push eax
mov dword [ebp - 0x80], ebx
call fcn.00406310
mov dword [ebp - 0x3c], ebx
xor eax, eax
lea edi, [ebp - 0x38]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
add esp, 0xc
lea ecx, [ebp - 0x20]
stosd dword es:[edi], eax
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
call fcn.00405d0f
push 1
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], ebx
call fcn.00405cee
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileA]
mov byte [ebp - 4], 1
mov edi, 0x80
cmp dword [ebp + 0x18], ebx
je 0x403bc8
lea ecx, [ebp - 0x2c]
call fcn.00405d0c
push ebx
push edi
push 3
push eax
push 3
push 0x80000000
push dword [ebp + 0x18]
call esi
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], 1
cmp dword [ebp + 0x1c], ebx
je 0x403bf1
lea ecx, [ebp - 0x2c]
call fcn.00405d0c
push ebx
push edi
push 4
push eax
push 3
push 0x40000000
push dword [ebp + 0x1c]
call esi
mov edi, eax
mov dword [ebp - 0x14], 1
jmp 0x403bf4
mov edi, dword [ebp - 0x18]
mov dword [ebp - 0x80], 0x44
cmp dword [ebp - 0x14], ebx
je 0x403c10
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x54], 0x100
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], edi
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x80]
push eax
mov eax, dword [ebp + 0x14]
push ebx
push ebx
or eax, 0x8000000
push eax
push ebx
push ebx
push ebx
push dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x403c55
xor esi, esi
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], bl
call fcn.00405d0b
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.00405d38
mov eax, esi
call fcn.00406bf7
ret
cmp dword [ebp + 0x10], ebx
je 0x403c71
push 0xffffffffffffffff
push dword [ebp - 0x3c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp + 0xc]
push dword [ebp - 0x3c]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
cmp dword [ebp - 0x10], 0xffffffff
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x403c87
cmp dword [ebp - 0x10], ebx
je 0x403c87
push dword [ebp - 0x10]
call esi
cmp edi, 0xffffffff
je 0x403c93
cmp edi, ebx
je 0x403c93
push edi
call esi
push dword [ebp - 0x3c]
call esi
push dword [ebp - 0x38]
call esi
xor esi, esi
inc esi
jmp 0x403c36
Function at 0x404009
Capabilities:
Check mutex on windows

Disassembly:
push 0x1c
mov eax, 0x416ff7
call fcn.00406b58
lea ecx, [ebp - 0x14]
call fcn.00405d0f
and dword [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.00405ccb
lea ecx, [ebp - 0x1c]
call fcn.00405d0f
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.00405d3d
push 0
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x28]
call fcn.00405cee
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.00405d0c
push dword [ebp + 8]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [eax - 0xb7]
neg esi
lea ecx, [ebp - 0x28]
sbb esi, esi
mov byte [ebp - 4], 1
call fcn.00405d0b
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0
call fcn.00405d56
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00405d38
lea eax, [esi + 1]
call fcn.00406bf7
ret

Function at 0x40410c
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push edi
push 0
push 0
push dword [ebp + 0xc]
push dword [ebp + 0x10]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
xor ecx, ecx
test eax, eax
setne cl
mov edi, ecx
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x404138
mov dword [ecx], eax
jmp 0x404148
cmp eax, 0xffffffff
je 0x404148
test eax, eax
je 0x404148
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop ebp
ret
Function at 0x404695
Capabilities:
Acquire debug privileges
Enumerate processes

Disassembly:
push 0x938
mov eax, 0x41711d
call fcn.00406bc1
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
push ebx
call fcn.00406a40
pop ecx
push 0
push 2
mov dword [ebp - 0x93c], eax
mov dword [ebp - 0x938], 0x128
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x4047c2
test esi, esi
je 0x4047c2
mov dword [ebp - 0x944], esi
and dword [ebp - 4], 0
lea eax, [ebp - 0x938]
push eax
push esi
call sub.KERNEL32.dll_Process32First
push str.SeDebugPrivilege
mov dword [ebp - 0x940], eax
call fcn.00405c14
cmp dword [ebp - 0x940], 0
pop ecx
je 0x4047bb
push 0x7ff
lea eax, [ebp - 0x80f]
push 0
push eax
mov byte [ebp - 0x810], 0
call fcn.00406310
push 0x800
lea eax, [ebp - 0x810]
push eax
push dword [ebp - 0x930]
call fcn.0040419a
add esp, 0x18
test eax, eax
je 0x4047a6
cmp byte [ebp - 0x810], 0
je 0x4047a6
lea eax, [ebp - 0x810]
push eax
call fcn.00403672
lea eax, [ebp - 0x810]
push eax
push ebx
call fcn.00412959
add esp, 0xc
test eax, eax
je 0x4047ca
cmp byte [ebp - 0x810], 0x22
jne 0x4047a6
push dword [ebp - 0x93c]
lea eax, [ebp - 0x80f]
push eax
push ebx
call fcn.00414074
add esp, 0xc
test eax, eax
jne 0x4047a6
mov eax, dword [ebp - 0x93c]
cmp byte [ebp + eax - 0x80f], 0x22
je 0x4047ca
lea eax, [ebp - 0x938]
push eax
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x404712
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
call fcn.00406c0b
ret
mov eax, dword [ebp - 0x930]
push esi
mov dword [edi], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
jmp 0x4047c4

Function at 0x40480e
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
mov eax, dword [0x41d190]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor ebx, ebx
push ebx
mov esi, str._pmc
push esi
call sub.KERNEL32.dll_GetCommandLineA
push eax
call fcn.00405d81
add esp, 0xc
test al, al
je 0x4048c5
push edi
mov edi, 0x3ff
push edi
lea eax, [ebp - 0x803]
push ebx
push eax
mov byte [ebp - 0x804], bl
call fcn.00406310
push edi
lea eax, [ebp - 0x403]
push ebx
push eax
mov byte [ebp - 0x404], bl
call fcn.00406310
lea eax, [ebp - 0x404]
push eax
call fcn.0040454e
call sub.KERNEL32.dll_GetCommandLineA
push esi
push eax
call fcn.004086f0
push esi
mov edi, eax
call fcn.00406a40
add eax, edi
push eax
lea eax, [ebp - 0x404]
push eax
lea eax, [ebp - 0x804]
push str.__s__s
push eax
call fcn.00406583
push ebx
push ebx
push 0x20
lea eax, [ebp - 0x804]
push ebx
push eax
call fcn.00404626
add esp, 0x4c
xor eax, eax
inc eax
pop edi
jmp 0x4048c7
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004062fc
leave
ret
Function at 0x4059b6
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
mov eax, dword [0x41d190]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x404]
push eax
mov esi, 0x400
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
cmp eax, esi
ja 0x4059f2
test eax, eax
je 0x4059f2
lea eax, [ebp - 0x404]
push eax
jmp 0x4059f7
push str.c:_temp
push edi
call fcn.00408520
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004062fc
leave
ret

Function at 0x405a6e
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0
mov eax, dword [0x41d190]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x98
lea eax, [ebp - 0x9c]
push 0
push eax
call fcn.00406310
add esp, 0xc
lea eax, [ebp - 0xa0]
push eax
mov dword [ebp - 0xa0], 0x9c
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
xor ecx, ecx
inc ecx
test eax, eax
je 0x405b32
cmp dword [ebp - 0x9c], 5
jne 0x405ada
cmp dword [ebp - 0x98], ecx
jne 0x405acb
push 3
pop eax
jmp 0x405b34
push 2
pop eax
cmp dword [ebp - 0x98], eax
jne 0x405b29
push 4
jmp 0x405ac8
cmp dword [ebp - 0x9c], 6
jne 0x405b32
mov eax, dword [ebp - 0x98]
test eax, eax
jne 0x405afd
cmp byte [ebp - 6], 1
setne al
dec eax
and eax, 0xfffffffd
add eax, 8
jmp 0x405b34
cmp eax, ecx
jne 0x405b0f
xor eax, eax
cmp byte [ebp - 6], cl
setne al
lea eax, [eax + eax + 6]
jmp 0x405b34
cmp eax, 2
jne 0x405b22
xor eax, eax
cmp byte [ebp - 6], cl
setne al
lea eax, [eax + eax + 7]
jmp 0x405b34
cmp eax, 3
jne 0x405b32
jmp 0x405b14
cmp dword [ebp - 0x98], 0
je 0x405b34
mov eax, ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004062fc
leave
ret

Function at 0x405b80
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push str._system_
push esi
call fcn.00412959
pop ecx
pop ecx
test eax, eax
jne 0x405ba9
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
xor eax, eax
inc eax
jmp 0x405c11
push str._system32_
push esi
call fcn.00412959
pop ecx
pop ecx
test eax, eax
jne 0x405bcc
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.00405b40
pop ecx
pop ecx
push 2
pop eax
jmp 0x405c11
push str._windows_
push esi
call fcn.00412959
pop ecx
pop ecx
test eax, eax
jne 0x405bed
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 3
jmp 0x405bc9
push str._driver_
push esi
call fcn.00412959
pop ecx
pop ecx
test eax, eax
jne 0x405c0f
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.00405b60
pop ecx
pop ecx
push 4
jmp 0x405bc9
xor eax, eax
pop esi
pop ebp
ret

Function at 0x4062fc
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41d190]
jne 0x406306
repz ret
jmp fcn.0040a8fc
Function at 0x411900
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41d190]
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.0040a39a
and dword [ebp - 0x14], 0
cmp dword [0x41f6a4], 0
mov dword [ebp - 0x18], eax
jne 0x4119b3
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x411a5b
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x411a5b
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x41f6a4], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x41f6a8], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x41f6ac], eax
call edi
push eax
call esi
mov dword [0x41f6b4], eax
test eax, eax
je 0x4119b3
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x41f6b0], eax
mov eax, dword [0x41f6b0]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x411a0c
cmp dword [0x41f6b4], ecx
je 0x411a0c
push eax
call esi
push dword [0x41f6b4]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x411a0c
test ebx, ebx
je 0x411a0c
call edi
test eax, eax
je 0x411a03
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x411a03
test byte [ebp - 8], 1
jne 0x411a0c
or dword [ebp + 0x10], 0x200000
jmp 0x411a3f
mov eax, dword [0x41f6a8]
cmp eax, dword [ebp - 0x18]
je 0x411a3f
push eax
call esi
test eax, eax
je 0x411a3f
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x411a3f
mov eax, dword [0x41f6ac]
cmp eax, dword [ebp - 0x18]
je 0x411a3f
push eax
call esi
test eax, eax
je 0x411a3f
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x41f6a4]
call esi
test eax, eax
je 0x411a5b
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x411a5d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004062fc
leave
ret
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40de38
nop
nop
mov ecx, 0xde73800
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x43304e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x433024
nop
nop
mov eax, section..data
mov ebx, 0x4304d8
nop
nop
mov ecx, 0x17f83700
test eax, eax
nop
nop
nop
nop
nop
je 0x433084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x401650
Capabilities:
Print debug messages

Disassembly:
sub esp, 0xa8
push ebp
mov ebp, ecx
mov ecx, dword [ebp]
test ecx, ecx
mov dword [esp + 8], ebp
jne 0x401670
xor eax, eax
pop ebp
add esp, 0xa8
ret 4
push ebx
push esi
lea esi, [ebp + 0x28]
push esi
lea ebx, [ebp + 8]
push ebx
call fcn.00401f70
test eax, eax
je 0x401698
mov ecx, dword [ebp + 4]
test ecx, ecx
je 0x401698
lea eax, [esp + 0xc]
push eax
call fcn.00401070
test eax, eax
jne 0x4016a6
pop esi
pop ebx
xor eax, eax
pop ebp
add esp, 0xa8
ret 4
mov edx, dword [esp + 0xc]
push edi
mov edi, dword [esi]
test edi, edi
mov dword [esp + 0x18], edx
jle 0x40176b
mov esi, 1
mov dword [esp + 0x10], edi
mov eax, dword [ebx]
test dword [esp + 0xbc], eax
je 0x4016f2
or edx, eax
cmp esi, edi
jge 0x4016f6
mov eax, edi
lea ecx, [ebx + 4]
sub eax, esi
lea ebx, [ebx]
mov ebp, dword [ecx]
not ebp
and edx, ebp
add ecx, 4
dec eax
jne 0x4016e0
mov ebp, dword [esp + 0x14]
jmp 0x4016f6
not eax
and edx, eax
mov eax, dword [esp + 0x10]
add ebx, 4
inc esi
dec eax
mov dword [esp + 0x10], eax
jne 0x4016c2
cmp dword [esp + 0x18], edx
mov dword [esp + 0x10], edx
je 0x40176b
push 0
push edx
mov ecx, ebp
call fcn.004015b0
test eax, eax
je 0x401760
push str.S3Timer_detect_hotplug_and_change_display_settings_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea ecx, [esp + 0x1c]
push ecx
push 0xffffffffffffffff
push 0
call dword [sym.imp.USER32.dll_EnumDisplaySettingsA]
push 0x40000000
lea edx, [esp + 0x20]
push edx
call dword [sym.imp.USER32.dll_ChangeDisplaySettingsA]
mov ecx, ebp
call fcn.00401520
pop edi
pop esi
pop ebx
mov eax, 1
pop ebp
add esp, 0xa8
ret 4
push str.S3Timer_detect_hotplug_and_change_display_settings_FAILED_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop edi
pop esi
pop ebx
mov eax, 1
pop ebp
add esp, 0xa8
ret 4

Function at 0x4019f0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
mov esi, dword [esp + 0x14]
push edi
lea eax, [esp + 0xc]
push eax
push esi
mov edi, ecx
mov edx, dword [edi + 0x104]
lea ecx, [esp + 0x20]
push ecx
push 0
push ebx
push edx
mov dword [esp + 0x24], 0x3c
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x401a67
mov eax, dword [edi + 0x104]
push 0x3c
push esi
push 3
push 0
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [esi]
mov ecx, dword [esp + 0x1c]
cdq
mov edi, eax
xor edi, edx
sub edi, edx
mov eax, ecx
cdq
xor eax, edx
sub eax, edx
cmp edi, eax
jge 0x401a67
pop edi
mov dword [esi + 0x10], 0x2bc
mov dword [esi], ecx
pop esi
mov eax, 1
pop ebx
pop ecx
ret 0xc
pop edi
pop esi
xor eax, eax
pop ebx
pop ecx
ret 0xc
Function at 0x401e70
Capabilities:
Get common file path

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4086ee
push eax
mov dword fs:[0], esp
sub esp, 0x108
push esi
push 0x104
lea eax, [esp + 0xc]
push eax
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [esp + eax + 7], 0x5c
je 0x401ec0
push 0x40934c
lea edx, [esp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 8]
push eax
push str._sVTTimer.ini
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
push 1
call fcn.00403873
add esp, 0x10
mov dword [esp + 4], eax
test eax, eax
mov dword [esp + 0x114], 0
je 0x401ef7
mov ecx, eax
call fcn.00401200
jmp 0x401ef9
xor eax, eax
mov ecx, dword [esp + 0x10c]
mov dword [esi + 0x104], eax
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x114
ret

Function at 0x401f20
Capabilities:
Read .ini file

Disassembly:
mov edx, dword [esp + 4]
test edx, edx
push esi
je 0x401f65
mov eax, dword [esp + 0xc]
test eax, eax
je 0x401f65
mov esi, dword [esp + 0x10]
test esi, esi
je 0x401f65
push ecx
mov ecx, dword [esp + 0x18]
push ecx
push esi
push str.NoData
push eax
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push esi
push str.NoData
call fcn.00403d22
add esp, 8
neg eax
sbb eax, eax
neg eax
pop esi
ret 0x10
xor eax, eax
pop esi
ret 0x10