joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b5b10
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x124
mov eax, dword [0x60bd28]
xor eax, esp
mov dword [esp + 0x120], eax
push ebx
push esi
push edi
mov ebx, ecx
xor edi, edi
xor eax, eax
cmp dword [ebx + 0x100], edi
je 0x4b5ce7
push 0xf5
lea esi, [ebx + 8]
push edi
push esi
call fcn.0053fd60
mov eax, dword [ebx + 0x100]
add esp, 0xc
lea edx, [esp + 0x14]
push edx
lea edx, [esp + 0x1c]
push edx
mov dword [esp + 0x20], edi
mov dword [esp + 0x1c], edi
mov ecx, dword [eax]
push esi
push eax
mov eax, dword [ecx + 0xc]
call eax
test eax, eax
jl 0x4b5ce5
mov ecx, dword [esp + 0x14]
add ecx, 1
push ecx
call fcn.00506f67
mov edx, dword [esp + 0x18]
mov esi, eax
mov eax, dword [esp + 0x1c]
push edx
push eax
push esi
mov dword [esp + 0x30], esi
call fcn.0053fde0
mov ecx, dword [esp + 0x24]
mov byte [esi + ecx], 0
mov edx, dword [esp + 0x28]
add esp, 0x10
push edx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
lea eax, [esp + 0x1c]
push eax
push esi
mov ecx, ebx
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
call fcn.004b5710
mov edi, eax
test edi, edi
je 0x4b5cb8
xor edi, edi
call fcn.00543983
mov byte [edi + ebx + 0x18], al
add edi, 1
cmp edi, 0x10
jb 0x4b5bd4
xor edi, edi
call fcn.00543983
mov byte [edi + ebx + 0x28], al
add edi, 1
cmp edi, 4
jb 0x4b5be7
xor edi, edi
lea ebx, [ebx]
call fcn.00543983
mov byte [edi + ebx + 0x2c], al
add edi, 1
cmp edi, 4
jb 0x4b5c00
push 0x100
lea ecx, [esp + 0x2c]
push 0
push ecx
call fcn.0053fd60
mov ecx, 0x3d
lea esi, [ebx + 8]
lea edi, [esp + 0x34]
rep movsd dword es:[edi], dword [esi]
add esp, 0xc
movsb byte es:[edi], byte [esi]
xor eax, eax
lea ecx, [esp + 0x11c]
lea ecx, [ecx]
movzx edx, byte [esp + eax + 0x28]
mov byte [esp + 0x13], dl
movzx edx, byte [ecx]
mov byte [esp + eax + 0x28], dl
movzx edx, byte [esp + 0x13]
mov byte [ecx], dl
add eax, 1
sub ecx, 1
cmp eax, 0x7a
jb 0x4b5c40
mov edx, dword [esp + 0x1c]
push 0x100
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x30]
push ecx
push 0
push 1
push 0
push edx
mov dword [esp + 0x40], 0xf5
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
mov edi, eax
test edi, edi
jne 0x4b5c98
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4b5cb4
mov ebx, dword [ebx + 0x100]
mov eax, dword [ebx]
mov edx, dword [eax + 0x10]
lea ecx, [esp + 0x28]
push ecx
push ebx
call edx
xor ecx, ecx
test eax, eax
setge cl
mov edi, ecx
mov esi, dword [esp + 0x20]
mov edx, dword [esp + 0x14]
push edx
push 0
push esi
call fcn.0053fd60
push esi
call fcn.00506f6c
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x120]
xor ecx, esp
call fcn.0053fab2
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, dword [esp + 0x12c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0053fab2
mov esp, ebp
pop ebp
ret
Function at 0x4b5d00
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
push 0xffffffffffffffff
push 0x587a58
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x60bd28]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x10], esi
lea ebx, [esi + 0x100]
lea edi, [esi + 0x104]
mov dword [esp + 0x1c], 0
mov dword [esi], vtable.CCOPPHandler.0
mov dword [esi + 4], 0
mov dword [ebx], 0
mov dword [edi], 0
mov dword [esi + 0x108], 0
mov dword [esi + 0x10c], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.00543976
add esp, 4
push 0xf0000048
push 0x18
push 0
push 0
push edi
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
push 0xf5
lea eax, [esi + 8]
push 0
push eax
call fcn.0053fd60
mov eax, dword [esp + 0x30]
add esp, 0xc
test eax, eax
je 0x4b5dc2
mov ecx, dword [eax]
mov edx, dword [ecx]
push ebx
push 0x5ad248
push eax
call edx
test eax, eax
jl 0x4b5dc2
mov ecx, esi
call fcn.004b5b10
mov dword [esi + 4], eax
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret 4

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

Disassembly:
push 0xffffffffffffffff
push 0x587d7e
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x60bd28]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x14], esi
or eax, 0xffffffff
xor ebx, ebx
mov dword [esi + 8], eax
mov dword [esi + 4], eax
mov dword [esi + 0xc], ebx
lea ecx, [esi + 0x14]
mov dword [esi], vtable.TINYXMLSEC::TiXmlAttribute.0
mov eax, 0xf
mov dword [ecx + 0x18], eax
mov dword [ecx + 0x14], ebx
mov dword [esp + 0x20], ebx
mov byte [ecx + 4], bl
lea edi, [esi + 0x30]
mov dword [edi + 0x18], eax
mov dword [edi + 0x14], ebx
mov byte [edi + 4], bl
mov ebp, dword [esp + 0x28]
mov eax, ebp
lea edx, [eax + 1]
mov byte [esp + 0x20], 2
mov dword [esp + 0x28], edx
mov dl, byte [eax]
add eax, 1
cmp dl, bl
jne 0x4b96e2
sub eax, dword [esp + 0x28]
push eax
push ebp
call fcn.0040c2f0
mov edx, dword [esp + 0x2c]
mov eax, edx
lea ebp, [eax + 1]
nop
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x4b9700
sub eax, ebp
push eax
push edx
mov ecx, edi
call fcn.0040c2f0
mov dword [esi + 0x10], ebx
mov dword [esi + 0x50], ebx
mov dword [esi + 0x4c], ebx
mov eax, esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 8

Function at 0x4bb870
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 8]
xor dl, dl
test esi, esi
mov eax, 0xf
je 0x4bb8a9
push ebx
mov cl, byte [eax + esi]
mov bl, cl
shr cl, 7
add bl, bl
or bl, dl
mov byte [eax + esi], bl
mov dl, cl
mov ecx, dword [0x6058e4]
movzx ecx, byte [ecx + eax]
xor byte [eax + esi], cl
mov ecx, eax
sub eax, 1
test ecx, ecx
ja 0x4bb881
pop ebx
pop esi
ret
Function at 0x4c0950
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5889b8
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x60bd28]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi]
mov edx, dword [eax + 0x1c]
call edx
mov edi, eax
mov dword [esp + 0x10], edi
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
mov eax, dword [esi]
mov eax, dword [eax + 0x20]
push ecx
push edx
push edi
mov ecx, esi
mov dword [esp + 0x28], 0
call eax
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
mov edx, dword [edi]
mov edx, dword [edx + 0xc]
push eax
push ecx
mov ecx, edi
call edx
mov eax, dword [esi]
mov edx, dword [eax + 0x28]
push edi
mov ecx, esi
call edx
mov bl, al
mov eax, dword [edi]
mov edx, dword [eax]
push 1
mov ecx, edi
mov dword [esp + 0x20], 0xffffffff
call edx
mov al, bl
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret 0x10

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

Disassembly:
push 0xffffffffffffffff
push 0x588f98
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push esi
mov eax, dword [0x60bd28]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi]
mov edx, dword [eax + 0xa8]
call edx
test eax, eax
je 0x4c2bb6
mov eax, dword [esi]
mov edx, dword [eax + 0xa8]
mov ecx, esi
call edx
mov ecx, dword [esp + 0x30]
mov edx, dword [eax]
mov edx, dword [edx + 0x44]
push ecx
mov ecx, dword [esp + 0x30]
push ecx
mov ecx, eax
call edx
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x20
ret 8
push 0
lea ecx, [esp + 0xc]
call fcn.004c1a30
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 8], 0x5aedc0
mov dword [esp + 0xc], 0x5aedb4
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], 0
mov edx, dword [esi]
mov edx, dword [edx + 0x7c]
push 1
mov dword [esp + 0x30], eax
push 0x605b50
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x14]
push ecx
mov ecx, esi
mov dword [esp + 0x34], 0
call edx
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x20
ret 8

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

Disassembly:
push 0xffffffffffffffff
push 0x589b18
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x60bd28]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0xc], edi
lea esi, [edi + 0xc]
mov ecx, esi
mov dword [esp + 0x18], 0
call fcn.004c8c20
mov dword [esi + 0x34], vtable.CryptoPP::NameValuePairs.0
mov dword [esi + 0x30], vtable.CryptoPP::ASN1Object.0
mov dword [edi], vtable.CryptoPP::Clonable.0
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret
Function at 0x4cbae0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x589d4f
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x60bd28]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
lea ecx, [esi + 0x48]
mov dword [esp + 0x18], 5
call fcn.004c84d0
lea ecx, [esi + 0x34]
mov byte [esp + 0x18], 4
call fcn.004c84d0
mov eax, dword [esi + 0x2c]
mov edi, dword [esi + 0x30]
push eax
push 0
push edi
call fcn.0053fd60
push edi
call fcn.00506f6c
mov ecx, dword [esi + 0x20]
mov edi, dword [esi + 0x24]
push ecx
push 0
push edi
call fcn.0053fd60
push edi
call fcn.00506f6c
mov edx, dword [esi + 0x14]
mov edi, dword [esi + 0x18]
push edx
push 0
push edi
call fcn.0053fd60
push edi
call fcn.00506f6c
mov eax, dword [esi + 8]
mov edi, dword [esi + 0xc]
push eax
push 0
push edi
call fcn.0053fd60
push edi
call fcn.00506f6c
add esp, 0x40
mov dword [esi], vtable.CryptoPP::Clonable.0
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret

Function at 0x4ccb40
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
push esi
je 0x4ccb8d
mov esi, dword [esp + 0xc]
test esi, esi
je 0x4ccb8d
push edi
lea ecx, [esi + 2]
sub esi, eax
mov edi, 4
lea esp, [esp]
movzx edx, byte [esi + eax]
xor byte [eax], dl
movzx edx, byte [ecx - 1]
xor byte [eax + 1], dl
movzx edx, byte [ecx]
xor byte [eax + 2], dl
movzx edx, byte [ecx + 1]
xor byte [eax + 3], dl
add eax, 4
add ecx, 4
sub edi, 1
jne 0x4ccb60
pop edi
mov eax, 1
pop esi
ret
xor eax, eax
pop esi
ret
Function at 0x4d6280
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
mov edx, dword [esp + 0xc]
push esi
mov esi, dword [esp + 0xc]
mov ecx, eax
or ecx, esi
or ecx, edx
test cl, 3
jne 0x4d62b0
shr edx, 2
je 0x4d62cd
mov ecx, esi
sub ecx, eax
mov esi, dword [ecx + eax]
xor dword [eax], esi
add eax, 4
sub edx, 1
jne 0x4d62a1
pop esi
ret
test edx, edx
jbe 0x4d62cd
mov ecx, esi
sub ecx, eax
mov esi, edx
lea ebx, [ebx]
mov dl, byte [eax + ecx]
xor byte [eax], dl
add eax, 1
sub esi, 1
jne 0x4d62c0
pop esi
ret

Function at 0x4df2e0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x58a8b8
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x60bd28]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
mov edi, dword [esp + 0x20]
push edi
call fcn.004dddf0
lea eax, [edi + 0x14]
push eax
lea ecx, [esi + 0x14]
mov dword [esp + 0x1c], 0
call fcn.004dddf0
mov ecx, dword [edi + 0x28]
mov dword [esi + 0x28], ecx
mov edx, dword [edi + 0x2c]
mov dword [esi + 0x2c], edx
mov eax, dword [edi + 0x30]
mov dword [esi + 0x30], eax
movzx ecx, byte [edi + 0x34]
mov byte [esi + 0x34], cl
mov dl, byte [edi + 0x35]
mov byte [esi + 0x35], dl
mov al, byte [edi + 0x36]
mov byte [esi + 0x36], al
movzx ecx, byte [edi + 0x37]
mov byte [esi + 0x37], cl
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 4

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

Disassembly:
push 0xffffffffffffffff
push 0x58dab8
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x60bd28]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0xc], edi
lea esi, [edi + 0xc]
mov ecx, esi
mov dword [esp + 0x18], 0
call fcn.004c8c20
mov dword [esi + 0x34], vtable.CryptoPP::NameValuePairs.0
mov dword [esi + 0x30], vtable.CryptoPP::ASN1Object.0
mov dword [edi], vtable.CryptoPP::Clonable.0
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret

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

Disassembly:
push 0xffffffffffffffff
push 0x58db18
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x60bd28]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0xc], edi
lea esi, [edi + 0xc]
mov ecx, esi
mov dword [esp + 0x18], 0
call fcn.004c8c20
mov dword [esi + 0x34], vtable.CryptoPP::NameValuePairs.0
mov dword [esi + 0x30], vtable.CryptoPP::ASN1Object.0
mov dword [edi], vtable.CryptoPP::Clonable.0
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret

Function at 0x4f70a0
Capabilities:
Hash data using sha1

Disassembly:
mov eax, dword [ecx + 0x18]
mov dword [eax], 0x67452301
mov edx, dword [ecx + 0x18]
mov dword [edx + 4], 0xefcdab89
mov eax, dword [ecx + 0x18]
mov dword [eax + 8], 0x98badcfe
mov edx, dword [ecx + 0x18]
mov dword [edx + 0xc], 0x10325476
mov eax, dword [ecx + 0x18]
mov dword [eax + 0x10], 0xc3d2e1f0
ret
Function at 0x5100ca
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x510103
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00402170
push eax
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004268e0
pop esi
ret 4
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
pop esi
jmp dword [eax + 0x8c]

Function at 0x51200a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x51204d
call fcn.005153ed
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x51204d
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x512068
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.00511bc1
test ebx, ebx
mov esi, eax
je 0x512066
test edi, edi
je 0x512066
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x522872
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x24
mov eax, 0x591eda
call fcn.00544bd6
mov esi, ecx
mov dword [ebp - 0x20], esi
mov eax, dword [esi + 0x60]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0x5c]
mov dword [ebp - 0x18], eax
call fcn.005153ed
mov edi, dword [eax + 0xc]
xor ebx, ebx
cmp dword [esi + 0x58], ebx
je 0x5228bd
call fcn.005153ed
mov edi, dword [eax + 0xc]
push 5
push dword [esi + 0x58]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], ebx
je 0x5228ce
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], ebx
jne 0x5228db
or eax, 0xffffffff
jmp 0x522a37
mov ecx, esi
call fcn.005223be
mov dword [ebp - 0x14], eax
call fcn.0050eb1a
and dword [ebp - 0x28], ebx
cmp dword [ebp - 0x14], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], ebx
je 0x522959
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp dword [ebp - 0x14], eax
je 0x522959
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x522959
push 0
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x2c], 1
call fcn.0048df9f
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0x24], ebx
je 0x522959
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x120]
test eax, eax
je 0x522959
mov ecx, ebx
call fcn.005123c5
test eax, eax
je 0x522959
push 0
mov ecx, ebx
call fcn.005123e0
mov dword [ebp - 0x28], 1
and dword [ebp - 4], 0
push esi
call fcn.00510cf5
push dword [ebp - 0x14]
call fcn.0050ea72
push edi
push eax
push dword [ebp - 0x1c]
mov ecx, esi
call fcn.0052267a
xor edi, edi
cmp eax, edi
je 0x5229b6
test byte [esi + 0x3c], 0x10
je 0x5229a0
push 4
pop edi
mov ecx, esi
call fcn.0051225f
test ax, 0x100
je 0x522996
push 5
pop edi
push edi
mov ecx, esi
call fcn.0050e5fd
xor edi, edi
cmp dword [esi + 0x20], edi
je 0x5229b6
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.005126a9
or dword [ebp - 4], 0xffffffff
jmp 0x5229e1
cmp dword [ebp - 0x28], edi
je 0x5229ef
push 1
mov ecx, ebx
call fcn.005123e0
cmp dword [ebp - 0x2c], edi
je 0x5229ff
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x522a18
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x20]
jne 0x522a18
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x60]
mov ecx, esi
call fcn.005223f8
cmp dword [esi + 0x58], edi
je 0x522a34
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [esi + 0x44]
call fcn.00544c7b
ret
Function at 0x5242ba
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
je 0x524300
call fcn.005153ed
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 0x524300
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 4], eax
je 0x524343
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
je 0x52432c
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 0x52432c
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x524340
mov ecx, dword [esi + 0x4c]
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 0x5267c9
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x60bd28]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0x800
push ebx
push esi
mov esi, ecx
mov ebx, edx
lea eax, [ebp - 0x11c]
jne 0x526809
push 0x5bb368
push 4
push eax
call fcn.00545032
push eax
call fcn.004015a0
add esp, 0x10
jmp 0x52681b
push 4
push eax
push 3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x526889
push edi
call fcn.0054b6b3
mov edi, dword [eax]
call fcn.0054b6b3
and dword [eax], 0
lea eax, [ebp - 0x11c]
push eax
push ebx
push esi
push 0x111
mov esi, 0x112
lea eax, [ebp - 0x118]
push esi
push eax
call fcn.005404ee
add esp, 0x18
mov ebx, eax
call fcn.0054b6b3
cmp dword [eax], 0
je 0x526869
call fcn.0054b6b3
push dword [eax]
call fcn.00486580
pop ecx
jmp 0x526870
call fcn.0054b6b3
mov dword [eax], edi
cmp ebx, 0xffffffff
pop edi
je 0x526889
cmp ebx, esi
jae 0x526889
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
jmp 0x52688b
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0053fab2
leave
ret
Function at 0x5293d8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
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 0x5293ee
mov edi, dword [esi + 0xc]
jmp 0x52942e
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x529407
call fcn.005200bc
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x52941c
call fcn.005200bc
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x52942e
call fcn.005200bc
call fcn.005153ed
cmp dword [eax + 0x3c], 0
je 0x529443
push edi
mov ecx, ebx
call fcn.005280e9
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.005292f2
mov dword [ebp + 8], eax
mov eax, dword [ebx + 0x5c]
test eax, eax
je 0x529461
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
and dword [ebx + 0x5c], 0
mov eax, dword [ebp + 8]
test eax, eax
je 0x52946d
mov edi, eax
mov dword [ebx + 0x5c], eax
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x52bab5
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ecx
push esi
mov dword [esp + 4], ecx
call fcn.005153ed
mov esi, dword [eax + 0xc]
test esi, esi
jne 0x52bacb
xor eax, eax
jmp 0x52bb15
push ebx
push 5
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov ebx, eax
test ebx, ebx
je 0x52bb14
push ebp
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
push ebx
push esi
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x10]
push eax
push ebp
call fcn.0052ba57
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop ebp
pop ebx
pop esi
pop ecx
ret 4

Function at 0x53fab2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x60bd28]
jne 0x53fabc
repz ret
jmp fcn.0054eedc