joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4078b3
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x444b80]
jne 0x4078bd
repz ret
jmp fcn.0040b0ff

Function at 0x40ac8f
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.00405fb1
and dword [ebp - 4], 0
cmp dword [0x445d28], 0
mov ebx, eax
jne 0x40ad40
push 0x402508
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40adf1
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4024fc
push edi
call esi
test eax, eax
je 0x40adf1
push eax
call fcn.00405f3f
mov dword [esp], 0x4024ec
push edi
mov dword [0x445d28], eax
call esi
push eax
call fcn.00405f3f
mov dword [esp], 0x4024d8
push edi
mov dword [0x445d2c], eax
call esi
push eax
call fcn.00405f3f
mov dword [esp], 0x4024bc
push edi
mov dword [0x445d30], eax
call esi
push eax
call fcn.00405f3f
pop ecx
mov dword [0x445d38], eax
test eax, eax
je 0x40ad40
push 0x4024a4
push edi
call esi
push eax
call fcn.00405f3f
pop ecx
mov dword [0x445d34], eax
mov eax, dword [0x445d34]
cmp eax, ebx
je 0x40ad98
cmp dword [0x445d38], ebx
je 0x40ad98
push eax
call fcn.00405fba
push dword [0x445d38]
mov esi, eax
call fcn.00405fba
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40ad98
test edi, edi
je 0x40ad98
call esi
test eax, eax
je 0x40ad8f
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40ad8f
test byte [ebp - 0xc], 1
jne 0x40ad98
or dword [ebp + 0x10], 0x200000
jmp 0x40add1
mov eax, dword [0x445d2c]
cmp eax, ebx
je 0x40add1
push eax
call fcn.00405fba
pop ecx
test eax, eax
je 0x40add1
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40add1
mov eax, dword [0x445d30]
cmp eax, ebx
je 0x40add1
push eax
call fcn.00405fba
pop ecx
test eax, eax
je 0x40add1
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x445d28]
call fcn.00405fba
pop ecx
test eax, eax
je 0x40adf1
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40adf3
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x409270
Capabilities:
Get common file path

Disassembly:
sub esp, 0x20c
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x208], eax
push esi
lea eax, [esp + 4]
mov esi, ecx
push eax
push 0
push 0
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
je 0x4092b5
xor al, al
pop esi
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.0040a5d6
add esp, 0x20c
ret
cmp word [esi], 0
mov ecx, dword [esp + 0x214]
je 0x4092cc
add esi, 2
dec ecx
cmp word [esi], 0
jne 0x4092c2
cmp word [esp + 4], 0
je 0x4092f7
lea edx, [esp + 4]
sub edx, esi
nop word [eax + eax]
cmp ecx, 1
jb 0x409314
mov ax, word [edx + esi]
dec ecx
mov word [esi], ax
add esi, 2
cmp word [edx + esi], 0
jne 0x4092e0
mov ecx, dword [esp + 0x20c]
xor eax, eax
mov word [esi], ax
mov al, 1
pop esi
xor ecx, esp
call fcn.0040a5d6
add esp, 0x20c
ret
call fcn.0040d991
int3
Function at 0x409910
Capabilities:
Create directory

Disassembly:
mov eax, 0x200c
call fcn.0041ce30
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x2004], eax
push ebx
push ebp
push esi
push edi
mov edi, dword [0x428480]
mov ebp, ecx
test edi, edi
jne 0x409977
push 0x1000
mov edx, str.HOME
lea ecx, [esp + 0x14]
call fcn.00409320
add esp, 4
test al, al
je 0x409a54
lea eax, [esp + 0x10]
push eax
call fcn.0041167d
mov edi, dword [0x428480]
add esp, 4
mov dword [edi*4 + 0x43b4b0], eax
inc edi
mov dword [0x428480], edi
xor esi, esi
test edi, edi
jle 0x4099c4
nop dword [eax]
mov eax, dword [esi*4 + 0x43b4b0]
mov ecx, ebp
nop dword [eax]
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x4099b6
test dx, dx
je 0x4099b2
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x4099b6
add ecx, 4
add eax, 4
test dx, dx
jne 0x409990
xor eax, eax
jmp 0x4099bb
sbb eax, eax
or eax, 1
test eax, eax
je 0x4099eb
inc esi
cmp esi, edi
jl 0x409980
mov ecx, ebp
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4099d0
sub ecx, edx
sar ecx, 1
cmp ecx, 2
jne 0x4099ef
cmp word [ebp + 2], 0x3a
jne 0x4099ef
mov al, 1
jmp 0x409a3b
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
setne bl
test eax, eax
jne 0x409a10
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x409a39
mov bl, 1
cmp dword [0x428480], 0x400
jge 0x409a39
push ebp
call fcn.0041167d
mov ecx, dword [0x428480]
add esp, 4
mov dword [ecx*4 + 0x43b4b0], eax
inc ecx
mov dword [0x428480], ecx
mov al, bl
mov ecx, dword [esp + 0x2014]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040a5d6
add esp, 0x200c
ret
mov ecx, str.HOME
call fcn.00409810
int3

Function at 0x409b60
Capabilities:
Check if file exists
Delete file
Get file attributes
Terminate process

Disassembly:
mov eax, dword [0x428484]
sub esp, 0x20
test eax, eax
je 0x409b96
push 0x1388
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x409b8a
push 0
push dword [0x428484]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push dword [0x428484]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [0x42848c], 0
je 0x409c6b
push ebx
push ebp
push esi
mov eax, 0x414
mov dword [esp + 0xc], 0
push edi
mov edi, dword [sym.imp.SHELL32.dll_SHFileOperationW]
mov word [esp + 0x20], ax
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x18], 3
mov dword [esp + 0x1c], 0x438cb0
mov dword [esp + 0x20], 0x423c80
mov dword [esp + 0x26], 0
mov dword [esp + 0x2a], 0
mov dword [esp + 0x2e], 0x423c80
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
xor esi, esi
mov ebp, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push 0x438cb0
call ebp
cmp eax, 0xffffffff
je 0x409c67
test al, 0x10
je 0x409c67
push 0x64
call ebx
mov eax, 0x414
mov dword [esp + 0x10], 0
mov word [esp + 0x20], ax
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x18], 3
mov dword [esp + 0x1c], 0x438cb0
mov dword [esp + 0x20], 0x423c80
mov dword [esp + 0x26], 0
mov dword [esp + 0x2a], 0
mov dword [esp + 0x2e], 0x423c80
call edi
inc esi
cmp esi, 0x14
jl 0x409c04
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
Function at 0x409cb0
Capabilities:
Accept command line arguments

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea ecx, [esp + 0x10]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
push 0x1000
mov ebp, eax
xor eax, eax
push 0x43c4b0
push eax
mov word [0x428cb0], ax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x409f5d
xor ebx, ebx
mov dword [ebp], 0x43c4b0
cmp dword [esp + 0x10], ebx
jle 0x409f52
nop dword [eax]
cmp ebx, 1
jl 0x409d39
cmp word [0x428cb0], 0
mov ecx, 0x8000
mov eax, 0x428cb0
je 0x409d33
nop dword [eax]
add eax, 2
dec ecx
cmp word [eax], 0
jne 0x409d20
cmp ecx, 1
jb 0x409f5d
mov dword [eax], 0x20
mov edi, dword [ebp + ebx*4]
mov esi, str.__t_n_v_
mov ecx, 0x20
push ecx
push edi
call fcn.0040b28e
add esp, 8
test eax, eax
jne 0x409db9
movzx eax, word [esi + 2]
add esi, 2
mov ecx, eax
test ax, ax
jne 0x409d47
mov edx, 0x8000
mov esi, dword [ebp + ebx*4]
mov ecx, 0x428cb0
cmp word [0x428cb0], ax
je 0x409d8a
nop word [eax + eax]
add ecx, 2
dec edx
cmp word [ecx], 0
jne 0x409d80
movzx eax, word [esi]
mov edi, eax
test ax, ax
je 0x409daf
cmp edx, 1
jb 0x409f5d
add esi, 2
mov word [ecx], ax
add ecx, 2
dec edx
movzx eax, word [esi]
test ax, ax
jne 0x409d94
xor eax, eax
mov word [ecx], ax
jmp 0x409f47
cmp word [0x428cb0], 0
mov ecx, 0x8000
mov eax, 0x428cb0
je 0x409de3
nop dword [eax]
add eax, 2
dec ecx
cmp word [eax], 0
jne 0x409dd0
cmp ecx, 1
jb 0x409f5d
mov dword [eax], 0x22
mov edi, dword [ebp + ebx*4]
nop dword [eax]
movzx eax, word [edi]
xor edx, edx
mov ecx, eax
cmp eax, 0x5c
jne 0x409e0f
nop dword [eax]
movzx eax, word [edi + 2]
add edi, 2
inc edx
cmp eax, 0x5c
je 0x409e00
mov ecx, eax
xor esi, esi
test cx, cx
je 0x409ee4
cmp word [edi], 0x22
jne 0x409e64
lea edx, [edx*2 + 1]
test edx, edx
jle 0x409ea2
nop dword [eax + eax]
cmp word [0x428cb0], 0
mov ecx, 0x8000
mov eax, 0x428cb0
je 0x409e57
add eax, 2
dec ecx
cmp word [eax], 0
jne 0x409e44
cmp ecx, 1
jb 0x409f5d
inc esi
mov dword [eax], 0x5c
cmp esi, edx
jl 0x409e30
jmp 0x409ea2
test edx, edx
jle 0x409ea2
nop dword [eax + eax]
cmp word [0x428cb0], 0
mov ecx, 0x8000
mov eax, 0x428cb0
je 0x409e97
add eax, 2
dec ecx
cmp word [eax], 0
jne 0x409e84
cmp ecx, 1
jb 0x409f5d
inc esi
mov dword [eax], 0x5c
cmp esi, edx
jl 0x409e70
cmp word [0x428cb0], 0
mov ecx, 0x8000
movzx edx, word [edi]
mov eax, 0x428cb0
je 0x409ed3
nop dword [eax]
add eax, 2
dec ecx
cmp word [eax], 0
jne 0x409ec0
cmp ecx, 1
jb 0x409f5d
xor ecx, ecx
mov word [eax], dx
mov word [eax + 2], cx
add edi, 2
jmp 0x409df0
add edx, edx
test edx, edx
jle 0x409f1e
nop word [eax + eax]
cmp word [0x428cb0], 0
mov ecx, 0x8000
mov eax, 0x428cb0
je 0x409f13
add eax, 2
dec ecx
cmp word [eax], 0
jne 0x409f04
cmp ecx, 1
jb 0x409f5d
inc esi
mov dword [eax], 0x5c
cmp esi, edx
jl 0x409ef0
cmp word [0x428cb0], 0
mov ecx, 0x8000
mov eax, 0x428cb0
je 0x409f41
add eax, 2
dec ecx
cmp word [eax], 0
jne 0x409f32
cmp ecx, 1
jb 0x409f5d
mov dword [eax], 0x22
inc ebx
cmp ebx, dword [esp + 0x10]
jl 0x409d00
pop edi
pop esi
pop ebp
mov eax, 0x428cb0
pop ebx
pop ecx
ret
call fcn.0040d991
int3
Function at 0x40ae01
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40ae40
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40ae40
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40ae40
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40ae40
cmp dword [ecx + 0x74], 0xe
jbe 0x40ae40
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x412c1c
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41fad4
push 0x41facc
push str.FlsAlloc
push 0x1f
call fcn.00412b57
mov esi, eax
add esp, 0x10
test esi, esi
je 0x412c50
push dword [ebp + 8]
mov ecx, esi
call dword [0x41e150]
call esi
jmp 0x412c56
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x412c9a
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41fae4
push 0x41fadc
push str.FlsGetValue
push 0x21
call fcn.00412b57
mov esi, eax
add esp, 0x10
test esi, esi
je 0x412cd1
push dword [ebp + 8]
mov ecx, esi
call dword [0x41e150]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x412cd9
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41faec
push 0x41fae4
push str.FlsSetValue
push 0x22
call fcn.00412b57
mov esi, eax
add esp, 0x10
test esi, esi
je 0x412d13
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x41e150]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x414bd9
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x414c24
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.00414d74
test al, al
jne 0x414c1e
sub edx, 2
cmp edx, edi
jne 0x414c04
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x414c46
lea eax, [edi + 2]
cmp edx, eax
je 0x414c46
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.00414b25
add esp, 0x10
jmp 0x414d40
push esi
lea ecx, [ebp - 0x255]
call fcn.00414d74
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x414c89
push dword [ebp - 0x25c]
jmp 0x414c36
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x414cc6
cmp word [ebp - 0x226], 0
je 0x414ce7
cmp word [ebp - 0x226], ax
jne 0x414cc6
cmp word [ebp - 0x224], 0
je 0x414ce7
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.00414b25
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x414d33
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x414ca0
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x414d1b
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x414d40
push 0x414955
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.004198f0
add esp, 0x10
jmp 0x414d10
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040a5d6
leave
ret
Function at 0x41ca20
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41ca4d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41ca4d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x10002c00
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
mov eax, dword [0x101b8fe0]
xor eax, ebp
mov dword [ebp - 4], eax
mov byte [ebp - 0xc], 0x5c
mov byte [ebp - 0xb], 0x4e
mov byte [ebp - 0xa], 0x48
mov byte [ebp - 9], 0x2e
mov byte [ebp - 8], 0x74
mov byte [ebp - 7], 0x78
mov byte [ebp - 6], 0x74
mov byte [ebp - 5], 0
push 0x104
lea eax, [ebp - 0x110]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [ebp - 0x110]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
lea edx, [ebp - 0xc]
push edx
lea eax, [ebp - 0x110]
push eax
call fcn.10140bc0
add esp, 8
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocStringLen
lea ecx, [ebp - 0x110]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x114], eax
cmp dword [ebp - 0x114], 0xffffffff
je 0x10002d0e
push 0
mov edx, dword [ebp - 0x114]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x11c], eax
mov eax, dword [ebp - 0x11c]
push eax
call fcn.10003c33
add esp, 4
mov dword [ebp - 0x120], eax
mov ecx, dword [ebp - 0x120]
mov dword [ebp - 0x118], ecx
mov dword [ebp - 0x124], 0
push 0
lea edx, [ebp - 0x124]
push edx
mov eax, dword [ebp - 0x11c]
push eax
mov ecx, dword [ebp - 0x118]
push ecx
mov edx, dword [ebp - 0x114]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp - 0x118], 0
je 0x10002d0e
mov eax, dword [ebp - 0x118]
push eax
call fcn.10001fd0
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1013b1dd
mov esp, ebp
pop ebp
ret
Function at 0x10006aed
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x18
mov eax, 0x10157f01
call fcn.1013b7dc
mov eax, ecx
mov dword [ebp - 0x18], eax
mov ebx, dword [ebp + 0x10]
xor edi, edi
mov ecx, dword [ebp + 0x14]
push edi
mov dword [ebx], edi
mov dword [ecx], edi
cmp dword [eax + 0x58], edi
je 0x10006b97
push dword [ebp + 8]
mov ecx, eax
call fcn.10006e25
mov esi, eax
test esi, esi
je 0x10006c2a
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], edi
lea eax, [ebp - 0x14]
mov dword [ebp - 4], edi
push eax
push edi
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], edi
push eax
push edi
push dword [ebp + 0xc]
mov dword [ebp - 0x14], edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp - 0x14]
mov dword [ecx], edx
test eax, eax
jne 0x10006b80
push edx
call fcn.10003c33
pop ecx
lea ecx, [ebp - 0x14]
mov dword [ebx], eax
push ecx
push eax
lea eax, [ebp - 0x18]
push eax
push edi
push dword [ebp + 0xc]
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10006b80
xor edi, edi
inc edi
jmp 0x10006b8a
push dword [ebx]
call fcn.10003c2e
pop ecx
mov dword [ebx], edi
lea ecx, [ebp - 0x24]
call fcn.100069b2
jmp 0x10006c28
mov esi, dword [eax]
lea eax, [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
mov esi, dword [esi + 0x84]
mov ecx, esi
push eax
call fcn.1013b79f
mov ecx, dword [ebp - 0x18]
call esi
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], 1
mov esi, dword [eax - 0xc]
mov dword [ebp - 0x18], esi
test esi, esi
je 0x10006c20
mov ecx, dword [ebp + 0x14]
mov eax, esi
shr eax, 1
push eax
mov dword [ecx], eax
call fcn.10003c33
mov dword [ebx], eax
pop ecx
test esi, esi
jle 0x10006c1a
mov esi, dword [ebp + 0x10]
lea eax, [edi + 1]
push eax
lea ecx, [ebp - 0x10]
call fcn.1000698e
push edi
lea ecx, [ebp - 0x10]
lea ebx, [eax - 1]
shl bl, 4
sub bl, 0x41
call fcn.1000698e
add al, bl
mov edx, edi
test edx, edx
jns 0x10006c0b
add edx, 1
sar edx, 1
mov ecx, dword [esi]
add edi, 2
mov byte [edx + ecx], al
cmp edi, dword [ebp - 0x18]
jl 0x10006be2
mov eax, dword [ebp - 0x10]
xor edi, edi
inc edi
lea ecx, [eax - 0x10]
call fcn.10006304
mov eax, edi
call fcn.1013b7a5
ret 0x10

Function at 0x10006c32
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
xor esi, esi
push edi
cmp dword [ecx + 0x58], esi
je 0x10006c85
push esi
push dword [ebp + 8]
call fcn.10006e25
mov edi, eax
test edi, edi
jne 0x10006c55
mov eax, dword [ebp + 0x10]
jmp 0x10006c97
lea eax, [ebp - 4]
mov dword [ebp - 4], 4
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
push dword [ebp + 0xc]
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x10006c50
mov eax, dword [ebp - 8]
jmp 0x10006c97
push dword [ecx + 0x6c]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1000bad7
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 0x1000bb1c
call fcn.10008d3a
push 0xf0
push dword [ebp + 8]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x1000bb1c
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x1000bb38
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.100199da
mov ebx, eax
test edi, edi
je 0x1000bb36
test esi, esi
je 0x1000bb36
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 0x1000c544
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, ecx
push edi
test esi, esi
je 0x1000c602
cmp dword [esi + 0x20], 0
je 0x1000c602
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x1000c602
cmp dword [ebp + 8], 0
je 0x1000c602
xor eax, eax
mov ebx, eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], ebx
mov edi, eax
call fcn.10008d3a
push str.AFX_DIALOG_LAYOUT
push dword [ebp + 8]
mov eax, dword [eax + 0xc]
push eax
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x1000c5d3
mov edi, dword [ebp - 0xc]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push dword [ebp - 0x10]
mov dword [ebp - 4], eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x1000c602
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov dword [ebp - 8], eax
push dword [ebp - 4]
push ebx
push esi
call fcn.1001a58a
add esp, 0xc
mov ebx, eax
cmp dword [ebp - 8], 0
je 0x1000c5f3
test edi, edi
je 0x1000c5f3
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
test ebx, ebx
je 0x1000c5fe
mov ecx, esi
call fcn.1000c2e7
mov eax, ebx
jmp 0x1000c604
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x10010b0f
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x1015c5f6
call fcn.1013b7dc
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0x74], ebx
jne 0x10010b35
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x10010b94
call fcn.100122ad
push eax
lea ecx, [ebp - 0x10]
call fcn.10004db6
mov edi, dword [edi + 0x74]
lea ecx, [ebp - 0x10]
push ecx
mov dword [ebp - 4], ebx
mov eax, dword [edi]
mov esi, dword [eax + 0x8c]
mov ecx, esi
call fcn.1013b79f
mov ecx, edi
call esi
mov esi, dword [ebp + 8]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push esi
call fcn.10142d94
push eax
call fcn.100053c0
add esp, 0x14
test esi, esi
je 0x10010b87
push esi
call fcn.101410a5
pop ecx
mov ebx, eax
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.10006304
mov eax, ebx
call fcn.1013b7a5
ret 8
Function at 0x1001ac58
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov ebx, ecx
push edi
mov edi, dword [ebp + 8]
mov dword [ebx + 0x84], edi
test edi, 0xffff0000
jne 0x1001ac83
cmp dword [ebx + 0x80], 0
jne 0x1001ac83
movzx eax, di
mov dword [ebx + 0x80], eax
call fcn.10008d3a
push 5
push edi
mov esi, dword [eax + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov edi, eax
mov ecx, ebx
push edi
call fcn.1001af16
push edi
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 0x1001acbd
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.10008d3a
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 0x1001acf4
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.1001ad15
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 0x1001ce21
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
mov dword [ebp - 4], ebx
test byte [esi + 4], 1
je 0x1001ce3b
mov edi, dword [esi + 0xc]
jmp 0x1001ce7b
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x1001ce54
call fcn.10016ba8
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x1001ce69
call fcn.10016ba8
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x1001ce7b
call fcn.10016ba8
call fcn.10008d3a
cmp dword [eax + 0x3c], 0
je 0x1001ce90
push edi
mov ecx, ebx
call fcn.1001c4b0
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.1001d06d
mov ebx, eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x88]
test ecx, ecx
je 0x1001ceb9
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 4]
and dword [eax + 0x88], 0
test ebx, ebx
je 0x1001cec5
mov edi, ebx
mov dword [eax + 0x88], ebx
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8