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

Disassembly:
push 0x118
mov eax, 0x52f101
call fcn.00512375
xor edi, edi
inc edi
mov dword [ebp - 4], edi
mov eax, 0x100
mov dword [ebp - 0x124], eax
mov dword [ebp - 0x120], eax
lea eax, [ebp - 0x114]
push eax
push dword [0x591770]
mov dword [ebp - 0x11c], edi
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
xor ebx, ebx
cmp eax, ebx
je 0x412bee
mov byte [ebp - 4], bl
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.004010d2
mov dword [ebp - 4], 3
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.004010d2
mov al, bl
call fcn.005123f8
ret
lea eax, [ebp - 0x124]
push eax
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x11c]
push eax
push ebx
push ebx
push dword [ebp - 0x114]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, ebx
je 0x412c32
mov ecx, dword [ebp + 8]
mov eax, dword [ecx - 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
add eax, eax
push eax
push ecx
push edi
push ebx
push ebx
push dword [ebp - 0x114]
call esi
jmp 0x412c87
lea eax, [ebp - 0x110]
push eax
lea ecx, [ebp - 0x118]
call fcn.00401d42
mov byte [ebp - 4], 4
push dword [ebp + 8]
lea ecx, [ebp - 0x118]
call fcn.00409238
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x412c75
mov ecx, dword [ebp + 8]
mov eax, dword [ecx - 0xc]
add eax, eax
push eax
push ecx
push edi
push ebx
push ebx
push dword [ebp - 0x114]
call esi
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x118]
add ecx, 0xfffffff0
call fcn.004010d2
lea eax, [ebp - 0x120]
push eax
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x11c]
push eax
push ebx
mov edi, str.version
push edi
push dword [ebp - 0x114]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, ebx
je 0x412ccb
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx - 0xc]
add eax, eax
push eax
push ecx
push 1
push ebx
push edi
push dword [ebp - 0x114]
call esi
jmp 0x412d1b
lea eax, [ebp - 0x110]
push eax
lea ecx, [ebp - 0x118]
call fcn.00401d42
mov byte [ebp - 4], 6
push dword [ebp + 0xc]
lea ecx, [ebp - 0x118]
call fcn.00409238
test eax, eax
je 0x412d09
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx - 0xc]
add eax, eax
push eax
push ecx
push 1
push ebx
push edi
push dword [ebp - 0x114]
call esi
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x118]
add ecx, 0xfffffff0
call fcn.004010d2
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], bl
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.004010d2
mov dword [ebp - 4], 9
mov bl, 1
jmp 0x412bd7
Function at 0x412dc7
Capabilities:
Delete file
Set file attributes

Disassembly:
push 8
mov eax, 0x52f169
call fcn.0051230c
and dword [ebp - 4], 0
push 0x80
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov edi, eax
test edi, edi
jne 0x412e72
call fcn.00414e89
push eax
lea ecx, [ebp - 0x10]
call fcn.0040131c
mov byte [ebp - 4], 2
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00412a81
pop ecx
pop ecx
mov byte [ebp - 4], 3
push dword [eax]
call esi
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x10]
push str.DeleteFile__s__error:_u__s
push eax
call fcn.00401b9f
add esp, 0x14
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.004010d2
push ecx
lea eax, [ebp - 0x10]
mov ecx, esp
mov dword [ebp - 0x14], esp
push eax
call fcn.00401668
mov byte [ebp - 4], 5
mov byte [ebp - 4], 2
call fcn.00402f79
pop ecx
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.004010d2
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.004010d2
mov eax, edi
call fcn.005123e4
ret

Function at 0x412e89
Capabilities:
Move file
Set file attributes

Disassembly:
push 8
mov eax, 0x52f1cc
call fcn.0051230c
mov dword [ebp - 4], 1
push 0x80
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_MoveFileA]
mov edi, eax
test edi, edi
jne 0x412f40
push 0x53f451
lea ecx, [ebp - 0x10]
call fcn.00401d42
mov byte [ebp - 4], 2
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00412a81
pop ecx
pop ecx
mov byte [ebp - 4], 3
push dword [eax]
call esi
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x10]
push dword [ebp + 8]
push str.MoveFile__s___s__error:_u__s
push eax
call fcn.00401b9f
add esp, 0x18
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.004010d2
push ecx
lea eax, [ebp - 0x10]
mov ecx, esp
mov dword [ebp - 0x14], esp
push eax
call fcn.00401668
mov byte [ebp - 4], 5
mov byte [ebp - 4], 2
call fcn.00402f79
pop ecx
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.004010d2
mov byte [ebp - 4], 0
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.004010d2
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.004010d2
mov eax, edi
call fcn.005123e4
ret
Function at 0x412f66
Capabilities:
Copy file

Disassembly:
push 8
mov eax, 0x52f1cc
call fcn.0051230c
mov dword [ebp - 4], 1
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov edi, eax
test edi, edi
jne 0x413011
push 0x53f451
lea ecx, [ebp - 0x10]
call fcn.00401d42
mov byte [ebp - 4], 2
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00412a81
pop ecx
pop ecx
mov byte [ebp - 4], 3
push dword [eax]
call esi
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x10]
push dword [ebp + 8]
push str.CopyFile__s___s__error:_u__s
push eax
call fcn.00401b9f
add esp, 0x18
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.004010d2
push ecx
lea eax, [ebp - 0x10]
mov ecx, esp
mov dword [ebp - 0x14], esp
push eax
call fcn.00401668
mov byte [ebp - 4], 5
mov byte [ebp - 4], 2
call fcn.00402f79
pop ecx
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.004010d2
mov byte [ebp - 4], 0
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.004010d2
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.004010d2
mov eax, edi
call fcn.005123e4
ret
Function at 0x41352a
Capabilities:
Delete directory
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push 0x358
mov eax, 0x52f305
call fcn.00512375
mov edi, dword [ebp + 8]
inc dword [0x591924]
mov esi, 0x104
push esi
lea eax, [ebp - 0x218]
push 0
push eax
mov dword [ebp - 0x35c], edi
call fcn.00512ea0
push edi
lea eax, [ebp - 0x218]
push esi
push eax
call fcn.00515f69
push str..
lea eax, [ebp - 0x218]
push esi
push eax
call fcn.00515efc
add esp, 0x24
lea eax, [ebp - 0x358]
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x360], eax
cmp eax, 0xffffffff
jne 0x4135a9
dec dword [0x591924]
jmp 0x41375f
lea ecx, [ebp - 0x358]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
mov edi, dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov ebx, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
jmp 0x413722
push 0x542110
lea eax, [ebp - 0x32c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x41370f
push 0x54210c
lea eax, [ebp - 0x32c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x41370f
test byte [ebp - 0x358], 0x10
push dword [ebp - 0x35c]
lea eax, [ebp - 0x114]
push esi
push eax
je 0x413687
call fcn.00515f69
push 0x53f454
lea eax, [ebp - 0x114]
push esi
push eax
call fcn.00515efc
lea eax, [ebp - 0x32c]
push eax
lea eax, [ebp - 0x114]
push esi
push eax
call fcn.00515efc
add esp, 0x24
test dword [ebp - 0x358], 0x400
lea eax, [ebp - 0x114]
push eax
jne 0x413661
call fcn.0041352a
pop ecx
lea eax, [ebp - 0x114]
push eax
call edi
test eax, eax
jne 0x41370f
push 0x80
lea eax, [ebp - 0x114]
push eax
call ebx
lea eax, [ebp - 0x114]
push eax
call edi
jmp 0x41370f
call fcn.00515f69
push 0x53f454
lea eax, [ebp - 0x114]
push esi
push eax
call fcn.00515efc
lea eax, [ebp - 0x32c]
push eax
lea eax, [ebp - 0x114]
push esi
push eax
call fcn.00515efc
add esp, 0x20
lea eax, [ebp - 0x114]
mov ecx, esp
mov dword [ebp - 0x364], esp
push eax
call fcn.00401d42
and dword [ebp - 4], 0
or dword [ebp - 4], 0xffffffff
call fcn.00412dc7
pop ecx
test eax, eax
jne 0x41370f
push 0x80
lea eax, [ebp - 0x114]
push eax
call ebx
push ecx
lea eax, [ebp - 0x114]
mov ecx, esp
mov dword [ebp - 0x364], esp
push eax
call fcn.00401d42
mov dword [ebp - 4], 1
or dword [ebp - 4], 0xffffffff
call fcn.00412dc7
pop ecx
lea eax, [ebp - 0x358]
push eax
push dword [ebp - 0x360]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4135c8
push dword [ebp - 0x360]
call dword [sym.imp.KERNEL32.dll_FindClose]
dec dword [0x591924]
jne 0x41375f
push dword [ebp - 0x35c]
call edi
test eax, eax
jne 0x41375f
push 0x80
push dword [ebp - 0x35c]
call ebx
push dword [ebp - 0x35c]
call edi
call fcn.005123f8
ret
Function at 0x413e46
Capabilities:
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52f3f5
mov eax, dword fs:[0]
push eax
mov eax, 0x29a8
call fcn.00514e70
mov eax, dword [0x590090]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x29b4]
push eax
lea eax, [ebp - 0x2994]
push eax
mov dword [ebp - 0x29b4], 0x2880
call sub.IPHLPAPI.DLL_GetAdaptersInfo
mov ebx, 0x103
push ebx
lea eax, [ebp - 0x113]
push 0
push eax
mov byte [ebp - 0x114], 0
call fcn.00512ea0
add esp, 0xc
lea esi, [ebp - 0x2994]
movzx eax, byte [esi + 0x199]
push eax
movzx eax, byte [esi + 0x198]
push eax
movzx eax, byte [esi + 0x197]
push eax
movzx eax, byte [esi + 0x196]
push eax
movzx eax, byte [esi + 0x195]
push eax
movzx eax, byte [esi + 0x194]
push eax
push str._02X_02X_02X_02X_02X_02X
lea eax, [ebp - 0x114]
push ebx
push eax
call fcn.00514e22
add esp, 0x24
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x29b0]
call fcn.00401d8a
and dword [ebp - 4], 0
lea eax, [ebp - 0x29b0]
push eax
mov ecx, edi
call fcn.00413ddf
or dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x29b0]
call fcn.00401536
mov esi, dword [esi]
test esi, esi
jne 0x413ebc
mov eax, dword [edi + 4]
mov edi, dword [edi]
push eax
push edi
call fcn.00413dbf
pop ecx
pop ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005122fd
leave
ret

Function at 0x4225b0
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 0x4225f7
call fcn.0041bd44
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x4225f7
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x422613
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.004220b5
mov esi, eax
test edi, edi
je 0x422611
test ebx, ebx
je 0x422611
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x422dca
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x532ccf
call fcn.0051230c
mov esi, ecx
cmp dword [esi + 0x6c], 0
jne 0x422def
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x422e41
call fcn.00414e89
push eax
lea ecx, [ebp - 0x10]
call fcn.0040131c
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.00517377
push eax
call fcn.00402a2e
add esp, 0x14
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.004010d2
mov eax, esi
call fcn.005123e4
ret 8
Function at 0x42a1d9
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.004226bc
push 0xfffffffffffffff0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowLongA]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x42a216
call fcn.00429e3d
mov dword [esi + 0xc], 1
jmp 0x42a21b
call fcn.00429e3d
cmp dword [esi], 0
je 0x42a264
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
test eax, eax
jle 0x42a23c
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.00414d83
jmp 0x42a24e
mov ecx, dword [ebp + 0x10]
push 0xff
call fcn.004014fd
push 0x100
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.00414d54
jmp 0x42a288
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageA]
cmp eax, 0xffffffff
jne 0x42a288
push dword [esi]
push dword [ebp + 8]
call fcn.00430e03
pop esi
pop ebp
ret 0xc

Function at 0x42b2a4
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x590090]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0x800
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x11c], eax
mov esi, ecx
lea eax, [ebp - 0x120]
jne 0x42b2ec
push 0x546f38
push 4
push eax
call fcn.00515f69
push eax
call fcn.00402a2e
add esp, 0x10
jmp 0x42b302
push 4
push eax
push 3
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x42b385
push edi
call fcn.00517721
mov edi, dword [eax]
call fcn.00517721
and dword [eax], 0
lea eax, [ebp - 0x120]
push eax
push dword [ebp - 0x11c]
lea eax, [ebp - 0x118]
push esi
push 0x111
mov esi, 0x112
push esi
push eax
call fcn.00514e40
add esp, 0x18
mov dword [ebp - 0x11c], eax
call fcn.00517721
cmp dword [eax], 0
je 0x42b359
call fcn.00517721
push dword [eax]
call fcn.004143e5
pop ecx
jmp 0x42b360
call fcn.00517721
mov dword [eax], edi
cmp dword [ebp - 0x11c], 0xffffffff
pop edi
je 0x42b385
cmp dword [ebp - 0x11c], esi
jae 0x42b385
push 0
push 0
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
jmp 0x42b387
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.005122fd
leave
ret
Function at 0x42b394
Capabilities:
Identify system language via api

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x590090]
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.0041db8e
pop ecx
cmp eax, esi
je 0x42b47e
push str.GetThreadPreferredUILanguages
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
cmp edi, esi
je 0x42b47e
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.00512ea0
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 0x42b47e
lea edi, [ebp - 0xd0]
cmp word [ebp - 0xd0], si
je 0x42b47e
cmp esi, 0x14
jge 0x42b47e
push 0x10
push 0
push edi
call fcn.0051857b
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x42b46d
call fcn.00517721
cmp dword [eax], 0x22
je 0x42b46d
mov dword [ebp + esi*4 - 0x134], ebx
inc esi
push edi
call fcn.00514a02
lea edi, [edi + eax*2 + 2]
cmp word [edi], 0
pop ecx
jne 0x42b443
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 [0x593504], 0
jne 0x42b509
mov dword [ebp + esi*4 - 0x134], 0x800
inc esi
xor edi, edi
test esi, esi
jle 0x42b532
push dword [ebp + edi*4 - 0x134]
mov ecx, dword [ebp - 0x144]
push dword [ebp - 0x13c]
call fcn.0042b2a4
pop ecx
pop ecx
test eax, eax
jne 0x42b534
inc edi
cmp edi, esi
jl 0x42b50f
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005122fd
leave
ret 8

Function at 0x431ebb
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x590090]
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 0x431ef0
xor eax, eax
jmp 0x431f43
lea eax, [ebp - 0x210]
push eax
call fcn.00514a02
cmp word [ebp + eax*2 - 0x212], 0x5c
pop ecx
je 0x431f21
push 0x5475e0
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.00518cdc
add esp, 0xc
test eax, eax
jne 0x431eec
push edi
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.00518cdc
add esp, 0xc
test eax, eax
jne 0x431eec
lea eax, [ebp - 0x210]
push eax
call fcn.0041dc14
pop ecx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.005122fd
leave
ret
Function at 0x4a0384
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 0x4a039e
call fcn.0041bd44
mov esi, dword [eax + 0xc]
push dword [0x5956b8]
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x4a03bc
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 0x4a03b4
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x4a03e9
xor esi, esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop ebx
jmp 0x4a03b6
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push ebx
call fcn.004a02b2
mov esi, eax
jmp 0x4a03db

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

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.00420b12
call fcn.0041dc9a
cmp eax, esi
pop esi
jne 0x4efd9e
mov ecx, 0x593810
jmp fcn.00432b47
ret

Function at 0x4f3717
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 0x4f372f
mov edi, dword [esi + 0xc]
jmp 0x4f376f
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x4f3748
call fcn.00423ba1
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x4f375d
call fcn.00423ba1
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x4f376f
call fcn.00423ba1
call fcn.0041bd44
cmp dword [eax + 0x3c], 0
je 0x4f3784
push edi
mov ecx, ebx
call fcn.004f254b
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.004f3631
mov dword [ebp + 8], eax
mov eax, dword [ebx + 0x7c]
test eax, eax
je 0x4f37a2
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
and dword [ebx + 0x7c], 0
mov eax, dword [ebp + 8]
test eax, eax
je 0x4f37ae
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 0x5122fd
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x590090]
jne 0x512307
repz ret
jmp fcn.0051d77c
Function at 0x516de5
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x516e0c
call fcn.00517734
mov dword [eax], esi
call fcn.00517721
push 0x16
pop esi
mov dword [eax], esi
call fcn.0051abc2
mov eax, esi
jmp 0x516e61
test dword [ebp + 0xc], 0xfffffff9
jne 0x516df2
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x516e39
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00517747
pop ecx
call fcn.00517721
mov eax, dword [eax]
jmp 0x516e61
test al, 0x10
jne 0x516e5f
test al, 1
je 0x516e5f
test byte [ebp + 0xc], 2
je 0x516e5f
call fcn.00517734
mov dword [eax], 5
call fcn.00517721
mov dword [eax], 0xd
jmp 0x516e30
xor eax, eax
pop esi
pop ebp
ret

Function at 0x528485
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x590090]
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.0051d17b
and dword [ebp - 0x14], 0
cmp dword [0x597c58], 0
mov dword [ebp - 0x18], eax
jne 0x528538
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x5285e0
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x5285e0
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x56ae80
push ebx
mov dword [0x597c58], eax
call edi
push eax
call esi
push 0x56ae6c
push ebx
mov dword [0x597c5c], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x597c60], eax
call edi
push eax
call esi
mov dword [0x597c68], eax
test eax, eax
je 0x528538
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x597c64], eax
mov eax, dword [0x597c64]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x528591
cmp dword [0x597c68], ecx
je 0x528591
push eax
call esi
push dword [0x597c68]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x528591
test ebx, ebx
je 0x528591
call edi
test eax, eax
je 0x528588
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x528588
test byte [ebp - 8], 1
jne 0x528591
or dword [ebp + 0x10], 0x200000
jmp 0x5285c4
mov eax, dword [0x597c5c]
cmp eax, dword [ebp - 0x18]
je 0x5285c4
push eax
call esi
test eax, eax
je 0x5285c4
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x5285c4
mov eax, dword [0x597c60]
cmp eax, dword [ebp - 0x18]
je 0x5285c4
push eax
call esi
test eax, eax
je 0x5285c4
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x597c58]
call esi
test eax, eax
je 0x5285e0
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x5285e2
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005122fd
leave
ret