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

Disassembly:
push ebp
mov ebp, esp
pushal
mov eax, 0x404076
add eax, dword [ebp + 0x10]
push eax
mov eax, 0x40400c
add eax, dword [ebp + 0x10]
push dword [eax]
mov eax, 0x40410b
add eax, dword [ebp + 0x10]
call dword [eax]
push eax
mov eax, 0x404023
add eax, dword [ebp + 0x10]
push eax
mov eax, 0x40400c
add eax, dword [ebp + 0x10]
push dword [eax]
mov eax, 0x40410b
add eax, dword [ebp + 0x10]
call dword [eax]
pop eax
call eax
or eax, eax
jne 0x411435
push eax
jmp 0x411443
cmp eax, 0x7f
jne 0x411441
push 0x100
jmp 0x411443
push 1
mov esi, dword [ebp + 8]
mov ebx, 0xa
mov ecx, dword [ebp + 0xc]
shr ecx, 2
mov edx, 0
mov eax, dword [ebp + 0xc]
shr eax, 2
sub eax, ecx
push eax
div ebx
inc edx
inc edx
sub dword [esi], edx
xor edx, edx
pop eax
div ebx
add edx, dword [esp]
push edx
add dword [esp], 0x4530ec21
pop edx
xor dword [esi], edx
add esi, 4
loop 0x411451
pop eax
popal
leave
ret 0x10

Function at 0x411537
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
mov esi, dword [esp + 0x90]
and esi, 0xffff0000
mov eax, esi
cmp word [eax], 0x5a4d
jne 0x411556
add eax, dword [eax + 0x3c]
sub esi, 0x10000
cmp word [eax], 0x4550
jne 0x41154a
add esi, 0x10000
push esi
mov eax, 0x40400c
pop dword [eax]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004114a5
mov dword [0x40410b], eax
push 0x404023
push 0x3e9
push 0
call fcn.00412b64
or eax, eax
jne 0x41159a
leave
ret 8
push eax
push eax
push 0
call fcn.00412b82
or eax, eax
jne 0x4115ab
leave
ret 8
mov dword [ebp - 8], eax
pop eax
push eax
push 0
call fcn.00412b76
or eax, eax
jne 0x4115bf
leave
ret 8
push eax
call fcn.00412b7c
or eax, eax
jne 0x4115cd
leave
ret 8
mov dword [ebp - 0xc], eax
push 4
push 0x3000
push dword [ebp - 8]
push 0
call fcn.00412b8e
or eax, eax
jne 0x4115e9
leave
ret 8
push eax
mov esi, dword [ebp - 0xc]
mov edi, eax
mov ecx, dword [ebp - 8]
rep movsb byte es:[edi], byte [esi]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 8]
push dword [esp + 0xc]
call fcn.004113ec
mov ebx, dword [esp]
add ebx, dword [ebx + 0x3c]
lea eax, [ebx + 0x18]
mov ebx, dword [eax + 0x38]
pop eax
push ebx
push 0x8000
push 0
push eax
call fcn.00412b94
mov ebx, dword [ebp + 0xc]
add ebx, dword [ebx + 0x3c]
lea eax, [ebx + 0x18]
mov ebx, dword [eax + 0x38]
mov dword [ebp - 4], ebx
mov ebx, dword [esp]
add ebx, dword [ebp + 0xc]
and ebx, 0xffff0000
add ebx, 0x10000
push 0x40
push 0x3000
push dword [ebp - 4]
push ebx
call fcn.00412b8e
or eax, eax
je 0x41163c
mov edi, eax
mov esi, dword [ebp + 0xc]
mov ecx, dword [ebp - 4]
rep movsb byte es:[edi], byte [esi]
push eax
sub eax, dword [ebp + 0xc]
add dword [ebp + 8], eax
mov ebx, 0x4016b6
add ebx, dword [ebp + 8]
mov dword [ebp - 0x14], ebx
mov ebx, 0x401b5a
add ebx, dword [ebp + 8]
sub ebx, dword [ebp - 0x14]
mov dword [ebp - 0x10], ebx
lea ebx, [ebp - 0x14]
push ebx
push 0x401303
push dword [ebp + 0xc]
call fcn.0041105b
pop eax
pop ebx
push eax
push ebx
push dword [ebp + 8]
push dword [ebp - 8]
mov eax, dword [ebp + 8]
add dword [ebp - 0xc], eax
push dword [ebp - 0xc]
mov eax, 0x40189c
nop
nop
add eax, dword [ebp + 8]
nop
call eax
nop
leave
ret 8
Function at 0x404629
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x404668
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x404668
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x404668
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x404668
cmp dword [ecx + 0x74], 0xe
jbe 0x404668
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x4041b8
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x404374
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x404219
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x404390
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x40428b
xor eax, eax
push ebp
push 0x404284
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
call fcn.00404010
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x40426d
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x4043b0
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40428b
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpyA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x40436c
cmp byte [ebp - 0xd], 0
jne 0x4042cd
cmp byte [ebp - 0x12], 0
je 0x40436c
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x4042e6
dec ebx
cmp byte [ebx], 0x2e
je 0x4042f5
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x4042e5
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x40436c
inc ebx
cmp byte [ebp - 0x12], 0
je 0x404322
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x40436c
cmp byte [ebp - 0xd], 0
je 0x40436c
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x40436c
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x406a60
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x406a99
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403548
jmp 0x406aa2
mov eax, ebx
mov edx, esi
call fcn.004034b4
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x406aac
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x406acd
mov al, byte [esp]
jmp 0x406acf
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x409218
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x40925e
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 4]
mov eax, ebx
call fcn.0040917c
mov eax, dword [ebp - 4]
call fcn.004037dc
push eax
call sub.kernel32.dll_GetFileAttributesA
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409265
lea eax, [ebp - 4]
call fcn.00403460
ret

Function at 0x40950c
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffefc
mov ebx, eax
push 0x104
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
mov edx, ebx
mov eax, esp
call fcn.004064cc
add esp, 0x104
pop ebx
ret

Function at 0x409650
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], ecx
mov edi, edx
mov esi, eax
xor eax, eax
push ebp
push 0x409771
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push 0
lea eax, [ebp - 8]
push eax
push 0
push edi
push esi
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x40975b
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 0xc]
je 0x4096a9
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 8]
jne 0x40975b
cmp dword [ebp - 0xc], 0
jne 0x4096be
mov eax, dword [ebp - 4]
call fcn.00403460
mov bl, 1
jmp 0x40975b
lea eax, [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
xor edx, edx
call fcn.00403548
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
call fcn.004037e8
push eax
lea eax, [ebp - 8]
push eax
push 0
push edi
push esi
call sub.advapi32.dll_RegQueryValueExA_1
cmp eax, 0xea
je 0x409675
test eax, eax
jne 0x40975b
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 0xc]
je 0x409705
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 8]
jne 0x40975b
jmp 0x409705
dec dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0
je 0x409718
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
cmp byte [eax + edx - 1], 0
je 0x409702
cmp dword [ebp - 8], 7
jne 0x409727
cmp dword [ebp - 0xc], 0
je 0x409727
inc dword [ebp - 0xc]
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 0xc]
call fcn.004038bc
cmp dword [ebp - 8], 7
jne 0x40974e
cmp dword [ebp - 0xc], 0
je 0x40974e
lea eax, [ebp - 0x10]
call fcn.004037e8
mov edx, dword [ebp - 0xc]
mov byte [eax + edx - 1], 0
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x10]
call fcn.004034b4
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409778
lea eax, [ebp - 0x10]
call fcn.00403460
ret
Function at 0x40a10c
Capabilities:
Hash data with crc32

Disassembly:
push esi
xor esi, esi
mov ecx, 0x40e63c
mov eax, esi
mov edx, 8
test al, 1
je 0x40a128
shr eax, 1
xor eax, 0xedb88320
jmp 0x40a12a
shr eax, 1
dec edx
jne 0x40a11b
mov dword [ecx], eax
inc esi
add ecx, 4
cmp esi, 0x100
jne 0x40a114
pop esi
ret

Function at 0x40a140
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
mov edi, edx
mov ebx, eax
cmp dword [0x40e638], 0
jne 0x40a163
call fcn.0040a10c
push 1
push 0x40e638
call sub.kernel32.dll_InterlockedExchange
mov eax, edi
test esi, esi
je 0x40a18f
mov edx, ebx
and edx, 0xff
xor ecx, ecx
mov cl, byte [eax]
xor dx, cx
movzx edx, dx
mov edx, dword [edx*4 + 0x40e63c]
shr ebx, 8
xor edx, ebx
mov ebx, edx
dec esi
inc eax
test esi, esi
jne 0x40a169
mov eax, ebx
pop edi
pop esi
pop ebx
ret

Function at 0x40ba78
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
mov esi, edx
mov ebx, eax
lea edx, [ebp - 0xc]
mov eax, ebx
call fcn.0040ba2c
test al, al
jne 0x40ba99
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x40bae5
xor eax, eax
push ebp
push 0x40bad5
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.004037dc
push eax
call sub.kernel32.dll_DeleteFileA
mov dword [ebp - 4], eax
call sub.kernel32.dll_GetLastError_1
mov dword [ebp - 0x10], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40badc
lea eax, [ebp - 0xc]
call fcn.0040ba68
ret
mov eax, dword [ebp - 4]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40be24
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
mov ecx, 4
push 0
push 0
dec ecx
jne 0x40be2c
push ecx
push ebx
push esi
mov esi, eax
xor eax, eax
push ebp
push 0x40bf19
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
call fcn.00409538
mov edx, dword [ebp - 8]
mov ecx, 0x40bf30
xor eax, eax
call fcn.0040bd14
push 0
mov eax, dword [ebp - 4]
call fcn.004037dc
push eax
call sub.kernel32.dll_CreateDirectoryA
test eax, eax
jne 0x40bee7
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
cmp ebx, 0xb7
je 0x40be46
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x1c]
mov edx, dword [ebp - 4]
mov al, 0x2f
call fcn.0040b824
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
mov eax, ebx
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x20]
call fcn.00406294
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x14], eax
lea edx, [ebp - 0x24]
mov eax, ebx
call fcn.00409a0c
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x10], eax
lea edx, [ebp - 0x18]
mov ecx, 2
mov al, 0x60
call fcn.0040b7f4
mov ecx, dword [ebp - 0xc]
mov dl, 1
mov eax, dword [0x4057c0]
call fcn.00407248
call fcn.00402f30
jmp 0x40be46
mov eax, esi
mov edx, dword [ebp - 4]
call fcn.004034b4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40bf20
lea eax, [ebp - 0x24]
mov edx, 3
call fcn.00403484
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00403484
ret
Function at 0x40bf6c
Capabilities:
Shutdown system

Disassembly:
add esp, 0xffffffec
mov eax, dword [0x40d4e0]
cmp dword [eax], 2
jne 0x40bfda
push esp
push 0x28
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
test eax, eax
jne 0x40bf92
call fcn.0040bf40
jmp 0x40bfec
lea eax, [esp + 8]
push eax
push 0x40bff0
push 0
call sub.advapi32.dll_LookupPrivilegeValueA
mov dword [esp + 4], 1
mov dword [esp + 0x10], 2
push 0
push 0
push 0
lea eax, [esp + 0x10]
push eax
push 0
mov eax, dword [esp + 0x14]
push eax
call sub.advapi32.dll_AdjustTokenPrivileges
call sub.kernel32.dll_GetLastError_1
test eax, eax
je 0x40bfda
call fcn.0040bf40
jmp 0x40bfec
push 0
push 2
call sub.user32.dll_ExitWindowsEx
test eax, eax
jne 0x40bfec
call fcn.0040bf40
add esp, 0x14
ret

Function at 0x40c004
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov ebx, eax
mov esi, ecx
dec esi
test esi, esi
jl 0x40c05e
inc esi
xor edi, edi
cmp edi, 1
jne 0x40c02a
mov eax, dword [ebp + 0xc]
push eax
call sub.kernel32.dll_Sleep
jmp 0x40c038
cmp edi, 1
jle 0x40c038
mov eax, dword [ebp + 8]
push eax
call sub.kernel32.dll_Sleep
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.0040ba78
test eax, eax
jne 0x40c05e
call sub.kernel32.dll_GetLastError_1
cmp eax, 2
je 0x40c05e
call sub.kernel32.dll_GetLastError_1
cmp eax, 3
je 0x40c05e
inc edi
dec esi
jne 0x40c01a
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 8

Function at 0x40c490
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff88
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ecx
mov edi, edx
mov esi, eax
lea ebx, [ebp - 0x78]
xor eax, eax
push ebp
push 0x40c582
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x40c598
push esi
push 0x40c5a4
push edi
lea eax, [ebp - 8]
mov edx, 4
call fcn.0040377c
lea eax, [ebp - 0x4c]
xor ecx, ecx
mov edx, 0x44
call fcn.00402764
mov dword [ebp - 0x4c], 0x44
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x4c]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 8]
call fcn.004037dc
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
jne 0x40c514
mov al, 0x62
call fcn.0040c0a0
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_CloseHandle_1
jmp 0x40c52b
push ebx
call sub.user32.dll_TranslateMessage
push ebx
call sub.user32.dll_DispatchMessageA
push 1
push 0
push 0
push 0
push ebx
call sub.user32.dll_PeekMessageA
test eax, eax
jne 0x40c51f
push 0xff
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x5c]
push eax
push 1
call sub.user32.dll_MsgWaitForMultipleObjects
cmp eax, 1
je 0x40c52b
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 0x5c]
push eax
call sub.kernel32.dll_GetExitCodeProcess
mov eax, dword [ebp - 0x5c]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c589
lea eax, [ebp - 8]
call fcn.00403460
ret
Function at 0x40c644
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffbc
mov edi, eax
lea esi, [esp + 0x28]
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemInfo
mov ebx, edi
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery_1
test eax, eax
je 0x40c6f8
jmp 0x40c6ed
cmp dword [esi + 0x10], 0x1000
jne 0x40c6d9
test byte [esi + 0x15], 1
jne 0x40c6d9
xor ebx, ebx
mov eax, dword [esi + 0x14]
cmp eax, 1
je 0x40c698
cmp eax, 2
je 0x40c698
cmp eax, 0x10
je 0x40c698
cmp eax, 0x20
jne 0x40c6ad
push esp
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x40c6ad
mov bl, 1
xor ebp, ebp
jmp 0x40c6be
mov eax, dword [esi]
add eax, ebp
call fcn.0040c63c
add ebp, dword [esp + 8]
cmp ebp, dword [esi + 0xc]
jb 0x40c6b1
test bl, bl
je 0x40c6d9
push esp
mov eax, dword [esp + 4]
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 ebx, eax
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery_1
test eax, eax
je 0x40c6f8
mov eax, dword [esi + 4]
cmp eax, edi
je 0x40c670
add esp, 0x44
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x4013b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4013c9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401404
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x401400
lea ebx, [ebx]
cmp esi, eax
jae 0x401404
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4013f0
cmp esi, eax
jb 0x40140a
pop esi
pop edi
xor eax, eax
pop ebx
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x401890
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x14]
push ebx
push esi
xor esi, esi
push esi
push esi
push 2
push esi
push 3
push 0xc0000000
push eax
mov dword [esp + 0x28], 1
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4018c5
pop esi
xor eax, eax
pop ebx
add esp, 8
ret
push edi
mov edi, dword [esp + 0x1c]
cmp edi, esi
mov dword [esp + 0xc], esi
jbe 0x401916
push ebp
mov ebp, dword [esp + 0x1c]
push 0
lea ecx, [esp + 0x14]
push ecx
mov edx, edi
sub edx, esi
push edx
lea eax, [esi + ebp]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40190d
add esi, dword [esp + 0x10]
cmp esi, edi
jb 0x4018d7
pop ebp
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebx
add esp, 8
ret
mov dword [esp + 0x14], 0
pop ebp
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebx
add esp, 8
ret

Function at 0x401930
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
call fcn.004081d9
mov esi, dword [eax + 0xc]
test esi, esi
jne 0x401941
xor eax, eax
pop esi
ret
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
push edi
push eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x40195c
pop edi
pop esi
ret
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
jne 0x40196f
pop ebx
pop edi
pop esi
ret
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edx, dword [esp + 0x18]
push edx
push esi
push eax
call fcn.00401890
add esp, 0xc
pop ebx
pop edi
mov eax, 1
pop esi
ret
Function at 0x402210
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x4335c9
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov eax, dword [0x443570]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x1c], ebx
call fcn.0040eb18
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x40225b
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
mov esi, dword [esp + 0x34]
add eax, 0x10
mov dword [esi], eax
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x38]
lea ecx, [esp + 0x14]
push ecx
push 0x20019
push ebx
push edx
push eax
mov dword [esp + 0x40], ebx
mov dword [esp + 0x30], 1
mov dword [esp + 0x28], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x402335
mov edi, dword [esp + 0x40]
mov eax, dword [esp + 0x14]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0x18]
push ecx
push ebx
lea edx, [esp + 0x28]
push edx
push ebx
push edi
push eax
call ebp
test eax, eax
jne 0x40232a
mov eax, dword [esi]
mov edx, dword [esp + 0x18]
sub eax, 0x10
mov ecx, 1
sub ecx, dword [eax + 0xc]
mov eax, dword [eax + 8]
sub eax, edx
or eax, ecx
jge 0x4022e4
push edx
mov ecx, esi
call fcn.00401c00
mov eax, dword [esi]
lea ecx, [esp + 0x18]
push ecx
push eax
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x28]
push edx
push ebx
push edi
push eax
call ebp
mov ecx, dword [esi]
cmp ecx, ebx
jne 0x402304
xor eax, eax
jmp 0x40231d
mov eax, ecx
lea edi, [eax + 1]
lea esp, [esp]
mov dl, byte [eax]
add eax, 1
cmp dl, bl
jne 0x402310
sub eax, edi
js 0x40234b
cmp eax, dword [ecx - 8]
jg 0x40234b
mov dword [ecx - 0xc], eax
mov ecx, dword [esi]
mov byte [eax + ecx], bl
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
push 0x80070057
call fcn.00401090
int3

Function at 0x402990
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4336a8
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x443570]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov eax, dword [esp + 0x38]
push eax
push 1
push 0
lea ecx, [esp + 0x18]
call fcn.00408dc4
mov esi, dword [esp + 0x24]
lea ecx, [esp + 0xc]
push ecx
mov ecx, esi
mov dword [esp + 0x20], 0
call fcn.00408d2a
mov edx, dword [esp + 0x2c]
mov edi, eax
mov eax, dword [esp + 0x28]
push edx
push eax
lea ecx, [esp + 0x30]
push ecx
mov ecx, esi
call fcn.00408739
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x30]
push edx
push eax
mov ecx, esi
call fcn.00408381
push edi
mov ecx, esi
call fcn.00408d2a
lea ecx, [esp + 0xc]
mov dword [esp + 0x1c], 0xffffffff
mov dword [esp + 0xc], vtable.CPen.0
call fcn.00402870
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x14
ret