joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10024101
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.1002407d
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x10024270
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x10024270
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x10024225
jg 0x1002415d
test eax, eax
je 0x1002421b
push 1
push 0x1000
call fcn.10016776
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x10024180
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x10024212
push 0x8000
push ebx
call fcn.10023fae
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x100241a9
jg 0x100241a4
cmp ecx, 0x1000
jb 0x100241a9
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.10017f7e
add esp, 0x10
cmp eax, 0xffffffff
je 0x100241ee
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x100241a4
jl 0x100241d5
test ecx, ecx
jne 0x10024196
push dword [ebp - 0xc]
push ebx
call fcn.10023fae
push esi
call fcn.1001673c
add esp, 0xc
xor ebx, ebx
jmp 0x1002427e
cmp byte [edi + 0x24], 0
je 0x10024205
cmp dword [edi + 0x20], 5
jne 0x10024205
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x10024210
mov ebx, dword [edi + 0x18]
jmp 0x10024212
xor ebx, ebx
push esi
call fcn.1001673c
pop ecx
jmp 0x1002427e
test ecx, ecx
jg 0x100241e7
jl 0x10024225
test eax, eax
jae 0x100241e7
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1001974a
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x10024245
cmp byte [edi + 0x1c], 0
je 0x100241e7
jmp 0x10024276
push ebx
call fcn.10020477
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x100241e7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x1002427e
cmp byte [edi + 0x1c], 0
je 0x1002427b
mov ebx, dword [edi + 0x18]
jmp 0x1002427e
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.1001974a
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10026590
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10027fa0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
push edi
push 8
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
call fcn.10008b12
mov edi, eax
add esp, 4
test edi, edi
je 0x10026630
push 1
mov dword [ebp - 4], 0
call fcn.10007c4a
add esp, 4
mov dword [edi + 4], eax
jmp 0x10026632
xor edi, edi
mov ecx, esi
mov dword [esi + 0x34], edi
call fcn.10005520
push 0x100
mov dword [ebp - 4], 1
mov dword [esi], vtable.qstreambuf.0
call fcn.10008b50
mov ecx, dword [esi + 0xc]
add esp, 4
mov dword [esi + 0x38], eax
mov dword [ecx], eax
mov ecx, dword [esi + 0x1c]
pop edi
mov dword [ecx], eax
mov eax, dword [esi + 0x2c]
mov dword [eax], 0
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0x38]
mov dword [eax], ecx
mov eax, dword [esi + 0x20]
mov dword [eax], ecx
mov eax, dword [esi + 0x30]
mov ecx, dword [ebp - 0xc]
mov dword [eax], 0x100
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x10026eb0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10026edd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10026edd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x1401060
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x10], ecx
push 0xa
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x1401089
xor eax, eax
jmp 0x14010be
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x14010b1
xor eax, eax
jmp 0x14010be
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0xc]
mov dword [edx], eax
mov eax, 1
mov esp, ebp
pop ebp
ret 4
Function at 0x1403a30
Capabilities:
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
push esi
push edi
mov dword [ebp - 0x8c], edx
mov dword [ebp - 0x88], ecx
mov eax, dword [ebp - 0x88]
mov ecx, dword [ebp + 0xc]
mov dword [eax + 0x340], ecx
push 8
mov edx, dword [ebp + 8]
mov ecx, dword [ebp - 0x88]
add ecx, 0x300
call fcn.01404160
push 8
mov edx, dword [ebp - 0x8c]
lea ecx, [ebp - 0x7c]
call fcn.01404160
mov dword [ebp - 0x80], 0
jmp 0x1403a8e
mov edx, dword [ebp - 0x80]
add edx, 1
mov dword [ebp - 0x80], edx
cmp dword [ebp - 0x80], 0x38
jae 0x1403aac
mov eax, dword [ebp - 0x80]
xor ecx, ecx
mov cl, byte [eax + str.91__]
mov edx, dword [ebp - 0x80]
mov al, byte [ebp + ecx - 0x7d]
mov byte [ebp + edx - 0x3c], al
jmp 0x1403a85
mov dword [ebp - 0x80], 0
jmp 0x1403abe
mov ecx, dword [ebp - 0x80]
add ecx, 1
mov dword [ebp - 0x80], ecx
cmp dword [ebp - 0x80], 0x10
jae 0x1403b84
mov dword [ebp - 0x84], 0
jmp 0x1403ae3
mov edx, dword [ebp - 0x84]
add edx, 1
mov dword [ebp - 0x84], edx
mov eax, dword [ebp - 0x80]
xor ecx, ecx
mov cl, byte [eax + 0x14132c0]
cmp dword [ebp - 0x84], ecx
jae 0x1403b30
mov dl, byte [ebp - 0x3c]
mov byte [ebp - 4], dl
lea esi, [ebp - 0x3b]
mov ecx, 6
lea edi, [ebp - 0x3c]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov al, byte [ebp - 4]
mov byte [ebp - 0x21], al
mov cl, byte [ebp - 0x20]
mov byte [ebp - 4], cl
lea esi, [ebp - 0x1f]
mov ecx, 6
lea edi, [ebp - 0x20]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov dl, byte [ebp - 4]
mov byte [ebp - 5], dl
jmp 0x1403ad4
mov dword [ebp - 0x84], 0
jmp 0x1403b4b
mov eax, dword [ebp - 0x84]
add eax, 1
mov dword [ebp - 0x84], eax
cmp dword [ebp - 0x84], 0x30
jae 0x1403b7f
mov ecx, dword [ebp - 0x84]
xor edx, edx
mov dl, byte [ecx + 0x14132d0]
mov eax, dword [ebp - 0x80]
imul eax, eax, 0x30
mov ecx, dword [ebp - 0x88]
add ecx, eax
mov eax, dword [ebp - 0x84]
mov dl, byte [ebp + edx - 0x3d]
mov byte [ecx + eax], dl
jmp 0x1403b3c
jmp 0x1403ab5
mov ecx, 0xe
xor eax, eax
lea edi, [ebp - 0x3c]
rep stosd dword es:[edi], eax
mov ecx, 0x10
xor eax, eax
lea edi, [ebp - 0x7c]
rep stosd dword es:[edi], eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x1408640
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov dword [eax + 0x14], 0
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x10], 0
mov edx, dword [ebp - 4]
mov dword [edx], 0x67452301
mov eax, dword [ebp - 4]
mov dword [eax + 4], 0xefcdab89
mov ecx, dword [ebp - 4]
mov dword [ecx + 8], 0x98badcfe
mov edx, dword [ebp - 4]
mov dword [edx + 0xc], 0x10325476
mov esp, ebp
pop ebp
ret
Function at 0x100041c0
Capabilities:
Get common file path

Disassembly:
push ebp
push esi
push edi
xor edi, edi
test ebx, ebx
je 0x1000423b
mov ebp, dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push edi
push edi
call ebp
push ebx
mov esi, eax
call fcn.10159312
add eax, esi
add esp, 4
lea eax, [eax + eax + 2]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
test edi, edi
jne 0x100041f7
pop edi
pop esi
pop ebp
ret
push esi
push edi
call ebp
mov ebp, eax
cmp word [edi + ebp*2 - 2], 0x5c
je 0x1000420e
mov word [edi + ebp*2], 0x5c
add ebp, 1
push ebx
xor esi, esi
call fcn.10159312
add esp, 4
test eax, eax
jbe 0x1000423b
lea ebp, [edi + ebp*2]
mov cx, word [ebx + esi*2]
mov word [ebp], cx
push ebx
add esi, 1
add ebp, 2
call fcn.10159312
add esp, 4
cmp esi, eax
jb 0x10004220
mov eax, edi
pop edi
pop esi
pop ebp
ret

Function at 0x10004d50
Capabilities:
Link many functions at runtime

Disassembly:
mov eax, dword [0x101e6358]
push ebx
push ebp
mov ebp, dword [esp + 0xc]
xor ebx, ebx
test eax, eax
push esi
jne 0x10004d7d
push eax
push str.Setupapi.dll
call fcn.100048e0
add esp, 8
test eax, eax
mov dword [0x101e6358], eax
je 0x10004eb6
cmp dword [0x101e635c], 0
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
jne 0x10004da6
push str.SetupDiGetClassDevsW
push eax
call esi
test eax, eax
mov dword [0x101e635c], eax
je 0x10004eb6
mov eax, dword [0x101e6358]
cmp dword [0x101e6360], 0
jne 0x10004dc9
push str.SetupDiEnumDeviceInfo
push eax
call esi
test eax, eax
mov dword [0x101e6360], eax
je 0x10004eb6
mov eax, dword [0x101e6358]
cmp dword [0x101e6368], 0
jne 0x10004dec
push str.SetupDiGetDeviceRegistryPropertyW
push eax
call esi
test eax, eax
mov dword [0x101e6368], eax
je 0x10004eb6
mov eax, dword [0x101e6358]
cmp dword [0x101e6364], 0
jne 0x10004e0f
push str.SetupDiGetDeviceInterfaceDetailW
push eax
call esi
test eax, eax
mov dword [0x101e6364], eax
je 0x10004eb6
mov eax, dword [0x101e6358]
cmp dword [0x101e6370], 0
jne 0x10004e2d
push str.SetupDiDestroyDeviceInfoList
push eax
call esi
test eax, eax
mov dword [0x101e6370], eax
je 0x10004eb6
push 6
push 0
push 0
push 0
call dword [0x101e635c]
mov esi, eax
xor eax, eax
cmp esi, 0xffffffff
je 0x10004eb8
mov ecx, edi
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
mov dword [ecx + 0x10], eax
mov dword [ecx + 0x14], eax
push edi
push eax
mov dword [ecx + 0x18], eax
push esi
mov dword [edi], 0x1c
call dword [0x101e6360]
test eax, eax
je 0x10004eaf
lea ecx, [ecx]
push esi
push ebp
mov eax, edi
call fcn.100044f0
add esp, 8
cmp eax, 1
je 0x10004ebc
xor edx, edx
mov eax, edi
mov dword [eax], edx
mov dword [eax + 4], edx
mov dword [eax + 8], edx
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], edx
push edi
add ebx, 1
mov dword [eax + 0x14], edx
push ebx
mov dword [eax + 0x18], edx
push esi
mov dword [edi], 0x1c
call dword [0x101e6360]
test eax, eax
jne 0x10004e70
push esi
call dword [0x101e6370]
xor eax, eax
pop esi
pop ebp
pop ebx
ret
mov ecx, dword [esp + 0x14]
mov dword [ecx], esi
pop esi
pop ebp
mov eax, 1
pop ebx
ret
Function at 0x100056f0
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x14
push ebp
mov ebp, dword [esp + 0x1c]
push esi
xor esi, esi
cmp dword [0x101e6420], esi
mov dword [esp + 8], esi
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], 0x24
mov dword [esp + 0x14], 0x26
mov dword [esp + 0x18], 0x2a
jne 0x10005786
push 3
push 0x20
push 3
push 1
push 3
push 2
push esi
push esi
call sub.KERNEL32.dll_VerSetConditionMask
push edx
push eax
call sub.KERNEL32.dll_VerSetConditionMask
push edx
push eax
call sub.KERNEL32.dll_VerSetConditionMask
push edx
push eax
push 0x23
push 0x101e6420
mov dword [0x101e6420], 0x11c
mov dword [0x101e6424], 6
mov dword [0x101e6428], 1
mov word [0x101e6534], si
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
neg eax
sbb eax, eax
add eax, 1
mov dword [0x101cfe5c], eax
jmp 0x1000578b
mov eax, dword [0x101cfe5c]
cmp eax, esi
je 0x1000579a
pop esi
mov eax, 1
pop ebp
add esp, 0x14
ret
cmp ebp, esi
je 0x100058ba
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
push edi
push esi
push esi
push esi
push ebp
call ebx
mov edi, eax
test edi, edi
je 0x100058b8
lea eax, [edi + edi]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
test eax, eax
mov dword [esp + 0x10], eax
je 0x100058b8
push 0
mov ecx, eax
push ecx
push edi
push ebp
call ebx
cmp edi, eax
jbe 0x100058b8
mov ebp, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
xor ebx, ebx
jmp 0x100057f0
mov eax, dword [esp + ebx*4 + 0x18]
cmp eax, 0x26
jne 0x1000586f
push 0
push 0
push str._ProgramW6432_
call ebp
mov edi, eax
test edi, edi
je 0x100058b8
lea edx, [edi + edi + 2]
push edx
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
je 0x100058b8
push edi
push esi
push str._ProgramW6432_
call ebp
cmp edi, eax
jne 0x100058b8
push esi
push str._ProgramW6432_
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x10005856
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
push 0x101ab62c
push 0x26
jmp 0x10005875
cmp word [esi + edi*2 - 4], 0x5c
je 0x10005883
push 0x101ab8cc
add edi, 1
push edi
push esi
call fcn.10005560
jmp 0x10005883
push 0x101ab62c
push eax
call fcn.10005600
mov esi, eax
add esp, 8
test esi, esi
je 0x100058b8
push esi
call fcn.10159312
push eax
mov eax, dword [esp + 0x18]
push esi
push eax
call fcn.1015f404
add esp, 0x10
neg eax
sbb eax, eax
inc eax
mov dword [esp + 0x14], eax
jne 0x100058b8
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
add ebx, 1
xor esi, esi
cmp ebx, 3
jl 0x100057f0
pop edi
pop ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
call esi
mov ecx, dword [esp + 8]
push ecx
call esi
mov eax, dword [esp + 0xc]
pop esi
pop ebp
add esp, 0x14
ret
Function at 0x10005a50
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push eax
mov eax, dword [esp + 0xc]
call fcn.100058e0
mov esi, eax
add esp, 4
test esi, esi
je 0x10005a92
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10005a74
test al, 0x50
je 0x10005a92
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x10005a87
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor eax, eax
pop esi
ret
mov eax, esi
pop esi
ret
Function at 0x10007280
Capabilities:
Create thread

Disassembly:
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateEventW]
mov ebx, ecx
push edi
push 0
push 0
push 1
lea edi, [ebx + 0xc]
mov dword [ebx], vtable.EventThread.0
push 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [edi], 0
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 0
mov dword [ebx + 0x18], 0
call esi
push edi
push 0
push ebx
push 0x10007410
push 0
push 0
mov dword [ebx + 0x1c], eax
call fcn.1014dc0c
add esp, 0x18
mov dword [ebx + 0x10], eax
push 0
push 0
push 1
push 0
call esi
push edi
push 0
push ebx
push 0x10007450
push 0
push 0
mov dword [ebx + 0x20], eax
call fcn.1014dc0c
add esp, 0x18
mov dword [ebx + 0x14], eax
push 0
push 0
push 1
push 0
call esi
push edi
push 0
push ebx
push 0x10007490
push 0
push 0
mov dword [ebx + 0x24], eax
call fcn.1014dc0c
add esp, 0x18
mov dword [ebx + 0x18], eax
mov eax, ebx
pop edi
pop esi
pop ebx
ret
Function at 0x10009000
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
xor dl, dl
mov dword [ebp - 4], ecx
test eax, eax
je 0x100090fd
test eax, 0xffff0000
jne 0x100090fd
push ebx
push edi
movzx edi, ax
push edi
call fcn.10011f15
mov ebx, eax
test ebx, ebx
je 0x100090f9
mov eax, edi
shr eax, 4
push 6
inc eax
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp + 8], eax
test eax, eax
je 0x100090f9
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x100090f9
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x100090f8
push dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea ecx, [esi + eax]
and edi, 0xf
jbe 0x10009095
cmp esi, ecx
jae 0x100090f8
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edi, 1
jne 0x10009083
cmp esi, ecx
jae 0x100090f8
movzx eax, word [esi]
test ax, ax
je 0x100090f8
mov ebx, dword [ebp - 4]
mov edi, eax
mov dword [ebp + 8], eax
mov ecx, 1
mov edx, dword [ebx]
mov eax, dword [edx - 8]
sub ecx, dword [edx - 4]
sub eax, edi
or ecx, eax
jge 0x100090cb
push edi
mov ecx, ebx
call fcn.10007760
mov edx, dword [ebx]
movzx eax, word [esi]
jmp 0x100090ce
mov eax, dword [ebp + 8]
movzx ecx, ax
lea eax, [esi + 2]
push ecx
push eax
push edi
push edx
call fcn.10158fde
push eax
call fcn.10008f70
mov eax, dword [ebx]
add esp, 0x14
cmp edi, dword [eax - 8]
jg 0x10009105
mov dword [eax - 0xc], edi
xor ecx, ecx
mov eax, dword [ebx]
mov word [eax + edi*2], cx
pop esi
pop edi
mov dl, 1
pop ebx
mov al, dl
mov esp, ebp
pop ebp
ret 4
push 0x80070057
call fcn.10007630
int3
Function at 0x1001b802
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 0x1001b855
push esi
push dword [ebp + 8]
call fcn.1001b9eb
mov edi, eax
test edi, edi
je 0x1001b850
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 0x1001b850
mov eax, dword [ebp - 8]
jmp 0x1001b867
mov eax, dword [ebp + 0x10]
jmp 0x1001b867
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
leave
ret 0xc

Function at 0x10020bbb
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
mov ecx, dword [edi + 4]
call fcn.100210a0
push 0xfffffffffffffff0
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
push dword [ebp + 0xc]
mov esi, eax
mov ecx, edi
and esi, 3
call fcn.10020dd4
cmp esi, 3
je 0x10020bf9
mov dword [edi + 0xc], 1
cmp dword [edi], 0
je 0x10020c42
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, dword [ebp + 0x10]
test eax, eax
jle 0x10020c1c
lea ecx, [eax + 1]
push ecx
push eax
mov ecx, esi
call fcn.10011f87
jmp 0x10020c2d
push 0xff
mov ecx, esi
call fcn.1001181a
push 0x100
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0xffffffffffffffff
mov ecx, esi
call fcn.10011faa
jmp 0x10020c66
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 0x10020c66
push dword [esi]
push dword [ebp - 4]
call fcn.1001d02f
pop edi
pop esi
leave
ret 0xc

Function at 0x10020d2b
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.10020dd4
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x10020d73
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.10011f87
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.10011faa
jmp 0x10020d7e
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.1001d02f
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x1002115a
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x1016dd8b
call fcn.101490c3
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0x74], ebx
jne 0x10021180
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x100211e0
call fcn.10012397
push eax
lea ecx, [ebp - 0x10]
call fcn.100111a8
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 dword [0x1017b968]
mov ecx, edi
call esi
mov esi, dword [ebp + 8]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push esi
call fcn.10159181
push eax
call fcn.10008f70
add esp, 0x14
test esi, esi
je 0x100211d3
push esi
call fcn.10159312
pop ecx
mov ebx, eax
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.100118a8
mov eax, ebx
call fcn.1014908c
ret 8

Function at 0x10023d21
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 0x10023d66
call fcn.10015ad7
push 0xf0
push dword [ebp + 8]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x10023d66
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x10023d82
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.1002b677
mov ebx, eax
test edi, edi
je 0x10023d80
test esi, esi
je 0x10023d80
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x10024784
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 0x10024842
cmp dword [esi + 0x20], 0
je 0x10024842
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x10024842
cmp dword [ebp + 8], 0
je 0x10024842
xor eax, eax
mov ebx, eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], ebx
mov edi, eax
call fcn.10015ad7
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 0x10024813
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 0x10024842
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.1002c1ff
add esp, 0xc
mov ebx, eax
cmp dword [ebp - 8], 0
je 0x10024833
test edi, edi
je 0x10024833
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
test ebx, ebx
je 0x1002483e
mov ecx, esi
call fcn.10024526
mov eax, ebx
jmp 0x10024844
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4