joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406fc0
Capabilities:
Persist via run registry key
Set registry value
Write file on windows

Disassembly:
sub esp, 0x214
push ebx
push ebp
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x3c], 1
jne 0x40714d
mov al, byte [0x440950]
mov ecx, 0x40
mov byte [esp + 0x1c], al
xor eax, eax
lea edi, [esp + 0x1d]
add esi, 0xd0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
stosb byte es:[edi], al
call fcn.00403bb0
mov edx, dword [eax]
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
push edx
lea eax, [esp + 0x20]
push 0x43c5ec
push eax
call ebx
add esp, 0xc
lea ecx, [esp + 0x10]
call fcn.00422a0b
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
call fcn.00403bb0
mov eax, dword [eax]
push 0
push 0x80
push 4
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
lea ecx, [esp + 0x10]
mov edi, eax
call fcn.00422a0b
cmp edi, 0xffffffff
jne 0x407066
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x214
ret
push 2
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebp, dword [sym.imp.KERNEL32.dll_lstrlenA]
lea edx, [esp + 0x18]
push 0
lea eax, [esp + 0x20]
push edx
push eax
call ebp
lea ecx, [esp + 0x24]
push eax
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [esp + 0x14]
push edx
push 2
push 0
push 0x43c5b8
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40714d
mov al, byte [0x440950]
mov ecx, 0x40
mov byte [esp + 0x120], al
xor eax, eax
lea edi, [esp + 0x121]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
stosb byte es:[edi], al
call fcn.00403bb0
mov edx, dword [eax]
lea eax, [esp + 0x120]
push edx
push 0x43c584
push eax
call ebx
add esp, 0xc
lea ecx, [esp + 0x10]
call fcn.00422a0b
lea ecx, [esp + 0x120]
push ecx
call ebp
lea edx, [esp + 0x10]
mov edi, eax
push edx
mov ecx, esi
inc edi
call fcn.00403ae0
mov edx, dword [eax]
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x120]
push edi
push ecx
push 1
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea ecx, [esp + 0x10]
call fcn.00422a0b
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x214
ret
Function at 0x407160
Capabilities:
Get common file path
Persist via run registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x110
mov al, byte [0x440950]
push edi
mov byte [esp + 0x10], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x11]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0
lea ecx, [esp + 0x14]
push 0x19
push ecx
push 0
stosb byte es:[edi], al
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
pop edi
jne 0x4071ea
lea edx, [esp]
mov dword [esp], eax
push edx
push 1
push eax
push 0x43c608
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4071ea
lea eax, [esp + 4]
lea ecx, [esp + 0xc]
push eax
mov eax, dword [esp + 4]
lea edx, [esp + 0xc]
push ecx
push edx
push 0
push 0x43c5f8
push eax
mov dword [esp + 0x1c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [esp]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [esp + 0xc]
push 0
push edx
push 1
push 0x1000
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
add esp, 0x110
ret
Function at 0x408040
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x6c
push esi
push edi
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x30]
xor esi, esi
rep stosd dword es:[edi], eax
mov eax, 0xc
lea ecx, [esp + 0x30]
mov dword [esp + 0x14], eax
mov dword [esp + 8], eax
lea eax, [esp + 0x20]
lea edx, [esp + 8]
push eax
push ecx
mov ecx, dword [esp + 0x80]
push esi
push esi
push 0x200
push esi
lea eax, [esp + 0x2c]
push edx
push eax
push ecx
push esi
mov dword [esp + 0x58], 0x44
mov dword [esp + 0x40], esi
mov dword [esp + 0x44], 1
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x4080e3
cmp dword [esp + 0x7c], esi
je 0x4080cf
mov edx, dword [esp + 0x20]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x78]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov edx, dword [esp + 0x24]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [esp + 0x20]
push eax
call esi
mov eax, dword [esp + 0x78]
pop edi
pop esi
add esp, 0x6c
ret 8
Function at 0x408770
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x42e1f8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x1c]
mov dword [esp + 8], 0
call fcn.00422040
lea eax, [esp + 0x1c]
lea ecx, [esi + 0xd0]
push eax
mov dword [esp + 0x3c], 0
call fcn.00404b10
mov edi, eax
test edi, edi
mov dword [esp + 0x14], edi
jbe 0x408897
lea ecx, [esp + 0x18]
lea edx, [esp + 0xc]
push ecx
push edx
push 0
push 0x2001f
push 0
push 0
push 0
push 0x43c770
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x408815
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.00422073
pop edi
mov eax, 0x643
pop esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
add esp, 0x34
ret
xor esi, esi
test edi, edi
jbe 0x40888c
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x14]
lea edx, [esp + 0xc]
push ecx
mov dword [esp + 0x18], 4
mov eax, dword [eax + esi*4]
push edx
push 0
push 0
push eax
mov eax, dword [esp + 0x24]
push eax
call ebp
test eax, eax
jne 0x408882
mov eax, dword [esp + 0xc]
test eax, eax
jbe 0x408882
mov ecx, dword [esp + 0x24]
dec eax
lea edx, [esp + 0xc]
push 4
mov dword [esp + 0x10], eax
mov eax, dword [ecx + esi*4]
push edx
push 4
push 0
push eax
mov eax, dword [esp + 0x24]
push eax
call edi
test eax, eax
je 0x408882
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [esp + 0x18]
inc esi
cmp esi, eax
jb 0x408828
pop ebp
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.00422073
mov ecx, dword [esp + 0x30]
pop edi
xor eax, eax
pop esi
mov dword fs:[0], ecx
add esp, 0x34
ret
Function at 0x408bc0
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x42c
mov al, byte [0x440950]
push esi
mov esi, ecx
push edi
mov byte [esp + 0x24], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x25]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0xc]
mov dword [esp + 0x10], esi
push ecx
push 0x20019
stosw word es:[edi], ax
push 0
push 0x43c7f4
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x20], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], 0x104
stosb byte es:[edi], al
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x408c2a
pop edi
xor eax, eax
pop esi
add esp, 0x42c
ret
push ebx
push 1
push 0x43c7e0
mov ecx, esi
call fcn.00409030
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, dword [0x440940]
mov dword [esp + 0xc], 0
lea edx, [esp + 0x20]
lea eax, [esp + 0x18]
push edx
mov edx, dword [esp + 0x10]
push 0
push 0
push 0
lea ecx, [esp + 0x38]
push eax
mov eax, dword [esp + 0x24]
push ecx
push edx
push eax
mov dword [esp + 0x38], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
cmp eax, 0x103
je 0x408db5
push 0x43c7d4
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
lea ecx, [esp + 0x28]
push eax
lea edx, [esp + 0x338]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
lea eax, [esp + 0x334]
push 0x43c7d4
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x408cc2
inc dword [esp + 0xc]
jmp 0x408c4d
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x28]
push ecx
push 0x20019
push 0
push edx
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x408cf7
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x28]
push ecx
jmp 0x408da3
mov dl, byte [0x440950]
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x231]
mov byte [esp + 0x230], dl
mov byte [esp + 0x12c], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x12d]
lea edx, [esp + 0x28]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push edx
push 0x43c7f4
lea eax, [esp + 0x238]
push 0x43c300
push eax
call esi
add esp, 0x10
lea ecx, [esp + 0x12c]
lea edx, [esp + 0x230]
push 0
push ecx
push 0x43c7c0
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call ebx
test eax, eax
jne 0x408dac
lea eax, [esp + 0x12c]
push 0x43c7b4
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea ecx, [esp + 0x12c]
lea edx, [esp + 0x28]
push ecx
push edx
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegLoadKeyA]
test eax, eax
jne 0x408dac
lea eax, [esp + 0x28]
push eax
mov ecx, dword [esp + 0x18]
call fcn.004090c0
inc dword [esp + 0xc]
jmp 0x408c4d
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
pop edi
mov eax, 1
pop esi
add esp, 0x42c
ret
Function at 0x408dd0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x330
mov al, byte [0x440950]
push ebx
push esi
mov dword [esp + 0x20], ecx
push edi
mov byte [esp + 0x134], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x135]
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0xc]
xor ebx, ebx
push ecx
push 0x20019
stosw word es:[edi], ax
push ebx
push 0x43c83c
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x20], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x2c], 0x104
stosb byte es:[edi], al
call esi
test eax, eax
je 0x408e3e
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x330
ret
push ebp
mov ebp, dword [sym.imp.USER32.dll_wsprintfA]
mov dword [esp + 0x18], ebx
lea edx, [esp + 0x2c]
lea eax, [esp + 0x1c]
push edx
mov edx, dword [esp + 0x1c]
push ebx
push ebx
push ebx
lea ecx, [esp + 0x148]
push eax
mov eax, dword [esp + 0x24]
push ecx
push edx
push eax
mov dword [esp + 0x3c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
cmp eax, 0x103
je 0x408fb7
lea ecx, [esp + 0x20]
lea edx, [esp + 0x138]
push ecx
push 0x20019
push ebx
push edx
push SysReAllocStringLen
call esi
test eax, eax
jne 0x408eb0
mov eax, dword [esp + 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc dword [esp + 0x18]
jmp 0x408e49
mov dl, byte [0x440950]
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x23d]
mov byte [esp + 0x23c], dl
mov byte [esp + 0x34], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x35]
lea edx, [esp + 0x23c]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x138]
mov dword [esp + 0x14], ebx
stosw word es:[edi], ax
push ecx
push 0x43c83c
push 0x43c300
push edx
stosb byte es:[edi], al
call ebp
add esp, 0x10
lea eax, [esp + 0x14]
lea ecx, [esp + 0x23c]
push eax
push 0x20019
push ebx
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call esi
test eax, eax
jne 0x408fae
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x24]
lea eax, [esp + 0x34]
push edx
push eax
push ebx
push ebx
push 0x43c7c0
push ecx
mov dword [esp + 0x3c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x408fa3
lea edx, [esp + 0x34]
push 0x43c830
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x34]
push 0x104
lea ecx, [esp + 0x38]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
lea edx, [esp + 0x34]
lea eax, [esp + 0x138]
push edx
push eax
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegLoadKeyA]
test eax, eax
jne 0x408fa3
lea ecx, [esp + 0x138]
push ecx
mov ecx, dword [esp + 0x2c]
call fcn.004090c0
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc dword [esp + 0x18]
jmp 0x408e49
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebp
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x330
ret
Function at 0x409190
Capabilities:
Delete registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
lea eax, [esp + 4]
push eax
push 2
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4091ce
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 4]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
jne 0x4091ce
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
ret 0xc
Function at 0x409e20
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x70
push esi
push edi
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x34]
xor esi, esi
rep stosd dword es:[edi], eax
mov eax, 0xc
lea ecx, [esp + 0x34]
mov dword [esp + 0x18], eax
mov dword [esp + 0xc], eax
lea eax, [esp + 0x24]
lea edx, [esp + 0xc]
push eax
push ecx
mov ecx, dword [esp + 0x84]
push esi
push esi
push 0x200
push 1
lea eax, [esp + 0x30]
push edx
push eax
push ecx
push esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x5c], 0x44
mov dword [esp + 0x44], esi
mov dword [esp + 0x48], 1
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x409edc
cmp dword [esp + 0x80], esi
je 0x409eb7
mov edx, dword [esp + 0x24]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [esp + 0x24]
lea eax, [esp + 8]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [esp + 0x84]
cmp eax, esi
je 0x409ec8
mov edx, dword [esp + 0x2c]
mov dword [eax], edx
mov eax, dword [esp + 0x28]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov ecx, dword [esp + 0x24]
push ecx
call esi
mov eax, dword [esp + 8]
pop edi
pop esi
add esp, 0x70
ret 0xc

Function at 0x4180cf
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x43e100
cmp edx, dword [eax]
je 0x4180f1
add eax, 8
inc ecx
cmp eax, 0x43e190
jl 0x4180e2
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x43e100]
jne 0x41821f
mov eax, dword [0x442a94]
cmp eax, 1
je 0x4181f9
test eax, eax
jne 0x418122
cmp dword [0x43d784], 1
je 0x4181f9
cmp edx, 0xfc
je 0x41821f
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x418159
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0041a6e0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00414660
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x41819c
lea eax, [ebp - 0x1a4]
push eax
call fcn.00414660
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x43316c
push edi
call fcn.0041bf20
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0041a6e0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0041a6f0
lea eax, [ebp - 0xa0]
push 0x43314c
push eax
call fcn.0041a6f0
push dword [esi + 0x43e104]
lea eax, [ebp - 0xa0]
push eax
call fcn.0041a6f0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0041be97
add esp, 0x2c
pop edi
jmp 0x41821f
lea eax, [ebp + 8]
lea esi, [esi + 0x43e104]
push 0
push eax
push dword [esi]
call fcn.00414660
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x420fa0
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.00413140
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x42106b
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 0x42106b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x42101e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x421029
or bh, 8
and edi, 0x8000000
je 0x421044
mov eax, dword [0x44425c]
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 0x42106b
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 0x421440
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 0x42146b
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 0x42148f
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 0x4214aa
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 0x4232c3
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x42e520
call fcn.00413f88
sub esp, 0x18
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], esi
mov eax, dword [esi + 0x48]
mov edi, dword [esi + 0x44]
mov dword [ebp - 0x18], eax
call fcn.0042a814
cmp dword [esi + 0x40], 0
mov ebx, dword [eax + 0xc]
je 0x423302
call fcn.0042a814
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 0x423310
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x42331e
or eax, 0xffffffff
jmp 0x423406
mov ecx, esi
call fcn.00423239
mov dword [ebp - 0x14], eax
call fcn.00424dce
xor edi, edi
cmp dword [ebp - 0x14], edi
mov dword [ebp - 0x20], edi
je 0x423355
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x423355
push edi
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x20], 1
push esi
mov dword [ebp - 4], edi
call fcn.00424d82
push dword [ebp - 0x14]
call fcn.004248d0
push ebx
push eax
push dword [ebp - 0x18]
mov ecx, esi
call fcn.00422fd1
cmp eax, edi
je 0x4233c8
test byte [esi + 0x24], 0x10
je 0x423396
push 4
mov ecx, esi
pop ebx
call fcn.00426f11
test ah, 1
je 0x42338e
push 5
pop ebx
push ebx
mov ecx, esi
call fcn.004268dd
cmp dword [esi + 0x1c], edi
je 0x4233c8
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.00426ff7
jmp 0x4233c8
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], edi
je 0x4233dc
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x4233f5
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x1c]
jne 0x4233f5
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x58]
mov ecx, esi
call fcn.00423273
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 0x42678b
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 0x4267cd
call fcn.0042a814
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4267cd
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4267c4
xor eax, eax
jmp 0x4267d5
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004267db
pop edi
pop esi
pop ebx
ret 4
Function at 0x42b73f
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x42b76d
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x42b78b
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0042b6a5
jmp 0x42b78b
mov eax, dword [esi + 0x14]
test eax, eax
je 0x42b78b
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0042b6a5
test edi, edi
mov eax, edi
jne 0x42b775
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x4d5787
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [ebp + 0x8957d5]
and byte [ecx - 0x7e], al
add dword [ebx - 0x75], edx
enter 0xffffffffffffe043, 0x60
push 0xaf1fb080
and esi, eax
inc eax
mov esp, 0xfa9b6092
adc al, ch
jle 0x4d57df
jbe 0x4d5826
test byte [eax + 8], ch
pop eax
push 0x76
or eax, 0x46b32008
mov edi, 0x1beb1487
push esi
aas
sar byte [ecx], 1
imul edi, dword [ecx], 0x18768143
mov ebp, 0x1a8ab69f
adc eax, 0x4d097494
xor cl, byte [ecx + 0x36003a4d]
cwde
sub al, 0xd
invalid
jnp 0x4d583a
out 0x90, eax
popfd
mov ah, 0x16
mov ebx, 0xe45c85eb
jns 0x4d57b5
enter 0x589a, 0x5c
dec eax
push edx
jo 0x4d5810
daa
push 0xc
mov bl, 0x7c
aam 0x70
adc esi, dword [esi]
mov byte [esi], 0x92
adc cl, byte [ecx*4 + 0x71c677cb]
inc esp
ret