joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1002d0c0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101a9bee
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x1021bfec]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 0x38]
mov dword [ebp - 4], 0
push dword [0x1022daec]
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x1002d130
mov eax, dword [eax + 4]
test eax, eax
je 0x1002d130
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x1002d130
mov dword [eax + 8], 0
mov al, byte [ecx]
cmp al, 0xe
jb 0x1002d127
mov byte [ecx + 0x38], al
jmp 0x1002d140
push ecx
call fcn.100317aa
add esp, 4
push 0x39
call fcn.1003176a
mov ecx, eax
add esp, 4
mov byte [ecx + 0x38], 0xe
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], 0
test ecx, ecx
je 0x1002d1a8
mov eax, dword [ebp + 8]
mov dword [ecx + 4], eax
movq xmm0, qword [ebp + 0xc]
movq qword [ecx + 8], xmm0
mov eax, dword [ebp + 0x14]
mov dword [ecx + 0x10], eax
mov eax, dword [ebp + 0x18]
mov dword [ecx + 0x14], eax
mov eax, dword [ebp + 0x1c]
mov dword [ecx + 0x18], eax
mov eax, dword [ebp + 0x20]
mov dword [ecx + 0x1c], eax
mov eax, dword [ebp + 0x24]
mov dword [ecx + 0x20], eax
movq xmm0, qword [ebp + 0x28]
mov dword [ebp + 0x20], 0
mov dword [ebp + 0x24], 0
movq qword [ecx + 0x24], xmm0
mov eax, dword [ebp + 0x30]
mov dword [ecx + 0x2c], eax
mov eax, dword [ebp + 0x34]
mov dword [ecx + 0x30], eax
mov dword [ecx], 0x1002d3d0
jmp 0x1002d1aa
xor ecx, ecx
mov dword [edi], ecx
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x14], 0
call fcn.1002d210
mov dword [ebp - 4], 1
mov esi, dword [ebp + 0x24]
test esi, esi
je 0x1002d1ea
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x1002d1ea
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], ebx
dec ebx
jne 0x1002d1ea
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x34
Function at 0x1002d210
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101a7886
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x1021bfec]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [edi + 8]
test esi, esi
je 0x1002d274
mov dword [ebp - 4], 0
mov esi, dword [esi + 0x20]
test esi, esi
je 0x1002d26d
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x1002d26d
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], ebx
dec ebx
jne 0x1002d26d
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov dword [edi + 8], 0
mov esi, dword [edi + 4]
test esi, esi
je 0x1002d2b2
push dword [0x1022daec]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x1002d2a2
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x1002d2a2
cmp dword [ecx + 8], 0
jne 0x1002d2a2
mov al, byte [esi + 0x38]
mov byte [esi], al
mov dword [ecx + 8], esi
jmp 0x1002d2ab
push esi
call fcn.100317aa
add esp, 4
mov dword [edi + 4], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x1002f330
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push dword [0x1022daec]
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x1002f372
mov eax, dword [eax + 4]
test eax, eax
je 0x1002f372
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x1002f372
mov dword [eax + 8], 0
mov al, byte [ecx]
cmp al, 0xd
jb 0x1002f369
mov byte [ecx + 0x34], al
jmp 0x1002f382
push ecx
call fcn.100317aa
add esp, 4
push 0x35
call fcn.1003176a
mov ecx, eax
add esp, 4
mov byte [ecx + 0x34], 0xd
mov dword [ebp - 0xc], ecx
test ecx, ecx
je 0x1002f3df
mov eax, dword [ebp + 8]
mov dword [ecx + 4], eax
movq xmm0, qword [ebp + 0xc]
movq qword [ecx + 8], xmm0
mov eax, dword [ebp + 0x14]
mov dword [ecx + 0x10], eax
mov eax, dword [ebp + 0x18]
mov dword [ecx + 0x14], eax
mov eax, dword [ebp + 0x1c]
mov dword [ecx + 0x18], eax
mov eax, dword [ebp + 0x20]
mov dword [ecx + 0x1c], eax
movq xmm0, qword [ebp + 0x24]
movq qword [ecx + 0x20], xmm0
mov eax, dword [ebp + 0x2c]
mov dword [ecx + 0x28], eax
mov eax, dword [ebp + 0x30]
mov dword [ecx + 0x2c], eax
mov eax, esi
mov dword [ecx], 0x1002f3f0
mov dword [esi], ecx
mov dword [ebp - 0xc], 0
pop esi
mov esp, ebp
pop ebp
ret 0x30
xor ecx, ecx
mov eax, esi
mov dword [esi], ecx
mov dword [ebp - 0xc], ecx
pop esi
mov esp, ebp
pop ebp
ret 0x30
Function at 0x1002f740
Capabilities:
Reference google public dns server

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x1021bfec]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor esi, esi
mov dword [ebp - 0x20], ecx
xorps xmm0, xmm0
mov dword [ebp - 0x1c], esi
mov eax, 2
movq qword [ebp - 0x12], xmm0
push str.8.8.8.8
mov dword [ebp - 0xa], esi
mov word [ebp - 6], si
mov word [ebp - 0x14], ax
call dword [sym.imp.WS2_32.dll_inet_addr]
push 0x5a
mov dword [ebp - 0x10], eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x12], ax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.IPHLPAPI.DLL_GetBestInterfaceEx]
test eax, eax
jne 0x1002f80e
lea eax, [ebp - 0x18]
push eax
push esi
call dword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
cmp eax, 0x6f
jne 0x1002f80e
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x1002f80e
push eax
call fcn.10173e17
mov edi, eax
add esp, 4
test edi, edi
je 0x1002f80e
lea eax, [ebp - 0x18]
push eax
push edi
call dword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
test eax, eax
jne 0x1002f805
mov ecx, dword [ebp - 0x1c]
mov eax, edi
cmp dword [eax + 0x19c], ecx
je 0x1002f7e8
mov eax, dword [eax]
test eax, eax
jne 0x1002f7d8
jmp 0x1002f805
push 0x104
push dword [ebp - 0x20]
add eax, 8
push 0xffffffffffffffff
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov esi, 1
push edi
call fcn.10170177
add esp, 4
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.101677cc
mov esp, ebp
pop ebp
ret

Function at 0x1002fa40
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x1021bfec]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 0x101f62b4
push str.kernel32.dll
mov esi, ecx
mov dword [ebp - 0x14], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push str..PhysicalDrive0
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov byte [ebp - 8], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x1002fb1d
push edi
push 0x828
call fcn.100317a1
mov edi, eax
add esp, 4
test edi, edi
je 0x1002fb1c
push 0x828
push 0
push edi
call fcn.1016d200
add esp, 0xc
lea eax, [ebp - 0x14]
push 0
push eax
push 0x826
push edi
push 0xc
lea eax, [ebp - 0x10]
push eax
push 0x2d1400
push ebx
call dword [ebp - 0x18]
test eax, eax
je 0x1002fb11
cmp dword [ebp - 0x14], 0
jbe 0x1002fb11
mov eax, dword [edi + 0x10]
test eax, eax
je 0x1002fb11
cmp eax, 0xffffffff
je 0x1002fb11
lea ecx, [eax + edi]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [esi], al
lea esi, [esi + 1]
test al, al
jne 0x1002fb03
push 0x28
push edi
call fcn.10167d85
add esp, 8
pop edi
test ebx, ebx
je 0x1002fb2d
cmp ebx, 0xffffffff
je 0x1002fb2d
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
xor eax, eax
pop esi
xor ecx, ebp
pop ebx
call fcn.101677cc
mov esp, ebp
pop ebp
ret
Function at 0x1002fc20
Capabilities:
Get hostname
Get memory capacity
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101a9f40
mov eax, dword fs:[0]
push eax
sub esp, 0x194
mov eax, dword [0x1021bfec]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
push 0x114
lea eax, [ebp - 0x170]
push 0
push eax
call fcn.1016d200
add esp, 0xc
mov dword [ebp - 4], 0
lea eax, [ebp - 0x178]
mov dword [ebp - 0x178], 0xf
push eax
lea eax, [esi + 0x7e]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
push 0x40
lea eax, [ebp - 0x58]
push 0
push eax
call fcn.1016d200
add esp, 0xc
mov dword [ebp - 0x58], 0x40
lea eax, [ebp - 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
test eax, eax
je 0x1002fcc1
mov ecx, dword [ebp - 0x50]
mov eax, dword [ebp - 0x4c]
shrd ecx, eax, 0x14
shr eax, 0x14
mov word [esi + 0x28], cx
lea eax, [ebp - 0x19c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ax, word [ebp - 0x188]
push 0x114
mov word [esi + 0x2a], ax
lea eax, [ebp - 0x170]
push 0
push eax
call fcn.1016d200
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
add esp, 0xc
mov dword [ebp - 0x170], 0x114
push str.RtlGetVersion
push str.ntdll.dll
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
test eax, eax
je 0x1002fd21
lea ecx, [ebp - 0x170]
push ecx
call eax
mov eax, dword [ebp - 0x16c]
mov dword [esi + 0x2c], eax
mov eax, dword [ebp - 0x168]
mov dword [esi + 0x30], eax
mov eax, dword [ebp - 0x164]
mov dword [esi + 0x34], eax
call fcn.100062a0
lea ecx, [esi + 0xab]
mov dword [esi + 0x40], eax
mov dword [esi + 0x44], edx
call fcn.1002fa40
call fcn.1002f820
mov dword [esi + 0x4c], edx
lea ecx, [esi + 0x60]
lea edx, [esi + 0x38]
mov dword [esi + 0x48], eax
call fcn.1002fb40
call fcn.1002f550
test eax, eax
je 0x1002fd75
or dword [esi + 0x50], 1
call fcn.1002f5f0
test eax, eax
je 0x1002fd82
or dword [esi + 0x50], 0x20
push 0x101f62c4
push str.kernel32.dll
call edi
push eax
call ebx
test eax, eax
je 0x1002fd9f
call eax
test eax, eax
je 0x1002fd9f
or dword [esi + 0x50], 0x40
push str.IsWow64Process
push str.kernel32.dll
mov dword [ebp - 0x174], 0
call edi
push eax
call ebx
mov edi, eax
test edi, edi
je 0x1002fdce
lea eax, [ebp - 0x174]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call edi
cmp dword [ebp - 0x174], 0
je 0x1002fdde
or dword [esi + 0x50], 0x800
call fcn.1002f6c0
test al, al
je 0x1002fdee
or dword [esi + 0x50], 0x8000
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.101677cc
mov esp, ebp
pop ebp
ret
Function at 0x1002fe20
Capabilities:
List tcp connections and listeners

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, dword [sym.imp.IPHLPAPI.DLL_GetExtendedTcpTable]
lea eax, [ebp - 8]
push 0
push 5
push 2
push 1
push eax
push 0
mov word [ebp - 2], cx
mov dword [ebp - 8], 0
call esi
cmp eax, 0x7a
je 0x1002fe54
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push edi
push dword [ebp - 8]
call fcn.100317a1
mov edi, eax
add esp, 4
test edi, edi
je 0x1002fe82
push 0
push 5
push 2
push 1
lea eax, [ebp - 8]
push eax
push edi
call esi
test eax, eax
je 0x1002fe8a
push edi
call fcn.100317aa
add esp, 4
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
xor esi, esi
push ebx
cmp dword [edi], esi
jbe 0x1002feac
lea ebx, [edi + 0xc]
movzx eax, word [ebx]
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
cmp ax, word [ebp - 2]
je 0x1002febe
inc esi
add ebx, 0x18
cmp esi, dword [edi]
jb 0x1002fe94
push edi
call fcn.100317aa
add esp, 4
xor eax, eax
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
lea eax, [esi + esi*2]
mov esi, dword [edi + eax*8 + 0x18]
push edi
call fcn.100317aa
add esp, 4
mov eax, esi
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x100307e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
lea eax, [ebp - 4]
push eax
push fcn.100307e0
push 4
call dword [sym.imp.KERNEL32.dll_GetModuleHandleExW]
push 0x101f63a8
push 0x1391
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x10030816
pop esi
mov esp, ebp
pop ebp
ret
push edi
push esi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0xc]
mov edi, eax
mov edx, dword [ecx]
mov dword [ecx], edi
cmp edx, edi
jae 0x10030836
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push ebx
push esi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x10030852
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
jne 0x1003085b
pop ebx
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push edi
mov edi, dword [ebp + 8]
push eax
push edi
call fcn.1016d730
mov ecx, dword [0x1022c308]
lea eax, [edi + 0x8bfe]
add esp, 0xc
mov dword [ebp - 8], eax
xor esi, esi
test ecx, 0xfffffffc
jbe 0x100308bd
mov edi, eax
mov eax, 0x2040811
mov ecx, esi
mul esi
mov eax, esi
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 6
imul eax, eax, 0x7f
sub ecx, eax
mov eax, dword [ecx*4 + 0x1022bcfc]
sub dword [edi + esi*4], eax
inc esi
mov ecx, dword [0x1022c308]
mov eax, ecx
shr eax, 2
cmp esi, eax
jl 0x10030884
mov edi, dword [ebp + 8]
mov eax, dword [ebp - 8]
push ecx
push eax
push edi
call fcn.1016d730
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x100309d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, ecx
mov ecx, dword [esi + 4]
mov edx, dword [esi]
sub ecx, edx
cmp ecx, 4
ja 0x100309ec
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
movsx eax, byte [edx + 2]
push ebx
movzx ebx, al
movsx eax, byte [edx + 3]
shl eax, 8
or ebx, eax
movsx eax, byte [edx + 1]
movzx eax, al
shl ebx, 8
or ebx, eax
movsx eax, byte [edx]
movzx eax, al
shl ebx, 8
push edi
or ebx, eax
xor edi, edi
lea eax, [ecx - 4]
push eax
lea ecx, [ebp - 0xc]
call fcn.10030fb0
mov eax, dword [esi + 4]
lea ecx, [edi + 4]
sub eax, dword [esi]
cmp eax, ecx
jbe 0x10030a4c
mov edx, dword [ebp - 0xc]
mov eax, dword [esi]
mov al, byte [eax + ecx]
xor al, 0xb8
mov byte [edx + ecx - 4], al
inc ecx
movzx eax, al
xor edi, eax
mov eax, dword [esi + 4]
sub eax, dword [esi]
cmp ecx, eax
jb 0x10030a32
cmp edi, ebx
je 0x10030a63
lea ecx, [ebp - 0xc]
xor bl, bl
call fcn.1000dc40
pop edi
mov al, bl
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0xc]
cmp esi, eax
je 0x10030a97
mov ecx, esi
call fcn.1000dc40
mov eax, dword [ebp - 0xc]
mov dword [esi], eax
mov eax, dword [ebp - 8]
mov dword [esi + 4], eax
mov eax, dword [ebp - 4]
mov dword [esi + 8], eax
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0xc]
mov bl, 1
call fcn.1000dc40
pop edi
mov al, bl
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10033a72
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x18
mov eax, 0x101aa1b9
call fcn.1016824b
mov eax, ecx
mov dword [ebp - 0x18], eax
mov ebx, dword [ebp + 0x10]
xor edi, edi
mov ecx, dword [ebp + 0x14]
push edi
mov dword [ebx], edi
mov dword [ecx], edi
cmp dword [eax + 0x58], edi
je 0x10033b1c
push dword [ebp + 8]
mov ecx, eax
call fcn.10033daa
mov esi, eax
test esi, esi
je 0x10033baf
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], edi
lea eax, [ebp - 0x14]
mov dword [ebp - 4], edi
push eax
push edi
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], edi
push eax
push edi
push dword [ebp + 0xc]
mov dword [ebp - 0x14], edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp - 0x14]
mov dword [ecx], edx
test eax, eax
jne 0x10033b05
push edx
call fcn.100317a1
pop ecx
lea ecx, [ebp - 0x14]
mov dword [ebx], eax
push ecx
push eax
lea eax, [ebp - 0x18]
push eax
push edi
push dword [ebp + 0xc]
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10033b05
xor edi, edi
inc edi
jmp 0x10033b0f
push dword [ebx]
call fcn.100317aa
pop ecx
mov dword [ebx], edi
lea ecx, [ebp - 0x24]
call fcn.10033937
jmp 0x10033bad
mov esi, dword [eax]
lea eax, [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
mov esi, dword [esi + 0x84]
mov ecx, esi
push eax
call fcn.1016820e
mov ecx, dword [ebp - 0x18]
call esi
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], 1
mov esi, dword [eax - 0xc]
mov dword [ebp - 0x18], esi
test esi, esi
je 0x10033ba5
mov ecx, dword [ebp + 0x14]
mov eax, esi
shr eax, 1
push eax
mov dword [ecx], eax
call fcn.100317a1
mov dword [ebx], eax
pop ecx
test esi, esi
jle 0x10033b9f
mov esi, dword [ebp + 0x10]
lea eax, [edi + 1]
push eax
lea ecx, [ebp - 0x10]
call fcn.10051e01
push edi
lea ecx, [ebp - 0x10]
lea ebx, [eax - 1]
shl bl, 4
sub bl, 0x41
call fcn.10051e01
add al, bl
mov edx, edi
test edx, edx
jns 0x10033b90
add edx, 1
sar edx, 1
mov ecx, dword [esi]
add edi, 2
mov byte [edx + ecx], al
cmp edi, dword [ebp - 0x18]
jl 0x10033b67
mov eax, dword [ebp - 0x10]
xor edi, edi
inc edi
lea ecx, [eax - 0x10]
call fcn.10009340
mov eax, edi
call fcn.10168214
ret 0x10

Function at 0x10033bb7
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 0x10033c0a
push esi
push dword [ebp + 8]
call fcn.10033daa
mov edi, eax
test edi, edi
jne 0x10033bda
mov eax, dword [ebp + 0x10]
jmp 0x10033c1c
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 0x10033bd5
mov eax, dword [ebp - 8]
jmp 0x10033c1c
push dword [ecx + 0x6c]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10037a7f
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 0x10037ac4
call fcn.10041885
push 0xf0
push dword [ebp + 8]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x10037ac4
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x10037ae0
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.1004a184
mov ebx, eax
test edi, edi
je 0x10037ade
test esi, esi
je 0x10037ade
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x1003850d
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 0x100385cb
cmp dword [esi + 0x20], 0
je 0x100385cb
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x100385cb
cmp dword [ebp + 8], 0
je 0x100385cb
xor eax, eax
mov ebx, eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], ebx
mov edi, eax
call fcn.10041885
push 0x101bb828
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 0x1003859c
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 0x100385cb
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.1004ac73
add esp, 0xc
mov ebx, eax
cmp dword [ebp - 8], 0
je 0x100385bc
test edi, edi
je 0x100385bc
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
test ebx, ebx
je 0x100385c7
mov ecx, esi
call fcn.100382b0
mov eax, ebx
jmp 0x100385cd
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x1003cebe
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x101b10b6
call fcn.1016824b
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0x74], ebx
jne 0x1003cee4
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x1003cf43
call fcn.1003e319
push eax
lea ecx, [ebp - 0x10]
call fcn.1000aa50
mov edi, dword [edi + 0x74]
lea ecx, [ebp - 0x10]
push ecx
mov dword [ebp - 4], ebx
mov eax, dword [edi]
mov esi, dword [eax + 0x8c]
mov ecx, esi
call fcn.1016820e
mov ecx, edi
call esi
mov esi, dword [ebp + 8]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push esi
call fcn.10177380
push eax
call fcn.10009190
add esp, 0x14
test esi, esi
je 0x1003cf36
push esi
call fcn.101773ec
pop ecx
mov ebx, eax
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.10009340
mov eax, ebx
call fcn.10168214
ret 8
Function at 0x1003d52f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor esi, esi
call fcn.10041885
push 5
push dword [ebp + 8]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x1003d566
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
mov ecx, dword [ebp - 4]
push ebx
push dword [ebp + 0xc]
push esi
call fcn.1003d587
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x1004c714
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
mov dword [ebp - 4], ebx
test byte [esi + 4], 1
je 0x1004c72e
mov edi, dword [esi + 0xc]
jmp 0x1004c76e
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x1004c747
call fcn.1003feed
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x1004c75c
call fcn.1003feed
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x1004c76e
call fcn.1003feed
call fcn.10041885
cmp dword [eax + 0x3c], 0
je 0x1004c783
push edi
mov ecx, ebx
call fcn.1004be4d
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.1004c960
mov ebx, eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x88]
test ecx, ecx
je 0x1004c7ac
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 4]
and dword [eax + 0x88], 0
test ebx, ebx
je 0x1004c7b8
mov edi, ebx
mov dword [eax + 0x88], ebx
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x10098697
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
mov ecx, dword [esi + 4]
call fcn.1003ce08
push 0xfffffffffffffff0
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x100986d3
call fcn.100988b9
mov dword [esi + 0xc], 1
jmp 0x100986d8
call fcn.100988b9
cmp dword [esi], 0
je 0x10098721
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, dword [ebp + 0x10]
test eax, eax
jle 0x100986fb
lea ecx, [eax + 1]
push ecx
push eax
mov ecx, esi
call fcn.10037b55
jmp 0x1009870c
push 0xff
mov ecx, esi
call fcn.1000aa10
push 0x100
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0xffffffffffffffff
mov ecx, esi
call fcn.10033ee6
jmp 0x10098745
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 0x10098745
push dword [esi]
push dword [ebp - 4]
call fcn.10044131
pop esi
mov esp, ebp
pop ebp
ret 0xc