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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
pushal
call 0x40611c
pop dword [ebp - 8]
mov eax, 0x90327869
sub eax, 0x8ff2174d
sub dword [ebp - 8], eax
mov dword [ebp - 0x18], 0x55da517
sub dword [ebp - 0x18], 0xb70b5fcc
mov dword [ebp - 0x14], 0x56200207
sub dword [ebp - 0x14], 0x23ecb5c2
mov dword [ebp - 0x10], 0x7e7c96d
add dword [ebp - 0x10], 0x44647ac1
mov dword [ebp - 0xc], 0xb27a61d8
sub dword [ebp - 0xc], 0xb27a61d8
lea eax, [ebp - 0x18]
push eax
mov eax, 0x62d3f5b4
add eax, 0x9d6c7aac
add eax, dword [ebp - 8]
call dword [eax]
mov dword [ebp - 0x18], 0x7c9922ca
add dword [ebp - 0x18], 0xf7d9468c
mov dword [ebp - 0x14], 0x705ae921
sub dword [ebp - 0x14], 0x2eee87ac
mov dword [ebp - 0x10], 0x1d60d3ba
add dword [ebp - 0x10], 0x460e98b2
mov dword [ebp - 0xc], 0x7c91b1cd
add dword [ebp - 0xc], 0x836e4e33
lea ebx, [ebp - 0x18]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 8]
call dword [eax]
push 0x40
push 0x1000
push 0x3a833
push 0
call eax
mov ecx, 0x42a5366c
sub ecx, 0x42a4dece
mov edx, eax
mov edi, 0x410000
add edi, dword [ebp - 8]
mov esi, 0xc8304e2f
sub esi, 0x70f92aa7
sub dword [ebp - 4], eax
mov ebx, dword [edi]
xor dword [ebp - 4], 0xed7868ef
xor ebx, esi
mov dword [edx], ebx
mov dword [ebp - 4], 0xb8a40f05
add edx, 0xca938c21
add edx, 0x356c73e3
add edi, 4
loop 0x406233
add eax, 0x22f54404
add eax, 0xdd0c0d47
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x400000
add ecx, dword [ebp - 8]
call ebx
leave
ret

Function at 0x4065b0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40c17c]
jne 0x4065ba
repz ret
jmp fcn.00406941
Function at 0x6fc87910
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x3c
mov eax, dword [esp + 0x44]
mov dword [esp + 0x10], 0
mov dword [esp + 8], 0
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x2c]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 4], eax
mov eax, dword [ecx]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
sub esp, 0x18
test eax, eax
sete al
add esp, 0x3c
ret 0xc

Function at 0x6fc87960
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x3c
mov ebx, dword [esp + 0x5c]
mov esi, dword [esp + 0x54]
mov edi, dword [esp + 0x58]
test ebx, ebx
mov dword [esp + 0x2c], esi
je 0x6fc87a40
mov ebp, dword [ebx]
lea eax, [esp + 0x2c]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], edi
mov dword [esp + 8], 0
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 4], eax
mov eax, dword [ecx]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
xor edx, edx
sub esp, 0x18
test eax, eax
jne 0x6fc879bb
cmp esi, dword [esp + 0x2c]
je 0x6fc879d0
add esp, 0x3c
mov eax, edx
pop ebx
pop esi
pop edi
pop ebp
ret 0x10
lea eax, [esi - 1]
test edi, edi
setne dl
cmp eax, 1
jbe 0x6fc87a10
test ebx, ebx
setne al
and edx, eax
cmp esi, 7
sete al
and dl, al
je 0x6fc87a60
cmp ebp, 3
jbe 0x6fc87a70
mov eax, dword [ebx]
lea ecx, [ebp - 4]
cmp ecx, eax
jae 0x6fc87a50
shr ebp, 1
sub ebp, 1
xor eax, eax
xor ecx, ecx
mov word [edi + ebp*2 - 2], ax
mov word [edi + ebp*2], cx
jmp 0x6fc879bb
test ebx, ebx
setne al
and dl, al
je 0x6fc87a60
cmp ebp, 1
jbe 0x6fc87a70
mov ecx, dword [ebx]
lea ebx, [ebp - 2]
mov eax, ecx
shr eax, 1
cmp ebx, ecx
jae 0x6fc87a30
shr ebp, 1
lea eax, [ebp - 1]
xor ebx, ebx
mov word [edi + eax*2], bx
jmp 0x6fc879bb
xor ebp, ebp
jmp 0x6fc87981
shr eax, 1
lea ebp, [eax + 1]
jmp 0x6fc87a01
mov edx, 1
jmp 0x6fc879bb
xor edx, edx
jmp 0x6fc879bb

Function at 0x6fc87a80
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x2c
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [ecx]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
sub esp, 0x20
test eax, eax
sete al
add esp, 0x2c
ret 0x10

Function at 0x6fc87ae0
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x2c
mov eax, dword [esp + 0x38]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [ecx]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
sub esp, 0x20
test eax, eax
sete al
add esp, 0x2c
ret 0xc
Function at 0x6fc94c10
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x1b
mov dword [esp + 4], 1
lea ebx, [esp + 0x24]
mov dword [esp], 0x6fca622c
add eax, 0x40
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
jmp fcn.6fc94c70

Function at 0x6fc94c70
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
sub esp, 0x30
mov esi, dword [0x6fca9378]
test esi, esi
jle 0x6fc94d5d
mov edi, dword [0x6fca937c]
xor ebx, ebx
lea edx, [edi + 4]
nop
mov ecx, dword [edx]
cmp ecx, eax
ja 0x6fc94ca4
mov edi, dword [edx + 4]
add ecx, dword [edi + 8]
cmp eax, ecx
jb 0x6fc94d56
add ebx, 1
add edx, 0xc
cmp ebx, esi
jne 0x6fc94c90
mov dword [esp], eax
mov ebx, eax
call fcn.6fc953f0
test eax, eax
mov edi, eax
je 0x6fc94d9a
lea ebx, [esi + esi*2]
mov esi, dword [0x6fca937c]
shl ebx, 2
add esi, ebx
mov dword [esi + 8], eax
mov dword [esi], 0
call fcn.6fc95520
add eax, dword [edi + 0xc]
mov dword [esi + 4], eax
lea eax, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov eax, dword [0x6fca937c]
mov eax, dword [eax + ebx + 4]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x6fc94d7a
mov eax, dword [esp + 0x28]
lea edx, [eax - 4]
and edx, 0xfffffffb
je 0x6fc94d4f
sub eax, 0x40
and eax, 0xffffffbf
je 0x6fc94d4f
mov eax, dword [esp + 0x20]
add ebx, dword [0x6fca937c]
mov dword [esp + 8], 0x40
mov dword [esp + 4], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0xc], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
je 0x6fc94d64
add dword [0x6fca9378], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
xor esi, esi
jmp 0x6fc94cae
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.6fc94c10
mov eax, dword [0x6fca937c]
mov eax, dword [eax + ebx + 4]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call fcn.6fc94c10
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call fcn.6fc94c10
lea esi, [esi]
Function at 0x6fc95060
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x6fca9388
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x6fca9380]
sub esp, 4
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test ebx, ebx
je 0x6fc950b5
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x6fc950ae
test esi, esi
je 0x6fc950ae
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x6fc95090
mov dword [esp], 0x6fca9388
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x6fc95730
Capabilities:
Allocate thread local storage

Disassembly:
push esi
push ebx
sub esp, 4
mov esi, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x6fc95760
mov dword [esi], eax
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], eax
add esp, 4
pop ebx
pop esi
jmp fcn.6fc9e810
add esp, 4
pop ebx
pop esi
jmp dword [sym.imp.KERNEL32.dll_GetLastError]

Function at 0x6fc957a0
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
sub esp, 4
mov eax, ebx
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x6fc957e0
Capabilities:
Set thread local storage value

Disassembly:
sub esp, 0x1c
mov eax, dword [esp + 0x24]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
test eax, eax
je 0x6fc95805
xor eax, eax
add esp, 0x1c
ret
add esp, 0x1c
jmp dword [sym.imp.KERNEL32.dll_GetLastError]

Function at 0x6fc95b70
Capabilities:
Allocate thread local storage

Disassembly:
sub esp, 0x1c
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x6fc95ba4
mov dword [esp + 4], 0
mov dword [esp], eax
mov dword [0x6fca93a4], eax
call fcn.6fc9e810
test eax, eax
sete al
movzx eax, al
mov dword [0x6fca2018], eax
add esp, 0x1c
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x6fc95b93
Function at 0x6fc95cc0
Capabilities:
Set thread local storage value

Disassembly:
push ebp
push edi
mov ebp, eax
push esi
push ebx
mov ebx, edx
sub esp, 0x3c
mov eax, dword [eax + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x28], eax
mov eax, dword [edx]
jmp 0x6fc95cec
mov dword [0x6fca93a8], edx
mov eax, dword [ebx]
mov eax, dword [eax]
mov dword [ebx], eax
test eax, eax
je 0x6fc95db0
mov esi, dword [eax + 0x18]
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], ebp
mov eax, dword [ebp]
mov edx, dword [ebp + 4]
mov dword [esp + 4], 0xa
mov dword [esp], 1
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
mov eax, dword [esp + 0x28]
call eax
test eax, eax
jne 0x6fc95e10
test esi, esi
je 0x6fc95d6b
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], ebp
mov eax, dword [ebp]
mov edx, dword [ebp + 4]
mov dword [esp + 4], 0xa
mov dword [esp], 1
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
call esi
cmp eax, 7
je 0x6fc95e20
cmp eax, 8
jne 0x6fc95e10
mov eax, dword [ebx]
mov edx, dword [eax]
mov eax, dword [0x6fca2018]
test eax, eax
js 0x6fc95df0
test eax, eax
je 0x6fc95ce0
mov eax, dword [0x6fca93a4]
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
test eax, eax
jne 0x6fc95ce6
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x6fc95ce6
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], ebp
mov eax, dword [ebp]
mov edx, dword [ebp + 4]
mov dword [esp + 4], 0x1a
mov dword [esp], 1
mov dword [esp + 8], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0xc], edx
call eax
test eax, eax
jne 0x6fc95e10
add esp, 0x3c
mov eax, 5
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0x2c], edx
call fcn.6fc95bb0
mov eax, dword [0x6fca2018]
mov edx, dword [esp + 0x2c]
jmp 0x6fc95d78
add esp, 0x3c
mov eax, 2
pop ebx
pop esi
pop edi
pop ebp
ret
add esp, 0x3c
mov eax, 7
pop ebx
pop esi
pop edi
pop ebp
ret

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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov eax, dword [0x6fca2018]
mov ebx, dword [esp + 0x30]
test eax, eax
js 0x6fc95eb0
test eax, eax
jne 0x6fc95e60
mov eax, dword [0x6fca93a8]
mov dword [0x6fca93a8], ebx
mov dword [ebx], eax
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
mov edi, dword [0x6fca93a4]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
mov ebp, eax
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov edi, eax
mov dword [esp], ebp
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [0x6fca93a4]
sub esp, 4
mov dword [ebx], edi
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
test eax, eax
jne 0x6fc95e55
add esp, 0x1c
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
jmp eax
call fcn.6fc95bb0
mov eax, dword [0x6fca2018]
jmp 0x6fc95e44
Function at 0x6fc95ec0
Capabilities:
Set thread local storage value

Disassembly:
push ebx
sub esp, 0x18
mov eax, dword [esp + 0x20]
mov ebx, dword [eax]
mov eax, dword [0x6fca2018]
test eax, eax
js 0x6fc95f05
test eax, eax
jne 0x6fc95ee2
mov dword [0x6fca93a8], ebx
add esp, 0x18
pop ebx
ret
mov eax, dword [0x6fca93a4]
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
test eax, eax
jne 0x6fc95edd
add esp, 0x18
pop ebx
jmp dword [sym.imp.KERNEL32.dll_GetLastError]
call fcn.6fc95bb0
mov eax, dword [0x6fca2018]
jmp 0x6fc95ed3

Function at 0x6fc96020
Capabilities:
Get thread local storage value

Disassembly:
push edi
push esi
push ebx
sub esp, 0x30
mov eax, dword [0x6fca2018]
mov edi, dword [esp + 0x40]
test eax, eax
js 0x6fc9610c
test eax, eax
mov esi, dword [0x6fca93a8]
jne 0x6fc960a1
test esi, esi
mov dword [esp + 0x2c], esi
je 0x6fc96095
lea ebx, [esp + 0x2c]
mov eax, esi
nop
mov eax, dword [eax + 0x18]
test eax, eax
je 0x6fc96087
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], edi
mov edx, dword [edi]
mov ecx, dword [edi + 4]
mov dword [esp + 4], 1
mov dword [esp], 1
mov dword [esp + 8], edx
mov dword [esp + 0xc], ecx
call eax
cmp eax, 6
je 0x6fc960d0
cmp eax, 8
jne 0x6fc96100
mov eax, dword [esp + 0x2c]
mov eax, dword [eax]
test eax, eax
mov dword [esp + 0x2c], eax
jne 0x6fc96050
mov eax, 5
add esp, 0x30
pop ebx
pop esi
pop edi
ret
mov esi, dword [0x6fca93a4]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov esi, eax
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
sub esp, 4
jmp 0x6fc96041
mov eax, dword [esp + 0x2c]
mov dword [edi + 0xc], 0
mov edx, ebx
mov dword [esp + 0x2c], esi
mov dword [edi + 0x10], eax
mov eax, edi
call fcn.6fc95ad0
cmp eax, 7
jne 0x6fc9609a
mov eax, ebx
call fcn.6fc95c50
mov esi, esi
lea edi, [edi]
add esp, 0x30
mov eax, 3
pop ebx
pop esi
pop edi
ret
call fcn.6fc95bb0
mov eax, dword [0x6fca2018]
jmp 0x6fc96037

Function at 0x6fc961c0
Capabilities:
Get thread local storage value

Disassembly:
push edi
push esi
push ebx
sub esp, 0x20
mov edx, dword [0x6fca2018]
mov ebx, dword [esp + 0x30]
test edx, edx
js 0x6fc96235
test edx, edx
mov eax, dword [0x6fca93a8]
jne 0x6fc9620d
mov ecx, dword [ebx + 0xc]
lea esi, [esp + 0x1c]
mov dword [esp + 0x1c], eax
mov eax, ebx
mov edx, esi
test ecx, ecx
jne 0x6fc961ff
call fcn.6fc95ad0
cmp eax, 7
je 0x6fc96206
call sub.msvcrt.dll_abort
call fcn.6fc95cc0
jmp 0x6fc961f5
mov eax, esi
call fcn.6fc95c50
mov esi, dword [0x6fca93a4]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push esi
mov esi, eax
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
push edi
jmp 0x6fc961dd
call fcn.6fc95bb0
mov edx, dword [0x6fca2018]
jmp 0x6fc961d4
Function at 0x6fc96250
Capabilities:
Get thread local storage value

Disassembly:
push edi
push esi
push ebx
sub esp, 0x20
mov ebx, dword [esp + 0x30]
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x6fc96290
mov edx, dword [0x6fca2018]
test edx, edx
js 0x6fc962e0
test edx, edx
mov eax, dword [0x6fca93a8]
jne 0x6fc962b0
lea edx, [esp + 0x1c]
mov dword [esp + 0x1c], eax
mov eax, ebx
call fcn.6fc95cc0
cmp eax, 7
je 0x6fc962a0
call sub.msvcrt.dll_abort
lea esi, [esi]
mov dword [esp], ebx
call fcn.6fc96020
add esp, 0x20
pop ebx
pop esi
pop edi
ret
lea eax, [esp + 0x1c]
call fcn.6fc95c50
lea esi, [esi]
mov esi, dword [0x6fca93a4]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov esi, eax
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
sub esp, 4
jmp 0x6fc96274
call fcn.6fc95bb0
mov edx, dword [0x6fca2018]
jmp 0x6fc9626b
Function at 0x10011766
Capabilities:
Get number of processors

Disassembly:
outsb dx, byte [esi]
je 0x100117c4
imul ebp, dword [esi + 0x65], 0x65682064
jb 0x100117d1
Function at 0x4016c6
Capabilities:
Access peb ldr_data
Check for peb ntglobalflag flag
Get ntdll base address
Get number of processors
Get process heap flags
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x42c781
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
lea ecx, [esi + 0x10]
call fcn.00405bc0
push fcn.00405bf0
push fcn.00405bc0
lea edi, [esi + 0x18]
push 0xd
push 8
push edi
mov dword [esp + 0x28], 0
call fcn.00411499
push 0x93
push 0xd7
push 0xea
mov ecx, edi
mov byte [esp + 0x20], 1
mov dword [esi], 0x430980
mov dword [esi + 4], 0x16
mov dword [esi + 8], 0
mov byte [esi + 0xc], 0
call fcn.00405c20
push 0x2f
push 0x3e
push 0x3e
lea ecx, [esi + 0x20]
call fcn.00405c20
push 0xa7
push 0xe5
push 0xdf
lea ecx, [esi + 0x28]
call fcn.00405c20
push 4
push 5
push 5
lea ecx, [esi + 0x30]
call fcn.00405c20
push 0x96
push 0xd6
push 0xe9
lea ecx, [esi + 0x38]
call fcn.00405c20
push 0x93
push 0xd6
push 0xe9
lea ecx, [esi + 0x40]
call fcn.00405c20
push 0x33
push 0xca
push 0xa3
lea ecx, [esi + 0x48]
call fcn.00405c20
push 0x16
push 0x64
push 0x44
lea ecx, [esi + 0x50]
call fcn.00405c20
push 0
push 0xd2
push 0x8b
lea ecx, [esi + 0x58]
call fcn.00405c20
push 0x16
push 0x3d
push 0x6c
lea ecx, [esi + 0x60]
call fcn.00405c20
push 0x56
push 0xfd
push 0x67
lea ecx, [esi + 0x68]
call fcn.00405c20
push 0x2a
push 0x7e
push 0x32
lea ecx, [esi + 0x70]
call fcn.00405c20
push 0x10
push 0x2c
push 0xff
lea ecx, [esi + 0x78]
call fcn.00405c20
mov ecx, dword [esp + 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
mov ecx, 0x43f5f0
jmp 0x4016b0

Function at 0x406850
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov ecx, dword [esp + 4]
mov eax, dword [esp + 8]
push ebx
push esi
push edi
and ecx, 0xffff
push eax
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
jne 0x406875
pop edi
pop esi
pop ebx
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
jne 0x406888
pop edi
pop esi
pop ebx
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x406899
pop edi
pop esi
pop ebx
ret
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x4068aa
pop edi
pop esi
pop ebx
ret
mov edx, dword [esp + 0x18]
push ebp
push 0x43b364
push edx
xor ebp, ebp
call fcn.00411c2e
mov esi, eax
add esp, 8
test esi, esi
je 0x4068e4
push esi
push edi
push 1
push ebx
call fcn.00411ac4
add esp, 0x10
cmp edi, eax
jne 0x4068db
mov ebp, 1
push esi
call fcn.00411a47
add esp, 4
mov eax, ebp
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x41f930
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.00412f50
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x41f9fb
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 0x41f9fb
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x41f9ae
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x41f9b9
or bh, 8
and edi, 0x8000000
je 0x41f9d4
mov eax, dword [0x44337c]
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 0x41f9fb
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 0x41fdd0
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 0x41fdfb
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 0x41fe1f
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 0x41fe3a
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