joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41f8e4
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbd8
push ebx
push esi
xor edx, edx
mov dword [ebp - 0x428], edx
mov dword [ebp - 0x424], edx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x41fa18
push dword fs:[eax]
mov dword fs:[eax], esp
movzx ebx, byte [0x41fa28]
mov dl, 1
mov eax, esi
call fcn.0041fbac
test al, al
jne 0x41f935
mov dl, 1
mov eax, esi
call fcn.0041fb14
test al, al
je 0x41f9cb
lea edx, [ebp - 0x424]
mov eax, esi
call fcn.0042033c
mov eax, dword [ebp - 0x424]
lea edx, [ebp - 4]
call fcn.0042680c
push 0x104
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
push 0x104
lea eax, [ebp - 0x218]
push eax
mov eax, dword [ebp - 4]
call fcn.00408ac4
mov esi, eax
push esi
call sub.kernel32.dll_GetVolumeInformationW
test eax, eax
je 0x41f9c6
test byte [ebp - 0xc], 1
je 0x41f991
or bl, 1
test byte [ebp - 0xc], 2
je 0x41f99a
or bl, 2
test byte [ebp - 0xc], 0x80
je 0x41f9a3
or bl, 0x20
push esi
call sub.kernel32.dll_GetDriveTypeW
sub eax, 2
je 0x41f9b7
dec eax
je 0x41f9bc
dec eax
je 0x41f9c1
dec eax
jne 0x41f9f2
or bl, 0x10
jmp 0x41f9f2
or bl, 4
jmp 0x41f9f2
or bl, 8
jmp 0x41f9f2
call fcn.004271b0
lea edx, [ebp - 0x428]
mov eax, dword [0x536098]
call fcn.0040bdbc
mov ecx, dword [ebp - 0x428]
mov dl, 1
mov eax, dword [0x41ac84]
call fcn.00425330
call fcn.00407328
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41fa1f
lea eax, [ebp - 0x428]
mov edx, 2
call fcn.00407c90
lea eax, [ebp - 4]
call fcn.00407c30
ret

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

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, esi
call fcn.00408ac4
mov edi, eax
push edi
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x41fb7e
test ah, 4
je 0x41fb77
test bl, bl
jne 0x41fb3c
mov al, 1
jmp 0x41fba5
test al, 0x10
je 0x41fb44
xor eax, eax
jmp 0x41fba5
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push edi
call sub.kernel32.dll_CreateFileW_1
cmp eax, 0xffffffff
je 0x41fb68
push eax
call sub.kernel32.dll_CloseHandle_1
mov al, 1
jmp 0x41fba5
call sub.kernel32.dll_GetLastError_2
mov ebx, eax
cmp ebx, 0x20
sete al
jmp 0x41fba5
test al, 0x10
sete al
jmp 0x41fba5
call sub.kernel32.dll_GetLastError_2
mov ebx, eax
cmp ebx, 2
je 0x41fb9f
cmp ebx, 3
je 0x41fb9f
cmp ebx, 0x7b
je 0x41fb9f
mov eax, esi
call fcn.0041fad4
test al, al
jne 0x41fba3
xor eax, eax
jmp 0x41fba5
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0x41fbac
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov byte [esp], dl
mov edi, eax
xor ebx, ebx
mov eax, edi
call fcn.00408ac4
mov ebp, eax
push ebp
call sub.kernel32.dll_GetFileAttributesW
mov esi, eax
cmp esi, 0xffffffff
je 0x41fc53
test esi, 0x400
jne 0x41fbe8
test esi, 0x10
setne bl
jmp 0x41fc72
cmp byte [esp], 0
je 0x41fc1c
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.kernel32.dll_CreateFileW_1
cmp eax, 0xffffffff
je 0x41fc72
push eax
call sub.kernel32.dll_CloseHandle_1
test esi, 0x10
setne bl
jmp 0x41fc72
test esi, 0x10
je 0x41fc28
mov bl, 1
jmp 0x41fc72
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.kernel32.dll_CreateFileW_1
cmp eax, 0xffffffff
je 0x41fc4f
push eax
call sub.kernel32.dll_CloseHandle_1
xor ebx, ebx
jmp 0x41fc72
mov bl, 1
jmp 0x41fc72
call sub.kernel32.dll_GetLastError_2
cmp eax, 2
je 0x41fc6c
cmp eax, 3
je 0x41fc6c
cmp eax, 0x7b
je 0x41fc6c
cmp eax, 0x35
jne 0x41fc70
xor ebx, ebx
jmp 0x41fc72
mov bl, 1
mov eax, ebx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x41fddc
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x41fe81
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.00408ac4
push eax
call sub.kernel32.dll_GetFileAttributesW
mov edi, eax
test edi, 0x400
setne al
test al, bl
je 0x41fe66
or edi, 0xffffffff
lea edx, [ebp - 4]
mov eax, esi
call fcn.0041e3cc
test al, al
je 0x41fe66
mov eax, dword [ebp - 4]
call fcn.00420520
test al, al
je 0x41fe56
lea edx, [ebp - 0xc]
mov eax, esi
call fcn.004202a0
mov eax, dword [ebp - 0xc]
lea edx, [ebp - 8]
call fcn.0042680c
mov edx, dword [ebp - 8]
lea eax, [ebp - 4]
mov ecx, dword [ebp - 4]
call fcn.00408d20
mov eax, dword [ebp - 4]
call fcn.00408ac4
push eax
call sub.kernel32.dll_GetFileAttributesW
mov edi, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41fe88
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00407c90
ret
Function at 0x41fe94
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push 0
push 0
push ebx
push esi
push edi
mov byte [ebp - 9], cl
mov edi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x41ff67
push dword fs:[eax]
mov dword fs:[eax], esp
xor esi, esi
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00408058
cmp byte [ebp - 9], 0
je 0x41ff25
mov eax, ebx
call fcn.00408ac4
push eax
call sub.kernel32.dll_GetFileAttributesW
test ah, 4
je 0x41ff25
lea edx, [ebp - 8]
mov eax, ebx
call fcn.0041e3cc
test al, al
je 0x41ff25
mov eax, dword [ebp - 8]
call fcn.00420520
test al, al
je 0x41ff1a
lea edx, [ebp - 0x14]
mov eax, ebx
call fcn.004202a0
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x10]
call fcn.0042680c
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 8]
mov ecx, dword [ebp - 8]
call fcn.00408d20
lea eax, [ebp - 4]
mov edx, dword [ebp - 8]
call fcn.00408058
push edi
mov eax, dword [ebp - 4]
call fcn.00408ac4
push eax
call sub.kernel32.dll_SetFileAttributesW
test eax, eax
jne 0x41ff3f
call sub.kernel32.dll_GetLastError_2
mov esi, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41ff6e
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00407c90
lea eax, [ebp - 8]
mov edx, 2
call fcn.00407c90
ret

Function at 0x420090
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes

Disassembly:
push ebx
push esi
push edi
push ebp
mov esi, eax
mov eax, esi
call fcn.00408ac4
mov ebp, eax
push ebp
call sub.kernel32.dll_DeleteFileW
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
jne 0x4200e5
call sub.kernel32.dll_GetLastError_2
mov edi, eax
push ebp
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x4200df
test ah, 4
je 0x4200df
test al, 0x10
je 0x4200df
mov eax, esi
call fcn.00408ac4
push eax
call sub.kernel32.dll_RemoveDirectoryW
cmp eax, 1
sbb ebx, ebx
inc ebx
jmp 0x4200e5
push edi
call sub.kernel32.dll_SetLastError
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x42449c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x200]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x4244d5
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00407db8
jmp 0x4244de
mov eax, ebx
mov edx, esi
call fcn.00408010
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4244e8
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov edi, ecx
mov esi, edx
mov ebx, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push ebx
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x42450a
movzx eax, word [esp]
jmp 0x42450c
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x4251e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff778
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 4], ecx
xor ecx, ecx
push ebp
push 0x425305
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.00424fe8
mov esi, eax
mov eax, dword [0x535fec]
cmp byte [eax], 0
je 0x4252ad
mov eax, dword [0x535cfc]
call fcn.00404fc8
call fcn.0040473c
push 0
push 0
push 0
push 0
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte_1
mov ebx, eax
push ebx
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x4251b0]
call fcn.0040a018
add esp, 4
push 0
push 0
push ebx
mov eax, dword [ebp - 4]
push eax
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte_1
push 0
lea eax, [ebp - 8]
push eax
push ebx
mov eax, dword [ebp - 4]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [ebp - 8]
push eax
push 2
push 0x425320
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x4252e9
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x535c94]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x539c50]
call fcn.0040a334
push eax
call sub.user32.dll_LoadStringW_1
push 0x2010
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x888]
push eax
push 0
call sub.user32.dll_MessageBoxW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42530c
lea eax, [ebp - 4]
mov edx, dword [0x4251b0]
call fcn.0040a13c
ret

Function at 0x427054
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffdf8
mov ebx, eax
mov eax, ebx
call fcn.00408138
mov ebp, eax
push ebp
push 0
push 0
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.0040be50
mov edi, eax
cmp edi, 0x104
jbe 0x426ffb
mov eax, edi
add eax, eax
call fcn.004045e8
mov esi, eax
jmp 0x426ffd
mov esi, esp
push ebp
push esi
push edi
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.0040be50
mov eax, esi
push eax
call sub.user32.dll_CharUpperW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x427038
inc eax
xor edx, edx
mov ecx, ebx
shl ecx, 5
shr ebx, 0x1b
or ecx, ebx
mov ebx, ecx
movzx ecx, word [esi + edx*2]
xor ebx, ecx
inc edx
dec eax
jne 0x427022
mov eax, esp
cmp esi, eax
je 0x427045
mov eax, esi
call fcn.00404604
mov eax, ebx
add esp, 0x208
pop ebp
pop edi
pop esi
pop ebx
ret
push esi
push ebx
mov esi, eax
xor eax, eax
push esi
rol eax, 5
mov bl, byte [esi]
test bl, 0x80
jne 0x427080
cmp bl, 0
je 0x42707c
cmp bl, 0x41
jl 0x427077
cmp bl, 0x5a
jg 0x427077
or bl, 0x20
xor al, bl
inc esi
jmp 0x42705b
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x426fbc

Function at 0x427888
Capabilities:
Get geographical location

Disassembly:
push ebx
add esp, 0xfffff800
mov ebx, ecx
mov word [esp], 0
push 0x400
lea ecx, [esp + 4]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW_1
mov eax, ebx
mov edx, esp
mov ecx, 0x400
call fcn.00408b70
add esp, 0x800
pop ebx
ret
Function at 0x451160
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x4511fe
push dword fs:[eax]
mov dword fs:[eax], esp
or dl, byte [ebx + 0xc]
je 0x4511c2
cmp byte [ebx + 0x10], 0
jne 0x4511c2
cmp byte [ebx + 0x3c], 0
jne 0x4511c2
mov byte [ebx + 0xe], 0
mov byte [ebx + 0xc], 0
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_ResumeThread
cmp eax, 1
je 0x4511e3
lea edx, [ebp - 4]
mov eax, dword [0x535f74]
call fcn.0040bdbc
mov ecx, dword [ebp - 4]
mov dl, 1
mov eax, dword [0x4405d4]
call fcn.00425330
call fcn.00407328
jmp 0x4511e3
lea edx, [ebp - 8]
mov eax, dword [0x535f74]
call fcn.0040bdbc
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x4405d4]
call fcn.00425330
call fcn.00407328
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x451205
lea eax, [ebp - 8]
mov edx, 2
call fcn.00407c90
ret

Function at 0x451b00
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0xe]
mov byte [ebp - 5], al
xor eax, eax
push ebp
push 0x451b4e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov byte [eax + 0xe], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.kernel32.dll_SuspendThread
test eax, eax
setge dl
mov eax, dword [ebp - 4]
call fcn.00451098
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x451b67
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x451b70
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.00451098
dec esi
jne 0x451b92
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret

Function at 0x456974
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x4569c6
test eax, edx
je 0x4569c9
movzx ecx, byte [edx]
cmp cl, byte [eax]
je 0x456989
movzx eax, byte [eax]
sub eax, ecx
ret
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x4569af
add ecx, 4
js 0x45699f
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 3
add ecx, ebx
jns 0x4569ac
movzx eax, byte [ecx + eax]
movzx edx, byte [ecx + edx]
sub eax, edx
pop ebx
pop ebx
ret
xor eax, eax
ret
test eax, eax
je 0x4569d5
test edx, edx
jne 0x45697c
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret
Function at 0x4687c0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff7e8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], ecx
mov edi, edx
mov ebx, eax
mov esi, dword [ebp + 8]
xor eax, eax
push ebp
push 0x4688cb
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.00407c30
xor edx, edx
push ebp
push 0x46889e
push dword fs:[edx]
mov dword fs:[edx], esp
lea edx, [ebp - 4]
mov eax, edi
call fcn.0040ba00
lea edx, [ebp - 8]
mov eax, dword [ebp - 0x14]
call fcn.0040ba00
lea edx, [ebp - 0xc]
mov eax, dword [ebp + 0xc]
call fcn.0040ba00
lea eax, [ebp - 0x10]
mov edx, dword [ebx + 4]
mov ecx, 0
call fcn.0040877c
lea eax, [ebp - 0x815]
xor ecx, ecx
mov edx, 0x801
call fcn.0040502c
mov eax, dword [ebp - 0x10]
call fcn.00408634
push eax
push 0x800
lea eax, [ebp - 0x815]
push eax
mov eax, dword [ebp - 0xc]
call fcn.00408634
push eax
mov eax, dword [ebp - 8]
call fcn.00408634
push eax
mov eax, dword [ebp - 4]
call fcn.00408634
push eax
call sub.kernel32.dll_GetPrivateProfileStringA
test eax, eax
jbe 0x468894
mov ecx, esi
lea eax, [ebp - 0x815]
mov edx, 0x800
call fcn.0040bda8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4688a8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4688d2
lea eax, [ebp - 0x10]
call fcn.00407c54
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00407cc0
ret

Function at 0x4688dc
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff7f4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ecx
mov edi, edx
mov ebx, eax
mov esi, dword [ebp + 8]
xor eax, eax
push ebp
push 0x4689c1
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.00407c54
xor eax, eax
push ebp
push 0x4689a1
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
mov edx, dword [ebx + 4]
mov ecx, 0
call fcn.0040877c
lea eax, [ebp - 0x809]
xor ecx, ecx
mov edx, 0x801
call fcn.0040502c
mov eax, dword [ebp - 4]
call fcn.00408634
push eax
push 0x800
lea eax, [ebp - 0x809]
push eax
mov eax, dword [ebp + 0xc]
call fcn.00408634
push eax
mov eax, dword [ebp - 8]
call fcn.00408634
push eax
mov eax, edi
call fcn.00408634
push eax
call sub.kernel32.dll_GetPrivateProfileStringA
mov ebx, eax
test ebx, ebx
jbe 0x468997
mov eax, esi
xor ecx, ecx
mov edx, ebx
call fcn.00408704
mov eax, esi
call fcn.004081f0
mov edx, eax
lea eax, [ebp - 0x809]
mov ecx, ebx
call fcn.0040478c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4689ab
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4689c8
lea eax, [ebp - 4]
call fcn.00407c54
ret
Function at 0x46995c
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
lea eax, [ebp - 8]
push eax
push 0x20
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
xor eax, eax
push ebp
push 0x4699aa
push dword fs:[eax]
mov dword fs:[eax], esp
mov cl, 1
mov edx, 0x4699c8
mov eax, dword [ebp - 8]
call fcn.004698b8
mov byte [ebp - 1], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4699b1
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_CloseHandle_1
ret

Function at 0x46ada4
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa0
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x60], edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x46aed7
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
xor eax, eax
push ebp
push 0x46aeaf
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
xor ecx, ecx
mov edx, 0x44
call fcn.0040502c
mov dword [ebp - 0x4c], 0x44
mov dword [ebp - 0x20], 1
movzx eax, word [ebx + 0x18]
mov word [ebp - 0x1c], ax
lea eax, [ebp - 4]
mov edx, dword [ebx + 8]
call fcn.00408058
lea eax, [ebp - 0x60]
push eax
mov ecx, 1
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.00408ef0
mov eax, dword [ebp - 0x60]
mov edx, 0x46aef8
call fcn.00408eb8
je 0x46ae46
push 0x46aef8
push dword [ebp - 4]
push 0x46aef8
lea eax, [ebp - 4]
mov edx, 3
call fcn.00408da8
cmp dword [ebx + 0x14], 0
je 0x46ae64
push dword [ebp - 4]
push 0x46af08
push dword [ebx + 0x14]
lea eax, [ebp - 4]
mov edx, 3
call fcn.00408da8
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x4c]
push eax
push 0
push 0
push 0x220
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00408ac4
push eax
push 0
call sub.kernel32.dll_CreateProcessW
test eax, eax
je 0x46aea5
mov eax, dword [ebp - 0x58]
mov dword [ebx + 0x24], eax
mov eax, dword [ebp - 0x5c]
mov dword [ebx + 0x1c], eax
mov eax, dword [ebp - 0x54]
mov dword [ebx + 0xc], eax
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x46aeb9
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46aede
lea eax, [ebp - 0x60]
call fcn.00407c30
lea eax, [ebp - 4]
call fcn.00407c30
ret
Function at 0x46b2ac
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb4
push ebx
push esi
push edi
mov edi, edx
mov ebx, eax
mov eax, edi
call fcn.00407c30
call fcn.0046c8c4
test al, al
jne 0x46b4d0
mov eax, dword [ebx + 0xc]
push eax
push 0
push 0x410
call sub.kernel32.dll_OpenProcess
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x46b4d0
xor eax, eax
push ebp
push 0x46b4c6
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x46b4b5
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
call sub.kernel32.dll_GetSystemInfo_1
mov eax, dword [ebp - 0x48]
inc eax
call fcn.004045e8
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x48]
mov byte [eax + edx], 0
cmp dword [ebp - 8], 0
jne 0x46b33d
call fcn.0040741c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x46b4d0
xor eax, eax
push ebp
push 0x46b497
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push 0x20498
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_VirtualQueryEx
test eax, eax
jne 0x46b37a
call fcn.0040741c
call fcn.0040741c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x46b4d0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x48]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0x28]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_ReadProcessMemory
test eax, eax
jne 0x46b3ae
call fcn.0040741c
call fcn.0040741c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x46b4d0
mov ebx, 0x20498
sub ebx, dword [ebp - 0x28]
mov eax, dword [ebp - 8]
lea esi, [eax + ebx]
mov eax, esi
call fcn.0040814c
inc eax
add eax, eax
add ebx, eax
cmp ebx, 0x1002
jl 0x46b3e8
call fcn.0040741c
call fcn.0040741c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x46b4d0
inc ebx
mov eax, ebx
and eax, 0x80000003
jns 0x46b3f6
dec eax
or eax, 0xfffffffc
inc eax
test eax, eax
jne 0x46b3e7
cmp ebx, 0x1002
jl 0x46b419
call fcn.0040741c
call fcn.0040741c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x46b4d0
mov eax, dword [ebp - 8]
lea esi, [eax + ebx]
mov eax, esi
call fcn.0040814c
inc eax
add eax, eax
add ebx, eax
cmp ebx, 0x1002
jl 0x46b44a
call fcn.0040741c
call fcn.0040741c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x46b4d0
mov eax, dword [ebp - 8]
cmp byte [eax + ebx], 0
jne 0x46b456
add ebx, 2
cmp ebx, 0x1002
jl 0x46b472
call fcn.0040741c
call fcn.0040741c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x46b4d0
mov eax, dword [ebp - 8]
lea esi, [eax + ebx]
mov eax, edi
mov edx, esi
call fcn.00408b1c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46b49e
mov eax, dword [ebp - 8]
call fcn.00404604
ret
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x46c18c
Capabilities:
Enumerate gui resources
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov edi, 0x53c0d4
mov byte [ebp - 1], 0
xor edx, edx
push ebp
push 0x46c305
push dword fs:[edx]
mov dword fs:[edx], esp
test esi, esi
jne 0x46c1c1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x46c30f
call fcn.0046995c
push esi
push 0
push 0x100001
call sub.kernel32.dll_OpenProcess
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x46c1e9
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x46c30f
xor edx, edx
push ebp
push 0x46c2f4
push dword fs:[edx]
mov dword fs:[edx], esp
test bl, bl
je 0x46c2c2
push 0x64
mov eax, dword [ebp - 8]
push eax
call sub.user32.dll_WaitForInputIdle
push 0
mov eax, edi
mov ecx, 1
mov edx, dword [0x46c0ec]
call fcn.0040a018
add esp, 4
push esi
push 0x46c11c
call sub.user32.dll_EnumWindows
mov dword [ebp - 0xc], 0x79
mov eax, dword [edi]
call fcn.00409e64
test eax, eax
je 0x46c2c2
mov eax, dword [edi]
call fcn.00409e64
mov esi, eax
dec esi
test esi, esi
jl 0x46c28a
inc esi
xor ebx, ebx
push 0
push 0
push 0x10
mov eax, dword [edi]
mov eax, dword [eax + ebx*4]
push eax
call sub.user32.dll_PostMessageW
push 0
push 0
push 0x11
mov eax, dword [edi]
mov eax, dword [eax + ebx*4]
push eax
call sub.user32.dll_PostMessageW
push 0
push 1
push 0x16
mov eax, dword [edi]
mov eax, dword [eax + ebx*4]
push eax
call sub.user32.dll_PostMessageW
inc ebx
dec esi
jne 0x46c253
push 0x19
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.kernel32.dll_WaitForSingleObject
push 1
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_WaitForSingleObject
test eax, eax
jne 0x46c2b9
mov byte [ebp - 1], 1
call fcn.0040741c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x46c30f
dec dword [ebp - 0xc]
jne 0x46c233
push 0
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_TerminateProcess
cmp eax, 1
sbb eax, eax
inc eax
cmp al, 1
sete byte [ebp - 1]
cmp byte [ebp - 1], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46c2fb
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
movzx eax, byte [ebp - 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret