joyce8/EMBER2024-capa huggingface dataset:
Function at 0x448580
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x597168
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x128
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x18], esi
call fcn.00447ec0
mov ecx, dword [esi + 0x20]
xor ebx, ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x10]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ecx
mov dword [ebp - 0x10], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x448672
xor esi, esi
mov dword [ebp - 0x14], pe_nt_image_headers32
cmp dword [ebp - 0x10], ebx
jbe 0x448672
push edi
mov edi, dword [ebp + 8]
mov ecx, dword [ebp - 0x18]
push ebx
push ebx
push ebx
push ebx
lea edx, [ebp - 0x14]
push edx
mov edx, dword [ecx + 0x20]
lea eax, [ebp - 0x134]
push eax
push esi
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
jne 0x448660
lea eax, [ebp - 0x134]
mov dword [ebp - 0x20], 0xf
mov dword [ebp - 0x24], ebx
mov byte [ebp - 0x34], bl
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x448620
sub eax, edx
push eax
lea eax, [ebp - 0x134]
push eax
lea ecx, [ebp - 0x34]
call fcn.00404f50
lea ecx, [ebp - 0x34]
push ecx
mov ecx, edi
mov dword [ebp - 4], ebx
call fcn.004475a0
cmp dword [ebp - 0x20], 0x10
mov dword [ebp - 4], 0xffffffff
jb 0x448660
mov edx, dword [ebp - 0x34]
push edx
call fcn.00448f11
add esp, 4
inc esi
mov dword [ebp - 0x14], pe_nt_image_headers32
cmp esi, dword [ebp - 0x10]
jb 0x4485e5
pop edi
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4

Function at 0x448d2b
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x6157a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x110], eax
lea eax, [ebp - 0x10c]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x448e00
push edi
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x114]
push eax
push esi
push esi
push dword [ebp - 0x10c]
mov edi, 0x104
mov dword [ebp - 0x118], edi
mov dword [ebp - 0x114], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x448def
cmp dword [ebp - 0x114], 2
mov byte [ebp - 5], al
lea eax, [ebp - 0x108]
jne 0x448dd9
push edi
push dword [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
dec eax
lea ecx, [edi - 1]
cmp ecx, eax
sbb esi, esi
inc esi
jmp 0x448def
push eax
push edi
push dword [ebp - 0x110]
call fcn.00448cc8
xor ecx, ecx
test eax, eax
setge cl
mov esi, ecx
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
jmp 0x448e02
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0055b863
leave
ret 4
Function at 0x453631
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x453678
call fcn.0044abc7
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x453678
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x453694
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.00453131
mov esi, eax
test edi, edi
je 0x453692
test ebx, ebx
je 0x453692
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x4545a5
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x5a1683
call fcn.0055b872
mov esi, ecx
cmp dword [esi + 0x6c], 0
jne 0x4545ca
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x45461c
call fcn.00454ac1
push eax
lea ecx, [ebp - 0x10]
call fcn.004018a0
mov ecx, dword [esi + 0x6c]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0055b40a
push eax
call fcn.00401010
add esp, 0x14
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.004011c0
mov eax, esi
call fcn.0055b94a
ret 8

Function at 0x455ab2
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor ebx, ebx
call fcn.0044abc7
mov esi, dword [eax + 0xc]
push 5
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x455aeb
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov ecx, dword [ebp - 4]
push esi
push dword [ebp + 0xc]
push ebx
call fcn.004556ef
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8

Function at 0x455b49
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x78], ebx
test ebx, 0xffff0000
jne 0x455b6d
cmp dword [edi + 0x74], 0
jne 0x455b6d
movzx eax, bx
mov dword [edi + 0x74], eax
call fcn.0044abc7
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.00455b0a
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x456310
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push dword [ebp + 0xc]
mov ecx, esi
call fcn.00455fb4
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x45635a
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.0044cdea
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.004075d0
jmp 0x456365
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.0046cf00
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x45636b
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 4]
lea eax, [ebp + 8]
push eax
push dword [ebp + 0xc]
call fcn.00453e16
push 0xfffffffffffffff0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowLongW]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x4563a8
call fcn.00455fb4
mov dword [esi + 0xc], 1
jmp 0x4563ad
call fcn.00455fb4
cmp dword [esi], 0
je 0x4563f6
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
test eax, eax
jle 0x4563ce
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.0044cdea
jmp 0x4563e0
mov ecx, dword [ebp + 0x10]
push 0xff
call fcn.00401ce0
push pe_nt_image_headers32
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.004075d0
jmp 0x45641a
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
jne 0x45641a
push dword [esi]
push dword [ebp + 8]
call fcn.0046cf00
pop esi
pop ebp
ret 0xc
Function at 0x46096a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov dword [ebp - 4], ecx
call fcn.0044abc7
mov esi, dword [eax + 0xc]
push 0xf1
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
jne 0x460997
xor eax, eax
jmp 0x460a3e
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 8], eax
test eax, eax
je 0x460990
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x460990
movzx eax, word [esi + 6]
push ebx
push edi
xor ecx, ecx
push 4
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00448ee2
pop ecx
mov edi, eax
xor ecx, ecx
xor eax, eax
cmp cx, word [esi + 6]
jae 0x4609ef
lea ecx, [esi + 8]
movzx edx, word [ecx]
mov dword [edi + eax*4], edx
movzx edx, word [esi + 6]
inc eax
add ecx, 2
cmp eax, edx
jl 0x4609dd
movzx eax, word [esi + 6]
mov ecx, dword [ebp - 4]
push eax
push edi
call fcn.0045f6b3
push edi
mov ebx, eax
call fcn.00448f11
pop ecx
test ebx, ebx
je 0x460a31
movzx ecx, word [esi + 4]
movzx eax, word [esi + 2]
push ecx
lea esi, [ecx + 7]
mov ecx, dword [ebp - 4]
push eax
lea edx, [eax + 7]
push esi
push edx
call fcn.0045fcdf
push dword [ebp + 8]
mov ecx, dword [ebp - 4]
call fcn.0045fd93
mov ebx, eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, ebx
pop ebx
pop esi
leave
ret 4

Function at 0x4628d4
Capabilities:
Move file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp dword [esi], 0
je 0x462912
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x462920
push str.MoveFileTransactedW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x462920
push dword [esi]
push 2
push 0
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x462922
cmp dword [esi + 4], 0
je 0x462920
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_MoveFileW]
xor eax, eax
pop esi
pop ebp
ret 8

Function at 0x463d57
Capabilities:
Get file attributes

Disassembly:
mov edi, edi
push esi
mov esi, ecx
push dword [esi + 0x24]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push 1
mov ecx, esi
test al, 1
je 0x463d7b
mov eax, dword [esi]
push 0
call dword [eax + 0xe0]
test eax, eax
jne 0x463d89
pop esi
ret
mov eax, dword [esi + 0x24]
mov edx, dword [esi]
push eax
call dword [edx + 0xe0]
jmp 0x463d75
xor eax, eax
inc eax
pop esi
ret
Function at 0x465ac7
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x6157a0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0x800
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x234], eax
mov esi, ecx
lea eax, [ebp - 0xc]
jne 0x465b0c
push 0x5bb0c8
push 4
push eax
call fcn.0055462a
push eax
call fcn.00401010
add esp, 0x10
jmp 0x465b22
push 4
push eax
push 3
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x465ba2
push edi
call fcn.00554a7d
mov edi, dword [eax]
call fcn.00554a7d
and dword [eax], 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x234]
lea eax, [ebp - 0x230]
push esi
push 0x111
mov esi, 0x112
push esi
push eax
call fcn.00554f9c
add esp, 0x18
mov dword [ebp - 0x234], eax
call fcn.00554a7d
cmp dword [eax], 0
je 0x465b76
call fcn.00554a7d
push dword [eax]
call fcn.00449db1
pop ecx
jmp 0x465b7d
call fcn.00554a7d
mov dword [eax], edi
cmp dword [ebp - 0x234], 0xffffffff
pop edi
je 0x465ba2
cmp dword [ebp - 0x234], esi
jae 0x465ba2
push 0
push 0
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
jmp 0x465ba4
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0055b863
leave
ret
Function at 0x4660c1
Capabilities:
Identify system language via api

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x6157a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 0x144], eax
mov eax, dword [ebp + 0xc]
push edi
push str.KERNEL32.DLL
mov dword [ebp - 0x13c], eax
xor esi, esi
call fcn.0044eb30
pop ecx
cmp eax, esi
je 0x4661ab
push str.GetThreadPreferredUILanguages
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
cmp edi, esi
je 0x4661ab
xor eax, eax
push 0xc8
mov word [ebp - 0xd0], ax
lea eax, [ebp - 0xce]
push esi
push eax
mov dword [ebp - 0x140], esi
call fcn.005545b0
add esp, 0xc
lea eax, [ebp - 0x138]
push eax
lea eax, [ebp - 0xd0]
push eax
lea eax, [ebp - 0x140]
push eax
push 0x34
mov dword [ebp - 0x138], 0x65
call edi
test eax, eax
je 0x4661ab
lea edi, [ebp - 0xd0]
cmp word [ebp - 0xd0], si
je 0x4661ab
cmp esi, 0x14
jge 0x4661ab
push 0x10
push 0
push edi
call fcn.00557d17
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x46619a
call fcn.00554a7d
cmp dword [eax], 0x22
je 0x46619a
mov dword [ebp + esi*4 - 0x134], ebx
inc esi
push edi
call fcn.0055b97c
lea edi, [edi + eax*2 + 2]
cmp word [edi], 0
pop ecx
jne 0x466170
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
mov edi, dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
movzx eax, ax
mov ecx, eax
and ecx, 0x3ff
mov ebx, 0xfc00
and eax, ebx
or eax, ecx
push eax
mov dword [ebp - 0x138], ecx
call edi
push dword [ebp - 0x138]
mov dword [ebp + esi*4 - 0x134], eax
call edi
mov dword [ebp + esi*4 - 0x130], eax
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
movzx eax, ax
mov ecx, eax
and ecx, 0x3ff
and eax, ebx
or eax, ecx
push eax
mov dword [ebp - 0x138], ecx
call edi
push dword [ebp - 0x138]
mov dword [ebp + esi*4 - 0x12c], eax
call edi
mov dword [ebp + esi*4 - 0x128], eax
add esi, 4
cmp dword [0x61b288], 0
jne 0x466236
mov dword [ebp + esi*4 - 0x134], 0x800
inc esi
xor edi, edi
test esi, esi
jle 0x46625f
push dword [ebp + edi*4 - 0x134]
mov ecx, dword [ebp - 0x144]
push dword [ebp - 0x13c]
call fcn.00465ac7
pop ecx
pop ecx
test eax, eax
jne 0x466261
inc edi
cmp edi, esi
jl 0x46623c
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0055b863
leave
ret 8
Function at 0x468c20
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x468c68
call fcn.0044abc7
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x468c68
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x468cab
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x468c94
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x468c94
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x68], 0
je 0x468ca8
mov ecx, dword [esi + 0x68]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x46c643
Capabilities:
Query or enumerate registry value

Disassembly:
push 0
mov eax, 0x598667
call fcn.0055b872
push dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
call fcn.00402ca0
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0x80000000
jne 0x46c6a5
call fcn.0044a461
cmp eax, 1
jne 0x46c6a5
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push str.SoftwareClasses_
push eax
call fcn.00439140
add esp, 0xc
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.004083c0
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.004011c0
mov dword [ebp + 8], SysStringLen
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
mov esi, eax
call fcn.004011c0
mov eax, esi
call fcn.0055b94a
ret 0x10

Function at 0x46c6ce
Capabilities:
Set registry value

Disassembly:
push 0
mov eax, 0x598667
call fcn.0055b872
push dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
call fcn.00402ca0
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0x80000000
jne 0x46c730
call fcn.0044a461
cmp eax, 1
jne 0x46c730
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push str.SoftwareClasses_
push eax
call fcn.00439140
add esp, 0xc
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.004083c0
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.004011c0
mov dword [ebp + 8], SysStringLen
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueW]
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
mov esi, eax
call fcn.004011c0
mov eax, esi
call fcn.0055b94a
ret 0x14
Function at 0x46e3e6
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x6157a0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, 0x105
push esi
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x46e41b
xor eax, eax
jmp 0x46e46e
lea eax, [ebp - 0x210]
push eax
call fcn.0055b97c
cmp word [ebp + eax*2 - 0x212], 0x5c
pop ecx
je 0x46e44c
push 0x5aa374
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.0055790a
add esp, 0xc
test eax, eax
jne 0x46e417
push edi
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.0055790a
add esp, 0xc
test eax, eax
jne 0x46e417
lea eax, [ebp - 0x210]
push eax
call fcn.0044eb30
pop ecx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0055b863
leave
ret

Function at 0x4e54c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp - 4], ecx
test esi, esi
jne 0x4e54da
call fcn.0044abc7
mov esi, dword [eax + 0xc]
push dword [0x61d51c]
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x4e54f8
xor eax, eax
pop edi
pop esi
leave
ret 8
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp + 0xc], eax
test eax, eax
je 0x4e54f0
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x4e5525
xor esi, esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop ebx
jmp 0x4e54f2
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push ebx
call fcn.004e53ee
mov esi, eax
jmp 0x4e5517

Function at 0x532e17
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.00451bc4
call fcn.0044940f
cmp eax, esi
pop esi
jne 0x532e33
mov ecx, 0x61b5f0
jmp fcn.0046ef7e
ret
Function at 0x5367af
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
test byte [esi + 4], 1
push edi
mov ebx, ecx
je 0x5367c7
mov edi, dword [esi + 0xc]
jmp 0x536807
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x5367e0
call fcn.0044af86
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x5367f5
call fcn.0044af86
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x536807
call fcn.0044af86
call fcn.0044abc7
cmp dword [eax + 0x3c], 0
je 0x53681c
push edi
mov ecx, ebx
call fcn.005355e1
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.005366c9
mov dword [ebp + 8], eax
mov eax, dword [ebx + 0x7c]
test eax, eax
je 0x53683a
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
and dword [ebx + 0x7c], 0
mov eax, dword [ebp + 8]
test eax, eax
je 0x536846
mov edi, eax
mov dword [ebx + 0x7c], eax
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x55b863
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x6157a0]
jne 0x55b86d
repz ret
jmp fcn.0056e85d
Function at 0x570478
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x6157a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0055ef6b
and dword [ebp - 0x14], 0
cmp dword [0x61fb68], 0
mov dword [ebp - 0x18], eax
jne 0x57052b
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x5705d3
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x5e0e78
push ebx
call edi
test eax, eax
je 0x5705d3
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x5e0e68
push ebx
mov dword [0x61fb68], eax
call edi
push eax
call esi
push 0x5e0e54
push ebx
mov dword [0x61fb6c], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x61fb70], eax
call edi
push eax
call esi
mov dword [0x61fb78], eax
test eax, eax
je 0x57052b
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x61fb74], eax
mov eax, dword [0x61fb74]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x570584
cmp dword [0x61fb78], ecx
je 0x570584
push eax
call esi
push dword [0x61fb78]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x570584
test ebx, ebx
je 0x570584
call edi
test eax, eax
je 0x57057b
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x57057b
test byte [ebp - 8], 1
jne 0x570584
or dword [ebp + 0x10], 0x200000
jmp 0x5705b7
mov eax, dword [0x61fb6c]
cmp eax, dword [ebp - 0x18]
je 0x5705b7
push eax
call esi
test eax, eax
je 0x5705b7
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x5705b7
mov eax, dword [0x61fb70]
cmp eax, dword [ebp - 0x18]
je 0x5705b7
push eax
call esi
test eax, eax
je 0x5705b7
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x61fb68]
call esi
test eax, eax
je 0x5705d3
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x5705d5
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0055b863
leave
ret
Function at 0x403000
Capabilities:
Access peb ldr_data
Get disk information
Get number of processors
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push ebx
push esi
push edi
xor eax, eax
add eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x428ea4], eax
mov esi, dword [sym.imp.GDI32.dll_AbortPath]
mov edi, dword [0x428ea8]
xor ebx, ebx
push ebx
call esi
and eax, 0x541e3183
or eax, 0x30
xor edx, edx
mov ecx, 0x643d3efd
div ecx
mov ecx, 0x56c1bae
push 0x5d
mov eax, edx
imul eax, edi
xor edx, edx
div ecx
mov ecx, 0xeb9b6d37
mov eax, edx
xor edx, edx
div ecx
mov eax, 0xb8
mov ecx, edx
or ecx, 0x9a4b248a
xor edx, edx
div ecx
xor edx, edx
mov ecx, eax
xor ecx, 0x4542
or ecx, 0xc4563ab9
pop eax
div ecx
mov eax, 0xdd
push ebx
mov ecx, edx
and ecx, 0x5802
xor ecx, 0x5203
or ecx, 0x49c85bc
xor edx, edx
div ecx
xor edx, edx
mov ecx, 0x1b4d
sub eax, 0x6e4af79d
xor eax, 0xf3
sub ecx, eax
or ecx, 0x48f57e16
mov eax, 0x8c
div ecx
xor edx, edx
mov ecx, eax
mov dword [0x428ea8], ecx
or ecx, 0xd5686c68
mov eax, 0xfe
div ecx
xor edx, edx
mov ecx, eax
or ecx, 0x7e7cc619
mov eax, 0x28c00003
div ecx
mov edi, eax
call esi
and eax, 0x67c4
imul eax, edi
mov dword [0x428ea8], eax
jmp loc.0043259a

Function at 0x4039a3
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [0x428ea8]
imul esi, esi, 0x7c
add esi, dword [ebp + 8]
push 0
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov ecx, eax
mov eax, dword [ebp + 0xc]
and ecx, 0x18828e7a
add ecx, esi
xor ecx, 0x40
or ecx, 0xc407159f
xor edx, edx
div ecx
pop esi
pop ebp
ret

Function at 0x403b55
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
and eax, dword [ebp + 0xc]
and eax, 0x76
add eax, dword [ebp + 0x10]
or eax, dword [ebp + 8]
or eax, 0x2c
pop ebp
ret