joyce8/EMBER2024-capa huggingface dataset:
Function at 0x602310
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
push ebp
push esi
mov esi, ecx
push edi
push 0xa
lea ecx, [esi + 0x18]
mov dword [esi], vtable.CFontInstaller.0
call fcn.0041a810
push 0xa
lea ecx, [esi + 0x30]
call fcn.0041a810
mov ebp, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push str.gdi32.dll
call ebp
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x602375
push str.AddFontMemResourceEx
push edi
call ebx
push str.AddFontResourceExA
push edi
mov dword [esi + 4], eax
call ebx
push str.RemoveFontMemResourceEx
push edi
mov dword [esi + 0xc], eax
call ebx
push str.RemoveFontResourceExA
push edi
mov dword [esi + 8], eax
call ebx
mov dword [esi + 0x10], eax
push str.kernel32.dll
call ebp
test eax, eax
je 0x60238b
push str.MoveFileExA
push eax
call ebx
mov dword [esi + 0x14], eax
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret

Function at 0x6023a0
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x62d928
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x7161c0]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebx + 8], 0
je 0x6023ff
mov esi, dword [ebx + 0x18]
test esi, esi
lea edi, [ebx + 0x18]
je 0x6023f8
xor eax, eax
test esi, esi
setne al
test eax, eax
je 0x6024b8
mov ecx, dword [ebx + 8]
mov eax, esi
mov eax, dword [eax + 8]
mov esi, dword [esi]
push eax
call ecx
test esi, esi
jne 0x6023d8
mov ecx, edi
call fcn.004e8220
cmp dword [ebx + 0x10], 0
je 0x6024a5
mov edi, dword [ebx + 0x30]
test edi, edi
lea ecx, [ebx + 0x30]
mov dword [esp + 0x10], ecx
je 0x6024a0
jmp 0x602420
xor eax, eax
test edi, edi
setne al
test eax, eax
je 0x6024b8
mov eax, edi
mov eax, dword [eax + 8]
mov edi, dword [edi]
sub eax, 0x10
push eax
call fcn.00402800
lea esi, [eax + 0x10]
add esp, 4
mov dword [esp + 0x14], esi
mov edx, dword [ebx + 0x10]
push 0
push 0x10
push esi
mov dword [esp + 0x2c], 0
call edx
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x602474
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x602474
push 4
push 0
push esi
call eax
lea eax, [esi - 0x10]
mov dword [esp + 0x20], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x602498
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test edi, edi
jne 0x602420
mov ecx, dword [esp + 0x10]
call fcn.00406b60
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x14
ret
push 0x80004005
call fcn.00401470
int3

Function at 0x6024d0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x62d966
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x7161c0]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
mov dword [esi], vtable.CFontInstaller.0
mov dword [esp + 0x14], 1
call fcn.006023a0
lea ecx, [esi + 0x30]
call fcn.00407300
lea ecx, [esi + 0x18]
call fcn.004e8290
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret
Function at 0x6025b0
Capabilities:
Delete file
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x62d9a6
mov eax, dword fs:[0]
push eax
sub esp, 0x220
mov eax, dword [0x7161c0]
xor eax, esp
mov dword [esp + 0x21c], eax
push esi
push edi
mov eax, dword [0x7161c0]
xor eax, esp
push eax
lea eax, [esp + 0x22c]
mov dword fs:[0], eax
mov edi, dword [esp + 0x23c]
mov esi, ecx
cmp dword [esi + 0xc], 0
je 0x6026f3
lea ecx, [esp + 0x10]
call fcn.005be0de
lea eax, [esp + 0x124]
push eax
push 0x104
mov dword [esp + 0x23c], 0
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x6026df
lea ecx, [esp + 0x20]
push ecx
push 0
push str.g_font
lea edx, [esp + 0x130]
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
je 0x6026df
push 0
push 1
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x1c]
call fcn.005be558
test eax, eax
je 0x6026d4
mov ecx, dword [esp + 0x240]
push ecx
push edi
lea ecx, [esp + 0x18]
call fcn.005bde2c
lea ecx, [esp + 0x10]
call fcn.005be07c
mov eax, dword [esi + 0xc]
push 0
push 0x10
lea edx, [esp + 0x28]
push edx
call eax
test eax, eax
jle 0x6026d4
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401eb0
lea edx, [esp + 0xc]
push edx
lea ecx, [esi + 0x30]
mov byte [esp + 0x238], 1
call fcn.0040b2f0
lea ecx, [esp + 0xc]
call fcn.00401a50
lea ecx, [esp + 0x10]
mov dword [esp + 0x234], 0xffffffff
call fcn.005be1eb
mov al, 1
jmp 0x6026f5
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x10]
mov dword [esp + 0x234], 0xffffffff
call fcn.005be1eb
xor al, al
mov ecx, dword [esp + 0x22c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x21c]
xor ecx, esp
call fcn.005d8d34
add esp, 0x22c
ret 8

Function at 0x602760
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
push 0
lea eax, [esp + 8]
push eax
mov eax, dword [ecx + 8]
push 1
lea edx, [esp + 0xf]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov al, byte [esp + 3]
add esp, 8
ret

Function at 0x602790
Capabilities:
Read file on windows

Disassembly:
mov edx, dword [esp + 8]
mov ecx, dword [ecx + 8]
push 0
lea eax, [esp + 0xc]
push eax
mov eax, dword [esp + 0xc]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
ret 8
Function at 0x4028d0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5692c3
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x5cce74]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], ebx
push 0
push 0
mov dword [ebx], 0
mov dword [ebx + 4], 0
call fcn.00402e10
mov dword [ebx], eax
mov dword [ebp - 4], 0
lea edi, [ebx + 0x10]
mov dword [ebx + 8], 0
push 0
mov dword [ebx + 0xc], 0
push 0
mov dword [ebp - 0x14], edi
mov dword [edi], 0
mov dword [edi + 4], 0
call fcn.00402e10
mov dword [edi], eax
mov byte [ebp - 4], 1
lea esi, [ebx + 0x20]
mov dword [ebx + 0x18], 0
sub esp, 8
mov dword [ebx + 0x1c], 0
mov dword [ebp - 0x14], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.00402de0
mov dword [esi], eax
mov dword [ebx + 0x28], 0
mov dword [ebx + 0x2c], 0
mov dword [ebx + 0x30], 1
mov byte [ebx + 0x34], 0
mov dword [ebx + 0x38], 0
mov dword [ebx + 0x3c], 0
mov dword [ebx + 0x40], 0
mov eax, dword [edi]
mov eax, dword [eax]
mov dword [ebx + 0x18], eax
mov eax, dword [ebx]
mov eax, dword [eax]
mov dword [ebx + 0xc], eax
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x403520
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x5cce74]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
lea eax, [ebp - 0x14]
mov dword [ebp - 8], 0
push eax
push 0x20019
push 0
push str.SoftwareMicrosoftNET_Framework_SetupNDP_v4Full
push reloc.OLEAUT32.dll_SysReAllocString
xor bl, bl
mov dword [ebp - 0xc], 4
mov dword [ebp - 0x10], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x403590
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push str.Release
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0x14]
test eax, eax
je 0x4035a1
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0054a3fc
mov esp, ebp
pop ebp
ret
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 8], 0x60632
mov ecx, 1
movzx eax, bl
cmovae eax, ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0054a3fc
mov esp, ebp
pop ebp
ret

Function at 0x404270
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x404285
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4042c6
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x4042c2
nop word [eax + eax]
cmp esi, edx
jae 0x4042c6
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x4042b0
cmp esi, edx
jb 0x4042cb
xor eax, eax
pop esi
pop ebp
ret
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop ebp
ret
Function at 0x404330
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
movzx eax, word [ebp + 8]
mov dword [ebp + 8], eax
pop ebp
jmp fcn.0041510f
Function at 0x413da6
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x18
mov eax, 0x569f01
call fcn.0054ad67
mov eax, ecx
mov dword [ebp - 0x18], eax
mov ebx, dword [ebp + 0x10]
xor edi, edi
mov ecx, dword [ebp + 0x14]
push edi
mov dword [ebx], edi
mov dword [ecx], edi
cmp dword [eax + 0x58], edi
je 0x413e50
push dword [ebp + 8]
mov ecx, eax
call fcn.004140db
mov esi, eax
test esi, esi
je 0x413ee3
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], edi
lea eax, [ebp - 0x14]
mov dword [ebp - 4], edi
push eax
push edi
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], edi
push eax
push edi
push dword [ebp + 0xc]
mov dword [ebp - 0x14], edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp - 0x14]
mov dword [ecx], edx
test eax, eax
jne 0x413e39
push edx
call fcn.004064fe
pop ecx
lea ecx, [ebp - 0x14]
mov dword [ebx], eax
push ecx
push eax
lea eax, [ebp - 0x18]
push eax
push edi
push dword [ebp + 0xc]
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x413e39
xor edi, edi
inc edi
jmp 0x413e43
push dword [ebx]
call fcn.004064f9
pop ecx
mov dword [ebx], edi
lea ecx, [ebp - 0x24]
call fcn.00413c6b
jmp 0x413ee1
mov esi, dword [eax]
lea eax, [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
mov esi, dword [esi + 0x84]
mov ecx, esi
push eax
call fcn.0054ad2a
mov ecx, dword [ebp - 0x18]
call esi
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], 1
mov esi, dword [eax - 0xc]
mov dword [ebp - 0x18], esi
test esi, esi
je 0x413ed9
mov ecx, dword [ebp + 0x14]
mov eax, esi
shr eax, 1
push eax
mov dword [ecx], eax
call fcn.004064fe
mov dword [ebx], eax
pop ecx
test esi, esi
jle 0x413ed3
mov esi, dword [ebp + 0x10]
lea eax, [edi + 1]
push eax
lea ecx, [ebp - 0x10]
call fcn.00413c48
push edi
lea ecx, [ebp - 0x10]
lea ebx, [eax - 1]
shl bl, 4
sub bl, 0x41
call fcn.00413c48
add al, bl
mov edx, edi
test edx, edx
jns 0x413ec4
add edx, 1
sar edx, 1
mov ecx, dword [esi]
add edi, 2
mov byte [edx + ecx], al
cmp edi, dword [ebp - 0x18]
jl 0x413e9b
mov eax, dword [ebp - 0x10]
xor edi, edi
inc edi
lea ecx, [eax - 0x10]
call fcn.00402f60
mov eax, edi
call fcn.0054ad30
ret 0x10

Function at 0x413eeb
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
xor esi, esi
push edi
cmp dword [ecx + 0x58], esi
je 0x413f3e
push esi
push dword [ebp + 8]
call fcn.004140db
mov edi, eax
test edi, edi
jne 0x413f0e
mov eax, dword [ebp + 0x10]
jmp 0x413f50
lea eax, [ebp - 4]
mov dword [ebp - 4], 4
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
push dword [ebp + 0xc]
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push edi
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x413f09
mov eax, dword [ebp - 8]
jmp 0x413f50
push dword [ecx + 0x6c]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x415174
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor esi, esi
call fcn.0042306d
push 5
push dword [ebp + 8]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x4151ab
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
mov ecx, dword [ebp - 4]
push ebx
push dword [ebp + 0xc]
push esi
call fcn.004151cc
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4170da
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor esi, esi
mov eax, ecx
push edi
mov edi, esi
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], esi
je 0x417124
call fcn.0042306d
push 0xf0
push dword [ebp + 0xc]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x417121
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x417172
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
mov eax, dword [ebp - 4]
xor ebx, ebx
inc ebx
test esi, esi
je 0x417150
mov ecx, dword [eax]
push dword [ebp + 0x10]
push esi
mov esi, dword [ecx + 0x20]
mov ecx, esi
push dword [ebp + 8]
call fcn.0054ad2a
mov ecx, dword [ebp - 4]
call esi
mov ebx, eax
test edi, edi
je 0x417150
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebp + 8]
mov edi, dword [eax + 0x70]
test edi, edi
je 0x417170
mov eax, dword [edi]
push dword [ebp + 0x10]
mov esi, dword [eax + 0xa0]
mov ecx, esi
call fcn.0054ad2a
mov ecx, edi
call esi
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x41c651
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 4], ecx
mov esi, edi
cmp dword [ebp + 8], esi
je 0x41c696
call fcn.0042306d
push 0xf0
push dword [ebp + 8]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x41c696
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x41c6b2
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.00494642
mov ebx, eax
test edi, edi
je 0x41c6b0
test esi, esi
je 0x41c6b0
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x41d0b6
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, ecx
push edi
test esi, esi
je 0x41d174
cmp dword [esi + 0x20], 0
je 0x41d174
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x41d174
cmp dword [ebp + 8], 0
je 0x41d174
xor eax, eax
mov ebx, eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], ebx
mov edi, eax
call fcn.0042306d
push str.AFX_DIALOG_LAYOUT
push dword [ebp + 8]
mov eax, dword [eax + 0xc]
push eax
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x41d145
mov edi, dword [ebp - 0xc]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push dword [ebp - 0x10]
mov dword [ebp - 4], eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x41d174
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov dword [ebp - 8], eax
push dword [ebp - 4]
push ebx
push esi
call fcn.004a5c47
add esp, 0xc
mov ebx, eax
cmp dword [ebp - 8], 0
je 0x41d165
test edi, edi
je 0x41d165
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
test ebx, ebx
je 0x41d170
mov ecx, esi
call fcn.0041ce59
mov eax, ebx
jmp 0x41d176
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x421b31
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x57214e
call fcn.0054ad67
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0x74], ebx
jne 0x421b57
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x421bb6
call fcn.00415f87
push eax
lea ecx, [ebp - 0x10]
call fcn.00403dc0
mov edi, dword [edi + 0x74]
lea ecx, [ebp - 0x10]
push ecx
mov dword [ebp - 4], ebx
mov eax, dword [edi]
mov esi, dword [eax + 0x8c]
mov ecx, esi
call fcn.0054ad2a
mov ecx, edi
call esi
mov esi, dword [ebp + 8]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push esi
call fcn.00553e01
push eax
call fcn.00404910
add esp, 0x14
test esi, esi
je 0x421ba9
push esi
call fcn.005533c0
pop ecx
mov ebx, eax
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00402f60
mov eax, ebx
call fcn.0054ad30
ret 8
Function at 0x42bda8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 8], ecx
test esi, esi
jne 0x42bdc1
call fcn.0042306d
mov esi, dword [eax + 0xc]
push 0x57d78c
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov ebx, eax
test ebx, ebx
je 0x42be17
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x42be16
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
test eax, eax
jne 0x42bdf7
xor esi, esi
jmp 0x42be0d
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 8]
push eax
push dword [ebp - 4]
call fcn.0042be1f
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4a769b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
mov dword [ebp - 4], ebx
test byte [esi + 4], 1
je 0x4a76b5
mov edi, dword [esi + 0xc]
jmp 0x4a76f5
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x4a76ce
call fcn.00418bcc
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x4a76e3
call fcn.00418bcc
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x4a76f5
call fcn.00418bcc
call fcn.0042306d
cmp dword [eax + 0x3c], 0
je 0x4a770a
push edi
mov ecx, ebx
call fcn.004a6dd4
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.004a78e7
mov ebx, eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x88]
test ecx, ecx
je 0x4a7733
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 4]
and dword [eax + 0x88], 0
test ebx, ebx
je 0x4a773f
mov edi, ebx
mov dword [eax + 0x88], ebx
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x510e97
Capabilities:
Get common file path

Disassembly:
push esi
mov esi, ecx
call fcn.005458ba
call fcn.004230c1
cmp dword [eax + 0x14], 0
jne 0x510eb2
mov ecx, esi
pop esi
jmp fcn.005101e2
pop esi
ret

Function at 0x510fe2
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
mov ecx, dword [esi + 4]
call fcn.00421729
push 0xfffffffffffffff0
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowLongA]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x51101e
call fcn.00511204
mov dword [esi + 0xc], 1
jmp 0x511023
call fcn.00511204
cmp dword [esi], 0
je 0x51106c
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov esi, dword [ebp + 0x10]
test eax, eax
jle 0x511046
lea ecx, [eax + 1]
push ecx
push eax
mov ecx, esi
call fcn.0041c727
jmp 0x511057
push 0xff
mov ecx, esi
call fcn.00403d80
push 0x100
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextA]
push 0xffffffffffffffff
mov ecx, esi
call fcn.00414217
jmp 0x511090
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SendMessageA]
cmp eax, 0xffffffff
jne 0x511090
push dword [esi]
push dword [ebp - 4]
call fcn.0048fdad
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x511159
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, esi
push edi
push dword [ebp + 0xc]
call fcn.00511204
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x5111a1
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.0041c727
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.00414217
jmp 0x5111ac
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.0048fdad
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x54331e
Capabilities:
Get common file path
Get file system object information

Disassembly:
push esi
mov esi, ecx
call fcn.00402130
call fcn.004230c1
cmp dword [eax + 0x14], 0
jne 0x543339
mov ecx, esi
pop esi
jmp fcn.00542b9c
pop esi
ret

Function at 0x56431f
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00563fdf
Function at 0x40e8fd
Capabilities:
Hash data using sha1

Disassembly:
mov eax, dword [esp + 4]
and dword [eax + 0x18], 0
and dword [eax + 0x14], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
ret 4

Function at 0x4129f9
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
lea eax, [ebp - 4]
push eax
push 0x413b8c
push 1
xor ebx, ebx
push ebx
push 0x413c3c
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x412aca
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
lea edx, [ebp - 8]
push edx
push 0x413c2c
push eax
call dword [ecx]
test eax, eax
jl 0x412ac1
cmp byte [ebp + 8], bl
je 0x412a4c
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push 2
push dword [ebp + 0x10]
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 4]
push dword [ebp + 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x50]
cmp dword [ebp + 0x18], ebx
je 0x412a69
mov eax, dword [ebp - 4]
push dword [ebp + 0x18]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x1c]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push ebx
cmp dword [ebp + 0x1c], ebx
jne 0x412a7b
push 0x413734
jmp 0x412a7e
push dword [ebp + 0x1c]
push eax
call dword [ecx + 0x44]
cmp dword [ebp + 0x20], ebx
je 0x412a93
mov eax, dword [ebp - 4]
push dword [ebp + 0x20]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x2c]
cmp dword [ebp + 0x14], ebx
je 0x412aa4
mov eax, dword [ebp - 4]
push dword [ebp + 0x14]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x24]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push 1
push dword [ebp + 0x10]
push eax
call dword [ecx + 0x18]
test eax, eax
jl 0x412ab8
mov bl, 1
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov al, bl
pop ebx
leave
ret 0x1c

Function at 0x412ae4
Capabilities:
Get common file path

Disassembly:
push dword [esp + 4]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
neg eax
sbb eax, eax
neg eax
ret 8

Function at 0x10885
Capabilities:
Create device object

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [0x10804]
test eax, eax
mov ecx, 0xbb40
je 0x1089c
cmp eax, ecx
jne 0x108bf
mov edx, dword [sym.imp.ntoskrnl.exe_KeTickCount]
mov eax, 0x10804
shr eax, 8
xor eax, dword [edx]
and eax, 0xffff
mov dword [0x10804], eax
jne 0x108bf
mov eax, ecx
mov dword [0x10804], eax
not eax
mov dword [section..data], eax
pop ebp
jmp 0x105f0