joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100080f0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
ret

Function at 0x10008120
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0x38
mov eax, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
add eax, dword [ecx + 0x3c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
add eax, dword [ecx + 0x78]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x10]
add eax, dword [ecx + 0x20]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x10]
add eax, dword [ecx + 0x1c]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x10]
add eax, dword [ecx + 0x24]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x2c], 0xb67cc15
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x34], eax
sub eax, 0xbc660d60
je 0x10008298
jmp 0x100081c4
mov eax, dword [ebp - 0x34]
sub eax, 0xbdeedc8f
je 0x100082ca
jmp 0x100081d7
mov eax, dword [ebp - 0x34]
sub eax, 0xe1e8fb18
je 0x100082bc
jmp 0x100081ea
mov eax, dword [ebp - 0x34]
sub eax, 0xe91387c0
je 0x100082e1
jmp 0x100081fd
mov eax, dword [ebp - 0x34]
sub eax, 0xf44fb572
je 0x1000825b
jmp 0x10008210
mov eax, dword [ebp - 0x34]
sub eax, 0xb67cc15
je 0x1000823b
jmp 0x10008223
mov eax, dword [ebp - 0x34]
sub eax, 0x1c9e03f3
je 0x100082f6
jmp 0x10008236
jmp 0x100082ff
mov edx, dword [ebp - 0x28]
mov esi, dword [ebp - 0x10]
mov ecx, 0xe91387c0
mov eax, 0xf44fb572
cmp edx, dword [esi + 0x18]
cmovb ecx, eax
mov eax, dword [ebp - 0x30]
mov dword [eax], ecx
jmp 0x100082ff
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x28]
add eax, dword [ecx + edx*4]
mov dword [ebp - 0x24], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x24]
mov eax, esp
mov dword [eax + 4], edx
mov dword [eax], ecx
call fcn.1016b1a0
mov edx, eax
mov ecx, 0xe1e8fb18
mov eax, 0xbc660d60
cmp edx, 0
cmove ecx, eax
mov eax, dword [ebp - 0x30]
mov dword [eax], ecx
jmp 0x100082ff
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x28]
movzx edx, word [edx + esi*2]
add eax, dword [ecx + edx*4]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x30]
mov dword [eax], 0x1c9e03f3
jmp 0x100082ff
mov eax, dword [ebp - 0x30]
mov dword [eax], 0xbdeedc8f
jmp 0x100082ff
mov eax, dword [ebp - 0x28]
add eax, 1
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x30]
mov dword [eax], 0xb67cc15
jmp 0x100082ff
mov dword [ebp - 8], 0
mov eax, dword [ebp - 0x30]
mov dword [eax], 0x1c9e03f3
jmp 0x100082ff
mov eax, dword [ebp - 8]
add esp, 0x38
pop esi
pop ebp
ret
jmp 0x100081ae
Function at 0x10008c10
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 4], ecx
mov ecx, dword [ebp - 4]
mov dword [ebp - 8], ecx
mov dword [esp], 0x1571
mov dword [esp + 4], 0xffffffff
mov dword [esp + 8], 0x6c078965
call fcn.10014d30
sub esp, 0xc
mov eax, dword [ebp - 8]
add esp, 0x14
pop ebp
ret

Function at 0x10008c90
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
mov dword [ebp - 4], ecx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp + 8]
mov dword [esp], eax
mov dword [esp + 4], 0x6c078965
call fcn.10014d70
add esp, 4
pop ebp
ret 4
Function at 0x10015340
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0x1c
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], 0xff097cfc
lea eax, [ebp - 0x18]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
sub eax, 0x80fb6166
je 0x10015413
jmp 0x1001537b
mov eax, dword [ebp - 0x20]
sub eax, 0x83ac4717
je 0x100153fd
jmp 0x1001538e
mov eax, dword [ebp - 0x20]
sub eax, 0x93b66789
je 0x10015458
jmp 0x100153a1
mov eax, dword [ebp - 0x20]
sub eax, 0xb6ed6eea
je 0x1001544a
jmp 0x100153b4
mov eax, dword [ebp - 0x20]
sub eax, 0xff097cfc
je 0x100153df
jmp 0x100153c7
mov eax, dword [ebp - 0x20]
sub eax, 0x31209e06
je 0x10015434
jmp 0x100153da
jmp 0x100154c0
mov ecx, 0x80fb6166
mov eax, 0x83ac4717
cmp dword [ebp - 0x14], 0x270
cmove ecx, eax
mov eax, dword [ebp - 0x1c]
mov dword [eax], ecx
jmp 0x100154c0
mov ecx, dword [ebp - 0x10]
call fcn.100154d0
mov eax, dword [ebp - 0x1c]
mov dword [eax], 0x93b66789
jmp 0x100154c0
mov esi, dword [ebp - 0x10]
mov edx, 0x4e0
mov ecx, 0xb6ed6eea
mov eax, 0x31209e06
cmp edx, dword [esi]
cmovbe ecx, eax
mov eax, dword [ebp - 0x1c]
mov dword [eax], ecx
jmp 0x100154c0
mov ecx, dword [ebp - 0x10]
call fcn.10015600
mov eax, dword [ebp - 0x1c]
mov dword [eax], 0xb6ed6eea
jmp 0x100154c0
mov eax, dword [ebp - 0x1c]
mov dword [eax], 0x93b66789
jmp 0x100154c0
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x10]
mov ecx, dword [edx]
mov esi, ecx
add esi, 1
mov dword [edx], esi
mov eax, dword [eax + ecx*4 + 4]
and eax, 0xffffffff
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
shr eax, 0xb
mov ecx, dword [ebp - 0x10]
and eax, dword [ecx + 0x1384]
xor eax, dword [ebp - 0xc]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
shl eax, 7
and eax, 0x9d2c5680
xor eax, dword [ebp - 0xc]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
shl eax, 0xf
and eax, 0xefc60000
xor eax, dword [ebp - 0xc]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
and eax, 0xffffffff
shr eax, 0x12
xor eax, dword [ebp - 0xc]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
add esp, 0x1c
pop esi
pop ebp
ret
jmp 0x10015365
Function at 0x100154d0
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0x1c
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], 0x270
mov dword [ebp - 0x18], 0xe5676abc
lea eax, [ebp - 0x18]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
sub eax, 0xc78656b1
je 0x100155db
jmp 0x1001550a
mov eax, dword [ebp - 0x20]
sub eax, 0xcd8487d5
je 0x10015566
jmp 0x1001551d
mov eax, dword [ebp - 0x20]
sub eax, 0xe5676abc
je 0x10015548
jmp 0x10015530
mov eax, dword [ebp - 0x20]
sub eax, 0x951a58f
je 0x100155f2
jmp 0x10015543
jmp 0x100155f8
mov ecx, 0x951a58f
mov eax, 0xcd8487d5
cmp dword [ebp - 0xc], 0x4e0
cmovb ecx, eax
mov eax, dword [ebp - 0x1c]
mov dword [eax], ecx
jmp 0x100155f8
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
sub ecx, 0x270
mov eax, dword [eax + ecx*4 + 4]
and eax, 0x80000000
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0xc]
sub edx, 0x270
mov ecx, dword [ecx + edx*4 + 8]
and ecx, 0x7fffffff
or eax, ecx
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 0x10]
shr edx, 1
mov esi, dword [ebp - 0x10]
and esi, 1
xor eax, eax
mov ecx, 0x9908b0df
cmp esi, 0
cmovne eax, ecx
xor edx, eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
sub ecx, 0x270
xor edx, dword [eax + ecx*4 + 0x638]
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword [eax + ecx*4 + 4], edx
mov eax, dword [ebp - 0x1c]
mov dword [eax], 0xc78656b1
jmp 0x100155f8
mov eax, dword [ebp - 0xc]
add eax, 1
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x1c]
mov dword [eax], 0xe5676abc
jmp 0x100155f8
add esp, 0x1c
pop esi
pop ebp
ret
jmp 0x100154f4
Function at 0x1001da55
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, ecx
call fcn.1001f5a8
push 5
push dword [ebp + 8]
mov esi, dword [eax + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x1001da95
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x1001da95
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push dword [ebp + 0xc]
mov ecx, edi
push eax
call fcn.1001da9d
jmp 0x1001da97
xor eax, eax
pop edi
pop esi
pop ebp
ret 8

Function at 0x1001dd75
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, ecx
push edi
mov edi, dword [ebp + 8]
mov dword [esi + 0x84], edi
test edi, 0xffff0000
jne 0x1001dda0
cmp dword [esi + 0x80], 0
jne 0x1001dda0
movzx eax, di
mov dword [esi + 0x80], eax
call fcn.1001f5a8
push 5
push edi
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x1001ddd0
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x1001ddd0
push ebx
push dword [ebp + 0xc]
mov ecx, esi
push eax
call fcn.1001e3dd
jmp 0x1001ddd2
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x1001de58
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x24
mov eax, 0x1017ec6f
call fcn.10039566
mov edi, ecx
mov dword [ebp - 0x24], edi
mov ebx, dword [edi + 0x8c]
mov esi, dword [edi + 0x88]
mov dword [ebp - 0x18], ebx
call fcn.1001f5a8
cmp dword [edi + 0x84], 0
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x20], eax
je 0x1001deb7
call fcn.1001f5a8
push 5
push dword [edi + 0x84]
mov ebx, dword [eax + 0xc]
push ebx
mov dword [ebp - 0x20], ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x1001decb
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, dword [ebp - 0x18]
mov esi, eax
test esi, esi
je 0x1001dec7
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov dword [ebp - 0x18], eax
test ebx, ebx
jne 0x1001ded3
or eax, 0xffffffff
jmp 0x1001e025
mov ecx, edi
call fcn.1001e355
mov ebx, eax
mov dword [ebp - 0x2c], ebx
call fcn.10025e86
xor esi, esi
and dword [ebp - 0x1c], esi
and dword [ebp - 0x28], esi
mov dword [ebp - 0x14], esi
test ebx, ebx
je 0x1001df5f
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp ebx, eax
je 0x1001df5f
push ebx
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x1001df5f
push esi
push ebx
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x14], 1
call fcn.10019f66
mov esi, eax
mov dword [ebp - 0x1c], esi
test esi, esi
je 0x1001df5c
mov ecx, dword [esi]
mov esi, dword [ecx + 0x150]
mov ecx, esi
call dword [section..00cfg]
mov ecx, dword [ebp - 0x1c]
call esi
test eax, eax
je 0x1001df5c
mov esi, dword [ebp - 0x1c]
mov ecx, esi
call fcn.1002b774
test eax, eax
je 0x1001df5c
push 0
mov ecx, esi
call fcn.1002b79f
mov dword [ebp - 0x28], 1
mov esi, dword [ebp - 0x14]
and dword [ebp - 4], 0
push edi
call fcn.10025e2d
push ebx
call fcn.10021088
push dword [ebp - 0x20]
mov ecx, edi
push eax
push dword [ebp - 0x18]
call fcn.1001dcb8
test eax, eax
jne 0x1001dfa8
cmp dword [edi + 0x9c], eax
jne 0x1001dfa8
call fcn.1001f5a8
push ebx
mov eax, dword [eax + 8]
mov dword [ebp - 0x20], eax
call fcn.10021088
push dword [ebp - 0x20]
mov ecx, edi
push eax
push dword [ebp - 0x18]
call fcn.1001dcb8
and dword [edi + 0x9c], 0
jmp 0x1001dfd3
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x28], 0
je 0x1001dfe7
mov ecx, dword [ebp - 0x1c]
push 1
call fcn.1002b79f
test esi, esi
je 0x1001dff4
push 1
push ebx
call dword [sym.imp.USER32.dll_EnableWindow]
test ebx, ebx
je 0x1001e00a
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [edi + 0x20]
jne 0x1001e00a
push ebx
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [edi]
mov esi, dword [eax + 0x60]
mov ecx, esi
call dword [section..00cfg]
mov ecx, edi
call esi
mov ecx, edi
call fcn.1001e394
mov eax, dword [edi + 0x68]
call fcn.1003960b
ret
Function at 0x1001e2a5
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x84], 0
mov esi, dword [ebx + 0x8c]
mov edi, dword [ebx + 0x88]
je 0x1001e2ed
call fcn.1001f5a8
push 5
push dword [ebx + 0x84]
mov eax, dword [eax + 0xc]
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x1001e2ed
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x1001e2fa
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
xor eax, eax
inc eax
test esi, esi
je 0x1001e336
mov edx, 0xffff
lea ecx, [esi + 0xc]
cmp word [esi + 2], dx
jne 0x1001e319
movzx edi, word [esi + 0x12]
movzx edx, word [esi + 0x14]
jmp 0x1001e322
movzx edx, word [ecx]
mov ecx, esi
movzx edi, word [esi + 0xa]
test dword [ecx], 0x1801
jne 0x1001e334
test di, di
jne 0x1001e334
test dx, dx
je 0x1001e336
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10021248
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
xor esi, esi
mov ebx, ecx
push edi
cmp dword [ebp + 8], esi
je 0x10021287
call fcn.1001f5a8
push 0xf0
push dword [ebp + 8]
mov edi, dword [eax + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x10021287
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x1002128f
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
push esi
mov ecx, ebx
call fcn.1003f12f
pop edi
pop esi
pop ebx
pop ebp
ret 4

Function at 0x10024dcb
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, ecx
push edi
test esi, esi
je 0x10024e57
cmp dword [esi + 0x20], 0
je 0x10024e57
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x10024e57
cmp dword [ebp + 8], 0
je 0x10024e57
xor edi, edi
mov ebx, edi
call fcn.1001f5a8
push str.AFX_DIALOG_LAYOUT
push dword [ebp + 8]
mov eax, dword [eax + 0xc]
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 8], eax
test eax, eax
je 0x10024e3b
mov ebx, dword [ebp - 4]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push dword [ebp - 8]
mov edi, eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x10024e57
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push edi
push ebx
push esi
call fcn.10058987
mov edi, eax
add esp, 0xc
test edi, edi
je 0x10024e53
mov ecx, esi
call fcn.10024c92
mov eax, edi
jmp 0x10024e59
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x1002a7b9
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 0x1002a80c
push esi
push dword [ebp + 8]
call fcn.1002ad81
mov edi, eax
test edi, edi
je 0x1002a807
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 0x1002a807
mov eax, dword [ebp - 8]
jmp 0x1002a81e
mov eax, dword [ebp + 0x10]
jmp 0x1002a81e
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 0x1002a8ad
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1017f42e
mov eax, dword fs:[0]
push eax
mov eax, 0x201c
call fcn.10019ae0
mov eax, dword [0x101e2fc0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
xor ebx, ebx
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x14]
mov dword [ebp - 0x201c], edi
mov dword [ebp - 0x2024], eax
cmp dword [ecx + 0x58], ebx
je 0x1002a9de
push ebx
push edx
call fcn.1002ad81
mov ebx, eax
test ebx, ebx
jne 0x1002a915
push esi
jmp 0x1002aa06
lea ecx, [ebp - 0x2014]
call fcn.10004450
xor ecx, ecx
lea eax, [ebp - 0x2018]
push eax
push ecx
lea eax, [ebp - 0x2020]
mov dword [ebp - 4], ecx
push eax
push ecx
push dword [ebp - 0x2024]
mov dword [ebp - 0x2020], ecx
push ebx
mov dword [ebp - 0x2018], ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x201c], eax
test eax, eax
jne 0x1002a99d
mov eax, dword [ebp - 0x2018]
lea ecx, [ebp - 0x2014]
shr eax, 1
push eax
call fcn.100063b0
lea ecx, [ebp - 0x2018]
push ecx
push eax
lea eax, [ebp - 0x2020]
push eax
push 0
push dword [ebp - 0x2024]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x2014]
mov dword [ebp - 0x201c], eax
call fcn.1001f11c
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x201c], 0
jne 0x1002a9cb
mov esi, dword [ebp - 0x2014]
add esi, 0xfffffff0
push esi
call fcn.1001c69d
pop ecx
add eax, 0x10
mov ecx, esi
mov dword [edi], eax
call fcn.10006090
jmp 0x1002aa0d
push esi
mov ecx, edi
call fcn.10019e28
mov ecx, dword [ebp - 0x2014]
lea ecx, [ecx - 0x10]
jmp 0x1002a9c4
test esi, esi
jne 0x1002a9e7
mov esi, 0x101c99c4
push dword [ecx + 0x6c]
lea ecx, [ebp - 0x2010]
push 0x1000
push ecx
push esi
push eax
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x2010]
push eax
mov ecx, edi
call fcn.10019e28
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10039525
leave
ret 0x10
Function at 0x1002aac8
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x18
mov eax, 0x1017f401
call fcn.10039533
mov eax, ecx
mov dword [ebp - 0x18], eax
mov ebx, dword [ebp + 0x10]
xor edi, edi
mov esi, dword [ebp + 0x14]
push edi
mov dword [ebx], edi
mov dword [esi], edi
cmp dword [eax + 0x58], edi
je 0x1002ab70
push dword [ebp + 8]
call fcn.1002ad81
mov dword [ebp - 0x10], eax
test eax, eax
je 0x1002abf6
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], edi
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], edi
push ecx
push edi
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], edi
push ecx
push edi
push dword [ebp + 0xc]
mov dword [ebp - 0x14], edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [ebp - 0x14]
mov dword [esi], ecx
test eax, eax
jne 0x1002ab59
push ecx
call fcn.10019a12
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 dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1002ab59
xor edi, edi
inc edi
jmp 0x1002ab63
push dword [ebx]
call fcn.10019a1b
pop ecx
mov dword [ebx], edi
lea ecx, [ebp - 0x24]
call fcn.1002a76b
jmp 0x1002abf4
mov eax, dword [eax]
push dword [ebp + 0xc]
push dword [ebp + 8]
mov esi, dword [eax + 0x84]
lea eax, [ebp - 0x10]
push eax
mov ecx, esi
call dword [section..00cfg]
mov ecx, dword [ebp - 0x18]
call esi
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], 1
mov ecx, dword [eax - 0xc]
test ecx, ecx
je 0x1002abec
mov esi, dword [ebp + 0x14]
shr ecx, 1
push ecx
mov dword [esi], ecx
call fcn.10019a12
mov dword [ebx], eax
pop ecx
cmp dword [esi], edi
jbe 0x1002abe6
lea esi, [edi + edi]
lea eax, [esi + 1]
push eax
lea ecx, [ebp - 0x10]
call fcn.100278a4
push esi
lea ecx, [ebp - 0x10]
mov bl, al
call fcn.100278a4
mov ecx, dword [ebp + 0x10]
shl bl, 4
sub bl, 0x51
add al, bl
mov ecx, dword [ecx]
mov byte [edi + ecx], al
inc edi
mov eax, dword [ebp + 0x14]
cmp edi, dword [eax]
jb 0x1002abb4
mov eax, dword [ebp - 0x10]
xor edi, edi
inc edi
lea ecx, [eax - 0x10]
call fcn.10006090
mov eax, edi
call fcn.1003960b
ret 0x10
Function at 0x1002abfe
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
mov edi, ecx
xor esi, esi
cmp dword [edi + 0x58], esi
je 0x1002ac4b
push esi
push dword [ebp + 8]
call fcn.1002ad81
mov edi, eax
test edi, edi
je 0x1002acd3
push dword [ebp + 0x14]
push ebx
push 3
push esi
push dword [ebp + 0xc]
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push edi
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
sete al
jmp 0x1002acd3
mov eax, dword [ebp + 0x14]
push 2
pop ecx
lea eax, [eax*2 + 1]
mul ecx
setb cl
movsx ecx, cl
neg ecx
or ecx, eax
push ecx
call fcn.10019a12
mov edx, dword [ebp + 0x14]
pop ecx
mov ecx, eax
mov dword [ebp - 8], ecx
test edx, edx
je 0x1002aca5
mov dword [ebp - 4], 0x41
mov al, byte [ebx + esi]
and al, 0xf
movzx eax, al
add ax, word [ebp - 4]
mov word [ecx + esi*4], ax
mov al, byte [ebx + esi]
shr al, 4
movzx eax, al
add ax, word [ebp - 4]
mov word [ecx + esi*4 + 2], ax
inc esi
cmp esi, edx
jb 0x1002ac7e
xor eax, eax
mov word [ecx + esi*4], ax
mov eax, dword [edi]
push ecx
push dword [ebp + 0xc]
mov esi, dword [eax + 0x88]
mov ecx, esi
push dword [ebp + 8]
call dword [section..00cfg]
mov ecx, edi
call esi
push dword [ebp - 8]
mov esi, eax
call fcn.10019a1b
pop ecx
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 0x10

Function at 0x1002b60c
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x1017ebc4
call fcn.10039533
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0x74], ebx
jne 0x1002b632
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x1002b68c
lea ecx, [ebp - 0x10]
call fcn.10004450
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 [section..00cfg]
mov ecx, edi
call esi
mov esi, dword [ebp + 8]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push esi
call fcn.1016bd4d
push eax
call fcn.10005890
add esp, 0x14
test esi, esi
je 0x1002b67f
push esi
call fcn.1016ba3b
pop ecx
mov ebx, eax
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.10006090
mov eax, ebx
call fcn.1003960b
ret 8
Function at 0x10038182
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
jg 0x100381a3
jl 0x1003819a
test edi, edi
jne 0x100381a3
xor eax, eax
xor edx, edx
jmp 0x10038264
cmp dword [ebx + 0x38], 0
je 0x100381b8
push eax
push edi
push dword [ebp + 8]
call fcn.10037af7
jmp 0x10038264
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x100381ff
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x100381ff
cmp eax, edi
jb 0x100381d9
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.1015ba80
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, dword [ebp + 8]
sub esi, ecx
add eax, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x2c]
sub dword [eax], ecx
mov eax, dword [ebx + 0x1c]
add dword [eax], ecx
jmp 0x10038205
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x10038259
mov ecx, ebx
call fcn.1003869d
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x10038244
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.10169f2f
mov ecx, dword [ebp - 4]
sub esi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, esi
cmp eax, 0xfff
jne 0x10038259
jmp 0x10038217
test edx, edx
je 0x10038259
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.10169f2f
add esp, 0x10
sub esi, eax
mov edx, dword [ebp + 0x10]
sub edi, esi
mov eax, edi
sbb edx, 0
pop esi
pop edi
pop ebx
leave
ret 0xc

Function at 0x10038ffc
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push 2
lea eax, [ebp - 4]
push eax
push 0x20000001
push str._x_sys_default_locale
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
xor ecx, ecx
test eax, eax
jne 0x10039023
mov eax, ecx
mov dword [ebp - 4], eax
jmp 0x10039026
mov eax, dword [ebp - 4]
push esi
mov esi, dword [ebp + 0xc]
push ecx
push ecx
push esi
push eax
push dword [ebp + 8]
push ecx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push eax
push dword [esi]
call fcn.10038fd8
pop esi
leave
ret 8