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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5319f0
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x58f690]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0x10]
or edi, 0xffffffff
cmp dword [ebp + 8], 0
mov dword [ebp - 4], 1
je 0x401d13
lea eax, [ebp + 0x10]
push eax
push 0x541db4
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov ebx, eax
jmp 0x401d78
mov eax, dword [ebp + 0x14]
cmp dword [eax - 0xc], 0
jne 0x401d34
lea eax, [ebp + 0x10]
push eax
push 0x541db4
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov ebx, eax
jmp 0x401d78
push str.SoftwareEsm_SoftwareTransparentTransparent_Password_Lock
lea eax, [ebp + 0x14]
push eax
lea eax, [ebp + 8]
push eax
call fcn.00401410
add esp, 0xc
lea ecx, [ebp + 0x10]
push ecx
push dword [eax]
push VariantInit
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
mov ebx, eax
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x401d78
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test ebx, ebx
jne 0x401dba
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
push ebx
push dword [ebp + 0xc]
mov dword [ebp - 0x10], 4
push dword [ebp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, eax
test ecx, ecx
jne 0x401da7
mov esi, dword [ebp - 0x14]
jmp 0x401db1
mov eax, esi
cmp ecx, 5
cmove eax, esi
mov esi, eax
push dword [ebp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp + 0xc]
add edx, 0xfffffff0
mov byte [ebp - 4], 0
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x401dda
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ebx, dword [ebp + 0x14]
add ebx, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [ebx + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x401dfb
mov ecx, dword [ebx]
push ebx
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, esi
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 0x401e10
Capabilities:
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x531a23
mov eax, dword fs:[0]
push eax
mov eax, 0x1414
call fcn.00519bc0
mov eax, dword [0x58f690]
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]
mov dword [ebp - 0x1420], 0
mov dword [ebp - 4], 0
call fcn.0040e6b7
mov ecx, eax
xor eax, eax
test ecx, ecx
setne al
test eax, eax
jne 0x401e72
push 0x80004005
call fcn.004017d0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x1414], eax
lea ecx, [ebp - 0x1414]
mov byte [ebp - 4], 1
call fcn.00401970
lea eax, [ebp - 0x1410]
push eax
lea eax, [ebp - 0x141c]
push eax
lea eax, [ebp - 0xc10]
push eax
lea eax, [ebp - 0x1418]
push eax
lea eax, [ebp - 0x410]
push eax
push dword [ebp + 0xc]
mov dword [ebp - 0x141c], 0xfa
push 0
mov dword [ebp - 0x1418], 0x400
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameA]
test eax, eax
jne 0x401f46
push 0x541cf4
mov ecx, edi
call fcn.00401070
mov edx, dword [ebp - 0x1414]
add edx, 0xfffffff0
or esi, 0xffffffff
mov byte [ebp - 4], 0
lea ecx, [edx + 0xc]
mov eax, esi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x401f07
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ebx, dword [ebp + 0xc]
add ebx, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [ebx + 0xc]
lock xadd dword [eax], esi
dec esi
test esi, esi
jg 0x401f28
mov ecx, dword [ebx]
push ebx
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
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.00518be2
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 0x1414]
mov ecx, 1
mov eax, dword [esi - 8]
sub ecx, dword [esi - 4]
sub eax, 0x400
or eax, ecx
jge 0x401f76
push 0x400
lea ecx, [ebp - 0x1414]
call fcn.004024e0
mov esi, dword [ebp - 0x1414]
push 0x400
lea eax, [ebp - 0x410]
push esi
push eax
call fcn.004027f0
add esp, 0xc
test eax, eax
jne 0x401fa0
lea ecx, [ebp - 0x1414]
call fcn.00401970
mov esi, dword [ebp - 0x1414]
push dword [esi - 8]
push esi
call fcn.00518d73
add esp, 8
test eax, eax
js 0x402014
cmp eax, dword [esi - 8]
jg 0x402014
lea ebx, [esi - 0x10]
mov dword [esi - 0xc], eax
push ebx
mov byte [eax + esi], 0
call fcn.00401830
add eax, 0x10
or esi, 0xffffffff
mov dword [edi], eax
add esp, 4
mov byte [ebp - 4], 0
lea ecx, [ebx + 0xc]
mov eax, esi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x401fea
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp + 0xc]
add edx, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [edx + 0xc]
lock xadd dword [eax], esi
dec esi
test esi, esi
jg 0x401f28
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x401f28
push 0x80070057
call fcn.004017d0
int3
Function at 0x402260
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push str.GlobalTSLPROUserLaunchDataVista
push 0
push 6
or ebx, 0xffffffff
call dword [sym.imp.KERNEL32.dll_OpenFileMappingA]
mov esi, eax
mov dword [ebp - 4], esi
test esi, esi
je 0x402378
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40229e
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4022cb
push 0
push 0
push 0
push 6
push esi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
je 0x40236c
mov edi, eax
mov ecx, 0x204
lea esi, [ebp + 8]
push eax
rep movsd dword es:[edi], dword [esi]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov esi, dword [ebp - 4]
push str.GlobalTSLPROUserLaunchEvent
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov edi, eax
push 0x96
mov dword [ebp - 8], edi
call fcn.00402640
add esp, 4
push 0x2710
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x402334
push eax
push eax
push eax
push 6
push esi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
je 0x402327
mov esi, eax
mov ecx, 0x204
lea edi, [ebp + 8]
push eax
rep movsd dword es:[edi], dword [esi]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
cmp dword [ebp + 0x810], 0
jne 0x402341
xor ebx, ebx
jmp 0x402341
mov ecx, 3
cmp eax, 0x102
cmove ebx, ecx
test edi, edi
je 0x40235a
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push esi
call edi
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call edi
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x402910
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 0x402925
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x402964
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 0x402960
lea ebx, [ebx]
cmp esi, edx
jae 0x402964
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
dec ecx
jne 0x402950
cmp esi, edx
jb 0x402969
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 0x407c4a
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x58f690]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x592788]
push esi
push edi
mov edi, dword [ebp + 8]
test eax, eax
jne 0x407c96
push 0x543184
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x407cb3
push str.SetDefaultDllDirectories
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_EncodePointer]
mov dword [0x592788], eax
jmp 0x407c9f
push eax
call dword [sym.imp.KERNEL32.dll_DecodePointer]
mov esi, eax
test esi, esi
je 0x407cb3
push 0x800
push 0
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
jmp 0x407d20
mov esi, 0x105
push esi
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x407cce
xor eax, eax
jmp 0x407d20
lea eax, [ebp - 0x210]
push eax
call fcn.0051c5d7
cmp word [ebp + eax*2 - 0x212], 0x5c
pop ecx
je 0x407cff
push 0x5431bc
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.0051c56b
add esp, 0xc
test eax, eax
jne 0x407cca
push edi
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.0051c56b
add esp, 0xc
test eax, eax
jne 0x407cca
lea eax, [ebp - 0x210]
push eax
call fcn.0040cbcc
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00518be2
leave
ret

Function at 0x40850b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor edi, edi
mov esi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], esi
je 0x408550
call fcn.00415642
mov ebx, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x408550
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x40856c
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.00418cd7
mov ebx, eax
test edi, edi
je 0x40856a
test esi, esi
je 0x40856a
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x40d168
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x53a988
call fcn.0051ac8c
mov edi, ecx
xor esi, esi
cmp dword [edi + 0x6c], esi
jne 0x40d18e
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x40d1e2
call fcn.0040e6b7
push eax
lea ecx, [ebp - 0x10]
call fcn.00401040
mov ecx, dword [edi + 0x6c]
lea edx, [ebp - 0x10]
mov eax, dword [ecx]
push edx
mov dword [ebp - 4], esi
call dword [eax + 0x8c]
mov edi, dword [ebp + 8]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push edi
call fcn.0051c7be
push eax
call fcn.00401600
add esp, 0x14
test edi, edi
je 0x40d1d5
push edi
call fcn.0051c4e0
pop ecx
mov esi, eax
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.004025d0
mov eax, esi
call fcn.0051ac5a
ret 8
Function at 0x419403
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x58f690]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov dword [ebp - 0x20], eax
mov eax, dword [0x592a98]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], ebx
test eax, eax
jne 0x41945c
push 0x543184
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x419479
push str.GetThreadPreferredUILanguages
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_EncodePointer]
mov dword [0x592a98], eax
jmp 0x419465
push eax
call dword [sym.imp.KERNEL32.dll_DecodePointer]
mov esi, eax
test esi, esi
je 0x419479
mov eax, dword [ebp - 0x20]
push ebx
push edi
push eax
push dword [ebp + 8]
call esi
jmp 0x4195b6
mov eax, dword [ebp - 0x20]
and dword [eax], 0
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx ecx, ax
mov ebx, ecx
push 7
lea eax, [ebp - 0x14]
and ecx, 0xfc00
and ebx, 0x3ff
push eax
or ecx, ebx
push ecx
call fcn.00531632
lea eax, [ebp - 0x14]
push eax
call fcn.0051c5d7
mov esi, eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
push dword [eax]
push edi
call fcn.0051c7d9
push 7
lea eax, [ebp - 0x14]
push eax
push ebx
lea edi, [esi + 1]
call fcn.00531632
lea eax, [ebp - 0x14]
push eax
call fcn.0051c5d7
lea esi, [eax + 1]
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
mov eax, dword [ebp - 0x1c]
sub ecx, edi
push ecx
lea ecx, [eax + edi*2]
push ecx
call fcn.0051c7d9
add esp, 0x38
add edi, esi
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
movzx ecx, ax
mov ebx, ecx
push 7
lea eax, [ebp - 0x14]
and ecx, 0xfc00
and ebx, 0x3ff
push eax
or ecx, ebx
push ecx
call fcn.00531632
lea eax, [ebp - 0x14]
push eax
call fcn.0051c5d7
lea esi, [eax + 1]
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
mov eax, dword [ebp - 0x1c]
sub ecx, edi
push ecx
lea ecx, [eax + edi*2]
push ecx
call fcn.0051c7d9
push 7
lea eax, [ebp - 0x14]
push eax
push ebx
add edi, esi
call fcn.00531632
lea eax, [ebp - 0x14]
push eax
call fcn.0051c5d7
lea esi, [eax + 1]
lea eax, [ebp - 0x14]
mov ebx, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
sub ecx, edi
push ecx
lea ecx, [ebx + edi*2]
push ecx
call fcn.0051c7d9
push 7
lea eax, [ebp - 0x14]
push eax
push 0x800
add edi, esi
call fcn.00531632
add esp, 0x44
lea eax, [ebp - 0x14]
push eax
call fcn.0051c5d7
mov esi, eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
sub ecx, edi
push ecx
lea ecx, [ebx + edi*2]
push ecx
call fcn.0051c7d9
lea eax, [edi + esi]
xor ecx, ecx
mov word [ebx + eax*2 + 2], cx
xor eax, eax
add esp, 0x10
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00518be2
leave
ret
Function at 0x41f50b
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
mov ecx, dword [esi + 4]
push eax
push dword [ebp + 0xc]
call fcn.0040d0f7
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 0x41f547
call fcn.0041f726
mov dword [esi + 0xc], 1
jmp 0x41f54c
call fcn.0041f726
cmp dword [esi], 0
je 0x41f595
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov esi, dword [ebp + 0x10]
test eax, eax
jle 0x41f56f
lea ecx, [eax + 1]
push ecx
push eax
mov ecx, esi
call fcn.004085c1
jmp 0x41f580
push 0xff
mov ecx, esi
call fcn.00402550
push pe_nt_image_headers32
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextA]
push 0xffffffffffffffff
mov ecx, esi
call fcn.004025f0
jmp 0x41f5b9
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 0x41f5b9
push dword [esi]
push dword [ebp - 4]
call fcn.00416128
pop esi
leave
ret 0xc

Function at 0x41f67d
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push dword [ebp + 0xc]
mov ecx, esi
call fcn.0041f726
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x41f6c5
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.004085c1
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.004025f0
jmp 0x41f6d0
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.00416128
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x4200de
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
mov dword [ebx + 0x78], edi
test edi, 0xffff0000
jne 0x420100
cmp dword [ebx + 0x74], 0
jne 0x420100
movzx eax, di
mov dword [ebx + 0x74], eax
call fcn.00415642
mov esi, dword [eax + 0xc]
push 5
push edi
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00420366
push edi
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 0x43c1c8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
test esi, esi
jne 0x43c1e0
call fcn.00415642
mov esi, dword [eax + 0xc]
push 0x54ad70
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov ebx, eax
test ebx, ebx
je 0x43c236
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x43c235
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp + 0xc], eax
test eax, eax
jne 0x43c216
xor esi, esi
jmp 0x43c22c
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push dword [ebp + 0xc]
call fcn.0043c23c
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x4fda17
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
test byte [esi + 4], 1
push edi
mov dword [ebp - 4], ebx
je 0x4fda31
mov edi, dword [esi + 0xc]
jmp 0x4fda71
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x4fda4a
call fcn.004054af
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x4fda5f
call fcn.004054af
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x4fda71
call fcn.004054af
call fcn.00415642
cmp dword [eax + 0x3c], 0
je 0x4fda86
push edi
mov ecx, ebx
call fcn.004fd2ab
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.004fdc49
mov ebx, eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x7c]
test ecx, ecx
je 0x4fdaa9
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 4]
and dword [eax + 0x7c], 0
test ebx, ebx
je 0x4fdab2
mov edi, ebx
mov dword [eax + 0x7c], ebx
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x52d288
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x58f690]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.00525ffb
mov dword [ebp - 0x14], eax
cmp dword [0x596f94], edi
jne 0x52d379
push 0x800
push edi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x52d306
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x52d459
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x52d459
push str.MessageBoxW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x52d459
push eax
call ebx
push 0x56e430
push esi
mov dword [0x596f94], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x56e440
push esi
mov dword [0x596f98], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x596f9c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x596fa4], eax
test eax, eax
je 0x52d376
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x596fa0], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x52d39e
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x52d391
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x52d3b3
push 4
pop eax
jmp 0x52d45b
cmp dword [ebp - 0x14], edi
je 0x52d3b3
push dword [0x596f94]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x52d398
mov eax, dword [0x596fa0]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x52d411
cmp dword [0x596fa4], esi
je 0x52d411
push eax
call ebx
push dword [0x596fa4]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x52d411
test eax, eax
je 0x52d411
call ecx
test eax, eax
je 0x52d406
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x52d406
test byte [ebp - 8], 1
jne 0x52d411
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x52d441
mov eax, dword [0x596f98]
cmp eax, esi
je 0x52d43e
push eax
call ebx
test eax, eax
je 0x52d43e
call eax
mov edi, eax
test edi, edi
je 0x52d43e
mov eax, dword [0x596f9c]
cmp eax, esi
je 0x52d43e
push eax
call ebx
test eax, eax
je 0x52d43e
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x596f94]
call ebx
test eax, eax
je 0x52d459
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x52d45b
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00518be2
leave
ret
Function at 0x4169b0
Capabilities:
Get system information on windows
Read file on windows
Set file attributes

Disassembly:
sub esp, 0x41c
mov eax, dword [0x427004]
xor eax, esp
mov dword [esp + 0x418], eax
mov eax, dword [0x42a7cc]
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov ebp, 0x1519a5
mov ebx, 0x8e46a7b8
mov dword [0x42a434], ebx
cmp eax, 0x3dc
jne 0x416a02
push 0
push 0x424a34
call esi
push 0
call edi
mov eax, dword [0x42a7cc]
dec ebp
jne 0x4169e3
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
mov ebx, dword [sym.imp.KERNEL32.dll_CancelIo]
xor esi, esi
cmp eax, 0x997
jne 0x416a4b
xor eax, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x28]
push ecx
push ebp
lea edx, [esp + 0x34]
push edx
push ebp
mov dword [esp + 0x24], ebp
call edi
push ebp
call ebx
mov eax, dword [0x42a7cc]
cmp esi, 0x845f8b
jne 0x416a62
mov eax, dword [0x428940]
add eax, 0xa231
mov dword [0x42a7cc], eax
cmp eax, 0x141
jne 0x416a7d
mov dword [0x42a008], 0xec58acac
mov dword [0x42a00c], 0xffffffff
inc esi
cmp esi, 0x12cca12
jl 0x416a13
call fcn.004165f0
mov ecx, dword [esp + 0x428]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
xor eax, eax
call fcn.004010fc
add esp, 0x41c
ret 0x10

Function at 0x8e1228
Capabilities:
Encode data using xor

Disassembly:
pushal
call 0x8e122e
pop ebp
sub ebp, 6
sub ebp, 0x4e1228
jmp 0x8e128c
jmp 0x8e1295
mov eax, 0x4e1228
add eax, ebp
add eax, 0x93
mov ecx, 0x619
mov edx, 0xd60af6e9
xor byte [eax], dl
inc eax
dec ecx
jne 0x8e12ac
jmp 0x8e12bf
sub dword [ecx - 0x1606167f], 0xffffffe9
sub ecx, 0xdae9c525
sub dword [ecx - 0x472a83ea], edi
lodsd eax, dword [esi]
jmp 0x62b27591