joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402cc5
Capabilities:
Encode data using xor

Disassembly:
jmp 0x412807
push ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
lea ebp, [esi + 0x10]
mov edi, dword [ebp]
mov ebx, edi
xor ebx, dword [esp + 0x1c]
cmp dword [esi + 0x14], 0x10
mov dword [esp + 0x10], ebp
jb 0x41282c
mov esi, dword [esi]
mov dword [esp + 0x18], esi
push esi
shr edi, 2
push edi
push str._x_and__p
call fcn.0040221b
add esp, 0xc
test edi, edi
je 0x412887
mov ebp, esi
mov esi, edi
push 4
lea eax, [esp + 0x20]
push ebp
push eax
call fcn.00405669
imul ecx, dword [esp + 0x28], 0x5bd1e995
add esp, 0xc
imul ebx, ebx, 0x5bd1e995
add ebp, 4
mov eax, ecx
shr eax, 0x18
xor eax, ecx
imul eax, eax, 0x5bd1e995
xor ebx, eax
mov dword [esp + 0x1c], eax
sub esi, 1
jne 0x412846
mov esi, dword [esp + 0x18]
mov ebp, dword [esp + 0x10]
mov eax, dword [ebp]
xor ecx, ecx
and eax, 3
sub eax, 1
je 0x4128b0
sub eax, 1
je 0x4128a6
sub eax, 1
jne 0x4128be
movsx ecx, byte [esi + edi*4 + 2]
shl ecx, 0x10
movsx eax, byte [esi + edi*4 + 1]
shl eax, 8
xor ecx, eax
movsx eax, byte [esi + edi*4]
xor eax, ecx
imul eax, eax, 0x5bd1e995
xor ebx, eax
mov eax, ebx
shr eax, 0xd
xor eax, ebx
imul ecx, eax, 0x5bd1e995
pop edi
pop esi
pop ebp
pop ebx
mov eax, ecx
shr eax, 0xf
xor eax, ecx
pop ecx
ret

Function at 0x4035cb
Capabilities:
Terminate process

Disassembly:
jmp 0x450339
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x45034a
push 5
pop ecx
int 0x29
push esi
push 1
mov esi, 0xc0000417
push esi
push 2
call fcn.00405880
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop esi
ret

Function at 0x4036f2
Capabilities:
Query environment variable

Disassembly:
jmp 0x4993a1
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x4993b2
pop esi
ret
push ebx
push edi
push esi
call fcn.00499288
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00403f71
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4993da
push ebx
push esi
push edi
call fcn.00405669
add esp, 0xc
push 0
call fcn.004061cc
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x405731
Capabilities:
Parse pe header

Disassembly:
jmp 0x43f602
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x43f641
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x43f641
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x43f641
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x43f641
cmp dword [ecx + 0x74], 0xe
jbe 0x43f641
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x4015e0
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x110
mov eax, dword [0x40e060]
push ebx
mov ebx, dword [esp + 0x118]
test ebx, ebx
push ebp
mov ebp, dword [esp + 0x120]
push esi
mov dword [esp + 0x118], eax
mov esi, ecx
jne 0x40160c
mov ebx, dword [esi + 4]
test ebp, ebp
je 0x401642
lea eax, [esp + 0xc]
push eax
push 0xf003f
push 0
push ebp
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40164c
pop esi
pop ebp
xor al, al
pop ebx
mov ecx, dword [esp + 0x10c]
call fcn.00404e1d
add esp, 0x110
ret 8
mov ecx, dword [esi + 8]
mov ebp, dword [esi + 0xc]
mov dword [esp + 0xc], ecx
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov ecx, dword [esp + 0x10]
push 0
push 0
push 0
push 0
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x2c]
push eax
push 0
push ecx
mov dword [esp + 0x34], 0x104
call edi
test eax, eax
jne 0x40168f
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x18]
push edx
push eax
mov ecx, esi
call fcn.004015e0
test al, al
jne 0x401653
mov eax, dword [esi + 8]
mov ecx, dword [esp + 0x10]
cmp ecx, eax
pop edi
jne 0x4016af
test eax, eax
je 0x4016b6
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esi + 8], 0
jmp 0x4016b6
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebp
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov ecx, dword [esp + 0x118]
neg eax
pop esi
sbb eax, eax
pop ebp
inc eax
pop ebx
call fcn.00404e1d
add esp, 0x110
ret 8
Function at 0x401bd0
Capabilities:
Copy file
Delete file
Move file

Disassembly:
sub esp, 0x408
mov eax, dword [0x40e060]
push esi
mov esi, dword [esp + 0x410]
test esi, esi
push edi
mov edi, dword [esp + 0x418]
mov dword [esp + 0x40c], eax
mov dword [esp + 8], 0
je 0x401d01
test edi, edi
je 0x401d01
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
mov ebx, dword [esp + 0x428]
jae 0x401c47
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
je 0x401c74
mov eax, dword [esp + 0x424]
test eax, eax
je 0x401ce4
cmp ebx, 4
jne 0x401ce4
jmp 0x401cbe
cmp ebx, 4
je 0x401ca1
test bl, 1
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileA]
je 0x401c5a
push edi
call ebp
test bl, 2
je 0x401c97
push 1
push edi
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x401c74
push esi
call ebp
test eax, eax
jne 0x401ce4
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop ebp
pop ebx
pop edi
mov dword [esp + 4], eax
pop esi
mov ecx, dword [esp + 0x404]
call fcn.00404e1d
add esp, 0x408
ret 0x10
push edi
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileA]
jmp 0x401c70
push str.wininit.ini
push esi
push edi
push str.Rename
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov eax, dword [esp + 0x424]
test eax, eax
je 0x401ce4
mov ecx, dword [0x40e700]
push 0x400
lea eax, [esp + 0x18]
push eax
push 0x10
push ecx
call dword [sym.imp.USER32.dll_LoadStringA]
lea edx, [esp + 0x14]
push edx
call fcn.00404fe6
add esp, 4
mov eax, dword [esp + 0x10]
pop ebp
pop ebx
pop edi
pop esi
mov ecx, dword [esp + 0x404]
call fcn.00404e1d
add esp, 0x408
ret 0x10
mov ecx, dword [esp + 0x40c]
pop edi
mov eax, 0x57
pop esi
call fcn.00404e1d
add esp, 0x408
ret 0x10
Function at 0x4025c0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x114
mov eax, dword [0x40e060]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [esp + 0x11c], eax
mov edx, ecx
xor eax, eax
test esi, esi
mov ecx, 0x41
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
je 0x4026f0
push ebx
push 1
push 0x105
lea eax, [esp + 0x1c]
push eax
push esi
mov ecx, edx
call fcn.00401e70
test eax, eax
jne 0x40270a
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x402714
lea edx, [esp + 0x10]
test edx, edx
je 0x4026f0
test ebx, ebx
je 0x4026f0
push 0x40c288
push esi
call fcn.00405210
add esp, 8
test eax, eax
jne 0x40268a
lea edx, [esp + 0x10]
mov eax, esi
sub edx, esi
lea ebx, [ebx]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x402660
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, dword [esp + 0x11c]
call fcn.00404e1d
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, eax
sub ecx, esi
test ecx, ecx
jle 0x4026f0
lea ecx, [ebx + 0x3ac]
lea esi, [esp + 0x10]
sub esi, ecx
mov edi, edi
mov dl, byte [ecx]
mov byte [esi + ecx], dl
inc ecx
test dl, dl
jne 0x4026a0
lea edi, [esp + 0x10]
dec edi
nop
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4026b0
mov dx, word [0x40c250]
inc eax
mov word [edi], dx
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4026c5
lea edi, [esp + 0x10]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4026d3
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x40266a
mov eax, 2
mov ecx, dword [esp + 0x11c]
call fcn.00404e1d
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
or eax, 0xffffffff
mov ecx, dword [esp + 0x11c]
call fcn.00404e1d
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x405e17
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
inc esi
cmp dword [0x40e78c], esi
push edi
jne 0x405e37
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [ebp + 0xc], 0
mov al, byte [ebp + 0x10]
mov dword [0x40e788], esi
mov byte [0x40e784], al
jne 0x405e9d
mov ecx, dword [0x40ea88]
test ecx, ecx
je 0x405e7e
mov eax, dword [0x40ea84]
sub eax, 4
cmp eax, ecx
jmp 0x405e77
mov eax, dword [eax]
test eax, eax
je 0x405e69
call eax
mov eax, dword [0x40ea84]
sub eax, 4
cmp eax, dword [0x40ea88]
mov dword [0x40ea84], eax
jae 0x405e61
mov eax, 0x40e024
mov esi, 0x40e02c
cmp eax, esi
mov edi, eax
jae 0x405e9d
mov eax, dword [edi]
test eax, eax
je 0x405e96
call eax
add edi, 4
cmp edi, esi
jb 0x405e8e
mov eax, 0x40e030
mov esi, 0x40e038
cmp eax, esi
mov edi, eax
jae 0x405ebc
mov eax, dword [edi]
test eax, eax
je 0x405eb5
call eax
add edi, 4
cmp edi, esi
jb 0x405ead
cmp dword [ebp + 0x10], 0
pop edi
pop esi
jne 0x405ed6
push dword [ebp + 8]
mov dword [0x40e78c], 1
call fcn.00405d73
pop ebp
ret
Function at 0x4079e3
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a4]
sub esp, 0x424
mov ecx, dword [ebp + 0x3ac]
cmp ecx, dword [0x40e974]
mov eax, dword [0x40e060]
push ebx
push esi
push edi
mov edi, dword [ebp + 0x3b0]
mov dword [ebp + 0x3a0], eax
mov dword [ebp - 0x78], edi
jae 0x407b83
mov eax, ecx
sar eax, 5
lea ebx, [eax*4 + 0x40e980]
mov eax, dword [ebx]
mov esi, ecx
and esi, 0x1f
shl esi, 3
mov al, byte [eax + esi + 4]
test al, 1
mov dword [ebp - 0x80], ebx
je 0x407b83
and dword [ebp - 0x70], 0
and dword [ebp - 0x7c], 0
cmp dword [ebp + 0x3b4], 0
jne 0x407a57
xor eax, eax
jmp 0x407b97
test al, 0x20
je 0x407a6a
push 2
push 0
push 0
push ecx
call fcn.0040a224
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x407aff
and dword [ebp - 0x68], 0
cmp dword [ebp + 0x3b4], 0
mov dword [ebp - 0x6c], edi
jbe 0x407b60
mov ecx, dword [ebp - 0x6c]
xor edi, edi
sub ecx, dword [ebp - 0x78]
lea eax, [ebp - 0x64]
cmp ecx, dword [ebp + 0x3b4]
jae 0x407ac4
mov edx, dword [ebp - 0x6c]
inc dword [ebp - 0x6c]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x407ab5
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc edi
mov ebx, dword [ebp - 0x80]
mov byte [eax], dl
inc eax
inc edi
cmp edi, 0x400
jl 0x407a97
mov edi, eax
lea eax, [ebp - 0x64]
sub edi, eax
push 0
lea eax, [ebp - 0x74]
push eax
push edi
lea eax, [ebp - 0x64]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x407b24
mov eax, dword [ebp - 0x74]
add dword [ebp - 0x70], eax
cmp eax, edi
jl 0x407b2d
mov eax, dword [ebp - 0x6c]
sub eax, dword [ebp - 0x78]
cmp eax, dword [ebp + 0x3b4]
jb 0x407a8c
jmp 0x407b2d
push 0
lea ecx, [ebp - 0x74]
push ecx
push dword [ebp + 0x3b4]
push edi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x407b24
mov eax, dword [ebp - 0x74]
and dword [ebp - 0x68], 0
mov dword [ebp - 0x70], eax
jmp 0x407b2d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x70]
test eax, eax
jne 0x407b7e
cmp dword [ebp - 0x68], eax
je 0x407b5d
push 5
pop eax
cmp dword [ebp - 0x68], eax
jne 0x407b52
mov dword [0x40e740], 9
mov dword [0x40e744], eax
jmp 0x407b94
push dword [ebp - 0x68]
call fcn.0040a1c0
pop ecx
jmp 0x407b94
mov edi, dword [ebp - 0x78]
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x407b72
cmp byte [edi], 0x1a
je 0x407a50
mov dword [0x40e740], 0x1c
jmp 0x407b8d
sub eax, dword [ebp - 0x7c]
jmp 0x407b97
mov dword [0x40e740], 9
and dword [0x40e744], 0
or eax, 0xffffffff
mov ecx, dword [ebp + 0x3a0]
pop edi
pop esi
pop ebx
call fcn.00404e1d
add ebp, 0x3a4
leave
ret
Function at 0x407fcf
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x40e060]
mov ecx, dword [ebp + 0x98]
push ebx
push esi
mov dword [ebp + 0x8c], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x40e430]
je 0x408004
inc eax
cmp eax, 0x13
jb 0x407ff5
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x40e430]
jne 0x408127
mov eax, dword [0x40e718]
cmp eax, 1
je 0x408102
cmp eax, edx
jne 0x408034
cmp dword [0x40e2f4], 1
je 0x408102
cmp ecx, 0xfc
je 0x408127
push 0x104
lea eax, [ebp - 0x7c]
push eax
push edx
mov byte [ebp + 0x88], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40806a
lea eax, [ebp - 0x7c]
push str._program_name_unknown_
push eax
call fcn.004090b0
pop ecx
pop ecx
lea edi, [ebp - 0x7c]
mov eax, edi
push eax
call fcn.00406da0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x40809e
mov eax, edi
push eax
call fcn.00406da0
mov edi, eax
lea eax, [ebp - 0x7c]
sub eax, 0x3b
push 3
add edi, eax
push 0x40caec
push edi
call fcn.00405020
add esp, 0x10
push edi
call fcn.00406da0
push dword [esi + 0x40e434]
mov ebx, eax
call fcn.00406da0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00408810
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.004090b0
push edi
push ebx
call fcn.004090c0
push 0x40cae8
push ebx
call fcn.004090c0
push dword [esi + 0x40e434]
push ebx
call fcn.004090c0
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.00408faf
add esp, 0x2c
jmp 0x408127
push edx
lea eax, [ebp - 0x80]
push eax
lea esi, [esi + 0x40e434]
push dword [esi]
call fcn.00406da0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x8c]
call fcn.00404e1d
pop edi
pop esi
pop ebx
add ebp, 0x90
leave
ret
Function at 0x408faf
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x40e8d4], ebx
push esi
push edi
jne 0x40902f
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x40906a
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x40e8d4], eax
je 0x40906a
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x40e8d8], eax
call esi
cmp dword [0x40e74c], 2
mov dword [0x40e8dc], eax
jne 0x40902f
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x40e8e4], eax
je 0x40902f
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x40e8e0], eax
mov eax, dword [0x40e8e0]
test eax, eax
je 0x409074
call eax
test eax, eax
je 0x40905b
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x40e8e4]
test eax, eax
je 0x40905b
test byte [ebp - 8], 1
jne 0x409074
cmp dword [0x40e758], 4
jb 0x40906e
or byte [ebp + 0x12], 0x20
jmp 0x409093
xor eax, eax
jmp 0x4090a3
or byte [ebp + 0x12], 4
jmp 0x409093
mov eax, dword [0x40e8d8]
test eax, eax
je 0x409093
call eax
mov ebx, eax
test ebx, ebx
je 0x409093
mov eax, dword [0x40e8dc]
test eax, eax
je 0x409093
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x40e8d4]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4091ad
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x4091db
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x4091e2
cmp ebx, dword [eax + 4]
jae 0x4091e2
xor eax, eax
jmp 0x4093d2
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x4091f3
xor eax, eax
inc eax
jmp 0x4093d1
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x409209
cmp ecx, edx
jae 0x40934e
cmp dword [eax + 4], 0
je 0x409212
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x4091fa
cmp dword [ebp + 8], 0
je 0x409234
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x40934e
cmp eax, esi
jae 0x40934e
mov eax, dword [0x40e8e8]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x409259
cmp dword [esi*4 + 0x40e8f0], edi
je 0x409352
inc esi
cmp esi, eax
jl 0x409247
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4093ce
cmp dword [ebp - 8], 0x1000000
jne 0x4093ce
test byte [ebp - 0xc], 0xcc
je 0x4092d7
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x4093ce
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x4093ce
cmp word [eax + 0x18], 0x10b
jne 0x4093ce
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x4093ce
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x4092d7
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x4092d7
test byte [ecx + 0x27], 0x80
jne 0x40934e
push 1
push 0x40e930
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x4091eb
mov ecx, dword [0x40e8e8]
test ecx, ecx
mov edx, ecx
jle 0x40930b
lea eax, [ecx*4 + 0x40e8ec]
cmp dword [eax], edi
je 0x40930b
dec edx
sub eax, 4
test edx, edx
jg 0x4092ff
test edx, edx
jne 0x40933c
push 0xf
pop ebx
cmp ecx, ebx
jg 0x409318
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x409330
lea eax, [edx*4 + 0x40e8f0]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x40931e
cmp ecx, 0x10
jge 0x40933c
inc ecx
mov dword [0x40e8e8], ecx
push 0
push 0x40e930
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x4091eb
xor eax, eax
jmp 0x4093d1
test esi, esi
jle 0x4091eb
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x40e930
call ebx
test eax, eax
jne 0x4091eb
cmp dword [esi*4 + 0x40e8f0], edi
je 0x4093a8
mov eax, dword [0x40e8e8]
lea esi, [eax - 1]
test esi, esi
jl 0x409396
cmp dword [esi*4 + 0x40e8f0], edi
je 0x409392
dec esi
jns 0x409386
test esi, esi
jge 0x4093a6
cmp eax, 0x10
jge 0x4093a1
inc eax
mov dword [0x40e8e8], eax
lea esi, [eax - 1]
jmp 0x4093a8
je 0x4093c0
xor ecx, ecx
test esi, esi
jl 0x4093c0
lea eax, [ecx*4 + 0x40e8f0]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x4093ae
push 0
push 0x40e930
call ebx
jmp 0x4091eb
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40a5ab
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.00408810
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40a646
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 [0x40e74c]
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 0x40a646
cmp eax, 1
je 0x40a667
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 0x40a646
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x40a613
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x40a642
xor eax, eax
inc eax
jmp 0x40a686
cmp edi, eax
jae 0x40a64a
xor eax, eax
jmp 0x40a686
cmp eax, esi
jae 0x40a651
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 [0x40e74c]
jmp 0x40a66a
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
Function at 0x40328b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0xb0
movzx eax, word [ebp + 0x7c]
push esi
mov esi, dword [0xb220e4]
push pe_nt_image_headers32
push eax
push esi
mov dword [ebp + 0x6c], ecx
mov dword [ebp + 0x70], 1
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x4033b1
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4033b1
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4033b1
push ebx
mov ebx, dword [sym.imp.USER32.dll_SendDlgItemMessageA]
push edi
movzx eax, word [esi]
test ax, ax
je 0x4033af
inc esi
inc esi
movzx edi, ax
movzx eax, word [esi]
inc esi
inc esi
mov ecx, dword [esi]
add esi, 4
cmp ax, 0x403
mov dword [ebp + 0x7c], ecx
jne 0x40334e
lea eax, [ebp - 0x38]
push esi
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x3c], eax
call fcn.00402ffd
push dword [ebp - 0x3c]
movzx eax, di
push 0
push 0x143
push eax
mov eax, dword [ebp + 0x6c]
push dword [eax + 4]
call ebx
cmp eax, 0xffffffff
jne 0x40333b
and dword [ebp + 0x70], 0
lea eax, [ebp - 0x38]
cmp dword [ebp - 0x3c], eax
je 0x4033a2
push dword [ebp - 0x3c]
call fcn.00413234
pop ecx
jmp 0x4033a2
cmp ax, 0x1234
jne 0x4033a2
or dword [ebp + 0x4c], 0xffffffff
lea eax, [ebp - 0x38]
push esi
lea ecx, [ebp - 0x3c]
mov dword [ebp + 0x48], 1
mov dword [ebp - 0x3c], eax
call fcn.00402ffd
mov eax, dword [ebp - 0x3c]
lea ecx, [ebp - 0x38]
cmp eax, ecx
mov dword [ebp + 0x50], eax
je 0x403382
push eax
call fcn.00413234
pop ecx
lea eax, [ebp + 0x48]
push eax
push 0
movzx eax, di
push 0x401
push eax
mov eax, dword [ebp + 0x6c]
push dword [eax + 4]
call ebx
cmp eax, 0xffffffff
jne 0x4033a2
and dword [ebp + 0x70], 0
add esi, dword [ebp + 0x7c]
cmp dword [ebp + 0x70], 0
jne 0x4032e9
pop edi
pop ebx
mov eax, dword [ebp + 0x70]
pop esi
add ebp, 0x74
leave
ret 4
Function at 0x409223
Capabilities:
Set registry value

Disassembly:
push 4
lea eax, [esp + 0xc]
push eax
push 4
push 0
push dword [esp + 0x14]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
ret 8

Function at 0x409276
Capabilities:
Set registry value

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
test esi, esi
mov ebx, ecx
jne 0x40928c
push 0x80004005
call fcn.004010d1
push edi
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
add esi, eax
add edi, eax
cmp eax, 1
jne 0x40928f
push edi
push dword [esp + 0x18]
push 7
push 0
push dword [esp + 0x20]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
pop ebx
ret 8

Function at 0x409780
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
push ebx
push esi
push edi
push 0x2001f
push dword [ebp + 8]
mov ebx, ecx
push dword [ebx]
xor esi, esi
lea ecx, [ebp - 4]
mov dword [ebp - 4], esi
call fcn.004091ee
mov edi, eax
cmp edi, esi
je 0x4097bc
lea ecx, [ebp - 4]
call fcn.00409189
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 4
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
jmp 0x4097d7
lea eax, [ebp - 0x110]
push eax
lea ecx, [ebp - 4]
call fcn.00409780
cmp eax, esi
jne 0x40980d
lea eax, [ebp - 0x10]
push eax
push esi
push esi
push esi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x110]
push eax
push esi
push dword [ebp - 4]
mov dword [ebp - 8], 0x100
call edi
test eax, eax
je 0x4097c4
lea ecx, [ebp - 4]
call fcn.00409189
push dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
lea ecx, [ebp - 4]
mov esi, eax
call fcn.00409189
mov eax, esi
jmp 0x4097b5