joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45fa15
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 0x20], ecx
mov eax, dword [ebp - 0x20]
movzx eax, byte [eax + 0xca]
test eax, eax
je 0x45faaa
mov ecx, dword [ebp - 0x20]
add ecx, 0xcc
call fcn.0041aff9
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x20]
add ecx, 0xcc
call fcn.004703b5
mov word [ebp - 0xc], ax
and dword [ebp - 0x10], 0
push 0
lea eax, [ebp - 0x10]
push eax
push 2
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0x57cf60
push dword [ebp - 0x10]
mov ecx, dword [ebp + 0xc]
call fcn.0043acab
push 0
lea eax, [ebp - 0x10]
push eax
movzx eax, word [ebp - 0xc]
shl eax, 1
push eax
push dword [ebp - 0x14]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0x57cf60
push dword [ebp - 0x10]
mov ecx, dword [ebp + 0xc]
call fcn.0043acab
push dword [ebp - 0x14]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov ecx, dword [ebp - 0x20]
add ecx, 0xa0
call fcn.00419db6
mov dword [ebp - 4], eax
and dword [ebp - 8], 0
jmp 0x45fac8
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 4]
jge 0x45fafb
push dword [ebp - 8]
mov ecx, dword [ebp - 0x20]
add ecx, 0xa0
call fcn.00431d82
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x10]
add eax, 4
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
mov ecx, dword [ebp - 0x18]
call fcn.0045fa15
jmp 0x45fac1
mov ecx, dword [ebp - 0x20]
add ecx, 0xb4
call fcn.00419db6
mov dword [ebp - 4], eax
and dword [ebp - 8], 0
jmp 0x45fb19
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 4]
jge 0x45fb4c
push dword [ebp - 8]
mov ecx, dword [ebp - 0x20]
add ecx, 0xb4
call fcn.00431d82
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0x10]
add eax, 4
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
mov ecx, dword [ebp - 0x1c]
call fcn.0045fa15
jmp 0x45fb12
mov al, 1
leave
ret 0xc
Function at 0x45fb52
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
mov eax, 0x4ba428
call fcn.0049e324
mov eax, 0x109c
call fcn.0049e0d0
mov eax, dword [0x57aa54]
xor eax, dword [ebp + 4]
mov dword [ebp - 0x84], eax
mov dword [ebp - 0x10a8], ecx
lea ecx, [ebp - 0x7c]
call fcn.00418897
and dword [ebp - 4], 0
mov ecx, dword [ebp - 0x10a8]
add ecx, 0x70
call fcn.00419db6
push eax
lea ecx, [ebp - 0x7c]
call fcn.00418c29
push 0
lea eax, [ebp - 0x7c]
push eax
call fcn.004306c3
pop ecx
pop ecx
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
jne 0x45fbd1
and dword [ebp - 0x1098], 0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x7c]
call fcn.0041896f
mov eax, dword [ebp - 0x1098]
jmp 0x45fd06
push 0
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x45fc03
and dword [ebp - 0x109c], 0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x7c]
call fcn.0041896f
mov eax, dword [ebp - 0x109c]
jmp 0x45fd06
cmp dword [ebp - 0x18], 0xffffffff
jne 0x45fc37
push 0
push dword [ebp - 0x10]
call fcn.00436fc2
pop ecx
pop ecx
or dword [ebp - 0x10], 0xffffffff
and dword [ebp - 0x10a0], 0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x7c]
call fcn.0041896f
mov eax, dword [ebp - 0x10a0]
jmp 0x45fd06
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x1088], 0x1000
and dword [ebp - 0x80], 0
cmp dword [ebp - 0x14], 0
je 0x45fcdb
and dword [ebp - 0x1094], 0
push 0
lea eax, [ebp - 0x1094]
push eax
push dword [ebp - 0x1088]
lea eax, [ebp - 0x1084]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x1090], eax
cmp dword [ebp - 0x1090], 0
jne 0x45fc8c
jmp 0x45fcdb
push 0
lea eax, [ebp - 0x108c]
push eax
push dword [ebp - 0x1094]
lea eax, [ebp - 0x1084]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 0x80]
add eax, dword [ebp - 0x108c]
mov dword [ebp - 0x80], eax
push 0x57cf60
push dword [ebp - 0x108c]
mov ecx, dword [ebp + 0xc]
call fcn.0043acab
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 0x1094]
mov dword [ebp - 0x14], eax
jmp 0x45fc4b
push 0
push dword [ebp - 0x10]
call fcn.00436fc2
pop ecx
pop ecx
or dword [ebp - 0x10], 0xffffffff
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x10a4], eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x7c]
call fcn.0041896f
mov eax, dword [ebp - 0x10a4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x84]
xor ecx, dword [ebp + 4]
call fcn.0049c63c
leave
ret 8
Function at 0x45fd22
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 0x28], ecx
mov eax, dword [ebp - 0x28]
movzx eax, byte [eax + 0x48]
test eax, eax
jne 0x45fded
and dword [ebp - 0xc], 0
mov eax, dword [ebp - 0x28]
movzx eax, byte [eax + 0x6c]
test eax, eax
je 0x45fd5c
push dword [ebp + 0xc]
push dword [ebp + 8]
mov ecx, dword [ebp - 0x28]
call fcn.0045fb52
mov dword [ebp - 0xc], eax
jmp 0x45fda5
mov eax, dword [ebp - 0x28]
cmp dword [eax + 0x90], 0
je 0x45fda5
mov eax, dword [ebp - 0x28]
cmp dword [eax + 0x94], 0
je 0x45fda5
push 0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x28]
push dword [eax + 0x94]
mov eax, dword [ebp - 0x28]
push dword [eax + 0x90]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0x57cf60
push dword [ebp - 0xc]
mov ecx, dword [ebp + 0xc]
call fcn.0043acab
and dword [ebp - 0x1c], 0
and dword [ebp - 0x18], 0
and dword [ebp - 0x14], 0
and dword [ebp - 0x10], 0
mov eax, dword [ebp - 0x28]
cmp dword [eax + 0x98], 0
je 0x45fded
push 0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x28]
push dword [eax + 0x98]
lea eax, [ebp - 0x1c]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0x57cf60
push dword [ebp - 0xc]
mov ecx, dword [ebp + 0xc]
call fcn.0043acab
mov ecx, dword [ebp - 0x28]
add ecx, 0xa0
call fcn.00419db6
mov dword [ebp - 4], eax
and dword [ebp - 8], 0
jmp 0x45fe0b
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 4]
jge 0x45fe3e
push dword [ebp - 8]
mov ecx, dword [ebp - 0x28]
add ecx, 0xa0
call fcn.00431d82
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0x10]
add eax, 4
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
mov ecx, dword [ebp - 0x20]
call fcn.0045fd22
jmp 0x45fe04
mov ecx, dword [ebp - 0x28]
add ecx, 0xb4
call fcn.00419db6
mov dword [ebp - 4], eax
and dword [ebp - 8], 0
jmp 0x45fe5c
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 4]
jge 0x45fe8f
push dword [ebp - 8]
mov ecx, dword [ebp - 0x28]
add ecx, 0xb4
call fcn.00431d82
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0x10]
add eax, 4
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
mov ecx, dword [ebp - 0x24]
call fcn.0045fd22
jmp 0x45fe55
mov al, 1
leave
ret 0xc
Function at 0x45fe95
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 0x20], ecx
mov eax, dword [ebp + 0x10]
mov dword [0x57cf64], eax
and dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp - 0x20]
call fcn.0045ffe1
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp - 0x20]
call fcn.004600f3
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp - 0x20]
call fcn.004601b6
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp - 0x20]
call fcn.00460286
mov ecx, dword [ebp - 0x20]
call fcn.0045f62f
push 0
push dword [ebp + 0x14]
push dword [ebp + 8]
mov ecx, dword [ebp - 0x20]
call fcn.0045f76d
push 0
push dword [ebp + 0x14]
push dword [ebp + 8]
mov ecx, dword [ebp - 0x20]
call fcn.0045f92d
push 0
push dword [ebp + 0x14]
push dword [ebp + 8]
mov ecx, dword [ebp - 0x20]
call fcn.0045fa15
push 0
push dword [ebp + 0x14]
push dword [ebp + 8]
mov ecx, dword [ebp - 0x20]
call fcn.0045fd22
mov eax, dword [ebp - 8]
xor edx, edx
div dword [ebp + 0xc]
mov dword [ebp - 4], edx
and dword [ebp - 0xc], 0
cmp dword [ebp - 4], 0
je 0x45ff9a
mov eax, dword [ebp + 0xc]
sub eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
push dword [ebp - 0xc]
call fcn.0047e916
pop ecx
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
push dword [ebp - 0xc]
push 0x58
push dword [ebp - 0x14]
call fcn.0049ce00
add esp, 0xc
and dword [ebp - 0x10], 0
push 0
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0xc]
push dword [ebp - 0x14]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0x57cf60
push dword [ebp - 0x10]
mov ecx, dword [ebp + 0x14]
call fcn.0043acab
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x1c], eax
push dword [ebp - 0x1c]
call fcn.0047e950
pop ecx
mov al, 1
leave
ret 0x10

Function at 0x46934c
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], 0
jne 0x46935b
jmp 0x469390
mov eax, dword [ebp + 8]
and dword [eax + 0x14], 0
mov eax, dword [ebp + 8]
and dword [eax + 0x10], 0
mov eax, dword [ebp + 8]
mov dword [eax], 0x67452301
mov eax, dword [ebp + 8]
mov dword [eax + 4], 0xefcdab89
mov eax, dword [ebp + 8]
mov dword [eax + 8], 0x98badcfe
mov eax, dword [ebp + 8]
mov dword [eax + 0xc], 0x10325476
leave
ret 4
Function at 0x46ba4f
Capabilities:
Encrypt data using twofish

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
and dword [ebp - 4], 0
jmp 0x46ba62
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x100
jge 0x46bc22
mov eax, dword [ebp - 4]
mov al, byte [eax + 0x578d80]
mov byte [ebp - 0xc], al
movzx eax, byte [ebp - 0xc]
movzx ecx, byte [ebp - 0xc]
sar ecx, 2
movzx edx, byte [ebp - 0xc]
and edx, 2
neg edx
sbb edx, edx
and edx, 0xb4
xor ecx, edx
movzx edx, byte [ebp - 0xc]
and edx, 1
neg edx
sbb edx, edx
and edx, 0x5a
xor ecx, edx
xor eax, ecx
mov byte [ebp - 8], al
movzx eax, byte [ebp - 0xc]
movzx ecx, byte [ebp - 0xc]
sar ecx, 1
movzx edx, byte [ebp - 0xc]
and edx, 1
neg edx
sbb edx, edx
and edx, 0xb4
xor ecx, edx
xor eax, ecx
movzx ecx, byte [ebp - 0xc]
sar ecx, 2
movzx edx, byte [ebp - 0xc]
and edx, 2
neg edx
sbb edx, edx
and edx, 0xb4
xor ecx, edx
movzx edx, byte [ebp - 0xc]
and edx, 1
neg edx
sbb edx, edx
and edx, 0x5a
xor ecx, edx
xor eax, ecx
mov byte [ebp - 0x14], al
mov eax, dword [ebp - 4]
mov al, byte [eax + 0x578e80]
mov byte [ebp - 0xb], al
movzx eax, byte [ebp - 0xb]
movzx ecx, byte [ebp - 0xb]
sar ecx, 2
movzx edx, byte [ebp - 0xb]
and edx, 2
neg edx
sbb edx, edx
and edx, 0xb4
xor ecx, edx
movzx edx, byte [ebp - 0xb]
and edx, 1
neg edx
sbb edx, edx
and edx, 0x5a
xor ecx, edx
xor eax, ecx
mov byte [ebp - 7], al
movzx eax, byte [ebp - 0xb]
movzx ecx, byte [ebp - 0xb]
sar ecx, 1
movzx edx, byte [ebp - 0xb]
and edx, 1
neg edx
sbb edx, edx
and edx, 0xb4
xor ecx, edx
xor eax, ecx
movzx ecx, byte [ebp - 0xb]
sar ecx, 2
movzx edx, byte [ebp - 0xb]
and edx, 2
neg edx
sbb edx, edx
and edx, 0xb4
xor ecx, edx
movzx edx, byte [ebp - 0xb]
and edx, 1
neg edx
sbb edx, edx
and edx, 0x5a
xor ecx, edx
xor eax, ecx
mov byte [ebp - 0x13], al
mov al, byte [ebp - 0xb]
mov byte [ebp - 0x10], al
mov al, byte [ebp - 7]
mov byte [ebp - 0xf], al
mov al, byte [ebp - 0x13]
mov byte [ebp - 0xe], al
mov al, byte [ebp - 0x13]
mov byte [ebp - 0xd], al
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x10]
mov dword [eax*4 + 0x580520], ecx
mov al, byte [ebp - 0x14]
mov byte [ebp - 0x10], al
mov al, byte [ebp - 0x14]
mov byte [ebp - 0xf], al
mov al, byte [ebp - 8]
mov byte [ebp - 0xe], al
mov al, byte [ebp - 0xc]
mov byte [ebp - 0xd], al
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x10]
mov dword [eax*4 + 0x580920], ecx
mov al, byte [ebp - 7]
mov byte [ebp - 0x10], al
mov al, byte [ebp - 0x13]
mov byte [ebp - 0xf], al
mov al, byte [ebp - 0xb]
mov byte [ebp - 0xe], al
mov al, byte [ebp - 0x13]
mov byte [ebp - 0xd], al
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x10]
mov dword [eax*4 + 0x580d20], ecx
mov al, byte [ebp - 8]
mov byte [ebp - 0x10], al
mov al, byte [ebp - 0xc]
mov byte [ebp - 0xf], al
mov al, byte [ebp - 0x14]
mov byte [ebp - 0xe], al
mov al, byte [ebp - 8]
mov byte [ebp - 0xd], al
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x10]
mov dword [eax*4 + 0x581120], ecx
jmp 0x46ba5b
and dword [0x578f80], 0
leave
ret
Function at 0x47e689
Capabilities:
Hash data using sha1

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

Function at 0x47fd49
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x274
mov eax, dword [0x57aa54]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0x800
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x234], eax
mov esi, ecx
lea eax, [ebp - 0xc]
jne 0x47fde1
push 0x55b0f4
push 4
push eax
call fcn.0049d4e5
push eax
call fcn.00403760
add esp, 0x10
push ebx
push edi
call fcn.004a07fd
mov edi, dword [eax]
call fcn.004a07fd
xor ebx, ebx
mov dword [eax], ebx
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x234]
lea eax, [ebp - 0x230]
push esi
push 0x111
mov esi, 0x112
push esi
push eax
call fcn.004a1700
add esp, 0x18
mov dword [ebp - 0x234], eax
call fcn.004a07fd
cmp dword [eax], ebx
je 0x47fdf8
call fcn.004a07fd
push dword [eax]
call fcn.0047f2df
pop ecx
jmp 0x47fdff
push 4
push eax
push 3
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x47fd8c
jmp 0x47fe86
call fcn.004a07fd
mov dword [eax], edi
cmp dword [ebp - 0x234], 0xffffffff
je 0x47fe82
cmp dword [ebp - 0x234], esi
jae 0x47fe82
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push 0x3c
mov esi, eax
lea eax, [ebp - 0x270]
push ebx
push eax
mov dword [ebp - 0x274], 0x40
call fcn.0049ce00
add esp, 0xc
push 0x55ae54
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp eax, ebx
je 0x47fe71
push str.FindActCtxSectionStringW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x47fe71
lea ecx, [ebp - 0x274]
push ecx
push esi
push 2
push ebx
push ebx
call eax
test eax, eax
je 0x47fe71
push ebx
push ebx
push esi
jmp 0x47fe7a
push ebx
push ebx
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
jmp 0x47fe84
xor eax, eax
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0049c63c
leave
ret

Function at 0x482600
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 + 0x58], ebx
test ebx, 0xffff0000
jne 0x482624
cmp dword [edi + 0x54], 0
jne 0x482624
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.0048b4a7
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
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.004825c1
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 0x482b7a
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 0x482bc2
call fcn.0048b4a7
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x482bc2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x482c05
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 0x482bee
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 0x482bee
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x482c02
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 0x4891db
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 0x489222
call fcn.0048b4a7
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x489222
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x48923e
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.00488d53
mov esi, eax
test edi, edi
je 0x48923c
test ebx, ebx
je 0x48923c
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x489a37
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x4baf50
call fcn.004a008d
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x489a5c
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x489aa2
lea ecx, [ebp - 0x10]
call fcn.004038b0
mov ecx, dword [esi + 0x50]
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.0047eaae
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00403db0
mov eax, esi
call fcn.004a0165
ret 8

Function at 0x49c63c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x57aa54]
jne 0x49c646
repz ret
jmp fcn.004a4ecc
Function at 0x49df18
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 0x49df49
call fcn.004a0810
mov dword [eax], esi
call fcn.004a07fd
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.004a54ec
add esp, 0x14
push 0x16
pop eax
jmp 0x49df9e
test dword [ebp + 0xc], 0xfffffff9
jne 0x49df25
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x49df76
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004a0823
pop ecx
call fcn.004a07fd
mov eax, dword [eax]
jmp 0x49df9e
test al, 0x10
jne 0x49df9c
test al, 1
je 0x49df9c
test byte [ebp + 0xc], 2
je 0x49df9c
call fcn.004a0810
mov dword [eax], 5
call fcn.004a07fd
mov dword [eax], 0xd
jmp 0x49df6d
xor eax, eax
pop esi
pop ebp
ret

Function at 0x4ae3e0
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004a3b41
and dword [ebp - 4], 0
cmp dword [0x580448], 0
mov ebx, eax
jne 0x4ae491
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4ae542
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4ae542
push eax
call fcn.004a3acf
mov dword [esp], 0x55eb5c
push edi
mov dword [0x580448], eax
call esi
push eax
call fcn.004a3acf
mov dword [esp], 0x55eb48
push edi
mov dword [0x58044c], eax
call esi
push eax
call fcn.004a3acf
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x580450], eax
call esi
push eax
call fcn.004a3acf
pop ecx
mov dword [0x580458], eax
test eax, eax
je 0x4ae491
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004a3acf
pop ecx
mov dword [0x580454], eax
mov eax, dword [0x580454]
cmp eax, ebx
je 0x4ae4e9
cmp dword [0x580458], ebx
je 0x4ae4e9
push eax
call fcn.004a3b4a
push dword [0x580458]
mov esi, eax
call fcn.004a3b4a
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4ae4e9
test edi, edi
je 0x4ae4e9
call esi
test eax, eax
je 0x4ae4e0
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4ae4e0
test byte [ebp - 0xc], 1
jne 0x4ae4e9
or dword [ebp + 0x10], 0x200000
jmp 0x4ae522
mov eax, dword [0x58044c]
cmp eax, ebx
je 0x4ae522
push eax
call fcn.004a3b4a
pop ecx
test eax, eax
je 0x4ae522
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4ae522
mov eax, dword [0x580450]
cmp eax, ebx
je 0x4ae522
push eax
call fcn.004a3b4a
pop ecx
test eax, eax
je 0x4ae522
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x580448]
call fcn.004a3b4a
pop ecx
test eax, eax
je 0x4ae542
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4ae544
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10018500
Capabilities:
Check os version

Disassembly:
sub esp, 0x120
mov eax, dword [0x100fd640]
xor eax, esp
mov dword [esp + 0x11c], eax
cmp word [0x100fddb8], 0
push ebx
jne 0x10018722
push esi
push 0x11c
lea eax, [esp + 0xc]
push 0
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
lea ecx, [esp + 8]
push ecx
mov dword [esp + 0xc], 0x11c
call dword [sym.imp.kernel32.dll_GetVersionExW]
push str._I__OS_Version_
push 0
push 3
mov esi, eax
call fcn.10094315
add esp, 0xc
test esi, esi
pop esi
je 0x10018706
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 8]
cmp eax, 2
jne 0x100186f1
cmp ecx, 4
jbe 0x100186f1
mov eax, dword [esp + 0xc]
mov ebx, 1
cmp ecx, 6
jb 0x10018628
test eax, eax
jne 0x100185de
cmp byte [esp + 0x11e], bl
jne 0x100185bc
push str.OS_VISTA_n
push eax
push 3
call fcn.10094315
add esp, 0xc
mov word [0x100fddb8], bx
jmp 0x10018722
push str.OS_WINSERV_2008_n
push 0
push 3
call fcn.10094315
mov edx, 2
add esp, 0xc
mov word [0x100fddb8], dx
jmp 0x10018722
cmp eax, ebx
jb 0x10018628
cmp byte [esp + 0x11e], bl
jne 0x10018606
push str.OS_WINDOWS7_or_newer_n
push 0
push 3
call fcn.10094315
add esp, 0xc
mov eax, 0x20
jmp 0x1001871c
push str.OS_WINSERV_2008R2_or_newer_n
push 0
push 3
call fcn.10094315
mov ecx, 0x40
add esp, 0xc
mov word [0x100fddb8], cx
jmp 0x10018722
cmp ecx, 5
jne 0x100186d0
cmp eax, 2
jne 0x1001867c
cmp byte [esp + 0x11e], bl
jne 0x10018661
push str.OS_WINXP_64_n
push 0
push 3
call fcn.10094315
mov edx, 8
add esp, 0xc
mov word [0x100fddb8], dx
jmp 0x10018722
push str.OS_WINSERV_2003_n
push 0
push 3
call fcn.10094315
add esp, 0xc
mov eax, 0x10
jmp 0x1001871c
cmp eax, ebx
jne 0x100186d0
push str.OS_WINXP
push 0
push 3
call fcn.10094315
add esp, 0xc
test dword [esp + 0x11c], 0x200
mov ecx, 4
mov word [0x100fddb8], cx
je 0x100186bd
push str.Home_n
push 0
push 3
call fcn.10094315
add esp, 0xc
jmp 0x10018722
push str.Pro_n
push 0
push 3
call fcn.10094315
add esp, 0xc
jmp 0x10018722
push eax
push ecx
push str.OS_UNKNOWN:_dwMajorVersion_d_dwMinorVersion_d_n
push 0
push 3
call fcn.10094315
mov edx, 0xff80
add esp, 0x14
mov word [0x100fddb8], dx
jmp 0x10018722
push ecx
push eax
push str.OS_UNKNOWN:_dwPlatformId_d_dwMajorVersion_d_n
push 0
push 3
call fcn.10094315
add esp, 0x14
jmp 0x10018717
push str.OS_UNKNOWN:_GetVersionEx_failed_n
push 0
push 3
call fcn.10094315
add esp, 0xc
mov eax, 0xff80
mov word [0x100fddb8], ax
movzx ecx, word [esp + 0x128]
movzx eax, word [0x100fddb8]
and eax, ecx
mov ecx, dword [esp + 0x120]
pop ebx
xor ecx, esp
call fcn.100b4c22
add esp, 0x120
ret