joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4841a0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a8080
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x60e070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x80], eax
mov eax, dword [eax]
mov edi, dword [ebp + 8]
test eax, eax
je 0x484354
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x5d977c
push eax
call esi
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x80]
push str.RegQueryValueExW
push dword [eax]
call esi
mov dword [ebp - 0x84], eax
mov eax, dword [ebp - 0x80]
push 0x5d97a0
push dword [eax]
call esi
cmp dword [ebp - 0x60], 0
mov esi, eax
je 0x484354
cmp dword [ebp - 0x84], 0
je 0x484354
test esi, esi
je 0x484354
mov dword [ebp - 0x80], 0
mov dword [ebp - 0x48], 0x65004b
mov dword [ebp - 0x44], 0x620079
mov dword [ebp - 0x40], 0x61006f
mov dword [ebp - 0x3c], 0x640072
mov dword [ebp - 0x38], 0x4c0020
mov dword [ebp - 0x34], 0x790061
mov dword [ebp - 0x30], 0x75006f
mov dword [ebp - 0x2c], sym.imp.KERNEL32.dll_WaitForSingleObject
mov dword [ebp - 0x28], 0x750053
mov dword [ebp - 0x24], 0x730062
mov dword [ebp - 0x20], 0x690074
mov dword [ebp - 0x1c], 0x750074
mov dword [ebp - 0x18], 0x650074
mov dword [ebp - 0x14], 0x73
mov dword [ebp - 0x80], 0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x7c]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x48]
mov dword [ebp - 0x7c], 0
push eax
push 0x20019
lea ecx, [ebp - 0x80]
call fcn.004b8a00
push eax
call dword [ebp - 0x60]
test eax, eax
je 0x484345
lea ecx, [ebp - 0x78]
call fcn.00403c30
mov byte [ebp - 4], 1
lea eax, [ebp - 0x78]
push edi
push str._08x
push eax
call fcn.0049aa20
add esp, 0xc
mov dword [ebp - 0x4c], 0
lea eax, [ebp - 0x60]
mov dword [ebp - 0x60], 0x14
xorps xmm0, xmm0
lea ecx, [ebp - 0x78]
movups xmmword [ebp - 0x5c], xmm0
push eax
lea eax, [ebp - 0x5c]
push eax
push 0
push 0
call fcn.00403b20
push eax
push dword [ebp - 0x7c]
call dword [ebp - 0x84]
test eax, eax
jne 0x484334
push 0x10
push eax
lea eax, [ebp - 0x5c]
push eax
call fcn.0056284d
add esp, 0xc
mov edi, eax
push dword [ebp - 0x7c]
call esi
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x78]
call fcn.00403b90
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x80]
call fcn.004b8c50
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0053f5d9
mov esp, ebp
pop ebp
ret 4

Function at 0x484380
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0x60e070]
xor eax, esp
mov dword [esp + 0x114], eax
push 0x110
lea eax, [esp + 8]
mov dword [esp + 4], 0x114
push 0
push eax
call fcn.005431f0
add esp, 0xc
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4843dc
cmp dword [esp + 4], 6
jb 0x4843dc
mov al, 1
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.0053f5d9
add esp, 0x118
ret
mov ecx, dword [esp + 0x114]
xor al, al
xor ecx, esp
call fcn.0053f5d9
add esp, 0x118
ret
Function at 0x484e20
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x230
mov eax, dword [0x60e070]
xor eax, esp
mov dword [esp + 0x22c], eax
push ebx
mov ebx, dword [esp + 0x240]
push ebp
mov ebp, dword [esp + 0x240]
push edi
mov edi, dword [esp + 0x240]
test edi, edi
je 0x484f58
mov eax, dword [ecx]
test eax, eax
je 0x484f58
push esi
push str.RegQueryValueExW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x484f57
push 0x208
lea eax, [esp + 0x38]
push 0
push eax
call fcn.005431f0
add esp, 0xc
mov dword [esp + 0x10], 0x208
lea eax, [esp + 0x10]
mov ecx, ebp
push eax
lea eax, [esp + 0x38]
push eax
push 0
push 0
call fcn.00403b20
push eax
push edi
call esi
lea eax, [esp + 0x34]
push eax
call fcn.00404660
add esp, 4
lea ecx, [ebx + 0x38]
push eax
lea eax, [esp + 0x38]
push eax
call fcn.004040a0
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0x208
push eax
lea eax, [esp + 0x38]
push eax
push 0
push 0
push str.Profile
push edi
call esi
lea eax, [esp + 0x34]
push eax
call fcn.00404660
add esp, 4
lea ecx, [ebx + 0x50]
push eax
lea eax, [esp + 0x38]
push eax
call fcn.004040a0
xor eax, eax
mov dword [esp + 0x14], 0x65004b
mov word [esp + 0x30], ax
lea eax, [esp + 0x10]
push eax
push ebx
push 0
push 0
lea eax, [esp + 0x24]
mov dword [esp + 0x28], 0x620079
push eax
push edi
mov dword [esp + 0x34], 0x61006f
mov dword [esp + 0x38], 0x640072
mov dword [esp + 0x3c], 0x61004c
mov dword [esp + 0x40], 0x6f0079
mov dword [esp + 0x44], 0x740075
mov dword [esp + 0x28], 4
call esi
pop esi
mov ecx, dword [esp + 0x238]
pop edi
pop ebp
pop ebx
xor ecx, esp
call fcn.0053f5d9
add esp, 0x230
ret 0xc
Function at 0x488780
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a8ad8
mov eax, dword fs:[0]
push eax
sub esp, 0x124
mov eax, dword [0x60e070]
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 esi, ecx
push 1
mov dword [ebp - 0x14], 0
call fcn.0053f5f8
mov dword [ebp - 0x14], eax
push 0x118
push 0
mov byte [eax], 0
lea eax, [ebp - 0x12c]
push eax
call fcn.005431f0
add esp, 0x10
mov dword [ebp - 0x130], 0x11c
lea eax, [ebp - 0x130]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x488804
cmp dword [ebp - 0x12c], 6
mov eax, dword [ebp - 0x14]
setae cl
mov byte [eax], cl
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea ecx, [ebp - 0x14]
call fcn.004d26c0
test al, al
je 0x48882e
lea ecx, [ebp - 0x14]
call fcn.004d0df0
test al, al
jne 0x48882e
xor bl, bl
jmp 0x488894
lea edx, [esi + 4]
xor ecx, ecx
call fcn.004aa450
test al, al
jne 0x488844
lea ecx, [esi + 4]
call fcn.0040d390
lea edx, [esi + 0x1c]
mov ecx, 0x1a
call fcn.004aa450
test al, al
jne 0x48885d
lea ecx, [esi + 0x1c]
call fcn.0040d390
lea edx, [esi + 0x34]
mov ecx, 2
call fcn.004aa450
test al, al
jne 0x488876
lea ecx, [esi + 0x34]
call fcn.0040d390
lea edx, [esi + 0x4c]
mov ecx, 0xb
call fcn.004aa450
test al, al
jne 0x48888f
lea ecx, [esi + 0x4c]
call fcn.0040d390
mov byte [esi], 1
mov bl, 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.004d04a0
mov al, bl
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.0053f5d9
mov esp, ebp
pop ebp
ret
Function at 0x488980
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a8b21
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x60e070]
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 esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov ecx, edi
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x2c], 0
call fcn.00403f80
mov edx, eax
cmp dword [eax + 0x14], 8
jb 0x4889cc
mov edx, dword [eax]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x4889e3
mov eax, edx
cmp word [eax], 0x25
je 0x488a19
add eax, 2
sub ecx, 1
jne 0x4889d5
push edi
mov ecx, esi
call fcn.00403c50
mov dword [ebp - 4], 0
mov dword [ebp - 0x2c], 1
mov eax, esi
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.0053f5d9
mov esp, ebp
pop ebp
ret 8
test eax, eax
je 0x4889e3
sub eax, edx
sar eax, 1
cmp eax, 0xffffffff
je 0x4889e3
push edi
lea ecx, [ebp - 0x28]
call fcn.00403c50
mov dword [ebp - 4], 1
mov ecx, edi
push 0
push 0
call fcn.00403b20
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [ebp - 0x30], eax
test eax, eax
jne 0x488a6c
push edi
mov ecx, esi
call fcn.00403c50
mov dword [ebp - 0x2c], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.00403b90
jmp 0x4889f9
xor ecx, ecx
add eax, 2
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00540145
mov edx, dword [ebp - 0x30]
add esp, 4
inc edx
mov ebx, eax
mov ecx, edi
push edx
push ebx
call fcn.00403b20
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x488ac0
cmp eax, dword [ebp - 0x30]
ja 0x488ac0
xor ecx, ecx
push ebx
mov word [ebx + eax*2], cx
call fcn.00404660
add esp, 4
lea ecx, [ebp - 0x28]
push eax
push ebx
call fcn.004040a0
push ebx
call fcn.0053fb54
add esp, 4
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.0040e060
jmp 0x488a57
Function at 0x489710
Capabilities:
Contain obfuscated stackstrings
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a8dbc
mov eax, dword fs:[0]
push eax
sub esp, 0x2b8
mov eax, dword [0x60e070]
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 esi, dword [ebp + 8]
lea eax, [ebp - 0x264]
push 0x208
push 0
push eax
mov dword [ebp - 0x5c], 0x61004d
mov ebx, 0x6c
mov dword [ebp - 0x58], 0x720063
mov dword [ebp - 0x54], 0x6d006f
mov dword [ebp - 0x50], 0x640065
mov dword [ebp - 0x4c], 0x46005c
mov dword [ebp - 0x48], 0x61006c
mov dword [ebp - 0x44], 0x680073
mov dword [ebp - 0x40], 0x46005c
mov dword [ebp - 0x3c], 0x61006c
mov dword [ebp - 0x38], 0x680073
mov dword [ebp - 0x34], 0x650048
mov dword [ebp - 0x30], 0x70006c
mov dword [ebp - 0x2c], 0x720065
mov dword [ebp - 0x28], 0x650053
mov dword [ebp - 0x24], 0x760072
mov dword [ebp - 0x20], 0x630069
mov dword [ebp - 0x1c], 0x2e0065
mov dword [ebp - 0x18], 0x780065
mov dword [ebp - 0x14], 0x65
call fcn.005431f0
add esp, 0xc
lea eax, [ebp - 0x264]
push eax
push 0
push 0
push 0x29
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea eax, [ebp - 0x5c]
push eax
lea ecx, [ebp - 0x2c4]
call fcn.00403be0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x264]
push eax
lea ecx, [ebp - 0x2ac]
call fcn.00403be0
mov byte [ebp - 4], 1
lea eax, [ebp - 0x2c4]
push eax
lea edx, [ebp - 0x2ac]
lea ecx, [ebp - 0x294]
call fcn.0049c580
add esp, 4
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2ac]
call fcn.00403b90
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x2c4]
call fcn.00403b90
lea ecx, [ebp - 0x294]
call fcn.004a61e0
test al, al
jne 0x48986e
xor bl, bl
jmp 0x4898d0
lea edx, [ebp - 0x294]
lea ecx, [ebp - 0x27c]
call fcn.004abf00
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x27c]
call fcn.0040d380
test eax, eax
jne 0x489896
xor bl, bl
jmp 0x4898c1
lea ecx, [ebp - 0x27c]
call fcn.00404950
cmp esi, eax
je 0x4898bf
call fcn.00403f80
mov edx, eax
cmp dword [eax + 0x14], 8
jb 0x4898b4
mov edx, dword [eax]
push dword [eax + 0x10]
mov ecx, esi
push edx
call fcn.004040a0
mov bl, 1
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x27c]
call fcn.00403b90
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x294]
call fcn.00403b90
mov al, bl
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.0053f5d9
mov esp, ebp
pop ebp
ret 4
Function at 0x489a00
Capabilities:
Contain obfuscated stackstrings
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a8e6e
mov eax, dword fs:[0]
push eax
sub esp, 0x2a8
mov eax, dword [0x60e070]
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 esi, dword [ebp + 8]
lea eax, [ebp - 0x264]
push 0x208
push 0
push eax
mov dword [ebp - 0x5c], 0x61004d
mov ebx, 0x6c
mov dword [ebp - 0x58], 0x720063
mov dword [ebp - 0x54], 0x6d006f
mov dword [ebp - 0x50], 0x640065
mov dword [ebp - 0x4c], 0x46005c
mov dword [ebp - 0x48], 0x61006c
mov dword [ebp - 0x44], 0x680073
mov dword [ebp - 0x40], 0x46005c
mov dword [ebp - 0x3c], 0x61006c
mov dword [ebp - 0x38], 0x680073
mov dword [ebp - 0x34], 0x650048
mov dword [ebp - 0x30], 0x70006c
mov dword [ebp - 0x2c], 0x720065
mov dword [ebp - 0x28], 0x650053
mov dword [ebp - 0x24], 0x760072
mov dword [ebp - 0x20], 0x630069
mov dword [ebp - 0x1c], 0x2e0065
mov dword [ebp - 0x18], 0x780065
mov dword [ebp - 0x14], 0x65
call fcn.005431f0
add esp, 0xc
lea eax, [ebp - 0x264]
push eax
push 0
push 0
push 0x29
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea eax, [ebp - 0x5c]
push eax
lea ecx, [ebp - 0x2b4]
call fcn.00403be0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x264]
push eax
lea ecx, [ebp - 0x29c]
call fcn.00403be0
mov byte [ebp - 4], 1
lea eax, [ebp - 0x2b4]
push eax
lea edx, [ebp - 0x29c]
lea ecx, [ebp - 0x27c]
call fcn.0049c580
add esp, 4
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x29c]
call fcn.00403b90
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x2b4]
call fcn.00403b90
lea ecx, [ebp - 0x27c]
call fcn.004a61e0
test al, al
je 0x489c02
push 4
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [ebp - 0x280], 0
call fcn.0053f5f8
add esp, 4
mov dword [ebp - 0x284], eax
mov byte [ebp - 4], 5
mov dword [eax], 0
mov dword [eax], 0xffffffff
mov byte [ebp - 4], 4
mov dword [ebp - 0x280], eax
mov byte [ebp - 4], 6
lea eax, [ebp - 0x27c]
push 0x80
push 4
push 1
push 0x80000000
push eax
lea ecx, [ebp - 0x280]
call fcn.004d64f0
test al, al
jne 0x489c06
mov byte [ebp - 4], 4
mov esi, dword [ebp - 0x280]
test esi, esi
je 0x489c02
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x489bed
test eax, eax
je 0x489bed
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0
push 4
push esi
call fcn.0053fb46
add esp, 8
mov dword [ebp - 0x280], 0
xor bl, bl
jmp 0x489c4f
push esi
lea ecx, [ebp - 0x280]
call fcn.004d66c0
mov bl, al
mov byte [ebp - 4], 4
mov esi, dword [ebp - 0x280]
test esi, esi
je 0x489c4f
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x489c3a
test eax, eax
je 0x489c3a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0
push 4
push esi
call fcn.0053fb46
add esp, 8
mov dword [ebp - 0x280], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x27c]
call fcn.00403b90
mov al, bl
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.0053f5d9
mov esp, ebp
pop ebp
ret 4
Function at 0x496e30
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5aa53c
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x60e070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
lea edi, [ebx + 0x10]
mov dword [ebp - 0x10], edi
mov dword [ebp - 4], 0
lea esi, [edi + 0x18]
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 4
lea ecx, [esi + 0x48]
call fcn.00403b90
mov byte [ebp - 4], 3
lea ecx, [esi + 0x30]
call fcn.00403b90
mov byte [ebp - 4], 2
lea ecx, [esi + 0x18]
call fcn.00403b90
mov byte [ebp - 4], 0
mov ecx, esi
call fcn.00403b90
mov dword [ebp - 4], 0xffffffff
mov ecx, edi
call fcn.00403b90
push 0x88
push ebx
call fcn.0053fb46
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4975d0
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5aa669
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x60e070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov ebx, ecx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 4], 0
mov dword [ebp - 0x1c], 0
call fcn.0040d460
mov dword [ebp - 4], 0
xor esi, esi
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], 1
test eax, eax
je 0x497782
nop dword [eax]
dec eax
mov dword [ebp + 8], eax
mov al, byte [edi]
inc edi
mov byte [ebp + esi - 0x14], al
inc esi
mov ch, byte [ebp - 0x12]
mov dl, byte [ebp - 0x13]
mov cl, byte [ebp - 0x14]
mov dword [ebp - 0x20], edi
mov byte [ebp - 0xf], ch
mov byte [ebp - 0xd], dl
mov byte [ebp - 0xe], cl
cmp esi, 3
jne 0x4976c4
mov al, cl
xor edi, edi
shr al, 2
and cl, 3
mov byte [ebp - 0x18], al
mov al, dl
shl cl, 4
shr al, 4
add cl, al
mov al, ch
mov byte [ebp - 0x17], cl
mov cl, dl
and cl, 0xf
shr al, 6
shl cl, 2
add cl, al
mov al, ch
mov byte [ebp - 0x16], cl
and al, 0x3f
mov ecx, 0x611bf0
mov byte [ebp - 0x15], al
call fcn.0040d600
mov esi, eax
cmp dword [esi + 0x14], 0x10
mov ecx, esi
jb 0x49769f
mov ecx, dword [esi]
movzx eax, byte [ebp + edi - 0x18]
movzx eax, byte [eax + ecx]
mov ecx, ebx
push eax
call fcn.00447f50
inc edi
cmp edi, 4
jl 0x497695
mov edi, dword [ebp - 0x20]
xor esi, esi
mov dl, byte [ebp - 0xd]
mov cl, byte [ebp - 0xe]
mov ch, byte [ebp - 0xf]
mov eax, dword [ebp + 8]
test eax, eax
jne 0x497630
mov dword [ebp + 8], esi
test esi, esi
je 0x497782
mov eax, esi
cmp esi, 3
jge 0x4976fe
cmp eax, 3
jae 0x497796
mov byte [ebp + eax - 0x14], 0
inc eax
cmp eax, 3
jl 0x4976e4
mov ch, byte [ebp - 0x12]
mov dl, byte [ebp - 0x13]
mov cl, byte [ebp - 0x14]
mov al, cl
xor edi, edi
shr al, 2
and cl, 3
mov byte [ebp - 0x18], al
mov al, dl
shr al, 4
and dl, 0xf
shl cl, 4
add cl, al
shl dl, 2
mov al, ch
mov byte [ebp - 0x17], cl
shr al, 6
and ch, 0x3f
add dl, al
mov byte [ebp - 0x15], ch
lea eax, [esi + 1]
mov byte [ebp - 0x16], dl
mov dword [ebp - 0x20], eax
test eax, eax
jle 0x497768
mov ecx, 0x611bf0
call fcn.0040d600
mov esi, eax
cmp dword [esi + 0x14], 0x10
mov ecx, esi
jb 0x49774e
mov ecx, dword [esi]
movzx eax, byte [ebp + edi - 0x18]
movzx eax, byte [eax + ecx]
mov ecx, ebx
push eax
call fcn.00447f50
inc edi
cmp edi, dword [ebp - 0x20]
jl 0x497744
mov esi, dword [ebp + 8]
cmp esi, 3
jge 0x497782
mov edi, 3
sub edi, esi
push 0x3d
mov ecx, ebx
call fcn.00447f50
sub edi, 1
jne 0x497774
mov eax, ebx
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.0053fc7a
int3
Function at 0x498d30
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5aa9d8
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x60e070]
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, edx
push ecx
lea ecx, [ebp - 0x28]
call fcn.00403c50
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.0049a540
lea ecx, [ebp - 0x28]
call fcn.0040d380
lea ecx, [ebp - 0x28]
cmp eax, 2
jbe 0x498e59
call fcn.004044f0
mov esi, eax
mov ecx, esi
mov eax, dword [esi + 0x14]
cmp eax, 8
jb 0x498d9c
mov ecx, dword [esi]
cmp word [ecx], 0x5c
jne 0x498db6
mov ecx, esi
cmp eax, 8
jb 0x498dab
mov ecx, dword [esi]
cmp word [ecx + 2], 0x5c
je 0x498ed4
mov ecx, esi
cmp eax, 8
jb 0x498dbf
mov ecx, dword [esi]
cmp word [ecx], 0x2f
jne 0x498dd5
mov ecx, esi
cmp eax, 8
jb 0x498dce
mov ecx, dword [esi]
cmp word [ecx + 2], 0x2f
je 0x498e2a
push 0x5c
mov edx, 0x2f
lea ecx, [ebp - 0x28]
call fcn.0049a360
mov eax, dword [esi + 0x14]
add esp, 4
mov ecx, esi
cmp eax, 8
jb 0x498df3
mov ecx, dword [esi]
cmp word [ecx + 2], 0x3a
jne 0x498e2a
mov ecx, esi
cmp eax, 8
jb 0x498e03
mov ecx, dword [esi]
cmp word [ecx + 4], 0x5c
jne 0x498e2a
mov ecx, esi
cmp eax, 8
jb 0x498e13
mov ecx, dword [esi]
cmp word [ecx], 0x61
jb 0x498e2a
cmp eax, 8
jb 0x498e20
mov esi, dword [esi]
cmp word [esi], 0x7a
jbe 0x498eb5
xor bl, bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00403b90
mov al, bl
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.0053f5d9
mov esp, ebp
pop ebp
ret
call fcn.0040d380
cmp eax, 2
jne 0x498e2a
lea ecx, [ebp - 0x28]
call fcn.004044f0
mov edx, eax
mov ecx, dword [eax + 0x14]
cmp ecx, 8
jb 0x498e77
mov edx, dword [eax]
cmp word [edx + 2], 0x3a
jne 0x498e2a
mov edx, eax
cmp ecx, 8
jb 0x498e87
mov edx, dword [eax]
cmp word [edx], 0x61
jb 0x498e2a
cmp ecx, 8
jb 0x498e94
mov eax, dword [eax]
cmp word [eax], 0x7a
ja 0x498e2a
push 0x5d889c
call fcn.00404660
add esp, 4
lea ecx, [ebp - 0x28]
push eax
push 0x5d889c
call fcn.00411ed0
lea ecx, [ebp - 0x28]
call fcn.00403b20
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x498e2a
shr eax, 4
and al, 1
mov byte [edi], al
mov bl, 1
jmp 0x498e2c
Function at 0x499140
Capabilities:
Check os version
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x140
mov eax, dword [0x60e070]
xor eax, esp
mov dword [esp + 0x13c], eax
push esi
mov esi, ecx
push 0x118
push 0
lea eax, [esi + 4]
push eax
call fcn.005431f0
add esp, 0xc
mov dword [esi], 0x11c
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x499282
cmp dword [esi + 4], 6
push edi
ja 0x499196
jne 0x49921e
cmp dword [esi + 8], 2
jb 0x49921e
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, eax
test edi, edi
je 0x49921e
push 0x10
push 1
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x49921e
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x49921e
movups xmm0, xmmword [0x5dc1e0]
push eax
movups xmmword [esp + 0x128], xmm0
movups xmm0, xmmword [0x5dc1f0]
movups xmmword [esp + 0x138], xmm0
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x49921e
lea eax, [esp + 0x124]
push eax
lea ecx, [edi + 6]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x49921e
cmp word [edi + 2], ax
jbe 0x49921e
movzx edx, word [edi + 0x32]
movzx ecx, word [edi + 0x30]
movzx eax, word [edi + 0x36]
mov dword [esi + 4], edx
mov dword [esi + 8], ecx
mov dword [esi + 0xc], eax
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.RtlGetVersion
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x499269
push 0x118
lea eax, [esp + 0x10]
push 0
push eax
call fcn.005431f0
add esp, 0xc
mov dword [esp + 8], 0x11c
lea eax, [esp + 8]
push eax
call edi
test eax, eax
jne 0x499269
mov eax, dword [esp + 0x14]
mov dword [esi + 0xc], eax
pop edi
mov al, 1
pop esi
mov ecx, dword [esp + 0x13c]
xor ecx, esp
call fcn.0053f5d9
add esp, 0x140
ret
mov ecx, dword [esp + 0x140]
xor al, al
pop esi
xor ecx, esp
call fcn.0053f5d9
add esp, 0x140
ret
Function at 0x4a22e0
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ac058
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x60e070]
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 esi, ecx
mov edi, dword [esi + 8]
test edi, edi
jne 0x4a231b
xor al, al
jmp 0x4a23be
add edi, 0x20
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x14], edi
je 0x4a2337
mov eax, dword [edi]
test eax, eax
je 0x4a2337
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], 0
mov eax, dword [esi + 8]
cmp dword [eax + 4], 0
je 0x4a239b
push 1
lea ebx, [esi + 4]
push ebx
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
mov eax, dword [esi + 8]
add eax, 0xc
push eax
push 4
push esi
push 0x4a1bf0
push 0
push 0
call fcn.005636ca
mov ecx, dword [esi + 8]
add esp, 0x18
mov dword [ecx + 0x10], eax
mov eax, dword [esi + 8]
cmp dword [eax + 0x10], 0
jne 0x4a23da
mov eax, dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
push 0xffffffffffffffff
push ebx
call eax
sub eax, 1
jne 0x4a2393
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov ecx, dword [esi + 8]
call fcn.004a1db0
xor bl, bl
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x4a23bc
mov eax, dword [edi]
test eax, eax
je 0x4a23b5
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebp - 0x14], 0
mov al, bl
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.0053f5d9
mov esp, ebp
pop ebp
ret
mov byte [eax + 8], 1
mov eax, dword [esi + 8]
mov ecx, dword [eax + 0x24]
test ecx, ecx
je 0x4a23f2
push ecx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, dword [esi + 8]
push dword [eax + 0x10]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
je 0x4a237d
mov bl, 1
jmp 0x4a239d