joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1008610c
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 0x10086122
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 0x10086133
mov eax, edx
pop edx
pop ecx
pop esi
mov esp, ebp
mov ebp, dword [esp]
add esp, 4
push 0x54
call fcn.10086174
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 0x100884e0
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 0x10088429
add ebx, 0
push ecx
call 0x1008843e
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, 0x73557283
sub ebx, dword [0x73576ac2]
mov dword [ebp - 8], ebx
xchg esi, eax
push 0x73576ab2
call fcn.10083f08
xchg esi, eax
add esi, ebx
mov edx, dword [ebp + 8]
sub edx, ebx
call fcn.10083416
mov edi, eax
mov eax, dword [esi + 8]
xor dword [esp - 0x69], edx
xor ebx, 0
xor eax, edi
cmp edx, eax
jb 0x1008859c
mov eax, dword [esi + 0xc]
xor eax, edi
cmp edx, eax
ja 0x1008859c
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 0x10088553
mov eax, 1
lock xchg dword [0x73576abe], eax
push 0x3dd1fc71
call 0x100884e0
push esi
add esp, 8
cmp eax, 0
jne 0x100884c9
push edx
mov eax, edi
xor byte [esi + edx], al
inc edx
dec ecx
jne 0x100884ef
pop edx
mov eax, dword [esi + 0x14]
xor eax, edi
js 0x10088504
cmp ecx, edx
cmp eax, 0
je 0x10088529
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 0x10088513
mov eax, 1
mov dword [esp - 0x1a], eax
push 0x8ae1b7eb
call fcn.10088542
dec eax
loope 0x10088545
invalid
xor eax, edi
mov dword [esi], eax
mov dword [0x73576abe], 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 0x10088579
xor edx, 0
add esp, 4
pop edi
pop ecx
pop edx
pop ebx
pop eax
leave
jmp 0x1008858e
jmp 0x10088599
ret 4
mov eax, dword [esi + 4]
xor eax, edi
add esi, eax
jmp 0x10088487
Function at 0x1008f601
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 0x1008f8d7
push ebp
push 0xffffffffffffffff
sub esp, 0x32
mov dword [esp + 0x2e], 0x73563736
add esp, 0x2e
sub esp, 4
mov dword [esp], 0x7355a6fc
push 0xffffffffffffffff
call fcn.10086801
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 0x1008f66b
and eax, eax
xchg edx, eax
mov edx, dword [ecx + edx - 0x75d46dac]
call fcn.1008f683
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 0x1008f8cb
xor eax, 0
ret 4
xor ecx, ecx
jmp 0x1008f89f
Function at 0x1009f0d1
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 0x1009f0f3
mov ebx, dword [eax + 0x3c]
cmp ebx, 0xf08
ja 0x1009f0f3
add ebx, eax
cmp dword [ebx], 0x4550
jne 0x1009f0f3
ret
cmp word [ebx + 4], 0x14c
jne 0x1009f0f3
test word [ebx + 0x16], 2
je 0x1009f0f3
test word [ebx + 0x16], 0x100
je 0x1009f0f3
cmp word [ebx + 0x18], 0x10b
jne 0x1009f0f3
mov edx, dword [ebx + 0x78]
cmp edx, 0
je 0x1009f0f3
lea edx, [eax + edx]
mov edx, dword [edx + 0xc]
push 0xe1641d81
call 0x1009f17f
adc al, 0xbd
mov dl, 3
cmp byte [ecx + 0x75ac5ffe], 0xa
jnp 0x1009f113
int1
salc
push edi
inc esp
add esp, 8
lea edx, [edx + eax]
mov ebx, eax
push edx
call fcn.1008605e
xchg ebx, eax
cmp ebx, dword [ebp + 0xc]
jne 0x1009f0f3
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 0x1009f17f
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 0x1009f0f3
mov ebx, dword [eax + 0x3c]
cmp ebx, 0xf08
ja 0x1009f0f3
add ebx, eax
cmp dword [ebx], 0x4550
jne 0x1009f0f3
ret
cmp word [ebx + 4], 0x14c
jne 0x1009f0f3
test word [ebx + 0x16], 2
je 0x1009f0f3
test word [ebx + 0x16], 0x100
je 0x1009f0f3
cmp word [ebx + 0x18], 0x10b
jne 0x1009f0f3
mov edx, dword [ebx + 0x78]
cmp edx, 0
je 0x1009f0f3
lea edx, [eax + edx]
mov edx, dword [edx + 0xc]
push 0xe1641d81
call 0x1009f17f
adc al, 0xbd
mov dl, 3
cmp byte [ecx + 0x75ac5ffe], 0xa
jnp 0x1009f113
int1
salc
push edi
inc esp
add esp, 8
lea edx, [edx + eax]
mov ebx, eax
push edx
call fcn.1008605e
xchg ebx, eax
cmp ebx, dword [ebp + 0xc]
jne 0x1009f0f3
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 0x1009f236
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0
push ecx
xor ecx, ecx
jne 0x1009f28f
mov ecx, esp
xor dword [ecx - 0x55], edi
pop ecx
call 0x1009f236
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
call 0x1009f245
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 0x104a4ee8
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 0x1009f296
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.1008610c
cmp eax, dword [ebp + 0xc]
pop eax
je 0x1009f335
add edi, 4
add eax, 2
dec ecx
jne 0x1009f27b
call 0x1009f2e2
loope 0x1009f2d8
invalid
sbb esi, ebx
mov edi, 0xdbead58c
js 0x1009f332
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 0x1009f343
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 0x1009f2f6
cmp eax, ecx
ja 0x1009f2f6
mov esi, eax
lea edi, [ebp - 0x100]
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
js 0x1009f380
or ecx, ecx
xor dword [esp - 0x6b], eax
cmp al, 0x2e
jne 0x1009f376
lea edi, [ebp - 0x100]
push 0x100
push edi
push esi
call fcn.100865eb
lea esp, [esp - 0x60]
mov dword [esp + 0x5c], edi
lea esp, [esp + 0x5c]
Function at 0x1009f245
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0
push ecx
xor ecx, ecx
jne 0x1009f28f
mov ecx, esp
xor dword [ecx - 0x55], edi
pop ecx
call 0x1009f236
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
call 0x1009f245
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 0x104a4ee8
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 0x1009f296
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.1008610c
cmp eax, dword [ebp + 0xc]
pop eax
je 0x1009f335
add edi, 4
add eax, 2
dec ecx
jne 0x1009f27b
call 0x1009f2e2
loope 0x1009f2d8
invalid
sbb esi, ebx
mov edi, 0xdbead58c
js 0x1009f332
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 0x1009f343
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 0x1009f2f6
cmp eax, ecx
ja 0x1009f2f6
mov esi, eax
lea edi, [ebp - 0x100]
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
js 0x1009f380
or ecx, ecx
xor dword [esp - 0x6b], eax
cmp al, 0x2e
jne 0x1009f376
lea edi, [ebp - 0x100]
push 0x100
push edi
push esi
call fcn.100865eb
lea esp, [esp - 0x60]
mov dword [esp + 0x5c], edi
lea esp, [esp + 0x5c]
Function at 0x4024f0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x74
mov dword [ebp - 8], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x28], str.tcmrprwzkydkl
lea ecx, [ebp - 0x5c]
call fcn.00402750
lea ecx, [ebp - 0x44]
call fcn.00402750
lea ecx, [ebp - 0x74]
call fcn.00402750
push 0x2faf080
call fcn.0040609c
add esp, 4
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x402571
mov dword [ebp - 0x14], 0
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x1c], ecx
jmp 0x402725
mov dword [ebp - 0x24], 0
lea edx, [ebp - 0x24]
push edx
mov edx, dword [ebp - 0xc]
add edx, 0x2faf080
mov ecx, dword [ebp - 0xc]
call fcn.00405100
mov dword [ebp - 8], 0
jmp 0x40259f
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0x1736
jae 0x4025f1
mov ecx, dword [ebp - 8]
mov dl, byte [ecx + 0x4275c0]
mov byte [ebp - 1], dl
mov eax, dword [ebp - 0x28]
add eax, dword [ebp - 0x10]
mov cl, byte [eax]
mov byte [ebp - 2], cl
movzx edx, byte [ebp - 1]
sar edx, 3
movzx eax, byte [ebp - 1]
shl eax, 5
or edx, eax
movzx ecx, byte [ebp - 2]
xor edx, ecx
mov eax, dword [ebp - 8]
mov byte [eax + 0x4275c0], dl
mov eax, dword [ebp - 0x10]
add eax, 1
cdq
mov ecx, 0xd
idiv ecx
mov dword [ebp - 0x10], edx
jmp 0x402596
push 0x40
push 0x3000
push 0x1736
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x18], eax
push 0x1736
push 0x4275c0
mov edx, dword [ebp - 0x18]
push edx
call fcn.00407be0
add esp, 0xc
mov eax, dword [ebp - 0x18]
jmp eax
lea ecx, [ebp - 0x74]
call fcn.00402770
lea ecx, [ebp - 0x44]
call fcn.00402770
lea ecx, [ebp - 0x5c]
call fcn.00402770
mov eax, dword [ebp - 0x1c]
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4031b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 8]
push esi
push edi
cmp ecx, 0xffffffff
jne 0x4031d1
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebx + 0x20]
mov edx, dword [eax]
test edx, edx
je 0x403203
mov esi, dword [ebx + 0x30]
mov edi, dword [esi]
lea eax, [edi + edx]
cmp edx, eax
jae 0x403203
lea eax, [edi - 1]
mov dword [esi], eax
mov ecx, dword [ebx + 0x20]
mov edx, dword [ecx]
lea eax, [edx + 1]
mov dword [ecx], eax
mov eax, dword [ebp + 8]
mov byte [edx], al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp dword [ebx + 0x50], 0
jne 0x403215
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov esi, dword [ebx + 0xc]
lea eax, [ebx + 0x44]
cmp dword [esi], eax
jne 0x403236
mov ecx, dword [ebx + 0x38]
mov edx, dword [ebx + 0x3c]
mov dword [esi], ecx
sub edx, ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [ebx + 0x2c]
mov ecx, dword [ebp + 8]
mov dword [eax], edx
cmp dword [ebx + 0x40], 0
jne 0x40325f
push dword [ebx + 0x50]
movsx eax, cl
push eax
call fcn.004063a7
or ecx, 0xffffffff
add esp, 8
cmp eax, ecx
cmovne ecx, dword [ebp + 8]
mov eax, ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov byte [esp + 0xf], cl
lea eax, [esp + 0x18]
mov ecx, 0xf
mov byte [esp + 0x18], 0
xorps xmm0, xmm0
mov dword [esp + 0x2c], ecx
cmp ecx, 0x10
movq qword [esp + 0x18], xmm0
mov dword [esp + 0x28], 8
cmovae eax, dword [esp + 0x18]
mov byte [eax + 8], 0
cmp dword [esp + 0x2c], 0x10
lea eax, [esp + 0x10]
mov esi, dword [ebx + 0x40]
lea ecx, [esp + 0x18]
cmovae ecx, dword [esp + 0x18]
lea edx, [esp + 0x18]
cmovae edx, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x2c]
mov edi, dword [esi]
add eax, ecx
push eax
push edx
lea eax, [esp + 0x20]
mov ecx, esi
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x23]
push eax
lea eax, [ebx + 0x48]
push eax
call dword [edi + 0x1c]
test eax, eax
js 0x40336d
cmp eax, 1
jg 0x40334a
mov edi, dword [esp + 0x2c]
lea eax, [esp + 0x18]
mov ecx, dword [esp + 0x18]
cmp edi, 0x10
mov esi, dword [esp + 0x10]
cmovae eax, ecx
sub esi, eax
je 0x403317
push dword [ebx + 0x50]
cmp edi, 0x10
lea eax, [esp + 0x1c]
push esi
cmovae eax, ecx
push 1
push eax
call fcn.0040784a
add esp, 0x10
cmp esi, eax
jne 0x40336d
lea eax, [esp + 0xf]
mov byte [ebx + 0x45], 1
cmp dword [esp + 0x14], eax
jne 0x403345
test esi, esi
jne 0x403292
cmp dword [esp + 0x28], 0x20
jae 0x40336d
push esi
push 8
lea ecx, [esp + 0x20]
call fcn.00403fc0
jmp 0x403292
mov ebx, dword [ebp + 8]
jmp 0x403370
cmp eax, 3
jne 0x40336d
push dword [ebx + 0x50]
movsx eax, byte [esp + 0x13]
push eax
call fcn.004063a7
or ecx, 0xffffffff
add esp, 8
cmp eax, ecx
cmovne ecx, dword [ebp + 8]
mov ebx, ecx
jmp 0x403370
or ebx, 0xffffffff
cmp dword [esp + 0x2c], 0x10
jb 0x403383
push dword [esp + 0x18]
call fcn.0040766d
add esp, 4
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4048e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x40], 0
je 0x404a09
cmp byte [ebx + 0x45], 0
je 0x404a09
mov eax, dword [ebx]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
jne 0x404917
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, 0xf
mov byte [esp + 0x10], 0
xorps xmm0, xmm0
mov dword [esp + 0x24], ecx
cmp ecx, 0x10
movq qword [esp + 0x10], xmm0
lea eax, [esp + 0x10]
mov dword [esp + 0x20], 8
cmovae eax, dword [esp + 0x10]
mov byte [eax + 8], 0
jmp 0x404950
cmp dword [esp + 0x24], 0x10
lea eax, [esp + 0xc]
mov ecx, dword [ebx + 0x40]
lea edi, [esp + 0x10]
cmovae edi, dword [esp + 0x10]
lea esi, [esp + 0x10]
cmovae esi, dword [esp + 0x10]
push eax
mov eax, dword [esp + 0x24]
mov edx, dword [ecx]
add eax, edi
push eax
push esi
lea eax, [ebx + 0x48]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x404991
dec eax
je 0x404995
sub eax, 2
je 0x4049eb
xor bl, bl
jmp 0x4049ed
mov byte [ebx + 0x45], 0
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0x10]
mov edx, dword [esp + 0x10]
cmp ecx, 0x10
mov esi, dword [esp + 0xc]
cmovae eax, edx
sub esi, eax
je 0x4049cc
push dword [ebx + 0x50]
cmp ecx, 0x10
lea eax, [esp + 0x14]
push esi
cmovae eax, edx
push 1
push eax
call fcn.0040784a
add esp, 0x10
cmp esi, eax
jne 0x40498d
cmp byte [ebx + 0x45], 0
je 0x4049eb
test esi, esi
jne 0x404950
push esi
push 8
lea ecx, [esp + 0x18]
call fcn.00403fc0
jmp 0x404950
mov bl, 1
cmp dword [esp + 0x24], 0x10
jb 0x404a00
push dword [esp + 0x10]
call fcn.0040766d
add esp, 4
mov al, bl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4155d8
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4265dc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.0040a805
mov dword [ebp - 0x14], eax
cmp dword [0x42a48c], esi
jne 0x4156cb
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x415658
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x4157ab
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x4157ab
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4157ab
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x42a48c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x42a490], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x42a494], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x42a49c], eax
test eax, eax
je 0x4156c8
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x42a498], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x4156f0
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4156e3
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x415705
push 4
pop eax
jmp 0x4157ad
cmp dword [ebp - 0x14], esi
je 0x415705
push dword [0x42a48c]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x4156ea
mov eax, dword [0x42a498]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x415763
cmp dword [0x42a49c], edi
je 0x415763
push eax
call ebx
push dword [0x42a49c]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x415763
test eax, eax
je 0x415763
call ecx
test eax, eax
je 0x415758
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x415758
test byte [ebp - 8], 1
jne 0x415763
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x415793
mov eax, dword [0x42a490]
cmp eax, edi
je 0x415790
push eax
call ebx
test eax, eax
je 0x415790
call eax
mov esi, eax
test esi, esi
je 0x415790
mov eax, dword [0x42a494]
cmp eax, edi
je 0x415790
push eax
call ebx
test eax, eax
je 0x415790
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x42a48c]
call ebx
test eax, eax
je 0x4157ab
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x4157ad
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004082bb
mov esp, ebp
pop ebp
ret
Function at 0x401465
Capabilities:
Encode data using xor

Disassembly:
jmp 0x418f56
push esi
xor esi, esi
cmp dword [esp + 0xc], esi
jbe 0x419021
push ebx
push ebp
push edi
mov edi, dword [esp + 0x14]
mov ebx, str.1110
mov ebp, 0x7512a8
push ebx
push ebp
call fcn.004032a6
push eax
call fcn.00406ff5
xor byte [esi + edi], 0xec
push ebx
push ebp
call fcn.004032a6
push eax
call fcn.00406ff5
add byte [esi + edi], 0x89
push ebx
push ebp
call fcn.004032a6
push eax
call fcn.00406ff5
add byte [esi + edi], 0xcf
push ebx
push ebp
call fcn.004032a6
push eax
call fcn.00406ff5
xor byte [esi + edi], 0x5c
push ebx
push ebp
call fcn.004032a6
push eax
call fcn.00406ff5
add byte [esi + edi], 0xaf
push ebx
push ebp
call fcn.004032a6
add esp, 0x44
push eax
call fcn.00406ff5
add byte [esi + edi], 0x65
push ebx
push ebp
call fcn.004032a6
push eax
call fcn.00406ff5
add byte [esi + edi], 0xb5
push ebx
push ebp
call fcn.004032a6
push eax
call fcn.00406ff5
add byte [esi + edi], 0x37
push ebx
push ebp
call fcn.004032a6
push eax
call fcn.00406ff5
xor byte [esi + edi], 0x97
add esp, 0x28
inc esi
cmp esi, dword [esp + 0x18]
jb 0x418f74
pop edi
pop ebp
pop ebx
pop esi
ret

Function at 0x403c7e
Capabilities:
Terminate process

Disassembly:
jmp 0x45aa49
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x45aa5a
push 5
pop ecx
int 0x29
push esi
push 1
mov esi, 0xc0000417
push esi
push 2
call fcn.0040665e
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop esi
ret

Function at 0x403e09
Capabilities:
Query environment variable

Disassembly:
jmp 0x4a45a2
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x4a45b3
pop esi
ret
push ebx
push edi
push esi
call fcn.004a4489
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0040488b
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4a45db
push ebx
push esi
push edi
call fcn.004063fc
add esp, 0xc
push 0
call fcn.00407185
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x4064d3
Capabilities:
Parse pe header

Disassembly:
jmp 0x44987f
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4498be
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4498be
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4498be
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4498be
cmp dword [ecx + 0x74], 0xe
jbe 0x4498be
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret