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

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x46dae3
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x46daca
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x474470
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4a1b7e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.00474d90
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0x4acfdc
call fcn.00492cbd
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x474503
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.00492cbd
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x4744fc
push 0
mov ecx, eax
call fcn.0046b610
mov dword [esi + 0xc], eax
jmp 0x474505
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x474505
xor esi, esi
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], 0
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8

Function at 0x495320
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x495358
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004933d7
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004933af
jmp 0x495364
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x496a15
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x496a57
call fcn.0049c5cf
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x496a57
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x496a4e
xor eax, eax
jmp 0x496a5f
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00496a65
pop edi
pop esi
pop ebx
ret 4
Function at 0x49caff
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x49cb2d
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x49cb4b
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0049ca65
jmp 0x49cb4b
mov eax, dword [esi + 0x14]
test eax, eax
je 0x49cb4b
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0049ca65
test edi, edi
mov eax, edi
jne 0x49cb35
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8

Function at 0x461f20
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x455015
lea edi, [esi - 0x54015]
push edi
or ebp, 0xffffffff
jmp 0x461f42
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x461f49
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x461f38
mov eax, 1
add ebx, ebx
jne 0x461f5b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x461f50
jne 0x461f6c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x461f50
xor ecx, ecx
sub eax, 3
jb 0x461f80
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x461ff2
mov ebp, eax
add ebx, ebx
jne 0x461f8b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x461f98
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x461fbc
inc ecx
add ebx, ebx
jne 0x461fa8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x461f9d
jne 0x461fb9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x461f9d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x461fdc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x461fcd
jmp 0x461f3e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x461fdc
add edi, ecx
jmp 0x461f3e
pop esi
mov edi, esi
mov ecx, 0x32d
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x461ffa
cmp byte [edi], 0
jne 0x461ffa
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x461fff
lea edi, [esi + 0x5f000]
mov eax, dword [edi]
or eax, eax
je 0x46206e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x621f0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x62254]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x46202c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x62258]
or eax, eax
je 0x462068
mov dword [ebx], eax
add ebx, 4
jmp 0x462049
call dword [esi + 0x6225c]
popal
jmp 0x4095a4
Function at 0x4018c0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 0
cmp dword [ebp + 8], 0
je 0x4018db
cmp dword [ebp + 0xc], 0
jne 0x4018df
xor eax, eax
jmp 0x401938
mov eax, dword [ebp + 8]
mov word [eax], 0
lea ecx, [ebp - 4]
push ecx
push 0x20019
push 0
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x401936
lea ecx, [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
push 0
push 0
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 8], eax
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 8], 0
jne 0x401936
mov eax, dword [ebp + 8]
jmp 0x401938
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x401c55
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x407160
call fcn.0040202c
mov edi, 0x94
mov eax, edi
call fcn.00402fa0
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 [0x4094b4], ecx
mov eax, dword [esi + 4]
mov dword [0x4094c0], eax
mov edx, dword [esi + 8]
mov dword [0x4094c4], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x4094b8], esi
cmp ecx, 2
je 0x401cb5
or esi, 0x8000
mov dword [0x4094b8], esi
shl eax, 8
add eax, edx
mov dword [0x4094bc], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x401cf0
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x401cf0
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x401d08
cmp eax, 0x20b
je 0x401cf5
mov dword [ebp - 0x1c], esi
jmp 0x401d1c
cmp dword [ecx + 0x84], 0xe
jbe 0x401cf0
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x401d16
cmp dword [ecx + 0x74], 0xe
jbe 0x401cf0
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push esi
call fcn.00402eb8
pop ecx
test eax, eax
jne 0x401d48
cmp dword [0x409480], 1
jne 0x401d35
call fcn.004025b2
push 0x1c
call fcn.0040240a
push 0xff
call fcn.0040220c
pop ecx
pop ecx
call fcn.00402e07
mov dword [ebp - 4], esi
call fcn.00402c2f
test eax, eax
jge 0x401d61
push 0x1b
call fcn.00401ba7
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x409a14], eax
call fcn.00402b08
mov dword [0x409478], eax
call fcn.00402a61
test eax, eax
jge 0x401d87
push 8
call fcn.00401ba7
pop ecx
call fcn.00402824
test eax, eax
jge 0x401d98
push 9
call fcn.00401ba7
pop ecx
push 1
call fcn.00402281
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x401dae
push eax
call fcn.00401ba7
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.004027c2
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x401dcf
movzx eax, word [ebp - 0x40]
jmp 0x401dd2
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.00401010
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x401df0
push edi
call fcn.004023b6
call fcn.004023e2
jmp 0x401e22
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.00402067
ret
Function at 0x4022f0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
inc esi
cmp dword [0x4094f4], esi
push edi
jne 0x402310
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 [0x4094f0], esi
mov byte [0x4094ec], al
jne 0x402376
mov ecx, dword [0x409a08]
test ecx, ecx
je 0x402357
mov eax, dword [0x409a04]
sub eax, 4
cmp eax, ecx
jmp 0x402350
mov eax, dword [eax]
test eax, eax
je 0x402342
call eax
mov eax, dword [0x409a04]
sub eax, 4
cmp eax, dword [0x409a08]
mov dword [0x409a04], eax
jae 0x40233a
mov eax, 0x40901c
mov esi, 0x409020
cmp eax, esi
mov edi, eax
jae 0x402376
mov eax, dword [edi]
test eax, eax
je 0x40236f
call eax
add edi, 4
cmp edi, esi
jb 0x402367
mov eax, 0x409024
mov esi, 0x409028
cmp eax, esi
mov edi, eax
jae 0x402395
mov eax, dword [edi]
test eax, eax
je 0x40238e
call eax
add edi, 4
cmp edi, esi
jb 0x402386
cmp dword [ebp + 0x10], 0
pop edi
pop esi
jne 0x4023af
push dword [ebp + 8]
mov dword [0x4094f4], 1
call fcn.0040220c
pop ebp
ret

Function at 0x40240a
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x4091d8]
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 + 0x4091e8]
je 0x40243f
inc eax
cmp eax, 0x13
jb 0x402430
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x4091e8]
jne 0x402562
mov eax, dword [0x409480]
cmp eax, 1
je 0x40253d
cmp eax, edx
jne 0x40246f
cmp dword [0x4091e0], 1
je 0x40253d
cmp ecx, 0xfc
je 0x402562
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 0x4024a5
lea eax, [ebp - 0x7c]
push str._program_name_unknown_
push eax
call fcn.004030e0
pop ecx
pop ecx
lea edi, [ebp - 0x7c]
mov eax, edi
push eax
call fcn.00403310
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x4024d9
mov eax, edi
push eax
call fcn.00403310
mov edi, eax
lea eax, [ebp - 0x7c]
sub eax, 0x3b
push 3
add edi, eax
push 0x4071a4
push edi
call fcn.004031e0
add esp, 0x10
push edi
call fcn.00403310
push dword [esi + 0x4091ec]
mov ebx, eax
call fcn.00403310
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00402fa0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.004030e0
push edi
push ebx
call fcn.004030f0
push 0x4071a0
push ebx
call fcn.004030f0
push dword [esi + 0x4091ec]
push ebx
call fcn.004030f0
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.00402fe2
add esp, 0x2c
jmp 0x402562
push edx
lea eax, [ebp - 0x80]
push eax
lea esi, [esi + 0x4091ec]
push dword [esi]
call fcn.00403310
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.00401a67
pop edi
pop esi
pop ebx
add ebp, 0x90
leave
ret
Function at 0x402fe2
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x40960c], ebx
push esi
push edi
jne 0x403062
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x40309d
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x40960c], eax
je 0x40309d
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x409610], eax
call esi
cmp dword [0x4094b4], 2
mov dword [0x409614], eax
jne 0x403062
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x40961c], eax
je 0x403062
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x409618], eax
mov eax, dword [0x409618]
test eax, eax
je 0x4030a7
call eax
test eax, eax
je 0x40308e
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x40961c]
test eax, eax
je 0x40308e
test byte [ebp - 8], 1
jne 0x4030a7
cmp dword [0x4094c0], 4
jb 0x4030a1
or byte [ebp + 0x12], 0x20
jmp 0x4030c6
xor eax, eax
jmp 0x4030d6
or byte [ebp + 0x12], 4
jmp 0x4030c6
mov eax, dword [0x409610]
test eax, eax
je 0x4030c6
call eax
mov ebx, eax
test ebx, ebx
je 0x4030c6
mov eax, dword [0x409614]
test eax, eax
je 0x4030c6
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x40960c]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x403493
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 0x4034c1
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 0x4034c8
cmp ebx, dword [eax + 4]
jae 0x4034c8
xor eax, eax
jmp 0x4036b8
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x4034d9
xor eax, eax
inc eax
jmp 0x4036b7
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x4034ef
cmp ecx, edx
jae 0x403634
cmp dword [eax + 4], 0
je 0x4034f8
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x4034e0
cmp dword [ebp + 8], 0
je 0x40351a
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x403634
cmp eax, esi
jae 0x403634
mov eax, dword [0x409620]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x40353f
cmp dword [esi*4 + 0x409628], edi
je 0x403638
inc esi
cmp esi, eax
jl 0x40352d
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4036b4
cmp dword [ebp - 8], 0x1000000
jne 0x4036b4
test byte [ebp - 0xc], 0xcc
je 0x4035bd
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x4036b4
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x4036b4
cmp word [eax + 0x18], 0x10b
jne 0x4036b4
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x4036b4
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x4035bd
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x4035bd
test byte [ecx + 0x27], 0x80
jne 0x403634
push 1
push 0x409668
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x4034d1
mov ecx, dword [0x409620]
test ecx, ecx
mov edx, ecx
jle 0x4035f1
lea eax, [ecx*4 + 0x409624]
cmp dword [eax], edi
je 0x4035f1
dec edx
sub eax, 4
test edx, edx
jg 0x4035e5
test edx, edx
jne 0x403622
push 0xf
pop ebx
cmp ecx, ebx
jg 0x4035fe
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x403616
lea eax, [edx*4 + 0x409628]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x403604
cmp ecx, 0x10
jge 0x403622
inc ecx
mov dword [0x409620], ecx
push 0
push 0x409668
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x4034d1
xor eax, eax
jmp 0x4036b7
test esi, esi
jle 0x4034d1
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x409668
call ebx
test eax, eax
jne 0x4034d1
cmp dword [esi*4 + 0x409628], edi
je 0x40368e
mov eax, dword [0x409620]
lea esi, [eax - 1]
test esi, esi
jl 0x40367c
cmp dword [esi*4 + 0x409628], edi
je 0x403678
dec esi
jns 0x40366c
test esi, esi
jge 0x40368c
cmp eax, 0x10
jge 0x403687
inc eax
mov dword [0x409620], eax
lea esi, [eax - 1]
jmp 0x40368e
je 0x4036a6
xor ecx, ecx
test esi, esi
jl 0x4036a6
lea eax, [ecx*4 + 0x409628]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x403694
push 0
push 0x409668
call ebx
jmp 0x4034d1
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4053f6
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.00402fa0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x405491
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 [0x4094b4]
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 0x405491
cmp eax, 1
je 0x4054b2
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 0x405491
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x40545e
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x40548d
xor eax, eax
inc eax
jmp 0x4054d1
cmp edi, eax
jae 0x405495
xor eax, eax
jmp 0x4054d1
cmp eax, esi
jae 0x40549c
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 [0x4094b4]
jmp 0x4054b5
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 0x40203c
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 8]
test eax, eax
je 0x40207a
push dword [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x402060
push 0xffffffffffffffff
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0xc]
and dword [esi + 8], 0
test eax, eax
je 0x40207a
mov ecx, dword [esi + 4]
mov dword [eax], ecx
pop esi
ret 8

Function at 0x402108
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 8], 0
je 0x402115
xor eax, eax
pop esi
ret
lea eax, [esi + 0xc]
push eax
push 0
push esi
push 0x402139
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
xor ecx, ecx
mov dword [esi + 8], eax
test eax, eax
setne cl
mov eax, ecx
pop esi
ret

Function at 0x4027c6
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc10
push ebx
push esi
mov esi, 0x81
push edi
xor ebx, ebx
mov ecx, esi
xor eax, eax
lea edi, [ebp - 0x40e]
mov word [ebp - 0x410], bx
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x410]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov ecx, 0x1ff
xor eax, eax
lea edi, [ebp - 0xc0e]
mov word [ebp - 0xc10], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0xc10]
push 0x400
push eax
lea eax, [ebp - 0x410]
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
mov ecx, esi
xor eax, eax
lea edi, [ebp - 0x206]
mov word [ebp - 0x208], bx
rep stosd dword es:[edi], eax
mov esi, dword [sym.imp.SHLWAPI.dll_wnsprintfW]
mov ebx, str.6ED50743_E57E_4103_B9D9_917D06926181
stosw word es:[edi], ax
push ebx
mov edi, 0x103
push str.CLSID_sLocalServer32
lea eax, [ebp - 0x208]
push edi
push eax
call esi
add esp, 0x10
lea eax, [ebp - 0xc10]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp - 0xc10]
push eax
push 1
lea eax, [ebp - 0x208]
push 0
push eax
push SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
test eax, eax
jne 0x4028da
push 0x208
push eax
lea eax, [ebp - 0x208]
push eax
call sub.MSVCRT.dll_memset
push ebx
push str.SOFTWAREMicrosoftInternet_ExplorerLow_Rights
push str._sElevationPolicy_s
lea eax, [ebp - 0x208]
push edi
push eax
call esi
lea eax, [ebp - 0xc10]
push eax
lea eax, [ebp - 0x208]
push eax
call fcn.004026f4
add esp, 0x28
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4028df
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
and word [ebp - 0x208], 0
push ebx
push esi
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x206]
mov esi, dword [sym.imp.SHLWAPI.dll_wnsprintfW]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push str.6ED50743_E57E_4103_B9D9_917D06926181
mov ebx, 0x103
push str.CLSID_s
lea eax, [ebp - 0x208]
push ebx
push eax
call esi
mov edi, dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
add esp, 0x10
lea eax, [ebp - 0x208]
push eax
push SysReAllocString
call edi
push 0x208
lea eax, [ebp - 0x208]
push 0
push eax
call sub.MSVCRT.dll_memset
push str.6ED50743_E57E_4103_B9D9_917D06926181
push str.SOFTWAREMicrosoftInternet_ExplorerLow_Rights
push str._sElevationPolicy_s
lea eax, [ebp - 0x208]
push ebx
push eax
call esi
add esp, 0x20
lea eax, [ebp - 0x208]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40339d
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
mov eax, dword [eax]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
xor ebx, ebx
lea esi, [eax + ecx*4]
lea eax, [ebp + 8]
push eax
push 0x40
push 4
push esi
mov dword [ebp + 8], ebx
call edi
test eax, eax
je 0x4033e5
mov eax, dword [esi]
mov ecx, dword [ebp + 0xc]
cmp eax, ecx
je 0x4033d5
mov ebx, eax
mov dword [esi], ecx
lea eax, [ebp + 0x10]
and dword [ebp + 0x10], 0
push eax
push dword [ebp + 8]
push 4
push esi
call edi
pop edi
mov eax, ebx
pop esi
pop ebx
pop ebp
ret

Function at 0x405d4d
Capabilities:
Read file via mapping

Disassembly:
push ebx
push esi
push edi
push str.406A9880_7B5A_4F58_B763_66A80E7B0531_GameExternalHandle
xor ebx, ebx
push 4
push ebx
push 4
push ebx
mov edi, ecx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
lea esi, [edi + 0xec]
cmp eax, ebx
mov dword [esi], eax
je 0x405d96
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 4
push ebx
push ebx
push 2
push dword [esi]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, ebx
je 0x405d8f
mov ecx, dword [edi + 4]
mov dword [eax], ecx
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
pop edi
pop esi
pop ebx
ret

Function at 0x405d9a
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
push edi
cmp dword [esi + 0xe8], 0
lea edi, [esi + 0xe8]
je 0x405dc8
push 0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [edi]
mov eax, dword [ecx]
call dword [eax + 4]
push dword [esi + 4]
call dword [sym.imp.USER32.dll_DestroyWindow]
pop edi
pop esi
ret