joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4cdb06
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x526684
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x408
mov dword [ebp - 0x414], ecx
push 0
lea ecx, [ebp - 0x2c0]
call fcn.0045be60
mov dword [ebp - 4], 0
push 0x104
lea eax, [ebp - 0x3c4]
push eax
call fcn.004b8167
add esp, 8
push 0x568838
lea ecx, [ebp - 0x3c4]
push ecx
call fcn.004e96f0
add esp, 8
lea edx, [ebp - 0x3c4]
push edx
push 0
push 0x568848
push 0x568858
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x4cdc55
push 1
mov ecx, dword [ebp - 0x414]
call fcn.0050d114
mov dword [ebp - 0x3c8], eax
lea eax, [ebp - 0x3ec]
push eax
mov ecx, dword [ebp - 0x3c8]
call fcn.0040b330
mov ecx, dword [ebp - 0x3c8]
call fcn.0040b3e0
mov dword [ebp - 0x3cc], eax
lea ecx, [ebp - 0x3ec]
push ecx
mov ecx, dword [ebp - 0x3cc]
call fcn.00512b80
lea edx, [ebp - 0x3dc]
push edx
mov ecx, dword [ebp - 0x3cc]
call fcn.0040b330
push 1
mov eax, dword [ebp - 0x3d0]
sub eax, dword [ebp - 0x3d8]
push eax
mov ecx, dword [ebp - 0x3e4]
add ecx, 0x1e
push ecx
mov edx, dword [ebp - 0x3d8]
push edx
mov eax, dword [ebp - 0x3dc]
push eax
mov ecx, dword [ebp - 0x3cc]
call fcn.0050d460
lea ecx, [ebp - 0x3c4]
push ecx
push 0x568864
push 0x568868
push 0x568878
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
push 0x568884
push 0x524
mov ecx, dword [ebp - 0x414]
call fcn.0050d114
mov ecx, eax
call fcn.0050d3ab
jmp 0x4cdd1c
push 0x523
mov ecx, dword [ebp - 0x414]
call fcn.0050d114
mov dword [ebp - 0x3c8], eax
lea edx, [ebp - 0x410]
push edx
mov ecx, dword [ebp - 0x3c8]
call fcn.0040b330
mov ecx, dword [ebp - 0x3c8]
call fcn.0040b3e0
mov dword [ebp - 0x3f0], eax
lea eax, [ebp - 0x410]
push eax
mov ecx, dword [ebp - 0x3f0]
call fcn.00512b80
lea ecx, [ebp - 0x400]
push ecx
mov ecx, dword [ebp - 0x3f0]
call fcn.0040b330
push 1
mov edx, dword [ebp - 0x3f4]
sub edx, dword [ebp - 0x3fc]
push edx
mov eax, dword [ebp - 0x408]
add eax, 0x1e
push eax
mov ecx, dword [ebp - 0x3fc]
push ecx
mov edx, dword [ebp - 0x400]
push edx
mov ecx, dword [ebp - 0x3f0]
call fcn.0050d460
lea eax, [ebp - 0x3c4]
push eax
push 0x568888
push str.EXTENDWINDOW
push 0x56889c
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
push 0x5688a8
push 0x524
mov ecx, dword [ebp - 0x414]
call fcn.0050d114
mov ecx, eax
call fcn.0050d3ab
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c0]
call fcn.00427460
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x4ec875
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push 0x60
push 0x5331b8
call fcn.004f09f8
and dword [ebp - 4], 0
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
or dword [ebp - 4], 0xffffffff
mov ebx, 0x94
push ebx
push 0
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x4eca2c
mov dword [esi], ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
push esi
push 0
test eax, eax
jne 0x4ec8d2
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x4eca2c
mov eax, dword [esi + 0x10]
mov dword [0x677db4], eax
mov eax, dword [esi + 4]
mov dword [0x677dc0], eax
mov eax, dword [esi + 8]
mov dword [0x677dc4], eax
mov eax, dword [esi + 0xc]
and eax, 0x7fff
mov dword [0x677db8], eax
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [0x677db4], 2
je 0x4ec910
or byte [0x677db9], 0x80
mov eax, dword [0x677dc0]
shl eax, 8
add eax, dword [0x677dc4]
mov dword [0x677dbc], eax
call fcn.004ec819
mov dword [ebp - 0x1c], eax
xor ebx, ebx
inc ebx
push ebx
call fcn.004f2538
pop ecx
test eax, eax
jne 0x4ec941
push 0x1c
call fcn.004ec7f5
pop ecx
call fcn.004f056b
test eax, eax
jne 0x4ec952
push 0x10
call fcn.004ec7f5
pop ecx
mov dword [ebp - 4], ebx
call fcn.004f6a9b
test eax, eax
jge 0x4ec966
push 0x1b
call fcn.004ec7d0
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x679940], eax
call fcn.004f73ba
mov dword [0x677df8], eax
call fcn.004f7319
test eax, eax
jge 0x4ec98c
push 8
call fcn.004ec7d0
pop ecx
call fcn.004f70cf
test eax, eax
jge 0x4ec99d
push 9
call fcn.004ec7d0
pop ecx
call fcn.004eaf37
mov dword [ebp - 0x28], eax
test eax, eax
je 0x4ec9b0
push eax
call fcn.004ec7d0
pop ecx
call fcn.004f7066
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], bl
je 0x4ec9c3
movzx eax, word [ebp - 0x40]
jmp 0x4ec9c6
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push 0
push 0x400000
call fcn.00502f67
mov esi, eax
mov dword [ebp - 0x2c], esi
cmp dword [ebp - 0x1c], 0
jne 0x4ec9e7
push esi
call fcn.004eb04c
call fcn.004eb06e
jmp 0x4eca19
or dword [ebp - 4], 0xffffffff
mov eax, esi
jmp 0x4eca31
mov eax, 0xff
call fcn.004f0a33
ret
Function at 0x4ecf0b
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, dword [ebp + 0x10]
xor ebx, ebx
test edi, edi
jne 0x4ecf28
call fcn.004edb8e
mov dword [eax], 0x16
xor eax, eax
jmp 0x4ecf91
xor ecx, ecx
push esi
mov edx, 0x8c
inc ecx
call fcn.004f379a
mov esi, eax
test esi, esi
je 0x4ecf7c
push esi
call fcn.004f0358
mov eax, dword [ebp + 0x14]
or dword [esi + 4], 0xffffffff
mov dword [esi + 0x50], eax
mov eax, dword [ebp + 0x1c]
test eax, eax
pop ecx
mov dword [esi + 0x4c], edi
jne 0x4ecf5a
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x18]
push esi
push 0x4ece76
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x4ecf90
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push esi
call fcn.004e9e5d
test ebx, ebx
pop ecx
je 0x4ecf8e
push ebx
call fcn.004edbb4
pop ecx
xor eax, eax
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4f0c66
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x14], edi
jne 0x4f0c84
xor eax, eax
jmp 0x4f0df2
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x6785c0]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x4f0cb7
push 2
push edi
push edi
push dword [ebp + 8]
call fcn.004f97d2
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x4f0d89
cmp dword [ebp + 0x10], edi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], edi
jbe 0x4f0dc1
mov ecx, dword [ebp - 0xc]
sub ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x41c]
mov dword [ebp - 8], edi
cmp ecx, dword [ebp + 0x10]
jae 0x4f0d12
mov edx, dword [ebp - 0xc]
inc dword [ebp - 0xc]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x4f0d03
inc dword [ebp - 0x14]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 8]
mov byte [eax], dl
inc eax
inc dword [ebp - 8]
cmp dword [ebp - 8], 0x400
jl 0x4f0ce6
mov edi, eax
lea eax, [ebp - 0x41c]
sub edi, eax
push 0
lea eax, [ebp - 0x18]
push eax
push edi
lea eax, [ebp - 0x41c]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4f0d52
mov eax, dword [ebp - 0x18]
add dword [ebp - 0x10], eax
cmp eax, edi
jl 0x4f0d5b
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp + 0xc]
xor edi, edi
cmp eax, dword [ebp + 0x10]
jb 0x4f0cd7
jmp 0x4f0d5d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
xor edi, edi
mov eax, dword [ebp - 0x10]
cmp eax, edi
jne 0x4f0ded
cmp dword [ebp - 4], edi
je 0x4f0dc1
push 5
pop esi
cmp dword [ebp - 4], esi
jne 0x4f0db6
call fcn.004edb8e
mov dword [eax], 9
call fcn.004edba1
mov dword [eax], esi
jmp 0x4f0de8
push edi
lea ecx, [ebp - 0x18]
push ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4f0dab
mov eax, dword [ebp - 0x18]
mov dword [ebp - 4], edi
mov dword [ebp - 0x10], eax
jmp 0x4f0d5d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jmp 0x4f0d5d
push dword [ebp - 4]
call fcn.004edbb4
pop ecx
jmp 0x4f0de8
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x4f0dd6
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0x1a
jne 0x4f0dd6
xor eax, eax
jmp 0x4f0df0
call fcn.004edb8e
mov dword [eax], 0x1c
call fcn.004edba1
mov dword [eax], edi
or eax, 0xffffffff
jmp 0x4f0df0
sub eax, dword [ebp - 0x14]
pop esi
pop ebx
pop edi
leave
ret
Function at 0x4f626e
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.004e9ae0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4f6309
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x677db4]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x4f6309
cmp eax, 1
je 0x4f632a
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4f6309
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x4f62d6
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x4f6305
xor eax, eax
inc eax
jmp 0x4f6349
cmp edi, eax
jae 0x4f630d
xor eax, eax
jmp 0x4f6349
cmp eax, esi
jae 0x4f6314
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x677db4]
jmp 0x4f632d
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4f6815
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
cmp dword [ebp + 0x10], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edx, ebx
je 0x4f69e9
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x6785c0]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x4f69e9
test cl, 0x48
je 0x4f6880
cmp byte [eax + 5], 0xa
je 0x4f6880
mov eax, dword [edi]
mov al, byte [eax + esi + 5]
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea edx, [ebx + 1]
mov dword [ebp - 8], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push edx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4f68d2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x4f68ba
call fcn.004edb8e
mov dword [eax], 9
call fcn.004edba1
mov dword [eax], esi
jmp 0x4f68ca
cmp eax, 0x6d
je 0x4f69e9
push eax
call fcn.004edbb4
pop ecx
or eax, 0xffffffff
jmp 0x4f69eb
mov eax, dword [ebp - 0xc]
mov ecx, dword [edi]
add dword [ebp - 8], eax
test byte [ecx + esi + 4], 0x80
je 0x4f69e4
test eax, eax
je 0x4f68f9
cmp byte [ebx], 0xa
jne 0x4f68f9
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x4f6902
mov eax, dword [edi]
lea eax, [eax + esi + 4]
and byte [eax], 0xfb
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
add ecx, eax
cmp eax, ecx
mov dword [ebp + 0x10], eax
mov dword [ebp - 8], ecx
jae 0x4f69de
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x4f69ce
cmp al, 0xd
je 0x4f6934
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x4f69c0
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x4f694e
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x4f6949
add dword [ebp + 0x10], 2
jmp 0x4f69a2
mov dword [ebp + 0x10], eax
jmp 0x4f69bc
inc dword [ebp + 0x10]
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4f6976
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4f69bc
cmp dword [ebp - 0xc], 0
je 0x4f69bc
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x4f6997
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x4f69a2
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x4f69bf
cmp ebx, dword [ebp + 0xc]
jne 0x4f69a7
cmp byte [ebp - 1], 0xa
jne 0x4f69a7
mov byte [ebx], 0xa
jmp 0x4f69bf
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004f4348
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x4f69c0
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x4f6918
jmp 0x4f69de
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x4f69de
lea esi, [eax + esi + 4]
or byte [esi], 2
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x4f69eb
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4f6cfb
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 8]
xor eax, eax
cmp ecx, dword [eax*8 + 0x56c2c8]
je 0x4f6d13
inc eax
cmp eax, 0x12
jb 0x4f6d04
push esi
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x56c2c8]
mov dword [ebp + 8], esi
jne 0x4f6e59
mov eax, dword [0x677e00]
cmp eax, 1
push ebx
je 0x4f6e29
test eax, eax
jne 0x4f6d48
cmp dword [0x56b8e4], 1
je 0x4f6e29
cmp ecx, 0xfc
je 0x4f6e58
push edi
push 6
pop ecx
mov esi, str.Runtime_Error__n_nProgram:
mov edi, 0x678048
rep movsd dword es:[edi], dword [esi]
push 0x104
mov ebx, 0x678062
push ebx
movsw word es:[edi], word [esi]
push 0
mov byte [0x678166], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4f6d96
push 5
pop ecx
mov esi, str._program_name_unknown_
mov edi, 0x678062
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4f6d9b
sub eax, edx
inc eax
cmp eax, 0x3c
jbe 0x4f6dce
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4f6daf
sub eax, edx
push 3
lea eax, [eax + 0x678027]
push 0x5379fc
push eax
call fcn.004ea400
add esp, 0xc
mov edx, 0x678048
mov edi, edx
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4f6dd6
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x56c2cc]
mov esi, 0x5379f8
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4f6df1
mov edi, edx
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4f6dfd
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push 0x12010
mov ecx, eax
and ecx, 3
push str.Microsoft_Visual_C_Runtime_Library
push edx
rep movsb byte es:[edi], byte [esi]
call fcn.004fc609
add esp, 0xc
pop edi
jmp 0x4f6e58
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
test eax, eax
je 0x4f6e58
mov esi, dword [esi + 0x56c2cc]
mov ecx, esi
lea edx, [ecx + 1]
mov bl, byte [ecx]
inc ecx
test bl, bl
jne 0x4f6e40
push 0
sub ecx, edx
lea edx, [ebp - 4]
push edx
push ecx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebx
pop esi
leave
ret
Function at 0x4f953c
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x4f956a
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x4f9571
cmp ebx, dword [eax + 4]
jae 0x4f9571
xor eax, eax
jmp 0x4f9761
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x4f9582
xor eax, eax
inc eax
jmp 0x4f9760
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x4f9598
cmp ecx, edx
jae 0x4f96dd
cmp dword [eax + 4], 0
je 0x4f95a1
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x4f9589
cmp dword [ebp + 8], 0
je 0x4f95c3
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x4f96dd
cmp eax, esi
jae 0x4f96dd
mov eax, dword [0x6784a0]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x4f95e8
cmp dword [esi*4 + 0x6784a8], edi
je 0x4f96e1
inc esi
cmp esi, eax
jl 0x4f95d6
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4f975d
cmp dword [ebp - 8], 0x1000000
jne 0x4f975d
test byte [ebp - 0xc], 0xcc
je 0x4f9666
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x4f975d
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x4f975d
cmp word [eax + 0x18], 0x10b
jne 0x4f975d
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x4f975d
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x4f9666
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x4f9666
test byte [ecx + 0x27], 0x80
jne 0x4f96dd
push 1
push 0x6784e8
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x4f957a
mov ecx, dword [0x6784a0]
test ecx, ecx
mov edx, ecx
jle 0x4f969a
lea eax, [ecx*4 + 0x6784a4]
cmp dword [eax], edi
je 0x4f969a
dec edx
sub eax, 4
test edx, edx
jg 0x4f968e
test edx, edx
jne 0x4f96cb
push 0xf
pop ebx
cmp ecx, ebx
jg 0x4f96a7
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x4f96bf
lea eax, [edx*4 + 0x6784a8]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x4f96ad
cmp ecx, 0x10
jge 0x4f96cb
inc ecx
mov dword [0x6784a0], ecx
push 0
push 0x6784e8
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x4f957a
xor eax, eax
jmp 0x4f9760
test esi, esi
jle 0x4f957a
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x6784e8
call ebx
test eax, eax
jne 0x4f957a
cmp dword [esi*4 + 0x6784a8], edi
je 0x4f9737
mov eax, dword [0x6784a0]
lea esi, [eax - 1]
test esi, esi
jl 0x4f9725
cmp dword [esi*4 + 0x6784a8], edi
je 0x4f9721
dec esi
jns 0x4f9715
test esi, esi
jge 0x4f9735
cmp eax, 0x10
jge 0x4f9730
inc eax
mov dword [0x6784a0], eax
lea esi, [eax - 1]
jmp 0x4f9737
je 0x4f974f
xor ecx, ecx
test esi, esi
jl 0x4f974f
lea eax, [ecx*4 + 0x6784a8]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x4f973d
push 0
push 0x6784e8
call ebx
jmp 0x4f957a
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4fc609
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x678540], ebx
push esi
push edi
jne 0x4fc689
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4fc6c4
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x538dec
push edi
call esi
test eax, eax
mov dword [0x678540], eax
je 0x4fc6c4
push 0x538ddc
push edi
call esi
push 0x538dc8
push edi
mov dword [0x678544], eax
call esi
cmp dword [0x677db4], 2
mov dword [0x678548], eax
jne 0x4fc689
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x678550], eax
je 0x4fc689
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x67854c], eax
mov eax, dword [0x67854c]
test eax, eax
je 0x4fc6ce
call eax
test eax, eax
je 0x4fc6b5
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x678550]
test eax, eax
je 0x4fc6b5
test byte [ebp - 8], 1
jne 0x4fc6ce
cmp dword [0x677dc0], 4
jb 0x4fc6c8
or byte [ebp + 0x12], 0x20
jmp 0x4fc6ed
xor eax, eax
jmp 0x4fc6fd
or byte [ebp + 0x12], 4
jmp 0x4fc6ed
mov eax, dword [0x678544]
test eax, eax
je 0x4fc6ed
call eax
mov ebx, eax
test ebx, ebx
je 0x4fc6ed
mov eax, dword [0x678548]
test eax, eax
je 0x4fc6ed
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x678540]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4fcd25
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push 1
xor esi, esi
push esi
push dword [ebp + 8]
call fcn.004f4348
or ebx, 0xffffffff
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 0xc], eax
je 0x4fce6a
push 2
push esi
push dword [ebp + 8]
call fcn.004f4348
add esp, 0xc
cmp eax, ebx
je 0x4fce6a
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x4fce0d
mov ebx, 0x1000
push ebx
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
mov dword [ebp - 4], eax
jne 0x4fcd9e
call fcn.004edb8e
mov dword [eax], 0xc
or esi, 0xffffffff
jmp 0x4fce55
push 0x8000
push dword [ebp + 8]
call fcn.004fdd55
pop ecx
pop ecx
mov dword [ebp - 8], eax
cmp edi, ebx
mov eax, ebx
jge 0x4fcdb8
mov eax, edi
push eax
push dword [ebp - 4]
push dword [ebp + 8]
call fcn.004f0c66
add esp, 0xc
cmp eax, 0xffffffff
je 0x4fcdd4
sub edi, eax
test edi, edi
jg 0x4fcdb0
jmp 0x4fcdec
call fcn.004edba1
cmp dword [eax], 5
jne 0x4fcde9
call fcn.004edb8e
mov dword [eax], 0xd
or esi, 0xffffffff
push dword [ebp - 8]
push dword [ebp + 8]
call fcn.004fdd55
pop ecx
pop ecx
push dword [ebp - 4]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x4fce55
jge 0x4fce55
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004f4348
push dword [ebp + 8]
call fcn.004ed8c2
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov esi, eax
neg esi
sbb esi, esi
neg esi
dec esi
cmp esi, ebx
jne 0x4fce55
call fcn.004edb8e
mov dword [eax], 0xd
call fcn.004edba1
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
push 0
push dword [ebp - 0xc]
push dword [ebp + 8]
call fcn.004f4348
add esp, 0xc
mov eax, esi
pop edi
jmp 0x4fce6c
mov eax, ebx
pop esi
pop ebx
leave
ret
Function at 0x4fde58
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x538e88
call fcn.004f09f8
xor edi, edi
xor ebx, ebx
inc ebx
cmp dword [0x678574], edi
jne 0x4fde9c
push edi
push edi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4fde87
mov dword [0x678574], ebx
jmp 0x4fde9c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x4fde9c
mov dword [0x678574], 2
mov eax, dword [0x678574]
cmp eax, ebx
jne 0x4fdebc
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
jmp 0x4fdf7e
cmp eax, 2
je 0x4fdec5
cmp eax, edi
jne 0x4fdeed
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x24], edi
cmp dword [ebp + 0x18], edi
jne 0x4fded8
mov eax, dword [0x678494]
mov dword [ebp + 0x18], eax
push edi
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov dword [ebp - 0x20], eax
cmp eax, edi
jne 0x4fdef4
xor eax, eax
jmp 0x4fdf7e
mov dword [ebp - 4], edi
add eax, 3
and eax, 0xfffffffc
call fcn.004e9ae0
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [ebp - 0x28], esi
or dword [ebp - 4], 0xffffffff
jmp 0x4fdf27
cmp esi, edi
jne 0x4fdf3c
mov ecx, dword [ebp - 0x20]
call fcn.004f3762
mov esi, eax
cmp esi, edi
je 0x4fdeed
mov dword [ebp - 0x24], ebx
push dword [ebp - 0x20]
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x4fdf6f
cmp dword [ebp + 0x14], edi
jne 0x4fdf59
push edi
push edi
jmp 0x4fdf5f
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0xffffffffffffffff
push esi
push ebx
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x24], edi
je 0x4fdf7b
push esi
call fcn.004e9e5d
pop ecx
mov eax, dword [ebp - 0x1c]
lea esp, [ebp - 0x34]
call fcn.004f0a33
ret