joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4af4c0
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
push edi
push ebp
mov esi, ecx
mov edi, edx
mov ebx, eax
mov eax, ebx
call fcn.004af4ac
test eax, eax
jne 0x4af4e1
mov eax, esi
call fcn.00404c08
jmp 0x4af572
mov eax, ebx
call fcn.004af608
test al, al
je 0x4af527
push 0
push 0
push 0xe
mov eax, dword [ebx + 0x4c]
push eax
call sub.user32.dll_SendMessageA
mov edi, eax
mov eax, esi
mov ecx, edi
xor edx, edx
call fcn.00404cf8
test edi, edi
je 0x4af51e
mov eax, dword [esi]
push eax
inc edi
push edi
push 0xd
mov eax, dword [ebx + 0x4c]
push eax
call sub.user32.dll_SendMessageA
jmp 0x4af572
mov eax, esi
call fcn.00404c08
jmp 0x4af572
mov ebp, dword [ebx + 0x70]
test ebp, ebp
je 0x4af56b
mov eax, dword [ebp + 0x208]
call fcn.0041a48c
test eax, eax
jle 0x4af559
mov eax, dword [ebx + 0x70]
mov eax, dword [eax + 0x208]
mov edx, edi
call fcn.004376d4
mov edx, dword [eax + 0xc]
mov eax, esi
call fcn.00404c5c
jmp 0x4af572
mov eax, esi
mov edx, dword [ebx + 0x70]
mov edx, dword [edx + 0x210]
call fcn.00404c5c
jmp 0x4af572
mov eax, esi
call fcn.00404c08
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4c41e0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
mov edi, eax
mov ebx, dword [ebp + 8]
add ebx, 0xffffffc4
mov esi, dword [ebp + 8]
add esi, 0xffffffb8
xor eax, eax
push ebp
push 0x4c4393
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x44]
call fcn.00428fb8
mov eax, dword [eax + 0xc]
mov edx, dword [esi]
mov edx, dword [edx + 0x30]
mov edx, dword [edx + 0x70]
mov edx, dword [edx + 0x10]
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x4c]
call fcn.00458698
call fcn.004b1dd0
mov edx, dword [ebp + 8]
mov dword [edx - 0x50], eax
mov eax, dword [ebp + 8]
cmp dword [eax - 0x50], 0
je 0x4c4264
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x50]
mov eax, dword [eax + 0x68]
call fcn.00423b3c
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x44]
call fcn.00428fb8
mov eax, dword [eax + 0xc]
pop edx
call fcn.00423b44
mov eax, dword [ebp + 8]
mov dword [eax - 0x40], ebx
lea edx, [ebp - 4]
mov eax, dword [esi]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x70]
mov eax, dword [eax + 0x10]
call fcn.00423a24
mov edx, dword [ebp - 4]
lea eax, [ebx + 0x1c]
call fcn.0040a028
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x40]
push eax
push 0x3c
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x44]
call fcn.00428fb8
call fcn.00424908
push eax
call sub.gdi32.dll_GetObjectA
mov dword [ebx + 8], edi
mov eax, dword [esi]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x70]
mov eax, dword [eax + 0x10]
call fcn.00423a98
mov dword [ebx], eax
mov eax, dword [esi]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x70]
mov eax, dword [eax + 0x10]
call fcn.00423ad4
test al, 8
setne al
mov byte [ebx + 0x16], al
mov eax, dword [esi]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x70]
mov eax, dword [eax + 0x10]
call fcn.00423ad4
test al, 2
setne al
mov byte [ebx + 0x14], al
mov eax, dword [esi]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x70]
mov eax, dword [eax + 0x10]
call fcn.00423ad4
test al, 4
setne al
mov byte [ebx + 0x15], al
mov dword [ebx + 0x10], 0x190
mov eax, dword [esi]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x70]
mov eax, dword [eax + 0x10]
call fcn.00423b3c
mov byte [ebx + 0x17], al
xor eax, eax
mov dword [ebx + 4], eax
mov byte [ebx + 0x18], 0
mov byte [ebx + 0x19], 0
mov eax, dword [ebx + 8]
mov dword [ebx + 0xc], eax
mov byte [ebx + 0x1b], 0
mov byte [ebx + 0x1a], 0
push ebx
call sub.gdi32.dll_CreateFontIndirectA
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x44]
call fcn.00428fb8
mov eax, dword [eax + 0xc]
pop edx
call fcn.004239d0
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x44]
call fcn.00428fb8
mov eax, dword [eax + 0xc]
mov edx, dword [ebp + 8]
imul edx, dword [edx - 0x54], 0x23
mov ecx, dword [esi]
mov ecx, dword [ecx + 0x30]
mov ecx, dword [ecx + 0x94]
mov edx, dword [ecx + edx*4 + 0xc]
call fcn.00423814
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c439a
lea eax, [ebp - 4]
call fcn.00404c08
ret
Function at 0x4dadc4
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffe0
mov ebp, edx
mov ebx, eax
cmp dword [ebx + 0x6c], 0
jne 0x4daddc
mov eax, ebx
call fcn.004da690
cmp dword [ebx + 0x68], 0
jne 0x4dade9
mov eax, ebx
call fcn.004da618
mov eax, dword [ebx + 0x6c]
mov edx, dword [eax]
call dword [edx + 0x2c]
mov dword [esp], eax
mov eax, dword [ebx + 0x6c]
mov edx, dword [eax]
call dword [edx + 0x20]
mov dword [esp + 4], eax
lea edx, [esp + 0x10]
mov eax, ebx
call fcn.004da498
lea eax, [esp + 0x10]
xor edx, edx
call fcn.004db714
cmp eax, dword [esp]
je 0x4dae57
lea eax, [esp + 0x10]
xor edx, edx
call fcn.004db728
mov edx, dword [esp + 4]
sub edx, eax
sar edx, 1
jns 0x4dae33
adc edx, 0
push edx
lea eax, [esp + 0x14]
xor edx, edx
call fcn.004db714
mov edx, dword [esp + 4]
sub edx, eax
sar edx, 1
jns 0x4dae4c
adc edx, 0
push edx
lea eax, [esp + 0x18]
push eax
call sub.user32.dll_InflateRect
mov esi, dword [ebx + 0x48]
test esi, esi
je 0x4dae72
push 3
mov eax, dword [esi + 0x10]
call fcn.0044c7fc
push eax
call sub.user32.dll_GetWindow
mov esi, eax
jmp 0x4dae7f
push 3
mov eax, dword [ebx + 0x50]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov edi, 0x610
mov edx, dword [esp + 0x10]
mov eax, dword [ebx + 0x68]
call fcn.00445784
mov edx, dword [esp + 0x14]
mov eax, dword [ebx + 0x68]
call fcn.004457a8
mov edx, dword [esp]
mov eax, dword [ebx + 0x68]
call fcn.004457d0
mov edx, dword [esp + 4]
mov eax, dword [ebx + 0x68]
call fcn.004457f4
lea ecx, [esp + 8]
xor edx, edx
xor eax, eax
call fcn.004182a4
mov eax, ebp
mov edx, dword [0x52029c]
mov byte [edx + 2], al
mov eax, dword [0x52029c]
mov byte [eax], 0
mov eax, dword [0x52029c]
mov byte [eax + 1], 0
mov eax, dword [0x52029c]
mov byte [eax + 3], 1
or edi, 2
or edi, 1
push edi
push 0
push 0
push 0
push 0
push esi
mov eax, dword [ebx + 0x68]
call fcn.0044c7fc
push eax
call sub.user32.dll_SetWindowPos
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0xffffffffffffffec
mov eax, dword [ebx + 0x68]
call fcn.0044c7fc
push eax
call sub.user32.dll_GetWindowLongA
or eax, 0x80000
or eax, 0x8000000
or eax, 0x20
push eax
push 0xffffffffffffffec
mov eax, dword [ebx + 0x68]
call fcn.0044c7fc
push eax
call sub.user32.dll_SetWindowLongA
push 2
mov eax, dword [0x52029c]
push eax
push 0x1fffffff
lea eax, [esp + 0x14]
push eax
mov eax, dword [ebx + 0x6c]
call fcn.00428fb8
call fcn.00424908
push eax
lea eax, [esp + 0x14]
push eax
push 0
push esi
mov eax, dword [ebx + 0x68]
call fcn.0044c7fc
push eax
mov eax, dword [0x520258]
mov eax, dword [eax]
call eax
push 4
mov eax, dword [ebx + 0x68]
call fcn.0044c7fc
push eax
call sub.user32.dll_ShowWindow
push 0
push esi
call sub.user32.dll_ReleaseDC
add esp, 0x20
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x4dbafc
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
mov esi, eax
call sub.kernel32.dll_GetTickCount
mov ebx, eax
mov eax, dword [0x5206b4]
mov eax, dword [eax]
call fcn.00465e30
call sub.kernel32.dll_GetTickCount
sub eax, ebx
cmp eax, esi
jb 0x4dbb07
pop esi
pop ebx
ret
Function at 0x4dc054
Capabilities:
Get file system object information

Disassembly:
push ebx
push esi
add esp, 0xfffffe9c
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [esp], eax
mov eax, ebx
call fcn.00409c68
test al, al
je 0x4dc0db
lea eax, [esp + 4]
xor ecx, ecx
mov edx, 0x160
call fcn.00403678
or esi, 0x100
test esi, esi
jns 0x4dc08f
call fcn.00403d34
push esi
push 0x160
lea eax, [esp + 0xc]
push eax
push 0
mov eax, ebx
call fcn.004050c8
push eax
call sub.shell32.dll_SHGetFileInfoA
test eax, eax
je 0x4dc0db
mov dl, 1
mov eax, dword [0x422988]
call fcn.0042a5b8
mov dword [esp], eax
mov edx, dword [esp + 4]
mov eax, dword [esp]
call fcn.0042a988
mov eax, dword [esp]
mov edx, dword [eax]
call dword [edx + 0x1c]
test al, al
je 0x4dc0db
mov eax, esp
call fcn.0040ee38
mov eax, dword [esp]
add esp, 0x164
pop esi
pop ebx
ret

Function at 0x4eb344
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
dec ecx
js 0x4eb395
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x4eb37c
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x4eb36c
jmp 0x4eb395
push ebx
xor ebx, ebx
mov eax, dword [edx + ecx*4]
mov bh, al
mov bl, ah
shr eax, 0x10
shl ebx, 8
mov bl, al
mov dword [edx + ecx*4], ebx
dec ecx
jns 0x4eb37d
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4fe648
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe5c
push ebx
push esi
xor edx, edx
mov dword [ebp - 0x1a4], edx
mov dword [ebp - 0x1a0], edx
mov esi, eax
xor eax, eax
push ebp
push 0x4fe799
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x9c], 0x94
lea eax, [ebp - 0x9c]
push eax
call sub.kernel32.dll_GetVersionExA
test eax, eax
je 0x4fe694
cmp dword [ebp - 0x8c], 1
je 0x4fe698
xor ebx, ebx
jmp 0x4fe69a
mov bl, 1
mov dl, 1
mov eax, dword [0x436e84]
call fcn.00436f54
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4fe774
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, 0x80000002
mov eax, dword [ebp - 4]
call fcn.00436ff4
test bl, bl
je 0x4fe6d7
mov edx, 0x4fe7b0
mov eax, dword [ebp - 4]
call fcn.0043717c
jmp 0x4fe6e4
mov edx, 0x4fe7e4
mov eax, dword [ebp - 4]
call fcn.0043717c
lea ecx, [ebp - 0x1a0]
mov edx, 0x4fe81c
mov eax, dword [ebp - 4]
call fcn.004373ac
mov edx, dword [ebp - 0x1a0]
lea eax, [esi + 0x1c]
call fcn.00404c5c
lea ecx, [ebp - 0x1a4]
mov edx, 0x4fe834
mov eax, dword [ebp - 4]
call fcn.004373ac
mov edx, dword [ebp - 0x1a4]
lea eax, [esi + 0x20]
call fcn.00404c5c
mov eax, dword [ebp - 4]
call fcn.00436fc4
cmp dword [esi + 0x1c], 0
jne 0x4fe75e
mov dword [ebp - 8], 0xff
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x19c]
push eax
call sub.advapi32.dll_GetUserNameA
lea eax, [esi + 0x1c]
lea edx, [ebp - 0x19c]
mov ecx, pe_nt_image_headers32
call fcn.00404e78
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4fe77b
mov eax, dword [ebp - 4]
call fcn.00403df8
ret
Function at 0x50ea24
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
mov ecx, 8
push 0
push 0
dec ecx
jne 0x50ea2c
push ecx
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x50ec1e
push dword fs:[eax]
mov dword fs:[eax], esp
mov esi, dword [ebx + 8]
lea ecx, [ebp - 0xc]
mov edx, 0x50ec34
mov eax, esi
call fcn.0050c8b0
mov edx, dword [ebp - 0xc]
lea eax, [ebx + 0xc]
call fcn.00404c5c
lea ecx, [ebp - 0x10]
mov edx, 0x50ec48
mov eax, esi
call fcn.0050c8b0
mov edx, dword [ebp - 0x10]
lea eax, [ebx + 0x28]
call fcn.00404c5c
lea ecx, [ebp - 0x14]
mov edx, 0x50ec60
mov eax, esi
call fcn.0050c8b0
mov edx, dword [ebp - 0x14]
lea eax, [ebx + 0x10]
call fcn.00404c5c
lea ecx, [ebp - 0x18]
mov edx, 0x50ec7c
mov eax, esi
call fcn.0050c8b0
mov edx, dword [ebp - 0x18]
lea eax, [ebx + 0x14]
call fcn.00404c5c
lea ecx, [ebp - 0x1c]
mov edx, 0x50ec98
mov eax, esi
call fcn.0050c8b0
mov edx, dword [ebp - 0x1c]
lea eax, [ebx + 0x24]
call fcn.00404c5c
lea ecx, [ebp - 0x24]
mov edx, 0x50ecb0
mov eax, esi
call fcn.0050c8b0
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x20]
call fcn.00409258
mov eax, dword [ebp - 0x20]
or edx, 0xffffffff
call fcn.004097f4
mov edi, eax
mov dword [ebx + 0x18], edi
test edi, edi
setge al
mov byte [ebx + 0x4c], al
lea ecx, [ebp - 0x28]
mov edx, 0x50ecc8
mov eax, esi
call fcn.0050c8b0
mov eax, dword [ebp - 0x28]
call fcn.00506388
fstp qword [ebx + 0x30]
wait
lea ecx, [ebp - 0x2c]
mov edx, 0x50ecd8
mov eax, esi
call fcn.0050c8b0
mov eax, dword [ebp - 0x2c]
call fcn.00506388
fstp qword [ebx + 0x40]
wait
lea ecx, [ebp - 0x30]
mov edx, 0x50ecf0
mov eax, esi
call fcn.0050c8b0
mov eax, dword [ebp - 0x30]
or edx, 0xffffffff
call fcn.004097f4
inc eax
je 0x50ebc1
lea ecx, [ebp - 0x34]
mov edx, 0x50ecf0
mov eax, esi
call fcn.0050c8b0
mov eax, dword [ebp - 0x34]
call fcn.004097b8
mov edi, eax
mov eax, edi
mov ecx, 0xe10
cdq
idiv ecx
mov dword [ebp - 8], eax
mov eax, edi
mov ecx, 0xe10
cdq
idiv ecx
mov ecx, edx
mov eax, ecx
push ecx
mov ecx, 0x3c
cdq
idiv ecx
pop ecx
mov dword [ebp - 4], eax
mov eax, ecx
mov ecx, 0x3c
cdq
idiv ecx
mov edi, edx
push 0
mov ecx, edi
mov dx, word [ebp - 4]
mov ax, word [ebp - 8]
call fcn.0040afc4
fstp qword [ebp - 0x3c]
wait
call fcn.0040b394
fadd qword [ebp - 0x3c]
fstp qword [ebx + 0x38]
wait
jmp 0x50ebdc
lea ecx, [ebp - 0x40]
mov edx, 0x50ecf0
mov eax, esi
call fcn.0050c8b0
mov eax, dword [ebp - 0x40]
call fcn.00506388
fstp qword [ebx + 0x38]
wait
lea ecx, [ebp - 0x44]
mov edx, 0x50ed00
mov eax, esi
call fcn.0050c8b0
mov edx, dword [ebp - 0x44]
lea eax, [ebx + 0x48]
call fcn.00404c5c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50ec25
lea eax, [ebp - 0x44]
mov edx, 2
call fcn.00404c2c
lea eax, [ebp - 0x34]
mov edx, 0xb
call fcn.00404c2c
ret
Function at 0x5159b0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
xor edx, edx
push ebp
push 0x515a0a
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [eax + 0x30]
call fcn.005159a0
mov ebx, eax
lea edx, [ebp - 4]
mov eax, edi
call fcn.00504ff4
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0xc]
call fcn.00504bf4
mov edx, dword [esi + 8]
mov eax, dword [ebx + 0x10]
mov ecx, dword [eax]
call dword [ecx + 8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x515a11
lea eax, [ebp - 4]
call fcn.00404c08
ret

Function at 0x5193fc
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x5194fc
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebx + 0x30c]
mov edx, dword [eax + 0x218]
test edx, edx
jne 0x5194a4
mov edx, 1
call fcn.00432ab0
mov eax, dword [ebx + 0x2f8]
xor edx, edx
call fcn.00445f34
mov eax, dword [ebx + 0x33c]
mov dl, 1
call fcn.00431d68
xor eax, eax
push ebp
push 0x519498
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 8]
xor eax, eax
call fcn.00402ed0
mov eax, dword [ebp - 8]
lea edx, [ebp - 4]
call fcn.00409e20
lea eax, [ebp - 4]
mov edx, 0x519514
call fcn.00404ed0
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0x32c]
mov eax, dword [eax + 0x168]
call fcn.00426a00
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x5194e1
cmp edx, 2
jne 0x5194e1
push 1
push 0
push 0
mov eax, dword [ebx + 0x320]
mov eax, dword [eax + 0x80]
call fcn.004050c8
push eax
push 0
mov eax, ebx
call fcn.0044c7fc
push eax
call sub.shell32.dll_ShellExecuteA
push 0x190
call sub.kernel32.dll_Sleep_1
mov eax, ebx
call fcn.00462860
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x519503
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404c2c
ret
Function at 0x70299f
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
cld
mov dl, 0x80
movsb byte es:[edi], byte [esi]
call fcn.00702a1e
jae 0x7029ab
xor ecx, ecx
call fcn.00702a1e
jae 0x7029d5
xor eax, eax
call fcn.00702a1e
jae 0x7029e6
mov al, 0x10
call fcn.00702a1e
adc al, al
jae 0x7029c7
jne 0x702a13
stosb byte es:[edi], al
jmp 0x7029ac
call fcn.00702a2a
dec ecx
loop 0x7029f2
mov eax, ebp
call fcn.00702a28
jmp 0x702a14
lodsb al, byte [esi]
shr eax, 1
je 0x702a3a
adc ecx, 2
mov ebp, eax
jmp 0x702a14
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
mov ebp, eax
call fcn.00702a28
cmp eax, 0x7d00
jae 0x702a12
cmp eax, 0x500
jae 0x702a13
cmp eax, 0x7f
ja 0x702a14
inc ecx
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x7029ac
pop ebp
ret 8
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 0x4093b5
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
cld
mov dl, 0x80
movsb byte es:[edi], byte [esi]
call fcn.00409434
jae 0x4093c1
xor ecx, ecx
call fcn.00409434
jae 0x4093eb
xor eax, eax
call fcn.00409434
jae 0x4093fc
mov al, 0x10
call fcn.00409434
adc al, al
jae 0x4093dd
jne 0x409429
stosb byte es:[edi], al
jmp 0x4093c2
call fcn.00409440
dec ecx
loop 0x409408
mov eax, ebp
call fcn.0040943e
jmp 0x40942a
lodsb al, byte [esi]
shr eax, 1
je 0x409450
adc ecx, 2
mov ebp, eax
jmp 0x40942a
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
mov ebp, eax
call fcn.0040943e
cmp eax, 0x7d00
jae 0x409428
cmp eax, 0x500
jae 0x409429
cmp eax, 0x7f
ja 0x40942a
inc ecx
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x4093c2
pop ebp
ret 8
Function at 0x45bffa
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x50
push ebp
lea eax, [esp + 0x28]
push edi
push eax
call fcn.0045c1aa
mov ecx, dword [esp + 0x5c]
xor edx, edx
xor ebp, ebp
mov dword [esp + 0xc], 1
mov edi, dword [ecx]
mov dword [esp + 0x10], 8
mov dword [esp + 0x14], 2
mov dword [esp + 0x18], 4
mov dx, word [edi + 0x14]
cmp word [edi + 6], bp
mov dword [esp + 0x1c], 0x10
mov dword [esp + 0x20], 0x80
mov dword [esp + 0x24], 0x20
mov dword [esp + 0x28], 0x40
lea eax, [edx + edi + 0x18]
jbe 0x45c0f8
push ebx
push esi
lea ebx, [eax + 0x24]
mov eax, dword [ebx]
mov ecx, eax
mov edx, eax
shr ecx, 0x1d
shr edx, 0x1e
mov esi, eax
and ecx, 1
and edx, 1
shr esi, 0x1f
test eax, 0x2000000
je 0x45c09b
mov eax, dword [ebx - 0x14]
mov ecx, dword [ebx - 0x1c]
push 0x4000
push eax
push ecx
call dword [esp + 0x4c]
jmp 0x45c0de
lea edx, [edx + ecx*2]
test eax, 0x4000000
lea ecx, [esi + edx*2]
mov esi, dword [esp + ecx*4 + 0x14]
je 0x45c0b2
or esi, 0x200
mov edx, dword [ebx - 0x14]
mov ecx, edx
test ecx, ecx
jne 0x45c0cd
test al, 0x40
je 0x45c0c4
mov ecx, dword [edi + 0x20]
jmp 0x45c0cb
test al, 0x80
je 0x45c0de
mov ecx, dword [edi + 0x24]
test ecx, ecx
jbe 0x45c0de
mov ecx, dword [ebx - 0x1c]
lea eax, [esp + 0x10]
push eax
push esi
push edx
push ecx
call dword [esp + 0x44]
mov edx, dword [esp + 0x64]
xor eax, eax
inc ebp
add ebx, 0x28
mov edi, dword [edx]
mov ax, word [edi + 6]
cmp ebp, eax
jl 0x45c06a
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x50
ret
Function at 0x408320
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x4b8914]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor ebx, ebx
push 0x27
lea eax, [ebp - 0x2c]
push ebx
push eax
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
call fcn.00473a10
add esp, 0xc
push ebx
push 0x80
push 3
push ebx
push 3
push 0xc0000000
push 0x4aaebc
mov dword [ebp - 0x38], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x408386
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00471528
mov esp, ebp
pop ebp
ret
push ebx
lea ecx, [ebp - 0x38]
push ecx
push 4
lea edx, [ebp - 0x34]
push edx
push 4
mov eax, edx
push eax
push 0x8000e00c
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x4083ae
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x408414
mov ecx, 4
lea edx, [ebp - 0x34]
or eax, 0xffffffff
push edi
lea ebx, [ebx]
movsx edi, byte [edx]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x4aaee8]
dec ecx
inc edx
cmp ecx, ebx
jne 0x4083c0
push ebx
lea ecx, [ebp - 0x38]
push ecx
push 0x2b
lea edx, [ebp - 0x30]
push edx
not eax
push 0x2b
mov dword [ebp - 0x2c], eax
mov eax, edx
push eax
push 0x8000e014
push esi
mov dword [ebp - 0x30], 0x2b
mov word [ebp - 7], 0x43
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
pop edi
test eax, eax
je 0x4083a6
cmp byte [ebp - 6], bl
setne bl
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.00471528
mov esp, ebp
pop ebp
ret
Function at 0x4084c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
xor edi, edi
push edi
push 0x80
push 3
push edi
push 3
push 0xc0000000
push str..ControlDevice
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], 4
mov dword [ebp - 0xc], edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x10], edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40850d
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor bl, bl
jmp 0x408594
push edi
lea eax, [ebp - 0x10]
push eax
push 4
lea ecx, [ebp - 4]
push ecx
push 4
mov edx, ecx
push edx
push 0x22400c
push esi
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x40853a
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor bl, bl
jmp 0x408540
cmp dword [ebp - 4], edi
setne bl
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test bl, bl
je 0x408594
lea eax, [ebp - 8]
push eax
push 0x20019
push edi
push str.SYSTEMCurrentControlSetiCafe8
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x40856d
xor bl, bl
jmp 0x408594
mov eax, dword [ebp - 8]
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0xc]
push edx
push edi
push edi
push str.Admin
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x40858e
xor bl, bl
jmp 0x408594
cmp dword [ebp - 0xc], edi
setne bl
mov eax, dword [ebp - 8]
cmp eax, edi
je 0x4085a2
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret