joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46dc90
Capabilities:
Create process on windows
Read .ini file

Disassembly:
sub esp, 0x114
push ebx
push esi
lea eax, [esp + 8]
push edi
push eax
call fcn.004884e0
mov edx, dword [esp + 0x18]
or ecx, 0xffffffff
xor eax, eax
add esp, 4
mov edi, str.register.url
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
mov ecx, dword [0x5153c0]
sub ecx, edx
cmp ecx, esi
ja 0x46dccc
call fcn.004ef719
test esi, esi
jbe 0x46dd11
mov edx, dword [esp + 0x14]
lea ebx, [edx + esi]
push 0
push ebx
lea ecx, [esp + 0x14]
call fcn.00401bd0
test al, al
je 0x46dd11
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov ecx, esi
lea edi, [edx + eax]
mov eax, ecx
shr ecx, 2
mov esi, str.register.url
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push ebx
lea ecx, [esp + 0x10]
call fcn.00401bb0
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x46dd1e
mov eax, 0x5153a8
push eax
call fcn.004885e0
add esp, 4
test al, al
jne 0x46dd64
mov eax, dword [0x5530d4]
test eax, eax
jne 0x46dd52
push 0x1c
call fcn.004fc0e2
add esp, 4
test eax, eax
je 0x46dd4b
mov ecx, eax
call fcn.0044eab0
jmp 0x46dd4d
xor eax, eax
mov dword [0x5530d4], eax
push str.Error__Failed_to_open_affiliate_link:_register.url_was_not_found.
push 1
push eax
call fcn.0044ef30
add esp, 0xc
jmp 0x46ddc2
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x46dd71
mov eax, 0x5153a8
push eax
push 0x104
lea ecx, [esp + 0x24]
push ecx
push 0x552c50
push 0x5370a4
push str.InternetShortcut
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x46dde4
or ecx, 0xffffffff
xor eax, eax
lea edi, [esp + 0x1c]
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x46dde4
push 1
push 0x53708c
push 0x552c50
lea edx, [esp + 0x28]
push edx
push str.open
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x46de47
mov al, byte [ecx - 1]
test al, al
je 0x46de3d
cmp al, 0xff
je 0x46de3d
pop edi
dec al
pop esi
mov byte [ecx - 1], al
pop ebx
add esp, 0x114
ret
mov eax, dword [0x5530d4]
test eax, eax
jne 0x46de0b
push 0x1c
call fcn.004fc0e2
add esp, 4
test eax, eax
je 0x46de04
mov ecx, eax
call fcn.0044eab0
jmp 0x46de06
xor eax, eax
mov dword [0x5530d4], eax
push str.Error__Failed_to_open_affiliate_link:_register.url_has_wrong_format_or_URL_is_empty.
push 1
push eax
call fcn.0044ef30
mov ecx, dword [esp + 0x1c]
add esp, 0xc
test ecx, ecx
je 0x46de47
mov al, byte [ecx - 1]
test al, al
je 0x46de3d
cmp al, 0xff
je 0x46de3d
pop edi
dec al
pop esi
mov byte [ecx - 1], al
pop ebx
add esp, 0x114
ret
dec ecx
push ecx
call fcn.004ef70e
add esp, 4
pop edi
pop esi
pop ebx
add esp, 0x114
ret
Function at 0x46de60
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x24
push ebx
push esi
lea eax, [esp + 0x1c]
push edi
push eax
call fcn.004884e0
or ecx, 0xffffffff
add esp, 4
xor eax, eax
mov edi, str.Affiliate.xml
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.Affiliate.xml
lea ecx, [esp + 0x28]
call fcn.00417330
push 0x38
call fcn.004fc0e2
mov esi, eax
xor ebx, ebx
add esp, 4
cmp esi, ebx
je 0x46ded7
lea ecx, [esi + 0x14]
mov dword [esi], vtable.tmTree_class_enXml_.0
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 8], ebx
mov dword [esi + 4], ebx
call fcn.0044a340
mov dl, byte [esp + 0xf]
lea ecx, [esi + 0x24]
push ebx
mov byte [ecx], dl
call fcn.00401b60
mov dword [esi], vtable.enXml.0
mov dword [esi + 0x34], ebx
jmp 0x46ded9
xor esi, esi
lea eax, [esp + 0x20]
push eax
mov ecx, esi
call fcn.00489a20
test al, al
jne 0x46defb
push 1
lea ecx, [esp + 0x24]
call fcn.00401b60
pop edi
pop esi
pop ebx
add esp, 0x24
ret
mov cl, byte [esp + 0xf]
mov byte [esp + 0x10], cl
push ebx
lea ecx, [esp + 0x14]
call fcn.00401b60
lea edx, [esp + 0x10]
push edx
sub esp, 0x10
mov ecx, esp
lea eax, [esp + 0x23]
push eax
push str.HighScoreLink
call fcn.00401aa0
mov ecx, esi
call fcn.0048aae0
test al, al
jne 0x46df67
push 1
lea ecx, [esp + 0x14]
call fcn.00401b60
mov ecx, dword [esp + 0x24]
cmp ecx, ebx
je 0x46dfe6
mov al, byte [ecx - 1]
cmp al, bl
je 0x46dfdc
cmp al, 0xff
je 0x46dfdc
dec al
mov byte [ecx - 1], al
pop edi
pop esi
pop ebx
add esp, 0x24
ret
mov eax, dword [esp + 0x14]
cmp eax, ebx
jne 0x46df74
mov eax, 0x5153a8
push 1
push 0x53708c
push 0x552c50
push eax
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov ecx, dword [esp + 0x14]
cmp ecx, ebx
je 0x46dfb1
mov al, byte [ecx - 1]
cmp al, bl
je 0x46dfa7
cmp al, 0xff
je 0x46dfa7
dec al
mov byte [ecx - 1], al
jmp 0x46dfb1
dec ecx
push ecx
call fcn.004ef70e
add esp, 4
mov ecx, dword [esp + 0x24]
cmp ecx, ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
je 0x46dfe6
mov al, byte [ecx - 1]
cmp al, bl
je 0x46dfdc
cmp al, 0xff
je 0x46dfdc
dec al
mov byte [ecx - 1], al
pop edi
pop esi
pop ebx
add esp, 0x24
ret
dec ecx
push ecx
call fcn.004ef70e
add esp, 4
pop edi
pop esi
pop ebx
add esp, 0x24
ret
Function at 0x47c2f0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x4c
push ebx
mov ebx, dword [esp + 0x54]
cmp ebx, eax
push ebp
push esi
push edi
je 0x47c4f0
lea ebp, [ebx + 0x4c]
cmp ebp, eax
je 0x47c4f0
lea edi, [ebp + 4]
mov cl, byte [edi]
mov eax, dword [ebp]
mov byte [esp + 0x14], cl
push 0
lea ecx, [esp + 0x18]
mov dword [esp + 0x14], eax
call fcn.00401b60
mov edx, dword [0x5153c0]
push edx
push 0
push edi
lea ecx, [esp + 0x20]
call fcn.00403390
mov eax, dword [edi + 0x10]
mov ecx, dword [edi + 0x14]
mov edx, dword [edi + 0x18]
mov dword [esp + 0x24], eax
lea eax, [edi + 0x1c]
mov dword [esp + 0x28], ecx
push eax
lea ecx, [esp + 0x34]
mov dword [esp + 0x30], edx
call fcn.0041c9b0
lea ecx, [edi + 0x28]
push ecx
lea ecx, [esp + 0x40]
call fcn.004479d0
fld dword [esp + 0x28]
mov eax, dword [edi + 0x44]
mov edx, dword [edi + 0x40]
mov dword [esp + 0x58], eax
fsub dword [esp + 0x58]
fld dword [ebx + 0x18]
mov dword [esp + 0x54], edx
fsub dword [ebx + 0x48]
fcompp
fnstsw ax
test ah, 0x41
jne 0x47c41c
mov ecx, dword [esp + 0x10]
sub esp, 0x4c
mov esi, esp
mov dword [esi], ecx
mov dl, byte [esp + 0x60]
lea ecx, [esi + 4]
push 0
mov byte [ecx], dl
call fcn.00401b60
mov eax, dword [0x5153c0]
push eax
push 0
lea ecx, [esp + 0x68]
push ecx
lea ecx, [esi + 4]
call fcn.00403390
mov edx, dword [esp + 0x70]
mov dword [esi + 0x14], edx
mov eax, dword [esp + 0x74]
mov dword [esi + 0x18], eax
mov ecx, dword [esp + 0x78]
lea edx, [esp + 0x7c]
mov dword [esi + 0x1c], ecx
push edx
lea ecx, [esi + 0x20]
call fcn.0041c9b0
lea eax, [esp + 0x88]
push eax
lea ecx, [esi + 0x2c]
call fcn.004479d0
mov ecx, dword [esp + 0xa0]
mov dword [esi + 0x44], ecx
mov edx, dword [esp + 0xa4]
push ebp
mov dword [esi + 0x48], edx
call fcn.0047ceb0
add esp, 0x50
jmp 0x47c4d3
cmp ebx, ebp
je 0x47c47a
lea esi, [edi + 0x5c]
mov eax, dword [esi - 0xac]
sub esi, 0x4c
mov dword [esi - 0x14], eax
mov ecx, dword [0x5153c0]
push ecx
push 0
lea edx, [esi - 0x5c]
push edx
lea ecx, [esi - 0x10]
call fcn.00403390
lea eax, [esi - 0x4c]
push eax
mov ecx, esi
call fcn.0041c9b0
lea ecx, [esi - 0x40]
push ecx
lea ecx, [esi + 0xc]
call fcn.0041c9b0
lea edx, [esi - 0x34]
push edx
lea ecx, [esi + 0x18]
call fcn.0041dff0
mov eax, dword [esi - 0x1c]
mov dword [esi + 0x30], eax
mov ecx, dword [esi - 0x18]
lea edx, [esi - 0x60]
cmp edx, ebx
mov dword [esi + 0x34], ecx
jne 0x47c423
mov eax, dword [esp + 0x10]
mov dword [ebx], eax
mov ecx, dword [0x5153c0]
push ecx
push 0
lea edx, [esp + 0x1c]
push edx
lea ecx, [ebx + 4]
call fcn.00403390
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
mov dword [ebx + 0x14], eax
lea eax, [esp + 0x30]
mov dword [ebx + 0x18], ecx
push eax
lea ecx, [ebx + 0x20]
mov dword [ebx + 0x1c], edx
call fcn.0041c9b0
lea ecx, [esp + 0x3c]
push ecx
lea ecx, [ebx + 0x2c]
call fcn.0041dff0
mov edx, dword [esp + 0x54]
mov eax, dword [esp + 0x58]
mov dword [ebx + 0x44], edx
mov dword [ebx + 0x48], eax
push 1
lea ecx, [esp + 0x18]
call fcn.00401b60
mov eax, dword [esp + 0x64]
add ebp, 0x4c
add edi, 0x4c
cmp ebp, eax
jne 0x47c315
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret
Function at 0x487850
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov edx, dword [esp + 0xc]
push esi
mov esi, dword [esp + 0x14]
lea eax, [esp + 4]
push eax
mov eax, dword [esp + 0x10]
push esi
lea ecx, [esp + 0x1c]
push ecx
push 0
push edx
push eax
mov dword [esp + 0x1c], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x48789a
mov ecx, dword [esp + 0x18]
mov dword [esi], ecx
mov esi, dword [esp + 0x14]
xor eax, eax
cmp esi, 4
sete al
pop esi
dec eax
and eax, 0x80004005
pop ecx
ret
mov eax, 0x80004005
pop esi
pop ecx
ret

Function at 0x48b410
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x43c
mov eax, dword [ebp + 0x18]
fld dword [eax + 0x14]
push ebx
push esi
push edi
sub esp, 8
fstp qword [esp]
sub esp, 8
fld dword [eax + 0x10]
sub esp, 8
fstp qword [esp + 8]
sub esp, 8
fld dword [eax + 0xc]
sub esp, 8
fstp qword [esp + 0x10]
sub esp, 8
fld dword [eax + 8]
mov dword [esp + 0x44], ecx
fstp qword [esp + 0x10]
fld dword [eax + 4]
fstp qword [esp + 8]
fld dword [eax]
lea eax, [esp + 0x78]
fstp qword [esp]
push str._g__g__g__g__g__g
push eax
call fcn.004fc66c
mov cl, byte [esp + 0x4b]
mov byte [esp + 0x50], cl
xor eax, eax
add esp, 0x38
lea edi, [esp + 0x48]
push 1
mov dword [esp + 0x20], eax
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, ecx
push ebx
lea ecx, [esp + 0x20]
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
call fcn.00401bd0
test al, al
je 0x48b4c7
mov edi, dword [esp + 0x1c]
mov ecx, ebx
mov edx, ecx
shr ecx, 2
lea esi, [esp + 0x48]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push ebx
lea ecx, [esp + 0x1c]
call fcn.00401bb0
mov eax, dword [esp + 0x14]
mov esi, dword [eax + 0x18]
mov edi, eax
cmp esi, dword [edi + 0x1c]
je 0x48b50d
mov eax, dword [ebp + 0xc]
test eax, eax
mov ecx, 0x5153a8
je 0x48b4e3
mov ecx, eax
mov eax, dword [esi + 4]
test eax, eax
jne 0x48b4ef
mov eax, 0x5153a8
push ecx
push eax
call fcn.005010c0
add esp, 8
test eax, eax
je 0x48b509
mov eax, dword [edi + 0x1c]
add esi, 0x20
cmp esi, eax
jne 0x48b4d5
jmp 0x48b50d
test esi, esi
jne 0x48b544
lea ecx, [esp + 0x18]
push ecx
lea edx, [ebp + 8]
push edx
lea ecx, [esp + 0x30]
call fcn.0048c900
lea ecx, [edi + 0x14]
push eax
mov eax, dword [ecx + 8]
push eax
call fcn.0048bd40
push 1
lea ecx, [esp + 0x3c]
call fcn.00401b60
push 1
lea ecx, [esp + 0x2c]
call fcn.00401b60
jmp 0x48b55a
mov ecx, dword [0x5153c0]
push ecx
push 0
lea edx, [esp + 0x20]
push edx
lea ecx, [esi + 0x10]
call fcn.00403390
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x48b57e
lea ecx, [eax - 1]
mov al, byte [ecx]
test al, al
je 0x48b575
cmp al, 0xff
je 0x48b575
dec al
mov byte [ecx], al
jmp 0x48b57e
push ecx
call fcn.004ef70e
add esp, 4
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x48b5a8
mov al, byte [ecx - 1]
test al, al
je 0x48b59e
cmp al, 0xff
je 0x48b59e
dec al
mov byte [ecx - 1], al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
dec ecx
push ecx
call fcn.004ef70e
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
Function at 0x49c960
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [eax + 0x58]
test ecx, ecx
je 0x49c980
mov edx, dword [esp + 8]
mov dword [ecx + 0x44], edx
mov eax, dword [eax + 0x58]
push 1
add eax, 4
push eax
call fcn.004ffb74
mov ecx, dword [eax + 0x10]
push eax
call dword [ecx + 0x28]
add esp, 4
push 1
call fcn.004fe5bb
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop

Function at 0x49cc30
Capabilities:
Enumerate pe sections

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
mov eax, dword [ebx]
push ebp
push esi
mov esi, dword [esp + 0x10]
mov ecx, dword [esi + 0x1c]
mov ebp, ebx
sub ebp, ecx
cmp eax, 6
push edi
je 0x49cc56
push ebx
push esi
call fcn.0049cf40
add esp, 8
mov ebx, eax
mov eax, dword [esi + 0x14]
mov ecx, dword [esi + 0x24]
add eax, 0x18
cmp eax, ecx
jne 0x49cc6c
push esi
call fcn.0049cda0
add esp, 4
mov eax, dword [ebx + 8]
mov cl, byte [eax + 6]
test cl, cl
jne 0x49cd28
mov edi, dword [eax + 0xc]
mov al, byte [edi + 0x46]
test al, al
je 0x49cc97
xor ecx, ecx
mov cl, byte [edi + 0x45]
add ebx, 0x10
push ebx
push ecx
push esi
call fcn.0049cdf0
add esp, 0xc
mov ecx, dword [esi + 8]
mov edx, dword [esi + 0x18]
xor eax, eax
mov al, byte [edi + 0x47]
sub edx, ecx
mov ecx, eax
shl ecx, 4
cmp edx, ecx
jg 0x49ccb7
push eax
push esi
call fcn.0049cb30
add esp, 8
mov eax, dword [esi + 0x14]
mov edx, dword [esi + 0x1c]
add eax, 0x18
mov dword [esi + 0x14], eax
lea ecx, [edx + ebp + 0x10]
mov dword [eax], ecx
mov edx, dword [esi + 0x14]
mov ecx, dword [edx]
mov dword [esi + 0xc], ecx
xor edx, edx
mov dl, byte [edi + 0x47]
shl edx, 4
add edx, ecx
mov dword [eax + 4], edx
mov ecx, dword [edi + 0xc]
mov dword [eax + 0xc], ecx
mov ecx, dword [eax + 4]
mov dword [eax + 0x14], 0
mov dword [eax + 8], 8
mov edx, dword [esi + 8]
cmp edx, ecx
jae 0x49cd1b
mov edx, 0x10
mov ecx, dword [esi + 8]
mov dword [ecx], 0
mov ebx, dword [esi + 8]
add ebx, edx
mov dword [esi + 8], ebx
mov edi, dword [eax + 4]
mov ecx, ebx
cmp ecx, edi
jb 0x49cd01
mov edx, dword [eax + 4]
pop edi
mov dword [esi + 8], edx
pop esi
pop ebp
xor eax, eax
pop ebx
ret
mov eax, dword [esi + 0x18]
sub eax, dword [esi + 8]
cmp eax, 0x140
jg 0x49cd40
push 0x14
push esi
call fcn.0049cb30
add esp, 8
mov edi, dword [esi + 0x14]
mov ecx, dword [esi + 0x1c]
lea edx, [ecx + ebp + 0x10]
add edi, 0x18
mov dword [esi + 0x14], edi
mov eax, edi
mov dword [eax], edx
mov ecx, dword [esi + 0x14]
mov edx, dword [ecx]
mov ecx, dword [esi + 8]
add ecx, 0x140
mov dword [esi + 0xc], edx
mov dword [eax + 4], ecx
mov ecx, 1
mov dword [eax + 8], ecx
test byte [esi + 0x30], cl
je 0x49cd82
push 0xffffffffffffffff
push 0
push esi
call fcn.0049cb60
add esp, 0xc
mov edx, dword [esi + 0xc]
mov eax, dword [edx - 8]
push esi
call dword [eax + 0xc]
add esp, 4
shl eax, 4
pop edi
mov ecx, eax
mov eax, dword [esi + 8]
pop esi
pop ebp
sub eax, ecx
pop ebx
ret
Function at 0x49dbe0
Capabilities:
Enumerate pe sections

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x18]
mov al, byte [edi + 6]
test al, al
je 0x49dc2d
mov al, byte [edi + 7]
xor ebp, ebp
test al, al
jbe 0x49dc9f
mov ebx, dword [esp + 0x14]
lea esi, [edi + 0x18]
cmp dword [esi - 8], 4
jl 0x49dc1b
mov eax, dword [esi]
test byte [eax + 5], 0x11
jne 0x49dc1b
push eax
push ebx
call fcn.0049d8a0
add esp, 8
xor eax, eax
mov al, byte [edi + 7]
inc ebp
add esi, 0x10
cmp ebp, eax
jl 0x49dc03
pop edi
pop esi
pop ebp
pop ebx
ret
mov eax, dword [edi + 0x18]
test byte [eax + 5], 0x11
jne 0x49dc44
mov ecx, dword [esp + 0x14]
push eax
push ecx
call fcn.0049d8a0
add esp, 8
mov eax, dword [edi + 0xc]
test byte [eax + 5], 0x11
jne 0x49dc5b
mov edx, dword [esp + 0x14]
push eax
push edx
call fcn.0049d8a0
add esp, 8
mov al, byte [edi + 7]
xor ebx, ebx
test al, al
jbe 0x49dc9f
lea ebp, [edi + 0x20]
mov esi, dword [ebp]
mov al, byte [esi + 5]
test al, al
jne 0x49dc92
cmp dword [esi + 0x10], 4
jl 0x49dc8e
mov eax, dword [esi + 0x18]
test byte [eax + 5], 0x11
jne 0x49dc8e
push eax
mov eax, dword [esp + 0x18]
push eax
call fcn.0049d8a0
add esp, 8
mov byte [esi + 5], 1
xor ecx, ecx
mov cl, byte [edi + 7]
inc ebx
add ebp, 4
cmp ebx, ecx
jl 0x49dc67
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x4a02d0
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push ebp
mov ebp, dword [esp + 0x14]
mov eax, ebp
shr eax, 5
push esi
inc eax
cmp ebp, eax
push edi
mov edx, ebp
mov esi, ebp
jb 0x4a0306
xor ecx, ecx
mov cl, byte [ebx + esi - 1]
mov edi, edx
shl edi, 5
sub esi, eax
add ecx, edi
mov edi, edx
shr edi, 2
add ecx, edi
xor edx, ecx
cmp esi, eax
jae 0x4a02ea
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0x10]
mov ecx, dword [eax + 8]
mov eax, dword [eax]
dec ecx
and ecx, edx
mov eax, dword [eax + ecx*4]
test eax, eax
je 0x4a0338
cmp dword [eax + 0xc], ebp
jne 0x4a0332
mov esi, ebx
mov ecx, ebp
lea edi, [eax + 0x10]
xor ebx, ebx
repe cmpsb byte [esi], byte es:[edi]
je 0x4a0348
mov ebx, dword [esp + 0x18]
mov eax, dword [eax]
test eax, eax
jne 0x4a031c
mov ecx, dword [esp + 0x14]
push edx
push ebp
push ebx
push ecx
call fcn.004a0350
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x4be205
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
lea ebp, [esp - 0x70]
sub esp, 0x98
push ebx
push esi
xor esi, esi
cmp dword [ebp + 0x78], esi
push edi
mov edi, ecx
jne 0x4be226
mov eax, 0x8876086c
jmp 0x4be319
cmp dword [ebp + 0x7c], esi
je 0x4be2a8
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 0x28], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x18], 2
je 0x4be288
mov ebx, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push esi
push esi
push esi
push esi
push 0xffffffffffffffff
push dword [ebp + 0x78]
push esi
push 0xfde9
call ebx
mov dword [ebp + 0x6c], eax
add eax, 3
and eax, 0xfffffffc
call fcn.004fec60
mov dword [ebp + 0x7c], esp
push esi
push esi
push dword [ebp + 0x6c]
push dword [ebp + 0x7c]
push 0xffffffffffffffff
push dword [ebp + 0x78]
push esi
push 0xfde9
call ebx
mov eax, dword [ebp + 0x7c]
mov dword [ebp + 0x78], eax
mov dword [ebp + 0x7c], esi
cmp dword [ebp + 0x7c], esi
je 0x4be2a8
push esi
push 0x10000000
push 3
push esi
push 1
push 0x80000000
push dword [ebp + 0x78]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
jmp 0x4be2c1
push esi
push 0x10000000
push 3
push esi
push 1
push 0x80000000
push dword [ebp + 0x78]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [edi], eax
je 0x4be307
push esi
push esi
push esi
push 2
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
cmp eax, 0xffffffff
mov dword [edi + 4], eax
je 0x4be307
push esi
push dword [edi]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov dword [edi + 0xc], eax
je 0x4be307
cmp eax, esi
je 0x4be314
push esi
push esi
push esi
push 4
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, esi
mov dword [edi + 8], eax
jne 0x4be317
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, 0x88760b59
jmp 0x4be319
mov dword [edi + 8], esi
xor eax, eax
lea esp, [ebp - 0x34]
pop edi
pop esi
pop ebx
add ebp, 0x70
leave
ret 8

Function at 0x4be372
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push str.SoftwareMicrosoftDirect3D
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x4be3c9
push esi
lea eax, [ebp + 0x14]
push eax
push dword [ebp + 0x10]
lea eax, [ebp + 0x10]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop esi
jne 0x4be3c9
mov eax, dword [ebp + 0x10]
cmp eax, dword [ebp + 8]
jne 0x4be3c9
xor eax, eax
inc eax
jmp 0x4be3cb
xor eax, eax
leave
ret 0x10
Function at 0x4bec9c
Capabilities:
Get system information on windows
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push edi
lea eax, [ebp - 4]
push eax
push str.SoftwareMicrosoftDirect3D
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
xor edi, edi
test eax, eax
jne 0x4bed0a
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push 0x519b28
push dword [ebp - 4]
mov dword [ebp - 8], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4bed01
cmp dword [ebp - 0xc], 4
jne 0x4bed01
cmp dword [ebp - 0x10], edi
je 0x4bed01
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [0x5459f4], edi
xor eax, eax
jmp 0x4bed49
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [0x5459f4], edi
jge 0x4bed44
lea eax, [ebp - 0x34]
push eax
mov dword [0x5459f4], edi
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp word [ebp - 0x34], di
jne 0x4bed44
cmp word [ebp - 0x14], 5
jb 0x4bed44
call fcn.004bec77
test eax, eax
je 0x4bed44
emms
mov dword [0x5459f4], 1
mov eax, dword [0x5459f4]
pop edi
leave
ret

Function at 0x4c1542
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x18]
imul eax, edi
add eax, edx
cmp edx, eax
mov dword [ebp - 0x14], eax
jae 0x4c1663
mov eax, dword [ebp + 0x10]
lea eax, [edx + eax*4]
push ebx
push esi
mov dword [ebp + 0x14], eax
mov esi, 0xffc03fc0
mov eax, 0xff00ff
cmp edx, dword [ebp + 0x14]
mov ecx, dword [ebp + 8]
mov dword [ebp - 4], ecx
jae 0x4c1647
mov ebx, dword [ebp + 0x14]
sub ebx, edx
dec ebx
shr ebx, 3
lea ecx, [edx + 4]
inc ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], ebx
mov edx, dword [ecx + edi]
mov edi, dword [edi + ecx - 4]
mov dword [ebp - 8], edi
shr edi, 2
and edi, esi
mov dword [ebp + 0x10], edx
mov edx, dword [ecx]
mov ecx, dword [ecx - 4]
mov ebx, ecx
shr ebx, 2
and ebx, esi
add ebx, edi
mov edi, dword [ebp + 0x10]
shr edi, 2
and edi, esi
add ebx, edi
mov edi, edx
shr edi, 2
and edi, esi
lea ebx, [ebx + edi - 0x7fff80]
mov edi, dword [ebp - 8]
and edi, eax
mov esi, ecx
and esi, eax
add esi, edi
mov edi, dword [ebp + 0x10]
and edi, eax
add esi, edi
mov edi, edx
and edi, eax
lea esi, [esi + edi + 0x20002]
mov edi, dword [ebp - 8]
shr ecx, 2
shr esi, 2
xor ebx, esi
shr edi, 2
mov esi, 0x3fc03fc0
and ecx, esi
and edi, esi
add ecx, edi
mov edi, dword [ebp + 0x10]
shr edi, 2
and edi, esi
add ecx, edi
mov edi, dword [ebp + 0x18]
shr edx, 2
and edx, esi
lea ecx, [ecx + edx + 0x800080]
and ebx, eax
xor ebx, ecx
mov ecx, dword [ebp - 4]
add dword [ebp - 4], 4
mov dword [ecx], ebx
mov ecx, dword [ebp - 0xc]
add ecx, 8
dec dword [ebp - 0x10]
mov dword [ebp - 0xc], ecx
mov esi, 0xffc03fc0
jne 0x4c1599
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x1c]
add dword [ebp + 8], ecx
lea ecx, [edi + edi]
add dword [ebp + 0x14], ecx
add edx, ecx
cmp edx, dword [ebp - 0x14]
mov dword [ebp + 0xc], edx
jb 0x4c1577
pop esi
pop ebx
xor eax, eax
pop edi
leave
ret 0x18
Function at 0x4c192f
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x24
mov eax, dword [ecx + 4]
mov eax, dword [eax + 0x20]
push ebp
push esi
mov esi, dword [ecx]
mov ebp, dword [esi + 0x1064]
push edi
mov edi, dword [esi + 0x1058]
imul ebp, edi
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0x20]
add ebp, eax
cmp eax, ebp
mov dword [esp + 0x28], ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x2c], ebp
jae 0x4c1a76
mov edx, 0xf81f
push ebx
mov ebx, dword [esp + 0x14]
mov esi, dword [esi + 0x1060]
lea esi, [eax + esi*2]
mov dword [esp + 0x10], ebx
add edi, eax
cmp eax, esi
mov ebx, eax
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x28], esi
jae 0x4c1a51
movzx ecx, word [ebx]
movzx esi, word [ebx + 2]
movzx eax, word [edi + 2]
movzx edi, word [edi]
mov ebp, ecx
mov ebx, eax
and bx, dx
and bp, dx
mov dword [esp + 0x24], ecx
and ecx, 0xffff07e0
add ebx, ebp
mov ebp, edi
and bp, dx
add ebx, ebp
mov ebp, esi
and bp, dx
lea ebx, [ebx + ebp + 0x1002]
mov ebp, eax
and ebp, 0xffff07e0
add ebp, ecx
mov ecx, edi
and ecx, 0xffff07e0
add ebp, ecx
mov ecx, esi
and ecx, 0xffff07e0
shr ebx, 2
lea ecx, [ecx + ebp + 0x40]
shr ecx, 2
xor ebx, ecx
mov ecx, dword [esp + 0x24]
and eax, edx
and ecx, edx
add eax, ecx
and edi, edx
add eax, edi
mov edi, dword [esp + 0x1c]
and esi, edx
and ebx, 0xffff07e0
lea eax, [eax + esi + 0x1002]
shr eax, 2
xor ebx, eax
mov eax, dword [esp + 0x10]
add dword [esp + 0x10], 2
mov word [eax], bx
mov ebx, dword [esp + 0x18]
add ebx, 4
add edi, 4
cmp ebx, dword [esp + 0x28]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], edi
jb 0x4c1998
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x20]
mov ebp, dword [esp + 0x30]
mov esi, dword [ecx + 4]
mov esi, dword [esi + 0x1058]
add dword [esp + 0x14], esi
mov esi, dword [ecx]
mov edi, dword [esi + 0x1058]
lea eax, [eax + edi*2]
cmp eax, ebp
mov dword [esp + 0x20], eax
jb 0x4c196f
pop ebx
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x24
ret