joyce8/EMBER2024-capa huggingface dataset:
Function at 0x487ca0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x578982
mov eax, dword fs:[0]
push eax
sub esp, 0x23c
mov eax, dword [0x5c8128]
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 ebx, edx
mov edi, ecx
mov dword [ebp - 0x244], edi
mov dword [ebp - 4], 0
mov dword [ebp - 0x248], edi
mov dword [ebp - 0x240], 0
call fcn.00407e20
mov ecx, eax
test ecx, ecx
jne 0x487d04
push 0x80004005
call fcn.004079f0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
push 0
mov dword [ebp - 4], 0
push 2
mov dword [ebp - 0x240], 1
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
je 0x487daa
push 0x228
lea eax, [ebp - 0x238]
push 0
push eax
call fcn.0051a560
add esp, 0xc
mov dword [ebp - 0x23c], 0x22c
lea eax, [ebp - 0x23c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x487da3
cmp dword [ebp - 0x234], ebx
jne 0x487d91
lea eax, [ebp - 0x218]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x487d73
sub eax, edx
mov ecx, edi
sar eax, 1
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.00407740
lea eax, [ebp - 0x23c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x487d62
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
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.004f5c19
mov esp, ebp
pop ebp
ret

Function at 0x488540
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x5c8128]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0
push 2
mov dword [ebp - 0x234], 0
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
mov dword [ebp - 0x230], 0x22c
lea eax, [ebp - 0x230]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
mov ebx, dword [sym.imp.KERNEL32.dll_Process32NextW]
push str.explorer.exe
lea eax, [ebp - 0x20c]
push eax
call edi
test eax, eax
je 0x4885b2
lea eax, [ebp - 0x230]
push eax
push esi
call ebx
test eax, eax
jne 0x488590
jmp 0x4885be
mov eax, dword [ebp - 0x228]
mov dword [ebp - 0x234], eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x234]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.004f5c19
mov esp, ebp
pop ebp
ret
Function at 0x488f50
Capabilities:
Create thread
Inject dll
Inject thread

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x5b7220
push 0x51e030
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x5c8128]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov eax, edx
mov dword [ebp - 0x30], eax
mov edi, ecx
mov dword [ebp - 0x20], edi
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x24], eax
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x28], ebx
xor esi, esi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 4], ebx
push 4
push 0x1000
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov edi, eax
mov dword [ebp - 0x28], edi
test edi, edi
je 0x489035
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 0x24]
push dword [ebp - 0x30]
push edi
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x489035
mov eax, dword [ebp - 0x24]
cmp dword [ebp - 0x34], eax
jne 0x489035
push 0x5a3d38
push str.Kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x489035
push esi
push esi
push edi
push eax
push esi
push esi
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov esi, eax
mov dword [ebp - 0x2c], esi
test esi, esi
je 0x489035
mov eax, dword [ebp + 8]
test eax, eax
jne 0x489023
lea ebx, [eax + 1]
jmp 0x489032
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor ebx, ebx
test eax, eax
sete bl
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], 0xfffffffe
call fcn.00489052
test ebx, ebx
je 0x489079
xor eax, eax
jmp 0x48908b
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x48908b
movzx eax, ax
or eax, 0x80070000
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4890f0
Capabilities:
Create thread
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x5b7240
push 0x51e030
mov eax, dword fs:[0]
push eax
sub esp, 0x44c
mov eax, dword [0x5c8128]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x44c], edx
mov dword [ebp - 0x450], ecx
xor ebx, ebx
mov dword [ebp - 0x448], ebx
xor esi, esi
mov dword [ebp - 0x454], esi
xor edi, edi
mov dword [ebp - 0x458], edi
mov dword [ebp - 4], ebx
push 0x5a3d5c
push str.Kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x45c], eax
test eax, eax
je 0x489259
push dword [ebp - 0x450]
call dword [sym.imp.KERNEL32.dll_GetProcessId]
test eax, eax
je 0x489259
push eax
push 8
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
mov dword [ebp - 0x454], esi
test esi, esi
je 0x489259
mov dword [ebp - 0x444], 0x428
lea eax, [ebp - 0x444]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Module32FirstW]
test eax, eax
je 0x489201
lea eax, [ebp - 0x224]
push eax
push dword [ebp - 0x44c]
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x4891f9
lea eax, [ebp - 0x424]
push eax
push dword [ebp - 0x44c]
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x4891f9
lea eax, [ebp - 0x444]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Module32NextW]
jmp 0x4891b7
mov eax, dword [ebp - 0x428]
jmp 0x489203
xor eax, eax
test eax, eax
jne 0x489211
push 2
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x489259
push 0
push 0
push eax
push dword [ebp - 0x45c]
push 0
push 0
push dword [ebp - 0x450]
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov edi, eax
mov dword [ebp - 0x458], edi
test edi, edi
je 0x489259
mov eax, dword [ebp + 8]
test eax, eax
jne 0x489244
lea ebx, [eax + 1]
jmp 0x489253
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor ebx, ebx
test eax, eax
sete bl
mov dword [ebp - 0x448], ebx
mov dword [ebp - 4], 0xfffffffe
call fcn.0048927f
test ebx, ebx
je 0x48929c
xor eax, eax
jmp 0x4892ae
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x4892ae
movzx eax, ax
or eax, 0x80070000
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.004f5c19
mov esp, ebp
pop ebp
ret
Function at 0x489320
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x5c8128]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0xc], 0
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
mov word [ebp - 8], 0x500
push eax
mov dword [ebp - 0x14], 0
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x489390
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x14]
push 0
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
push dword [ebp - 0x14]
neg eax
sbb eax, eax
and dword [ebp - 0x10], eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004f5c19
mov esp, ebp
pop ebp
ret
Function at 0x48c690
Capabilities:
Encode data using base64 via winapi

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x578e48
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x5c8128]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov edi, ecx
mov dword [ebp - 0x18], edi
lea eax, [ebp - 0x10]
mov dword [ebp - 0x1c], 0
push eax
push 0
push 1
push dword [ebp + 8]
push ebx
call dword [sym.imp.CRYPT32.dll_CryptBinaryToStringW]
test eax, eax
je 0x48c7f7
cmp dword [ebp - 0x10], 0
je 0x48c7f7
call fcn.00407e20
mov ecx, eax
test ecx, ecx
jne 0x48c6ff
push 0x80004005
call fcn.004079f0
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x10]
test edx, edx
jns 0x48c722
push 0x80070057
call fcn.004079f0
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edx
or eax, ecx
jge 0x48c73f
push edx
lea ecx, [ebp - 0x14]
call fcn.00407460
mov esi, dword [ebp - 0x14]
lea eax, [ebp - 0x10]
push eax
push esi
push 1
push dword [ebp + 8]
push ebx
call dword [sym.imp.CRYPT32.dll_CryptBinaryToStringW]
push dword [esi - 8]
push esi
test eax, eax
jne 0x48c7c4
call fcn.00537622
add esp, 8
test eax, eax
js 0x48c718
cmp eax, dword [esi - 8]
jg 0x48c718
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
call fcn.00407e20
mov ecx, eax
test ecx, ecx
jne 0x48c787
push 0x80004005
call fcn.004079f0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
mov dword [edi], eax
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x48c816
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.00537622
add esp, 8
test eax, eax
js 0x48c718
cmp eax, dword [esi - 8]
jg 0x48c718
mov dword [esi - 0xc], eax
xor ecx, ecx
mov word [esi + eax*2], cx
add esi, 0xfffffff0
push esi
call fcn.00406e20
add esp, 4
add eax, 0x10
jmp 0x48c792
call fcn.00407e20
mov ecx, eax
test ecx, ecx
jne 0x48c80c
push 0x80004005
call fcn.004079f0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
mov eax, edi
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 0x48c950
Capabilities:
Decode data using base64 via winapi

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x578eb0
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push esi
push edi
mov eax, dword [0x5c8128]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x18], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
push 0
push 0
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
mov eax, dword [ebp + 8]
push ecx
push 0
push edi
push dword [eax - 0xc]
push eax
call dword [sym.imp.CRYPT32.dll_CryptStringToBinaryW]
test eax, eax
je 0x48ca01
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x48ca01
push eax
lea ecx, [ebp - 0x24]
call fcn.0048d8f0
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x10]
push 0
push 0
push ecx
push dword [ebp - 0x24]
push edi
push dword [eax - 0xc]
push eax
call dword [sym.imp.CRYPT32.dll_CryptStringToBinaryW]
mov ecx, esi
test eax, eax
jne 0x48c9f6
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x24]
push eax
call fcn.0048d940
jmp 0x48ca2a
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
lea ecx, [ebp - 0x24]
call fcn.0045d8a0
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x48ca54
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x48e2c0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
mov ecx, 0
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, 0x811c9dc5
sub edx, edi
sar edx, 1
add edx, edx
je 0x48e2f1
nop dword [eax]
movzx eax, byte [ecx + edi]
inc ecx
xor eax, esi
imul esi, eax, 0x1000193
cmp ecx, edx
jb 0x48e2e0
pop edi
mov eax, esi
pop esi
pop ebp
ret 8
Function at 0x492a20
Capabilities:
Parse credit card information

Disassembly:
push esi
mov esi, ecx
xor cl, cl
cmp dword [esi + 0x4c], 0xffffffff
je 0x492bf6
push ebx
mov eax, dword [esi + 0x4c]
cmp eax, 0x7c
je 0x492bf5
cmp eax, 0x29
jne 0x492a58
cmp dword [esi + 0x10], 0
jne 0x492bf5
test dword [esi + 0x50], 0x10000000
je 0x492c01
cmp eax, 0x2e
jne 0x492ab5
push 5
lea ecx, [esi + 0x24]
call fcn.00492e10
mov eax, dword [esi]
mov ecx, dword [esi + 8]
cmp eax, ecx
je 0x492aa9
cmp word [eax], 0x5c
jne 0x492aa6
add eax, 2
cmp eax, ecx
je 0x492aa6
mov ecx, dword [esi + 0x50]
test cl, 8
jne 0x492a92
movzx edx, word [eax]
cmp edx, 0x28
je 0x492aa4
cmp edx, 0x29
je 0x492aa4
test cl, 0x10
jne 0x492aa6
movzx ecx, word [eax]
cmp ecx, 0x7b
je 0x492aa4
cmp ecx, 0x7d
jne 0x492aa6
mov dword [esi], eax
add dword [esi], 2
mov ecx, esi
call fcn.00490600
jmp 0x492be2
cmp eax, 0x5c
jne 0x492b1c
mov ecx, esi
call fcn.004929d0
mov eax, dword [esi + 0x50]
and eax, 0x80
je 0x492ae8
cmp word [esi + 0x48], 0x62
jne 0x492ae8
push 4
lea ecx, [esi + 0x24]
call fcn.00492e10
mov ecx, esi
call fcn.004929d0
jmp 0x492be9
test eax, eax
je 0x492b10
cmp word [esi + 0x48], 0x42
jne 0x492b10
push 4
lea ecx, [esi + 0x24]
call fcn.00492e10
mov eax, dword [esi + 0x28]
mov ecx, esi
xor dword [eax + 8], 1
call fcn.004929d0
jmp 0x492be9
mov ecx, esi
call fcn.00494090
jmp 0x492be2
cmp eax, 0x5b
jne 0x492b3e
mov ecx, esi
call fcn.004929d0
mov ecx, esi
call fcn.00494040
cmp dword [esi + 0x4c], 0x5d
je 0x492bdb
jmp 0x492bfa
cmp eax, 0x28
jne 0x492b6e
mov ecx, esi
call fcn.004929d0
mov ecx, esi
call fcn.00494160
cmp dword [esi + 0x4c], 0x29
mov bl, al
jne 0x492c01
mov ecx, esi
call fcn.004929d0
test bl, bl
je 0x492be9
jmp 0x492be2
cmp eax, 0x5e
jne 0x492b86
push 2
lea ecx, [esi + 0x24]
call fcn.00492e10
mov ecx, esi
call fcn.004929d0
jmp 0x492be9
cmp eax, 0x24
jne 0x492b9e
push 3
lea ecx, [esi + 0x24]
call fcn.00492e10
mov ecx, esi
call fcn.004929d0
jmp 0x492be9
cmp eax, 0x2a
je 0x492c0f
cmp eax, 0x2b
je 0x492c0f
cmp eax, 0x3f
je 0x492c0f
cmp eax, 0x7b
je 0x492c0f
cmp eax, 0x7d
jne 0x492bc0
test dword [esi + 0x50], 0x10000000
je 0x492c08
cmp eax, 0x5d
jne 0x492bce
test dword [esi + 0x50], 0x10000000
je 0x492bfa
movzx eax, word [esi + 0x48]
lea ecx, [esi + 0x24]
push eax
call fcn.004943b0
mov ecx, esi
call fcn.004929d0
mov ecx, esi
call fcn.00494220
cmp dword [esi + 0x4c], 0xffffffff
mov cl, 1
jne 0x492a30
pop ebx
mov al, cl
pop esi
ret
push 4
call fcn.004dbc6b
push 5
call fcn.004dbc6b
push 6
call fcn.004dbc6b
push 0xa
call fcn.004dbc6b
int3
Function at 0x4991b0
Capabilities:
Check os version
Get system information on windows

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x160
mov eax, dword [0x5c8128]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x5cf78c], 0
jne 0x49947b
push 0x11c
lea eax, [ebp - 0x128]
push 0
push eax
call fcn.0051a560
add esp, 0xc
mov dword [ebp - 0x128], 0x11c
push str.RtlGetVersion
push str.NtDll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x49924d
lea ecx, [ebp - 0x128]
push ecx
call eax
test eax, eax
je 0x49924d
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x49924d
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004f5c19
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
push 0
push 0x59b818
mov ecx, 0x5cf640
mov dword [0x5cef6c], 0
call fcn.00407740
mov eax, dword [ebp - 0x118]
sub eax, 0
je 0x4993dc
sub eax, 1
je 0x49938c
sub eax, 1
je 0x49928f
push 0x59b818
jmp 0x4993eb
mov eax, dword [ebp - 0x124]
cmp eax, 4
ja 0x4992ae
mov dword [0x5cef6c], 0x40
push 0x5a4150
jmp 0x4993eb
cmp eax, 5
jne 0x499307
mov eax, dword [ebp - 0x120]
test eax, eax
jne 0x4992d1
mov dword [0x5cef6c], 0x80
push str.Windows_2000
jmp 0x4993eb
cmp eax, 1
jne 0x4992ea
mov dword [0x5cef6c], 0x100
push str.Windows_XP
jmp 0x4993eb
cmp eax, 2
jne 0x4993f5
mov dword [0x5cef6c], 0x200
push str.Windows_2003
jmp 0x4993eb
cmp eax, 6
jne 0x4993f5
mov eax, dword [ebp - 0x120]
test eax, eax
jne 0x49932e
mov dword [0x5cef6c], 0x400
push str.Windows_Vista
jmp 0x4993eb
cmp eax, 1
jne 0x499347
mov dword [0x5cef6c], 0x800
push str.Windows_7
jmp 0x4993eb
cmp eax, 2
jne 0x499360
mov dword [0x5cef6c], 0x1000
push str.Windows_8
jmp 0x4993eb
cmp eax, 3
jne 0x499376
mov dword [0x5cef6c], 0x2000
push str.Windows_8.1
jmp 0x4993eb
cmp eax, 4
jne 0x4993f5
mov dword [0x5cef6c], 0x4000
push str.Windows_10
jmp 0x4993eb
cmp dword [ebp - 0x124], 4
jne 0x4993f5
mov eax, dword [ebp - 0x120]
test eax, eax
jne 0x4993b0
mov dword [0x5cef6c], 8
push str.Windows_9x
jmp 0x4993eb
cmp eax, 0xa
jne 0x4993c6
mov dword [0x5cef6c], 8
push str.Windows_9x
jmp 0x4993eb
cmp eax, 0x5a
jne 0x4993f5
mov dword [0x5cef6c], 0x20
push str.Windows_ME
jmp 0x4993eb
mov dword [0x5cef6c], 1
push str.Windows_3.2
mov ecx, 0x5cf640
call fcn.004078b0
xorps xmm0, xmm0
mov dword [ebp - 0x140], 0
push 0x5a3d78
push str.kernel32.dll
movaps xmmword [ebp - 0x160], xmm0
movaps xmmword [ebp - 0x150], xmm0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x499436
lea ecx, [ebp - 0x160]
push ecx
call eax
jmp 0x499443
lea eax, [ebp - 0x160]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ax, word [ebp - 0x160]
cmp ax, 9
je 0x499467
cmp ax, 6
je 0x499467
test ax, ax
jne 0x499471
mov dword [0x5cef68], 0
jmp 0x499471
mov dword [0x5cef68], 1
mov dword [0x5cf78c], 1
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
call fcn.004f5c19
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x499720
Capabilities:
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x5c8128]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x208
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x214], 0
mov esi, ecx
mov edi, edx
push 0
push eax
mov dword [ebp - 0x210], esi
call fcn.0051a560
add esp, 0xc
lea eax, [ebp - 0x20c]
push 1
push 0x26
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test edi, edi
je 0x499784
push edi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
call fcn.00407900
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.004f5c19
mov esp, ebp
pop ebp
ret

Function at 0x499c20
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x5c8128]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x208
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x214], 0
mov esi, ecx
mov edi, edx
push 0
push eax
mov dword [ebp - 0x210], esi
call fcn.0051a560
add esp, 0xc
lea eax, [ebp - 0x20c]
push 1
push 0x1a
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test edi, edi
je 0x499c84
push edi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
call fcn.00407900
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.004f5c19
mov esp, ebp
pop ebp
ret

Function at 0x49ae40
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push ecx
mov esi, ecx
call fcn.0049ade0
mov ecx, dword [ebp + 8]
test ecx, ecx
jne 0x49ae5f
mov dword [esi + 4], 0xffffffff
jmp 0x49ae90
cmp dword [esi], 0
mov edx, 0xc0000000
push 0
push 0x80
push 4
push 0
mov eax, SysReAllocStringLen
push 3
cmovne eax, edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 4], eax
cmp eax, 0xffffffff
je 0x49af22
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
jne 0x49aea2
xorps xmm0, xmm0
movlpd qword [ebp - 8], xmm0
jmp 0x49aead
lea ecx, [ebp - 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
mov dword [esi + 0x10], eax
or eax, ecx
mov dword [esi + 0x14], ecx
jne 0x49aecb
cmp dword [esi], eax
je 0x49aecb
mov dword [esi + 0x10], 1
mov dword [esi + 0x14], eax
mov eax, dword [esi + 0x10]
mov cl, 0x20
mov edx, dword [esi + 0x14]
push ebx
xor ebx, ebx
cmp dword [esi], ebx
push 0
push dword [esi + 0x10]
setne bl
lea ebx, [ebx*2 + 2]
call fcn.0056f280
push eax
push ebx
push 0
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [esi + 8], eax
pop ebx
test eax, eax
je 0x49af22
cmp dword [esi], 0
mov edx, 0xf001f
push 0
push 0
mov ecx, 4
push 0
cmovne ecx, edx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [esi + 0xc], eax
cmp dword [esi + 0xc], 0
jne 0x49af30
push ecx
mov ecx, esi
call fcn.0049ade0
pop esi
mov esp, ebp
pop ebp
ret 0x10
Function at 0x49b080
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x5b8308
push 0x51e030
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x5c8128]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov eax, edx
mov dword [ebp - 0x34], eax
mov ebx, ecx
mov dword [ebp - 0x30], ebx
xor edi, edi
mov dword [ebp - 0x28], edi
xor esi, esi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 4], esi
mov ecx, eax
call fcn.0049e560
mov dword [ebp - 0x20], esi
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov ebx, eax
test ebx, ebx
je 0x49b154
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
mov dword [ebp - 0x2c], esi
test esi, esi
je 0x49b154
push esi
push ebx
push dword [ebp - 0x20]
push dword [ebp - 0x30]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x49b154
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x24], edi
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x24]
push eax
push 0x5a441c
push esi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x49b154
push ecx
mov eax, dword [ebp - 0x1c]
shr eax, 2
push eax
mov ecx, dword [ebp - 0x34]
call fcn.0049e500
push dword [ebp - 0x1c]
push dword [ebp - 0x24]
push ecx
mov ecx, dword [ebp - 0x34]
call fcn.0049e590
push eax
call fcn.00519fe0
add esp, 0xc
mov edi, 1
mov dword [ebp - 0x28], edi
mov dword [ebp - 4], 0xfffffffe
call fcn.0049b17a
mov eax, edi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret