joyce8/EMBER2024-capa huggingface dataset:
Function at 0x449050
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x475c23
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.004695e7
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], vtable.CBrush.0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.0046ec7f
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.0047019b
test eax, eax
je 0x44916c
mov ecx, dword [esp + 0x3c]
call fcn.0046ecac
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x449130
push edi
mov ecx, esi
call fcn.0046c315
mov ecx, esi
call fcn.004492d0
cmp dword [esp + 0x38], 1
jne 0x449165
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.0046c450
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x44bb80
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x44bbb3
push esi
call fcn.0044ec80
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x44bbac
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x44bc39
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x44bc22
mov eax, dword [esi + 8]
test eax, eax
je 0x44bbd7
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x44bc1e
cmp eax, 2
je 0x44bc22
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x44bbca
cmp eax, 3
je 0x44bbfd
cmp eax, 1
jne 0x44bbca
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x44bbca
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x44bbca
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0044bc60
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x44bc48
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.0044bc60
add esp, 4
pop esi
ret

Function at 0x46a3dc
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x46a414
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.00468469
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00468441
jmp 0x46a420
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x46bacd
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 0x46bb0f
call fcn.00471586
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x46bb0f
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x46bb06
xor eax, eax
jmp 0x46bb17
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0046bb1d
pop edi
pop esi
pop ebx
ret 4

Function at 0x471ab6
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 0x471ae4
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x471b02
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00471a1c
jmp 0x471b02
mov eax, dword [esi + 0x14]
test eax, eax
je 0x471b02
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00471a1c
test edi, edi
mov eax, edi
jne 0x471aec
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401070
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ecx
xor edx, edx
mov eax, edx
and eax, 1
dec eax
not eax
and eax, 0xedb88320
mov ecx, edx
shr ecx, 1
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov dword [edx*4 + 0x41c6e0], ecx
inc edx
cmp edx, 0x100
jb 0x401073
cmp edx, 0x800
jae 0x401149
lea ecx, [ecx]
mov eax, dword [edx*4 + 0x41c2e0]
mov ecx, eax
and ecx, 0xff
shr eax, 8
xor eax, dword [ecx*4 + 0x41c6e0]
inc edx
mov dword [edx*4 + 0x41c6dc], eax
cmp edx, 0x800
jb 0x401120
mov dword [0x41ace8], 0x401170
call fcn.00404b40
test eax, eax
jne 0x401166
mov dword [0x41ace8], 0x401220
pop ecx
ret

Function at 0x401bd0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [edi]
mov ebx, eax
test esi, esi
je 0x401c2f
mov dword [edi], 0
jmp 0x401bf0
mov eax, 0x400000
cmp esi, 0x400000
ja 0x401bff
mov eax, esi
mov edx, dword [ebp + 8]
push 0
lea ecx, [ebp - 4]
push ecx
push eax
mov eax, dword [edx]
push ebx
push eax
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp - 4]
add dword [edi], ecx
add ebx, ecx
sub esi, ecx
test eax, eax
je 0x401c37
test ecx, ecx
je 0x401c2f
test esi, esi
ja 0x401bf0
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4048a0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0x10]
mov edx, dword [edx]
sub esp, 0xc
xor eax, eax
and edx, 7
cmp ecx, 5
jae 0x4048b9
mov esp, ebp
pop ebp
ret
add dword [ebp + 0xc], 5
push ebx
push esi
mov esi, dword [ebp + 8]
lea ebx, [esi + ecx - 4]
push edi
mov dword [ebp - 8], 0xffffffff
mov dword [ebp - 0xc], ebx
mov esi, dword [ebp + 8]
lea edi, [eax + esi]
cmp edi, ebx
jae 0x4048ed
jmp 0x4048e0
mov al, byte [edi]
and al, 0xfe
cmp al, 0xe8
je 0x4048ed
inc edi
cmp edi, ebx
jb 0x4048e0
mov eax, edi
sub eax, esi
mov ecx, eax
sub ecx, dword [ebp - 8]
cmp edi, ebx
jae 0x404a10
cmp ecx, 3
jbe 0x40490a
xor esi, esi
mov dword [ebp - 4], esi
jmp 0x40494d
dec ecx
shl edx, cl
and edx, 7
mov dword [ebp - 4], edx
je 0x40494a
mov ecx, edx
movzx edx, byte [ecx + 0x416f08]
mov esi, edi
sub esi, edx
cmp byte [ecx + 0x416f00], 0
mov dl, byte [esi + 4]
je 0x404937
test dl, dl
je 0x404937
cmp dl, 0xff
jne 0x40494a
and ecx, 3
add ecx, ecx
or ecx, 1
mov dword [ebp - 8], eax
mov dword [ebp - 4], ecx
inc eax
mov edx, ecx
jmp 0x4048d1
mov esi, dword [ebp - 4]
mov cl, byte [edi + 4]
mov dword [ebp - 8], eax
test cl, cl
je 0x40496f
cmp cl, 0xff
je 0x40496f
and esi, 3
add esi, esi
or esi, 1
mov dword [ebp - 4], esi
inc eax
mov edx, esi
jmp 0x4048d1
movzx edx, cl
movzx ecx, byte [edi + 3]
shl edx, 8
or edx, ecx
movzx ecx, byte [edi + 2]
shl edx, 8
or edx, ecx
movzx ecx, byte [edi + 1]
shl edx, 8
or edx, ecx
lea ecx, [ecx]
cmp dword [ebp + 0x14], 0
je 0x40499e
lea ebx, [edx + eax]
add ebx, dword [ebp + 0xc]
jmp 0x4049a5
sub edx, eax
sub edx, dword [ebp + 0xc]
mov ebx, edx
test esi, esi
je 0x4049e0
movzx esi, byte [esi + 0x416f08]
add esi, esi
add esi, esi
add esi, esi
mov ecx, 0x18
sub ecx, esi
mov edx, ebx
shr edx, cl
test dl, dl
je 0x4049ca
cmp dl, 0xff
jne 0x4049e0
mov ecx, 0x20
sub ecx, esi
mov esi, dword [ebp - 4]
mov edx, 1
shl edx, cl
dec edx
xor edx, ebx
jmp 0x404990
mov edx, ebx
shr edx, 0x18
and dl, 1
dec dl
not dl
mov byte [edi + 4], dl
mov edx, ebx
mov ecx, ebx
shr edx, 8
shr ecx, 0x10
mov byte [edi + 2], dl
mov edx, dword [ebp - 4]
mov byte [edi + 1], bl
mov ebx, dword [ebp - 0xc]
mov byte [edi + 3], cl
add eax, 5
jmp 0x4048d1
pop edi
pop esi
pop ebx
cmp ecx, 3
jbe 0x404a23
mov ecx, dword [ebp + 0x10]
xor edx, edx
mov dword [ecx], edx
mov esp, ebp
pop ebp
ret
dec ecx
shl edx, cl
mov ecx, dword [ebp + 0x10]
and edx, 7
mov dword [ecx], edx
mov esp, ebp
pop ebp
ret
Function at 0x406b00
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov eax, dword [0x41908c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x41703c
mov edi, eax
push 0x86
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
jne 0x406b43
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00409e7c
mov esp, ebp
pop ebp
ret
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push ebx
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
mov dword [ebp - 0x60], edi
test edi, edi
jne 0x406b70
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00409e7c
mov esp, ebp
pop ebp
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push esi
push edi
push eax
call fcn.0040e360
add esp, 0xc
lea eax, [ebp - 0x58]
push eax
push 0
push ebx
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
mov edi, dword [ebp - 0x58]
push 0x10
call sub.gdiplus.dll_GdipAlloc
mov esi, eax
test esi, esi
je 0x406bc5
lea eax, [esi + 4]
push eax
push edi
mov dword [esi], vtable.Gdiplus::Image.0
mov dword [eax], 0
call sub.gdiplus.dll_GdipLoadImageFromStream
mov dword [esi + 8], eax
jmp 0x406bc7
xor esi, esi
mov dword [0x41b550], esi
test esi, esi
je 0x406ca5
mov edx, dword [esi + 4]
lea ecx, [ebp - 0x5c]
push ecx
push edx
mov dword [ebp - 0x5c], 0
call sub.gdiplus.dll_GdipImageGetFrameDimensionsCount
test eax, eax
je 0x406bf0
mov dword [esi + 8], eax
mov esi, dword [ebp - 0x5c]
test esi, esi
jbe 0x406ca5
mov eax, dword [0x41b550]
mov ecx, dword [eax + 8]
mov dword [eax + 8], 0
test ecx, ecx
jne 0x406ca5
mov eax, esi
mov edx, 0x10
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0040a3b0
mov ecx, dword [0x41b550]
add esp, 4
push esi
push eax
mov dword [0x41b554], eax
mov eax, dword [ecx + 4]
push eax
mov edi, ecx
call sub.gdiplus.dll_GdipImageGetFrameDimensionsList
test eax, eax
je 0x406c4a
mov dword [edi + 8], eax
mov edx, dword [0x41b554]
push 0x27
lea ecx, [ebp - 0x54]
push ecx
push edx
call dword [sym.imp.ole32.dll_StringFromGUID2]
mov ecx, dword [0x41b554]
mov esi, dword [0x41b550]
call fcn.004067f0
mov esi, dword [0x41b550]
mov dword [0x41b558], eax
call fcn.00406820
mov esi, eax
push esi
call fcn.00409f68
mov ecx, esi
mov esi, dword [0x41b550]
add esp, 4
mov dword [0x41b560], eax
call fcn.00406850
mov dword [0x41b564], 1
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [ebp - 0x58]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 0x60]
push eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov ecx, dword [ebp - 4]
pop esi
pop edi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.00409e7c
mov esp, ebp
pop ebp
ret
Function at 0x406e90
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor ebx, ebx
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x406ebe
pop esi
lea eax, [ebx + 1]
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 8]
push ebx
lea ecx, [ebp - 4]
push ecx
push edi
push edx
push esi
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [ebp - 4], edi
je 0x406edc
mov ebx, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x407c70
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push str.293SETUP
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x407ce8
mov eax, dword [ebp + 0x10]
push eax
push 0x41ad40
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0
lea ecx, [ebp - 0x10]
push ecx
push 0x41ad3c
mov dword [ebp - 0x10], 1
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
call sub.gdiplus.dll_GdiplusStartup
mov edx, dword [ebp + 8]
push 0
push 0x407d00
push 0
push 0x87
push edx
call dword [sym.imp.USER32.dll_DialogBoxParamW]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0x10
Function at 0x409bd0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x41908c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor eax, eax
push 0x206
mov esi, ecx
push eax
lea ecx, [ebp - 0x20a]
push ecx
mov dword [ebp - 0x210], 0
mov word [ebp - 0x20c], ax
call fcn.0040e0c0
add esp, 0xc
lea edx, [ebp - 0x20c]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], 0
cmp eax, 0x102
ja 0x409c5d
xor eax, eax
mov word [esi + 4], ax
lea eax, [ebp - 0x20c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x409c45
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x20c]
jmp 0x409c69
xor ecx, ecx
mov word [esi + 4], cx
push ecx
mov eax, 0x417070
call fcn.004083c0
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00409e7c
mov esp, ebp
pop ebp
ret

Function at 0x409c80
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x41908c]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x20a]
push ecx
mov word [ebp - 0x20c], ax
call fcn.0040e0c0
add esp, 0xc
push 0x104
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
dec eax
cmp eax, 0x102
ja 0x409ce0
mov ax, word [ebp - 0x20c]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00409e7c
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
call fcn.00409e7c
mov esp, ebp
pop ebp
ret

Function at 0x409e7c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41908c]
jne 0x409e86
repz ret
jmp fcn.0040b144

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x40b019
call fcn.0040b29f
mov dword [eax], esi
call fcn.0040b28c
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.0040a8e3
add esp, 0x14
push 0x16
pop eax
jmp 0x40b06e
test dword [ebp + 0xc], 0xfffffff9
jne 0x40aff5
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40b046
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0040b2b2
pop ecx
call fcn.0040b28c
mov eax, dword [eax]
jmp 0x40b06e
test al, 0x10
jne 0x40b06c
test al, 1
je 0x40b06c
test byte [ebp + 0xc], 2
je 0x40b06c
call fcn.0040b29f
mov dword [eax], 5
call fcn.0040b28c
mov dword [eax], 0xd
jmp 0x40b03d
xor eax, eax
pop esi
pop ebp
ret
Function at 0x40f783
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0040c622
and dword [ebp - 4], 0
cmp dword [0x41ab84], 0
mov ebx, eax
jne 0x40f834
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40f8e5
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40f8e5
push eax
call fcn.0040c5b0
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x41ab84], eax
call esi
push eax
call fcn.0040c5b0
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x41ab88], eax
call esi
push eax
call fcn.0040c5b0
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x41ab8c], eax
call esi
push eax
call fcn.0040c5b0
pop ecx
mov dword [0x41ab94], eax
test eax, eax
je 0x40f834
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040c5b0
pop ecx
mov dword [0x41ab90], eax
mov eax, dword [0x41ab90]
cmp eax, ebx
je 0x40f88c
cmp dword [0x41ab94], ebx
je 0x40f88c
push eax
call fcn.0040c62b
push dword [0x41ab94]
mov esi, eax
call fcn.0040c62b
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40f88c
test edi, edi
je 0x40f88c
call esi
test eax, eax
je 0x40f883
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40f883
test byte [ebp - 0xc], 1
jne 0x40f88c
or dword [ebp + 0x10], 0x200000
jmp 0x40f8c5
mov eax, dword [0x41ab88]
cmp eax, ebx
je 0x40f8c5
push eax
call fcn.0040c62b
pop ecx
test eax, eax
je 0x40f8c5
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40f8c5
mov eax, dword [0x41ab8c]
cmp eax, ebx
je 0x40f8c5
push eax
call fcn.0040c62b
pop ecx
test eax, eax
je 0x40f8c5
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x41ab84]
call fcn.0040c62b
pop ecx
test eax, eax
je 0x40f8e5
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40f8e7
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4afce4
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffb4
mov dword [esp], eax
lea esi, [esp + 0x30]
lea eax, [esp + 0xc]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edi, dword [esp]
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x4afdaf
jmp 0x4afda3
cmp dword [esi + 0x10], 0x1000
jne 0x4afd8f
test byte [esi + 0x15], 1
jne 0x4afd8f
mov byte [esp + 4], 0
mov ebp, dword [esi + 0x14]
cmp ebp, 1
je 0x4afd40
cmp ebp, 2
je 0x4afd40
cmp ebp, 0x10
je 0x4afd40
cmp ebp, 0x20
jne 0x4afd5c
lea eax, [esp + 8]
push eax
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x4afd5c
mov byte [esp + 4], 1
xor ebx, ebx
jmp 0x4afd6d
mov eax, dword [esi]
add eax, ebx
call fcn.004afcdc
add ebx, dword [esp + 0x10]
cmp ebx, dword [esi + 0xc]
jb 0x4afd60
cmp byte [esp + 4], 0
je 0x4afd8f
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 0xc]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov edi, eax
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x4afdaf
mov eax, dword [esi + 4]
cmp eax, dword [esp]
je 0x4afd15
add esp, 0x4c
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x40100b
Capabilities:
Query or enumerate registry value

Disassembly:
call 0x40100b
push eax
call sub.KERNEL32.dll_ExitProcess
push ebp
mov ebp, esp
add esp, 0xfffffef0
jmp 0x40109c
lea eax, [ebp - 0x104]
push eax
call fcn.004011ec
push 0x401019
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
jne 0x401165
lea eax, [ebp - 0x10c]
push eax
push 0x20019
push 0
push 0x401038
push 0x80000001
call sub.ADVAPI32.dll_RegOpenKeyExA
cmp eax, 0
jne 0x4011a5
mov dword [ebp - 0x110], 0x103
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x104]
push eax
push 0
push 0
push 0x401052
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegQueryValueExA
push eax
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegCloseKey
pop eax
cmp eax, 0
jne 0x4011a5
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrlenA
lea ebx, [ebp - 0x104]
add ebx, eax
dec ebx
cmp byte [ebx], 0x5c
je 0x40114a
mov word [ebx], 0x5c
push 0x401023
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
je 0x4011a5
mov dword [ebp - 0x108], eax
push 0x40102d
push eax
call sub.KERNEL32.dll_GetProcAddress
test eax, eax
je 0x40119a
push 0x3e8
call eax
test eax, eax
je 0x40119a
call 0x40118a
add dword [esp], 0x1e76
call eax
push 0
call sub.KERNEL32.dll_ExitProcess
push dword [ebp - 0x108]
call sub.KERNEL32.dll_FreeLibrary
push 0x10
push 0x401096
push 0x401057
push 0
call sub.USER32.dll_MessageBoxA
mov eax, 0xffffffff
leave
ret
Function at 0x401000
Capabilities:
Create process on windows

Disassembly:
push 0x403084
push 0x403040
push 0
push 0
push 0x20
push 0
push 0
push 0
push 0
push str.CradleOfRome.exe
call sub.kernel32.dll_CreateProcessA
push 0
call sub.kernel32.dll_ExitProcess
ret
Function at 0x75a125
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
mov eax, dword [ebp - 8]
jmp 0x72ce9d
xchg ecx, eax
push ebp
int 0x5d
and al, 0xd7
fsubr qword gs:[edi]
lea esp, ss:[esp + 4]
lea esp, [esp + 4]
lea esp, [esp + 4]
jl 0x72ce84
jge 0x75a10e
cmp byte [ecx + 0x1ea35031], ah
jp 0x75a11b
jo 0x75a152
loop 0x75a164
mov dword [reloc.RASAPI32.dll_RasHangUpA], eax
dec esp
and al, 4
stc
cmc
call fcn.0075a0ce
push esi
rol dword [esi + reloc.RASAPI32.dll_RasHangUpA], cl
add byte [eax], al
mov ch, 0x25
dec esp
mov edi, 0x648d2409
and al, 4
and al, 4