joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48ef51
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 4], ecx
mov esi, edi
cmp dword [ebp + 8], esi
je 0x48ef96
call fcn.0049e803
push 0xf0
push dword [ebp + 8]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x48ef96
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x48efb2
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.004981a2
mov ebx, eax
test edi, edi
je 0x48efb0
test esi, esi
je 0x48efb0
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x49499f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor esi, esi
call fcn.0049e803
push 5
push dword [ebp + 8]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x4949d6
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
mov ecx, dword [ebp - 4]
push ebx
push dword [ebp + 0xc]
push esi
call fcn.004949f7
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x49832a
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
mov ecx, dword [esi + 4]
call fcn.00493701
push 0xfffffffffffffff0
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x498366
call fcn.00498591
mov dword [esi + 0xc], 1
jmp 0x49836b
call fcn.00498591
cmp dword [esi], 0
je 0x4983b4
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, dword [ebp + 0x10]
test eax, eax
jle 0x49838e
lea ecx, [eax + 1]
push ecx
push eax
mov ecx, esi
call fcn.0048c4ea
jmp 0x49839f
push 0xff
mov ecx, esi
call fcn.00417340
push 0x100
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0xffffffffffffffff
mov ecx, esi
call fcn.0048c956
jmp 0x4983d8
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
jne 0x4983d8
push dword [esi]
push dword [ebp - 4]
call fcn.004a0ff6
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x49849e
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, esi
push edi
push dword [ebp + 0xc]
call fcn.00498591
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x4984e6
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.0048c4ea
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.0048c956
jmp 0x4984f1
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.004a0ff6
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x4f2329
Capabilities:
Get common file path

Disassembly:
push esi
mov esi, ecx
call fcn.005889a2
call fcn.0049e857
cmp dword [eax + 0x14], 0
jne 0x4f2344
mov ecx, esi
pop esi
jmp fcn.004f172c
pop esi
ret

Function at 0x53977d
Capabilities:
Get common file path
Get file system object information

Disassembly:
push esi
mov esi, ecx
call fcn.00416b10
call fcn.0049e857
cmp dword [eax + 0x14], 0
jne 0x539798
mov ecx, esi
pop esi
jmp fcn.00539066
pop esi
ret
Function at 0x5c80e8
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x64a040]
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.005b9c13
mov dword [ebp - 0x14], eax
cmp dword [0x657108], esi
jne 0x5c81db
push 0x800
push esi
push 0x610980
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x5c8168
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x5c82bb
push esi
push esi
push 0x610980
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x5c82bb
push 0x610998
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x5c82bb
push eax
call ebx
push 0x6109a4
push edi
mov dword [0x657108], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x6109b4
push edi
mov dword [0x65710c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x657110], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x657118], eax
test eax, eax
je 0x5c81d8
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x657114], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x5c8200
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x5c81f3
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x5c8215
push 4
pop eax
jmp 0x5c82bd
cmp dword [ebp - 0x14], esi
je 0x5c8215
push dword [0x657108]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x5c81fa
mov eax, dword [0x657114]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x5c8273
cmp dword [0x657118], edi
je 0x5c8273
push eax
call ebx
push dword [0x657118]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x5c8273
test eax, eax
je 0x5c8273
call ecx
test eax, eax
je 0x5c8268
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 0x5c8268
test byte [ebp - 8], 1
jne 0x5c8273
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x5c82a3
mov eax, dword [0x65710c]
cmp eax, edi
je 0x5c82a0
push eax
call ebx
test eax, eax
je 0x5c82a0
call eax
mov esi, eax
test esi, esi
je 0x5c82a0
mov eax, dword [0x657110]
cmp eax, edi
je 0x5c82a0
push eax
call ebx
test eax, eax
je 0x5c82a0
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x657108]
call ebx
test eax, eax
je 0x5c82bb
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x5c82bd
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005b144a
mov esp, ebp
pop ebp
ret
Function at 0x405e6a
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
push esi
mov esi, 0x104
lea eax, [ebp - 0x120]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
cmp eax, esi
pop esi
jbe 0x405e8e
xor eax, eax
test eax, eax
je 0x405ea0
cmp byte [ebp + eax - 0x121], 0x5c
je 0x405ea0
xor ecx, ecx
jmp 0x405ea3
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx + 0x409010]
lea eax, [ebp + eax - 0x120]
push ecx
push str._s_s.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
leave
ret 4

Function at 0x405f43
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x43eacc], 0
push esi
jne 0x405f7a
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405f54
mov dword [ecx*4 + 0x43eac8], eax
inc ecx
cmp ecx, 0x100
jl 0x405f4f
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405fab
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x43eac8]
xor eax, esi
inc ecx
dec edx
jne 0x405f8d
pop edi
not eax
pop esi
ret 0xc

Function at 0x4014e6
Capabilities:
Check for software breakpoints

Disassembly:
mov ecx, dword [esp + 4]
push 0xfffffffffffffffb
pop eax
mov dl, byte [eax + ecx]
cmp dl, 0x90
je 0x4014fa
cmp dl, 0xcc
jne 0x401544
inc eax
cmp eax, 0xffffffff
jle 0x4014ed
mov al, byte [ecx]
cmp al, 0x8b
je 0x40150a
cmp al, 0x89
jne 0x401544
cmp byte [ecx + 1], 0xff
jne 0x401544
mov eax, 0x40189c
mov byte [ecx - 5], 0xe9
sub eax, ecx
mov dword [ecx - 4], eax
lea eax, [ecx + 2]
mov dword [0x436a10], eax
mov eax, 0xf9eb
push 0
push 0
mov word [ecx], ax
call dword [0x42a014]
push eax
call dword [0x42a034]
mov al, 1
ret 0xc
xor al, al
jmp 0x401541
Function at 0x401225
Capabilities:
Terminate process

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40b01c
push 0x40109a
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [0x40b020], 0x401219
mov dword [ebp - 4], 0
lea eax, [ebp - 4]
mov dword [0x40b038], eax
push eax
fnstcw word [esp]
or word [esp], 0x300
fldcw word [esp]
add esp, 4
lea eax, [0x40903c]
fnstenv [eax]
push 0
push 0x40b030
push 0x40b02c
push 0x40b028
call sub.CRTDLL.DLL___GetMainArgs
mov ecx, 0x409058
mov edx, dword [ecx]
or edx, edx
je 0x40129f
call ecx
push dword [0x40b030]
push dword [0x40b02c]
push dword [0x40b028]
mov dword [0x40b014], esp
call fcn.004012d4
add esp, 0x18
xor ecx, ecx
mov dword [ebp - 4], ecx
push eax
call sub.CRTDLL.DLL_exit
leave
ret

Function at 0x401af0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
cmp edi, 1
je 0x401b7e
cmp edi, 4
jne 0x401b73
mov eax, dword [sym.imp.CRTDLL.DLL__iob]
add eax, 0x40
push eax
push 1
push 7
push str.signal
call sub.CRTDLL.DLL_fwrite
push 0xa
lea eax, [ebp - 0x80]
push eax
push dword [ebp + 0xc]
call sub.CRTDLL.DLL__itoa
add esp, 0x1c
lea ecx, [ebp - 0x80]
or eax, 0xffffffff
inc eax
cmp byte [ecx + eax], 0
jne 0x401b37
mov ebx, dword [sym.imp.CRTDLL.DLL__iob]
add ebx, 0x40
push ebx
push 1
push eax
lea esi, [ebp - 0x80]
push esi
call sub.CRTDLL.DLL_fwrite
add esp, 0x10
mov eax, dword [sym.imp.CRTDLL.DLL__iob]
add eax, 0x40
push eax
push 1
push 1
push 0x40b240
call sub.CRTDLL.DLL_fwrite
add esp, 0x10
jmp 0x401b7e
cmp edi, 3
je 0x401b7e
push dword [ebp + 0xc]
call edi
pop ecx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x405a50
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1f8
push ebx
push esi
push edi
or dword [ebp - 0x20], 0xffffffff
and dword [ebp - 0x14], 0
or dword [ebp - 0x13c], 0xffffffff
push pe_nt_image_headers32
push 0
lea eax, [ebp - 0x1c0]
push eax
call sub.CRTDLL.DLL_memset
add esp, 0xc
and dword [ebp - 4], 0
and dword [ebp - 0x138], 0
jmp 0x4064fe
Function at 0x1000dfff
Capabilities:
Check if file exists

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x21c
mov eax, dword [0x10028014]
xor eax, esp
mov dword [esp + 0x218], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor edi, edi
mov dword [esp + 0x14], eax
push ecx
mov esi, 0x104
mov dword [eax], edi
mov edx, esi
mov dword [eax + 4], edi
lea ecx, [esp + 0x1c]
call fcn.10010399
push 0x10003180
mov edx, esi
lea ecx, [esp + 0x1c]
call fcn.1001041e
lea eax, [esp + 0x18]
push eax
push edi
push 0x1f0003
call dword [sym.imp.KERNEL32.dll_OpenSemaphoreW]
mov esi, eax
test esi, esi
jne 0x1000e085
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x1000e0bb
mov ecx, dword [ebp + 4]
mov edx, 0xc8
push 0x10003138
call fcn.1000dd52
mov edi, eax
jmp 0x1000e0bb
lea edx, [esp + 0x10]
mov dword [esp + 0x10], edi
mov ecx, esi
call fcn.1000dee4
mov ebx, eax
test ebx, ebx
jns 0x1000e0ad
push ebx
push ecx
mov ecx, dword [ebp + 4]
mov edx, 0xce
call fcn.1000dd33
mov edi, ebx
jmp 0x1000e0bb
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
cdq
mov dword [ecx], eax
mov dword [ecx + 4], edx
test esi, esi
je 0x1000e0c5
push esi
call fcn.10009f1f
mov ecx, dword [esp + 0x224]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10026d70
mov esp, ebp
pop ebp
ret 8

Function at 0x100119f3
Capabilities:
Allocate thread local storage
Get thread local storage value
Log keystrokes via application hook
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
sub eax, 0
je 0x10011a9f
sub eax, 1
je 0x10011a34
dec eax
sub eax, 1
jne 0x10011ad5
mov eax, dword [0x10028020]
cmp eax, 0xffffffff
je 0x10011ad5
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push eax
call dword [sym.imp.USER32.dll_UnhookWindowsHookEx]
jmp 0x10011ad5
mov eax, dword [ebp + 8]
push 0
push 0x10028424
mov dword [0x10028408], eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
test eax, eax
jne 0x10011a54
xor eax, eax
jmp 0x10011ad8
call fcn.10012067
test eax, eax
je 0x10011a4d
cmp dword [0x10028020], 0xffffffff
jne 0x10011ad5
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x10028020], eax
cmp eax, 0xffffffff
je 0x10011ad5
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push dword [0x10028408]
push 0x100119b0
push 2
call dword [sym.imp.USER32.dll_SetWindowsHookExW]
push eax
push dword [0x10028020]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
jmp 0x10011ad5
mov eax, dword [0x10028020]
cmp eax, 0xffffffff
je 0x10011aca
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push eax
call dword [sym.imp.USER32.dll_UnhookWindowsHookEx]
push dword [0x10028020]
call dword [sym.imp.KERNEL32.dll_TlsFree]
or dword [0x10028020], 0xffffffff
push 0x10028424
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
xor eax, eax
inc eax
pop ebp
ret 0xc
Function at 0x10016977
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x274
mov eax, dword [0x10028014]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
lea eax, [ebp - 0x268]
push 0x208
push ebx
push eax
mov dword [ebp - 0x270], ebx
mov dword [ebp - 0x26c], ebx
call fcn.10009f1f
add esp, 0xc
lea edx, [ebp - 0x54]
mov ecx, 0x100033a0
call fcn.10024941
test eax, eax
je 0x10016b04
push esi
push edi
lea eax, [ebp - 0x274]
mov esi, 0x100085e4
push eax
lea eax, [ebp - 0x270]
push eax
push ebx
push 0x20006
push ebx
lea edi, [ebp - 0x60]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x60]
push ebx
push ebx
push eax
movsd dword es:[edi], dword [esi]
push SysReAllocString
movsd dword es:[edi], dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x10016ad6
mov esi, 0x10008560
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
xor edi, edi
inc edi
lea eax, [eax*2 + 2]
push eax
push esi
push edi
push ebx
push ebx
push dword [ebp - 0x270]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x10016ad6
lea eax, [ebp - 0x274]
push eax
lea eax, [ebp - 0x26c]
push eax
push ebx
push 0x20006
push ebx
push ebx
push ebx
push 0x100085c4
push dword [ebp - 0x270]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x10016ad6
push 0x104
lea eax, [ebp - 0x268]
push eax
push dword [0x10028408]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov dword [ebp - 0x274], eax
lea eax, [ebp - 0x268]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax*2 + 2]
push eax
lea eax, [ebp - 0x268]
push eax
push edi
push ebx
push ebx
push dword [ebp - 0x26c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x10016ad6
mov esi, 0x1000854c
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax*2 + 2]
push eax
push esi
push edi
push ebx
push 0x100085a4
push dword [ebp - 0x26c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x10016ad6
mov ebx, edi
cmp dword [ebp - 0x26c], 0
pop edi
pop esi
je 0x10016aed
push dword [ebp - 0x26c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x270], 0
je 0x10016b02
push dword [ebp - 0x270]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.10026d70
mov esp, ebp
pop ebp
ret
Function at 0x100186f0
Capabilities:
Delete registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x208
mov eax, dword [0x10028014]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x204]
xor edi, edi
push ecx
push eax
mov esi, edi
call fcn.10018176
lea eax, [ebp - 0x208]
mov dword [ebp - 0x208], edi
push eax
push 0x2001f
push edi
lea eax, [ebp - 0x204]
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1001875f
mov esi, dword [ebp - 0x208]
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
jne 0x1001875f
inc edi
test esi, esi
je 0x1001876a
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10026d70
mov esp, ebp
pop ebp
ret 0xc

Function at 0x1001feac
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x10028014]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
mov eax, ecx
mov ecx, dword [ebp + 8]
push esi
push edi
mov edi, ebx
mov dword [ebp - 0x41c], eax
neg edi
mov dword [ebp - 0x420], ecx
mov esi, 0x80004005
sbb edi, edi
and edi, 0x7fffbffb
add edi, esi
test ebx, ebx
je 0x1001ffdf
and dword [ebx], 0
lea edx, [ebp - 0x20c]
push ecx
mov ecx, eax
call fcn.10020008
mov edi, eax
test edi, edi
js 0x1001ffe3
push 0x104
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
dec eax
cmp eax, 0x103
jbe 0x1001ff36
mov edi, esi
jmp 0x1001ffe3
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
neg edi
sbb edi, edi
and edi, 0x7fffbffb
add edi, esi
test eax, eax
je 0x1001ffdf
push 0x10008828
push eax
mov dword [ebx], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
mov edi, esi
neg edi
sbb edi, edi
and edi, 0x7fffbffb
add edi, 0x80004005
test esi, esi
je 0x1001ffdf
lea eax, [ebp - 0x418]
mov ecx, esi
push eax
push 0x10002fb0
push dword [ebp - 0x41c]
call dword [0x10029340]
call esi
mov edi, eax
test edi, edi
js 0x1001ffe3
mov eax, dword [ebp - 0x418]
test eax, eax
je 0x1001ffdf
push dword [ebp - 0x420]
mov esi, dword [eax]
push 0x1000990c
push 0
push eax
mov ecx, dword [esi + 0xc]
call dword [0x10029340]
call dword [esi + 0xc]
mov edi, eax
mov eax, dword [ebp - 0x418]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x10029340]
call esi
test edi, edi
jns 0x1001fff3
cmp dword [ebx], 0
je 0x1001fff3
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
and dword [ebx], 0
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10026d70
mov esp, ebp
pop ebp
ret 8
Function at 0x18006c69
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x18006cc2
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x18006cc2
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [ebp + 8]
lea ecx, [esi + eax]
and edx, 0xf
jbe 0x18006cb1
cmp esi, ecx
jae 0x18006cc2
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edx, 1
jne 0x18006c9f
cmp esi, ecx
jae 0x18006cc2
cmp word [esi], 0
je 0x18006cc2
lfence
mov eax, esi
jmp 0x18006cc4
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x18007db8
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x181d700c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
test esi, esi
jne 0x18007dd3
mov al, 1
jmp 0x18007e16
push 0x34
lea eax, [ebp - 0x38]
push 0
push eax
call fcn.181371a0
add esp, 0xc
lea eax, [ebp - 0x38]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
jne 0x18007e0e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.LOG_SYSTEM:_ERROR____::GetFileInformationByHandle_failed___d_
call fcn.180115cf
pop ecx
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x18007dcf
mov eax, dword [ebp - 0x38]
shr eax, 0xa
and al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.181224f8
leave
ret
Function at 0x1800835f
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x181d700c]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 8], 0
lea eax, [ebp - 8]
push ebx
push esi
push edi
push eax
mov ebx, ecx
call fcn.18009145
mov edi, dword [ebp - 8]
cmp dword [edi - 0xc], 0
je 0x18008404
push edi
push 1
push str.EnableLogging
mov esi, str.LoggingSettings
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push edi
push 1
test eax, eax
push str.ShowTime
setne al
push esi
mov byte [ebx + 0x74], al
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push edi
push 1
test eax, eax
push str.LogToFile
setne al
push esi
mov byte [ebx + 0x76], al
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push edi
push 0
test eax, eax
push str.LogToOutputDebug
setne al
push esi
mov byte [ebx + 0x77], al
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push edi
push 1
test eax, eax
push str.AppendToFile
setne al
push esi
mov byte [ebx + 0x78], al
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
test eax, eax
setne al
mov byte [ebx + 0x79], al
jmp 0x1800840f
mov byte [ebx + 0x74], 1
mov dword [ebx + 0x76], 0x1000101
cmp byte [ebx + 0x75], 0
je 0x18008419
mov byte [ebx + 0x76], 1
xor eax, eax
mov byte [ebx], 1
mov dword [ebx + 4], 7
mov dword [ebp - 0xc], eax
mov edx, dword [eax + 0x181d8140]
mov ecx, dword [eax + 0x181d8144]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x10], edx
test edx, edx
je 0x18008492
cmp ecx, 9
ja 0x18008492
and dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
mov ecx, ebx
mov dword [ebp - 0x14], 3
call fcn.18009145
mov esi, dword [ebp - 8]
cmp dword [esi - 0xc], 0
je 0x18008475
push esi
push 3
push dword [ebp - 0x10]
push str.LoggingLevel
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
jmp 0x18008478
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
test eax, eax
setne cl
mov byte [ebx + edx*8], cl
lea ecx, [esi - 0x10]
mov dword [ebx + edx*8 + 4], eax
call fcn.18006f72
mov eax, dword [ebp - 0xc]
add eax, 8
mov dword [ebp - 0xc], eax
cmp eax, 0x48
jb 0x18008428
call fcn.18011f9e
lea ecx, [edi - 0x10]
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x84], edx
call fcn.18006f72
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.181224f8
leave
ret