joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4e72d0
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0xc
push ebx
push esi
push edi
lea eax, [esp + 0xe]
push eax
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x1c]
mov edi, dword [esp + 0x28]
push eax
mov esi, dword [esp + 0x28]
push edi
push esi
call fcn.004e50c0
lea eax, [esp + 0xe]
push eax
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x1c]
push eax
push edi
push esi
call fcn.004e50c0
mov eax, dword [esp + 0x10]
push 0xe
mov ax, word [eax + 4]
push eax
call fcn.004e6cd0
or al, al
jne 0x4e73b3
mov eax, dword [esp + 0x14]
push eax
push esi
call fcn.004e7ac0
mov bx, ax
or bl, bl
jne 0x4e7382
mov eax, dword [esp + 0x10]
mov ax, word [eax + 0xe]
push eax
mov eax, dword [esp + 0x14]
mov ax, word [eax + 0xc]
push eax
mov eax, dword [esp + 0x18]
mov ax, word [eax + 0xa]
push eax
mov eax, dword [esp + 0x1c]
mov al, byte [eax + 8]
push eax
mov eax, dword [esp + 0x20]
mov ax, word [eax + 6]
push eax
mov eax, dword [esp + 0x24]
mov ax, word [eax + 4]
push eax
mov eax, dword [esp + 0x2c]
push eax
push esi
call fcn.004e79d0
mov bx, ax
mov eax, dword [esp + 0x14]
push eax
push esi
call fcn.004e7b10
push esi
call fcn.004e51d0
cmp ax, 0xd
jne 0x4e7392
mov bx, 0xd
cmp bl, 0xd
je 0x4e739d
cmp bx, 3
jne 0x4e73b0
mov ax, word [esp + 0xe]
dec word [esp + 0xe]
or ax, ax
jne 0x4e7322
mov ax, bx
pop edi
pop esi
pop ebx
add esp, 0xc
ret 8

Function at 0x4e9010
Capabilities:
Check if file exists

Disassembly:
sub esp, 0xc
push esi
mov byte [esp + 4], 0x52
mov byte [esp + 5], 0x4e
mov byte [esp + 6], 0x42
mov byte [esp + 7], 0x4f
mov byte [esp + 8], 0x44
mov byte [esp + 9], 0x52
mov byte [esp + 0xa], 0x56
mov ax, word [esp + 0x18]
add al, 0x30
mov byte [esp + 0xb], al
mov esi, dword [esp + 0x14]
mov byte [esp + 0xc], 0
mov dword [esi], 0
push 0
push 0x80
push 3
push 0
push 3
lea eax, [esp + 0x18]
push 0xc0000000
push eax
call sub.KERNEL32.dll_CreateFileA
mov dword [esi], eax
cmp eax, 0xffffffff
jne 0x4e90a6
call sub.KERNEL32.dll_GetLastError
cmp eax, 2
jb 0x4e9083
cmp eax, 3
jbe 0x4e909b
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x4e9090
push eax
call sub.KERNEL32.dll_CloseHandle
mov ax, 0x80b
pop esi
add esp, 0xc
ret 8
mov ax, 0x80c
pop esi
add esp, 0xc
ret 8
mov ax, 0x800
pop esi
add esp, 0xc
ret 8

Function at 0x4e90c0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
sub esp, 4
push ebx
push esi
push edi
mov esi, dword [esp + 0x18]
push esi
mov word [esi + 6], 0xffff
call fcn.004e8fb0
lea eax, [esp + 0xc]
push 0
push eax
xor eax, eax
mov ax, word [esi + 2]
push eax
mov edi, dword [esp + 0x20]
push esi
mov eax, dword [edi]
push eax
call sub.KERNEL32.dll_WriteFile
mov ebx, eax
or ebx, ebx
je 0x4e9110
lea eax, [esp + 0xc]
push 0
push eax
xor eax, eax
mov ax, word [esi + 2]
push eax
push esi
mov eax, dword [edi]
push eax
call sub.KERNEL32.dll_ReadFile
mov ebx, eax
push esi
call fcn.004e8f70
or ebx, ebx
je 0x4e9122
cmp word [esi + 6], 0xffff
jne 0x4e9128
mov word [esi + 6], 0x83b
mov ax, word [esi + 6]
pop edi
pop esi
pop ebx
add esp, 4
ret 8
Function at 0x4e9250
Capabilities:
Check if file exists

Disassembly:
sub esp, 0x10
push esi
mov al, byte [esp + 0x1c]
push eax
lea eax, [esp + 8]
push eax
call fcn.004e9210
push 0
push 0x80
push 3
push 0
push 3
lea eax, [esp + 0x18]
push 0xc0000000
push eax
call sub.KERNEL32.dll_CreateFileA
mov esi, dword [esp + 0x18]
cmp eax, 0xffffffff
mov dword [esi], eax
jne 0x4e92c0
call sub.KERNEL32.dll_GetLastError
cmp eax, 2
jb 0x4e9299
cmp eax, 3
jbe 0x4e92b1
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x4e92a6
push eax
call sub.KERNEL32.dll_CloseHandle
mov ax, 0x20b
pop esi
add esp, 0x10
ret 8
mov ax, 0x20c
pop esi
add esp, 0x10
ret 8
mov ax, 0x200
pop esi
add esp, 0x10
ret 8

Function at 0x4e92e0
Capabilities:
Read file on windows

Disassembly:
sub esp, 4
push esi
push edi
mov esi, dword [esp + 0x14]
push esi
mov word [esi + 6], 0xffff
call fcn.004e8fb0
lea eax, [esp + 8]
push 0
push eax
xor eax, eax
mov ax, word [esi + 2]
push eax
mov eax, dword [esp + 0x1c]
push esi
mov eax, dword [eax]
push eax
call sub.KERNEL32.dll_ReadFile
mov edi, eax
push esi
call fcn.004e8f70
cmp edi, 1
jne 0x4e9325
cmp word [esi + 6], 0xffff
jne 0x4e932b
mov word [esi + 6], 0x23b
mov ax, word [esi + 6]
pop edi
pop esi
add esp, 4
ret 8

Function at 0x4e9410
Capabilities:
Contain obfuscated stackstrings
Read .ini file

Disassembly:
sub esp, 0x24
mov byte [esp + 8], 0x53
mov byte [esp + 9], 0x59
mov byte [esp + 0xa], 0x53
mov byte [esp + 0xb], 0x54
mov byte [esp + 0xc], 0x45
mov byte [esp + 0xd], 0x4d
mov byte [esp + 0xe], 0x2e
mov byte [esp + 0xf], 0x49
mov byte [esp + 0x10], 0x4e
mov byte [esp + 0x11], 0x49
mov byte [esp + 0x12], 0
mov byte [esp + 0x14], 0x53
mov byte [esp + 0x15], 0x65
mov byte [esp + 0x16], 0x6e
mov byte [esp + 0x17], 0x74
mov byte [esp + 0x18], 0x69
mov byte [esp + 0x19], 0x6e
mov byte [esp + 0x1a], 0x65
mov byte [esp + 0x1b], 0x6c
mov byte [esp + 0x1c], 0x53
mov byte [esp + 0x1d], 0x65
mov byte [esp + 0x1e], 0x74
mov byte [esp + 0x1f], 0x75
mov byte [esp + 0x20], 0x70
mov byte [esp + 0x21], 0
mov byte [esp], 0x49
mov byte [esp + 1], 0x6f
lea eax, [esp + 8]
mov byte [esp + 2], 0x45
mov byte [esp + 3], 0x6e
mov byte [esp + 4], 0x74
mov byte [esp + 5], 0x72
mov byte [esp + 6], 0x79
mov byte [esp + 7], 0
push eax
lea eax, [esp + 4]
push 0
push eax
lea eax, [esp + 0x20]
push eax
call sub.KERNEL32.dll_GetPrivateProfileIntA
add esp, 0x24
ret

Function at 0x4ea2d0
Capabilities:
Enumerate pe sections

Disassembly:
push esi
mov eax, dword [esp + 8]
or eax, eax
jne 0x4ea2e1
mov ax, 2
pop esi
ret 0x14
push eax
call fcn.004e3f10
mov esi, eax
cmp word [esi], 0x7242
je 0x4ea2f8
mov ax, 2
pop esi
ret 0x14
test byte [esi + 0x12], 4
jne 0x4ea310
mov word [esi + 6], 0xb39
mov ax, 0x39
pop esi
ret 0x14
mov word [esi + 0x30], 0xd
mov ax, word [esp + 0x10]
mov word [esi + 0x34], ax
mov ax, word [esp + 0x14]
mov word [esi + 0x36], ax
mov ax, word [esp + 0xc]
mov word [esi + 0x3a], ax
mov al, byte [esp + 0x18]
mov byte [esi + 0x38], al
push esi
call fcn.004e8a80
mov ax, word [esi + 6]
push eax
call fcn.004e9790
cmp ax, 0xc
jne 0x4ea356
mov ax, 3
pop esi
ret 0x14
mov ax, word [esi + 6]
push eax
call fcn.004e9790
pop esi
ret 0x14
Function at 0x4eaa70
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x4eaa81
or eax, 0xffffffff
pop esi
ret
mov eax, dword [esi + 4]
test eax, eax
jne 0x4eaace
call fcn.005120e1
mov dword [eax], 0
mov eax, dword [esi + 0x40]
mov ecx, dword [esi + 0x44]
push eax
push 0x4000
push 1
push ecx
call fcn.00513cf8
add esp, 0x10
mov dword [esi + 4], eax
test eax, eax
jne 0x4eaac9
mov edx, dword [esi + 0x40]
mov dword [esi + 0x3c], 1
or eax, 0xffffffff
test byte [edx + 0xc], 0x20
je 0x4eaae0
mov dword [esi + 0x38], eax
pop esi
ret
mov eax, dword [esi + 0x44]
mov dword [esi], eax
mov eax, dword [esi + 4]
xor ecx, ecx
dec eax
mov dword [esi + 4], eax
mov eax, dword [esi]
mov cl, byte [eax]
inc eax
mov dword [esi], eax
mov eax, ecx
pop esi
ret
Function at 0x4eae40
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x4eaecf
cmp byte [esi + 0x5c], 0x77
jne 0x4eaecf
push ebp
mov ebp, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0x18]
test edi, edi
mov dword [esi], ebp
mov dword [esi + 4], edi
je 0x4eaeb3
mov eax, dword [esi + 0x10]
test eax, eax
jne 0x4eae91
mov ecx, dword [esi + 0x40]
mov eax, dword [esi + 0x48]
push ecx
push 0x4000
push 1
push eax
mov dword [esi + 0xc], eax
call fcn.005139d6
add esp, 0x10
cmp eax, 0x4000
jne 0x4eaeac
mov dword [esi + 0x10], eax
push 0
push esi
call fcn.004ebc30
add esp, 8
mov dword [esi + 0x38], eax
test eax, eax
jne 0x4eaeb3
mov eax, dword [esi + 4]
test eax, eax
jne 0x4eae66
jmp 0x4eaeb3
mov dword [esi + 0x38], 0xffffffff
mov edx, dword [esi + 0x4c]
push edi
push ebp
push edx
call fcn.004eccc0
mov ecx, dword [esi + 4]
add esp, 0xc
mov dword [esi + 0x4c], eax
mov eax, edi
pop edi
pop ebp
sub eax, ecx
pop esi
ret
mov eax, 0xfffffffe
pop esi
ret

Function at 0x4eaf50
Capabilities:
Write file on windows

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
xor ebx, ebx
test esi, esi
push edi
je 0x4eaffd
cmp byte [esi + 0x5c], 0x77
jne 0x4eaffd
mov dword [esi + 4], ebx
mov eax, dword [esi + 0x10]
mov edi, 0x4000
sub edi, eax
je 0x4eaf9e
mov eax, dword [esi + 0x40]
mov ecx, dword [esi + 0x48]
push eax
push edi
push 1
push ecx
call fcn.005139d6
add esp, 0x10
cmp eax, edi
jne 0x4eafe3
mov edx, dword [esi + 0x48]
mov dword [esi + 0x10], 0x4000
mov dword [esi + 0xc], edx
test ebx, ebx
jne 0x4eafed
mov eax, dword [esp + 0x14]
push eax
push esi
call fcn.004ebc30
add esp, 8
mov dword [esi + 0x38], eax
test edi, edi
jne 0x4eafbf
cmp eax, 0xfffffffb
jne 0x4eafbf
mov dword [esi + 0x38], edi
mov eax, dword [esi + 0x10]
test eax, eax
jne 0x4eafd0
cmp dword [esi + 0x38], 1
je 0x4eafd0
xor ebx, ebx
jmp 0x4eafd5
mov ebx, 1
mov eax, dword [esi + 0x38]
test eax, eax
je 0x4eaf6e
cmp eax, 1
jne 0x4eafed
jmp 0x4eaf6e
or eax, 0xffffffff
pop edi
mov dword [esi + 0x38], eax
pop esi
pop ebx
ret
mov esi, dword [esi + 0x38]
pop edi
mov eax, esi
dec eax
neg eax
sbb eax, eax
and eax, esi
pop esi
pop ebx
ret
pop edi
pop esi
mov eax, 0xfffffffe
pop ebx
ret
Function at 0x4eccc0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x4ecccb
xor eax, eax
ret
mov eax, dword [esp + 4]
push ebx
push esi
mov esi, dword [esp + 0x14]
cmp esi, 8
not eax
jb 0x4ecdce
push edi
mov edi, esi
shr edi, 3
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
mov ebx, eax
shr ebx, 8
mov eax, dword [edx*4 + 0x53ef18]
sub esi, 8
xor eax, ebx
inc ecx
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x53ef18]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x53ef18]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x53ef18]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x53ef18]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x53ef18]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x53ef18]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x53ef18]
xor eax, edx
inc ecx
dec edi
jne 0x4ecce6
pop edi
test esi, esi
je 0x4ecdf0
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x53ef18]
xor eax, edx
inc ecx
dec esi
jne 0x4ecdd2
pop esi
pop ebx
not eax
ret
Function at 0x4f236b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
test ebx, 0xffff0000
jne 0x4f238f
cmp dword [edi + 0x54], 0
jne 0x4f238f
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.004f176c
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.004f232c
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x4f7949
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x4f7990
call fcn.004f176c
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x4f7990
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x4f79ac
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.004f74c3
mov esi, eax
test edi, edi
je 0x4f79aa
test ebx, ebx
je 0x4f79aa
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x4f8823
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x531104
call fcn.00514047
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x4f8848
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x4f888e
lea ecx, [ebp - 0x10]
call fcn.00403780
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004f8062
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00401710
mov eax, esi
call fcn.0051411f
ret 8
Function at 0x4fcaaa
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x4fcaf2
call fcn.004f176c
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x4fcaf2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x4fcb35
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x4fcb1e
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 0x4fcb1e
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x4fcb32
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 0x50e02e
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x5695e0]
jne 0x50e038
repz ret
jmp fcn.00517d28

Function at 0x511c8e
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x511cbf
call fcn.005120f4
mov dword [eax], esi
call fcn.005120e1
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.005180c9
add esp, 0x14
push 0x16
pop eax
jmp 0x511d14
test dword [ebp + 0xc], 0xfffffff9
jne 0x511c9b
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x511cec
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00512107
pop ecx
call fcn.005120e1
mov eax, dword [eax]
jmp 0x511d14
test al, 0x10
jne 0x511d12
test al, 1
je 0x511d12
test byte [ebp + 0xc], 2
je 0x511d12
call fcn.005120f4
mov dword [eax], 5
call fcn.005120e1
mov dword [eax], 0xd
jmp 0x511ce3
xor eax, eax
pop esi
pop ebp
ret
Function at 0x52a2dc
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0051996f
and dword [ebp - 4], 0
cmp dword [0xce598c], 0
mov ebx, eax
jne 0x52a38d
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x52a43e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x550378
push edi
call esi
test eax, eax
je 0x52a43e
push eax
call fcn.005198fd
mov dword [esp], 0x550368
push edi
mov dword [0xce598c], eax
call esi
push eax
call fcn.005198fd
mov dword [esp], 0x550354
push edi
mov dword [0xce5990], eax
call esi
push eax
call fcn.005198fd
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0xce5994], eax
call esi
push eax
call fcn.005198fd
pop ecx
mov dword [0xce599c], eax
test eax, eax
je 0x52a38d
push 0x550320
push edi
call esi
push eax
call fcn.005198fd
pop ecx
mov dword [0xce5998], eax
mov eax, dword [0xce5998]
cmp eax, ebx
je 0x52a3e5
cmp dword [0xce599c], ebx
je 0x52a3e5
push eax
call fcn.00519978
push dword [0xce599c]
mov esi, eax
call fcn.00519978
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x52a3e5
test edi, edi
je 0x52a3e5
call esi
test eax, eax
je 0x52a3dc
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x52a3dc
test byte [ebp - 0xc], 1
jne 0x52a3e5
or dword [ebp + 0x10], 0x200000
jmp 0x52a41e
mov eax, dword [0xce5990]
cmp eax, ebx
je 0x52a41e
push eax
call fcn.00519978
pop ecx
test eax, eax
je 0x52a41e
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x52a41e
mov eax, dword [0xce5994]
cmp eax, ebx
je 0x52a41e
push eax
call fcn.00519978
pop ecx
test eax, eax
je 0x52a41e
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0xce598c]
call fcn.00519978
pop ecx
test eax, eax
je 0x52a43e
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x52a440
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401900
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
mov esi, dword [esp + 0x14]
push edi
lea eax, [esp + 0xc]
push eax
push esi
mov edi, ecx
mov edx, dword [edi + 0x104]
lea ecx, [esp + 0x20]
push ecx
push 0
push ebx
push edx
mov dword [esp + 0x24], 0x3c
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x401977
mov eax, dword [edi + 0x104]
push 0x3c
push esi
push 3
push 0
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [esi]
mov ecx, dword [esp + 0x1c]
cdq
mov edi, eax
xor edi, edx
sub edi, edx
mov eax, ecx
cdq
xor eax, edx
sub eax, edx
cmp edi, eax
jge 0x401977
pop edi
mov dword [esi + 0x10], 0x2bc
mov dword [esi], ecx
pop esi
mov eax, 1
pop ebx
pop ecx
ret 0xc
pop edi
pop esi
xor eax, eax
pop ebx
pop ecx
ret 0xc

Function at 0x401d80
Capabilities:
Get common file path

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x40858e
push eax
mov dword fs:[0], esp
sub esp, 0x108
push esi
push 0x104
lea eax, [esp + 0xc]
push eax
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [esp + eax + 7], 0x5c
je 0x401dd0
push 0x4092ac
lea edx, [esp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 8]
push eax
push str._sVTTimer.ini
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
push 1
call fcn.00403713
add esp, 0x10
mov dword [esp + 4], eax
test eax, eax
mov dword [esp + 0x114], 0
je 0x401e07
mov ecx, eax
call fcn.004011b0
jmp 0x401e09
xor eax, eax
mov ecx, dword [esp + 0x10c]
mov dword [esi + 0x104], eax
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x114
ret

Function at 0x401e30
Capabilities:
Read .ini file

Disassembly:
mov edx, dword [esp + 4]
test edx, edx
push esi
je 0x401e75
mov eax, dword [esp + 0xc]
test eax, eax
je 0x401e75
mov esi, dword [esp + 0x10]
test esi, esi
je 0x401e75
push ecx
mov ecx, dword [esp + 0x18]
push ecx
push esi
push str.NoData
push eax
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push esi
push str.NoData
call fcn.00403bc2
add esp, 8
neg eax
sbb eax, eax
neg eax
pop esi
ret 0x10
xor eax, eax
pop esi
ret 0x10
Function at 0x401e80
Capabilities:
Read .ini file

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x38
test eax, eax
push edi
mov edi, ecx
je 0x401fd1
mov eax, dword [esp + 0x44]
test eax, eax
je 0x401fd1
mov eax, dword [str.DevicePriority]
mov edx, dword [0x4092c8]
mov ecx, dword [0x4092c4]
push 0x10
mov dword [esp + 0x10], eax
mov ax, word [0x4092cc]
mov dword [esp + 0x18], edx
lea edx, [esp + 0x20]
mov dword [esp + 0x14], ecx
mov cl, byte [0x4092ce]
push edx
mov word [esp + 0x20], ax
push str.Count
lea eax, [esp + 0x18]
mov byte [esp + 0x26], cl
push eax
mov ecx, edi
call fcn.00401e30
test eax, eax
je 0x401fd1
lea ecx, [esp + 0x1c]
push ecx
call fcn.00403c5d
add esp, 4
cmp eax, 1
mov dword [esp + 4], eax
jl 0x401fd1
cmp eax, 4
jl 0x401f1b
mov dword [esp + 4], 4
mov eax, dword [esp + 4]
mov ecx, dword [edi + 0x104]
test ecx, ecx
je 0x401fd1
push esi
xor esi, esi
test eax, eax
jle 0x401fbe
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcatA]
push str.Device
lea edx, [esp + 0x3c]
push edx
call ebx
push 0xa
lea eax, [esp + 0x18]
push eax
inc esi
push esi
call fcn.00408456
add esp, 0xc
push eax
lea ecx, [esp + 0x3c]
push ecx
call ebp
push edi
push 0x10
lea edx, [esp + 0x30]
push edx
push str.NoData
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea edx, [esp + 0x28]
push edx
push str.NoData
call fcn.00403bc2
add esp, 8
test eax, eax
je 0x401fb4
mov eax, dword [esp + 0x4c]
push eax
lea ecx, [esp + 0x2c]
push ecx
mov ecx, dword [edi + 0x104]
call fcn.00401270
add dword [esp + 0x4c], 4
mov eax, dword [esp + 0x10]
cmp esi, eax
jl 0x401f42
pop ebp
pop ebx
mov edx, dword [esp + 0x48]
pop esi
mov dword [edx], eax
mov eax, 1
pop edi
add esp, 0x38
ret 8
xor eax, eax
pop edi
add esp, 0x38
ret 8

Function at 0x4021f0
Capabilities:
Read .ini file

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x10
test eax, eax
je 0x402240
push ecx
push 0x10
lea ecx, [esp + 8]
push ecx
push str.NoData
push eax
push str.SettingFlag
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea edx, [esp]
push edx
push str.NoData
call fcn.00403bc2
add esp, 8
test eax, eax
je 0x402240
lea eax, [esp]
push eax
call fcn.00403c5d
add esp, 4
cmp eax, 1
jne 0x402240
add esp, 0x10
ret 4
xor eax, eax
add esp, 0x10
ret 4

Function at 0x402250
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x50
mov edx, dword [esp + 0x54]
push esi
push edi
mov esi, ecx
xor eax, eax
mov byte [esp + 0x18], 0
mov ecx, 0xf
lea edi, [esp + 0x19]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x60]
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x18]
push eax
push ecx
push edx
mov ecx, esi
call fcn.00402150
push esi
push 0x10
lea eax, [esp + 0x10]
push eax
push str.NoData
push str.SaveCurrentMode
lea ecx, [esp + 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea edx, [esp + 8]
push edx
push str.NoData
call fcn.00403bc2
add esp, 8
test eax, eax
pop edi
pop esi
je 0x4022ce
lea eax, [esp]
push eax
call fcn.00403c5d
add esp, 4
cmp eax, 1
jne 0x4022ce
add esp, 0x50
ret 8
xor eax, eax
add esp, 0x50
ret 8