joyce8/EMBER2024-capa huggingface dataset:
Function at 0x570e10
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x85a1ec]
xor edx, edx
cmp eax, edx
jne 0x570e36
xor eax, eax
mov byte [eax + 0x85a0ec], al
inc eax
cmp eax, 0x100
jl 0x570e1e
mov dword [0x85a1ec], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x85a0ec
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x570ec7
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x570e9a
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x570e68
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x570ed0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x570f23
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x570f0a
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x5778c0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5ada2e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.005781e0
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0x7ce56c
call fcn.0059828a
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x577953
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.0059828a
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x57794c
push 0
mov ecx, eax
call fcn.0056ea80
mov dword [esi + 0xc], eax
jmp 0x577955
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x577955
xor esi, esi
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], 0
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8
Function at 0x59a995
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x59a9cd
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.005989a4
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0059897c
jmp 0x59a9d9
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x59c30f
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 0x59c351
call fcn.005a2cc9
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x59c351
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x59c348
xor eax, eax
jmp 0x59c359
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0059c35f
pop edi
pop esi
pop ebx
ret 4

Function at 0x5a31f9
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 0x5a3227
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x5a3245
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.005a315f
jmp 0x5a3245
mov eax, dword [esi + 0x14]
test eax, eax
je 0x5a3245
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.005a315f
test edi, edi
mov eax, edi
jne 0x5a322f
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x5a5bde
Capabilities:
Check for time delay via gettickcount
Log keystrokes via polling

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
xor ebx, ebx
push 1
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
call edi
test ax, ax
jge 0x5a5c06
or dword [esi + 0x38], 1
or dword [esi + 0x34], 2
jmp 0x5a5c17
push 2
call edi
test ax, ax
jge 0x5a5c17
or dword [esi + 0x38], 2
or dword [esi + 0x34], 1
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebp
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x34]
push dword [eax + 0x1c]
call dword [sym.imp.USER32.dll_SetCapture]
push eax
call fcn.00599fca
cmp dword [esi + 0x30], ebx
jne 0x5a5cf1
mov edi, dword [sym.imp.USER32.dll_PeekMessageA]
mov ebx, 0x100
call dword [sym.imp.USER32.dll_GetCapture]
push eax
call fcn.00599fca
cmp eax, dword [esp + 0x34]
jne 0x5a5cf1
push 1
push 0x209
push 0x200
lea eax, [esp + 0x20]
push 0
push eax
call edi
test eax, eax
jne 0x5a5c8d
push 1
push 0x108
push ebx
push eax
lea eax, [esp + 0x24]
push eax
call edi
test eax, eax
je 0x5a5cd2
mov eax, dword [esp + 0x18]
cmp eax, 0x202
je 0x5a5cf1
cmp eax, 0x205
je 0x5a5cf1
cmp eax, 0x201
je 0x5a5cf1
cmp eax, 0x204
je 0x5a5cf1
cmp eax, ebx
jne 0x5a5cb8
cmp dword [esp + 0x1c], 0x1b
je 0x5a5cf1
push dword [esp + 0x2c]
lea eax, [esi + 0x20]
push dword [esp + 0x2c]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
neg eax
sbb eax, eax
inc eax
mov dword [esi + 0x30], eax
call ebp
sub eax, dword [esp + 0x10]
cmp eax, dword [0x86bcf0]
jbe 0x5a5ce7
mov dword [esi + 0x30], 1
cmp dword [esi + 0x30], 0
je 0x5a5c4a
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov eax, dword [esi + 0x30]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 4
Function at 0x401434
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
pushal
call 0x401443
pop dword [ebp - 8]
mov eax, 0x401443
sub dword [ebp - 8], eax
mov dword [ebp - 0x18], 0x58b01607
sub dword [ebp - 0x18], 0xa5dd0bc
mov dword [ebp - 0x14], 0xf2499294
sub dword [ebp - 0x14], 0xc016464f
mov dword [ebp - 0x10], 0xb20dcd2f
sub dword [ebp - 0x10], 0x65c18901
mov dword [ebp - 0xc], 0x23a51eba
sub dword [ebp - 0xc], 0x23a51eba
lea eax, [ebp - 0x18]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 8]
call dword [eax]
mov dword [ebp - 0x18], 0xacd0ce32
add dword [ebp - 0x18], 0xc7a19b24
mov dword [ebp - 0x14], 0x553d4af9
add dword [ebp - 0x14], 0xec2f167c
mov dword [ebp - 0x10], 0x8cc3f125
add dword [ebp - 0x10], 0xd6ab7b47
mov dword [ebp - 0xc], 0x270dfa33
add dword [ebp - 0xc], 0xd8f205cd
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 0x39a39
push 0
call eax
mov ecx, 0xf32c4572
sub ecx, 0xf32bf865
xor esi, esi
add esi, eax
mov edi, 0x459200
add edi, dword [ebp - 8]
mov ebx, 0xe3503fa2
add ebx, 0x9f4e39a6
mov edx, dword [edi]
sub dword [ebp - 4], edx
xor edx, ebx
add dword [ebp - 4], 0x8cbe3f7c
mov dword [esi], edx
add dword [ebp - 4], 0xcd5926eb
add esi, 0x59809f3e
add esi, 0xa67f60c6
add edi, 4
loop 0x401552
add eax, 0xb1bd3b5c
add eax, 0x4e43ebab
xor ebx, ebx
add ebx, eax
add eax, 0x6c58ff00
sub eax, 0x6c58fefb
mov ecx, 0x995c3b98
add ecx, 0x66e3c468
add ecx, dword [ebp - 8]
call ebx
leave
ret
Function at 0x4068f3
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x43190c], 0
push esi
jne 0x40692a
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406904
mov dword [ecx*4 + 0x431908], eax
inc ecx
cmp ecx, 0x100
jl 0x4068ff
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x40695b
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x431908]
xor eax, esi
inc ecx
dec edx
jne 0x40693d
pop edi
not eax
pop esi
ret 0xc

Function at 0x85c058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x85c1a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x85c07e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x85c06a
add dl, dl
jne 0x85c089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x85c0dc
xor eax, eax
add dl, dl
jne 0x85c096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x85c17d
add dl, dl
jne 0x85c0a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x85c0b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x85c0bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x85c0c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x85c0d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x85c075
mov eax, 1
add dl, dl
jne 0x85c0ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x85c0f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x85c0e1
sub eax, ebx
mov ebx, 1
jne 0x85c128
mov ecx, 1
add dl, dl
jne 0x85c10e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x85c119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x85c105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x85c075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x85c13f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x85c14a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x85c136
cmp eax, 0x7d00
jae 0x85c16d
cmp eax, 0x500
jb 0x85c168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x85c075
cmp eax, 0x7f
ja 0x85c170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x85c075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x85c19e
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 0x85c075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0xcaa058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.00caa1a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, pe_nt_image_headers32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0xcaa07e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xcaa06a
add dl, dl
jne 0xcaa089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xcaa0dc
xor eax, eax
add dl, dl
jne 0xcaa096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xcaa17d
add dl, dl
jne 0xcaa0a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xcaa0b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xcaa0bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xcaa0c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0xcaa0d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0xcaa075
mov eax, 1
add dl, dl
jne 0xcaa0ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xcaa0f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xcaa0e1
sub eax, ebx
mov ebx, 1
jne 0xcaa128
mov ecx, 1
add dl, dl
jne 0xcaa10e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xcaa119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xcaa105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xcaa075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xcaa13f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xcaa14a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xcaa136
cmp eax, 0x7d00
jae 0xcaa16d
cmp eax, 0x500
jb 0xcaa168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xcaa075
cmp eax, 0x7f
ja 0xcaa170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xcaa075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0xcaa19e
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 0xcaa075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x401860
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ecx
push ebx
push edi
call fcn.00428751
mov edi, dword [eax + 0xc]
push 0x464590
push 0x82
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
jne 0x401888
pop edi
pop ebx
pop ecx
ret 4
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push ebx
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
jne 0x4018a8
pop esi
pop edi
pop ebx
pop ecx
ret 4
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push esi
push ebx
push eax
call fcn.0044a4f0
add esp, 0xc
lea eax, [esp + 0xc]
push eax
push 0
push edi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
mov ebx, dword [esp + 0xc]
push 0x10
call sub.gdiplus.dll_GdipAlloc
mov esi, eax
test esi, esi
je 0x4018ff
lea eax, [esi + 4]
push eax
push ebx
mov dword [esi], vtable.Gdiplus::Image.0
mov dword [eax], 0
call sub.gdiplus.dll_GdipLoadImageFromStream
mov dword [esi + 8], eax
jmp 0x401901
xor esi, esi
mov ecx, dword [esp + 0x14]
push edi
mov dword [ecx], esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [esp + 0xc]
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
pop esi
pop edi
mov eax, 1
pop ebx
pop ecx
ret 4

Function at 0x401980
Capabilities:
Extract resource via kernel32 functions

Disassembly:
movzx edx, word [esp + 4]
mov dword [esp + 4], edx
jmp fcn.0041e8be

Function at 0x4027b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ecx
push ebx
push edi
call fcn.00428751
mov edi, dword [eax + 0xc]
push 0x464590
push 0x87
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
jne 0x4027d8
pop edi
pop ebx
pop ecx
ret 4
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push ebx
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
jne 0x4027f8
pop esi
pop edi
pop ebx
pop ecx
ret 4
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push esi
push ebx
push eax
call fcn.0044a4f0
add esp, 0xc
lea eax, [esp + 0xc]
push eax
push 0
push edi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
mov ebx, dword [esp + 0xc]
push 0x10
call sub.gdiplus.dll_GdipAlloc
mov esi, eax
test esi, esi
je 0x40284f
lea eax, [esi + 4]
push eax
push ebx
mov dword [esi], vtable.Gdiplus::Image.0
mov dword [eax], 0
call sub.gdiplus.dll_GdipLoadImageFromStream
mov dword [esi + 8], eax
jmp 0x402851
xor esi, esi
mov ecx, dword [esp + 0x14]
push edi
mov dword [ecx], esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [esp + 0xc]
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
pop esi
pop edi
mov eax, 1
pop ebx
pop ecx
ret 4
Function at 0x402990
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4029a9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4029e4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x4029e0
lea ebx, [ebx]
cmp esi, eax
jae 0x4029e4
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4029d0
cmp esi, eax
jb 0x4029ea
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x406390
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x45a818
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push edi
mov eax, dword [0x4767b0]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
xor edi, edi
push edi
lea ecx, [esi + 0x1ec]
mov dword [esi + 0xb8], 2
call fcn.0041f18f
push edi
lea ecx, [esi + 0x3f8]
call fcn.0041f18f
push edi
lea ecx, [esi + 0xf0]
call fcn.0041f18f
push edi
lea ecx, [esi + 0xb5c]
call fcn.0041f18f
push edi
lea ecx, [esi + 0xbb0]
call fcn.0041f18f
push 5
lea ecx, [esi + 0x814]
call fcn.0041f18f
push 5
lea ecx, [esi + 0xd58]
call fcn.0041f18f
push 5
lea ecx, [esi + 0x604]
call fcn.0041f18f
mov eax, dword [esi + 0xc0]
sub eax, 0x11e
cdq
push 1
sub eax, edx
sar eax, 1
push 0x11e
push 0x153
push eax
mov eax, dword [esi + 0xbc]
sub eax, 0x153
cdq
sub eax, edx
sar eax, 1
push eax
mov ecx, esi
call fcn.0041f14f
mov ecx, dword [esi + 0x20]
lea eax, [esp + 0x14]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
neg edx
push edx
neg eax
push eax
lea ecx, [esp + 0x1c]
push ecx
call dword [sym.imp.USER32.dll_OffsetRect]
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], vtable.CRgn.0
mov dword [esp + 0x30], edi
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
mov edi, dword [esp + 0x14]
push 8
push 9
add eax, 0xfffffffb
push eax
add ecx, 0xfffffffb
push ecx
inc edx
push edx
inc edi
push edi
call dword [sym.imp.GDI32.dll_CreateRoundRectRgn]
push eax
lea ecx, [esp + 0x10]
call fcn.0042053b
mov edx, dword [esp + 0x10]
push 1
mov eax, dword [esi + 0x20]
push edx
push eax
call dword [sym.imp.USER32.dll_SetWindowRgn]
mov ecx, dword [esi + 0x20]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
mov dword [esp + 0x30], 0xffffffff
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], vtable.CRgn.0
call fcn.00401e20
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x406940
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x45a269
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x4767b0]
xor eax, esp
mov dword [esp + 0x18], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4767b0]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov eax, dword [esp + 0x40]
xor ecx, ecx
mov dword [esp + 0x38], ecx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x44]
mov byte [esp + 0x2b], cl
mov dword [esp + 0x18], eax
mov byte [esp + 0x24], 0x4d
mov byte [esp + 0x25], 0x74
mov byte [esp + 0x26], 0x24
mov byte [esp + 0x27], 0x31
mov byte [esp + 0x28], 0x76
mov byte [esp + 0x29], 0x73
mov byte [esp + 0x2a], 0x64
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4069b6
sub eax, ecx
shr eax, 3
mov esi, eax
push esi
call fcn.0041de97
mov edi, eax
lea eax, [esi - 1]
cdq
and edx, 7
add eax, edx
sar eax, 3
lea ebx, [eax*8 + 8]
lea ecx, [ebx + 1]
push ecx
mov dword [esp + 0x28], ebx
call fcn.0041de97
push ebx
push 0
push edi
mov ebp, eax
call fcn.00444200
push ebx
push 0
push ebp
call fcn.00444200
add esp, 0x20
xor ecx, ecx
test esi, esi
jle 0x406a5e
mov eax, dword [esp + 0x18]
add eax, 2
mov dl, 0xd0
add byte [eax - 2], dl
add byte [eax - 1], dl
add byte [eax], dl
add byte [eax + 1], dl
add byte [eax + 2], dl
add byte [eax + 3], dl
add byte [eax + 4], dl
add byte [eax + 5], dl
mov bl, byte [eax - 2]
add bl, bl
add bl, byte [eax - 1]
inc ecx
add bl, bl
add bl, byte [eax]
add eax, 8
add bl, bl
add bl, byte [eax - 7]
add bl, bl
add bl, byte [eax - 6]
add bl, bl
add bl, byte [eax - 5]
add bl, bl
add bl, byte [eax - 4]
add bl, bl
add bl, byte [eax - 3]
cmp ecx, esi
mov byte [ecx + edi - 1], bl
jl 0x406a12
mov ebx, dword [esp + 0x20]
push 1
lea edx, [esp + 0x28]
push edx
push esi
mov ecx, ebp
mov edx, edi
call fcn.00407180
add esp, 0xc
mov byte [ebx + ebp], 0
call fcn.0041e932
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x406a90
push 0x80004005
call fcn.00401f90
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
mov esi, dword [esp + 0x14]
add eax, 0x10
mov dword [esi], eax
push ebp
push 0x465190
mov dword [esp + 0x40], 0
push esi
mov dword [esp + 0x28], 1
call fcn.00401e00
push ebp
call fcn.0041dea2
push edi
call fcn.0041dea2
add esp, 0x14
mov eax, esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.004422a2
add esp, 0x28
ret 8
Function at 0x40add0
Capabilities:
Create thread
Resume thread

Disassembly:
sub esp, 8
cmp dword [esi + 0xb0], 0
je 0x40ae33
cmp dword [esi + 0xa0], 0
je 0x40ae39
mov ecx, dword [esi + 0xf4]
sub ecx, dword [esi + 0xf0]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 1
jbe 0x40ae39
lea ecx, [esp + 4]
push ecx
push 4
push esi
push 0x40b3e0
push 0
push 0
call fcn.00442d11
add esp, 0x18
mov dword [esi + 0xcc], eax
test eax, eax
je 0x40ae33
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
xor eax, eax
add esp, 8
ret
mov eax, dword [esi + 0xd4]
test eax, eax
je 0x40ae33
mov edx, dword [eax]
mov edx, dword [edx + 0x18]
push edi
lea ecx, [esp + 8]
push ecx
push eax
call edx
mov eax, dword [esi + 0xd4]
mov ecx, dword [eax]
lea edx, [esp + 4]
push edx
push eax
mov eax, dword [ecx + 0x1c]
call eax
mov ecx, dword [esp + 4]
mov eax, dword [esi + 0xd4]
mov edx, dword [eax]
push 0
mov edx, dword [edx + 0x20]
mov edi, ecx
neg edi
push edi
mov edi, dword [esp + 0x10]
push edi
push ecx
mov ecx, dword [esi + 0x88]
push 0
push ecx
mov ecx, dword [esi + 0x84]
push ecx
mov ecx, dword [esi + 0xb4]
push 0
push 0
push ecx
push eax
call edx
pop edi
test eax, eax
jne 0x40ae33
push eax
push eax
mov eax, dword [esi + 0x20]
push eax
call dword [sym.imp.USER32.dll_InvalidateRect]
mov eax, 1
add esp, 8
ret
Function at 0x40e810
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ecx
push esi
push edi
call fcn.00428751
mov esi, dword [eax + 0xc]
movzx eax, word [esp + 0x10]
push 0x464590
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x40e839
pop edi
pop esi
pop ecx
ret 8
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x40e859
pop ebx
pop edi
pop esi
pop ecx
ret 8
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push ebx
push esi
push eax
call fcn.0044a4f0
add esp, 0xc
lea ecx, [esp + 0xc]
push ecx
push 0
push edi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
mov ebx, dword [esp + 0xc]
push 0x10
call sub.gdiplus.dll_GdipAlloc
mov esi, eax
test esi, esi
je 0x40e8b0
lea eax, [esi + 4]
push eax
push ebx
mov dword [esi], vtable.Gdiplus::Image.0
mov dword [eax], 0
call sub.gdiplus.dll_GdipLoadImageFromStream
mov dword [esi + 8], eax
jmp 0x40e8b2
xor esi, esi
mov edx, dword [esp + 0x18]
push edi
mov dword [edx], esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
pop ebx
pop edi
mov eax, 1
pop esi
pop ecx
ret 8