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

Disassembly:
sub esp, 0x674
mov eax, dword [0x43f194]
mov edx, dword [esp + 0x678]
push edi
mov dword [esp + 0x674], eax
lea eax, [esp + 4]
push eax
push 0xf003f
mov edi, ecx
mov ecx, dword [esp + 0x688]
push 0
push ecx
push edx
mov dword [esp + 0x1c], 0x100
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x402e2d
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push esi
mov edx, dword [esp + 0x10]
push 0
push 0
push 0
push 0
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x494]
push ecx
push 0
mov esi, 0x104
push edx
mov dword [esp + 0x34], esi
call ebx
cmp eax, 0x103
je 0x402cb0
test eax, eax
jne 0x402cb0
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x480]
push eax
push ecx
call ebp
mov ecx, dword [esp + 0x10]
push 0
push 0
push 0
push 0
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x494]
push eax
push 0
push ecx
mov dword [esp + 0x34], esi
call ebx
cmp eax, 0x103
jne 0x402c74
mov ecx, dword [esp + 0x10]
push 0
push 0
push 0
push 0
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x94]
push eax
push 0
push ecx
mov dword [esp + 0x38], 0x100
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov esi, eax
cmp esi, 0x103
je 0x402da8
test esi, esi
jne 0x402d67
mov edx, dword [esp + 0x68c]
push edx
lea eax, [esp + 0x284]
push eax
call fcn.004115e7
lea ecx, [esp + 0x88]
push ecx
lea edx, [esp + 0x28c]
push edx
call fcn.004115bd
lea eax, [esp + 0x290]
push 0x4301a0
push eax
call fcn.004115bd
mov esi, dword [esp + 0x6a0]
add esp, 0x18
lea ecx, [esp + 0x280]
push ecx
push esi
mov ecx, edi
call fcn.004024c0
lea edx, [esp + 0x280]
push edx
push esi
mov ecx, edi
call fcn.00402bf0
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x80]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esi, eax
mov edx, dword [edi + 0x90]
push 0
push 0
push 0x408
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0x5a
je 0x402da0
mov eax, dword [edi + 0x90]
push 0
push 0
push 0x405
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
test esi, esi
je 0x402c46
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x80]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esi, eax
lea eax, [esp + 0x80]
push eax
mov ecx, 0x442370
call fcn.00402000
test esi, esi
jne 0x402dda
push str._:_registry_key_deleted_r_n
jmp 0x402e13
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xa
lea ecx, [esp + 0x20]
push ecx
push eax
call fcn.00411eee
add esp, 0xc
push str._:_failed_to_delete_registry_key__error_:
mov ecx, 0x442370
call fcn.00402000
lea edx, [esp + 0x1c]
push edx
mov ecx, 0x442370
call fcn.00402000
push 0x430218
mov ecx, 0x442370
call fcn.00402000
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x674]
pop edi
call fcn.00411bef
add esp, 0x674
ret 8
Function at 0x405230
Capabilities:
Check for time delay via gettickcount
Query service status
Start service

Disassembly:
sub esp, 0x20
push edi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
mov dword [esp + 4], edi
jne 0x40525b
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
pop edi
add esp, 0x20
ret
push esi
push 0x94
push 0x4300e8
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
jne 0x4052a0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x424
push edi
jne 0x405292
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
mov eax, 1
pop edi
add esp, 0x20
ret
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
xor eax, eax
pop edi
add esp, 0x20
ret
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x4052d3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x420
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jne 0x4052ea
call esi
push edi
call esi
pop esi
mov eax, 1
pop edi
add esp, 0x20
ret
lea eax, [esp + 0xc]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x4052f7
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
pop esi
xor eax, eax
pop edi
add esp, 0x20
ret
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
push ebp
call ebx
mov ebp, dword [esp + 0x28]
mov edi, eax
cmp dword [esp + 0x18], 2
jne 0x40536f
mov edi, edi
mov eax, 0x51eb851f
mul dword [esp + 0x2c]
shr edx, 5
cmp edx, 0x64
jae 0x405328
mov edx, 0x64
jmp 0x405335
cmp edx, 0x3e8
jbe 0x405335
mov edx, 0x3e8
push edx
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [esp + 0x14]
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x40536f
cmp dword [esp + 0x28], ebp
jbe 0x40535c
call ebx
mov ebp, dword [esp + 0x28]
mov edi, eax
jmp 0x405368
call ebx
mov ecx, dword [esp + 0x2c]
sub eax, edi
cmp eax, ecx
ja 0x40536f
cmp dword [esp + 0x18], 2
je 0x405310
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
mov edx, dword [esp + 0x10]
push edx
call esi
mov ecx, dword [esp + 0x18]
pop ebp
pop ebx
xor eax, eax
cmp ecx, 4
pop esi
sete al
pop edi
add esp, 0x20
ret

Function at 0x4061e0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x45c
mov eax, dword [0x43f194]
mov dword [esp + 0x458], eax
push esi
lea eax, [esp + 4]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esp + 4]
push 0x4301a0
push ecx
call fcn.004115bd
mov edx, dword [esp + 0x46c]
push edx
lea eax, [esp + 0x10]
push eax
call fcn.004115bd
add esp, 0x10
lea ecx, [esp + 0x20c]
push ecx
lea edx, [esp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
push eax
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esp + 0x45c]
mov eax, esi
pop esi
call fcn.00411bef
add esp, 0x45c
ret 4
Function at 0x406270
Capabilities:
Query environment variable

Disassembly:
push esi
push 0x208
call fcn.00420e21
add esp, 4
push 0x104
mov esi, eax
push esi
push str.TEMP
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
push esi
call fcn.0041156a
add esp, 4
cmp word [esi + eax*2 - 2], 0x5c
je 0x4062b0
push 0x4301a0
push esi
call fcn.004115bd
add esp, 8
push 0x431598
push esi
call fcn.004115bd
add esp, 8
mov eax, esi
pop esi
ret

Function at 0x4062d0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x42d78b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xae8
mov eax, dword [0x43f194]
push ebx
push esi
mov dword [esp + 0xae8], eax
push edi
lea eax, [esp + 0xe0]
push eax
push 0x104
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esp + 0xe0]
push ecx
call fcn.0041156a
add esp, 4
cmp word [esp + eax*2 + 0xde], 0x5c
je 0x406345
lea edx, [esp + 0xe0]
push 0x4301a0
push edx
call fcn.004115bd
add esp, 8
lea eax, [esp + 0xe0]
push 0x4402ba
push eax
call fcn.004115bd
lea ecx, [esp + 0xe8]
push str.Setup.ini
push ecx
call fcn.004115bd
lea edx, [esp + 0xf0]
push 0x4315c4
push edx
call fcn.00412d8e
mov esi, eax
add esp, 0x18
test esi, esi
je 0x4063c7
push 2
push 0
push esi
call fcn.00412ce9
push esi
call fcn.00412c19
push 0
push 0
push esi
mov edi, eax
call fcn.00412ce9
add esp, 0x1c
cmp edi, 0xffffffff
je 0x4063c7
mov ecx, ebx
call fcn.00406270
push 0x4315bc
push eax
mov dword [esp + 0x14], eax
call fcn.00412d8e
mov edi, eax
add esp, 8
test edi, edi
jne 0x4063ce
xor eax, eax
jmp 0x4064af
mov eax, dword [ebp + 8]
push eax
lea ecx, [esp + 0x14]
call fcn.004017b0
mov al, byte [esi + 0xc]
mov bl, 0x10
test bl, al
mov dword [esp + 0xafc], 0
jne 0x406464
nop
push esi
push 0x400
lea ecx, [esp + 0x6f0]
push 1
push ecx
call fcn.00412a6b
add esp, 0x10
lea edx, [esp + 0x2e8]
push edx
push eax
lea eax, [esp + 0x6f0]
push eax
lea ecx, [esp + 0x1c]
call fcn.00401b00
test byte [esi + 0xc], bl
je 0x406449
xor ecx, ecx
lea edx, [esp + eax + 0x2e8]
cmp byte [edx], 0
jne 0x40643c
inc ecx
dec edx
cmp ecx, 8
jl 0x406430
test ecx, ecx
je 0x406449
mov edx, 1
sub edx, ecx
add eax, edx
push edi
push eax
lea eax, [esp + 0x2f0]
push 1
push eax
call fcn.00412936
mov al, byte [esi + 0xc]
add esp, 0x10
test bl, al
je 0x4063f0
push edi
call fcn.004127d6
push edi
call fcn.00412625
push esi
call fcn.00412625
xor eax, eax
mov ecx, 0x100
lea edi, [esp + 0x2f4]
rep stosd dword es:[edi], eax
mov ecx, 0x100
lea edi, [esp + 0x6f4]
rep stosd dword es:[edi], eax
add esp, 0xc
lea ecx, [esp + 0x10]
mov dword [esp + 0xafc], 0xffffffff
call fcn.00401000
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0xaf4]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0xaec]
call fcn.00411bef
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x406780
Capabilities:
Get common file path

Disassembly:
sub esp, 0x214
mov eax, dword [0x43f194]
mov dword [esp + 0x210], eax
lea eax, [esp + 8]
push eax
push 0x104
mov dword [esp + 8], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esp + 8]
push ecx
call fcn.0041156a
add esp, 4
cmp word [esp + eax*2 + 6], 0x5c
je 0x4067d1
lea edx, [esp + 8]
push 0x4301a0
push edx
call fcn.004115bd
add esp, 8
push ebx
push esi
push edi
lea eax, [esp + 0x14]
push 0x440ae0
push eax
call fcn.004115bd
add esp, 8
push 0
push 2
push 0
lea ecx, [esp + 0x20]
push ecx
call dword [sym.imp.SETUPAPI.dll_SetupOpenInfFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40686d
push 0x320
call fcn.00420e21
push 0x320
mov esi, eax
call fcn.00420e21
mov edx, dword [0x4404c4]
mov ebx, dword [sym.imp.USER32.dll_LoadStringW]
add esp, 8
push 0x190
push esi
push 0x13f1
push edx
mov edi, eax
call ebx
push esi
push edi
call fcn.004115e7
mov eax, dword [0x4404c4]
add esp, 8
push 0x190
push esi
push 0x13fd
push eax
call ebx
push esi
push edi
call fcn.004115bd
add esp, 8
push 0x43869c
lea ecx, [esp + 0x14]
push ecx
mov dword [esp + 0x18], edi
call fcn.0041229d
mov ebx, dword [sym.imp.SETUPAPI.dll_SetupGetLineTextW]
lea edx, [esp + 0xc]
push edx
push 0
push 0
push str.USBHardwareID
push str.Setup.HP_LaserJet_M1005
push edi
push 0
call ebx
test eax, eax
je 0x4068bc
mov eax, dword [esp + 0xc]
lea ecx, [eax + eax]
push ecx
call fcn.00411e2f
mov edx, dword [esp + 0x10]
add esp, 4
push 0
push edx
mov esi, eax
push esi
push str.USBHardwareID
push str.Setup.HP_LaserJet_M1005
push edi
push 0
call ebx
test eax, eax
jne 0x4068d8
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x210]
call fcn.00411bef
add esp, 0x214
ret
push esi
push 0x440ef0
call fcn.004115e7
push esi
call fcn.00411d17
add esp, 0xc
push edi
call dword [sym.imp.SETUPAPI.dll_SetupCloseInfFile]
mov ecx, dword [esp + 0x21c]
pop edi
pop esi
xor eax, eax
pop ebx
call fcn.00411bef
add esp, 0x214
ret
Function at 0x406910
Capabilities:
Compare security identifiers

Disassembly:
sub esp, 0x7c
mov eax, dword [0x43f194]
push ebx
push ebp
push esi
push edi
xor ebx, ebx
mov dword [esp + 0x88], eax
lea eax, [esp + 0x10]
push eax
push ebx
push 0x28
mov byte [esp + 0x28], bl
mov byte [esp + 0x29], bl
mov byte [esp + 0x2a], bl
mov byte [esp + 0x2b], bl
mov byte [esp + 0x2c], bl
mov byte [esp + 0x2d], 5
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenThreadToken]
cmp eax, ebx
jne 0x406976
lea ecx, [esp + 0x10]
push ecx
push 0xf00ff
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
cmp eax, ebx
je 0x406a8d
mov eax, dword [esp + 0x10]
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea edx, [esp + 0x18]
push edx
push ebx
push ebx
push 2
push eax
call edi
mov eax, dword [esp + 0x18]
push eax
mov ebp, eax
call fcn.00420e21
mov edx, dword [esp + 0x14]
add esp, 4
lea ecx, [esp + 0x18]
push ecx
push ebp
mov esi, eax
push esi
push 2
push edx
call edi
mov edi, eax
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, ebx
je 0x406a50
lea ecx, [esp + 0x14]
push ecx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea edx, [esp + 0x44]
push edx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov eax, dword [esi]
xor edi, edi
dec eax
je 0x406a0a
mov ebp, dword [sym.imp.ADVAPI32.dll_EqualSid]
lea ebx, [esi + 4]
mov ecx, dword [ebx]
mov edx, dword [esp + 0x14]
push ecx
push edx
call ebp
test eax, eax
jne 0x406a17
mov eax, dword [esi]
inc edi
add ebx, 8
dec eax
cmp edi, eax
jb 0x4069f1
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_FreeSid]
jmp 0x406a84
push str._r_nUser_is_a_Power_User_r_n
mov ecx, 0x442370
call fcn.00402000
push esi
call fcn.00420e26
mov ecx, dword [esp + 0x18]
add esp, 4
push ecx
call dword [sym.imp.ADVAPI32.dll_FreeSid]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x78]
call fcn.00411bef
add esp, 0x7c
ret
push 0xa
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00411eee
add esp, 0xc
push str._r_nError_in_getting_handle_of_current_process___error_code:_t
mov ecx, 0x442370
call fcn.00402000
lea ecx, [esp + 0x24]
push ecx
mov ecx, 0x442370
call fcn.00402000
push esi
call fcn.00420e26
add esp, 4
mov ecx, dword [esp + 0x88]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
call fcn.00411bef
add esp, 0x7c
ret
Function at 0x407410
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x128
mov eax, dword [0x43f194]
push esi
push edi
push str._System_Information__r_n_r_n
mov ecx, 0x442370
mov dword [esp + 0x130], eax
xor esi, esi
call fcn.00402000
xor eax, eax
mov ecx, 0x47
lea edi, [esp + 8]
rep stosd dword es:[edi], eax
mov edi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
lea eax, [esp + 8]
push eax
mov dword [esp + 0xc], 0x11c
call edi
test eax, eax
jne 0x407486
lea ecx, [esp + 8]
push ecx
mov dword [esp + 0xc], 0x114
call edi
test eax, eax
jne 0x407486
mov ecx, dword [esp + 0x12c]
call fcn.00411bef
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x18]
sub eax, 2
jne 0x4074a9
cmp dword [esp + 0xc], 6
jne 0x4074a9
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x4074a9
mov esi, 1
mov dword [0x442368], esi
mov ecx, dword [esp + 0x12c]
mov eax, esi
call fcn.00411bef
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x408553
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x408568
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x40857a
xor eax, eax
jmp 0x4085ac
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x40859e
cmp esi, eax
jae 0x408576
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x408590
cmp esi, eax
jae 0x408576
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop ebp
ret
Function at 0x408c25
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
je 0x408c78
call fcn.0042af20
mov edi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
cmp eax, ebx
je 0x408c78
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x408c6e
xor eax, eax
jmp 0x408d91
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], ebx
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0xc], 1
je 0x408ca8
mov eax, dword [esi]
push edi
push dword [ebp - 4]
mov ecx, esi
push ebx
call dword [eax + 0x1c]
cmp dword [ebp - 8], 0
mov dword [ebp - 0xc], eax
je 0x408ca8
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebx + 0x48]
test eax, eax
je 0x408d8e
mov ecx, dword [eax + 0x40]
and dword [ebp + 0xc], 0
test ecx, ecx
mov dword [ebp + 8], ecx
mov dword [ebp - 8], ecx
je 0x408cd5
lea ecx, [eax + 0x3c]
lea eax, [ebp + 8]
push eax
call fcn.004097a4
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
xor eax, eax
cmp dword [edi + 8], eax
mov dword [ebp - 4], eax
jbe 0x408d8e
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x408d1e
mov ecx, dword [ecx + 4]
mov edx, dword [edi + 0xc]
mov ecx, dword [ecx + 0x28]
cmp ecx, dword [edx + eax*8]
jne 0x408d1e
mov eax, dword [ebp + 8]
test eax, eax
mov dword [ebp - 8], eax
je 0x408d18
mov ecx, dword [ebx + 0x48]
lea eax, [ebp + 8]
add ecx, 0x3c
push eax
call fcn.004097a4
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
jmp 0x408d7e
and dword [ebp + 0xc], 0
jmp 0x408d7e
mov ecx, dword [edi + 0xc]
shl eax, 3
cmp dword [eax + ecx], 0
mov dword [ebp - 0x10], eax
je 0x408d7e
push 0xc
call fcn.00420df6
mov esi, eax
test esi, esi
pop ecx
je 0x408d60
mov eax, dword [edi + 0xc]
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebx + 0x1c]
add eax, edx
push dword [eax]
mov edi, dword [eax + 4]
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
and dword [esi + 4], 0
mov dword [esi + 8], edi
mov edi, dword [ebp + 0x10]
mov dword [esi], eax
jmp 0x408d62
xor esi, esi
mov ecx, dword [ebx + 0x48]
add ecx, 0x3c
cmp dword [ebp - 8], 0
push esi
je 0x408d79
push dword [ebp - 8]
call fcn.004208c9
jmp 0x408d7e
call fcn.004208a0
mov eax, dword [ebp - 4]
inc eax
cmp eax, dword [edi + 8]
mov dword [ebp - 4], eax
jb 0x408ce3
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x411396
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x434f78
call fcn.0041366c
mov edi, 0x94
mov eax, edi
call fcn.00411c00
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x4447a4], ecx
mov eax, dword [esi + 4]
mov dword [0x4447b0], eax
mov edx, dword [esi + 8]
mov dword [0x4447b4], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x4447a8], esi
cmp ecx, 2
je 0x4113f6
or esi, 0x8000
mov dword [0x4447a8], esi
shl eax, 8
add eax, edx
mov dword [0x4447ac], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x411431
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x411431
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x411449
cmp eax, 0x20b
je 0x411436
mov dword [ebp - 0x1c], esi
jmp 0x41145d
cmp dword [ecx + 0x84], 0xe
jbe 0x411431
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x411457
cmp dword [ecx + 0x74], 0xe
jbe 0x411431
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.00415281
pop ecx
test eax, eax
jne 0x411471
push 0x1c
call fcn.00411372
pop ecx
call fcn.00415178
test eax, eax
jne 0x411482
push 0x10
call fcn.00411372
pop ecx
call fcn.00414f12
mov dword [ebp - 4], esi
call fcn.00414d14
test eax, eax
jge 0x41149b
push 0x1b
call fcn.0041134d
pop ecx
call fcn.00414c75
mov dword [0x446190], eax
call fcn.00414b0b
mov dword [0x444798], eax
call fcn.00414a75
test eax, eax
jge 0x4114c0
push 8
call fcn.0041134d
pop ecx
call fcn.00414842
test eax, eax
jge 0x4114d1
push 9
call fcn.0041134d
pop ecx
push 1
call fcn.00412361
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x4114e7
push eax
call fcn.0041134d
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
call fcn.004147fc
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x411508
movzx eax, word [ebp - 0x40]
jmp 0x41150b
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.004203d3
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x411529
push edi
call fcn.0041248e
call fcn.004124b0
jmp 0x41155b
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.004136a7
ret
Function at 0x4123cb
Capabilities:
Terminate process

Disassembly:
push 8
push 0x435038
call fcn.0041366c
push 8
call fcn.00415f2d
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x4447e4], esi
jne 0x4123ff
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x4447e0], esi
mov al, byte [ebp + 0x10]
mov byte [0x4447dc], al
cmp dword [ebp + 0xc], edi
jne 0x412449
cmp dword [0x446188], edi
je 0x412439
mov eax, dword [0x446184]
sub eax, 4
mov dword [0x446184], eax
cmp eax, dword [0x446188]
jb 0x412439
mov eax, dword [eax]
cmp eax, edi
je 0x41241a
call eax
jmp 0x41241a
push 0x43d090
mov eax, 0x43d088
call fcn.00412349
pop ecx
push 0x43d09c
mov eax, 0x43d094
call fcn.00412349
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x41247a
cmp dword [ebp + 0x10], edi
jne 0x412488
mov dword [0x4447e4], esi
push dword [ebp + 8]
call fcn.00412307
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x412487
push 8
call fcn.00415e78
pop ecx
ret
call fcn.004136a7
ret

Function at 0x413e5a
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.00411c00
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x413ef5
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x4447a4]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x413ef5
cmp eax, 1
je 0x413f16
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x413ef5
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x413ec2
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x413ef1
xor eax, eax
inc eax
jmp 0x413f35
cmp edi, eax
jae 0x413ef9
xor eax, eax
jmp 0x413f35
cmp eax, esi
jae 0x413f00
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x4447a4]
jmp 0x413f19
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret