joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10148690
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x1014872d
push ebx
push esi
call fcn.10148659
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.10141ad7
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x101486da
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1014872c
push edi
push eax
call fcn.1014058c
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x101486fa
call fcn.10140552
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1014872b
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.10141ad7
add esp, 0x20
test eax, eax
jne 0x10148719
push edi
call fcn.10140552
jmp 0x10148721
push ebx
call fcn.10140552
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x10148730
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x10148741
pop esi
ret
push ebx
push edi
push esi
call fcn.10148659
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.1014058c
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x10148769
push ebx
push esi
push edi
call fcn.10128ee0
add esp, 0xc
push 0
call fcn.10140552
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x10148b39
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1014877e

Function at 0x1014ac5c
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.1013e9bb
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1014accb
cmp esi, dword [ebp - 4]
je 0x1014acc6
cmp dword [ebp + 0xc], 0
je 0x1014acc6
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x1014aca3
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.1014a7ae
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x1014accd
xor eax, eax
inc eax
jmp 0x1014accd
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x1014ad32
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x1020d140]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.1013e9bb
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.1013e9bb
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x1014ada9
cmp word [ecx], dx
je 0x1014ada9
mov eax, dword [0x1019161c]
push edi
dec eax
push eax
push 0x10191508
call fcn.1014acd1
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x1014ae1c
cmp word [eax], dx
je 0x1014ae1c
mov eax, dword [edi]
test eax, eax
je 0x1014adcd
cmp word [eax], dx
je 0x1014adcd
lea eax, [ebp - 0x10]
push eax
call fcn.1014a6b4
jmp 0x1014add6
lea eax, [ebp - 0x10]
push eax
call fcn.1014a74f
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x1014ae46
mov eax, dword [0x10191504]
push dword [ebp - 0x14]
dec eax
push eax
push 0x101911f8
call fcn.1014acd1
add esp, 0xc
test al, al
je 0x1014ae46
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x1014ae11
cmp word [eax], di
je 0x1014ae11
lea eax, [ebp - 0x10]
push eax
call fcn.1014a6b4
pop ecx
jmp 0x1014ae48
lea eax, [ebp - 0x10]
push eax
call fcn.1014a74f
jmp 0x1014ae0e
mov eax, dword [edi]
test eax, eax
je 0x1014ae33
cmp word [eax], dx
je 0x1014ae33
lea eax, [ebp - 0x10]
push eax
call fcn.1014a669
pop ecx
jmp 0x1014ae46
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x1014af11
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.1014ab56
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x1014af11
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x1014af11
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x1014af11
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x1014ae9e
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.10144daa
test ebx, ebx
je 0x1014af0c
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.10144daa
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1014af11
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1014af11
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.10142753
add esp, 0x10
xor eax, eax
inc eax
jmp 0x1014af13
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.101270ee
leave
ret
Function at 0x1014eb61
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.1014eadd
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x1014ecd0
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x1014ecd0
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x1014ec85
jg 0x1014ebbd
test eax, eax
je 0x1014ec7b
push 1
push 0x1000
call fcn.1014036b
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x1014ebe0
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x1014ec72
push 0x8000
push ebx
call fcn.1014ea0e
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x1014ec09
jg 0x1014ec04
cmp ecx, 0x1000
jb 0x1014ec09
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.10143ec3
add esp, 0x10
cmp eax, 0xffffffff
je 0x1014ec4e
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x1014ec04
jl 0x1014ec35
test ecx, ecx
jne 0x1014ebf6
push dword [ebp - 0xc]
push ebx
call fcn.1014ea0e
push esi
call fcn.10140552
add esp, 0xc
xor ebx, ebx
jmp 0x1014ecde
cmp byte [edi + 0x24], 0
je 0x1014ec65
cmp dword [edi + 0x20], 5
jne 0x1014ec65
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x1014ec70
mov ebx, dword [edi + 0x18]
jmp 0x1014ec72
xor ebx, ebx
push esi
call fcn.10140552
pop ecx
jmp 0x1014ecde
test ecx, ecx
jg 0x1014ec47
jl 0x1014ec85
test eax, eax
jae 0x1014ec47
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.10145d31
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x1014eca5
cmp byte [edi + 0x1c], 0
je 0x1014ec47
jmp 0x1014ecd6
push ebx
call fcn.1014d28f
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1014ec47
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x1014ecde
cmp byte [edi + 0x1c], 0
je 0x1014ecdb
mov ebx, dword [edi + 0x18]
jmp 0x1014ecde
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.10145d31
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x101502c0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x101502ed
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x101502ed
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x1000cc10
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1000cc3d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1000cc3d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x430002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..idata
mov ebx, 0x408ecc
nop
nop
mov ecx, 0xefc67ca
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x430024
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42e1d0
mov ecx, 0x34065a29
nop
nop
nop
test eax, eax
nop
nop
je 0x430084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
popal
nop
nop
jmp 0x401219

Function at 0x413080
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00412ef6

Function at 0x4180cb
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00417c15
Function at 0x4186e4
Capabilities:
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x420010]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov ebx, ecx
mov byte [ebp - 0x1d], 1
xor edx, edx
mov eax, dword [ebx + 0x40]
test eax, eax
jne 0x41874d
mov eax, dword [ebx + 0x38]
sub eax, dword [ebx + 0x34]
push edx
push edx
push edx
push 0x26
push eax
push dword [ebx + 0x34]
lea eax, [ebp - 0x38]
push eax
push edx
push edx
push edx
push dword [ebx + 0x30]
call dword [sym.imp.ntdll.dll_NtQueryDirectoryFile]
test eax, eax
js 0x418739
cmp dword [ebp - 0x34], 0
je 0x418739
mov eax, dword [ebx + 0x34]
mov dword [ebx + 0x40], eax
jmp 0x41875a
push eax
call sub.ntdll.dll_RtlNtStatusToDosError
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor al, al
mov byte [ebp - 0x1d], al
jmp 0x41875d
mov ecx, dword [eax]
test ecx, ecx
je 0x418757
add eax, ecx
jmp 0x418734
mov dword [ebx + 0x40], edx
mov al, byte [ebp - 0x1d]
test al, al
je 0x4187de
mov ecx, dword [ebx + 0x40]
test ecx, ecx
je 0x4187cc
mov eax, dword [ecx + 0x3c]
shr eax, 1
push eax
lea eax, [ecx + 0x50]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00418357
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebx + 8]
call fcn.0041845c
push 0
push 1
lea ecx, [ebp - 0x1c]
call fcn.00416140
mov ecx, dword [ebx + 0x40]
mov eax, dword [ecx + 0x48]
mov dword [ebp - 0x30], eax
mov eax, dword [ecx + 0x4c]
lea ecx, [ebp - 0x48]
and dword [ebp - 0x24], 0
mov dword [ebp - 0x2c], eax
mov eax, dword [ebx + 0x44]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00418f09
mov esi, eax
lea edi, [ebx + 0x20]
lea ecx, [ebp - 0x48]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.00418f49
mov ecx, ebx
call fcn.0041884b
push 0
pop edx
test al, al
je 0x418701
mov ecx, dword [ebp - 4]
mov al, byte [ebp - 0x1d]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0040a985
mov esp, ebp
pop ebp
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x41784b
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x425458]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00408da5
mov dword [ebp - 0x14], eax
cmp dword [0x48d2b8], esi
jne 0x41793e
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x4178cb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x417a1e
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x417a1e
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x417a1e
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x48d2b8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x48d2bc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x48d2c0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x48d2c8], eax
test eax, eax
je 0x41793b
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x48d2c4], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x417963
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x417956
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x417978
push 4
pop eax
jmp 0x417a20
cmp dword [ebp - 0x14], esi
je 0x417978
push dword [0x48d2b8]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x41795d
mov eax, dword [0x48d2c4]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x4179d6
cmp dword [0x48d2c8], edi
je 0x4179d6
push eax
call ebx
push dword [0x48d2c8]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x4179d6
test eax, eax
je 0x4179d6
call ecx
test eax, eax
je 0x4179cb
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x4179cb
test byte [ebp - 8], 1
jne 0x4179d6
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x417a06
mov eax, dword [0x48d2bc]
cmp eax, edi
je 0x417a03
push eax
call ebx
test eax, eax
je 0x417a03
call eax
mov esi, eax
test esi, esi
je 0x417a03
mov eax, dword [0x48d2c0]
cmp eax, edi
je 0x417a03
push eax
call ebx
test eax, eax
je 0x417a03
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x48d2b8]
call ebx
test eax, eax
je 0x417a1e
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x417a20
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00406f67
mov esp, ebp
pop ebp
ret
Function at 0x407769
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x40b190
cmp edx, dword [eax]
je 0x40778b
add eax, 8
inc ecx
cmp eax, 0x40b220
jl 0x40777c
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x40b190]
jne 0x4078b9
mov eax, dword [0x40bbb0]
cmp eax, 1
je 0x407893
test eax, eax
jne 0x4077bc
cmp dword [0x40b0e4], 1
je 0x407893
cmp edx, 0xfc
je 0x4078b9
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4077f3
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00408670
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00408490
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x407836
lea eax, [ebp - 0x1a4]
push eax
call fcn.00408490
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x40a45c
push edi
call fcn.00408f00
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00408670
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00408680
lea eax, [ebp - 0xa0]
push 0x40a43c
push eax
call fcn.00408680
push dword [esi + 0x40b194]
lea eax, [ebp - 0xa0]
push eax
call fcn.00408680
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00408e75
add esp, 0x2c
pop edi
jmp 0x4078b9
lea eax, [ebp + 8]
lea esi, [esi + 0x40b194]
push 0
push eax
push dword [esi]
call fcn.00408490
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x100010a0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0x10043d28
push 8
mov dword [0x10044af0], 0x1003bd30
call fcn.10006273
add esp, 8
test eax, eax
je 0x100010ce
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [0x10044af4], eax
mov ecx, 0x10044af8
push esi
xor al, al
xchg byte [ecx], al
mov esi, dword [0x10044af4]
test esi, esi
je 0x1000111f
cmp dword [esi], 0
jne 0x1000111f
cmp dword [esi + 4], 0
jne 0x1000111f
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0
push 0x10044af0
push 0x10001060
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
xor ecx, ecx
mov dword [esi + 4], eax
test eax, eax
setne cl
mov dword [esi], ecx
mov eax, 0x10044af0
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x10001310
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100321eb
mov eax, dword fs:[0]
push eax
sub esp, 0x464
mov eax, dword [0x1004200c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x400
lea eax, [ebp - 0x450]
push 0
push eax
call fcn.1001edb0
add esp, 8
lea edx, [ebp - 0x450]
call fcn.10004700
lea ecx, [ebp - 0x450]
mov dword [ebp - 0x458], 0
add esp, 4
mov dword [ebp - 0x454], 0xf
mov byte [ebp - 0x468], 0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10001384
sub ecx, edx
lea eax, [ebp - 0x450]
push ecx
push eax
lea ecx, [ebp - 0x468]
call fcn.10001590
push 0xe
push str.PlayConfig.ini
lea ecx, [ebp - 0x468]
mov dword [ebp - 4], 0
call fcn.10001660
push 0x40
lea eax, [ebp - 0x50]
push 0
push eax
call fcn.1001edb0
add esp, 0xc
lea eax, [ebp - 0x468]
cmp dword [ebp - 0x454], 0x10
cmovae eax, dword [ebp - 0x468]
push eax
push 0x40
lea eax, [ebp - 0x50]
push eax
push 0x1003bbd4
push str.loglevel
push str.DEBUG
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x10001411
lea eax, [ebp - 0x50]
push eax
call fcn.100200b7
add esp, 4
push eax
push 0
call sym.PlayDiag.dll_PLAYDIAG_SetLogLevel
push 0x40
lea eax, [ebp - 0x50]
push 0
push eax
call fcn.1001edb0
add esp, 0xc
lea eax, [ebp - 0x468]
cmp dword [ebp - 0x454], 0x10
cmovae eax, dword [ebp - 0x468]
push eax
push 0x40
lea eax, [ebp - 0x50]
push eax
push 0x1003bbd4
push str.enableconcisemode
push str.DEBUG
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x10001483
lea eax, [ebp - 0x50]
xor bl, bl
push eax
call fcn.100200b7
add esp, 4
movzx ecx, bl
mov edx, 1
cmp eax, edx
cmove ecx, edx
mov byte [ebp - 0x46c], cl
push dword [ebp - 0x46c]
push 0
call sym.PlayDiag.dll_PLAYDIAG_EnableConciseMode
mov eax, dword [ebp - 0x454]
cmp eax, 0x10
jb 0x100014d3
mov ecx, dword [ebp - 0x468]
inc eax
cmp eax, 0x1000
jb 0x100014ca
test cl, 0x1f
je 0x100014a6
call fcn.100202b6
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x100014b2
call fcn.100202b6
sub ecx, eax
cmp ecx, 4
jae 0x100014be
call fcn.100202b6
cmp ecx, 0x23
jbe 0x100014c8
call fcn.100202b6
mov ecx, eax
push ecx
call fcn.10005a9c
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10005a58
mov esp, ebp
pop ebp
ret
Function at 0x10002200
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1008
call fcn.10031f60
mov eax, dword [0x1004200c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, esi
mov dword [ebp - 0x1008], esi
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x10002228
sub edi, ecx
mov eax, 0xfff
cmp edi, eax
cmova edi, eax
lea eax, [edi + 1]
push eax
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.1001e320
mov ebx, 1
add esp, 0xc
cmp edi, ebx
jbe 0x100022c1
lea ecx, [ebp - 0x1004]
inc esi
sub ecx, dword [ebp - 0x1008]
mov dword [ebp - 0x1008], ecx
nop dword [eax + eax]
mov al, byte [esi]
cmp al, 0x5c
je 0x1000227a
cmp al, 0x2f
jne 0x100022bb
cmp ebx, 0x1000
jae 0x100022eb
lea eax, [ebp - 0x1004]
mov byte [ecx + esi], 0
push 0
push eax
call fcn.10020788
add esp, 8
cmp eax, 0xffffffff
jne 0x100022b0
lea eax, [ebp - 0x1004]
push eax
call fcn.100221e9
add esp, 4
cmp eax, 0xffffffff
je 0x100022d6
mov ecx, dword [ebp - 0x1008]
mov al, byte [esi]
mov byte [ecx + esi], al
inc ebx
inc esi
cmp ebx, edi
jb 0x10002270
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10005a58
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10005a58
mov esp, ebp
pop ebp
ret 4
call fcn.10005bc4
int3