joyce8/EMBER2024-capa huggingface dataset:
Function at 0x454d60
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4a68c6
mov eax, dword fs:[0]
push eax
sub esp, 0x248
mov eax, dword [0x4cc850]
xor eax, esp
mov dword [esp + 0x244], eax
push ebx
push esi
push edi
mov eax, dword [0x4cc850]
xor eax, esp
push eax
lea eax, [esp + 0x258]
mov dword fs:[0], eax
xor ebx, ebx
push 0x206
lea eax, [esp + 0x52]
push ebx
push eax
mov edi, ecx
mov word [esp + 0x58], bx
call fcn.0048a580
add esp, 0xc
push 0x104
lea ecx, [esp + 0x50]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemWow64DirectoryW]
cmp eax, ebx
je 0x454e36
push 0xb
push str._SysFolder_
lea esi, [esp + 0x38]
mov dword [esp + 0x50], 7
mov dword [esp + 0x4c], ebx
mov word [esp + 0x3c], bx
call fcn.00406d50
mov edx, esi
push edx
add edi, 4
push edi
mov dword [esp + 0x268], ebx
call fcn.004235e0
lea ecx, [esp + 0x4c]
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
cmp dx, bx
jne 0x454e05
sub ecx, esi
sar ecx, 1
push ecx
lea ecx, [esp + 0x50]
push ecx
mov esi, eax
call fcn.00406d50
cmp dword [esp + 0x48], 8
jb 0x454ec4
mov edx, dword [esp + 0x34]
push edx
jmp 0x454ebc
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x454ec4
push 0x104
lea eax, [esp + 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0xb
push str._SysFolder_
lea esi, [esp + 0x1c]
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], ebx
mov word [esp + 0x20], bx
call fcn.00406d50
mov ecx, esi
push ecx
add edi, 4
push edi
mov dword [esp + 0x268], 1
call fcn.004235e0
lea ecx, [esp + 0x4c]
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
cmp dx, bx
jne 0x454e94
sub ecx, esi
sar ecx, 1
push ecx
lea edx, [esp + 0x50]
push edx
mov esi, eax
call fcn.00406d50
cmp dword [esp + 0x2c], 8
jb 0x454ec4
mov eax, dword [esp + 0x18]
push eax
call fcn.004692b1
add esp, 4
mov ecx, dword [esp + 0x258]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x244]
xor ecx, esp
call fcn.00483bf3
add esp, 0x254
ret
Function at 0x454ef0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4a68c6
mov eax, dword fs:[0]
push eax
sub esp, 0x248
mov eax, dword [0x4cc850]
xor eax, esp
mov dword [esp + 0x244], eax
push ebx
push esi
push edi
mov eax, dword [0x4cc850]
xor eax, esp
push eax
lea eax, [esp + 0x258]
mov dword fs:[0], eax
mov ebx, ecx
call fcn.004560b0
xor edi, edi
cmp eax, edi
jne 0x454f8e
push 0xd
push str._SysFolder64_
lea esi, [esp + 0x38]
mov dword [esp + 0x50], 7
mov dword [esp + 0x4c], edi
mov word [esp + 0x3c], di
call fcn.00406d50
mov eax, esi
push eax
add ebx, 4
push ebx
mov dword [esp + 0x268], edi
call fcn.004235e0
push 0xd
push str._SysFolder64_
mov esi, eax
call fcn.00406d50
cmp dword [esp + 0x48], 8
jb 0x455025
mov ecx, dword [esp + 0x34]
push ecx
jmp 0x45501d
push 0x206
lea edx, [esp + 0x52]
push edi
push edx
mov word [esp + 0x58], di
call fcn.0048a580
add esp, 0xc
push 0x104
lea eax, [esp + 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0xd
push str._SysFolder64_
lea esi, [esp + 0x1c]
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], edi
mov word [esp + 0x20], di
call fcn.00406d50
mov ecx, esi
push ecx
add ebx, 4
push ebx
mov dword [esp + 0x268], 1
call fcn.004235e0
lea ecx, [esp + 0x4c]
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
cmp dx, di
jne 0x454ff5
sub ecx, esi
sar ecx, 1
push ecx
lea edx, [esp + 0x50]
push edx
mov esi, eax
call fcn.00406d50
cmp dword [esp + 0x2c], 8
jb 0x455025
mov eax, dword [esp + 0x18]
push eax
call fcn.004692b1
add esp, 4
mov ecx, dword [esp + 0x258]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x244]
xor ecx, esp
call fcn.00483bf3
add esp, 0x254
ret
Function at 0x455800
Capabilities:
Check for peb beingdebugged flag
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4a67db
mov eax, dword fs:[0]
push eax
sub esp, 0x230
mov eax, dword [0x4cc850]
xor eax, esp
mov dword [esp + 0x22c], eax
push ebx
push esi
push edi
mov eax, dword [0x4cc850]
xor eax, esp
push eax
lea eax, [esp + 0x240]
mov dword fs:[0], eax
xor edi, edi
push 0x206
lea eax, [esp + 0x3a]
push edi
push eax
mov ebx, ecx
mov word [esp + 0x40], di
call fcn.0048a580
add esp, 0xc
push 0x104
lea ecx, [esp + 0x38]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push edi
push edi
push edi
push edi
push edi
push edi
push 3
lea edx, [esp + 0x48]
push edx
lea eax, [esp + 0x54]
push eax
mov word [esp + 0x50], di
mov dword [esp + 0x52], edi
call fcn.00484f2c
add esp, 0x24
push 0xa
push str._SysDrive_
lea esi, [esp + 0x18]
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], edi
mov word [esp + 0x1c], di
call fcn.00406d50
mov ecx, esi
push ecx
add ebx, 4
push ebx
mov dword [esp + 0x250], edi
call fcn.004235e0
lea ecx, [esp + 0x2c]
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
cmp dx, di
jne 0x4558c4
sub ecx, esi
sar ecx, 1
push ecx
lea edx, [esp + 0x30]
push edx
mov esi, eax
call fcn.00406d50
cmp dword [esp + 0x28], 8
jb 0x4558f4
mov eax, dword [esp + 0x14]
push eax
call fcn.004692b1
add esp, 4
mov ecx, dword [esp + 0x240]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x22c]
xor ecx, esp
call fcn.00483bf3
add esp, 0x23c
ret
Function at 0x458da0
Capabilities:
Encode data using xor

Disassembly:
test eax, 0x44ad94c0
add al, 0xe6
inc esp
invalid
mov dword [ecx + ebp*4 - 0x48], ebx
sbb ch, byte [esi + 0x50d6544c]
nop
or eax, 0xb15ecb7d
sbb al, 0x59
push esp
enter 0xffffffffffffdf7a, 0x54
enter 0x6791, 0xb
push ss
invalid
sbb bl, byte [esi + 0x510e4c4c]
push ebp
cmp eax, 0xc8561098
xchg ecx, eax
pop eax
aas
sub edi, dword [eax + ebx*4 - 0x21]
or eax, 0xc099847d
retf 0x3c9d
jge 0x458c84
cdq
ror dl, 0x9d
cmp al, 0x3c
cdq
jecxz 0x458caa
mov al, 0x1a
cmpsb byte [esi], byte es:[edi]
xor al, 0xb4
lcall 0x4cad, 0xbcb4a9e3
push edx
out 0x38, al
loopne 0x458d27
jno 0x458cfe
cdq
mov eax, 0x1a44a61c
sbb al, 0xae
dec eax
sbb ebx, dword [esi + ebx*4]
sahf
dec esp
sbb dword [ecx + 0x20], edi
cmp ecx, eax
nop
fcomp qword [eax]
aad 0x1c
cmpsb byte [esi], byte es:[edi]
dec esp
int3
pushfd
jecxz 0x458cea
sar byte [ebp + ebx*4 + 0x70de535c], 0xdd
leave
les ebx, [eax]
loopne 0x458d0b
out dx, al
sbb esp, dword [ecx]
xchg ebp, eax
pop ebp
and eax, 0xe3e69521
inc eax
dec esp
jge 0x458dcd
mov esi, 0x54d8f9c8
enter 0xffffffffffffc291, 0x56
xor dl, byte [ecx - 0x6ccdab3e]
jecxz 0x458d16
shl cl, 1
jecxz 0x458d22
fcomp qword [edx + ebp*4]
cwde
invalid
fisttp word [0x15dfa98d]
movsd dword es:[edi], dword [esi]
jecxz 0x458d4e
cmp al, 0x90
sub esp, eax
or eax, 0x15dfa98d
movsd dword es:[edi], dword [esi]
jecxz 0x458d5a
xor byte [eax - 0x11521fd5], dl
sbb esp, dword [edi - 0x56a76e38]
test ch, dl
cmpsd dword [esi], dword es:[edi]
popal
push ebp
cli
mov edx, 0x75b8702d
or al, 0x4d
or al, 0x4d
or dword [ecx], esp
jl 0x458e09
sti
cmpsd dword [esi], dword es:[edi]
cmp esi, edi
ficomp dword [edx - 0x51]
jecxz 0x458ddd
jb 0x458d5e
or byte [ecx + ecx + 0x25], 0x4d
pushfd
pop ecx
cmpsd dword [esi], dword es:[edi]
dec esp
or dword [0xa7599c4d], esp
push ecx
and al, 0x14
sal dl, cl
mov dh, 0xb7
dec esi
jne 0x458e30
clc
mov bl, 0x90
jecxz 0x458e47
call 0x4752cd22
push ecx
mov al, byte [0x39aebc09]
mov dl, 0xba
call sp
or dword [esi], ecx
dec esp
or dword [ecx + 0x50], ecx
push eax
lea ebx, [ebp + 0x31]
pop es
retf
jbe 0x458ea7
mov edx, 0x915f5509
pop ebx
or dword [esp + ecx*2], ecx
or dword [ebx - 0x4e3b0746], ebp
xor byte [ebp + 0x94c0c59], bh
insd dword es:[edi], dx
jg 0x458e0d
or dword [ebp + 0x7f], ebp
ret 0x2c6c
insb byte es:[edi], dx
sub al, 0xc2
dec edi
mov ebp, 0x94c0bff
ror dh, 0x4a
adc eax, 0x257af347
push eax
adc byte [ecx + ecx - 0x3a], cl
mov cl, 0xc5
dec dword [ebx]
dec esp
or esi, ebp
xor cl, bh
xchg edi, eax
cld
xchg ecx, esi
int1
cmp al, 0xc
dec esp
or dword [esi], ebp
xchg esp, eax
pushfd
dec edi
add byte [esp + ecx*2], cl
or dword [edi], ebx
push ecx
inc eax
xchg edi, eax
and ecx, dword [ebp + 0x5c886f8c]
lcall 0x5176, 0x36513750
cmpsb byte [esi], byte es:[edi]
mov ch, 0xd9
inc eax
or al, 0x4c
or dword [eax - 0x80], ebp
sar byte [ecx + 0x7e], 0x8c
fsubr qword [ebp + 0x23164c2d]
jl 0x458e6f
push cs
int3
retf
Function at 0x45bb20
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4a655b
mov eax, dword fs:[0]
push eax
mov eax, dword [0x4cc850]
xor eax, esp
push eax
lea eax, [esp + 4]
mov dword fs:[0], eax
mov eax, dword [esp + 0x14]
mov dword [eax], vtable.CAUGeneralInfo.0
mov dword [eax + 4], vtable.CAUVersion.0
xor ecx, ecx
mov dword [eax + 0x20], 7
mov dword [eax + 0x1c], ecx
mov word [eax + 0xc], cx
mov dword [eax + 0x28], ecx
mov dword [eax + 0x2c], ecx
mov dword [eax + 0x30], ecx
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
pop ecx
add esp, 0xc
ret 4

Function at 0x45d8f0
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push 0x20
mov esi, eax
call fcn.00469281
xor ebx, ebx
add esp, 4
cmp eax, ebx
je 0x45d924
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax], vtable.CXMLElement.0
mov dword [eax + 0x10], ebx
mov dword [eax + 0x1c], ebx
mov dword [eax + 0x18], ebx
mov dword [eax + 0x14], ebx
mov edi, eax
jmp 0x45d926
xor edi, edi
mov eax, dword [edi]
mov edx, dword [eax + 4]
push 0x4b71e8
mov ecx, edi
mov dword [edi + 4], 2
call edx
cmp dword [esi + 0x14], ebx
je 0x45d962
cmp dword [esi + 0x18], 8
jb 0x45d94b
mov eax, dword [esi + 4]
jmp 0x45d94e
lea eax, [esi + 4]
push eax
push str.Region
call fcn.00459740
add esp, 8
push eax
call fcn.00459490
cmp dword [esi + 0x30], ebx
je 0x45d989
cmp dword [esi + 0x34], 8
jb 0x45d972
mov esi, dword [esi + 0x20]
jmp 0x45d975
add esi, 0x20
push esi
push str.Country
call fcn.00459740
add esp, 8
push eax
call fcn.00459490
mov eax, edi
pop edi
pop esi
pop ebx
ret

Function at 0x45d990
Capabilities:
Get geographical location

Disassembly:
test eax, eax
push esi
jne 0x45d99c
mov eax, 3
pop esi
ret
push 0
push 0x4d0cb4
push 0x4d0c9c
push 0
push eax
call fcn.0048778c
add esp, 0x14
mov esi, eax
push str.Region
push esi
call fcn.00459510
test eax, eax
je 0x45d9d8
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x18]
call eax
push 0xffffffffffffffff
push 0
mov ecx, edi
call fcn.00406430
push str.Country
push esi
call fcn.00459510
test eax, eax
je 0x45d9fc
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x18]
call eax
push 0xffffffffffffffff
push 0
lea ecx, [edi + 0x1c]
call fcn.00406430
xor eax, eax
pop esi
ret

Function at 0x461eb0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4a6501
mov eax, dword fs:[0]
push eax
mov eax, dword [0x4cc850]
xor eax, esp
push eax
lea eax, [esp + 4]
mov dword fs:[0], eax
mov eax, dword [esp + 0x14]
xor ecx, ecx
mov dword [eax], vtable.CAUBaseObjects.0
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov dword [eax + 0x18], ecx
mov dword [eax + 0x1c], ecx
mov dword [eax + 0x20], ecx
mov dword [eax + 0x28], ecx
mov dword [eax + 0x2c], ecx
mov dword [eax + 0x30], ecx
mov dword [eax + 0x38], ecx
mov dword [eax + 0x3c], ecx
mov dword [eax + 0x40], ecx
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
pop ecx
add esp, 0xc
ret 4
Function at 0x46d7ab
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x46d7e4
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0046a015
push eax
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00469ff0
pop esi
ret 4
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
pop esi
jmp dword [eax + 0x8c]

Function at 0x46f2bc
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 0x46f2ff
call fcn.00475ee7
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x46f2ff
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x46f31a
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.0046ee76
test ebx, ebx
mov esi, eax
je 0x46f318
test edi, edi
je 0x46f318
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x472be6
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
je 0x472c2c
call fcn.00475ee7
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x472c2c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 4], eax
je 0x472c6f
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
je 0x472c58
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x472c58
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x472c6c
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x476b51
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x476b7f
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x476b9d
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00476abb
jmp 0x476b9d
mov eax, dword [esi + 0x14]
test eax, eax
je 0x476b9d
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.00476abb
test edi, edi
mov eax, edi
jne 0x476b87
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x4d3088]
test ecx, ecx
je 0x476c60
jmp 0x476b50
ret 8
Function at 0x483bf3
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4cc850]
jne 0x483bfd
repz ret
jmp fcn.0048e381

Function at 0x484bf8
Capabilities:
Terminate process

Disassembly:
mov eax, dword [ebp - 0x20]
lea ecx, [ebp - 0x1c]
mov dword [esp + 4], ebx
mov edx, dword [0x4cc8ac]
add byte [ecx - 0x76f3dbb4], cl
cmp al, 0x24
add byte [ecx - 0x76f3dbb4], cl
cmp al, 0x24
mov dword [esp + 8], edx
call eax
sub esp, 0x10
test eax, eax
je 0x484ba6
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x484ba6
add ebx, eax
jmp 0x484b77
cmp ebx, esi
je 0x484c6d
mov ecx, dword [esi]
xor eax, eax
mov edx, dword [0x4cc8d4]
mov esi, dword [edx + eax]
add esi, ecx
mov dword [ebx + eax], esi
add eax, 4
cmp eax, 0x20
jne 0x484bb2
mov eax, dword [ebp - 0x3c]
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
push edx
push edx
test eax, eax
je 0x484c6d
mov ebx, dword [0x4cc8cc]
lea ecx, [ebp - 0x2c]
mov dword [esp + 4], 0x4000
mov eax, dword [0x4cc860]
dec esp
add byte [ecx + 0x4c89c44d], cl
and al, 0xc
mov dword [esp], ebx
mov dword [esp + 8], eax
call esi
mov edx, dword [0x4cc870]
mov eax, 8
add edx, dword [ebp - 0x40]
sub esp, 0x10
mov ecx, dword [edx + 4]
mov edi, dword [edx + eax]
add edi, ecx
mov dword [ebx + eax], edi
add eax, 4
cmp eax, 0x4000
jne 0x484c1e
mov eax, dword [0x4cc8c8]
mov dword [ebx + 8], eax
mov eax, dword [ebp - 0x3c]
mov dword [esp], ebx
mov dword [esp + 4], 0x4000
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 8], eax
call esi
mov eax, dword [0x4cc8a8]
mov edx, dword [0x4cc8a8]
sub esp, 0x10
add eax, dword [ebx + 0xc]
add eax, ebx
add ebx, edx
mov dword [esp], ebx
call eax
mov edx, dword [0x4cc878]
mov dword [esp + 0xc], 0x10
mov eax, dword [0x4cc898]
mov dword [esp], 0
mov dword [esp + 8], edx
mov dword [esp + 4], eax
call dword [sym.imp.USER32.dll_MessageBoxW]
sub esp, 0x10
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x493429
Capabilities:
Terminate process

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x10
xor esi, esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push esi
call edi
push dword [0x4cc8a0]
call edi
mov dword [esp + 8], eax
push dword [0x4cc8d0]
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [esp + 0xc], esi
mov edi, dword [0x4cc8ac]
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push edi
push esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
push 0x104
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xor eax, eax
movzx ecx, word [edi + esi*2]
cmp cx, 0x5c
mov ebp, esi
je 0x49348b
mov ebp, eax
inc esi
test cx, cx
mov eax, ebp
jne 0x49347d
lea esi, [edi + ebp*2 + 2]
mov ebx, dword [0x4cc874]
cmp dword [ebx], 0
je 0x4934e4
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp byte [ebx], al
je 0x4934b6
cmp byte [ebx + 1], al
jne 0x4935cc
movzx ecx, word [esi]
xor eax, eax
test cx, cx
je 0x4934d6
lea edx, [edi + ebp*2 + 4]
xor eax, eax
movzx ecx, cx
add eax, ecx
movzx ecx, word [edx]
add edx, 2
test cx, cx
jne 0x4934c6
cmp eax, dword [ebx + 4]
je 0x4934e4
cmp eax, dword [ebx + 8]
jne 0x4935cc
mov dword [esp + 4], esi
push dword [0x4cc890]
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push dword [0x4cc884]
push eax
call esi
mov ebp, eax
push dword [0x4cc86c]
push edi
call esi
mov ebx, eax
push dword [0x4cc89c]
push edi
call esi
mov esi, eax
xor edi, edi
mov dword [esp], edi
push edi
push edi
push edi
push 1
push dword [0x4cc894]
call ebp
test eax, eax
je 0x4935b0
push edi
push dword [0x4cc888]
push edi
push edi
push dword [0x4cc8b8]
push eax
call ebx
test eax, eax
je 0x4935b0
mov edx, dword [esp + 4]
add edx, 0x20a
mov ecx, esp
push ecx
push dword [0x4cc8ac]
mov ecx, esi
mov esi, edx
push edx
push eax
call ecx
test eax, eax
je 0x4935b0
mov eax, dword [esp]
test eax, eax
je 0x4935b0
add eax, esi
mov ecx, dword [esi]
mov edx, 0xfffffffc
mov esi, dword [0x4cc87c]
mov esi, dword [esi + edx + 4]
add esi, ecx
mov dword [eax + edx + 4], esi
add edx, 4
cmp edx, 0x1c
jb 0x493578
push eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4935b0
xor ecx, ecx
lea edx, [esp + 0xc]
push ecx
push ecx
push dword [0x4cc8a4]
push edx
call eax
push 0x10
push dword [0x4cc878]
push dword [0x4cc898]
push edi
call dword [sym.imp.USER32.dll_MessageBoxW]
push edi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
xor esi, esi
push 0x10
push dword [0x4cc878]
push dword [0x4cc898]
push esi
call dword [sym.imp.USER32.dll_MessageBoxW]
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x49aaf5
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0048dccb
xor ebx, ebx
cmp dword [0x4d3f0c], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x49abca
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x49ab35
xor eax, eax
jmp 0x49ac8e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x49ab2e
push eax
call fcn.0048dc68
mov dword [esp], 0x4b2748
push edi
mov dword [0x4d3f0c], eax
call esi
push eax
call fcn.0048dc68
mov dword [esp], 0x4b2734
push edi
mov dword [0x4d3f10], eax
call esi
push eax
call fcn.0048dc68
mov dword [0x4d3f14], eax
lea eax, [ebp - 8]
push eax
call fcn.0048c45a
test eax, eax
pop ecx
pop ecx
je 0x49ab98
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00483f09
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x49abca
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0048dc68
cmp eax, ebx
pop ecx
mov dword [0x4d3f1c], eax
je 0x49abca
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0048dc68
pop ecx
mov dword [0x4d3f18], eax
mov eax, dword [0x4d3f18]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x49ac43
cmp dword [0x4d3f1c], esi
je 0x49ac43
push eax
call fcn.0048dcd4
pop ecx
call eax
cmp eax, ebx
je 0x49ac10
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x4d3f1c]
call fcn.0048dcd4
pop ecx
call eax
test eax, eax
je 0x49ac10
test byte [ebp - 0x18], 1
jne 0x49ac43
lea eax, [ebp - 0xc]
push eax
call fcn.0048c491
test eax, eax
pop ecx
je 0x49ac2b
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00483f09
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x49ac3a
or dword [ebp + 0x10], 0x200000
jmp 0x49ac74
or dword [ebp + 0x10], 0x40000
jmp 0x49ac74
mov eax, dword [0x4d3f10]
cmp eax, esi
je 0x49ac74
push eax
call fcn.0048dcd4
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x49ac74
mov eax, dword [0x4d3f14]
cmp eax, esi
je 0x49ac74
push dword [ebp - 4]
push eax
call fcn.0048dcd4
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x4d3f0c]
call fcn.0048dcd4
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4a1d25
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x4cc850]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.004a1cba
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.0048a580
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 0x4a1d74
cmp dword [ebp - 0x1c], 5
jb 0x4a1d8c
jmp 0x4a1d88
cmp dword [ebp - 0x10], 1
jne 0x4a1d8c
cmp dword [ebp - 0x1c], 4
ja 0x4a1d88
jne 0x4a1d8c
cmp dword [ebp - 0x18], 0
jbe 0x4a1d8c
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x4b3a1c
call fcn.004a1bab
test eax, eax
jge 0x4a1dad
mov byte [0x4d4224], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00483bf3
add ebp, 0x78
leave
ret