joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48d760
Capabilities:
Contain obfuscated stackstrings
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5386fe
mov eax, dword fs:[0]
push eax
sub esp, 0x2a8
mov eax, dword [0x58a088]
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.004e48c0
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.00402a40
mov dword [ebp - 4], 0
lea eax, [ebp - 0x264]
push eax
lea ecx, [ebp - 0x29c]
call fcn.00402a40
mov byte [ebp - 4], 1
lea eax, [ebp - 0x2b4]
push eax
lea eax, [ebp - 0x29c]
push eax
lea eax, [ebp - 0x27c]
push eax
call fcn.0048f1b0
add esp, 0xc
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x29c]
call fcn.00402a30
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x2b4]
call fcn.00402a30
lea eax, [ebp - 0x27c]
push eax
call fcn.0048de30
add esp, 4
test al, al
je 0x48d968
push 4
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [ebp - 0x280], 0
call fcn.004e2005
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.004a61d0
test al, al
jne 0x48d96c
mov byte [ebp - 4], 4
mov esi, dword [ebp - 0x280]
test esi, esi
je 0x48d968
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x48d953
test eax, eax
je 0x48d953
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0
push 4
push esi
call fcn.004e2035
add esp, 8
mov dword [ebp - 0x280], 0
xor bl, bl
jmp 0x48d9b5
push esi
lea ecx, [ebp - 0x280]
call fcn.004a63b0
mov bl, al
mov byte [ebp - 4], 4
mov esi, dword [ebp - 0x280]
test esi, esi
je 0x48d9b5
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x48d9a0
test eax, eax
je 0x48d9a0
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0
push 4
push esi
call fcn.004e2035
add esp, 8
mov dword [ebp - 0x280], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x27c]
call fcn.00402a30
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.004e1ff4
mov esp, ebp
pop ebp
ret 4
Function at 0x48e4d0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5388c0
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x58a088]
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, ecx
call fcn.00404470
test al, al
je 0x48e50d
xor al, al
jmp 0x48e6cb
push edi
call fcn.0048df40
add esp, 4
test al, al
je 0x48e521
mov al, 1
jmp 0x48e6cb
push 0
mov ecx, edi
call fcn.00403390
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push eax
call ebx
test eax, eax
jne 0x48e570
lea ecx, [ebp - 0x28]
call fcn.00402a90
mov dword [ebp - 4], 0
lea edx, [ebp - 0x28]
mov ecx, edi
call fcn.004b0950
test al, al
je 0x48e561
push 0
lea ecx, [ebp - 0x28]
call fcn.00403390
push eax
call ebx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00402a30
push edi
call fcn.0048df40
add esp, 4
test al, al
jne 0x48e51a
mov ecx, edi
call fcn.00404600
xor esi, esi
mov dword [ebp - 0x44], eax
test eax, eax
je 0x48e66c
mov ecx, edi
call fcn.00402ab0
mov ebx, eax
nop word [eax + eax]
mov ecx, dword [ebx + 0x14]
mov eax, ebx
cmp ecx, 8
jb 0x48e5ac
mov eax, dword [ebx]
mov edx, 0x2f
cmp dx, word [eax + esi*2]
mov edx, 0x5c
je 0x48e5cf
mov eax, ebx
cmp ecx, 8
jb 0x48e5c5
mov eax, dword [ebx]
cmp dx, word [eax + esi*2]
jne 0x48e65c
push esi
push 0
lea eax, [ebp - 0x28]
mov ecx, edi
push eax
call fcn.00404350
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.00404470
test al, al
jne 0x48e64d
lea eax, [ebp - 0x28]
push eax
call fcn.0048dd20
add esp, 4
test al, al
jne 0x48e64d
push 0
lea ecx, [ebp - 0x28]
call fcn.00403390
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x48e64d
lea ecx, [ebp - 0x40]
call fcn.00402a90
mov byte [ebp - 4], 2
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x28]
call fcn.004b0950
test al, al
je 0x48e641
push 0
lea ecx, [ebp - 0x40]
call fcn.00403390
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.00402a30
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00402a30
inc esi
cmp esi, dword [ebp - 0x44]
jb 0x48e5a0
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push edi
call fcn.0048dd20
add esp, 4
test al, al
jne 0x48e6c2
push 0
mov ecx, edi
call fcn.00403390
push eax
call ebx
test eax, eax
jne 0x48e6c2
lea ecx, [ebp - 0x40]
call fcn.00402a90
mov dword [ebp - 4], 3
lea edx, [ebp - 0x40]
mov ecx, edi
call fcn.004b0950
test al, al
je 0x48e6b3
push 0
lea ecx, [ebp - 0x40]
call fcn.00403390
push eax
call ebx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00402a30
push edi
call fcn.0048df40
add esp, 4
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.004e1ff4
mov esp, ebp
pop ebp
ret
Function at 0x48f420
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x57d808
push 0x4e4ad0
mov eax, dword fs:[0]
push eax
sub esp, 0x430
mov eax, dword [0x58a088]
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 - 0x18], esp
mov esi, edx
mov edi, ecx
mov dword [ebp - 0x438], edi
mov dword [ebp - 0x43c], esi
mov dword [ebp - 4], 0
mov ecx, esi
call fcn.00412b10
mov ecx, edi
call fcn.0048f540
mov bl, al
mov byte [ebp - 0x431], bl
mov dword [ebp - 4], 0xfffffffe
jmp 0x48f4b3
test bl, bl
jne 0x48f522
cmp edi, 0x1a
jne 0x48f522
mov ecx, esi
call fcn.00412b10
push 0x410
push 0
lea eax, [ebp - 0x430]
push eax
call fcn.004e48c0
add esp, 0xc
push 0x207
lea eax, [ebp - 0x430]
push eax
push str.APPDATA
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea eax, [ebp - 0x430]
push eax
call fcn.00402d30
add esp, 4
push eax
lea eax, [ebp - 0x430]
push eax
mov ecx, esi
call fcn.00402b20
mov ecx, esi
call fcn.00404470
movzx ebx, bl
mov ecx, 1
test al, al
cmove ebx, ecx
mov al, bl
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.004e1ff4
mov esp, ebp
pop ebp
ret
Function at 0x48faf0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x57d8d0
push 0x4e4ad0
mov eax, dword fs:[0]
push eax
sub esp, 0x43c
mov eax, dword [0x58a088]
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 - 0x18], esp
mov edi, ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x448], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x444], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x440], eax
xor bl, bl
mov byte [ebp - 0x439], bl
push 0x412
push 0
lea eax, [ebp - 0x438]
push eax
call fcn.004e48c0
add esp, 0xc
lea eax, [ebp - 0x438]
push eax
mov ecx, edi
call fcn.0048f8e0
cmp byte [edi + 0x30], bl
je 0x48fba5
lea eax, [ebp - 0x438]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x48fbcd
test al, 0x10
jne 0x48fbcd
call fcn.00493900
push ecx
lea ecx, [ebp - 0x438]
push ecx
mov ecx, eax
call fcn.00493a00
test al, al
je 0x48fbcd
mov dword [edi + 0x34], 0
lea eax, [ebp - 0x438]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
mov dword [ebp - 4], 0
test esi, esi
jne 0x48fbd1
mov dword [ebp - 4], 0xfffffffe
xor al, al
jmp 0x48fc41
push str.ExtractArchive
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x48fc0c
mov dword [edi + 0x34], esi
push edi
push 0x48f7e0
push dword [ebp - 0x440]
push dword [ebp - 0x444]
push dword [ebp - 0x448]
call eax
add esp, 0x14
test eax, eax
sete bl
mov byte [ebp - 0x439], bl
mov dword [edi + 0x34], 0
mov dword [ebp - 4], 0xfffffffe
jmp 0x48fc34
test esi, esi
je 0x48fc3f
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov al, bl
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.004e1ff4
mov esp, ebp
pop ebp
ret 0xc
Function at 0x48fc60
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x57d8f0
push 0x4e4ad0
mov eax, dword fs:[0]
push eax
sub esp, 0x43c
mov eax, dword [0x58a088]
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 - 0x18], esp
mov edi, ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x448], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x444], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x440], eax
xor bl, bl
mov byte [ebp - 0x439], bl
push 0x412
push 0
lea eax, [ebp - 0x438]
push eax
call fcn.004e48c0
add esp, 0xc
lea eax, [ebp - 0x438]
push eax
mov ecx, edi
call fcn.0048f8e0
cmp byte [edi + 0x30], bl
je 0x48fd15
lea eax, [ebp - 0x438]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x48fd3d
test al, 0x10
jne 0x48fd3d
call fcn.00493900
push ecx
lea ecx, [ebp - 0x438]
push ecx
mov ecx, eax
call fcn.00493a00
test al, al
je 0x48fd3d
mov dword [edi + 0x34], 0
lea eax, [ebp - 0x438]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
mov dword [ebp - 4], 0
test esi, esi
jne 0x48fd41
mov dword [ebp - 4], 0xfffffffe
xor al, al
jmp 0x48fdb4
push str.ExtractArchive2
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x48fd7f
mov dword [edi + 0x34], esi
push dword [edi + 0x38]
push edi
push 0x48f7e0
push dword [ebp - 0x440]
push dword [ebp - 0x444]
push dword [ebp - 0x448]
call eax
add esp, 0x18
test eax, eax
sete bl
mov byte [ebp - 0x439], bl
mov dword [edi + 0x34], 0
mov dword [ebp - 4], 0xfffffffe
jmp 0x48fda7
test esi, esi
je 0x48fdb2
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov al, bl
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.004e1ff4
mov esp, ebp
pop ebp
ret 0xc

Function at 0x491f30
Capabilities:
Get common file path

Disassembly:
sub esp, 0x418
mov eax, dword [0x58a088]
xor eax, esp
mov dword [esp + 0x414], eax
push esi
mov esi, ecx
call fcn.00412b10
push 0x412
lea eax, [esp + 8]
push 0
push eax
call fcn.004e48c0
add esp, 0xc
lea eax, [esp + 4]
push eax
push 0x208
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
jne 0x491f8c
xor al, al
pop esi
mov ecx, dword [esp + 0x414]
xor ecx, esp
call fcn.004e1ff4
add esp, 0x418
ret
cmp eax, 0x208
jae 0x491f74
xor eax, eax
mov word [esp + 0x414], ax
lea eax, [esp + 4]
push eax
call fcn.00402d30
add esp, 4
mov ecx, esi
push eax
lea eax, [esp + 8]
push eax
call fcn.00402b20
mov ecx, dword [esp + 0x418]
mov al, 1
pop esi
xor ecx, esp
call fcn.004e1ff4
add esp, 0x418
ret
Function at 0x492460
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x539006
mov eax, dword fs:[0]
push eax
sub esp, 0x82c
mov eax, dword [0x58a088]
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 dword [ebp - 0x820], ecx
lea eax, [ebp - 0x810]
push eax
push 0x3fe
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov ebx, eax
mov dword [ebp - 0x818], ebx
test ebx, ebx
je 0x49253e
lea edi, [ebp - 0x810]
mov dword [ebp - 0x814], 0
xor esi, esi
mov dword [ebp - 0x81c], edi
mov dword [ebp - 0x814], esi
mov dword [ebp - 4], esi
cmp ebx, 0x3fe
jbe 0x49255c
xor ecx, ecx
lea eax, [ebx + 2]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004e2852
add esp, 4
mov dword [ebp - 0x81c], eax
mov edi, eax
mov esi, edi
mov dword [ebp - 0x814], esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
je 0x49252a
cmp eax, ebx
ja 0x49252a
xor ecx, ecx
mov ebx, eax
mov dword [edi + eax*2], ecx
mov dword [ebp - 0x818], ebx
jmp 0x49258a
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x49253e
push edi
call fcn.004e22dd
add esp, 4
xor al, al
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.004e1ff4
mov esp, ebp
pop ebp
ret
lea eax, [ebx + ebx]
cmp eax, 0x800
jae 0x492615
xor ecx, ecx
mov word [ebp + eax - 0x810], cx
add eax, 2
cmp eax, 0x800
jae 0x492615
mov word [ebp + eax - 0x810], cx
xor ecx, ecx
xor edi, edi
test ebx, ebx
je 0x4925fa
mov esi, dword [ebp - 0x81c]
mov ebx, 2
mov eax, dword [ebp - 0x818]
cmp word [esi + ebx - 2], 0
jne 0x4925ec
cmp ecx, edi
je 0x4925ec
lea eax, [esi + ecx*2]
push eax
lea ecx, [ebp - 0x838]
call fcn.00402a40
mov byte [ebp - 4], 1
lea eax, [ebp - 0x838]
mov ecx, dword [ebp - 0x820]
push eax
call fcn.004129e0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x838]
call fcn.00402a30
mov eax, dword [ebp - 0x818]
lea ecx, [edi + 1]
inc edi
add ebx, 2
cmp edi, eax
jb 0x4925a3
mov esi, dword [ebp - 0x814]
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x49260e
push esi
call fcn.004e22dd
add esp, 4
mov al, 1
jmp 0x492540
call fcn.004e2671
int3
Function at 0x492af0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x539192
mov eax, dword fs:[0]
push eax
sub esp, 0xc4
mov eax, dword [0x58a088]
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, ecx
mov dword [ebp - 0xc8], ebx
mov dword [ebp - 4], 0
xorps xmm0, xmm0
mov dword [ebp - 0xd0], ebx
mov dword [ebp - 0xcc], 0
movlpd qword [ebp - 0xc0], xmm0
call fcn.00402a90
mov dword [ebp - 4], 0
lea ecx, [ebp - 0xb8]
mov dword [ebp - 0xcc], 1
call fcn.00402a90
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x1c]
push 0xc
call fcn.00403e50
lea ecx, [ebp - 0x1c]
call fcn.0040a110
mov byte [ebp - 4], 2
call fcn.00492460
lea ecx, [ebp - 0x1c]
xor esi, esi
call fcn.00413780
test eax, eax
je 0x492cdc
call fcn.00402ab0
mov ecx, eax
xor edi, edi
mov eax, dword [ebp - 0xbc]
mov dword [ebp - 0xc4], eax
mov eax, dword [ebp - 0xc0]
mov dword [ebp - 0xc8], ecx
mov dword [ebp - 0xbc], eax
mov eax, dword [ecx]
lea ecx, [ebp - 0x34]
add eax, edi
push eax
call fcn.00404520
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x34]
call fcn.00403390
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x492cb6
lea ecx, [ebp - 0xa0]
call fcn.00402a90
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x88]
call fcn.00402a90
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x70]
call fcn.00402a90
mov byte [ebp - 4], 7
lea edx, [ebp - 0xa0]
lea ecx, [ebp - 0x34]
call fcn.00492620
test al, al
jne 0x492c3b
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x70]
call fcn.00402a30
mov byte [ebp - 4], 8
jmp 0x492c9c
mov ecx, dword [ebp - 0x44]
cmp ecx, dword [ebp - 0xc4]
jb 0x492c8c
mov eax, dword [ebp - 0x48]
ja 0x492c53
cmp eax, dword [ebp - 0xbc]
jbe 0x492c8c
mov dword [ebp - 0xbc], eax
lea eax, [ebp - 0x34]
push eax
mov dword [ebp - 0xc4], ecx
call fcn.00402d80
add esp, 4
cmp ebx, eax
je 0x492c8c
lea ecx, [ebp - 0x34]
call fcn.00402ab0
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x492c81
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
mov ecx, ebx
call fcn.00402b20
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x70]
call fcn.00402a30
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x88]
call fcn.00402a30
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xa0]
call fcn.00402a30
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x34]
call fcn.00402a30
lea ecx, [ebp - 0x1c]
inc esi
add edi, 0x18
call fcn.00413780
mov ecx, dword [ebp - 0xc8]
cmp esi, eax
jb 0x492bc4
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c]
call fcn.0040a150
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xb8]
call fcn.00402a30
mov eax, ebx
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.004e1ff4
mov esp, ebp
pop ebp
ret
Function at 0x4989e0
Capabilities:
Check os version
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x140
mov eax, dword [0x58a088]
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.004e48c0
add esp, 0xc
mov dword [esi], 0x11c
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x498b22
cmp dword [esi + 4], 6
push edi
ja 0x498a36
jne 0x498abe
cmp dword [esi + 8], 2
jb 0x498abe
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, eax
test edi, edi
je 0x498abe
push 0x10
push 1
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x498abe
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x498abe
movups xmm0, xmmword [0x5607ac]
push eax
movups xmmword [esp + 0x128], xmm0
movups xmm0, xmmword [0x5607bc]
movups xmmword [esp + 0x138], xmm0
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x498abe
lea eax, [esp + 0x124]
push eax
lea ecx, [edi + 6]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x498abe
cmp word [edi + 2], ax
jbe 0x498abe
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 0x498b09
push 0x118
lea eax, [esp + 0x10]
push 0
push eax
call fcn.004e48c0
add esp, 0xc
mov dword [esp + 8], 0x11c
lea eax, [esp + 8]
push eax
call edi
test eax, eax
jne 0x498b09
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.004e1ff4
add esp, 0x140
ret
mov ecx, dword [esp + 0x140]
xor al, al
pop esi
xor ecx, esp
call fcn.004e1ff4
add esp, 0x140
ret
Function at 0x4a2770
Capabilities:
Check for peb ntglobalflag flag

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53b124
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x58a088]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
call fcn.00402a90
mov dword [ebp - 4], 0
lea ecx, [esi + 0x18]
call fcn.00402a90
mov byte [ebp - 4], 1
lea ecx, [esi + 0x30]
call fcn.00402a90
mov byte [ebp - 4], 2
lea ecx, [esi + 0x48]
call fcn.00402a90
mov byte [ebp - 4], 3
lea ecx, [esi + 0x70]
mov word [esi + 0x60], 0x101
mov dword [esi + 0x64], 0
mov dword [esi + 0x68], 0
mov dword [esi + 0x6c], 0
call fcn.00402a90
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4a3030
Capabilities:
Check os version

Disassembly:
sub esp, 0x120
mov eax, dword [0x58a088]
xor eax, esp
mov dword [esp + 0x11c], eax
push esi
push 1
mov esi, ecx
call fcn.004e2005
mov dword [esi], eax
push 0x118
push 0
mov byte [eax], 0
lea eax, [esp + 0x14]
push eax
call fcn.004e48c0
add esp, 0x10
mov dword [esp + 4], 0x11c
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
mov eax, esi
je 0x4a308c
cmp dword [esp + 8], 6
mov ecx, dword [esi]
setae dl
mov byte [ecx], dl
mov ecx, dword [esp + 0x120]
pop esi
xor ecx, esp
call fcn.004e1ff4
add esp, 0x120
ret
Function at 0x4a62c0
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [ecx]
test eax, eax
je 0x4a62f8
mov edx, dword [esp + 4]
test edx, edx
je 0x4a62f8
cmp dword [eax], 0xffffffff
je 0x4a62f8
mov eax, dword [esp + 0xc]
push 0
push eax
push dword [esp + 0x10]
mov dword [eax], 0
mov eax, dword [ecx]
push edx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4a62f8
mov al, 1
ret 0xc
xor al, al
ret 0xc

Function at 0x4a6300
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [ecx]
push esi
push edi
test eax, eax
je 0x4a633a
mov ecx, dword [esp + 0xc]
test ecx, ecx
je 0x4a633a
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x4a633a
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x10]
push 0
push esi
push edi
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4a633a
cmp edi, dword [esi]
jne 0x4a633a
pop edi
mov al, 1
pop esi
ret 0xc
pop edi
xor al, al
pop esi
ret 0xc

Function at 0x4a63b0
Capabilities:
Get file size

Disassembly:
sub esp, 8
mov eax, dword [0x58a088]
xor eax, esp
mov dword [esp + 4], eax
mov eax, dword [ecx]
push esi
push edi
mov edi, dword [esp + 0x14]
test eax, eax
je 0x4a6413
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x4a6413
lea ecx, [esp + 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4a63ee
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4a6413
mov eax, dword [esp + 8]
xor ecx, ecx
add ecx, esi
mov dword [edi], ecx
adc eax, 0
mov dword [edi + 4], eax
mov al, 1
pop edi
pop esi
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.004e1ff4
add esp, 8
ret 4
mov ecx, dword [esp + 0xc]
xor al, al
pop edi
pop esi
xor ecx, esp
call fcn.004e1ff4
add esp, 8
ret 4

Function at 0x4a6510
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
mov esi, ecx
push edi
cmp dword [esi], 0
je 0x4a65be
lea eax, [esp + 0x18]
xorps xmm0, xmm0
push eax
push 1
push 0
push 0
movlpd qword [esp + 0x28], xmm0
call fcn.004a6430
test al, al
je 0x4a65be
mov edi, dword [ebp + 0xc]
lea eax, [esp + 0x10]
push eax
push 0
push edi
push dword [ebp + 8]
xorps xmm0, xmm0
mov ecx, esi
movlpd qword [esp + 0x20], xmm0
call fcn.004a6430
test al, al
je 0x4a65be
mov eax, dword [ebp + 8]
xor bl, bl
cmp dword [esp + 0x10], eax
jne 0x4a6594
cmp dword [esp + 0x14], edi
jne 0x4a6594
mov eax, dword [esi]
test eax, eax
jne 0x4a6581
xor bl, bl
jmp 0x4a6594
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x4a657d
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
setne bl
lea eax, [esp + 0x10]
xorps xmm0, xmm0
push eax
push 0
push dword [esp + 0x24]
mov ecx, esi
movlpd qword [esp + 0x1c], xmm0
push dword [esp + 0x24]
call fcn.004a6430
mov al, bl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 8