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

Disassembly:
mov edx, dword [esp + 8]
push ebx
mov ebx, dword [esp + 0x10]
push ebp
mov ecx, dword [edx + 4]
mov ebp, edx
push edi
cmp ecx, dword [ebx + 4]
mov edi, dword [esp + 0x10]
cmovge ebp, ebx
cmovge ebx, edx
mov eax, dword [ebx + 4]
cmp eax, dword [edi + 8]
jg 0x581d89
mov eax, edi
jmp 0x581d93
push eax
push edi
call fcn.004ea710
add esp, 8
test eax, eax
jne 0x581d9b
pop edi
pop ebp
pop ebx
ret
push esi
xor esi, esi
cmp dword [ebp + 4], esi
jle 0x581db9
mov eax, dword [ebp]
mov ecx, dword [ebx]
mov edx, dword [eax + esi*4]
mov eax, dword [edi]
xor edx, dword [ecx + esi*4]
mov dword [eax + esi*4], edx
inc esi
cmp esi, dword [ebp + 4]
jl 0x581da3
mov eax, dword [ebx + 4]
cmp esi, eax
jge 0x581dd2
mov eax, dword [ebx]
mov ecx, dword [edi]
mov eax, dword [eax + esi*4]
mov dword [ecx + esi*4], eax
inc esi
mov eax, dword [ebx + 4]
cmp esi, eax
jl 0x581dc0
mov dword [edi + 4], eax
pop esi
test eax, eax
jle 0x581df5
mov edx, dword [edi]
add edx, 0xfffffffc
lea edx, [edx + eax*4]
mov ecx, dword [edx]
lea edx, [edx - 4]
test ecx, ecx
jne 0x581df0
dec eax
test eax, eax
jg 0x581de2
mov dword [edi + 4], eax
test eax, eax
jne 0x581dfe
mov dword [edi + 0xc], 0
pop edi
pop ebp
mov eax, 1
pop ebx
ret
Function at 0x582df0
Capabilities:
Inspect section memory permissions

Disassembly:
mov eax, 4
call fcn.00451900
push ebp
mov ebp, dword [esp + 0x18]
push esi
push edi
push ebp
xor edi, edi
call fcn.00509a50
push ebp
call fcn.005098c0
mov esi, eax
add esp, 8
test esi, esi
je 0x583006
push ebx
mov ebx, dword [esp + 0x1c]
mov eax, dword [ebx + 4]
add eax, eax
cmp eax, dword [esi + 8]
jg 0x582e2f
mov eax, esi
jmp 0x582e39
push eax
push esi
call fcn.004ea710
add esp, 8
test eax, eax
je 0x583005
mov eax, dword [ebx + 4]
lea ecx, [eax - 1]
test ecx, ecx
js 0x582fc1
mov ebp, ecx
mov eax, dword [ebx]
mov edx, dword [eax + ebp*4]
mov ecx, edx
shr ecx, 1
mov eax, edx
and eax, 0x20000
and ecx, 0x8000
or ecx, eax
mov eax, edx
and eax, 0x40000
shr ecx, 1
or ecx, eax
mov eax, edx
and eax, 0x80000
shr ecx, 1
or ecx, eax
mov eax, edx
and eax, 0x100000
shr ecx, 1
or ecx, eax
mov eax, edx
and eax, 0x200000
shr ecx, 1
or ecx, eax
mov eax, edx
and eax, 0x400000
shr ecx, 1
or ecx, eax
mov eax, edx
and eax, 0x800000
shr ecx, 1
or ecx, eax
mov eax, edx
and eax, 0x1000000
shr ecx, 1
or ecx, eax
mov eax, edx
and eax, 0x2000000
shr ecx, 1
or ecx, eax
mov eax, edx
and eax, 0x4000000
shr ecx, 1
or ecx, eax
mov eax, edx
and eax, 0x8000000
shr ecx, 1
or ecx, eax
mov eax, edx
and eax, 0x10000000
shr ecx, 1
or ecx, eax
mov eax, edx
and eax, 0x20000000
shr ecx, 1
or ecx, eax
mov eax, edx
and eax, 0x40000000
shr ecx, 1
or ecx, eax
and edx, reloc.WS2_32.dll_accept
mov eax, dword [esi]
shr ecx, 1
or ecx, edx
shr ecx, 1
mov dword [eax + ebp*8 + 4], ecx
mov eax, dword [ebx]
mov ecx, dword [eax + ebp*4]
mov edx, ecx
and edx, 0x8000
mov eax, ecx
add edx, edx
and eax, 0x4000
or edx, eax
mov eax, ecx
add edx, edx
and eax, 0x2000
or edx, eax
mov eax, ecx
add edx, edx
and eax, 0x1000
or edx, eax
mov eax, ecx
add edx, edx
and eax, 0x800
or edx, eax
mov eax, ecx
add edx, edx
and eax, 0x400
or edx, eax
mov eax, ecx
add edx, edx
and eax, 0x200
or edx, eax
mov eax, ecx
add edx, edx
and eax, 0x100
or edx, eax
mov eax, ecx
add edx, edx
and eax, 0x80
or edx, eax
mov eax, ecx
add edx, edx
and eax, 0x40
or edx, eax
mov eax, ecx
add edx, edx
and eax, 0x20
or edx, eax
mov eax, ecx
add edx, edx
and eax, 0x10
or edx, eax
mov eax, ecx
add edx, edx
and eax, 8
or edx, eax
mov eax, ecx
add edx, edx
and eax, 4
or edx, eax
mov eax, ecx
add edx, edx
and eax, 2
or edx, eax
and ecx, 1
mov eax, dword [esi]
add edx, edx
or edx, ecx
mov dword [eax + ebp*8], edx
sub ebp, 1
jns 0x582e51
mov eax, dword [ebx + 4]
mov ebp, dword [esp + 0x24]
add eax, eax
mov dword [esi + 4], eax
test eax, eax
jle 0x582fe5
mov edx, dword [esi]
add edx, 0xfffffffc
lea edx, [edx + eax*4]
mov ecx, dword [edx]
lea edx, [edx - 4]
test ecx, ecx
jne 0x582fe0
dec eax
test eax, eax
jg 0x582fd2
mov dword [esi + 4], eax
test eax, eax
jne 0x582fea
mov dword [esi + 0xc], edi
push dword [esp + 0x20]
push esi
push dword [esp + 0x20]
call fcn.00581e10
add esp, 0xc
mov ecx, 1
test eax, eax
cmovne edi, ecx
pop ebx
push ebp
call fcn.005097e0
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ecx
ret
Function at 0x5a2e10
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0xa8
call fcn.00451900
mov eax, dword [0x67b374]
xor eax, esp
mov dword [esp + 0xa4], eax
mov eax, dword [esp + 0xac]
push ebx
push ebp
push esi
mov esi, dword [esp + 0xbc]
xor ebp, ebp
push edi
mov edi, dword [esp + 0xc4]
mov dword [esp + 0x30], eax
mov esi, dword [esi + 4]
mov dword [esp + 0x1c], esi
sub esi, edi
mov dword [esp + 0x10], esi
cmp dword [esp + 0xc8], edi
jae 0x5a2e74
push str.orig_len___md_size
push 0xf8
push str.._ssl_s3_cbc.c
call fcn.004fe9d0
add esp, 0xc
cmp edi, 0x40
jbe 0x5a2e90
push str.md_size___EVP_MAX_MD_SIZE
push 0xf9
push str.._ssl_s3_cbc.c
call fcn.004fe9d0
add esp, 0xc
mov ecx, dword [esp + 0xc8]
lea eax, [esp + 0x34]
neg eax
lea ebx, [esp + 0x34]
and eax, 0x3f
add ebx, eax
lea eax, [edi + 0x100]
mov dword [esp + 0x20], ebx
cmp ecx, eax
jbe 0x5a2ebe
mov ebp, ecx
sub ebp, edi
sub ebp, 0x100
mov eax, edi
xor edx, edx
and eax, 0xfffffffe
shl eax, 0x17
sub eax, ebp
add eax, esi
div edi
push edi
mov esi, edx
push 0
push ebx
mov dword [esp + 0x38], esi
call fcn.005c7c50
add esp, 0xc
mov dword [esp + 0x18], 0
cmp ebp, dword [esp + 0xc8]
jae 0x5a2f9b
mov ecx, dword [esp + 0x1c]
mov esi, ebx
mov edx, dword [esp + 0x10]
mov eax, ecx
shr eax, 0x1f
sub ebp, ecx
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0xc0]
shr edx, 0x1f
mov dword [esp + 0x10], edx
mov eax, dword [eax + 0xc]
add eax, ecx
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x24]
lea ebx, [ecx + ebp]
shr ebx, 0x1f
lea ecx, [edi + ebp]
shr ecx, 0x1f
xor cl, dl
xor dl, bl
or cl, dl
mov edx, ebp
xor cl, bl
shr edx, 0x1f
xor dl, byte [esp + 0x14]
dec cl
mov dword [esp + 0x28], ecx
mov cl, byte [eax + ebp]
mov al, bl
xor al, byte [esp + 0x14]
inc ebp
or dl, al
xor dl, bl
mov ebx, dword [esp + 0x18]
neg dl
and dl, cl
and dl, byte [esp + 0x28]
or byte [ebx + esi], dl
inc ebx
mov edx, dword [esp + 0x10]
mov ecx, ebx
sub ecx, edi
mov eax, ebx
xor ecx, edi
xor eax, edi
or ecx, eax
xor ecx, ebx
shr ecx, 0x1f
neg ecx
and ebx, ecx
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x18], ebx
lea eax, [ecx + ebp]
cmp eax, dword [esp + 0xc8]
jb 0x5a2f21
mov esi, dword [esp + 0x2c]
mov ebx, dword [esp + 0x20]
xor edx, edx
test edi, edi
je 0x5a2fcf
mov ebp, dword [esp + 0x30]
mov eax, esi
xor eax, 0x20
mov al, byte [eax + ebx]
movzx eax, byte [esi + ebx]
inc esi
mov byte [edx + ebp], al
mov ecx, esi
sub ecx, edi
mov eax, esi
xor ecx, edi
xor eax, edi
or ecx, eax
inc edx
xor ecx, esi
shr ecx, 0x1f
neg ecx
and esi, ecx
cmp edx, edi
jb 0x5a2fa5
mov ecx, dword [esp + 0xb4]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00450cb7
add esp, 0xa8
ret
Function at 0x5a3af0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 8
call fcn.00451900
push ebx
mov ebx, dword [esp + 0x1c]
push esi
mov esi, dword [esp + 0x14]
inc ebx
push edi
mov edi, dword [esp + 0x1c]
mov dword [esp + 0x24], ebx
mov eax, dword [esi + 8]
mov ecx, dword [edi + 4]
mov eax, dword [eax + 0x64]
test byte [eax + 0x38], 1
je 0x5a3bbc
mov edx, dword [esp + 0x20]
lea eax, [ebx + edx]
cmp eax, ecx
ja 0x5a3bc4
add dword [edi + 0xc], edx
add dword [edi + 0x10], edx
sub ecx, edx
mov dword [edi + 4], ecx
test dword [esi + 0x100], 0x200
mov eax, dword [edi + 0xc]
movzx ebx, byte [eax + ecx - 1]
je 0x5a3b8a
cmp dword [esi + 0x88], 0
jne 0x5a3b8a
mov eax, dword [esi + 0x58]
push 8
add eax, 8
push 0x64d8c4
push eax
call fcn.004fe700
add esp, 0xc
test eax, eax
jne 0x5a3b7d
test bl, 1
jne 0x5a3b7d
mov eax, dword [esi + 0x58]
or dword [eax], 8
mov eax, dword [esi + 0x58]
test byte [eax], 8
je 0x5a3b8a
test ebx, ebx
je 0x5a3b8a
dec ebx
mov eax, dword [esi + 0x80]
push ebp
push dword [eax]
call fcn.00502750
mov ebp, dword [edi + 4]
add esp, 4
mov dword [esp + 0x14], ebp
and eax, 0x200000
je 0x5a3bcd
sub ebp, ebx
mov eax, 1
dec ebp
mov dword [edi + 4], ebp
pop ebp
pop edi
pop esi
pop ebx
add esp, 8
ret
cmp ebx, ecx
jbe 0x5a3b3b
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 8
ret
mov ecx, dword [esp + 0x28]
mov edx, ebp
add ecx, ebx
mov eax, ebp
sub edx, ecx
xor eax, ecx
xor edx, ecx
mov ecx, 0xff
or edx, eax
lea eax, [ebp - 1]
xor edx, ebp
shr edx, 0x1f
dec edx
cmp eax, ecx
mov dword [esp + 0x1c], edx
cmovb ecx, eax
xor esi, esi
test ecx, ecx
je 0x5a3c53
mov eax, ebx
shr eax, 0x1f
mov dword [esp + 0x28], eax
mov eax, dword [edi + 0xc]
lea edi, [ebp - 1]
add edi, eax
mov ebp, ecx
nop
mov al, byte [esp + 0x28]
lea edi, [edi - 1]
mov edx, ebx
mov ecx, esi
sub edx, esi
shr ecx, 0x1f
shr edx, 0x1f
xor al, cl
xor dl, cl
inc esi
or dl, al
movzx eax, byte [edi + 1]
xor dl, byte [esp + 0x28]
xor eax, ebx
dec dl
movzx ecx, dl
mov edx, dword [esp + 0x1c]
and ecx, eax
not ecx
and edx, ecx
mov dword [esp + 0x1c], edx
cmp esi, ebp
jb 0x5a3c10
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x14]
not edx
lea eax, [ebx + 1]
movzx ecx, dl
dec ecx
shr ecx, 0x1f
neg ecx
and eax, ecx
sub ebp, eax
shl eax, 8
or dword [edi], eax
mov dword [edi + 4], ebp
mov dword [esp + 0x28], ecx
not ecx
pop ebp
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x18]
and ecx, 1
pop edi
pop esi
or eax, ecx
pop ebx
add esp, 8
ret
Function at 0x5b285a
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret

Function at 0x5e1281
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.005e10f7
Function at 0x5f3f80
Capabilities:
Resolve dns

Disassembly:
mov eax, 0x18
call fcn.00451900
mov eax, dword [0x67b374]
xor eax, esp
mov dword [esp + 0x14], eax
push ebx
mov ebx, dword [esp + 0x24]
xor ecx, ecx
push ebp
mov ebp, dword [esp + 0x24]
push esi
push edi
mov dword [esp + 0x10], 1
mov edi, ebp
mov dword [esp + 0x20], ecx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], ecx
xor esi, esi
nop
movsx edx, byte [edi]
lea edi, [edi + 1]
lea eax, [edx - 0x30]
cmp eax, 9
ja 0x5f4047
mov eax, dword [esp + ecx*4 + 0x14]
mov esi, 1
lea eax, [eax + eax*4]
lea eax, [eax - 0x18]
lea eax, [edx + eax*2]
mov dword [esp + ecx*4 + 0x14], eax
cmp eax, 0xff
jbe 0x5f3fc0
xor esi, esi
call fcn.005f4450
cmp eax, 1
jne 0x5f413c
test esi, esi
jne 0x5f4151
push 0xa1
push str..crypto_bio_b_sock.c
push 0x16
push 9
call fcn.004fe570
add esp, 0x10
push ebp
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov ecx, eax
test ecx, ecx
jne 0x5f40b8
push 0xa7
push str..crypto_bio_b_sock.c
push 0x66
push 0x6a
push 0x20
call fcn.004f4f80
add esp, 0x14
jmp 0x5f410f
cmp edx, 0x2e
jne 0x5f4078
test esi, esi
je 0x5f405b
cmp ecx, 3
je 0x5f3feb
inc ecx
jmp 0x5f3fbd
push 0x88
push str..crypto_bio_b_sock.c
push 0x6c
push 0x6a
push 0x20
call fcn.004f4f80
add esp, 0x14
jmp 0x5f412c
test edx, edx
jne 0x5f3feb
cmp ecx, 3
jne 0x5f3feb
test esi, esi
je 0x5f3feb
movzx eax, byte [esp + 0x14]
lea esi, [edx + 1]
mov byte [ebx], al
movzx eax, byte [esp + 0x18]
mov byte [ebx + 1], al
movzx eax, byte [esp + 0x1c]
mov byte [ebx + 2], al
movzx eax, byte [esp + 0x20]
mov byte [ebx + 3], al
jmp 0x5f3fed
cmp word [ecx + 8], 2
je 0x5f40d9
push 0xae
push str..crypto_bio_b_sock.c
push 0x6b
push 0x6a
push 0x20
call fcn.004f4f80
add esp, 0x14
jmp 0x5f410f
mov eax, dword [ecx + 0xc]
mov dword [esp + 0x10], 0
mov eax, dword [eax]
movzx eax, byte [eax]
mov byte [ebx], al
mov eax, dword [ecx + 0xc]
mov eax, dword [eax]
movzx eax, byte [eax + 1]
mov byte [ebx + 1], al
mov eax, dword [ecx + 0xc]
mov eax, dword [eax]
movzx eax, byte [eax + 2]
mov byte [ebx + 2], al
mov eax, dword [ecx + 0xc]
mov eax, dword [eax]
movzx eax, byte [eax + 3]
mov byte [ebx + 3], al
push 0xb7
push str..crypto_bio_b_sock.c
push 0x16
push 0xa
call fcn.004fe570
add esp, 0x10
cmp dword [esp + 0x10], 0
je 0x5f4151
push ebp
push str.host
push 2
call fcn.004f4480
add esp, 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.00450cb7
add esp, 0x18
ret
mov ecx, dword [esp + 0x24]
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00450cb7
add esp, 0x18
ret

Function at 0x5f44d0
Capabilities:
Set socket configuration

Disassembly:
mov eax, dword [esp + 8]
push esi
mov dword [esp + 0xc], eax
lea eax, [esp + 0xc]
push eax
push 0x8004667e
push dword [esp + 0x10]
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov esi, eax
test esi, esi
jns 0x5f4510
push 0x248
push str..crypto_bio_b_sock.c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 5
push 2
call fcn.004f4f80
add esp, 0x14
xor eax, eax
test esi, esi
pop esi
sete al
ret
Function at 0x475bb3
Capabilities:
Inspect section memory permissions

Disassembly:
mov eax, dword [edi + 0xa0]
cmp eax, ebx
je 0x475c16
add eax, esi
cmp dword [eax], ebx
je 0x475c16
mov edx, dword [eax + 4]
lea ecx, [eax + 8]
add edx, eax
mov dword [ebp + 8], ecx
cmp ecx, edx
jae 0x475c11
mov ecx, dword [ebp + 8]
movzx ecx, word [ecx]
mov edx, ecx
and edx, 0xf000
cmp edx, 0x3000
jne 0x475bfb
and ecx, 0xfff
mov edx, esi
sub edx, dword [edi + 0x34]
add ecx, esi
add ecx, dword [eax]
add dword [ecx], edx
jmp 0x475c03
cmp edx, ebx
jne 0x475d51
mov ecx, dword [eax + 4]
add dword [ebp + 8], 2
add ecx, eax
cmp dword [ebp + 8], ecx
jb 0x475bd2
add eax, dword [eax + 4]
jmp 0x475bbf
mov dword [ebp + 0xc], ebx
jmp 0x475c21
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x475c39
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x475c57
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x475cb5
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x475c9c
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x475ca5
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x475caf
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x475c91
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x475c1b
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x475d02
dec eax
je 0x475cf9
sub eax, 3
je 0x475cf0
mov dword [ebp - 4], 0x40
jmp 0x475d1f
mov dword [ebp - 4], 4
jmp 0x475d05
mov dword [ebp - 4], 0x20
jmp 0x475d05
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push dword [ebp + 8]
call dword [ebp - 0xbc]
test eax, eax
je 0x475d51
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x475cd1
mov eax, dword [ebp - 0x88]
mov edi, dword [eax + 0x28]
add edi, esi
call fcn.00475562
xor al, 0x33
mov bl, 0xaa
push dword [ebp + 0x14]
push 1
push esi
call edi
mov eax, esi
jmp 0x475d5d
push 0x8000
push ebx
push esi
call dword [ebp - 8]

Function at 0x48789f
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.00418be8
call fcn.00415b86
cmp eax, esi
pop esi
jne 0x4878bb
mov ecx, 0x58ce50
jmp fcn.00428fa4
ret
Function at 0x10011270
Capabilities:
Accept command line arguments

Disassembly:
mov eax, dword [esp + 8]
cmp eax, 1
jne 0x10011334
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov dword [0x1003126c], eax
call fcn.10012440
test eax, eax
jne 0x10011294
ret 0xc
mov ecx, dword [0x1003126c]
xor edx, edx
mov eax, ecx
mov dl, ch
and eax, 0xff
mov dword [0x10031278], edx
mov dword [0x10031274], eax
shl eax, 8
add eax, edx
shr ecx, 0x10
mov dword [0x10031270], eax
mov dword [0x1003126c], ecx
call fcn.100115e0
test eax, eax
jne 0x100112d6
call fcn.10012480
xor eax, eax
ret 0xc
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x10088950], eax
call fcn.100122e0
mov ecx, dword [0x10088950]
mov dword [0x10031258], eax
test ecx, ecx
je 0x10011325
test eax, eax
je 0x10011325
call 0x10090fed
call fcn.100122d0
call 0x10090fed
call fcn.10011a30
call fcn.10011480
mov eax, dword [0x10031254]
inc eax
mov dword [0x10031254], eax
mov eax, 1
ret 0xc
call fcn.10011640
call fcn.10012480
xor eax, eax
ret 0xc
test eax, eax
jne 0x10011374
mov eax, dword [0x10031254]
test eax, eax
jle 0x1001136f
mov ecx, eax
mov eax, dword [0x100312a4]
dec ecx
test eax, eax
mov dword [0x10031254], ecx
jne 0x10011358
call fcn.100114d0
call fcn.100119d0
call fcn.10011640
call fcn.10012480
mov eax, 1
ret 0xc
xor eax, eax
ret 0xc
cmp eax, 3
jne 0x10011383
push 0
call fcn.10011710
add esp, 4
mov eax, 1
ret 0xc

Function at 0x100114e0
Capabilities:
Terminate process

Disassembly:
push ebx
push ebp
push esi
call fcn.100115a0
mov eax, dword [0x100312a8]
mov ebp, dword [esp + 0x10]
cmp eax, 1
jne 0x10011504
push ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
test eax, eax
mov dword [0x100312a4], 1
mov byte [0x100312a0], bl
jne 0x1001155e
mov ecx, dword [0x10088948]
test ecx, ecx
je 0x1001154c
mov esi, dword [0x10088944]
sub esi, 4
cmp esi, ecx
jb 0x1001154c
mov eax, dword [esi]
test eax, eax
je 0x10011545
call eax
mov ecx, dword [0x10088948]
sub esi, 4
cmp esi, ecx
jae 0x10011537
push 0x1001901c
push 0x10019014
call fcn.100115c0
add esp, 8
push 0x10019024
push 0x10019020
call fcn.100115c0
add esp, 8
test ebx, ebx
je 0x1001157d
call fcn.100115b0
pop esi
pop ebp
pop ebx
ret
push ebp
mov dword [0x100312a8], 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x100115e0
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
push esi
call fcn.100126e0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [0x1001a884], eax
je 0x10011638
push 0x74
push 1
call fcn.10012910
mov esi, eax
add esp, 8
test esi, esi
je 0x10011638
mov eax, dword [0x1001a884]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x10011638
push esi
call fcn.10011670
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esi], eax
mov dword [esi + 4], 0xffffffff
mov eax, 1
pop esi
ret
xor eax, eax
pop esi
ret
Function at 0x402ae0
Capabilities:
Create thread
Hide graphical window
Log keystrokes via application hook

Disassembly:
push ecx
push 0
push esi
push 0
push 0
push 0
push 0x80000000
push 0
push 0x80000000
push 0xcf0000
push 0x422640
push 0x422578
push 0
mov dword [0x422574], esi
call dword [sym.imp.USER32.dll_CreateWindowExW]
test eax, eax
jne 0x402b19
pop ecx
ret
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0
push esi
push sym.K_DONE.exe_long_int___stdcall_handleInputz_int__unsigned_int__long_int_
push 0xd
call dword [sym.imp.USER32.dll_SetWindowsHookExW]
mov dword [0x42270c], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
push 0
lea eax, [esp + 8]
push eax
push 0x402630
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x422d74], eax
mov eax, 1
pop ecx
ret

Function at 0x4041f9
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x420074]
jne 0x404203
repz ret
jmp fcn.00404e86

Function at 0x40fe5d
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.00406beb
and dword [ebp - 4], 0
cmp dword [0x4221d8], 0
mov ebx, eax
jne 0x40ff0e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40ffbf
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40ffbf
push eax
call fcn.00406b79
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4221d8], eax
call esi
push eax
call fcn.00406b79
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4221dc], eax
call esi
push eax
call fcn.00406b79
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4221e0], eax
call esi
push eax
call fcn.00406b79
pop ecx
mov dword [0x4221e8], eax
test eax, eax
je 0x40ff0e
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00406b79
pop ecx
mov dword [0x4221e4], eax
mov eax, dword [0x4221e4]
cmp eax, ebx
je 0x40ff66
cmp dword [0x4221e8], ebx
je 0x40ff66
push eax
call fcn.00406bf4
push dword [0x4221e8]
mov esi, eax
call fcn.00406bf4
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40ff66
test edi, edi
je 0x40ff66
call esi
test eax, eax
je 0x40ff5d
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40ff5d
test byte [ebp - 0xc], 1
jne 0x40ff66
or dword [ebp + 0x10], 0x200000
jmp 0x40ff9f
mov eax, dword [0x4221dc]
cmp eax, ebx
je 0x40ff9f
push eax
call fcn.00406bf4
pop ecx
test eax, eax
je 0x40ff9f
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40ff9f
mov eax, dword [0x4221e0]
cmp eax, ebx
je 0x40ff9f
push eax
call fcn.00406bf4
pop ecx
test eax, eax
je 0x40ff9f
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4221d8]
call fcn.00406bf4
pop ecx
test eax, eax
je 0x40ffbf
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40ffc1
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x407ef8
nop
mov ecx, 0x6eaa5d3f
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x42e04e
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x42e024
nop
nop
nop
nop
nop
mov eax, section..data_1
mov ebx, 0x42cd70
nop
nop
mov ecx, 0x9df2da8
nop
test eax, eax
nop
nop
nop
je 0x42e084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x42e06c
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x107c889f
Capabilities:
Encode data using xor

Disassembly:
jmp 0x10800fe8
push ebp
pushfd
add dl, dl
mov byte [esp + 4], 0x74
lea esp, [esp + 8]
jne 0x10835e53
setp dl
pushal
pushf
pop word [esp + 0x1e]
rcl dl, cl
pushal
stc
mov dl, byte [esi]
clc
cmc
rol dl, 3
bt si, 8
stc
xor dl, 0xe7
push dword [esp]
dec dl
call fcn.10801200
xchg ebx, eax
test edx, esp
sub dword [edx + 0x3a2df1a1], 0xa9dbdd32
sub esi, edx
rcl edx, cl
push ebx
aad 0x54
push eax
push edx
scasd eax, dword es:[edi]
sub byte [ebp + 0x5b2a45c1], dl
add esi, dword [ebp + 0x39]
mov al, 0x77
dec ebp
invalid
pushal
pushal
pushfd
pushfd
push dword [esp + 0x48]
ret 0x4c

Function at 0x10835f56
Capabilities:
Encode data using xor

Disassembly:
call fcn.107c8e09
sbb eax, 0x2002f40b
xor bh, byte [edi]
push es
mov al, 0xb8
push edi
shr dword [ecx + 0x2e5b5e26], cl
salc
push eax
rcl eax, 1
push edx
sub byte [edi], ch
and ebx, ecx
aad 0xed
enter 0x5ecd, 0xffffffffffffff87
push cs
sbb dword [edx], ebx
arpl cx, cx
leave
jb 0x10835f4b
mov edi, 0x5f5f1ba8
xchg byte [edx + 0x52207ed9], ah
xor al, ah
and dword [ecx], ecx
push ss
fcompi st(7)
jl 0x10835f7f
mov cl, 0x79
cmp dword [ebx], ecx
clc
xchg byte [esi + 0x47ca7945], dh
add eax, 0x78f222e9
add byte [eax], dh
sbb byte [edx + 0x6d], bh
push 0xffffffffffffffb2
xchg edx, eax
out dx, al
inc ecx
xor edi, dword [0xba4cc4c1]
ret 0x3ac0