joyce8/EMBER2024-capa huggingface dataset:
Function at 0x9d5f10
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x9ea9fb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov esi, dword [esp + 0x2c]
xor ebp, ebp
mov dword [esp + 0x10], eax
xor ebx, ebx
mov eax, 1
mov ecx, ebx
shl eax, cl
mov ecx, dword [esp + 0x10]
test ecx, eax
je 0x9d6002
lea edx, [ebx + 0x41]
lea eax, [esp + 0x14]
push edx
push str._c:_
push eax
call fcn.009d9dff
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x9d6002
lea edx, [esp + 0x14]
push edx
push str.Mounting__s_n
call fcn.009d16e0
lea eax, [esp + 0x1c]
lea edi, [esi + 0x1048]
push eax
push edi
mov word [esp + 0x28], bp
call fcn.009da20b
push 0x10
call fcn.009da1d3
add esp, 0x14
mov dword [esp + 0x2c], eax
cmp eax, ebp
mov dword [esp + 0x24], ebp
je 0x9d5fc5
mov cx, word [edi]
push ecx
mov ecx, eax
call fcn.009c61c0
jmp 0x9d5fc7
xor eax, eax
push esi
mov dword [esp + 0x28], 0xffffffff
mov dword [esi], eax
call fcn.009d5b80
mov edi, dword [esi]
add esp, 4
cmp edi, ebp
je 0x9d5ff0
mov ecx, edi
call fcn.009c62c0
push edi
call fcn.009da1c8
add esp, 4
mov edx, dword [esi + 0x1024]
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x9d6021
inc ebx
cmp ebx, 0x20
jb 0x9d5f3e
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x9d7250
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x9eb808
push 0x9db288
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x28], ebx
xor esi, esi
mov dword [ebp - 0x20], esi
mov byte [ebp - 0x24], bl
mov dword [ebp - 4], ebx
mov byte [ebp - 0x34], bl
mov byte [ebp - 0x33], bl
mov byte [ebp - 0x32], bl
mov byte [ebp - 0x31], bl
mov byte [ebp - 0x30], bl
mov byte [ebp - 0x2f], 5
lea eax, [ebp - 0x1c]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x12
push 1
lea ecx, [ebp - 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x9d7329
lea edx, [ebp - 0x28]
push edx
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x9d7329
mov dword [ebp - 0x2c], ebx
lea eax, [ebp - 0x2c]
push eax
push ebx
push ebx
push 1
mov ecx, dword [ebp - 0x28]
push ecx
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
call edi
mov edx, dword [ebp - 0x2c]
push edx
call fcn.009da1d3
add esp, 4
mov esi, eax
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x20], esi
cmp esi, ebx
je 0x9d7329
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
push esi
push 1
mov edx, dword [ebp - 0x28]
push edx
call edi
test eax, eax
je 0x9d7329
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [esi]
push ecx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 0x24], al
jmp 0x9d732c
mov al, byte [ebp - 0x24]
mov dword [ebp - 4], 0xffffffff
call fcn.009d7351
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x9d7d20
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov edx, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
lea eax, [esp + 4]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
mov dword [esp + 0x1c], 8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x9d7d58
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esi], ecx
mov dword [esi + 4], edx
pop esi
pop ecx
ret 0x10

Function at 0x9d7d60
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x9d7d94
mov eax, dword [esp + 0x14]
test eax, eax
je 0x9d7d94
push eax
push esi
call fcn.009da20b
add esp, 8
pop esi
ret 0x10

Function at 0x9d7da0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x24
lea eax, [esp + 0x28]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x9d7e22
push ebx
mov ebx, dword [esp + 0x30]
push esi
xor esi, esi
test ebx, ebx
jbe 0x9d7e15
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov edi, dword [esp + 0x40]
push esi
lea ecx, [esp + 0x18]
push 0x9f0320
push ecx
mov dword [esp + 0x1c], 4
call fcn.009d9dff
mov ecx, dword [esp + 0x44]
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
push edx
push edi
push 0
push 0
push eax
push ecx
call ebp
inc esi
add edi, 4
cmp esi, ebx
jb 0x9d7dda
pop edi
pop ebp
mov edx, dword [esp + 0x30]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
add esp, 0x24
ret 0xc

Function at 0x9d7e30
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x28
lea eax, [esp + 0x2c]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x9d7ec2
push ebp
mov ebp, dword [esp + 0x34]
push esi
xor esi, esi
test ebp, ebp
jbe 0x9d7eb5
push ebx
mov ebx, dword [esp + 0x40]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push esi
lea ecx, [esp + 0x1c]
push 0x9f0320
push ecx
mov dword [esp + 0x1c], 4
call fcn.009d9dff
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x40]
push eax
push 0
push 0
push ecx
push edx
call edi
test eax, eax
jne 0x9d7eab
mov ax, word [esp + 0x14]
mov word [ebx], ax
inc esi
add ebx, 2
cmp esi, ebp
jb 0x9d7e6a
pop edi
pop ebx
mov ecx, dword [esp + 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebp
add esp, 0x28
ret 0xc
Function at 0x9d8000
Capabilities:
Get file version info

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0x9d8131
push esi
call fcn.009db145
add esp, 4
mov edi, eax
push edi
push esi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push ebx
call fcn.009ca080
mov ebp, eax
add esp, 0x1c
cmp ebp, 0xffffffff
je 0x9d8131
push 0
push ebp
call fcn.009ca3a0
push 0
push 0
push 0
push 4
push 0
push ebp
mov ebx, eax
call fcn.009ca260
add esp, 0x20
mov dword [esp + 0x18], eax
test eax, eax
jne 0x9d808b
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 0
push 0
push 0
push 6
push eax
call fcn.009ca2f0
mov esi, eax
add esp, 0x14
test esi, esi
je 0x9d8121
push 0x9f0918
push edi
call fcn.009d93f0
push eax
push ebx
push esi
call fcn.009d7f60
push 0x9f08f8
push edi
call fcn.009d93f0
push eax
push ebx
push esi
call fcn.009d7f60
push 0x9f08d8
push edi
call fcn.009d93f0
push eax
push ebx
push esi
call fcn.009d7f60
push 0x9f08c0
push edi
call fcn.009d93f0
add esp, 0x44
push eax
push ebx
push esi
call fcn.009d7f60
push 0x9f08a0
push edi
call fcn.009d93f0
push eax
push ebx
push esi
call fcn.009d7f60
push 0x9f0888
push edi
call fcn.009d93f0
push eax
push ebx
push esi
call fcn.009d7f60
add esp, 0x34
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
push ebp
call esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x9d91b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.009d9140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.009d9140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.009d9140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.009d9140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0x9d9bfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x9d9c50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x9eb87c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x9d9c43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x9d9c52
xor eax, eax
pop esi
leave
ret 4
Function at 0x43b6ad
Capabilities:
Encode data using xor

Disassembly:
xor dh, dl
sub edx, ebp
lahf
sub edi, dword [edx + 0x2b]
mov bh, 0x14
outsb dx, byte [esi]
div byte [0x88362f87]
test eax, 0xbb1a7ffe
test byte [ecx - 0x43dd07b], bh
lcall 0xa57b, 0x95bb07e6
jnp 0x43b68a
jp 0x43b6e8
sti
mov esi, 0x9ef2c0e6
adc edx, edi
cmp edx, dword [edx + 0x76a7e323]
mov dword [0x7bac7ac7], eax
mov ebp, 0xf8f23724
mov ebx, 0x71eafaca
add al, 0x97
push es
popfd
push es
xchg dword [esi], esp
inc edi
cli
in al, 0x8f
xlatb
xchg esi, eax
push es
aad 0xb7
in eax, 0x73
jecxz 0x43b702
xchg esp, eax
invalid
mov bl, 0x69
aaa
imul ebx, dword [eax], 0x79
adc al, 0x53
cli
mov bh, 0xce
inc edi
push edi
sub dl, byte [edi + 0x2abcef95]
add edi, dword [edx]
jns 0x43b6fa
sub al, byte [ebx]
cmp bh, byte [ecx - 5]
and edi, esp
jnp 0x43b6d7
aam 0xf6
invalid
div bl
invalid

Function at 0x629cf5
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x6323c0
cmp edx, dword [eax]
je 0x629d17
add eax, 8
inc ecx
cmp eax, 0x632450
jl 0x629d08
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x6323c0]
jne 0x629e45
mov eax, dword [0x63ad68]
cmp eax, 1
je 0x629e1f
test eax, eax
jne 0x629d48
cmp dword [0x6322e8], 1
je 0x629e1f
cmp edx, 0xfc
je 0x629e45
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x629d7f
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
lea eax, [ebp + 8]
lea esi, [esi + 0x6323c4]
push 0
push eax
push dword [esi]
call fcn.0062ab70
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
pop eax
nop
nop
nop
nop
nop
add eax, 0x403daa
nop
nop
sub eax, 0x403d50
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x430030
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
popal
nop
nop
jmp loc.00401219

Function at 0x430000
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
nop
nop
pop eax
nop
nop
add eax, 0x403d6f
sub eax, 0x403d15
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
jl 0x430030
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp loc.00401219
Function at 0x401000
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push esi
push edi
push 0x103
lea eax, [ebp - 0x113]
push 0
push eax
mov byte [ebp - 0x114], 0
call fcn.0040425e
xor eax, eax
mov dword [ebp - 0xf], eax
mov dword [ebp - 0xb], eax
mov dword [ebp - 7], eax
mov word [ebp - 3], ax
mov byte [ebp - 1], al
add esp, 0xc
mov eax, 0x1c
mov byte [ebp - 0x10], 0
call fcn.00404252
mov edx, esp
test edx, edx
je 0x4010c1
mov esi, 0x409d9c
mov eax, edx
sub esi, edx
mov edi, 0x1b
lea esp, [esp]
mov cl, byte [esi + eax]
xor cl, 0x88
mov byte [eax], cl
inc eax
dec edi
jne 0x401060
mov byte [edx + 0x1b], 0
xor eax, eax
cmp byte [eax + edx], 0x5c
jne 0x4010bb
mov cl, byte [eax + edx + 1]
lea edi, [eax + edx + 1]
cmp cl, 0x5c
je 0x4010ae
cmp cl, 0x72
jne 0x401090
mov byte [eax + edx], 0xd
jmp 0x4010ae
cmp cl, 0x6e
jne 0x40109b
mov byte [eax + edx], 0xa
jmp 0x4010ae
cmp cl, 0x74
jne 0x4010a6
mov byte [eax + edx], 9
jmp 0x4010ae
cmp cl, 0x22
jne 0x4010bb
mov byte [eax + edx], cl
mov ecx, 0x1b
sub ecx, eax
lea esi, [eax + edx + 2]
rep movsb byte es:[edi], byte [esi]
inc eax
cmp eax, 0x1b
jb 0x401072
push 0x104
lea eax, [ebp - 0x114]
push eax
push edx
call dword [0x405090]
test eax, eax
je 0x40114d
lea eax, [ebp - 0x114]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4010e1
push 0x8003
lea ecx, [ebp - 0x10]
sub eax, edx
push ecx
push eax
lea edx, [ebp - 0x114]
push edx
call fcn.00402504
test eax, eax
je 0x40114d
push 8
lea eax, [ebp - 0x114]
lea edi, [ebp - 0x10]
call fcn.004025d9
lea eax, [ebp - 0x114]
push eax
mov esi, 1
call dword [0x4050c0]
test ax, ax
jne 0x40113f
lea ecx, [ebp - 0x114]
push ecx
call dword [0x4050b4]
test ax, ax
je 0x40113f
xor esi, esi
mov eax, esi
lea esp, [ebp - 0x11c]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, 1
lea esp, [ebp - 0x11c]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x401550
Capabilities:
Execute anti-debugging instructions

Disassembly:
push ebx
xor ebx, ebx
call fcn.004038dd
test eax, eax
je 0x40166a
push 0x40a1b8
call fcn.00403d70
add esp, 4
mov dword [0x420698], eax
cmp eax, 0xffffffff
je 0x40166a
push esi
mov esi, eax
cmp dword [0x420b78], ebx
jne 0x40159b
call dword [0x405048]
mov dword [0x420660], eax
mov dword [0x420b78], 1
push edi
xor edi, edi
test esi, esi
je 0x4015ca
mov ecx, dword [0x420660]
lea eax, [esi + 0xc]
push eax
push 8
push ecx
call dword [0x405058]
test eax, eax
je 0x4015ca
mov ecx, 0xabbabaab
mov dword [eax], esi
mov dword [eax + 4], ecx
mov dword [eax + esi + 8], ecx
lea edi, [eax + 8]
mov dword [0x420694], edi
test edi, edi
je 0x40166e
mov edx, dword [0x420698]
push edx
push edi
push 0x16469
push 0x40a1b8
call fcn.00403cf0
mov ecx, dword [0x420698]
add esp, 0x10
cmp eax, ecx
jne 0x40166e
mov eax, dword [0x420694]
test eax, eax
je 0x401661
test ecx, ecx
je 0x401661
mov esi, dword [eax + 0x3c]
mov ebx, dword [0x40512c]
add esi, eax
mov edi, eax
rdtsc
xor dword [section..data], eax
mov dword [esi + 0x58], ecx
call ebx
mov ecx, dword [section..data]
xor ecx, eax
mov eax, 0x80008001
mul ecx
shr edx, 0xf
add edx, ecx
mov word [edi], dx
rdtsc
xor ecx, eax
mov dword [section..data], ecx
call ebx
mov ecx, dword [section..data]
xor ecx, eax
xor edx, edx
or edi, 0xffffffff
mov eax, ecx
div edi
mov dword [section..data], ecx
add eax, ecx
mov dword [esi], eax
pop edi
pop esi
mov eax, 1
pop ebx
ret
mov eax, ebx
pop ebx
ret
pop edi
pop esi
mov eax, ebx
pop ebx
ret
Function at 0x401680
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push ebx
push esi
push edi
mov eax, 0x24
call fcn.00404252
mov eax, esp
test eax, eax
je 0x401711
mov esi, 0x40a0a8
mov ecx, eax
sub esi, eax
mov edi, 0x23
lea ebx, [ebx]
mov dl, byte [esi + ecx]
xor dl, 0x90
mov byte [ecx], dl
inc ecx
dec edi
jne 0x4016b0
mov byte [eax + 0x23], 0
xor edx, edx
cmp byte [edx + eax], 0x5c
jne 0x40170b
mov cl, byte [edx + eax + 1]
lea edi, [edx + eax + 1]
cmp cl, 0x5c
je 0x4016fe
cmp cl, 0x72
jne 0x4016e0
mov byte [edx + eax], 0xd
jmp 0x4016fe
cmp cl, 0x6e
jne 0x4016eb
mov byte [edx + eax], 0xa
jmp 0x4016fe
cmp cl, 0x74
jne 0x4016f6
mov byte [edx + eax], 9
jmp 0x4016fe
cmp cl, 0x22
jne 0x40170b
mov byte [edx + eax], cl
mov ecx, 0x23
sub ecx, edx
lea esi, [edx + eax + 2]
rep movsb byte es:[edi], byte [esi]
inc edx
cmp edx, 0x23
jb 0x4016c2
mov ebx, dword [0x405090]
push 0x104
lea ecx, [ebp - 0x104]
push ecx
push eax
call ebx
lea edx, [ebp - 0x104]
push edx
call dword [0x405154]
test eax, eax
jne 0x4017ea
mov eax, 0x24
call fcn.00404252
mov edx, esp
test edx, edx
je 0x4017c1
mov esi, 0x40a0cc
mov eax, edx
sub esi, edx
mov edi, 0x23
lea esp, [esp]
mov cl, byte [esi + eax]
xor cl, 0x91
mov byte [eax], cl
inc eax
dec edi
jne 0x401760
mov byte [edx + 0x23], 0
xor eax, eax
cmp byte [eax + edx], 0x5c
jne 0x4017bb
mov cl, byte [eax + edx + 1]
lea edi, [eax + edx + 1]
cmp cl, 0x5c
je 0x4017ae
cmp cl, 0x72
jne 0x401790
mov byte [eax + edx], 0xd
jmp 0x4017ae
cmp cl, 0x6e
jne 0x40179b
mov byte [eax + edx], 0xa
jmp 0x4017ae
cmp cl, 0x74
jne 0x4017a6
mov byte [eax + edx], 9
jmp 0x4017ae
cmp cl, 0x22
jne 0x4017bb
mov byte [eax + edx], cl
mov ecx, 0x23
sub ecx, eax
lea esi, [eax + edx + 2]
rep movsb byte es:[edi], byte [esi]
inc eax
cmp eax, 0x23
jb 0x401772
push 0x104
lea eax, [ebp - 0x104]
push eax
push edx
call ebx
lea ecx, [ebp - 0x104]
push ecx
call dword [0x405154]
test eax, eax
jne 0x4017ea
call fcn.00402ca6
test eax, eax
jne 0x401807
mov edx, dword [0x42068c]
neg edx
sbb edx, edx
and edx, 0x4206a0
push edx
lea eax, [ebp - 0x104]
push eax
call fcn.0040286a
push eax
call fcn.0040368e
lea esp, [ebp - 0x110]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4018c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov eax, 0xc
call fcn.00404252
mov esi, esp
mov dword [ebp - 4], esi
test esi, esi
je 0x4019b1
mov al, byte [0x40a0f0]
xor al, 0x94
mov byte [esi], al
movzx ecx, byte [0x40a0f1]
xor cl, 0x94
mov byte [esi + 1], cl
movzx edx, byte [0x40a0f2]
xor dl, 0x94
mov byte [esi + 2], dl
movzx ecx, byte [0x40a0f3]
lea eax, [esi + 1]
xor cl, 0x94
mov byte [esi + 3], cl
movzx edx, byte [0x40a0f4]
xor dl, 0x94
mov byte [esi + 4], dl
movzx ecx, byte [0x40a0f5]
xor cl, 0x94
mov byte [esi + 5], cl
movzx edx, byte [0x40a0f6]
xor dl, 0x94
mov byte [esi + 6], dl
movzx ecx, byte [0x40a0f7]
xor cl, 0x94
mov byte [esi + 7], cl
movzx edx, byte [0x40a0f8]
xor dl, 0x94
mov byte [esi + 8], dl
or edx, 0xffffffff
mov byte [esi + 9], 0
sub edx, esi
jmp 0x401960
cmp byte [eax - 1], 0x5c
jne 0x4019a8
mov cl, byte [eax]
cmp cl, 0x5c
je 0x401996
cmp cl, 0x72
jne 0x401978
mov byte [eax - 1], 0xd
jmp 0x401996
cmp cl, 0x6e
jne 0x401983
mov byte [eax - 1], 0xa
jmp 0x401996
cmp cl, 0x74
jne 0x40198e
mov byte [eax - 1], 9
jmp 0x401996
cmp cl, 0x22
jne 0x4019a8
mov byte [eax - 1], cl
mov ecx, 9
sub ecx, edx
sub ecx, eax
lea esi, [eax + 1]
mov edi, eax
rep movsb byte es:[edi], byte [esi]
mov esi, esp
inc eax
lea ecx, [edx + eax]
cmp ecx, 9
jb 0x401960
mov eax, 0xc
call fcn.00404252
mov ebx, esp
test ebx, ebx
je 0x401a33
mov edi, 0x40a0fc
mov eax, ebx
sub edi, ebx
mov ecx, 0xb
nop
mov dl, byte [edi + eax]
xor dl, 0x88
mov byte [eax], dl
inc eax
dec ecx
jne 0x4019d0
mov byte [ebx + 0xb], cl
xor eax, eax
cmp byte [eax + ebx], 0x5c
jne 0x401a2d
mov cl, byte [eax + ebx + 1]
lea edi, [eax + ebx + 1]
cmp cl, 0x5c
je 0x401a1d
cmp cl, 0x72
jne 0x4019ff
mov byte [eax + ebx], 0xd
jmp 0x401a1d
cmp cl, 0x6e
jne 0x401a0a
mov byte [eax + ebx], 0xa
jmp 0x401a1d
cmp cl, 0x74
jne 0x401a15
mov byte [eax + ebx], 9
jmp 0x401a1d
cmp cl, 0x22
jne 0x401a2d
mov byte [eax + ebx], cl
mov ecx, 0xb
sub ecx, eax
lea esi, [eax + ebx + 2]
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp - 4]
inc eax
cmp eax, 0xb
jb 0x4019e1
mov edi, dword [0x405080]
lea esp, [esp]
push esi
call edi
test eax, eax
jne 0x401a4e
push ebx
call edi
test eax, eax
je 0x401a5b
push 0x3e8
call dword [0x40508c]
jmp 0x401a40
lea esp, [ebp - 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x403a50
Capabilities:
Encode data using xor

Disassembly:
push esi
push edi
test ebx, ebx
je 0x403a6b
mov esi, edx
mov ecx, eax
sub esi, eax
mov edi, ebx
mov dl, byte [esi + ecx]
xor dl, byte [esp + 0xc]
mov byte [ecx], dl
inc ecx
dec edi
jne 0x403a5e
xor edx, edx
mov byte [ebx + eax], dl
cmp ebx, edx
jbe 0x403abb
lea esi, [edx + eax]
cmp byte [esi], 0x5c
jne 0x403ab6
lea edi, [edx + eax + 1]
mov cl, byte [edi]
cmp cl, 0x5c
je 0x403aac
cmp cl, 0x72
jne 0x403a91
mov byte [esi], 0xd
jmp 0x403aac
cmp cl, 0x6e
jne 0x403a9b
mov byte [esi], 0xa
jmp 0x403aac
cmp cl, 0x74
jne 0x403aa5
mov byte [esi], 9
jmp 0x403aac
cmp cl, 0x22
jne 0x403ab6
mov byte [esi], cl
mov ecx, ebx
sub ecx, edx
lea esi, [edx + eax + 2]
rep movsb byte es:[edi], byte [esi]
inc edx
cmp edx, ebx
jb 0x403a74
pop edi
pop esi
ret 4
Function at 0x401120
Capabilities:
Get session user name

Disassembly:
sub esp, 0xd0
mov eax, dword [0x408020]
xor eax, esp
mov dword [esp + 0xcc], eax
lea eax, [esp]
push eax
lea ecx, [esp + 8]
mov dword [esp + 4], 0
push ecx
mov dword [esp + 8], 0xc8
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
lea edx, [esp + 4]
push edx
mov ecx, esi
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
mov ecx, dword [esp + 0xcc]
xor ecx, esp
mov eax, esi
call fcn.0040382c
add esp, 0xd0
ret
Function at 0x4015d0
Capabilities:
Download url
Get common file path
Receive data

Disassembly:
push 0xffffffffffffffff
push 0x4045e8
mov eax, dword fs:[0]
push eax
sub esp, 0x144
mov eax, dword [0x408020]
xor eax, esp
mov dword [esp + 0x140], eax
push ebx
push esi
mov eax, dword [0x408020]
xor eax, esp
push eax
lea eax, [esp + 0x150]
mov dword fs:[0], eax
lea eax, [esp + 0x48]
push eax
push 0
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
sub esp, 0x1c
mov dword [esp + 0x28], esp
mov esi, esp
sub esp, 0x1c
lea edx, [esp + 0x80]
mov ecx, esp
mov dword [esp + 0x44], esp
push edx
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
call fcn.00401180
add esp, 0x1c
lea ebx, [esp + 0x48]
call fcn.00401350
push str.cpp_logo285728.test
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x34]
xor ebx, ebx
push ecx
mov dword [esp + 0x180], ebx
call dword [sym.imp.MSVCP90.dll_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_std::operator_char__struct_std::char_traits_char___class_std::allocator_char___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___char_const__]
add esp, 0x28
push str.http:__en.wikipedia.org
call dword [sym.imp.WININET.dll_DeleteUrlCacheEntryA]
cmp dword [esp + 0x28], 0x10
mov eax, dword [esp + 0x14]
jae 0x401688
lea eax, [esp + 0x14]
push ebx
push ebx
push eax
push str.http:__en.wikipedia.org
push ebx
call sub.urlmon.dll_URLDownloadToFileA
mov byte [esp + 0x158], bl
lea ecx, [esp + 0x10]
cmp eax, ebx
jne 0x4016c4
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x2c]
mov dword [esp + 0x158], 0xffffffff
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov al, 1
jmp 0x4016e1
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x2c]
mov dword [esp + 0x158], 0xffffffff
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
xor al, al
mov ecx, dword [esp + 0x150]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x140]
xor ecx, esp
call fcn.0040382c
add esp, 0x150
ret