joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40ecf0
Capabilities:
Terminate process

Disassembly:
push 0x58
push 0x410978
call fcn.0040f300
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov edi, ebx
mov edx, 0x411d34
mov ecx, esi
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
je 0x40eabb
cmp eax, esi
jne 0x40eaae
xor esi, esi
inc esi
mov edi, esi
jmp 0x40eabe
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x40ea92
xor esi, esi
inc esi
cmp dword [0x411d38], esi
jne 0x40ead0
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x40eb0a
cmp dword [0x411d38], ebx
jne 0x40eb04
mov dword [0x411d38], esi
push 0x401320
push 0x401314
call fcn.0040ec4a
pop ecx
pop ecx
test eax, eax
je 0x40eb0a
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x40ec34
mov dword [0x411884], esi
cmp dword [0x411d38], esi
jne 0x40eb2d
push 0x401310
push 0x4012e8
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x411d38], 2
test edi, edi
jne 0x40eb3a
xor eax, eax
mov ecx, 0x411d34
xchg dword [ecx], eax
cmp dword [0x411d44], 0
je 0x40eb66
push 0x411d44
call fcn.0040f130
pop ecx
test eax, eax
je 0x40eb66
push ebx
push 2
push ebx
mov esi, dword [0x411d44]
mov ecx, esi
call dword [0x41244c]
call esi
mov eax, dword [sym.imp.msvcrt.dll__wcmdln]
mov ecx, dword [eax]
test ecx, ecx
je 0x40eaf3
mov dword [ebp - 0x20], ecx
push 0x20
pop esi
mov edx, dword [ebp - 0x1c]
movzx eax, word [ecx]
cmp ax, si
ja 0x40ebd1
test ax, ax
je 0x40eba0
test edx, edx
jne 0x40ebd1
test ax, ax
je 0x40eba0
cmp ax, si
ja 0x40eba0
add ecx, 2
mov dword [ebp - 0x20], ecx
movzx eax, word [ecx]
jmp 0x40eb8b
test byte [ebp - 0x3c], 1
je 0x40ebac
movzx eax, word [ebp - 0x38]
jmp 0x40ebaf
push 0xa
pop eax
push eax
push ecx
push ebx
push 0x400000
call main
mov dword [0x411880], eax
cmp dword [0x411898], 0
jne 0x40ec19
push eax
call dword [sym.imp.msvcrt.dll_exit]
cmp eax, 0x22
jne 0x40ebe2
xor eax, eax
test edx, edx
sete al
mov edx, eax
mov dword [ebp - 0x1c], edx
add ecx, 2
mov dword [ebp - 0x20], ecx
jmp 0x40eb7a
cmp dword [0x411884], 0
jne 0x40ec2d
call dword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x411880]
mov dword [ebp - 4], 0xfffffffe
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret
call fcn.0040f23b
jmp 0x40ea69

Function at 0x40f000
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x4109b8
call fcn.0040f300
xor ecx, ecx
mov eax, dword [ebp + 8]
test eax, eax
je 0x40f060
cmp eax, 0xffffffff
je 0x40f060
mov dword [ebp - 4], ecx
mov edx, 0x5a4d
cmp word [eax], dx
jne 0x40f059
mov edx, dword [eax + 0x3c]
test edx, edx
js 0x40f059
cmp edx, 0x10000000
jae 0x40f059
add eax, edx
mov dword [ebp - 0x1c], eax
mov ecx, dword [eax]
sub ecx, 0x4550
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
jmp 0x40f056
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, ecx
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x40f0e0
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40f11e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x40f116
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x40f120
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x40f106
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x40f200
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x40f231
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x40f231
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x40f231
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x100013e0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
cmp dword [eax], 0
jne 0x100013f8
mov eax, 1
jmp 0x10001538
mov dword [ebp - 0xc], 1
mov dword [ebp - 4], 0x104
mov dword [ebp - 0x10], 0
jmp 0x10001418
mov ecx, dword [ebp - 0x10]
add ecx, 1
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
cmp edx, dword [ebp + 0xc]
jge 0x10001535
mov dword [ebp - 4], 0x104
mov dword [ebp - 0x14], 0
lea eax, [ebp - 8]
push eax
push 1
push 0
mov ecx, dword [ebp - 0x10]
imul ecx, ecx, 0x41c
mov edx, dword [ebp + 8]
lea eax, [edx + ecx + 4]
push eax
mov ecx, dword [ebp - 0x10]
imul ecx, ecx, 0x41c
mov edx, dword [ebp + 8]
mov eax, dword [edx + ecx]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x10001489
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0xc], 0
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x10001535
mov edx, dword [ebp - 0x10]
imul edx, edx, 0x41c
mov eax, dword [ebp + 8]
movsx ecx, byte [eax + edx + 0x10c]
test ecx, ecx
je 0x10001530
mov edx, dword [ebp - 0x10]
imul edx, edx, 0x41c
mov eax, dword [ebp + 8]
mov ecx, dword [eax + edx + 0x108]
mov dword [ebp - 0x1c], ecx
cmp dword [ebp - 0x1c], 4
jne 0x100014c8
mov dword [ebp - 4], 4
lea edx, [ebp - 4]
push edx
mov eax, dword [ebp - 0x10]
imul eax, eax, 0x41c
mov ecx, dword [ebp + 8]
lea edx, [ecx + eax + 0x210]
push edx
mov eax, dword [ebp - 0x10]
imul eax, eax, 0x41c
mov ecx, dword [ebp + 8]
lea edx, [ecx + eax + 0x108]
push edx
push 0
mov eax, dword [ebp - 0x10]
imul eax, eax, 0x41c
mov ecx, dword [ebp + 8]
lea edx, [ecx + eax + 0x10c]
push edx
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x10001530
mov dword [ebp - 0xc], 0
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x10001535
jmp 0x1000140f
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x10001540
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x10016050]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
movsx ecx, byte [eax]
test ecx, ecx
jne 0x10001564
xor al, al
jmp 0x10001618
mov byte [ebp - 0x110], 0
push 0x103
push 0
lea edx, [ebp - 0x10f]
push edx
call fcn.10009770
add esp, 0xc
mov byte [ebp - 0x218], 0
push 0x103
push 0
lea eax, [ebp - 0x217]
push eax
call fcn.10009770
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x110]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov dword [ebp - 4], 0
mov dword [ebp - 4], 0
jmp 0x100015c9
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 0xc]
jge 0x10001616
lea ecx, [ebp - 0x110]
push ecx
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [ebp - 4]
imul eax, eax, 0x31c
add eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x10001614
xor al, al
jmp 0x10001618
jmp 0x100015c0
mov al, 1
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.100068dd
mov esp, ebp
pop ebp
ret
Function at 0x10002420
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
cmp dword [0x10018570], 0
jne 0x10002436
xor al, al
jmp 0x10002538
mov eax, dword [ebp + 0xc]
push eax
movzx ecx, word [ebp + 8]
push ecx
mov edx, dword [0x10018570]
push edx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x10002465
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
xor al, al
jmp 0x10002538
cmp dword [ebp - 4], 0
je 0x10002532
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [0x10018570]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x1000252c
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x10002526
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [0x10018570]
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x14], eax
push 0
push 0
push 2
push 0
push 1
push 0xc0000000
mov edx, dword [ebp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x10002516
push 0
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10002506
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x10002538
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x10002538
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x10002538
xor al, al
jmp 0x10002538
xor al, al
jmp 0x10002538
xor al, al
jmp 0x10002538
mov esp, ebp
pop ebp
ret
Function at 0x100043e0
Capabilities:
Delete file
Get common file path
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14c
mov eax, dword [0x10016050]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x28], 0x104
lea eax, [ebp - 0x24]
push eax
push 1
push 0
push str.SoftwareEnterSafeePass2000Auto_BQD
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1000445b
lea ecx, [ebp - 0x28]
push ecx
push 0x10018688
push 0
push 0
push str.Version
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x1000444f
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x100045c3
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x10004462
xor eax, eax
jmp 0x100045c3
mov byte [ebp - 0x138], 0
push 0x103
push 0
lea edx, [ebp - 0x137]
push edx
call fcn.10009770
add esp, 0xc
mov dword [ebp - 0x2c], 0x104
lea eax, [ebp - 0x138]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea edx, [ebp - 0x138]
add edx, 0xffffffff
mov dword [ebp - 0x148], edx
mov eax, dword [ebp - 0x148]
mov cl, byte [eax + 1]
mov byte [ebp - 0x149], cl
add dword [ebp - 0x148], 1
cmp byte [ebp - 0x149], 0
jne 0x100044a6
mov edi, dword [ebp - 0x148]
mov edx, dword [str.bqdtmp_ck.exe]
mov dword [edi], edx
mov eax, dword [0x100140ec]
mov dword [edi + 4], eax
mov ecx, dword [0x100140f0]
mov dword [edi + 8], ecx
mov dx, word [0x100140f4]
mov word [edi + 0xc], dx
lea eax, [ebp - 0x138]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0x138]
push ecx
push 0x100140f8
push 0x64
call fcn.10002420
add esp, 0xc
movzx edx, al
test edx, edx
jne 0x10004520
xor eax, eax
jmp 0x100045c3
lea eax, [ebp - 0x138]
push eax
lea ecx, [ebp - 0x20]
push ecx
call fcn.10004070
add esp, 8
lea edx, [ebp - 0x138]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0x20]
call fcn.10004930
movzx eax, al
test eax, eax
je 0x10004569
mov dword [ebp - 0x13c], 0
lea ecx, [ebp - 0x20]
call fcn.100025f0
mov eax, dword [ebp - 0x13c]
jmp 0x100045c3
lea ecx, [ebp - 0x20]
call fcn.10002630
push eax
push 0x10018688
mov ecx, 0x10018574
call fcn.10004f40
test eax, eax
jge 0x100045a1
mov dword [ebp - 0x140], 1
lea ecx, [ebp - 0x20]
call fcn.100025f0
mov eax, dword [ebp - 0x140]
jmp 0x100045c3
mov dword [ebp - 0x144], 0
lea ecx, [ebp - 0x20]
call fcn.100025f0
mov eax, dword [ebp - 0x144]
jmp 0x100045c3
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100068dd
mov esp, ebp
pop ebp
ret
Function at 0x100046f0
Capabilities:
Create process on windows
Delete file
Get common file path
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x160
mov eax, dword [0x10016050]
xor eax, ebp
mov dword [ebp - 0x50], eax
push edi
mov byte [ebp - 0x158], 0
push 0x103
push 0
lea eax, [ebp - 0x157]
push eax
call fcn.10009770
add esp, 0xc
mov dword [ebp - 0x48], 0x104
lea ecx, [ebp - 0x158]
push ecx
mov edx, dword [ebp - 0x48]
push edx
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0x158]
add eax, 0xffffffff
mov dword [ebp - 0x15c], eax
mov ecx, dword [ebp - 0x15c]
mov dl, byte [ecx + 1]
mov byte [ebp - 0x15d], dl
add dword [ebp - 0x15c], 1
cmp byte [ebp - 0x15d], 0
jne 0x10004748
mov edi, dword [ebp - 0x15c]
mov eax, dword [str.bqdtmp.exe]
mov dword [edi], eax
mov ecx, dword [0x1001416c]
mov dword [edi + 4], ecx
mov dx, word [0x10014170]
mov word [edi + 8], dx
mov al, byte [0x10014172]
mov byte [edi + 0xa], al
lea ecx, [ebp - 0x158]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea edx, [ebp - 0x158]
push edx
push 0x10014174
push 0x64
call fcn.10002420
add esp, 0xc
lea eax, [ebp - 0x158]
push eax
mov ecx, 0x10018574
call fcn.10005880
movzx ecx, al
test ecx, ecx
jne 0x100047d5
mov eax, 1
jmp 0x10004901
mov dword [ebp - 0x40], 0
push 0x38
push 0
lea edx, [ebp - 0x3c]
push edx
call fcn.10009770
add esp, 0xc
mov dword [ebp - 0x40], 0x3c
mov dword [ebp - 0x3c], 0x40
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
lea eax, [ebp - 0x158]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], 0x10013cc2
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 5
mov dword [ebp - 0x20], 0
mov ecx, 0x10018598
call fcn.10006170
movzx ecx, al
test ecx, ecx
je 0x10004847
mov dword [ebp - 0x34], str.runas
jmp 0x1000484e
mov dword [ebp - 0x34], 0x10013cc3
lea edx, [ebp - 0x40]
push edx
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
jne 0x10004866
mov eax, 1
jmp 0x10004901
push 0xffffffffffffffff
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 0x44], 0
lea ecx, [ebp - 0x44]
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x10004891
cmp dword [ebp - 0x44], 0
je 0x100048a2
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x10004901
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
lea edx, [ebp - 4]
push edx
push 0x20006
push 0
push str.SOFTWAREEnterSafeePass2000Auto_BQD
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0
jne 0x100048ff
push 1
push 0x100141a8
push 1
push 0
push str.open_flag
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
mov ecx, dword [ebp - 0x50]
xor ecx, ebp
call fcn.100068dd
mov esp, ebp
pop ebp
ret
Function at 0x10004c20
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
lea eax, [ebp - 4]
push eax
push 0
mov ecx, dword [ebp - 0xc]
push ecx
push 0x10004c60
push 0
push 0
call fcn.10007511
add esp, 0x18
mov dword [ebp - 8], eax
mov esp, ebp
pop ebp
ret
Function at 0x10005c20
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa4
mov eax, dword [0x10016050]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0xa4], ecx
mov dword [ebp - 0xa0], 0x94
lea eax, [ebp - 0xa0]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x90], 2
jne 0x10005c72
cmp dword [ebp - 0x9c], 5
jne 0x10005c72
cmp dword [ebp - 0x98], 0
jne 0x10005c72
mov eax, 1
jmp 0x10005c74
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100068dd
mov esp, ebp
pop ebp
ret

Function at 0x10005c90
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa4
mov eax, dword [0x10016050]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0xa4], ecx
mov dword [ebp - 0xa0], 0x94
lea eax, [ebp - 0xa0]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x90], 2
jne 0x10005ce2
cmp dword [ebp - 0x9c], 5
jne 0x10005ce2
cmp dword [ebp - 0x98], 2
jne 0x10005ce2
mov eax, 1
jmp 0x10005ce4
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100068dd
mov esp, ebp
pop ebp
ret
Function at 0x10005e30
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001109c
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x10016050]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x38], ecx
mov eax, dword [ebp - 0x38]
mov dword [eax], vtable.OSVersion.0
mov ecx, dword [ebp - 0x38]
add ecx, 0xb4
call fcn.10002540
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x38]
add ecx, 0xd0
call fcn.10002540
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x38]
mov byte [ecx + 0xa1], 0
mov edx, dword [ebp - 0x38]
mov byte [edx + 0xa0], 0
mov eax, dword [ebp - 0x38]
mov dword [eax + 0xa4], 0
mov ecx, dword [ebp - 0x38]
mov byte [ecx + 0xa8], 0
mov edx, dword [ebp - 0x38]
mov dword [edx + 0xac], 0
mov eax, dword [ebp - 0x38]
mov dword [eax + 0xb0], 0
mov ecx, dword [ebp - 0x38]
mov byte [ecx + 0xa2], 0
push 0x9c
push 0
mov edx, dword [ebp - 0x38]
add edx, 4
push edx
call fcn.10009770
add esp, 0xc
mov eax, dword [ebp - 0x38]
mov dword [eax + 4], 0x9c
mov ecx, dword [ebp - 0x38]
add ecx, 4
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
sub eax, 1
neg eax
sbb eax, eax
add eax, 1
mov edx, dword [ebp - 0x38]
mov byte [edx + 0xa0], al
mov eax, dword [ebp - 0x38]
movzx ecx, byte [eax + 0xa0]
test ecx, ecx
jne 0x10005f62
push 0x9c
push 0
mov edx, dword [ebp - 0x38]
add edx, 4
push edx
call fcn.10009770
add esp, 0xc
mov eax, dword [ebp - 0x38]
mov dword [eax + 4], 0x94
mov ecx, dword [ebp - 0x38]
add ecx, 4
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x10005f60
mov edx, dword [ebp - 0x38]
mov byte [edx + 0xa1], 1
jmp 0x10005f6c
mov eax, dword [ebp - 0x38]
mov byte [eax + 0xa1], 1
mov ecx, dword [ebp - 0x38]
movzx edx, byte [ecx + 0xa1]
test edx, edx
jne 0x10005f7c
jmp 0x10005fef
mov ecx, dword [ebp - 0x38]
call fcn.100061b0
xor eax, eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
push str.GetNativeSystemInfo
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x10005fca
lea ecx, [ebp - 0x34]
push ecx
call dword [ebp - 0x10]
jmp 0x10005fd4
lea edx, [ebp - 0x34]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
movzx eax, word [ebp - 0x34]
cmp eax, 9
jne 0x10005fe7
mov ecx, dword [ebp - 0x38]
mov byte [ecx + 0xa8], 1
mov ecx, dword [ebp - 0x38]
call fcn.10006090
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x100068dd
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10016050]
jne 0x100068e7
repz ret
jmp fcn.10007d76

Function at 0x1000fd4d
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.10008d52
and dword [ebp - 4], 0
cmp dword [0x1001849c], 0
mov ebx, eax
jne 0x1000fdfe
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x1000feaf
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x1000feaf
push eax
call fcn.10008ce0
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x1001849c], eax
call esi
push eax
call fcn.10008ce0
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x100184a0], eax
call esi
push eax
call fcn.10008ce0
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x100184a4], eax
call esi
push eax
call fcn.10008ce0
pop ecx
mov dword [0x100184ac], eax
test eax, eax
je 0x1000fdfe
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.10008ce0
pop ecx
mov dword [0x100184a8], eax
mov eax, dword [0x100184a8]
cmp eax, ebx
je 0x1000fe56
cmp dword [0x100184ac], ebx
je 0x1000fe56
push eax
call fcn.10008d5b
push dword [0x100184ac]
mov esi, eax
call fcn.10008d5b
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x1000fe56
test edi, edi
je 0x1000fe56
call esi
test eax, eax
je 0x1000fe4d
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x1000fe4d
test byte [ebp - 0xc], 1
jne 0x1000fe56
or dword [ebp + 0x10], 0x200000
jmp 0x1000fe8f
mov eax, dword [0x100184a0]
cmp eax, ebx
je 0x1000fe8f
push eax
call fcn.10008d5b
pop ecx
test eax, eax
je 0x1000fe8f
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x1000fe8f
mov eax, dword [0x100184a4]
cmp eax, ebx
je 0x1000fe8f
push eax
call fcn.10008d5b
pop ecx
test eax, eax
je 0x1000fe8f
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x1001849c]
call fcn.10008d5b
pop ecx
test eax, eax
je 0x1000feaf
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x1000feb1
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10007e00
Capabilities:
Encode data using base64

Disassembly:
push ebx
push esi
push edi
mov esi, 0x14
mov edi, eax
lea ebx, [ebx]
movzx edx, byte [ecx]
shr edx, 2
mov dl, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax], dl
inc eax
sub esi, 1
je 0x10007e83
movzx ebx, byte [ecx + 1]
lea edx, [ecx + 1]
movzx ecx, byte [ecx]
and ecx, 3
shl ecx, 4
shr ebx, 4
or ecx, ebx
mov cl, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax], cl
inc eax
sub esi, 1
je 0x10007ea3
movzx ebx, byte [edx + 1]
lea ecx, [edx + 1]
movzx edx, byte [edx]
and edx, 0xf
add edx, edx
add edx, edx
shr ebx, 6
or edx, ebx
movzx edx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax], dl
movzx edx, byte [ecx]
and edx, 0x3f
movzx edx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
inc eax
mov byte [eax], dl
inc eax
inc ecx
sub esi, 1
jne 0x10007e10
sub eax, edi
pop edi
pop esi
pop ebx
ret
movzx ecx, byte [ecx]
and ecx, 3
shl ecx, 4
mov dl, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax], dl
inc eax
mov byte [eax], 0x3d
inc eax
mov byte [eax], 0x3d
inc eax
sub eax, edi
pop edi
pop esi
pop ebx
ret
movzx ecx, byte [edx]
and ecx, 0xf
mov dl, byte [ecx*4 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax], dl
inc eax
mov byte [eax], 0x3d
inc eax
sub eax, edi
pop edi
pop esi
pop ebx
ret