joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4048f0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x464880
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x49806c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x10]
push dword [ebp + 0xc]
call fcn.00406ad0
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.00406420
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x404955
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
test eax, eax
jne 0x404955
lea esi, [eax + 1]
jmp 0x40496b
push 1
push ecx
push dword [ebp + 0x10]
lea eax, [ebp + 0xc]
mov ecx, esi
push eax
push dword [ebp + 8]
call fcn.00403270
mov esi, eax
mov byte [ebp - 4], 0
or edi, 0xffffffff
mov edx, dword [ebp - 0x10]
mov ecx, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x40498c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp + 0xc]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x4049ab
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x404a10
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4648b0
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
mov eax, dword [0x49806c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
sub ecx, 0x10
call fcn.004079c0
add eax, 0x10
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], 0
mov ecx, dword [eax]
sub ecx, 0x10
call fcn.004079c0
add eax, 0x10
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 1
push eax
lea ecx, [esi + 0x30]
call fcn.004096e0
push eax
add eax, 0x10
push eax
push ecx
lea eax, [ebp - 0x1c]
push eax
lea ecx, [esi + 0x30]
call fcn.00409790
cmp byte [ebp - 0x18], 0
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x10]
sete bl
or esi, 0xffffffff
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x404ab6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x404ace
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor eax, eax
mov ecx, 2
test bl, bl
cmovne eax, ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x407b70
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
mov ecx, 0
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, 0x811c9dc5
sub edx, edi
sar edx, 1
add edx, edx
je 0x407ba1
nop dword [eax]
movzx eax, byte [ecx + edi]
inc ecx
xor eax, esi
imul esi, eax, 0x1000193
cmp ecx, edx
jb 0x407b90
pop edi
mov eax, esi
pop esi
pop ebp
ret 8
Function at 0x40e9c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
add eax, eax
mov dword [edi], 0
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0x10]
push eax
push esi
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 8]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40ea31
mov eax, dword [ebp + 0xc]
cmp eax, 1
je 0x40e9ff
cmp eax, 2
jne 0x40ea1b
mov ecx, dword [ebp + 0x10]
test esi, esi
je 0x40ea2b
test ecx, ecx
je 0x40ea26
test cl, 1
jne 0x40ea1b
mov eax, ecx
shr eax, 1
cmp word [esi + eax*2 - 2], 0
je 0x40ea2b
pop edi
mov eax, 0xd
pop esi
pop ebp
ret 0xc
xor eax, eax
mov word [esi], ax
shr ecx, 1
xor eax, eax
mov dword [edi], ecx
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x40ea40
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x228
mov eax, dword [0x49806c]
xor eax, esp
mov dword [esp + 0x224], eax
mov eax, dword [ecx + 4]
mov edx, dword [ebp + 8]
or eax, 0x2001f
push esi
push edi
push eax
push edx
push dword [ecx]
mov dword [esp + 0x28], ecx
lea ecx, [esp + 0x18]
mov dword [esp + 0x24], edx
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
call fcn.0040e910
mov esi, eax
test esi, esi
jne 0x40eb37
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea eax, [esp + 0x20]
push eax
push esi
push esi
push esi
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0x100
push eax
lea eax, [esp + 0x3c]
push eax
push esi
push dword [esp + 0x28]
call edi
test eax, eax
jne 0x40eb09
nop dword [eax]
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x10]
call fcn.0040ea40
mov esi, eax
test esi, esi
jne 0x40eb37
lea eax, [esp + 0x20]
mov dword [esp + 8], 0x100
push eax
push esi
push esi
push esi
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x3c]
push eax
push esi
push dword [esp + 0x28]
call edi
test eax, eax
je 0x40ead0
mov eax, dword [esp + 0xc]
test eax, eax
je 0x40eb20
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0xc], 0
push dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x14], 0
call fcn.0040e760
mov esi, eax
mov eax, dword [esp + 0xc]
test eax, eax
je 0x40eb46
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x22c]
mov eax, esi
pop edi
pop esi
xor ecx, esp
call fcn.0043f6c1
mov esp, ebp
pop ebp
ret 4
Function at 0x40ebe0
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x465040
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x49806c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
push 0
lea eax, [ebp - 0x14]
mov dword [ebp - 0x10], 0
push eax
push 0
lea esi, [ecx + 4]
push ebx
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x40ec44
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp - 0x10]
xor ecx, ecx
shr eax, 1
mov edx, 2
mov dword [ebp + 8], eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0043fed1
mov edi, eax
add esp, 4
mov dword [ebp - 0x18], edi
lea eax, [ebp + 8]
mov dword [ebp - 4], 0
push eax
push edi
push ebx
mov ecx, esi
call fcn.0040e9c0
test eax, eax
jne 0x40ecf8
cmp dword [ebp - 0x14], 2
jne 0x40ecfc
push eax
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_ExpandEnvironmentStringsW]
xor ecx, ecx
mov ebx, eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0043fed1
mov esi, eax
add esp, 4
mov dword [ebp + 8], esi
push ebx
push esi
push edi
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.DLL_ExpandEnvironmentStringsW]
test eax, eax
je 0x40eced
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40ecc7
sub ecx, edx
sar ecx, 1
push ecx
mov ecx, dword [ebp + 0xc]
push esi
call fcn.00407090
push 2
push esi
call fcn.0043ff54
add esp, 8
jmp 0x40ed1a
push 2
push esi
call fcn.0043ff54
add esp, 8
xor esi, esi
jmp 0x40ed1f
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40ed01
sub ecx, edx
sar ecx, 1
push ecx
mov ecx, dword [ebp + 0xc]
push edi
call fcn.00407090
mov esi, 1
push 2
push edi
call fcn.0043ff54
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x410480
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x465276
mov eax, dword fs:[0]
push eax
mov eax, 0x883c
call fcn.00440940
mov eax, dword [0x49806c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov dword [ebp - 0x8818], ebx
mov edi, ecx
mov dword [ebp - 0x8824], edi
push 0x800
lea eax, [ebp - 0x810]
push 0
push eax
call fcn.00441bb0
add esp, 0xc
mov dword [ebp - 0x8840], 0x400
lea eax, [ebp - 0x8848]
mov dword [ebp - 0x883c], 0
mov dword [ebp - 0x8838], 0
mov dword [ebp - 0x8834], 0
push eax
lea eax, [ebp - 0x8828]
mov dword [ebp - 0x881c], 0
push eax
lea eax, [ebp - 0x882c]
mov dword [ebp - 0x8830], 0
push eax
lea eax, [ebp - 0x8830]
mov dword [ebp - 0x882c], 0
push eax
lea eax, [ebp - 0x881c]
mov dword [ebp - 0x8828], 0
push eax
lea eax, [ebp - 0x8834]
mov dword [ebp - 0x8820], 0x3fff
push eax
lea eax, [ebp - 0x8838]
push eax
lea eax, [ebp - 0x883c]
push eax
push 0
lea eax, [ebp - 0x8840]
push eax
lea eax, [ebp - 0x810]
push eax
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
je 0x41058d
xor al, al
jmp 0x4106c2
mov eax, dword [ebp - 0x881c]
test eax, eax
je 0x410586
xor esi, esi
test eax, eax
je 0x4106c0
xor eax, eax
mov dword [ebp - 0x8820], 0x3fff
push eax
push eax
push eax
push eax
mov word [ebp - 0x8810], ax
lea eax, [ebp - 0x8820]
push eax
lea eax, [ebp - 0x8810]
push eax
push esi
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x4106b3
call fcn.00401640
test eax, eax
je 0x4106e8
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x8814], eax
lea eax, [ebp - 0x8810]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x8814]
call fcn.00407350
test al, al
jne 0x410642
lea eax, [ebp - 0x8810]
lea edx, [eax + 2]
nop word [eax + eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x410620
sub eax, edx
lea ecx, [ebp - 0x8814]
sar eax, 1
push eax
lea eax, [ebp - 0x8810]
push eax
call fcn.00407a80
mov dword [ebp - 4], 1
lea eax, [ebp - 0x8814]
mov edi, dword [ebx]
push eax
mov ebx, dword [edi + 4]
push ebx
push edi
call fcn.00413730
mov ecx, dword [ebp - 0x8818]
mov edx, dword [ecx + 4]
mov ecx, 0x15555554
sub ecx, edx
cmp ecx, 1
jb 0x4106de
lea ecx, [edx + 1]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x8818]
mov dword [edx + 4], ecx
mov edx, dword [ebp - 0x8814]
mov dword [edi + 4], eax
add edx, 0xfffffff0
mov dword [ebx], eax
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4106a7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp - 0x8824]
mov ebx, dword [ebp - 0x8818]
inc esi
cmp esi, dword [ebp - 0x881c]
jb 0x4105a1
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0043f6c1
mov esp, ebp
pop ebp
ret
push str.list_T__too_long
call fcn.0043e5e1
push 0x80004005
call fcn.004012a0
int3
Function at 0x410c40
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46533b
mov eax, dword fs:[0]
push eax
sub esp, 0x814
mov eax, dword [0x49806c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x818], ebx
mov dword [ebp - 0x820], ebx
mov dword [ebp - 0x81c], 0
mov dword [ebp - 4], 1
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
call fcn.004079c0
lea esi, [eax + 0x10]
mov dword [ebx], esi
push 0x800
lea eax, [ebp - 0x810]
mov dword [ebp - 0x81c], 1
push 0
push eax
call fcn.00441bb0
mov eax, dword [esi - 0xc]
add esp, 0xc
or edi, 0xffffffff
mov dword [ebp - 0x814], eax
test eax, eax
je 0x410e21
js 0x410e21
push 0x47ac50
push esi
call fcn.00441602
mov esi, eax
add esp, 8
test esi, esi
je 0x410e21
mov ecx, dword [ebx]
sub esi, ecx
sar esi, 1
cmp esi, edi
je 0x410e21
mov eax, dword [ebp - 0x814]
dec eax
cmp esi, eax
je 0x410e21
lea eax, [esi + 1]
test eax, eax
js 0x410d33
cmp eax, dword [ecx - 0xc]
jg 0x410d33
lea eax, [ecx + eax*2]
push 0x47ac54
push eax
call fcn.00441602
add esp, 8
test eax, eax
je 0x410d33
sub eax, dword [ebx]
sar eax, 1
jmp 0x410d36
or eax, 0xffffffff
sub eax, esi
mov ecx, ebx
inc eax
push eax
push esi
lea eax, [ebp - 0x818]
push eax
call fcn.00406770
push 0x400
lea eax, [ebp - 0x810]
mov byte [ebp - 4], 2
mov edi, dword [ebp - 0x818]
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_ExpandEnvironmentStringsW]
call fcn.00401640
mov ecx, eax
test ecx, ecx
jne 0x410d7b
push 0x80004005
call fcn.004012a0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x814], eax
lea eax, [ebp - 0x810]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x814]
call fcn.00407350
test al, al
jne 0x410dd2
lea ecx, [ebp - 0x810]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x410db0
sub ecx, edx
lea eax, [ebp - 0x810]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x814]
call fcn.00407a80
mov byte [ebp - 4], 4
mov ecx, ebx
mov esi, dword [ebp - 0x814]
push esi
push edi
call fcn.00413180
lea edx, [esi - 0x10]
mov byte [ebp - 4], 2
or esi, 0xffffffff
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x410e03
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
add edi, 0xfffffff0
mov eax, esi
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x410e1e
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
or edi, 0xffffffff
mov byte [ebp - 4], 0
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], edi
dec edi
test edi, edi
jg 0x410e3d
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0043f6c1
mov esp, ebp
pop ebp
ret
Function at 0x410f40
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x465380
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
mov eax, dword [0x49806c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push ecx
mov dword [ebp - 4], 0
mov esi, esp
mov dword [ebp - 0x14], esi
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
call fcn.004079c0
add eax, 0x10
lea ecx, [ebp - 0x14]
mov dword [esi], eax
call fcn.00410c40
add esp, 4
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x10]
push dword [eax]
call fcn.00406ad0
mov byte [ebp - 4], 0
or esi, 0xffffffff
mov edx, dword [ebp - 0x14]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x410fbe
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x410fdc
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x410fdc
mov bl, 1
jmp 0x410fde
xor bl, bl
mov edx, dword [ebp - 0x10]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x410ff8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], esi
dec esi
test esi, esi
jg 0x411017
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x411030
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4653c9
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x49806c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov dword [ebp - 0x1c], edi
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 0
call fcn.00401640
mov ecx, eax
test ecx, ecx
jne 0x411083
push 0x80004005
call fcn.004012a0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
push 0x47ac58
mov ecx, edi
mov dword [ebp - 4], 1
call fcn.00407350
test al, al
jne 0x4110b2
push 0
push 0x47ac58
mov ecx, edi
call fcn.00407a80
push 0
mov dword [ebp - 4], 0
push 0
mov dword [ebp - 0x14], 1
call dword [sym.imp.KERNEL32.DLL_GetTempPathW]
xor ecx, ecx
mov dword [ebp - 0x18], eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0043fed1
mov esi, eax
add esp, 4
mov dword [ebp - 0x20], esi
push esi
push dword [ebp - 0x18]
mov dword [ebp - 4], 2
mov byte [ebp - 4], 3
call dword [sym.imp.KERNEL32.DLL_GetTempPathW]
test eax, eax
je 0x411129
test esi, esi
jne 0x41110c
xor ecx, ecx
jmp 0x411120
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x411111
sub ecx, edx
sar ecx, 1
push ecx
push esi
mov ecx, edi
call fcn.00407a80
push 0x5c
push dword [edi]
call fcn.00441b0b
mov ecx, eax
add esp, 8
test ecx, ecx
jne 0x411140
or ecx, 0xffffffff
jmp 0x411144
sub ecx, dword [edi]
sar ecx, 1
mov eax, dword [edi]
mov eax, dword [eax - 0xc]
dec eax
cmp ecx, eax
je 0x41116a
push 1
push 0x47ac5c
mov ecx, edi
call fcn.004081d0
jmp 0x41116a
push 2
push esi
call fcn.0043ff54
add esp, 8
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x411190
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x465410
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push esi
push edi
mov eax, dword [0x49806c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x20], edi
lea ecx, [ebp - 0x10]
call fcn.00411030
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 0
call fcn.00432530
mov byte [ebp - 4], 1
or esi, 0xffffffff
mov eax, dword [ebp - 0x14]
cmp dword [eax - 0xc], 0
jne 0x411222
push ecx
mov edx, 0x47ac60
lea ecx, [ebp - 0x1c]
call fcn.0040fa80
add esp, 4
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.00406a60
mov byte [ebp - 4], 1
mov eax, esi
mov edx, dword [ebp - 0x1c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41121f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x14]
push dword [eax - 0xc]
lea ecx, [ebp - 0x10]
push eax
call fcn.004081d0
push 1
push 0x47ac8c
lea ecx, [ebp - 0x10]
call fcn.004081d0
push dword [ebp - 0x10]
lea ecx, [ebp - 0x18]
call fcn.00406ad0
mov byte [ebp - 4], 3
push dword [ebp - 0x18]
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x411275
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
test eax, eax
jne 0x411275
push 0x47ac90
mov ecx, edi
call fcn.00406ad0
jmp 0x411285
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.004079c0
add eax, 0x10
mov dword [edi], eax
mov byte [ebp - 4], 1
mov eax, esi
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4112a3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov eax, esi
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4112c1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x4112e0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4120e0
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4004
call fcn.00440940
mov eax, dword [0x49806c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x3c
mov edi, edx
mov esi, ecx
push 0
push edi
call fcn.00441bb0
add esp, 0xc
mov dword [edi], 0x3c
lea eax, [ebp - 0x2004]
mov dword [edi + 0x14], 0x1000
mov dword [edi + 0x10], eax
lea eax, [ebp - 0x4004]
mov dword [edi + 0x2c], eax
mov dword [edi + 0x30], 0x1000
mov eax, dword [esi]
push edi
push 0
push dword [eax - 0xc]
push eax
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
mov ecx, dword [ebp - 4]
neg eax
pop edi
sbb eax, eax
xor ecx, ebp
neg eax
pop esi
call fcn.0043f6c1
mov esp, ebp
pop ebp
ret

Function at 0x412840
Capabilities:
Check os version
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x170
mov eax, dword [0x49806c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor esi, esi
mov dword [ebp - 0x170], 0
push 0x110
lea eax, [ebp - 0x158]
mov dword [ebp - 0x160], esi
push esi
push eax
mov dword [ebp - 0x164], esi
mov dword [ebp - 0x168], esi
mov dword [ebp - 0x15c], 0x114
call fcn.00441bb0
add esp, 0xc
lea eax, [ebp - 0x160]
push eax
push 0xa
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x41297c
lea eax, [ebp - 0x15c]
push eax
call dword [sym.imp.KERNEL32.DLL_GetVersionExW]
test eax, eax
je 0x41297c
cmp dword [ebp - 0x158], 6
jb 0x41291d
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea eax, [ebp - 0x168]
push eax
push 4
lea eax, [ebp - 0x16c]
push eax
push 0x12
push dword [ebp - 0x160]
call edi
test eax, eax
je 0x41297c
cmp dword [ebp - 0x16c], 3
jne 0x41291d
lea eax, [ebp - 0x168]
push eax
push 4
lea eax, [ebp - 0x164]
push eax
push 0x13
push dword [ebp - 0x160]
call edi
test eax, eax
je 0x41297c
cmp dword [ebp - 0x164], esi
jne 0x41293e
lea eax, [ebp - 0x164]
push eax
push 1
push dword [ebp - 0x160]
call dword [sym.imp.ADVAPI32.dll_DuplicateToken]
test eax, eax
je 0x41297c
lea eax, [ebp - 0x168]
mov dword [ebp - 0x168], 0x44
push eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0x1a
call dword [sym.imp.ADVAPI32.dll_CreateWellKnownSid]
test eax, eax
je 0x41297c
lea eax, [ebp - 0x170]
push eax
lea eax, [ebp - 0x48]
push eax
push dword [ebp - 0x164]
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x412984
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov esi, eax
mov eax, dword [ebp - 0x160]
mov edi, dword [sym.imp.KERNEL32.DLL_CloseHandle]
test eax, eax
je 0x4129a1
push eax
call edi
mov dword [ebp - 0x160], 0
mov eax, dword [ebp - 0x164]
test eax, eax
je 0x4129b8
push eax
call edi
mov dword [ebp - 0x164], 0
test esi, esi
jne 0x4129d5
cmp dword [ebp - 0x170], esi
mov ecx, dword [ebp - 4]
setne al
xor ecx, ebp
pop edi
pop esi
call fcn.0043f6c1
mov esp, ebp
pop ebp
ret
push 0x4960a8
lea eax, [ebp - 0x16c]
mov dword [ebp - 0x16c], esi
push eax
call fcn.00442284
int3
Function at 0x418780
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x465978
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push esi
push edi
mov eax, dword [0x49806c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
cmp dword [ebp + 0x1c], 0
jne 0x418890
mov eax, dword [ebp + 0xc]
cmp eax, 0x100
jne 0x418866
mov esi, dword [ebp + 0x10]
cmp esi, 8
je 0x418845
cmp esi, 0x25
je 0x418845
cmp esi, 0x27
je 0x418845
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
shr eax, 8
test al, al
je 0x4187ec
cmp esi, 0x46
je 0x418845
cmp esi, 0x50
je 0x418845
cmp esi, 0x74
je 0x418845
mov dword [ebp + 0x1c], 0
mov eax, dword [ebp + 0x14]
lea ecx, [edi + 0x4c]
mov dword [ebp - 4], 0
mov dword [ebp - 0x1c], eax
lea eax, [ebp + 0x1c]
push eax
push 0x469530
mov dword [ebp - 0x24], 0x100
mov dword [ebp - 0x20], esi
call fcn.0041a100
test eax, eax
js 0x418831
mov eax, dword [ebp + 0x1c]
lea edx, [ebp - 0x28]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0x1c]
test eax, eax
je 0x418845
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp + 0x18]
mov dword [eax], 0
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x18
cmp eax, 2
jne 0x418890
sub esp, 0x10
call fcn.00418e90
mov ecx, dword [ebp + 0x18]
mov dword [ecx], eax
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x18
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x18