joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40adc0
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1014
call fcn.00404730
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
mov dword [ebp - 4], 0
mov eax, dword [0x4170bc]
cmp ebx, eax
jae 0x40adfb
mov eax, ebx
and eax, 0x1f
mov edx, ebx
sar edx, 5
mov edx, dword [edx*4 + 0x4170c0]
test byte [edx + eax*8 + 4], 1
jne 0x40ae0d
mov dword [0x415c84], 9
or eax, 0xffffffff
jmp 0x40af32
push 1
push 0
push ebx
call fcn.00409fd0
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp eax, 0xffffffff
je 0x40ae37
push 2
push 0
push ebx
call fcn.00409fd0
add esp, 0xc
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
jne 0x40ae3f
or eax, 0xffffffff
jmp 0x40af32
mov eax, dword [ebp + 0xc]
mov esi, eax
sub esi, dword [ebp - 8]
test esi, esi
jle 0x40aee4
lea edx, [ebp - 0x1010]
mov ecx, 0x1000
xor eax, eax
push edi
mov edi, edx
rep stosb byte es:[edi], al
pop edi
mov eax, edx
push 0x8000
push ebx
call fcn.0040b330
add esp, 8
mov dword [ebp - 0x10], eax
mov eax, esi
cmp eax, 0x1000
jb 0x40ae8a
mov dword [ebp - 0x1014], 0x1000
jmp 0x40ae92
mov eax, esi
mov dword [ebp - 0x1014], eax
mov eax, dword [ebp - 0x1014]
push eax
lea eax, [ebp - 0x1010]
push eax
push ebx
call fcn.004086d0
add esp, 0xc
mov edi, eax
cmp eax, 0xffffffff
jne 0x40aecb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x40aec5
mov dword [0x415c84], 0xd
or dword [ebp - 4], 0xffffffff
jmp 0x40aed5
mov eax, esi
sub eax, edi
mov esi, eax
test eax, eax
jg 0x40ae75
mov eax, dword [ebp - 0x10]
push eax
push ebx
call fcn.0040b330
add esp, 8
jmp 0x40af20
test esi, esi
jge 0x40af20
push 0
mov eax, dword [ebp + 0xc]
push eax
push ebx
call fcn.00409fd0
add esp, 0xc
push ebx
call fcn.00408b00
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
setne al
and eax, 1
dec eax
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
jne 0x40af20
mov dword [0x415c84], 0xd
push 0
mov eax, dword [ebp - 0xc]
push eax
push ebx
call fcn.00409fd0
add esp, 0xc
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40915c
nop
nop
mov ecx, 0x481a488c
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x43104e
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x431024
nop
nop
nop
nop
mov eax, section..data
mov ebx, 0x42f3f8
nop
nop
mov ecx, 0x4152277f
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x431084
nop
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x43106c
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x100369f0
Capabilities:
Encode data using xor
Encrypt data using rc4 ksa

Disassembly:
push ebx
push esi
sub esp, 0x4c
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x40], eax
mov ecx, dword [esp + 0x58]
mov dword [esp + 0x44], ecx
add eax, 0x1e
mov dword [esp + 0x48], eax
mov eax, dword [0x10062308]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x3c]
add eax, 0xb17812ae
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x38]
mov eax, dword [eax]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x34]
cmp eax, 1
sete al
mov byte [esp + 0x33], al
mov cl, byte [esp + 0x33]
xor eax, eax
test cl, 1
mov dword [esp + 0x2c], eax
jne 0x10036ada
jmp 0x10036a52
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x48]
mov dword [esp + 0x28], eax
mov bh, byte [edx + eax]
mov esi, 0x1e
xor edx, edx
div esi
mov eax, dword [esp + 0x28]
mov bl, byte [ecx + edx]
mov dl, bh
xor dl, 0xff
and dl, 0xa7
mov cl, 0xff
xor cl, 0xa7
and bh, cl
mov dh, bl
xor dh, 0xff
and dh, 0xa7
and bl, cl
mov ecx, dword [esp + 0x44]
or dl, bh
or dh, bl
xor dl, dh
mov byte [ecx + eax], dl
add eax, 0xf1f1e034
add eax, 1
sub eax, 0xf1f1e034
cmp eax, 0xe
mov dword [esp + 0x2c], eax
jne 0x10036a52
mov eax, dword [0x10062308]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x24]
add eax, 0xb17812ae
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x20]
mov dword [eax], 1
jmp 0x10036ada
mov eax, dword [0x10063d10]
mov dword [esp + 0x14], eax
mov ecx, dword [0x10063d0c]
mov dword [esp + 0x18], ecx
sub eax, 0x9f78e858
sub eax, 1
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
add ecx, 0x9f78e858
imul eax, ecx
and eax, 1
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
cmp ecx, 0
sete cl
mov byte [esp + 0xe], cl
cmp eax, 0xa
setl al
mov byte [esp + 0xf], al
mov cl, byte [esp + 0xf]
mov al, byte [esp + 0xe]
and al, cl
mov byte [esp + 0xd], al
mov al, byte [esp + 0xd]
mov dl, byte [esp + 0xf]
mov cl, byte [esp + 0xe]
xor cl, dl
or al, cl
mov byte [esp + 0xc], al
mov al, byte [esp + 0xc]
test al, 1
jne 0x10036b60
jmp 0x10036c27
mov ecx, dword [0x10063d10]
mov eax, dword [0x10063d0c]
xor esi, esi
sub esi, 1
mov edx, ecx
add edx, esi
imul ecx, edx
and ecx, 1
cmp ecx, 0
sete cl
mov byte [esp + 7], cl
cmp eax, 0xa
setl al
mov byte [esp + 8], al
xor cl, 0xff
mov byte [esp + 9], cl
xor al, 0xff
mov byte [esp + 0xa], al
mov al, 1
xor al, 1
mov byte [esp + 0xb], al
mov al, byte [esp + 9]
and al, 0xff
mov byte [esp + 6], al
mov cl, byte [esp + 0xb]
mov al, byte [esp + 8]
mov dl, byte [esp + 0xa]
mov ah, byte [esp + 7]
and ah, cl
mov byte [esp + 3], ah
and dl, 0xff
mov byte [esp + 4], dl
and al, cl
mov byte [esp + 5], al
mov cl, byte [esp + 5]
mov al, byte [esp + 4]
mov ah, byte [esp + 3]
mov dl, byte [esp + 6]
or dl, ah
mov byte [esp + 1], dl
or al, cl
mov byte [esp + 2], al
mov cl, byte [esp + 2]
mov al, byte [esp + 1]
xor al, cl
mov byte [esp], al
mov al, byte [esp]
mov dl, byte [esp + 0xb]
mov ah, byte [esp + 0xa]
mov cl, byte [esp + 9]
or cl, ah
xor cl, 0xff
or dl, 1
and cl, dl
or al, cl
test al, 1
jne 0x10036c21
jmp 0x10036c27
add esp, 0x4c
pop esi
pop ebx
ret
jmp 0x10036b60
Function at 0x1004a8f0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push edi
push esi
sub esp, 0x30
mov eax, dword [esp + 0x44]
mov dword [esp + 0x24], eax
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x28], ecx
add eax, 0x16
mov dword [esp + 0x2c], eax
mov eax, dword [0x10062384]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x20]
add eax, 0xc3edc01b
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x1c]
mov eax, dword [eax]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x18]
cmp eax, 1
sete al
mov byte [esp + 0x17], al
mov cl, byte [esp + 0x17]
xor eax, eax
test cl, 1
mov dword [esp + 0x10], eax
jne 0x1004a9ce
jmp 0x1004a953
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x28]
mov esi, dword [esp + 0x24]
mov edx, dword [esp + 0x2c]
mov dword [esp + 8], eax
mov dl, byte [edx + eax]
mov byte [esp + 0xf], dl
mov edi, 0x16
xor edx, edx
div edi
mov eax, dword [esp + 8]
mov edi, edx
mov dh, byte [esp + 0xf]
mov bl, byte [esi + edi]
mov bh, dh
xor bh, 0xff
mov dl, bl
and dl, bh
xor bl, 0xff
and dh, bl
or dl, dh
mov byte [ecx + eax], dl
xor ecx, ecx
sub ecx, 1
sub eax, ecx
cmp eax, 0x40
mov dword [esp + 0x10], eax
jne 0x1004a953
mov eax, dword [0x10062384]
mov dword [esp + 4], eax
mov eax, dword [esp + 4]
add eax, 0xc3edc01b
mov dword [esp], eax
mov eax, dword [esp]
mov dword [eax], 1
jmp 0x1004a9ce
add esp, 0x30
pop esi
pop edi
pop ebx
ret
Function at 0x1004b5b0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebx
push edi
push esi
sub esp, 0x4c
mov eax, dword [esp + 0x60]
mov dword [esp + 0x40], eax
mov ecx, dword [esp + 0x5c]
mov dword [esp + 0x44], ecx
add eax, 0x1e
mov dword [esp + 0x48], eax
mov eax, dword [0x10062390]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x3c]
add eax, 0xe46a3704
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x38]
mov eax, dword [eax]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x34]
cmp eax, 1
sete al
mov byte [esp + 0x33], al
mov cl, byte [esp + 0x33]
xor eax, eax
test cl, 1
mov dword [esp + 0x2c], eax
jne 0x1004b75e
jmp 0x1004b613
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x28], eax
mov ecx, dword [0x10063c08]
mov eax, dword [0x10063c04]
xor esi, esi
sub esi, 1
mov edx, ecx
add edx, esi
imul ecx, edx
and ecx, 1
cmp ecx, 0
sete cl
cmp eax, 0xa
setl dl
mov al, cl
and al, dl
xor cl, dl
or al, cl
test al, 1
jne 0x1004b656
jmp 0x1004b765
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x44]
mov esi, dword [esp + 0x40]
mov edx, dword [esp + 0x48]
mov dl, byte [edx + eax]
mov byte [esp + 0x23], dl
mov edi, 0x1e
xor edx, edx
div edi
mov eax, dword [esp + 0x28]
mov edi, edx
mov dh, byte [esp + 0x23]
mov bl, byte [esi + edi]
mov bh, dh
xor bh, 0xff
mov dl, bl
and dl, bh
xor bl, 0xff
and dh, bl
or dl, dh
mov byte [ecx + eax], dl
xor ecx, ecx
sub ecx, eax
xor eax, eax
sub eax, 1
add ecx, eax
xor eax, eax
sub eax, ecx
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x24]
cmp eax, 3
sete al
mov byte [esp + 0x22], al
mov eax, dword [0x10063c08]
mov dword [esp + 0x14], eax
mov ecx, dword [0x10063c04]
mov dword [esp + 0x18], ecx
sub eax, 0x6f46760e
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
sub ecx, 1
add ecx, 0x6f46760e
imul eax, ecx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
and ecx, 1
cmp ecx, 0
sete cl
cmp eax, 0xa
setl dl
mov al, cl
and al, dl
xor cl, dl
or al, cl
mov byte [esp + 0xf], al
mov al, byte [esp + 0xf]
test al, 1
jne 0x1004b71f
jmp 0x1004b765
mov eax, dword [esp + 0x24]
mov cl, byte [esp + 0x22]
test cl, 1
mov dword [esp + 0x2c], eax
jne 0x1004b739
jmp 0x1004b613
mov eax, dword [0x10062390]
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
add eax, 0xe46a3704
mov dword [esp + 4], eax
mov eax, dword [esp + 4]
mov dword [eax], 1
jmp 0x1004b75e
add esp, 0x4c
pop esi
pop edi
pop ebx
ret
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x48]
mov cl, byte [ecx + eax]
mov byte [esp + 3], cl
sub eax, 0x98e05964
sub eax, 0x1e
mov eax, dword [esp + 0x28]
mov ecx, 0x1e
xor edx, edx
div ecx
mov eax, dword [esp + 0x40]
mov al, byte [eax + edx]
mov byte [esp + 2], al
mov cl, byte [esp + 3]
xor eax, eax
sub al, 0x78
sub al, cl
add al, 0x78
mov cl, byte [esp + 2]
mov al, byte [esp + 3]
add al, 4
sub al, cl
sub al, 4
mov ecx, dword [esp + 0x44]
mov bl, byte [esp + 2]
mov bh, byte [esp + 3]
mov dl, bh
xor dl, 0xff
and dl, 0x93
mov al, 0xff
xor al, 0x93
and bh, al
mov dh, bl
xor dh, 0xff
and dh, 0x93
and bl, al
mov eax, dword [esp + 0x28]
or dl, bh
or dh, bl
xor dl, dh
mov byte [ecx + eax], dl
sub eax, 0x8e7dbeea
jmp 0x1004b656
Function at 0x1004b7f0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push edi
push esi
sub esp, 0x28
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x1c], eax
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x20], ecx
add eax, 0x10
mov dword [esp + 0x24], eax
mov eax, dword [0x10062394]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x18]
add eax, 0x60f884e4
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x14]
mov eax, dword [eax]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
cmp eax, 1
sete al
mov byte [esp + 0xf], al
mov cl, byte [esp + 0xf]
xor eax, eax
test cl, 1
mov dword [esp + 8], eax
jne 0x1004b8be
jmp 0x1004b853
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x20]
mov esi, dword [esp + 0x1c]
mov edx, dword [esp + 0x24]
mov dh, byte [edx + eax]
mov edi, eax
and edi, 0xf
mov bl, byte [esi + edi]
mov bh, dh
xor bh, 0xff
mov dl, bl
and dl, bh
xor bl, 0xff
and dh, bl
or dl, dh
mov byte [ecx + eax], dl
add eax, 0x62f410aa
add eax, 1
sub eax, 0x62f410aa
cmp eax, 3
mov dword [esp + 8], eax
jne 0x1004b853
mov eax, dword [0x10062394]
mov dword [esp + 4], eax
mov eax, dword [esp + 4]
add eax, 0x60f884e4
mov dword [esp], eax
mov eax, dword [esp]
mov dword [eax], 1
jmp 0x1004b8be
add esp, 0x28
pop esi
pop edi
pop ebx
ret
Function at 0x1004c3c0
Capabilities:
Encode data using xor

Disassembly:
push ebx
sub esp, 0x54
mov eax, dword [esp + 0x60]
mov dword [esp + 0x48], eax
mov ecx, dword [esp + 0x5c]
mov dword [esp + 0x4c], ecx
add eax, 0x10
mov dword [esp + 0x50], eax
mov eax, dword [0x1006239c]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x44]
add eax, 0x1ca4ef7
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x40]
mov eax, dword [eax]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x3c]
cmp eax, 1
sete al
mov byte [esp + 0x3b], al
mov cl, byte [esp + 0x3b]
xor eax, eax
test cl, 1
mov dword [esp + 0x34], eax
jne 0x1004c5d9
jmp 0x1004c421
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x50]
mov bh, byte [edx + eax]
mov edx, eax
and edx, 0xf
mov bl, byte [ecx + edx]
mov dl, bh
xor dl, 0xff
and dl, 0x3e
mov cl, 0xff
xor cl, 0x3e
and bh, cl
mov dh, bl
xor dh, 0xff
and dh, 0x3e
and bl, cl
mov ecx, dword [esp + 0x4c]
or dl, bh
or dh, bl
xor dl, dh
mov byte [ecx + eax], dl
xor ecx, ecx
sub ecx, 1
sub eax, ecx
cmp eax, 0x14
mov dword [esp + 0x34], eax
jne 0x1004c421
mov eax, dword [0x10063bf8]
mov dword [esp + 0x28], eax
mov ecx, dword [0x10063bf4]
mov dword [esp + 0x2c], ecx
add eax, 0x5b5fef2d
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x30]
sub eax, 1
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
sub ecx, 0x5b5fef2d
imul eax, ecx
and eax, 1
mov dword [esp + 0x20], eax
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x20]
cmp eax, 0
sete al
mov byte [esp + 0x1d], al
cmp ecx, 0xa
setl cl
mov byte [esp + 0x1e], cl
and al, cl
mov byte [esp + 0x1f], al
mov al, byte [esp + 0x1f]
mov dl, byte [esp + 0x1e]
mov cl, byte [esp + 0x1d]
xor cl, dl
or al, cl
mov byte [esp + 0x1c], al
mov al, byte [esp + 0x1c]
test al, 1
jne 0x1004c4f8
jmp 0x1004c5de
mov eax, dword [0x1006239c]
mov dword [eax + 0x1ca4ef7], 1
mov eax, dword [0x10063bf8]
mov ecx, dword [0x10063bf4]
mov dword [esp + 0x14], ecx
mov ecx, eax
add ecx, 0x847417c
sub ecx, 1
sub ecx, 0x847417c
imul eax, ecx
and eax, 1
mov dword [esp + 0x18], eax
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
cmp eax, 0
sete ah
cmp ecx, 0xa
setl al
mov ch, ah
xor ch, 0xff
mov byte [esp + 0xd], ch
mov dl, al
xor dl, 0xff
mov byte [esp + 0xe], dl
mov cl, 1
xor cl, 1
mov byte [esp + 0xf], cl
and ch, 0xff
mov byte [esp + 0x10], ch
and ah, cl
mov byte [esp + 0x11], ah
and dl, 0xff
mov byte [esp + 0x12], dl
and al, cl
mov byte [esp + 0x13], al
mov cl, byte [esp + 0x11]
mov al, byte [esp + 0x10]
or al, cl
mov byte [esp + 0xc], al
mov cl, byte [esp + 0x13]
mov al, byte [esp + 0x12]
or al, cl
mov byte [esp + 0xb], al
mov cl, byte [esp + 0xf]
mov dl, byte [esp + 0xe]
mov al, byte [esp + 0xd]
mov ch, byte [esp + 0xb]
mov ah, byte [esp + 0xc]
xor ah, ch
mov byte [esp + 9], ah
or al, dl
xor al, 0xff
or cl, 1
and al, cl
mov byte [esp + 0xa], al
mov cl, byte [esp + 0xa]
mov al, byte [esp + 9]
or al, cl
test al, 1
jne 0x1004c5d4
jmp 0x1004c5de
jmp 0x1004c5d9
add esp, 0x54
pop ebx
ret
mov eax, dword [0x1006239c]
mov dword [esp + 4], eax
mov eax, dword [esp + 4]
add eax, 0x1ca4ef7
mov dword [esp], eax
mov eax, dword [esp]
mov dword [eax], 1
jmp 0x1004c4f8
Function at 0x1004d0e0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
sub esp, 0x4c
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x40], eax
mov ecx, dword [esp + 0x58]
mov dword [esp + 0x44], ecx
add eax, 0x14
mov dword [esp + 0x48], eax
mov eax, dword [0x100623ac]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x3c]
add eax, 0x69a3942a
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x38]
mov eax, dword [eax]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x34]
cmp eax, 1
sete al
mov byte [esp + 0x33], al
mov cl, byte [esp + 0x33]
xor eax, eax
test cl, 1
mov dword [esp + 0x2c], eax
jne 0x1004d1cc
jmp 0x1004d142
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x48]
mov dword [esp + 0x28], eax
mov bh, byte [edx + eax]
mov esi, 0x14
xor edx, edx
div esi
mov eax, dword [esp + 0x28]
mov bl, byte [ecx + edx]
mov dl, bh
xor dl, 0xff
and dl, 0xef
mov cl, 0xff
xor cl, 0xef
and bh, cl
mov dh, bl
xor dh, 0xff
and dh, 0xef
and bl, cl
mov ecx, dword [esp + 0x44]
or dl, bh
or dh, bl
xor dl, dh
mov byte [ecx + eax], dl
xor ecx, ecx
sub ecx, eax
xor eax, eax
sub eax, 1
add ecx, eax
xor eax, eax
sub eax, ecx
cmp eax, 0xd
mov dword [esp + 0x2c], eax
jne 0x1004d142
mov eax, dword [0x100623ac]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x24]
add eax, 0x69a3942a
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x20]
mov dword [eax], 1
jmp 0x1004d1cc
mov eax, dword [0x10063bd8]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x1c]
mov ecx, dword [0x10063bd4]
mov dword [esp + 0x14], ecx
add eax, 0xee85fa83
sub eax, 1
sub eax, 0xee85fa83
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
imul ecx, edx
and ecx, 1
cmp ecx, 0
sete cl
mov byte [esp + 0x12], cl
cmp eax, 0xa
setl al
mov byte [esp + 0x13], al
mov cl, byte [esp + 0x13]
mov al, byte [esp + 0x12]
and al, cl
mov byte [esp + 0x11], al
mov al, byte [esp + 0x11]
mov dl, byte [esp + 0x13]
mov cl, byte [esp + 0x12]
xor cl, dl
or al, cl
mov byte [esp + 0x10], al
mov al, byte [esp + 0x10]
test al, 1
jne 0x1004d24d
jmp 0x1004d2ca
mov eax, dword [0x10063bd8]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xc]
mov ecx, dword [0x10063bd4]
mov dword [esp + 4], ecx
xor edx, edx
sub edx, 1
mov ecx, eax
add ecx, edx
imul eax, ecx
and eax, 1
mov dword [esp + 8], eax
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
cmp ecx, 0
sete cl
mov byte [esp + 2], cl
cmp eax, 0xa
setl al
mov byte [esp + 3], al
mov cl, byte [esp + 3]
mov al, byte [esp + 2]
and al, cl
mov byte [esp + 1], al
mov cl, byte [esp + 3]
mov al, byte [esp + 2]
xor al, cl
mov byte [esp], al
mov cl, byte [esp]
mov al, byte [esp + 1]
or al, cl
test al, 1
jne 0x1004d2c4
jmp 0x1004d2ca
add esp, 0x4c
pop esi
pop ebx
ret
jmp 0x1004d24d
Function at 0x10051f4d
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x10051f8c
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10051f8c
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10051f8c
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x10051f8c
cmp dword [ecx + 0x74], 0xe
jbe 0x10051f8c
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x10054c3d
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x10054cda
push ebx
push esi
call fcn.10054c06
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.10054b9a
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x10054c87
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10054cd9
push edi
push eax
call fcn.10052c17
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x10054ca7
call fcn.10052bdd
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10054cd8
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.10054b9a
add esp, 0x20
test eax, eax
jne 0x10054cc6
push edi
call fcn.10052bdd
jmp 0x10054cce
push ebx
call fcn.10052bdd
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x10054f47
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1005d090
push 0x1005d088
push str.FlsAlloc
push 0x1f
call fcn.10054e63
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10054f7b
push dword [ebp + 8]
mov ecx, esi
call dword [0x1005b148]
call esi
jmp 0x10054f81
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x10054fc5
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1005d0a0
push 0x1005d098
push str.FlsGetValue
push 0x21
call fcn.10054e63
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10054ffc
push dword [ebp + 8]
mov ecx, esi
call dword [0x1005b148]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x10055004
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1005d0a8
push 0x1005d0a0
push str.FlsSetValue
push 0x22
call fcn.10054e63
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1005503e
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1005b148]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x1005a680
Capabilities:
Parse pe header

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

Function at 0x430004
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
call 0x43000c
nop
nop
nop
pop eax
nop
nop
add eax, 0x403d6f
nop
nop
sub eax, 0x403d15
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x430030
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp loc.00401219
Function at 0x406890
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x41dc3b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, dword [esp + 0x18]
push edi
lea ecx, [esi + 4]
mov dword [esi], 0x404614
call fcn.00409404
push 4
mov dword [esp + 0x18], 0
call fcn.0040aaa6
mov edi, eax
add esp, 4
test edi, edi
je 0x406904
push ebx
call fcn.004091ff
mov dword [edi], eax
call fcn.00408fbe
push 0
lea ecx, [esp + 0x10]
mov ebx, eax
call fcn.004093c5
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x4068f8
inc eax
mov dword [ebx + 4], eax
lea ecx, [esp + 0xc]
call fcn.004093ed
pop ebx
jmp 0x406906
xor edi, edi
mov dword [esi + 0x38], edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov ecx, dword [esp + 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 4

Function at 0x40b59e
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4213dc]
jne 0x40b5a8
repz ret
jmp fcn.0041153c