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

Disassembly:
push ebp
mov ebp, esp
push esi
push ecx
push edx
push 0
sub esi, esi
shr esi, 9
and dword [esp - 0x69], ebx
jbe 0x10083e49
add edi, 0
shr esi, 0x17
or esi, dword [esp]
add esp, 4
add esi, dword [ebp + 8]
xor eax, eax
xor edx, edx
cld
and dword [esp - 0x46], edx
xor ecx, ecx
rol edx, 7
and dword [esp - 0x4b], edx
xor dl, al
mov al, byte [esi]
inc esi
or al, al
jne 0x10083e5a
mov eax, edx
pop edx
pop ecx
pop esi
mov esp, ebp
mov ebp, dword [esp]
add esp, 4
push 0x54
call fcn.10083e9b
std
inc ebx
sar cl, 0x3e
lahf
in al, dx
mov ch, 0x4a
mov ebx, 0x971631d8
test byte [ebp - 0x5e], ch
xor eax, dword [ebx + 0x2b5108c4]
add esp, 8
push ecx
sub ecx, eax
mov ecx, esp
cmp dword [ecx - 0x51], edx

Function at 0x10086207
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0xffffffffffffffff
push esi
mov esi, esp
xor dword [esp - 0x43], esi
xor dword [esp - 0x45], esi
and dword [esi + 4], eax
pop esi
push 0
ja 0x10086150
add ebx, 0
push ecx
call 0x10086165
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
add esp, 8
xor dword [esp], ebx
sub esp, 0x6b
mov dword [esp + 0x67], edx
add esp, 0x67
push ecx
push 0
xor dword [esp - 0x56], edx
xor edi, 0
add dword [esp], edi
push esi
mov ebx, 0x1004a17c
sub ebx, dword [0x100699bb]
mov dword [ebp - 8], ebx
xchg esi, eax
push 0x100699ab
call fcn.10081c2f
xchg esi, eax
add esi, ebx
mov edx, dword [ebp + 8]
sub edx, ebx
call fcn.1008113d
mov edi, eax
mov eax, dword [esi + 8]
xor dword [esp - 0x69], edx
xor ebx, 0
xor eax, edi
cmp edx, eax
jb 0x100862c3
mov eax, dword [esi + 0xc]
xor eax, edi
cmp edx, eax
ja 0x100862c3
mov ecx, dword [esi + 0x10]
sub dword [esp - 0x34], ebx
xor ecx, edi
mov edx, dword [esi + 0x14]
xor edx, edi
shl edx, 2
add edx, 0x18
mov eax, dword [esi]
xor eax, edi
cmp eax, 1
je 0x1008627a
mov eax, 1
lock xchg dword [0x100699b7], eax
push 0x3dd1fc71
call 0x10086207
push esi
add esp, 8
cmp eax, 0
jne 0x100861f0
push edx
mov eax, edi
xor byte [esi + edx], al
inc edx
dec ecx
jne 0x10086216
pop edx
mov eax, dword [esi + 0x14]
xor eax, edi
js 0x1008622b
cmp ecx, edx
cmp eax, 0
je 0x10086250
mov dword [ebp - 4], eax
lea ecx, [esi + 0x18]
mov eax, dword [esi + ecx]
xor eax, edi
add eax, edx
add dword [esi + eax], ebx
add ecx, 4
dec dword [ebp - 4]
jne 0x1008623a
mov eax, 1
mov dword [esp - 0x1a], eax
push 0x8ae1b7eb
call fcn.10086269
dec eax
loope 0x1008626c
invalid
xor eax, edi
mov dword [esi], eax
mov dword [0x100699b7], 0
add edx, esi
mov dword [ebp + 4], edx
xchg dword [esp], esi
push ecx
lea ecx, [edi - 0x72d1f741]
mov ecx, esp
mov dword [ecx - 0x15], ebx
pop ecx
push esi
xor esi, esi
mov esi, esp
and dword [esi - 0x1d], ecx
pop esi
mov dword [esp], esi
jb 0x100862a0
xor edx, 0
add esp, 4
pop edi
pop ecx
pop edx
pop ebx
pop eax
leave
jmp 0x100862b5
jmp 0x100862c0
ret 4
mov eax, dword [esi + 4]
xor eax, edi
add esi, eax
jmp 0x100861ae
Function at 0x1008d328
Capabilities:
Access peb ldr_data

Disassembly:
add esp, 8
and dword [esp], ebx
push ecx
push edx
push edi
push esi
or edi, 0xffffffff
not edi
add edi, dword [ebp + 8]
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov ecx, dword [eax + 0xc]
push ecx
xor edx, edx
mov ecx, dword [ecx]
cmp ecx, dword [esp]
je 0x1008d5fe
push ebp
push 0xffffffffffffffff
sub esp, 0x32
mov dword [esp + 0x2e], 0x1005662f
add esp, 0x2e
sub esp, 4
mov dword [esp], 0x1004d5f5
push 0xffffffffffffffff
call fcn.10084528
xchg edx, eax
and eax, 0
add eax, 0x75d46dc4
push ecx
and ecx, 0xcfb6d7ec
mov ecx, esp
mov dword [ecx - 0x54], esi
pop ecx
ja 0x1008d392
and eax, eax
xchg edx, eax
mov edx, dword [ecx + edx - 0x75d46dac]
call fcn.1008d3aa
mov byte [0xee69f033], al
invalid
mov eax, ecx
pop esi
mov edi, dword [esp]
add esp, 4
pop edx
xor ecx, ecx
add ecx, 0xffffffff
and ecx, dword [esp]
xor ecx, 0
add esp, 4
pop ebx
mov esp, ebp
mov ebp, dword [esp]
add esp, 4
jno 0x1008d5f2
xor eax, 0
ret 4
xor ecx, ecx
jmp 0x1008d5c6
Function at 0x1009cdf8
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push ecx
lea esp, [esp - 0x10]
mov dword [esp + 0xc], edx
lea esp, [esp + 0xc]
sub esp, 4
mov dword [esp], 0x8b92e34e
mov dword [esp], edi
push esi
mov eax, dword [ebp + 8]
and ax, 0xf001
dec eax
cmp word [eax], 0x5a4d
jne 0x1009ce1a
mov ebx, dword [eax + 0x3c]
cmp ebx, 0xf08
ja 0x1009ce1a
add ebx, eax
cmp dword [ebx], 0x4550
jne 0x1009ce1a
ret
cmp word [ebx + 4], 0x14c
jne 0x1009ce1a
test word [ebx + 0x16], 2
je 0x1009ce1a
test word [ebx + 0x16], 0x100
je 0x1009ce1a
cmp word [ebx + 0x18], 0x10b
jne 0x1009ce1a
mov edx, dword [ebx + 0x78]
cmp edx, 0
je 0x1009ce1a
lea edx, [eax + edx]
mov edx, dword [edx + 0xc]
push 0xe1641d81
call 0x1009cea6
adc al, 0xbd
mov dl, 3
cmp byte [ecx + 0x75ac5ffe], 0xa
jnp 0x1009ce3a
int1
salc
push edi
inc esp
add esp, 8
lea edx, [edx + eax]
mov ebx, eax
push edx
call fcn.10083d85
xchg ebx, eax
cmp ebx, dword [ebp + 0xc]
jne 0x1009ce1a
sub esp, 0x3e
mov esi, dword [esp + 0x3e]
add esp, 0x42
pop edi
mov edx, dword [esp]
add esp, 4
pop ecx
pop ebx
leave
ret 8

Function at 0x1009cea6
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push ecx
lea esp, [esp - 0x10]
mov dword [esp + 0xc], edx
lea esp, [esp + 0xc]
sub esp, 4
mov dword [esp], 0x8b92e34e
mov dword [esp], edi
push esi
mov eax, dword [ebp + 8]
and ax, 0xf001
dec eax
cmp word [eax], 0x5a4d
jne 0x1009ce1a
mov ebx, dword [eax + 0x3c]
cmp ebx, 0xf08
ja 0x1009ce1a
add ebx, eax
cmp dword [ebx], 0x4550
jne 0x1009ce1a
ret
cmp word [ebx + 4], 0x14c
jne 0x1009ce1a
test word [ebx + 0x16], 2
je 0x1009ce1a
test word [ebx + 0x16], 0x100
je 0x1009ce1a
cmp word [ebx + 0x18], 0x10b
jne 0x1009ce1a
mov edx, dword [ebx + 0x78]
cmp edx, 0
je 0x1009ce1a
lea edx, [eax + edx]
mov edx, dword [edx + 0xc]
push 0xe1641d81
call 0x1009cea6
adc al, 0xbd
mov dl, 3
cmp byte [ecx + 0x75ac5ffe], 0xa
jnp 0x1009ce3a
int1
salc
push edi
inc esp
add esp, 8
lea edx, [edx + eax]
mov ebx, eax
push edx
call fcn.10083d85
xchg ebx, eax
cmp ebx, dword [ebp + 0xc]
jne 0x1009ce1a
sub esp, 0x3e
mov esi, dword [esp + 0x3e]
add esp, 0x42
pop edi
mov edx, dword [esp]
add esp, 4
pop ecx
pop ebx
leave
ret 8
Function at 0x1009cf5d
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0
push ecx
xor ecx, ecx
jne 0x1009cfb6
mov ecx, esp
xor dword [ecx - 0x55], edi
pop ecx
call 0x1009cf5d
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
call 0x1009cf6c
cld
test edx, ebx
or ebp, eax
add dword [esi - 0x7cc26b19], esp
les ecx, [eax]
or dword [esp], ebp
mov ebp, esp
sub esp, 0x100
push ebx
push edx
push ecx
push edi
push esi
mov ebx, dword [ebp + 8]
mov edx, ebx
add ebx, dword [ebx + 0x3c]
mov ebx, dword [ebx + 0x78]
lea ebx, [ebx + edx]
mov eax, dword [ebx + 0x24]
add eax, edx
xor edi, edi
jne 0x104a2c0f
or edi, dword [ebx + 0x20]
add edi, edx
mov ecx, dword [ebx + 0x18]
mov esi, dword [edi]
add esi, edx
push 0
push ecx
mov ecx, esp
push 0x55d34c8a
call 0x1009cfbd
sti
sbb byte [ecx + 0x56], dh
xlatb
les ebp, [ebp + 0x8c483e2]
xchg dword [ecx + 4], eax
xor eax, edx
shl eax, 3
xor ecx, 0
shl eax, 0x1d
add eax, dword [ecx + 4]
pop ecx
push esi
call fcn.10083e33
cmp eax, dword [ebp + 0xc]
pop eax
je 0x1009d05c
add edi, 4
add eax, 2
dec ecx
jne 0x1009cfa2
call 0x1009d009
loope 0x1009cfff
invalid
sbb esi, ebx
mov edi, 0xdbead58c
js 0x1009d059
mov dh, 0xe8
or byte [eax], al
add byte [eax], al
mov bh, 0x24
lea eax, [edx + 0x53]
nop
mov dword [esi + 0x2308c483], ecx
sal byte [ecx], 0xc0
fsub st(7)
int 0xf
mov bh, 0
movzx eax, word [eax]
jmp 0x1009d06a
shl eax, 2
add eax, dword [ebx + 0x1c]
add eax, edx
mov eax, dword [eax]
add eax, edx
mov ebx, edx
add ebx, dword [edx + 0x3c]
mov ecx, dword [ebx + 0x7c]
mov ebx, dword [ebx + 0x78]
add ebx, edx
add ecx, ebx
cmp eax, ebx
jb 0x1009d01d
cmp eax, ecx
ja 0x1009d01d
mov esi, eax
lea edi, [ebp - 0x100]
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
js 0x1009d0a7
or ecx, ecx
xor dword [esp - 0x6b], eax
cmp al, 0x2e
jne 0x1009d09d
lea edi, [ebp - 0x100]
push 0x100
push edi
push esi
call fcn.10084312
lea esp, [esp - 0x60]
mov dword [esp + 0x5c], edi
lea esp, [esp + 0x5c]
Function at 0x1009cf6c
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0
push ecx
xor ecx, ecx
jne 0x1009cfb6
mov ecx, esp
xor dword [ecx - 0x55], edi
pop ecx
call 0x1009cf5d
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
call 0x1009cf6c
cld
test edx, ebx
or ebp, eax
add dword [esi - 0x7cc26b19], esp
les ecx, [eax]
or dword [esp], ebp
mov ebp, esp
sub esp, 0x100
push ebx
push edx
push ecx
push edi
push esi
mov ebx, dword [ebp + 8]
mov edx, ebx
add ebx, dword [ebx + 0x3c]
mov ebx, dword [ebx + 0x78]
lea ebx, [ebx + edx]
mov eax, dword [ebx + 0x24]
add eax, edx
xor edi, edi
jne 0x104a2c0f
or edi, dword [ebx + 0x20]
add edi, edx
mov ecx, dword [ebx + 0x18]
mov esi, dword [edi]
add esi, edx
push 0
push ecx
mov ecx, esp
push 0x55d34c8a
call 0x1009cfbd
sti
sbb byte [ecx + 0x56], dh
xlatb
les ebp, [ebp + 0x8c483e2]
xchg dword [ecx + 4], eax
xor eax, edx
shl eax, 3
xor ecx, 0
shl eax, 0x1d
add eax, dword [ecx + 4]
pop ecx
push esi
call fcn.10083e33
cmp eax, dword [ebp + 0xc]
pop eax
je 0x1009d05c
add edi, 4
add eax, 2
dec ecx
jne 0x1009cfa2
call 0x1009d009
loope 0x1009cfff
invalid
sbb esi, ebx
mov edi, 0xdbead58c
js 0x1009d059
mov dh, 0xe8
or byte [eax], al
add byte [eax], al
mov bh, 0x24
lea eax, [edx + 0x53]
nop
mov dword [esi + 0x2308c483], ecx
sal byte [ecx], 0xc0
fsub st(7)
int 0xf
mov bh, 0
movzx eax, word [eax]
jmp 0x1009d06a
shl eax, 2
add eax, dword [ebx + 0x1c]
add eax, edx
mov eax, dword [eax]
add eax, edx
mov ebx, edx
add ebx, dword [edx + 0x3c]
mov ecx, dword [ebx + 0x7c]
mov ebx, dword [ebx + 0x78]
add ebx, edx
add ecx, ebx
cmp eax, ebx
jb 0x1009d01d
cmp eax, ecx
ja 0x1009d01d
mov esi, eax
lea edi, [ebp - 0x100]
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
js 0x1009d0a7
or ecx, ecx
xor dword [esp - 0x6b], eax
cmp al, 0x2e
jne 0x1009d09d
lea edi, [ebp - 0x100]
push 0x100
push edi
push esi
call fcn.10084312
lea esp, [esp - 0x60]
mov dword [esp + 0x5c], edi
lea esp, [esp + 0x5c]
Function at 0x401090
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10c
mov eax, dword [0x4797a0]
xor eax, dword [esp + 0x10c]
mov dword [esp + 0x108], eax
mov eax, dword [ecx]
test eax, eax
je 0x4010f9
lea ecx, [esp + 4]
push ecx
lea edx, [esp + 0xc]
push edx
mov edx, dword [esp + 0x118]
lea ecx, [esp + 8]
push ecx
push 0
push edx
push eax
mov dword [esp + 0x1c], 0x100
mov dword [esp + 0x18], 1
call dword [sym.imp.advapi32.dll_RegQueryValueExA]
test eax, eax
jne 0x4010f9
mov byte [esp + 0x107], al
lea eax, [esp + 8]
push eax
call fcn.0043124b
add esp, 4
jmp 0x401100
mov eax, dword [esp + 0x114]
mov ecx, dword [esp + 0x108]
xor ecx, dword [esp + 0x10c]
call fcn.004311b5
add esp, 0x10c
ret 8

Function at 0x401120
Capabilities:
Set registry value

Disassembly:
sub esp, 0x104
mov eax, dword [0x4797a0]
xor eax, dword [esp + 0x104]
push esi
mov esi, ecx
mov dword [esp + 0x104], eax
cmp dword [esi], 0
je 0x40118c
mov eax, dword [esp + 0x110]
push eax
push 0x45a864
lea ecx, [esp + 0xc]
push 0x100
push ecx
call fcn.0043112d
lea eax, [esp + 0x14]
add esp, 0x10
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401167
mov ecx, dword [esi]
sub eax, edx
inc eax
push eax
mov eax, dword [esp + 0x110]
lea edx, [esp + 8]
push edx
push 1
push 0
push eax
push ecx
call dword [sym.imp.advapi32.dll_RegSetValueExA]
mov ecx, dword [esp + 0x104]
xor ecx, dword [esp + 0x108]
pop esi
call fcn.004311b5
add esp, 0x104
ret 8

Function at 0x4011b0
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword [ecx]
sub esp, 8
test eax, eax
je 0x4011fa
lea ecx, [esp]
push ecx
mov ecx, dword [esp + 0x10]
push 0x47aa00
lea edx, [esp + 0xc]
push edx
push 0
push ecx
push eax
mov dword [esp + 0x18], 0x400
mov dword [esp + 0x1c], 1
call dword [sym.imp.advapi32.dll_RegQueryValueExA]
test eax, eax
jne 0x4011fa
mov byte [0x47adff], al
mov eax, 0x47aa00
add esp, 8
ret 8
mov eax, dword [esp + 0x10]
add esp, 8
ret 8

Function at 0x401210
Capabilities:
Set registry value

Disassembly:
push edi
mov edi, dword [ecx]
test edi, edi
je 0x40124d
mov edx, dword [esp + 0xc]
test edx, edx
jne 0x401224
mov edx, 0x45a867
mov eax, edx
push esi
lea esi, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401230
sub eax, esi
inc eax
push eax
mov eax, dword [esp + 0x10]
push edx
push 1
push 0
push eax
push edi
call dword [sym.imp.advapi32.dll_RegSetValueExA]
pop esi
pop edi
ret 8

Function at 0x401390
Capabilities:
Enumerate gui resources

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
push 0
push 0x401280
mov dword [0x47af00], eax
mov dword [0x47af04], ecx
call dword [sym.imp.user32.dll_EnumWindows]
mov eax, dword [0x47af0c]
test eax, eax
je 0x4013d6
push 0
push 0x401300
push eax
call dword [sym.imp.user32.dll_EnumChildWindows]
mov eax, dword [0x47af10]
test eax, eax
jne 0x4013f3
mov eax, dword [0x47af0c]
ret
call dword [sym.imp.kernel32.dll_GetLastError]
mov edx, dword [0x47b66c]
push eax
push 0x45a970
push edx
call fcn.004020b0
add esp, 0xc
xor eax, eax
ret
Function at 0x4016b0
Capabilities:
Capture screenshot

Disassembly:
push 0xffffffffffffffff
push 0x456f00
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebp
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0xc]
call fcn.0044b19a
lea ecx, [esp + 0x1c]
mov dword [esp + 0x34], 0
call fcn.0044b19a
push 0
mov byte [esp + 0x38], 1
call dword [sym.imp.user32.dll_GetDC]
push eax
call fcn.0044b628
mov ebp, dword [sym.imp.gdi32.dll_GetDeviceCaps]
mov edi, eax
mov eax, dword [edi + 8]
push 8
push eax
call ebp
mov dword [esi + 0xd0], eax
mov ecx, dword [edi + 8]
push 0xa
push ecx
call ebp
mov edi, dword [sym.imp.gdi32.dll_CreateCompatibleDC]
push 0
mov dword [esi + 0xd4], eax
call edi
push eax
lea ecx, [esp + 0x10]
call fcn.0044b636
mov eax, dword [esp + 0x3c]
test eax, eax
mov ebp, dword [sym.imp.gdi32.dll_SelectObject]
je 0x401748
mov edx, dword [esp + 0x10]
push eax
push edx
call ebp
mov eax, dword [esp + 0x10]
push eax
call edi
push eax
lea ecx, [esp + 0x20]
call fcn.0044b636
lea edi, [esi + 0x70]
mov ecx, edi
call fcn.0044b98a
mov eax, dword [esi + 0xd4]
mov ecx, dword [esi + 0xd0]
push eax
push ecx
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.gdi32.dll_CreateCompatibleBitmap]
push eax
mov ecx, edi
call fcn.0044b933
test edi, edi
je 0x401797
mov edi, dword [edi + 4]
test edi, edi
je 0x401797
mov edx, dword [esp + 0x20]
push edi
push edx
call ebp
mov ecx, dword [esp + 0x10]
mov eax, dword [esi + 0xd4]
mov esi, dword [esi + 0xd0]
mov edx, dword [esp + 0x20]
push 0xcc0020
push 0
push 0
push ecx
push eax
push esi
push 0
push 0
push edx
call dword [sym.imp.gdi32.dll_BitBlt]
lea ecx, [esp + 0xc]
call fcn.0044b69e
lea ecx, [esp + 0x1c]
call fcn.0044b69e
lea ecx, [esp + 0x1c]
mov byte [esp + 0x34], 0
call fcn.0044b6b4
lea ecx, [esp + 0xc]
mov dword [esp + 0x34], 0xffffffff
call fcn.0044b6b4
mov ecx, dword [esp + 0x2c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x2c
ret 4
Function at 0x403d80
Capabilities:
Capture screenshot

Disassembly:
sub esp, 0x24
push ebx
mov ebx, dword [esp + 0x2c]
push ebx
mov dword [esp + 0x10], ecx
call dword [sym.imp.user32.dll_IsRectEmpty]
test eax, eax
je 0x403da0
xor eax, eax
pop ebx
add esp, 0x24
ret 4
push ebp
push esi
push edi
push 0
push 0
push 0
push 0x45aec4
call dword [sym.imp.gdi32.dll_CreateDCA]
mov esi, eax
push esi
call dword [sym.imp.gdi32.dll_CreateCompatibleDC]
mov edi, dword [ebx]
mov ebp, dword [ebx + 8]
mov dword [esp + 0x14], eax
mov eax, dword [ebx + 4]
mov ebx, dword [ebx + 0xc]
push 8
push esi
mov dword [esp + 0x40], eax
call dword [sym.imp.gdi32.dll_GetDeviceCaps]
push 0xa
push esi
mov dword [esp + 0x18], eax
call dword [sym.imp.gdi32.dll_GetDeviceCaps]
test edi, edi
jge 0x403dec
xor edi, edi
mov ecx, dword [esp + 0x38]
test ecx, ecx
jge 0x403dfc
mov dword [esp + 0x38], 0
mov ecx, dword [esp + 0x10]
cmp ebp, ecx
jle 0x403e06
mov ebp, ecx
cmp ebx, eax
jle 0x403e0c
mov ebx, eax
sub ebx, dword [esp + 0x38]
push ebx
sub ebp, edi
push ebp
push esi
mov dword [esp + 0x1c], ebx
call dword [sym.imp.gdi32.dll_CreateCompatibleBitmap]
mov ebx, dword [esp + 0x14]
push eax
push ebx
call dword [sym.imp.gdi32.dll_SelectObject]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x10]
push 0xcc0020
push ecx
push edi
push esi
push edx
push ebp
push 0
push 0
push ebx
mov dword [esp + 0x38], eax
call dword [sym.imp.gdi32.dll_BitBlt]
mov eax, dword [esp + 0x18]
cmp byte [eax], 0
je 0x403eda
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.user32.dll_GetCursorPos]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
push edx
push eax
call fcn.00403cf0
add esp, 8
lea ecx, [esp + 0x20]
mov ebp, eax
push ecx
push ebp
call dword [sym.imp.user32.dll_GetIconInfo]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x18]
lea edx, [eax + edi]
mov edi, dword [esp + 0x1c]
sub ecx, edx
mov edx, dword [esp + 0x38]
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x28]
push ecx
push eax
mov eax, dword [0x47b66c]
add edx, ecx
sub edi, edx
push 0x45aeac
push eax
mov dword [esp + 0x2c], edi
call fcn.004020b0
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
add esp, 0x10
push 3
push 0
push 0
push 0
push 0
push ebp
push ecx
push edx
push ebx
call dword [sym.imp.user32.dll_DrawIconEx]
mov eax, dword [esp + 0x14]
push eax
push ebx
call dword [sym.imp.gdi32.dll_SelectObject]
push esi
mov edi, eax
call dword [sym.imp.user32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.user32.dll_ReleaseDC]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 4
Function at 0x4046b0
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 0x4046c9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.kernel32.dll_LockResource_1]
mov esi, eax
test esi, esi
jne 0x4046dd
pop esi
pop edi
xor eax, eax
pop ebx
ret
push edi
push ebx
call dword [sym.imp.kernel32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x4046fe
cmp esi, eax
jae 0x4046d7
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4046f0
cmp esi, eax
jae 0x4046d7
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x411770
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
mov ebx, ecx
mov ecx, dword [ebx + 4]
push edi
xor edi, edi
cmp ecx, edi
je 0x411785
mov eax, dword [ecx]
push 1
call dword [eax]
mov eax, dword [ebx + 8]
cmp eax, edi
mov dword [ebx + 4], edi
je 0x4117a3
push eax
call dword [sym.imp.kernel32.dll_GlobalUnlock]
mov ecx, dword [ebx + 8]
push ecx
call dword [sym.imp.kernel32.dll_GlobalFree]
mov dword [ebx + 8], edi
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
mov ebp, dword [esp + 0x1c]
push edx
push eax
push ebp
call dword [sym.imp.kernel32.dll_FindResourceA]
mov esi, eax
cmp esi, edi
je 0x411894
push esi
push ebp
call dword [sym.imp.kernel32.dll_SizeofResource]
mov edi, eax
test edi, edi
je 0x411894
push esi
push ebp
call dword [sym.imp.kernel32.dll_LoadResource]
push eax
call dword [sym.imp.kernel32.dll_LockResource_1]
mov esi, eax
xor ebp, ebp
cmp esi, ebp
je 0x411894
push edi
push 2
call dword [sym.imp.kernel32.dll_GlobalAlloc]
cmp eax, ebp
mov dword [ebx + 8], eax
je 0x411894
push eax
call dword [sym.imp.kernel32.dll_GlobalLock]
cmp eax, ebp
je 0x411887
mov ecx, edi
mov edx, ecx
shr ecx, 2
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
lea eax, [esp + 0x18]
push eax
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 8]
push ebp
push ecx
mov dword [esp + 0x24], ebp
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x41187d
mov edx, dword [esp + 0x18]
push ebp
push edx
call fcn.00411640
mov dword [ebx + 4], eax
mov eax, dword [esp + 0x20]
mov ecx, dword [eax]
add esp, 8
push eax
call dword [ecx + 8]
mov eax, dword [ebx + 4]
cmp eax, ebp
je 0x41187d
mov ecx, dword [eax + 8]
cmp ecx, ebp
mov dword [eax + 8], ebp
jne 0x41186d
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
ret 0xc
mov ecx, dword [ebx + 4]
cmp ecx, ebp
je 0x41187a
mov edx, dword [ecx]
push 1
call dword [edx]
mov dword [ebx + 4], ebp
mov eax, dword [ebx + 8]
push eax
call dword [sym.imp.kernel32.dll_GlobalUnlock]
mov ecx, dword [ebx + 8]
push ecx
call dword [sym.imp.kernel32.dll_GlobalFree]
mov dword [ebx + 8], ebp
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret 0xc
Function at 0x41a820
Capabilities:
Check os version

Disassembly:
sub esp, 0x384
mov eax, dword [0x4797a0]
xor eax, dword [esp + 0x384]
push ebx
push esi
mov dword [esp + 0x388], eax
mov esi, ecx
mov ecx, dword [0x4781d0]
mov eax, 0x64
cmp ecx, eax
push edi
jle 0x41a852
mov dword [0x4781d0], eax
xor ebx, ebx
push 0x2d
mov dword [esi + 0x50], ebx
mov dword [esi + 0x54], ebx
mov dword [esi + 0x58], 0x12
call dword [sym.imp.user32.dll_GetSystemMetrics]
mov dword [esi + 0x5c], eax
or eax, 0xffffffff
mov dword [esi + 0x60], eax
mov dword [esi + 0x64], eax
lea eax, [esp + 0xc]
push eax
mov dword [esi + 0x134], ebx
mov dword [esi + 0xc0], ebx
mov dword [esi + 0xc4], ebx
mov dword [esi + 0x138], ebx
mov dword [esp + 0x10], 0x94
call dword [sym.imp.kernel32.dll_GetVersionExA]
cmp dword [esp + 0x1c], 2
jne 0x41a8c0
mov eax, dword [esp + 0x10]
cmp eax, 5
ja 0x41a8b9
jne 0x41a8c0
cmp dword [esp + 0x14], 1
jb 0x41a8c0
mov eax, 1
jmp 0x41a8c2
xor eax, eax
cmp eax, ebx
lea ecx, [esi + 0x140]
push ebp
mov ebp, dword [sym.imp.user32.dll_SystemParametersInfoA]
mov dword [esi + 0x13c], eax
mov dword [ecx], ebx
je 0x41a8e5
push ebx
push ecx
push ebx
push 0x1022
call ebp
mov edi, dword [sym.imp.user32.dll_GetSysColor]
push 4
call edi
push 0xd
mov dword [esi + 0x144], eax
call edi
mov dword [esi + 0x148], eax
mov dword [esi + 0x14c], eax
cmp dword [esi + 0x13c], ebx
je 0x41a917
push 0x1d
call edi
mov dword [esi + 0x14c], eax
push 0xe
call edi
push 7
mov dword [esi + 0x150], eax
call edi
movzx ecx, byte [esi + 0x146]
imul ecx, ecx, 0xcf
mov dword [esi + 0x154], eax
movzx eax, byte [esi + 0x14a]
lea edx, [eax + eax*2]
movzx eax, byte [esi + 0x149]
shl edx, 4
add ecx, edx
sar ecx, 8
xor edx, edx
mov dh, cl
movzx ecx, byte [esi + 0x145]
imul ecx, ecx, 0xcf
lea eax, [eax + eax*2]
shl eax, 4
add ecx, eax
movzx eax, byte [esi + 0x148]
mov dl, ch
movzx ecx, byte [esi + 0x144]
imul ecx, ecx, 0xcf
lea eax, [eax + eax*2]
shl eax, 4
add ecx, eax
mov eax, dword [esi + 0x5c]
sar ecx, 8
shl edx, 8
movzx ecx, cl
or edx, ecx
mov dword [esi + 0x158], edx
mov edx, dword [esi + 0x58]
shl eax, 1
sub edx, eax
sub edx, 2
cmp edx, 5
jge 0x41a9b1
add eax, 7
mov dword [esi + 0x58], eax
push ebx
lea eax, [esp + 0x240]
push eax
push 0x154
push 0x29
mov dword [esp + 0x24c], 0x154
call ebp
lea ecx, [esp + 0x354]
push ecx
call dword [sym.imp.gdi32.dll_CreateFontIndirectA]
push eax
lea ecx, [esi + 0xb0]
call fcn.0044b933
mov edi, dword [0x4781d0]
cmp edi, ebx
mov word [esp + 0xa4], 0x300
mov word [esp + 0xa6], di
pop ebp
jle 0x41aa30
mov ecx, 0x475930
lea eax, [esp + 0xa5]
mov dl, byte [ecx]
mov byte [eax - 1], dl
mov dl, byte [ecx + 1]
mov byte [eax], dl
mov dl, byte [ecx + 2]
mov byte [eax + 1], dl
mov byte [eax + 2], bl
add ecx, 0x104
add eax, 4
dec edi
jne 0x41aa11
lea eax, [esp + 0xa0]
push eax
call dword [sym.imp.gdi32.dll_CreatePalette]
push eax
lea ecx, [esi + 0xb8]
call fcn.0044b933
mov ecx, dword [esp + 0x38c]
xor ecx, dword [esp + 0x390]
pop edi
pop esi
pop ebx
add esp, 0x384
jmp fcn.004311b5