joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43c626
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x45e528]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x43c666
cmp byte [ebx], 0xa
jne 0x43c666
or byte [edi + eax + 0x28], 4
jmp 0x43c66b
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x43c76a
mov dl, byte [eax]
cmp dl, 0x1a
je 0x43c74d
inc eax
cmp dl, 0xd
je 0x43c697
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x43c6bd
cmp eax, ecx
jae 0x43c6cb
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x43c67f
jmp 0x43c76a
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x43c748
cmp dword [ebp - 0x10], 0
je 0x43c748
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x45e528]
test byte [eax + edi + 0x28], 0x48
je 0x43c722
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x43c70d
mov byte [esi], dl
jmp 0x43c71e
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x45e528]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x43c76a
cmp byte [ebp - 1], 0xa
jne 0x43c731
cmp esi, ebx
jne 0x43c731
mov byte [esi], 0xa
jmp 0x43c769
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0043d1ac
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x43c76a
mov byte [esi], 0xd
jmp 0x43c769
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x45e528]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x43c767
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x43c76a
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x43c773
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x45e528]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x43c7b9
cmp word [ebx], dx
jne 0x43c7b9
or byte [eax + edi + 0x28], 4
jmp 0x43c7be
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x43c921
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x43c901
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x43c7ff
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x43c835
cmp eax, edx
jae 0x43c843
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x43c7da
jmp 0x43c921
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x43c8fc
cmp dword [ebp - 0x18], 0
je 0x43c8fc
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x45e528]
test byte [eax + edi + 0x28], 0x48
je 0x43c8d2
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x43c896
mov word [esi], cx
jmp 0x43c8cd
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x45e528]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x45e528]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x45e528]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x43c921
pop eax
cmp word [ebp - 4], ax
jne 0x43c8e2
cmp esi, ebx
jne 0x43c8e2
mov word [esi], ax
jmp 0x43c91e
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0043d1ac
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x43c921
push 0xd
pop eax
jmp 0x43c8dd
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x45e528]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x43c91b
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x43c921
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x43f8c8
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x45c068]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x43f913
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0043fa63
test al, al
jne 0x43f90d
sub edx, 2
cmp edx, edi
jne 0x43f8f3
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x43f935
lea eax, [edi + 2]
cmp edx, eax
je 0x43f935
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0043f814
add esp, 0x10
jmp 0x43fa2f
push esi
lea ecx, [ebp - 0x255]
call fcn.0043fa63
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x43f978
push dword [ebp - 0x25c]
jmp 0x43f925
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x43f9b5
cmp word [ebp - 0x226], 0
je 0x43f9d6
cmp word [ebp - 0x226], ax
jne 0x43f9b5
cmp word [ebp - 0x224], 0
je 0x43f9d6
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0043f814
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x43fa22
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x43f98f
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x43fa0a
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x43fa2f
push 0x43f644
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00446430
add esp, 0x10
jmp 0x43f9ff
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00424178
leave
ret

Function at 0x440345
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x440356
pop esi
ret
push ebx
push edi
push esi
call fcn.0044030e
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00438a8c
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x44037e
push ebx
push esi
push edi
call fcn.00425370
add esp, 0xc
push 0
call fcn.00438a52
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x44074e
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00440393
Function at 0x442d4e
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.004385e0
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x442dbd
cmp esi, dword [ebp - 4]
je 0x442db8
cmp dword [ebp + 0xc], 0
je 0x442db8
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x442d95
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.004428a0
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x442dbf
xor eax, eax
inc eax
jmp 0x442dbf
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x442e24
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x45c068]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.004385e0
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.004385e0
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x442e9b
cmp word [ecx], dx
je 0x442e9b
mov eax, dword [0x4505ac]
push edi
dec eax
push eax
push 0x450498
call fcn.00442dc3
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x442f0e
cmp word [eax], dx
je 0x442f0e
mov eax, dword [edi]
test eax, eax
je 0x442ebf
cmp word [eax], dx
je 0x442ebf
lea eax, [ebp - 0x10]
push eax
call fcn.004427a6
jmp 0x442ec8
lea eax, [ebp - 0x10]
push eax
call fcn.00442841
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x442f38
mov eax, dword [0x450494]
push dword [ebp - 0x14]
dec eax
push eax
push 0x450188
call fcn.00442dc3
add esp, 0xc
test al, al
je 0x442f38
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x442f03
cmp word [eax], di
je 0x442f03
lea eax, [ebp - 0x10]
push eax
call fcn.004427a6
pop ecx
jmp 0x442f3a
lea eax, [ebp - 0x10]
push eax
call fcn.00442841
jmp 0x442f00
mov eax, dword [edi]
test eax, eax
je 0x442f25
cmp word [eax], dx
je 0x442f25
lea eax, [ebp - 0x10]
push eax
call fcn.0044275b
pop ecx
jmp 0x442f38
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x443003
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.00442c48
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x443003
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x443003
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x443003
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x442f90
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.0043b854
test ebx, ebx
je 0x442ffe
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.0043b854
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x443003
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x443003
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.00446a9d
add esp, 0x10
xor eax, eax
inc eax
jmp 0x443005
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00424178
leave
ret
Function at 0x447135
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.004470b1
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x4472a4
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x4472a4
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x447259
jg 0x447191
test eax, eax
je 0x44724f
push 1
push 0x1000
call fcn.00438f4b
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x4471b4
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x447246
push 0x8000
push ebx
call fcn.0043627a
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x4471dd
jg 0x4471d8
cmp ecx, 0x1000
jb 0x4471dd
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.0043a97f
add esp, 0x10
cmp eax, 0xffffffff
je 0x447222
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x4471d8
jl 0x447209
test ecx, ecx
jne 0x4471ca
push dword [ebp - 0xc]
push ebx
call fcn.0043627a
push esi
call fcn.00438a52
add esp, 0xc
xor ebx, ebx
jmp 0x4472b2
cmp byte [edi + 0x24], 0
je 0x447239
cmp dword [edi + 0x20], 5
jne 0x447239
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x447244
mov ebx, dword [edi + 0x18]
jmp 0x447246
xor ebx, ebx
push esi
call fcn.00438a52
pop ecx
jmp 0x4472b2
test ecx, ecx
jg 0x44721b
jl 0x447259
test eax, eax
jae 0x44721b
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0043d1ac
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x447279
cmp byte [edi + 0x1c], 0
je 0x44721b
jmp 0x4472aa
push ebx
call fcn.00440d1f
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x44721b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x4472b2
cmp byte [edi + 0x1c], 0
je 0x4472af
mov ebx, dword [edi + 0x18]
jmp 0x4472b2
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.0043d1ac
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x448390
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4483bd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4483bd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4010e2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x437004]
jne 0x4010ec
repz ret
jmp fcn.004018b5

Function at 0x404ecb
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x437004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00402a67
and dword [ebp - 0x14], 0
cmp dword [0x439ca0], 0
mov dword [ebp - 0x18], eax
jne 0x404f7e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x405026
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x405026
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x439ca0], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x439ca4], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x439ca8], eax
call edi
push eax
call esi
mov dword [0x439cb0], eax
test eax, eax
je 0x404f7e
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x439cac], eax
mov eax, dword [0x439cac]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x404fd7
cmp dword [0x439cb0], ecx
je 0x404fd7
push eax
call esi
push dword [0x439cb0]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x404fd7
test ebx, ebx
je 0x404fd7
call edi
test eax, eax
je 0x404fce
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x404fce
test byte [ebp - 8], 1
jne 0x404fd7
or dword [ebp + 0x10], 0x200000
jmp 0x40500a
mov eax, dword [0x439ca4]
cmp eax, dword [ebp - 0x18]
je 0x40500a
push eax
call esi
test eax, eax
je 0x40500a
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40500a
mov eax, dword [0x439ca8]
cmp eax, dword [ebp - 0x18]
je 0x40500a
push eax
call esi
test eax, eax
je 0x40500a
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x439ca0]
call esi
test eax, eax
je 0x405026
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x405028
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004010e2
leave
ret
Function at 0x42b650
Capabilities:
Encode data using xor

Disassembly:
push esi
xor esi, esi
test ebx, ebx
jle 0x42b664
call fcn.0042b5d0
xor byte [esi + edi], al
inc esi
cmp esi, ebx
jl 0x42b657
pop esi
cmp ebx, 0x2d
jne 0x42b67e
mov dword [0x2bdf700], 0xa62e7790
mov dword [0x2bdf704], 0xffffffff
ret

Function at 0x42b680
Capabilities:
Create pipe

Disassembly:
sub esp, 0x24
mov eax, dword [0x437004]
xor eax, esp
mov dword [esp + 0x1c], eax
mov eax, dword [0x437de0]
push ebx
mov ebx, dword [0x2bdf6f4]
push edi
mov edi, dword [0x2bdd274]
call fcn.0042b620
cmp dword [0x2bdf6f4], 0x2f
jne 0x42b6ed
push 0
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x18]
push ecx
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
call fcn.0042b650
mov ecx, dword [esp + 0x24]
pop edi
pop ebx
xor ecx, esp
call fcn.004010e2
add esp, 0x24
ret
Function at 0x401007
Capabilities:
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x42f6f8]
push esi
mov esi, dword [ebx + 4]
mov dword [ebp - 0x2c], eax
mov eax, dword [0x42f6fc]
push edi
mov edi, dword [ebx]
xor edx, edx
mov dword [ebp - 0x30], eax
lea eax, [ebp - 8]
mov dword [ebp - 0x18], edi
mov dword [ebp - 8], edx
mov dword [ebp - 0x34], 0x9e3779b9
call fcn.00401000
mov eax, dword [0x42f700]
add dword [ebp - 8], 0x23f
mov dword [ebp - 0x24], eax
mov eax, dword [0x42f704]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x20], 0x20
mov dword [ebp - 0x10], 2
add dword [ebp - 0x10], 3
mov eax, edi
shl eax, 4
cmp dword [0x43e94c], 0xc
mov dword [ebp - 4], eax
jne 0x401085
push edx
lea eax, [ebp - 0x38]
push eax
push edx
push edx
push edx
call dword [sym.imp.KERNEL32.dll_WriteConsoleW]
xor edx, edx
mov eax, dword [ebp - 0x24]
add dword [ebp - 4], eax
mov eax, dword [0x43e94c]
cmp eax, 0xfa9
jne 0x4010a1
mov dword [0x43e948], 0xedeb2e40
cmp eax, 0x3eb
jne 0x4010c2
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_AreAllAccessesGranted]
and dword [0x43e8a0], 0
xor edx, edx
mov eax, dword [ebp - 8]
add eax, edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x18]
shr eax, 5
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x28]
add dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
mov dword [0x43e944], 0xf4ea3dee
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x1c]
add dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
xor dword [ebp - 0x14], eax
mov eax, dword [ebp - 0xc]
xor eax, dword [ebp - 0x14]
sub esi, eax
mov dword [ebp - 0xc], eax
mov eax, esi
shl eax, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x2c]
add dword [ebp - 4], eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
add eax, esi
mov dword [ebp - 0x1c], eax
mov eax, esi
shr eax, cl
add eax, dword [ebp - 0x30]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x1c]
xor dword [ebp - 4], eax
mov eax, dword [ebp - 4]
xor eax, dword [ebp - 0xc]
sub edi, eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x18], edi
mov eax, dword [ebp - 0x34]
sub dword [ebp - 8], eax
dec dword [ebp - 0x20]
jne 0x401059
mov dword [ebx], edi
pop edi
mov dword [ebx + 4], esi
pop esi
leave
ret
Function at 0x408c88
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42ef30]
jne 0x408c92
repz ret
jmp fcn.0040cc04

Function at 0x409f03
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00402a0e
and dword [ebp - 4], 0
cmp dword [0x433940], 0
mov ebx, eax
jne 0x409fb4
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40a065
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40a065
push eax
call fcn.0040299c
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x433940], eax
call esi
push eax
call fcn.0040299c
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x433944], eax
call esi
push eax
call fcn.0040299c
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x433948], eax
call esi
push eax
call fcn.0040299c
pop ecx
mov dword [0x433950], eax
test eax, eax
je 0x409fb4
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040299c
pop ecx
mov dword [0x43394c], eax
mov eax, dword [0x43394c]
cmp eax, ebx
je 0x40a00c
cmp dword [0x433950], ebx
je 0x40a00c
push eax
call fcn.00402a17
push dword [0x433950]
mov esi, eax
call fcn.00402a17
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40a00c
test edi, edi
je 0x40a00c
call esi
test eax, eax
je 0x40a003
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40a003
test byte [ebp - 0xc], 1
jne 0x40a00c
or dword [ebp + 0x10], 0x200000
jmp 0x40a045
mov eax, dword [0x433944]
cmp eax, ebx
je 0x40a045
push eax
call fcn.00402a17
pop ecx
test eax, eax
je 0x40a045
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40a045
mov eax, dword [0x433948]
cmp eax, ebx
je 0x40a045
push eax
call fcn.00402a17
pop ecx
test eax, eax
je 0x40a045
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x433940]
call fcn.00402a17
pop ecx
test eax, eax
je 0x40a065
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40a067
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4034b0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50ae7e
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x574be0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [ebp - 4], 2
push dword [edi + 0x44]
lea ecx, [edi + 0x3c]
push 0
mov dword [edi + 0x3c], 0x54b948
call dword [0x54b94c]
push dword [edi + 0x48]
call fcn.004ea3bd
add esp, 4
mov dword [edi + 0x40], 0
mov dword [edi + 0x44], 0
mov dword [edi + 0x48], 0
mov byte [ebp - 4], 1
push dword [edi + 0x30]
lea ecx, [edi + 0x28]
push 0
mov dword [edi + 0x28], 0x54b948
call dword [0x54b94c]
push dword [edi + 0x34]
call fcn.004ea3bd
add esp, 4
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
mov byte [ebp - 4], 0
push dword [edi + 0x1c]
lea ecx, [edi + 0x14]
push 0
mov dword [edi + 0x14], 0x54b948
call dword [0x54b94c]
push dword [edi + 0x20]
call fcn.004ea3bd
add esp, 4
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [ebp - 4], 0xffffffff
push dword [edi + 8]
mov ecx, edi
push 0
mov dword [edi], 0x54b948
call dword [0x54b94c]
push dword [edi + 0xc]
call fcn.004ea3bd
add esp, 4
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret