joyce8/EMBER2024-capa huggingface dataset:
Function at 0x80ecf0
Capabilities:
Manipulate console buffer
Move file

Disassembly:
mov eax, dword [0xb9b100]
sub esp, 0xacc
push ebx
push ebp
push esi
shr eax, 3
xor esi, esi
push edi
mov edi, dword [0x81b164]
cmp eax, esi
jbe 0x80eec2
mov dword [esp + 0x18], edi
mov dword [esp + 0x20], eax
jmp 0x80ed26
mov edi, dword [esp + 0x18]
xor esi, esi
cmp dword [0xb9b100], 0x1c
jne 0x80ed3d
lea eax, [esp + 0x38]
push eax
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
mov ecx, dword [0x8146f8]
mov edx, dword [0x8146fc]
mov eax, dword [0x814700]
mov ebx, dword [edi]
mov edi, dword [edi + 4]
mov dword [esp + 0x2c], ecx
mov ecx, dword [0x814704]
mov ebp, 0xc6ef3720
mov dword [esp + 0x34], edx
mov dword [esp + 0x30], eax
mov dword [esp + 0x28], ecx
mov dword [esp + 0x1c], 0x20
jmp 0x80ed7a
xor esi, esi
mov eax, ebx
shl eax, 4
add eax, dword [esp + 0x30]
mov edx, ebx
shr edx, 5
add edx, dword [esp + 0x28]
lea ecx, [ebx + ebp]
xor eax, ecx
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], eax
mov dword [0xb9a084], esi
mov eax, dword [esp + 0x14]
add dword [0xb9a084], eax
mov edx, dword [0xb9a084]
mov dword [esp + 0x24], edx
mov dword [esp + 0x14], esi
mov eax, dword [esp + 0x24]
add dword [esp + 0x14], eax
mov eax, dword [esp + 0x10]
xor eax, dword [esp + 0x14]
mov dword [esp + 0x14], eax
sub edi, dword [esp + 0x14]
mov eax, edi
shl eax, 4
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x2c]
add dword [esp + 0x10], eax
cmp dword [0xb9b100], 0x1be
jne 0x80edfa
lea ecx, [esp + 0x3c]
push ecx
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
mov esi, edi
shr esi, 5
add esi, dword [esp + 0x34]
cmp dword [0xb9b100], 0x979
mov dword [0xb9a088], 0xff6b3619
mov dword [0xb9a08c], 0xffffffff
jne 0x80ee47
push 0
call dword [sym.imp.KERNEL32.dll_FlushConsoleInputBuffer]
push 0
lea edx, [esp + 0x2dc]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GlobalGetAtomNameW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
lea eax, [edi + ebp]
xor esi, eax
mov eax, dword [esp + 0x10]
xor eax, esi
sub ebx, eax
add ebp, 0x61c88647
dec dword [esp + 0x1c]
mov dword [esp + 0x10], eax
jne 0x80ed78
cmp dword [0xb9b100], 0x8d4
jne 0x80ee7f
lea eax, [esp + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov esi, dword [esp + 0x18]
mov dword [esi], ebx
mov dword [esi + 4], edi
cmp dword [0xb9b100], 0x17
jne 0x80eeb1
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MoveFileWithProgressW]
lea ecx, [esp + 0x88]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
add esi, 8
dec dword [esp + 0x20]
mov dword [esp + 0x18], esi
jne 0x80ed20
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xacc
ret
Function at 0x401107
Capabilities:
Get memory capacity

Disassembly:
sub esp, 0x20
lea eax, [esp]
push esi
mov esi, ecx
push eax
mov dword [esp + 8], 0x20
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x14]
add ecx, 0x8b000
add edx, 0x80000
shr ecx, 0x14
shr edx, 0x14
mov dword [esi + 0x9d4], ecx
mov dword [esi + 0x9d8], edx
pop esi
add esp, 0x20
ret

Function at 0x4014c1
Capabilities:
Get disk information

Disassembly:
push ecx
push esi
mov esi, ecx
lea ecx, [esp + 4]
mov eax, dword [esi + 0x1c0]
push eax
push str._c:_
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea edx, [esp + 4]
push edx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov dword [esi + 0x1c4], eax
pop esi
pop ecx
ret

Function at 0x401500
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x44
push esi
mov edx, ecx
push edi
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 8]
rep stosd dword es:[edi], eax
lea esi, [edx + 0xa88]
mov ecx, dword [esp + 0x50]
lea eax, [esp + 8]
push esi
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push ecx
push 0
mov dword [esp + 0x30], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x401547
mov dword [esi], eax
pop edi
pop esi
add esp, 0x44
ret 4

Function at 0x402aa0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
push esi
push edi
mov edi, dword [esp + 0xc]
push 2
push eax
mov esi, ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
jne 0x402ac4
mov eax, 1
pop edi
pop esi
ret 8
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [esi + 0x10], eax
jne 0x402add
mov eax, 1
pop edi
pop esi
ret 8
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, esi
mov dword [esi + 8], eax
call fcn.00402b40
mov ecx, esi
mov dword [esi + 4], eax
call fcn.00402b80
mov eax, dword [esi + 8]
mov ecx, dword [esi + 4]
pop edi
mov edx, dword [eax]
lea ecx, [edx + ecx*4]
add ecx, eax
mov dword [esi + 0xc], ecx
mov edx, dword [eax + 4]
mov dword [esi + 0x14], edx
mov eax, dword [eax + 8]
mov dword [esi + 0x18], eax
xor eax, eax
pop esi
ret 8

Function at 0x404750
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
push eax
mov eax, dword [esp + 0xc]
push edx
mov edx, dword [esp + 0xc]
push eax
mov eax, dword [ecx]
push 0
push edx
push eax
call dword [0x42e57c]
ret 0x10

Function at 0x4047d0
Capabilities:
Set registry value

Disassembly:
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
push eax
mov eax, dword [esp + 0xc]
push edx
mov edx, dword [esp + 0xc]
push eax
mov eax, dword [ecx]
push 0
push edx
push eax
call dword [0x42e574]
ret 0x10
Function at 0x405970
Capabilities:
Terminate process

Disassembly:
push ebx
push ebp
push esi
call fcn.00405a30
mov eax, dword [0x42b1f0]
mov ebp, dword [esp + 0x10]
cmp eax, 1
jne 0x405994
push ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
test eax, eax
mov dword [0x42b1ec], 1
mov byte [0x42b1e8], bl
jne 0x4059ee
mov ecx, dword [0x42c7b0]
test ecx, ecx
je 0x4059dc
mov esi, dword [0x42c7ac]
sub esi, 4
cmp esi, ecx
jb 0x4059dc
mov eax, dword [esi]
test eax, eax
je 0x4059d5
call eax
mov ecx, dword [0x42c7b0]
sub esi, 4
cmp esi, ecx
jae 0x4059c7
push 0x424078
push 0x424070
call fcn.00405a50
add esp, 8
push 0x424084
push 0x42407c
call fcn.00405a50
add esp, 8
test ebx, ebx
je 0x405a0d
call fcn.00405a40
pop esi
pop ebp
pop ebx
ret
push ebp
mov dword [0x42b1f0], 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x4085b0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [0x425240]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x40861e
push 0x74
push 1
call fcn.00409df0
mov esi, eax
add esp, 8
test esi, esi
je 0x408614
mov ecx, dword [0x425240]
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x408614
push esi
call fcn.00408590
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push edi
mov dword [esi], eax
mov dword [esi + 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
pop edi
pop esi
ret
push 0x10
call fcn.00405860
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
pop edi
pop esi
ret
Function at 0x408f50
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [0x42b500]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
push esi
xor esi, esi
xor ebx, ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test eax, eax
jne 0x408f92
call edi
mov esi, eax
test esi, esi
je 0x408f7c
mov eax, 1
jmp 0x408f8d
call ebp
mov ebx, eax
test ebx, ebx
je 0x40909f
mov eax, 2
mov dword [0x42b500], eax
cmp eax, 1
jne 0x409032
test esi, esi
jne 0x408fab
call edi
mov esi, eax
test esi, esi
je 0x40909f
cmp word [esi], 0
mov eax, esi
je 0x408fc5
add eax, 2
cmp word [eax], 0
jne 0x408fb3
add eax, 2
cmp word [eax], 0
jne 0x408fb3
sub eax, esi
push 0
sar eax, 1
inc eax
push 0
mov ebp, eax
push 0
push 0
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
je 0x409024
push edi
call fcn.00405bf0
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x409024
push 0
push 0
push edi
push ebx
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x409016
push ebx
call fcn.00405a70
add esp, 4
xor ebx, ebx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
cmp eax, 2
jne 0x40909f
test ebx, ebx
jne 0x409043
call ebp
mov ebx, eax
test ebx, ebx
je 0x40909f
mov cl, byte [ebx]
mov eax, ebx
test cl, cl
je 0x40905b
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x40904b
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x40904b
sub eax, ebx
inc eax
mov esi, eax
push esi
call fcn.00405bf0
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x40907d
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, esi
mov esi, ebx
mov eax, ecx
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
Function at 0x409420
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x1a8
mov eax, 0x4252f8
push ebx
push ebp
push esi
push edi
xor ebp, ebp
cmp ecx, dword [eax]
je 0x409444
add eax, 8
inc ebp
cmp eax, 0x425388
jb 0x409435
cmp ecx, dword [ebp*8 + 0x4252f8]
jne 0x4095eb
mov eax, dword [0x42b1ac]
cmp eax, 1
je 0x4095ad
test eax, eax
jne 0x409470
cmp dword [0x424cb0], 1
je 0x4095ad
cmp ecx, 0xfc
je 0x4095eb
lea eax, [esp + 0xb4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4094ab
mov ecx, 5
mov esi, 0x420e90
lea edi, [esp + 0xb4]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
xor eax, eax
lea ebx, [esp + 0xb4]
repne scasb al, byte es:[edi]
not ecx
cmp ecx, 0x3c
jbe 0x4094f4
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 3
mov ebx, ecx
lea ecx, [esp + 0xb8]
sub ecx, 0x3b
push 0x420e8c
add ebx, ecx
push ebx
call fcn.0040b400
add esp, 0xc
mov ecx, 6
mov esi, 0x420e70
lea edi, [esp + 0x14]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
or ecx, 0xffffffff
mov edi, ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x14]
mov ebx, ecx
mov esi, edi
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x14]
and ecx, 3
push 0x12010
rep movsb byte es:[edi], byte [esi]
mov edi, 0x420e6c
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x420e44
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x1c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp*8 + 0x4252fc]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x1c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.0040c300
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
mov eax, dword [0x42c6a0]
test eax, eax
je 0x4095be
mov esi, dword [eax + 0x48]
cmp esi, 0xffffffff
jne 0x4095c8
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
mov edx, dword [ebp*8 + 0x4252fc]
lea ecx, [esp + 0x10]
push 0
push ecx
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
Function at 0x40c890
Capabilities:
Get geographical location

Disassembly:
mov eax, dword [0x42b640]
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
push edi
test eax, eax
jne 0x40c8d8
push 0
push 0
push 1
push 0
call esi
test eax, eax
je 0x40c8b8
mov eax, 2
jmp 0x40c8d3
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x40c9b8
mov eax, 1
mov dword [0x42b640], eax
cmp eax, 2
jne 0x40c8f8
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x18]
push ecx
push edx
push eax
call esi
pop edi
pop esi
pop ebp
pop ebx
ret
cmp eax, 1
jne 0x40c9ca
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x40c913
mov ecx, dword [0x42b3e8]
mov dword [esp + 0x24], ecx
mov ebx, dword [esp + 0x18]
mov ebp, dword [esp + 0x14]
push 0
push 0
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov edi, eax
test edi, edi
jne 0x40c932
pop edi
pop esi
pop ebp
pop ebx
ret
lea edx, [edi + edi]
push edx
call fcn.00405bf0
mov esi, eax
add esp, 4
test esi, esi
jne 0x40c949
pop edi
pop esi
pop ebp
pop ebx
ret
push edi
push esi
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x40c9af
mov eax, dword [esp + 0x20]
push 0
test eax, eax
push 0
jne 0x40c990
mov eax, dword [esp + 0x2c]
push 0
push 0
push 0xffffffffffffffff
push esi
push 0x220
push eax
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
je 0x40c9af
push esi
call fcn.00405a70
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x2c]
push eax
push ecx
push 0xffffffffffffffff
push esi
push 0x220
push edx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
jne 0x40c9bf
push esi
call fcn.00405a70
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
call fcn.00405a70
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x4115e0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.00406610
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x4116ab
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x4116ab
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x41165e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x411669
or bh, 8
and edi, 0x8000000
je 0x411684
mov eax, dword [0x42c81c]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x4116ab
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x411a80
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x411aab
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x411acf
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x411aea
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
Function at 0x413780
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x41d518
call fcn.004058e0
push ecx
sub esp, 0x14
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x18], esi
mov eax, dword [esi + 0x48]
mov edi, dword [esi + 0x44]
mov dword [ebp - 0x14], eax
call fcn.0041c075
cmp dword [esi + 0x40], 0
mov ebx, dword [eax + 0xc]
je 0x4137ce
call fcn.0041c075
mov ebx, dword [eax + 0xc]
push 5
push dword [esi + 0x40]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x4137dc
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x4137ea
or eax, 0xffffffff
jmp 0x4138d6
mov ecx, esi
call fcn.0041370b
mov edi, eax
mov dword [ebp - 0x20], edi
call fcn.00414529
push edi
call fcn.00413fcc
and dword [ebp - 0x1c], 0
test edi, edi
je 0x413824
push edi
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x413824
push 0
push edi
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x1c], 1
and dword [ebp - 4], 0
push esi
call fcn.004144dd
push edi
call fcn.00413fcc
push ebx
push eax
push dword [ebp - 0x14]
mov ecx, esi
call fcn.004134a2
xor ebx, ebx
cmp eax, ebx
je 0x41389d
test byte [esi + 0x24], 0x10
je 0x413868
push 4
mov ecx, esi
pop ebx
call fcn.00416a19
test ah, 1
je 0x41385e
push 5
pop ebx
push ebx
mov ecx, esi
call fcn.004165a2
xor ebx, ebx
cmp dword [esi + 0x1c], ebx
je 0x41389d
push 0x97
push ebx
push ebx
push ebx
push ebx
push ebx
mov ecx, esi
call fcn.00416ad7
jmp 0x41389d
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x1c], ebx
je 0x4138af
push 1
push edi
call dword [sym.imp.USER32.dll_EnableWindow]
cmp edi, ebx
je 0x4138c5
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x1c]
jne 0x4138c5
push edi
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x60]
mov ecx, esi
call fcn.00413742
mov eax, dword [esi + 0x2c]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret

Function at 0x4149f5
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x414a2d
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00416e33
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00416e0b
jmp 0x414a39
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x90]
pop esi
ret 4
Function at 0x416498
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4164da
call fcn.0041c075
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4164da
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4164d1
xor eax, eax
jmp 0x4164e2
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004164e8
pop edi
pop esi
pop ebx
ret 4

Function at 0x418495
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
push edi
xor edi, edi
cmp dword [ebp + 8], edi
jne 0x4184b2
cmp dword [0x42b16c], edi
jne 0x418604
cmp word [0x42b178], di
mov dword [0x42b16c], 1
jne 0x4184e4
push 0x4200a4
call dword [sym.imp.USER32.dll_RegisterWindowMessageA]
xor ecx, ecx
cmp eax, edi
setne cl
inc ecx
mov dword [0x42b174], eax
mov word [0x42b178], cx
cmp word [0x42b178], 2
jne 0x418520
push 0x420090
push 0x420088
call dword [sym.imp.USER32.dll_FindWindowA]
cmp eax, edi
je 0x418520
mov ecx, dword [0x42b174]
cmp ecx, edi
je 0x418520
push edi
push edi
push ecx
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov dword [0x42b170], eax
jmp 0x418609
push 0x94
lea eax, [ebp - 0x9c]
push edi
push eax
call fcn.00405ae0
add esp, 0xc
lea eax, [ebp - 0x9c]
mov dword [ebp - 0x9c], 0x94
mov dword [0x42b170], 3
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x418604
cmp dword [ebp - 0x8c], 1
je 0x418574
cmp dword [ebp - 0x8c], 2
jne 0x418604
cmp dword [ebp - 0x98], 4
jae 0x4185e3
lea eax, [ebp + 8]
push eax
push 1
push edi
push 0x420070
push 0x80000001
call dword [0x42e58c]
test eax, eax
jne 0x418604
lea eax, [ebp - 4]
mov dword [ebp - 4], pe_nt_image_headers32
push eax
lea eax, [ebp - 0x11c]
push eax
lea eax, [ebp - 8]
push eax
push edi
push 0x42005c
push dword [ebp + 8]
call dword [0x42e57c]
test eax, eax
jne 0x4185d8
push 0xa
lea eax, [ebp - 0x11c]
push edi
push eax
call fcn.004060a0
add esp, 0xc
mov dword [0x42b170], eax
push dword [ebp + 8]
call dword [0x42e584]
jmp 0x418604
cmp dword [ebp - 0x8c], 2
jne 0x418604
cmp dword [ebp - 0x98], 4
jb 0x418604
push edi
push 0x42b170
push edi
push 0x68
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
mov eax, dword [0x42b170]
pop edi
leave
ret

Function at 0x41928c
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x7c], 0
je 0x4192d0
push dword [ebp + 8]
call fcn.0041c72a
mov esi, eax
test esi, esi
je 0x4192fb
lea eax, [ebp + 0x10]
push 4
push eax
push 4
push 0
push dword [ebp + 0xc]
push esi
call dword [0x42e574]
push esi
mov edi, eax
call dword [0x42e584]
xor eax, eax
test edi, edi
sete al
jmp 0x4192fb
push dword [ebp + 0x10]
lea eax, [ebp - 0x10]
push 0x41f9d8
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x10]
push dword [esi + 0x90]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
pop edi
pop esi
leave
ret 0xc