joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404b72
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x80000000
jae 0x404c21
mov dword [ebp - 8], 1
push 0x94
call fcn.0051b897
pop ecx
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x404c1c
push 0x94
push 0
push dword [ebp - 0xc]
call fcn.0051ce30
add esp, 0xc
mov eax, dword [ebp - 0xc]
mov dword [eax], 0x94
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [ebp - 0xc]
cmp dword [eax + 4], 4
jne 0x404bdf
mov dword [ebp - 8], 5
jmp 0x404c13
mov eax, dword [ebp - 0xc]
cmp dword [eax + 4], 5
jne 0x404bfa
mov eax, dword [ebp - 0xc]
cmp dword [eax + 8], 0
jne 0x404bfa
mov dword [ebp - 8], 6
jmp 0x404c13
mov eax, dword [ebp - 0xc]
cmp dword [eax + 4], 5
jne 0x404c13
mov eax, dword [ebp - 0xc]
cmp dword [eax + 8], 1
jne 0x404c13
mov dword [ebp - 8], 7
push dword [ebp - 0xc]
call fcn.0051b92b
pop ecx
jmp 0x404cbb
mov eax, dword [ebp - 4]
and eax, 0xffff
movzx eax, ax
and eax, 0xff
movzx eax, al
cmp eax, 4
jge 0x404c3f
and dword [ebp - 8], 0
jmp 0x404cbb
mov dword [ebp - 8], 2
push 0x94
call fcn.0051b897
pop ecx
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x404cbb
push 0x94
push 0
push dword [ebp - 0xc]
call fcn.0051ce30
add esp, 0xc
mov eax, dword [ebp - 0xc]
mov dword [eax], 0x94
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [ebp - 0xc]
cmp dword [eax + 4], 4
jne 0x404c99
mov eax, dword [ebp - 0xc]
cmp dword [eax + 8], 0xa
jne 0x404c99
mov dword [ebp - 8], 3
jmp 0x404cb2
mov eax, dword [ebp - 0xc]
cmp dword [eax + 4], 4
jne 0x404cb2
mov eax, dword [ebp - 0xc]
cmp dword [eax + 8], 0x5a
jne 0x404cb2
mov dword [ebp - 8], 4
push dword [ebp - 0xc]
call fcn.0051b92b
pop ecx
mov eax, dword [ebp - 8]
leave
ret
Function at 0x40d2ed
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
call fcn.0042e2bf
mov eax, dword [eax + 0xc]
mov dword [ebp - 8], eax
push 2
movzx eax, word [ebp + 8]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x40d32e
and dword [ebp - 8], 0
push 2
movzx eax, word [ebp + 8]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x40d338
xor eax, eax
jmp 0x40d38e
push dword [ebp - 0x14]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x40d351
xor eax, eax
jmp 0x40d38e
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x40d367
xor eax, eax
jmp 0x40d38e
push dword [ebp - 0xc]
call fcn.0040d2a0
pop ecx
mov word [ebp - 4], ax
movzx eax, word [ebp - 4]
cmp eax, 0x10
je 0x40d381
xor eax, eax
jmp 0x40d38e
push 0
push dword [ebp - 0x14]
push dword [ebp - 8]
call fcn.0042b851
leave
ret

Function at 0x40d3b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x58ee50]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
cmp dword [0x5e0858], 0
je 0x40d3d8
mov eax, dword [0x5e0854]
jmp 0x40d4de
mov dword [0x5e0858], 1
lea eax, [ebp - 0x11c]
push eax
push 0x20019
push 0
push str.SoftwareMicrosoftPlus_ThemesCurrent
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x124], eax
cmp dword [ebp - 0x124], 0
jne 0x40d4d9
mov dword [ebp - 0x128], 0x104
mov dword [ebp - 0x120], 1
lea eax, [ebp - 0x128]
push eax
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x120]
push eax
push 0
push 0
push dword [ebp - 0x11c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x124], eax
cmp dword [ebp - 0x124], 0
jne 0x40d4cd
push 5
pop ecx
mov esi, str.Windows_Classic.theme
lea edi, [ebp - 0x140]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [ebp - 0x144], eax
lea eax, [ebp - 0x140]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp dword [ebp - 0x144], eax
jl 0x40d4cd
lea eax, [ebp - 0x140]
push eax
lea eax, [ebp - 0x140]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x144]
sub ecx, eax
lea eax, [ebp + ecx - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x40d4cd
mov dword [0x5e0854], 1
push dword [ebp - 0x11c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [0x5e0854]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0051b26c
leave
ret
Function at 0x40f1c8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x40f1e7
xor eax, eax
jmp 0x40f262
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40f1fd
xor eax, eax
jmp 0x40f262
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0xc]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x10]
and eax, 0xf
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jbe 0x40f245
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
jae 0x40f245
mov eax, dword [ebp - 4]
movzx eax, word [eax]
mov ecx, dword [ebp - 4]
lea eax, [ecx + eax*2 + 2]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x10]
dec eax
mov dword [ebp - 0x10], eax
jmp 0x40f21e
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
jb 0x40f251
xor eax, eax
jmp 0x40f262
mov eax, dword [ebp - 4]
movzx eax, word [eax]
test eax, eax
jne 0x40f25f
xor eax, eax
jmp 0x40f262
mov eax, dword [ebp - 4]
leave
ret

Function at 0x411f2a
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 0x411f72
call fcn.0042e2bf
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x411f72
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x411fb5
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 0x411f9e
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 0x411f9e
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x68], 0
je 0x411fb2
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 0x419fc1
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 0x41a008
call fcn.0042e2bf
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x41a008
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x41a024
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.00419ac6
mov esi, eax
test edi, edi
je 0x41a022
test ebx, ebx
je 0x41a022
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x41b0ba
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x532a84
call fcn.0051c683
mov esi, ecx
cmp dword [esi + 0x6c], 0
jne 0x41b0df
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x41b131
call fcn.00422712
push eax
lea ecx, [ebp - 0x10]
call fcn.00403cbd
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.0051d200
push eax
call fcn.0040ee1c
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.00403d0e
mov eax, esi
call fcn.0051c75b
ret 8

Function at 0x41be67
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.0042e2bf
mov esi, dword [eax + 0xc]
push 5
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x41bea0
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.0041baa9
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 0x41befe
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 0x41bf22
cmp dword [edi + 0x74], 0
jne 0x41bf22
movzx eax, bx
mov dword [edi + 0x74], eax
call fcn.0042e2bf
mov esi, dword [eax + 0xc]
push 5
push ebx
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 ebx, eax
push ebx
mov ecx, edi
call fcn.0041bebf
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 0x423c18
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.004238d7
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x423c62
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.00417f84
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.00412c5a
jmp 0x423c6d
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.00431381
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x423c73
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.0041a982
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 0x423cb0
call fcn.004238d7
mov dword [esi + 0xc], 1
jmp 0x423cb5
call fcn.004238d7
cmp dword [esi], 0
je 0x423cfe
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
test eax, eax
jle 0x423cd6
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.00417f84
jmp 0x423ce8
mov ecx, dword [ebp + 0x10]
push 0xff
call fcn.00403a7c
push 0x100
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.00412c5a
jmp 0x423d22
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 0x423d22
push dword [esi]
push dword [ebp + 8]
call fcn.00431381
pop esi
pop ebp
ret 0xc

Function at 0x42c795
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.0042e2bf
mov esi, dword [eax + 0xc]
push 0xf1
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
jne 0x42c7c2
xor eax, eax
jmp 0x42c869
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 8], eax
test eax, eax
je 0x42c7bb
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x42c7bb
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.0040fffe
pop ecx
mov edi, eax
xor ecx, ecx
xor eax, eax
cmp cx, word [esi + 6]
jae 0x42c81a
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 0x42c808
movzx eax, word [esi + 6]
mov ecx, dword [ebp - 4]
push eax
push edi
call fcn.0042b4a1
push edi
mov ebx, eax
call fcn.0041002d
pop ecx
test ebx, ebx
je 0x42c85c
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.0042bb0a
push dword [ebp + 8]
mov ecx, dword [ebp - 4]
call fcn.0042bbbe
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 0x441969
Capabilities:
Move file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp dword [esi], 0
je 0x4419a7
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
je 0x4419b5
push str.MoveFileTransactedA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4419b5
push dword [esi]
push 2
push 0
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x4419b7
cmp dword [esi + 4], 0
je 0x4419b5
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_MoveFileA]
xor eax, eax
pop esi
pop ebp
ret 8

Function at 0x44affe
Capabilities:
Query or enumerate registry value

Disassembly:
push 0
mov eax, 0x535758
call fcn.0051c683
push dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
call fcn.0040f07a
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0x80000000
jne 0x44b060
call fcn.0042db82
cmp eax, 1
jne 0x44b060
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push str.SoftwareClasses_
push eax
call fcn.00413698
add esp, 0xc
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.0040fcbb
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.00403d0e
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_RegQueryValueA]
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00403d0e
mov eax, esi
call fcn.0051c75b
ret 0x10

Function at 0x44b089
Capabilities:
Set registry value

Disassembly:
push 0
mov eax, 0x535758
call fcn.0051c683
push dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
call fcn.0040f07a
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0x80000000
jne 0x44b0eb
call fcn.0042db82
cmp eax, 1
jne 0x44b0eb
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push str.SoftwareClasses_
push eax
call fcn.00413698
add esp, 0xc
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.0040fcbb
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.00403d0e
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_RegSetValueA]
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00403d0e
mov eax, esi
call fcn.0051c75b
ret 0x14

Function at 0x475001
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.004f7044
call fcn.0042dcf0
cmp dword [eax + 0x14], 0
jne 0x47501e
mov ecx, esi
pop esi
jmp fcn.00474b06
pop esi
ret

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

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.0049c995
call fcn.0042dcf0
cmp dword [eax + 0x14], 0
jne 0x4786c4
mov ecx, esi
pop esi
jmp fcn.0047807a
pop esi
ret
Function at 0x4ae56b
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 0x4ae585
call fcn.0042e2bf
mov esi, dword [eax + 0xc]
push dword [0x5de19c]
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x4ae5a3
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 0x4ae59b
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x4ae5d0
xor esi, esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop ebx
jmp 0x4ae59d
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push ebx
call fcn.004ae499
mov esi, eax
jmp 0x4ae5c2

Function at 0x500316
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 0x50032e
mov edi, dword [esi + 0xc]
jmp 0x50036e
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x500347
call fcn.00426192
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x50035c
call fcn.00426192
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x50036e
call fcn.00426192
call fcn.0042e2bf
cmp dword [eax + 0x3c], 0
je 0x500383
push edi
mov ecx, ebx
call fcn.004ff14a
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.00500230
mov dword [ebp + 8], eax
mov eax, dword [ebx + 0x7c]
test eax, eax
je 0x5003a1
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
and dword [ebx + 0x7c], 0
mov eax, dword [ebp + 8]
test eax, eax
je 0x5003ad
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 0x51b26c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x58ee50]
jne 0x51b276
repz ret
jmp fcn.00522054
Function at 0x52e2c4
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x58ee50]
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.0052517e
and dword [ebp - 0x14], 0
cmp dword [0x5e069c], 0
mov dword [ebp - 0x18], eax
jne 0x52e377
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x52e41f
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x52e41f
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x56abd4
push ebx
mov dword [0x5e069c], eax
call edi
push eax
call esi
push 0x56abc0
push ebx
mov dword [0x5e06a0], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x5e06a4], eax
call edi
push eax
call esi
mov dword [0x5e06ac], eax
test eax, eax
je 0x52e377
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x5e06a8], eax
mov eax, dword [0x5e06a8]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x52e3d0
cmp dword [0x5e06ac], ecx
je 0x52e3d0
push eax
call esi
push dword [0x5e06ac]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x52e3d0
test ebx, ebx
je 0x52e3d0
call edi
test eax, eax
je 0x52e3c7
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x52e3c7
test byte [ebp - 8], 1
jne 0x52e3d0
or dword [ebp + 0x10], 0x200000
jmp 0x52e403
mov eax, dword [0x5e06a0]
cmp eax, dword [ebp - 0x18]
je 0x52e403
push eax
call esi
test eax, eax
je 0x52e403
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x52e403
mov eax, dword [0x5e06a4]
cmp eax, dword [ebp - 0x18]
je 0x52e403
push eax
call esi
test eax, eax
je 0x52e403
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x5e069c]
call esi
test eax, eax
je 0x52e41f
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x52e421
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0051b26c
leave
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x433002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x40de38
nop
mov ecx, 0x69b237d2
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x433024
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x4304d8
nop
mov ecx, 0x343819e8
test eax, eax
nop
nop
nop
nop
nop
je 0x433084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
jne 0x43306c
nop
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x430002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
call 0x43000c
nop
nop
nop
nop
nop
pop eax
add eax, 0x403d6f
nop
nop
sub eax, 0x403d15
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x430030
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp loc.00401219