joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42cd10
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 0x42cdad
push ebx
push esi
call fcn.0042ccd9
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.0042cc22
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x42cd5a
push esi
call dword [sym.imp.kernel32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x42cdac
push edi
push eax
call fcn.0042d910
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x42cd7a
call fcn.0042b8cd
pop ecx
push esi
call dword [sym.imp.kernel32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x42cdab
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0042cc22
add esp, 0x20
test eax, eax
jne 0x42cd99
push edi
call fcn.0042b8cd
jmp 0x42cda1
push ebx
call fcn.0042b8cd
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 0x42e093
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x40b150
push 0x40b148
push 0x409ddc
push 0x1e
call fcn.0042df54
mov esi, eax
add esp, 0x10
test esi, esi
je 0x42e0c7
push dword [ebp + 8]
mov ecx, esi
call dword [0x438194]
call esi
jmp 0x42e0cd
call dword [sym.imp.kernel32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x42e111
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x40b160
push 0x40b158
push 0x409e00
push 0x20
call fcn.0042df54
mov esi, eax
add esp, 0x10
test esi, esi
je 0x42e148
push dword [ebp + 8]
mov ecx, esi
call dword [0x438194]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.kernel32.dll_TlsGetValue]
Function at 0x433510
Capabilities:
Parse pe header

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

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
nop
pop eax
nop
nop
nop
nop
add eax, 0x403ac5
nop
nop
sub eax, 0x403a6b
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
jl 0x42e030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x42e01e
nop
nop
nop
popal
nop
nop
jmp loc.00401219

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

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

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

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..rsrc
mov ebx, 0x40de38
nop
nop
mov ecx, 0x65824ea9
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x43304e
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x433024
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x4304d8
mov ecx, 0x72ab3057
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x433084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x431002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
mov eax, section..text
nop
nop
nop
nop
push 4
nop
nop
pop edi
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
je 0x431072
nop
nop
nop
nop
nop
mov ebx, 0x40915c
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x1c185fba
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x431060
nop
mov eax, str.Ghy
nop
cmp eax, 0
nop
nop
nop
je 0x4310d2
nop
nop
nop
nop
nop
mov ebx, 0x42f3f8
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x680728c9
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x4310c0
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x9eb920
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
xor esi, esi
test edi, edi
je 0x9eb96c
mov cl, byte [ebx + esi]
mov dl, cl
mov al, cl
shr dl, 1
and al, 0xfe
not dl
movzx eax, al
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
or cl, 1
test dl, 2
movzx ecx, cl
cmove ecx, eax
mov byte [ebx + esi], cl
inc esi
cmp esi, edi
jb 0x9eb932
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x9eb9d0
Capabilities:
Hash data using md4
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0xf0000040
push 1
push 0
push 0
lea edi, [esi + 4]
mov dword [esi], 0
push esi
mov dword [edi], 0
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x9eba22
push edi
push 0
push 0
push 0x8002
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x9eba28
push eax
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov dword [esi], 0
pop edi
xor eax, eax
pop esi
pop ebp
ret
pop edi
mov eax, 1
pop esi
pop ebp
ret

Function at 0xa03f15
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00a03bd5

Function at 0xa08d0f
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00a08b8e

Function at 0xa0e2c0
Capabilities:
Parse pe header

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

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
nop
nop
pop eax
nop
add eax, 0x403daa
nop
sub eax, 0x403d50
nop
nop
nop
nop
nop
mov ebx, dword [eax]
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x430030
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
popal
nop
nop
nop
jmp loc.00401219
Function at 0x4060b6
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.004021ba
and dword [ebp - 4], 0
cmp dword [0x40b654], 0
mov ebx, eax
jne 0x406167
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x406218
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x406218
push eax
call fcn.00402148
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x40b654], eax
call esi
push eax
call fcn.00402148
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x40b658], eax
call esi
push eax
call fcn.00402148
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x40b65c], eax
call esi
push eax
call fcn.00402148
pop ecx
mov dword [0x40b664], eax
test eax, eax
je 0x406167
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00402148
pop ecx
mov dword [0x40b660], eax
mov eax, dword [0x40b660]
cmp eax, ebx
je 0x4061bf
cmp dword [0x40b664], ebx
je 0x4061bf
push eax
call fcn.004021c3
push dword [0x40b664]
mov esi, eax
call fcn.004021c3
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4061bf
test edi, edi
je 0x4061bf
call esi
test eax, eax
je 0x4061b6
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4061b6
test byte [ebp - 0xc], 1
jne 0x4061bf
or dword [ebp + 0x10], 0x200000
jmp 0x4061f8
mov eax, dword [0x40b658]
cmp eax, ebx
je 0x4061f8
push eax
call fcn.004021c3
pop ecx
test eax, eax
je 0x4061f8
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4061f8
mov eax, dword [0x40b65c]
cmp eax, ebx
je 0x4061f8
push eax
call fcn.004021c3
pop ecx
test eax, eax
je 0x4061f8
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x40b654]
call fcn.004021c3
pop ecx
test eax, eax
je 0x406218
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40621a
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40a250
Capabilities:
Encode data using xor

Disassembly:
inc eax
inc edi
mov edx, dword [esi]
mov dword [edx + 0x20], eax
cli
or byte ss:[eax], ah
push edi
add byte fs:[eax + 0x34], ch
mov byte [0x8b560040], al
push es
push eax
call fcn.00405600
pop edi
xor eax, dword [ecx - 0x4a3ddda2]
add byte [eax - 0x6f6f6f70], dl
nop
nop
nop
cli
nop
nop
mov dh, 0x55
mov ebp, esp
mov edi, dword [ebx - 0x4d]
mov edi, dword [ebx]
add al, 0x85
leave
jns 0x40a2a2
mov dword [eax + 4], 0x30ffd2ff
xor ecx, 0xc
push eax
call dword [0x1c02a]
xor eax, dword [ecx + 0x408bc35d]
or byte [eax - 1], dl
adc eax, sym.imp.KERNEL32.dll_CloseHandle
mov eax, dword [eax + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x40a29e
mov dword [0xc098358b], eax
inc eax
add bh, bh
salc
aas
fcmove st(0), st(3)
add esi, dword [edx]
pop ebp
or al, 0xff
out 5, eax
lcall 0xc35d, 0x5e3d0a1e
nop
nop
nop
nop
nop
Function at 0x431001
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
nop
push 4
nop
pop edi
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
je 0x431072
nop
nop
nop
nop
mov ebx, 0x40915c
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
pop eax
nop
nop
nop
nop
mov esi, 0xfc42d0
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x431060
nop
nop
mov eax, section..reloc
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x4310d2
nop
mov ebx, 0x42f3f8
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
mov esi, 0x327b3343
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x4310c0
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..idata
nop
nop
mov ebx, 0x40915c
nop
mov ecx, 0x43c4669
nop
nop
test eax, eax
nop
nop
je 0x43104e
nop
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x431024
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42f3f8
mov ecx, 0x4392005f
nop
nop
nop
nop
nop
test eax, eax
nop
je 0x431084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x43106c
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x56b5e3
Capabilities:
Encode data using xor

Disassembly:
sub al, 0xab
or ebp, esp
mov dword [0xf323c464], eax
hlt
loope 0x56b597
insb byte es:[edi], dx
invalid

Function at 0x7c607d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x7cf388
cmp edx, dword [eax]
je 0x7c609f
add eax, 8
inc ecx
cmp eax, 0x7cf418
jl 0x7c6090
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x7cf388]
jne 0x7c61cd
mov eax, dword [0xbd2ce4]
cmp eax, 1
je 0x7c61a7
test eax, eax
jne 0x7c60d0
cmp dword [0x7cf2b4], 1
je 0x7c61a7
cmp edx, 0xfc
je 0x7c61cd
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x7c6107
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.007c6a60
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.007c6ef0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x7c614a
lea eax, [ebp - 0x1a4]
push eax
call fcn.007c6ef0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x7cbad4
push edi
call fcn.007c8dc0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.007c6a60
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.007c6a70
lea eax, [ebp - 0xa0]
push 0x7cbab4
push eax
call fcn.007c6a70
push dword [esi + 0x7cf38c]
lea eax, [ebp - 0xa0]
push eax
call fcn.007c6a70
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.007c8d34
add esp, 0x2c
pop edi
jmp 0x7c61cd
lea eax, [ebp + 8]
lea esi, [esi + 0x7cf38c]
push 0
push eax
push dword [esi]
call fcn.007c6ef0
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 0x5aaef2
Capabilities:
Resolve function by parsing pe exports

Disassembly:
add esp, 4
add esi, 0x16632
and esi, 0x8081
and esi, 0xfb65
pop esi
mov ecx, dword [ebp - 0x4d8]
mov dword [ebp - 0x6ec], ecx
jmp 0x5aaf7e
Function at 0x5abc12
Capabilities:
Contain obfuscated stackstrings

Disassembly:
add esp, 4
and ebx, 0x3f77
call 0x5abb7d
add byte [edx], dh
inc edi
dec ebp
xor al, 0x39
inc ebp
dec ebx
dec eax
inc ebp
inc ebx
add esp, 4
call 0x5abb90
add byte [ebx + eax*2 + 0x36], al
inc esp
inc ebx
dec ecx
cmp eax, 0xc4834134
add al, 0x5b
cmp dword [ebp - 0x3cc], 0
je 0x5abba6
cmp dword [ebp - 0xa5c], 0
jne 0x5abbec
push edi
call 0x5abbb3
add byte [edi + 0x33], al
cmp dword [ebx + 0x4b], ecx
push eax
add esp, 4
pop edi
push ecx
push eax
add esp, 4
jmp 0x5abbc5
add ecx, 0xc350
jmp 0x5abbd1
add ecx, 0xdc8d
pop ecx
mov edx, dword [ebp - 0x738]
mov dword [ebp - 0x18d0], edx
push 0
call dword [ebp - 0x18d0]
mov dword [ebp - 0x1fb0], 0xa
push esi
push edx
add esp, 4
add esi, 0x17fe7
pop esi
push ecx
call 0x5abc12
add byte [esi + esi], dh
inc ebp
aaa
dec edi
push eax
inc edx
inc esi
add esp, 4
add ecx, 0x16742
xor ecx, 0x3338
invalid
int1
invalid
Function at 0x5c6010
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf8
push ebx
mov ebx, eax
push 0x104
lea eax, [ebp - 0x208]
push eax
call sub.kernel32.dll_GetSystemDirectoryW
mov edx, ebx
lea eax, [ebp - 0x208]
call fcn.00424328
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x5c6820
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x5c6866
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 4]
mov eax, ebx
call fcn.005c5694
mov eax, dword [ebp - 4]
call fcn.0040b278
push eax
call sub.kernel32.dll_GetFileAttributesW
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5c686d
lea eax, [ebp - 4]
call fcn.0040a1c8
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.0040b278
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x5c688d
test al, 0x10
je 0x5c6891
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.0040b278
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x5c68da
test al, 0x10
je 0x5c68da
test ah, 4
je 0x5c68de
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x5c68e4
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
mov edi, dword [ebp + 8]
mov eax, dword [ebp - 4]
call fcn.0040a2ac
xor eax, eax
push ebp
push 0x5c69dd
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
call fcn.0040a784
mov ebx, pe_nt_image_headers32
mov eax, edi
mov ecx, ebx
xor edx, edx
call fcn.0040a350
cmp dword [ebp + 0xc], 0
je 0x5c6963
mov eax, dword [ebp + 0xc]
call fcn.0040b278
push eax
push ebx
mov eax, edi
call fcn.0040a774
push eax
mov eax, dword [ebp - 4]
call fcn.0040b278
push eax
mov eax, dword [ebp - 0xc]
call fcn.0040b278
push eax
mov eax, dword [ebp - 8]
call fcn.0040b278
push eax
call sub.kernel32.dll_GetPrivateProfileStringW
mov esi, eax
jmp 0x5c698e
push ebx
mov eax, edi
call fcn.0040a774
push eax
mov eax, dword [ebp - 4]
call fcn.0040b278
push eax
mov eax, dword [ebp - 0xc]
call fcn.0040b278
push eax
mov eax, dword [ebp - 8]
call fcn.0040b278
push eax
call sub.kernel32.dll_GetProfileStringW
mov esi, eax
test esi, esi
je 0x5c69a4
mov eax, dword [edi]
call fcn.0040b278
call fcn.0040a6d8
mov dword [ebp - 0x10], eax
mov esi, dword [ebp - 0x10]
mov eax, ebx
sub eax, 8
cmp esi, eax
jl 0x5c69b5
cmp ebx, 0x10000
jl 0x5c69c0
mov eax, edi
mov edx, esi
call fcn.0040b3f0
jmp 0x5c69c7
add ebx, ebx
jmp 0x5c691c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5c69e4
lea eax, [ebp - 4]
call fcn.0040a1c8
ret
Function at 0x5c6ab0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
mov ebx, eax
mov word [ebp - 0x10], 0
mov eax, dword [ebp + 8]
cmp dword [eax - 4], 0
je 0x5c6afa
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.0040b278
push eax
push 8
lea eax, [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
call fcn.0040b278
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
call fcn.0040b278
push eax
call sub.kernel32.dll_GetPrivateProfileStringW
jmp 0x5c6b1e
push 8
lea eax, [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
call fcn.0040b278
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
call fcn.0040b278
push eax
call sub.kernel32.dll_GetProfileStringW
push ebx
lea eax, [ebp - 0x10]
push eax
call sub.kernel32.dll_lstrcmpW
test eax, eax
sete al
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x5c6b90
Capabilities:
Read .ini file

Disassembly:
push ebx
push esi
add esp, 0xfffffe00
mov ebx, edx
mov esi, eax
mov word [esp], 0
test ebx, ebx
je 0x5c6bce
mov eax, ebx
call fcn.0040b278
push eax
push pe_nt_image_headers32
lea eax, [esp + 8]
push eax
push 0x5c6c00
push 0
mov eax, esi
call fcn.0040b278
push eax
call sub.kernel32.dll_GetPrivateProfileStringW
jmp 0x5c6bec
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
push 0x5c6c00
push 0
mov eax, esi
call fcn.0040b278
push eax
call sub.kernel32.dll_GetProfileStringW
cmp word [esp], 0
sete al
add esp, 0x200
pop esi
pop ebx
ret

Function at 0x5c6fc8
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov edi, edx
mov esi, eax
xor eax, eax
push ebp
push 0x5c705d
push dword fs:[eax]
mov dword fs:[eax], esp
test esi, esi
jne 0x5c7013
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
mov ecx, eax
lea edx, [ebp - 0x20c]
mov eax, edi
call fcn.0040a350
jmp 0x5c7047
call sub.kernel32.dll_GetCommandLineW
mov ebx, eax
cmp word [ebx], 0
jne 0x5c702a
lea eax, [ebp - 4]
call fcn.0040a1c8
jmp 0x5c703d
lea edx, [ebp - 4]
mov eax, ebx
call fcn.005c6e18
mov ebx, eax
test esi, esi
je 0x5c703d
dec esi
jmp 0x5c701a
mov eax, edi
mov edx, dword [ebp - 4]
call fcn.0040a5a8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5c7064
lea eax, [ebp - 4]
call fcn.0040a1c8
ret

Function at 0x5c7448
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffdf8
mov ebx, eax
push 0x104
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetWindowsDirectoryW
mov edx, ebx
mov eax, esp
call fcn.00424328
add esp, 0x208
pop ebx
ret

Function at 0x5c74a8
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffdf8
mov ebx, eax
push 0x104
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemDirectoryW
mov edx, ebx
mov eax, esp
call fcn.00424328
add esp, 0x208
pop ebx
ret
Function at 0x5c757c
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
push esi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x5c75f9
push dword fs:[eax]
mov dword fs:[eax], esp
test bl, bl
je 0x5c75d7
call sub.kernel32.dll_GetVersion
and eax, 0xff
cmp ax, 6
jb 0x5c75d7
lea eax, [ebp - 8]
call fcn.005c74a8
mov eax, dword [ebp - 8]
lea edx, [ebp - 4]
call fcn.005c4ebc
lea eax, [ebp - 4]
mov edx, 0x5c7614
call fcn.0040b470
mov eax, dword [ebp - 4]
mov edx, esi
call fcn.005c52e0
jmp 0x5c75de
mov eax, esi
call fcn.0040a1c8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5c7600
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040a228
ret

Function at 0x5c7840
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov edi, eax
xor eax, eax
push ebp
push 0x5c7976
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push 0
lea eax, [ebp - 0x10]
push eax
push 0
mov eax, dword [ebp - 8]
push eax
push edi
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x5c7960
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 0xc]
je 0x5c789d
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 8]
jne 0x5c7960
cmp dword [ebp - 0x14], 0
jne 0x5c78b2
mov eax, dword [ebp - 0xc]
call fcn.0040a1c8
mov bl, 1
jmp 0x5c7960
cmp dword [ebp - 0x14], 0x70000000
jb 0x5c78c0
call fcn.00429014
mov esi, dword [ebp - 0x14]
inc esi
shr esi, 1
lea eax, [ebp - 4]
mov ecx, esi
xor edx, edx
call fcn.0040a350
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 4]
call fcn.0040a774
push eax
lea eax, [ebp - 0x10]
push eax
push 0
mov eax, dword [ebp - 8]
push eax
push edi
call sub.advapi32.dll_RegQueryValueExW
cmp eax, 0xea
je 0x5c7866
test eax, eax
jne 0x5c7960
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 0xc]
je 0x5c790e
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 8]
jne 0x5c7960
mov esi, dword [ebp - 0x14]
shr esi, 1
jmp 0x5c7916
dec esi
test esi, esi
je 0x5c7925
mov eax, dword [ebp - 4]
cmp word [eax + esi*2 - 2], 0
je 0x5c7915
cmp dword [ebp - 0x10], 7
jne 0x5c7930
test esi, esi
je 0x5c7930
inc esi
lea eax, [ebp - 4]
mov edx, esi
call fcn.0040b3f0
cmp dword [ebp - 0x10], 7
jne 0x5c7953
test esi, esi
je 0x5c7953
lea eax, [ebp - 4]
call fcn.0040a774
mov word [eax + esi*2 - 2], 0
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
call fcn.0040a5a8
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5c797d
lea eax, [ebp - 4]
call fcn.0040a1c8
ret