joyce8/EMBER2024-capa huggingface dataset:
Function at 0x450aaa
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4c8a40
mov eax, dword fs:[0]
push eax
sub esp, 0x110
mov eax, dword [0x509590]
xor eax, esp
mov dword [esp + 0x108], eax
push ebx
push esi
push edi
mov eax, dword [0x509590]
xor eax, esp
push eax
lea eax, [esp + 0x120]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
push eax
lea eax, [esp + 0x100]
push eax
call fcn.00450a0b
pop ecx
pop ecx
xor edi, edi
mov dword [esp + 0x128], edi
cmp dword [esp + 0x110], edi
je 0x450c2e
cmp dword [esp + 0x114], 8
mov eax, dword [esp + 0x100]
jae 0x450b2b
lea eax, [esp + 0x100]
push eax
call dword [0x50cac0]
cmp eax, 0xffffffff
jne 0x450c23
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 2
jb 0x450b65
cmp esi, 3
ja 0x450b65
xor bl, bl
push edi
push 1
lea esi, [esp + 0x104]
call fcn.004075b1
mov al, bl
jmp 0x450c3f
cmp esi, edi
je 0x450c2e
lea eax, [esp + 0x74]
push eax
call fcn.00405267
lea eax, [esp + 0xfc]
push eax
push ecx
lea eax, [esp + 0x84]
push str.GetFileAttributesW:
push eax
mov byte [esp + 0x138], 1
call fcn.00405d69
add esp, 0xc
push eax
call fcn.00405eb8
pop ecx
pop ecx
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x78]
call fcn.004052f9
mov byte [esp + 0x128], 2
cmp dword [eax + 0x18], 8
jb 0x450bc6
mov eax, dword [eax + 4]
jmp 0x450bc9
add eax, 4
push eax
lea eax, [esp + 0x40]
push eax
mov eax, esi
call fcn.00425a0e
push eax
lea eax, [esp + 0x64]
push eax
mov byte [esp + 0x138], 3
call fcn.004167e3
add esp, 0x10
mov byte [esp + 0x128], 4
cmp dword [eax + 0x18], 0x10
jb 0x450bff
mov eax, dword [eax + 4]
jmp 0x450c02
add eax, 4
mov dword [esp + 0x10], eax
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x18]
call fcn.0048ec72
push 0x4f7698
lea eax, [esp + 0x18]
push eax
call fcn.0048febc
test al, 0x10
je 0x450c2e
mov bl, 1
jmp 0x450b4f
push edi
push 1
lea esi, [esp + 0x104]
call fcn.004075b1
xor al, al
mov ecx, dword [esp + 0x120]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x108]
xor ecx, esp
call fcn.0048e32a
mov esp, ebp
pop ebp
ret
Function at 0x4514df
Capabilities:
Check if file exists

Disassembly:
push ebp
sub esp, 0x288
lea ebp, [esp - 4]
mov eax, dword [0x509590]
xor eax, ebp
mov dword [ebp + 0x288], eax
push 0x114
mov eax, 0x4c88b6
call fcn.004981ed
mov eax, dword [ebp + 0x294]
push eax
xor esi, esi
mov dword [ebp - 4], esi
lea eax, [ebp + 0x250]
push eax
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], esi
call fcn.00450a0b
pop ecx
pop ecx
xor edi, edi
inc edi
mov dword [ebp - 4], edi
call fcn.00451c48
mov dword [ebx + 4], eax
mov dword [ebx + 8], esi
push 0x24c
lea eax, [ebp + 4]
push esi
push eax
mov dword [ebp - 0x18], edi
mov dword [ebp], esi
call fcn.0048e2b0
push 0x4e257c
lea eax, [ebp + 0x250]
push eax
lea eax, [ebp - 0x60]
push eax
call fcn.0040c4ab
mov byte [ebp - 4], 2
push dword [ebp - 0x14]
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.00411696
add esp, 0x24
cmp dword [eax + 0x18], 8
jb 0x451583
mov eax, dword [eax + 4]
jmp 0x451586
add eax, 4
lea ecx, [ebp]
push ecx
push eax
call dword [0x50ca94]
mov dword [ebp - 0x10], eax
push esi
push edi
lea esi, [ebp - 0x44]
call fcn.004075b1
push 0
push edi
lea esi, [ebp - 0x60]
mov byte [ebp - 4], 4
call fcn.004075b1
cmp dword [ebp - 0x10], 0xffffffff
je 0x45161f
lea eax, [ebp + 0x2c]
push eax
lea eax, [ebp + 0x26c]
call fcn.004078c5
push 0x4e2668
lea esi, [ebp + 0x26c]
mov byte [ebp - 4], 5
call fcn.0042461f
test eax, eax
je 0x4515fc
push 0x4eb60c
call fcn.0042461f
test eax, eax
je 0x4515fc
test byte [ebp], 0x10
jne 0x4515fc
mov eax, dword [ebx + 4]
mov ecx, esi
push ecx
push eax
push ebx
push ebx
call fcn.00451bd4
push 0
push edi
lea esi, [ebp + 0x26c]
mov byte [ebp - 4], 4
call fcn.004075b1
lea eax, [ebp]
push eax
push dword [ebp - 0x10]
call dword [0x50ca98]
test eax, eax
jne 0x4515b3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 2
jb 0x45163e
cmp esi, 3
jbe 0x4516dc
cmp esi, 0x12
je 0x4516dc
test esi, esi
je 0x4516dc
lea eax, [ebp - 0x120]
push eax
call fcn.00405267
lea eax, [ebp - 0x118]
push str.Error_in_FindFirst_NextFile
push eax
mov byte [ebp - 4], 6
call fcn.0040c2c5
pop ecx
pop ecx
lea eax, [ebp + 0x26c]
push eax
lea ecx, [ebp - 0x120]
call fcn.004052f9
mov byte [ebp - 4], 7
cmp dword [eax + 0x18], 8
jb 0x45168a
mov eax, dword [eax + 4]
jmp 0x45168d
add eax, 4
push eax
lea eax, [ebp - 0x98]
push eax
mov eax, esi
call fcn.00425a0e
push eax
lea eax, [ebp - 0x7c]
push eax
mov byte [ebp - 4], 8
call fcn.004167e3
add esp, 0x10
mov byte [ebp - 4], 9
cmp dword [eax + 0x18], 0x10
jb 0x4516bc
mov eax, dword [eax + 4]
jmp 0x4516bf
add eax, 4
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x28]
call fcn.0048ec72
push 0x4f7698
lea eax, [ebp - 0x28]
push eax
call fcn.0048febc
cmp dword [ebp - 0x10], 0xffffffff
je 0x4516eb
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0
push edi
lea esi, [ebp + 0x250]
call fcn.004075b1
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 + 0x288]
xor ecx, ebp
call fcn.0048e32a
add ebp, 0x28c
leave
ret
Function at 0x452638
Capabilities:
Get token membership

Disassembly:
push 0x10c
mov eax, 0x4c86b4
call fcn.00498256
xor ebx, ebx
lea eax, [ebp - 0x2c]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x18]
push eax
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x2c], ebx
mov byte [ebp - 0x18], bl
mov byte [ebp - 0x17], bl
mov byte [ebp - 0x16], bl
mov byte [ebp - 0x15], bl
mov byte [ebp - 0x14], bl
mov byte [ebp - 0x13], 5
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x452717
lea eax, [ebp - 0x118]
push eax
call fcn.00405267
lea eax, [ebp - 0x110]
push 0x4eb778
push eax
mov dword [ebp - 4], ebx
call fcn.00405d69
pop ecx
pop ecx
lea eax, [ebp - 0x8c]
push eax
lea ecx, [ebp - 0x118]
call fcn.004052f9
mov byte [ebp - 4], 1
cmp dword [eax + 0x18], 8
jb 0x4526ca
mov eax, dword [eax + 4]
jmp 0x4526cd
add eax, 4
push eax
lea eax, [ebp - 0x54]
push eax
call fcn.00425a3b
push eax
lea eax, [ebp - 0x70]
push eax
mov byte [ebp - 4], 2
call fcn.004167e3
add esp, 0x10
mov byte [ebp - 4], 3
cmp dword [eax + 0x18], 0x10
jb 0x4526f7
mov eax, dword [eax + 4]
jmp 0x4526fa
add eax, 4
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x38]
call fcn.0048ec72
push 0x4f7698
lea eax, [ebp - 0x38]
push eax
call fcn.0048febc
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x28], eax
lea ecx, [ebp - 0x24]
push ecx
push eax
push ebx
mov dword [ebp - 4], 4
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x45279f
lea eax, [ebp - 0x118]
push eax
call fcn.00405267
lea eax, [ebp - 0x110]
push 0x4eb74c
push eax
mov byte [ebp - 4], 5
call fcn.00405d69
pop ecx
pop ecx
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x118]
call fcn.004052f9
mov byte [ebp - 4], 6
cmp dword [eax + 0x18], 8
jb 0x452775
mov eax, dword [eax + 4]
jmp 0x452778
add eax, 4
push eax
lea eax, [ebp - 0x54]
push eax
call fcn.00425a3b
push eax
lea eax, [ebp - 0x8c]
push eax
mov byte [ebp - 4], 7
call fcn.004167e3
add esp, 0x10
mov byte [ebp - 4], 8
jmp 0x4526ec
cmp dword [ebp - 0x24], ebx
setne byte [ebp - 0x19]
cmp dword [ebp - 0x28], ebx
je 0x4527b4
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov al, byte [ebp - 0x19]
call fcn.004982d9
ret
Function at 0x4555f2
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x52c
mov eax, dword [0x509590]
mov dword [ebp - 4], eax
mov eax, dword [0x50ff1c]
push ebx
xor ebx, ebx
cmp eax, ebx
je 0x455621
call eax
cmp eax, ebx
mov dword [ebp - 0x528], eax
jne 0x4557ae
push dword [section..data]
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, ebx
mov dword [ebp - 0x528], eax
je 0x4557ae
push esi
mov esi, 0x104
push esi
lea eax, [ebp - 0x41c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jne 0x455659
mov byte [ebp - 0x41c], bl
push esi
lea eax, [ebp - 0x524]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
jne 0x455671
mov byte [ebp - 0x524], bl
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push esi
lea eax, [ebp - 0x10c]
push eax
push dword [ebp - 0x528]
call edi
test eax, eax
jne 0x455692
mov byte [ebp - 0x10c], bl
push esi
lea eax, [ebp - 0x214]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call edi
test eax, eax
pop edi
jne 0x4556af
mov byte [ebp - 0x214], bl
lea eax, [ebp - 0x314]
push eax
lea eax, [ebp - 0x52c]
push eax
lea eax, [ebp - 0x214]
push eax
call fcn.00455555
lea eax, [ebp - 0x52c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4556d2
sub eax, edx
mov ecx, eax
lea eax, [ebp - 0x314]
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x4556e6
sub eax, esi
add eax, ecx
mov byte [ebp + eax - 0x213], bl
lea eax, [ebp - 0x314]
push eax
lea eax, [ebp - 0x52c]
push eax
lea eax, [ebp - 0x10c]
push eax
call fcn.00455555
lea eax, [ebp - 0x52c]
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x45571b
sub eax, ecx
lea ecx, [ebp - 0x314]
lea esi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
cmp dl, bl
jne 0x45572d
sub ecx, esi
add ecx, eax
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x524]
push eax
mov byte [ebp + ecx - 0x10b], bl
call fcn.00455486
test eax, eax
pop esi
jne 0x45576e
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x524]
push eax
call fcn.00455486
test eax, eax
jne 0x45579c
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x41c]
push eax
call fcn.00455486
test eax, eax
jne 0x4557ae
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x41c]
push eax
call fcn.00455486
test eax, eax
je 0x4557ae
push dword [ebp - 0x528]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [ebp - 0x528], ebx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x528]
pop ebx
call fcn.0048e32a
leave
ret
Function at 0x459970
Capabilities:
Access peb ldr_data
Get ntdll base address

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

Function at 0x46768c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x4676cf
call fcn.0047176b
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [0x50ca9c]
test eax, eax
je 0x4676cf
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x4676ea
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.00467246
test ebx, ebx
mov esi, eax
je 0x4676e8
test edi, edi
je 0x4676e8
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x4707da
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x24
mov eax, 0x4c2697
call fcn.00498220
mov esi, ecx
mov dword [ebp - 0x20], esi
mov eax, dword [esi + 0x60]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0x5c]
mov dword [ebp - 0x18], eax
call fcn.0047176b
mov edi, dword [eax + 0xc]
xor ebx, ebx
cmp dword [esi + 0x58], ebx
je 0x470825
call fcn.0047176b
mov edi, dword [eax + 0xc]
push 5
push dword [esi + 0x58]
push edi
call dword [0x50ca9c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], ebx
je 0x470836
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], ebx
jne 0x470843
or eax, 0xffffffff
jmp 0x47099f
mov ecx, esi
call fcn.004702e6
mov dword [ebp - 0x14], eax
call fcn.00464102
and dword [ebp - 0x28], ebx
cmp dword [ebp - 0x14], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], ebx
je 0x4708c1
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp dword [ebp - 0x14], eax
je 0x4708c1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x4708c1
push 0
push dword [ebp - 0x14]
call dword [0x50cb90]
mov dword [ebp - 0x2c], 1
call fcn.00404403
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0x24], ebx
je 0x4708c1
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x120]
test eax, eax
je 0x4708c1
mov ecx, ebx
call fcn.0045fcf2
test eax, eax
je 0x4708c1
push 0
mov ecx, ebx
call fcn.0045fd0d
mov dword [ebp - 0x28], 1
and dword [ebp - 4], 0
push esi
call fcn.0046631f
push dword [ebp - 0x14]
call fcn.0046405a
push edi
push eax
push dword [ebp - 0x1c]
mov ecx, esi
call fcn.004705e2
xor edi, edi
cmp eax, edi
je 0x47091e
test byte [esi + 0x3c], 0x10
je 0x470908
push 4
pop edi
mov ecx, esi
call fcn.0045fb8c
test ax, 0x100
je 0x4708fe
push 5
pop edi
push edi
mov ecx, esi
call fcn.00463b97
xor edi, edi
cmp dword [esi + 0x20], edi
je 0x47091e
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.00460028
or dword [ebp - 4], 0xffffffff
jmp 0x470949
cmp dword [ebp - 0x28], edi
je 0x470957
push 1
mov ecx, ebx
call fcn.0045fd0d
cmp dword [ebp - 0x2c], edi
je 0x470967
push 1
push dword [ebp - 0x14]
call dword [0x50cb90]
cmp dword [ebp - 0x14], edi
je 0x470980
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x20]
jne 0x470980
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x60]
mov ecx, esi
call fcn.00470320
cmp dword [esi + 0x58], edi
je 0x47099c
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [esi + 0x44]
call fcn.004982c5
ret

Function at 0x48e32a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x509590]
jne 0x48e334
repz ret
jmp fcn.0049c8fe
Function at 0x49074a
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
je 0x490787
cmp dword [ebp + 0x14], edi
je 0x490787
cmp ecx, edi
jne 0x49078e
call fcn.004917ab
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.0048f0aa
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x4907a2
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x4907c3
cmp ebx, 0xffffffff
je 0x4907b2
push ebx
push edi
push ecx
call fcn.0048e2b0
add esp, 0xc
cmp esi, edi
je 0x49076f
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x49076f
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x4907df
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x4907e6
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x4908d7
test word [esi + 0xc], 0x10c
je 0x49083a
mov eax, dword [esi + 4]
test eax, eax
je 0x49083a
jl 0x490938
cmp ebx, eax
mov edi, ebx
jb 0x49080b
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x4908df
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.0048e339
sub dword [esi + 4], edi
add dword [esi], edi
add dword [ebp - 8], edi
sub ebx, edi
add esp, 0x10
sub dword [ebp - 4], edi
mov edi, dword [ebp - 0x10]
jmp 0x4908cf
cmp ebx, dword [ebp - 0xc]
jb 0x4908a7
cmp dword [ebp - 0xc], 0
je 0x490864
mov ecx, 0x7fffffff
xor edx, edx
cmp ebx, ecx
jbe 0x490859
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x490860
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x49086f
mov eax, 0x7fffffff
cmp ebx, eax
ja 0x49086f
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x49090b
push eax
push dword [ebp - 8]
push esi
call fcn.004a1dd3
pop ecx
push eax
call fcn.00497e26
add esp, 0xc
test eax, eax
je 0x49094a
cmp eax, 0xffffffff
je 0x490938
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x4908cf
push esi
call fcn.004a8979
cmp eax, 0xffffffff
pop ecx
je 0x49093c
cmp dword [ebp - 4], 0
je 0x49090b
mov ecx, dword [ebp - 8]
inc dword [ebp - 8]
mov byte [ecx], al
mov eax, dword [esi + 0x18]
dec ebx
dec dword [ebp - 4]
mov dword [ebp - 0xc], eax
test ebx, ebx
jne 0x4907ee
mov eax, dword [ebp + 0x14]
jmp 0x490789
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x4908f6
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.0048e2b0
add esp, 0xc
call fcn.004917ab
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x49077f
cmp dword [ebp + 0xc], 0xffffffff
je 0x490921
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.0048e2b0
add esp, 0xc
call fcn.004917ab
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x49077f
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x490789
or dword [esi + 0xc], 0x10
jmp 0x49093c
Function at 0x4997c5
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x5098f0]
je 0x4997e0
inc edi
cmp edi, 0x17
jb 0x4997d1
cmp edi, 0x17
jae 0x499960
push ebp
push 3
call fcn.004af060
cmp eax, 1
pop ecx
je 0x49992c
push 3
call fcn.004af060
test eax, eax
pop ecx
jne 0x499814
cmp dword [0x5094dc], 1
je 0x49992c
cmp ebx, 0xfc
je 0x49995f
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x50ec38
push ebp
call fcn.0049f56f
add esp, 0xc
test eax, eax
je 0x49984a
push esi
push esi
push esi
push esi
push esi
call fcn.0048ef76
add esp, 0x14
push 0x104
mov esi, 0x50ec51
push esi
push 0
mov byte [0x50ed55], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x49988e
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.0049f56f
add esp, 0xc
test eax, eax
je 0x49988e
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0048ef76
add esp, 0x14
push esi
call fcn.0048f0f0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x4998d3
push esi
call fcn.0048f0f0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x50ef4c
push 0x4da37c
sub ecx, eax
push ecx
push eax
call fcn.004aefad
add esp, 0x14
test eax, eax
je 0x4998d3
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0048ef76
add esp, 0x14
jmp 0x4998d5
xor esi, esi
push 0x4da378
push ebx
push ebp
call fcn.004aef3c
add esp, 0xc
test eax, eax
je 0x4998f5
push esi
push esi
push esi
push esi
push esi
call fcn.0048ef76
add esp, 0x14
push dword [edi*8 + 0x5098f4]
push ebx
push ebp
call fcn.004aef3c
add esp, 0xc
test eax, eax
je 0x499917
push esi
push esi
push esi
push esi
push esi
call fcn.0048ef76
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.004aed7f
add esp, 0xc
jmp 0x49995f
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x49995f
cmp ebp, 0xffffffff
je 0x49995f
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x5098f4]
push dword [esi]
call fcn.0048f0f0
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x4be622
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x509590]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.004be481
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.0048e2b0
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x4be671
cmp dword [ebp - 0x1c], 5
jb 0x4be689
jmp 0x4be685
cmp dword [ebp - 0x10], 1
jne 0x4be689
cmp dword [ebp - 0x1c], 4
ja 0x4be685
jne 0x4be689
cmp dword [ebp - 0x18], 0
jbe 0x4be689
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x4de80c
call fcn.004be23e
test eax, eax
jge 0x4be6aa
mov byte [0x50fc25], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0048e32a
add ebp, 0x78
leave
ret
Function at 0x401bf0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401c09
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x401c1d
pop esi
pop edi
xor eax, eax
pop ebx
ret
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x401c3e
cmp esi, eax
jae 0x401c17
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401c30
cmp esi, eax
jae 0x401c17
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x402530
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x429838
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x1c]
push edi
push eax
call dword [sym.imp.USER32.dll_GetDC]
push eax
call fcn.0042393a
push 0x1d94f7
push 1
xor ebx, ebx
push ebx
lea ecx, [esp + 0x1c]
mov edi, eax
call fcn.00423dbb
lea ecx, [esp + 0x10]
push ecx
mov ecx, edi
mov dword [esp + 0x2c], ebx
call fcn.00423d21
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x30]
lea edx, [eax + eax*8]
mov ecx, dword [esi + edx*4 + 0xec]
lea eax, [esi + edx*4]
mov edx, dword [eax + 0xe8]
add ecx, 0x18
push ecx
add edx, 0x15
push edx
lea eax, [esp + 0x20]
push eax
mov ecx, edi
call fcn.00423758
mov ecx, dword [esi + 0x98]
dec ecx
test ecx, ecx
jle 0x402631
push ebp
lea ebp, [esi + 0x8c]
mov ecx, dword [ebp - 4]
cmp ecx, 0xffffffff
je 0x4025e3
cmp ecx, 0x10
je 0x4025d8
imul ecx, ecx, 0x2a
add ecx, 0x42
jmp 0x4025ec
mov ecx, dword [esi + 0xc0]
add ecx, 0x15
jmp 0x4025ec
mov ecx, dword [esi + 0xb8]
sub ecx, 0x15
mov eax, dword [ebp]
cmp eax, 0xffffffff
je 0x40260f
cmp eax, 9
je 0x402604
lea eax, [eax + eax*2]
shl eax, 4
add eax, 0x6a
jmp 0x402618
mov eax, dword [esi + 0xc4]
add eax, 0x18
jmp 0x402618
mov eax, dword [esi + 0xbc]
sub eax, 0x18
push eax
push ecx
mov ecx, edi
call fcn.004234fb
mov edx, dword [esi + 0x98]
inc ebx
add ebp, 8
dec edx
cmp ebx, edx
jl 0x4025c3
pop ebp
mov eax, dword [esp + 0x34]
lea eax, [eax + eax*8]
mov ecx, dword [esi + eax*4 + 0xec]
mov edx, dword [esi + eax*4 + 0xe8]
lea eax, [esi + eax*4]
add ecx, 0x18
push ecx
add edx, 0x15
push edx
mov ecx, edi
call fcn.004234fb
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esp + 0xc]
push eax
mov ecx, edi
call fcn.00423d21
lea ecx, [esp + 0x10]
mov dword [esp + 0x28], 0xffffffff
mov dword [esp + 0x10], vtable.CGdiObject.0
call fcn.00423c9c
mov ecx, dword [esp + 0x20]
pop edi
pop esi
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 8