joyce8/EMBER2024-capa huggingface dataset:
Function at 0x81f858
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffcd8
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov edi, dword [ebp + 8]
xor ebx, ebx
mov eax, dword [ebp - 4]
cmp byte [eax + 0x34], 0
je 0x81f9da
cmp dword [ebp - 8], 0
je 0x81f8a9
lea ebx, [ebp - 0x120]
lea eax, [ebp - 0x120]
call fcn.0061c830
lea edx, [ebp - 0x120]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x44]
call fcn.0061c820
jmp 0x81f8ab
xor ebx, ebx
cmp dword [ebp - 0xc], 0
je 0x81f8d5
lea esi, [ebp - 0x224]
lea eax, [ebp - 0x224]
call fcn.0061c830
lea edx, [ebp - 0x224]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x44]
call fcn.0061c820
jmp 0x81f8d7
xor esi, esi
cmp dword [ebp + 0xc], 0
je 0x81f904
lea eax, [ebp - 0x328]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x328]
call fcn.0061c830
lea edx, [ebp - 0x328]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x44]
call fcn.0061c820
jmp 0x81f909
xor eax, eax
mov dword [ebp - 0x10], eax
test edi, edi
jl 0x81f935
mov eax, edi
mov ecx, 0x3e8
cdq
idiv ecx
mov dword [ebp - 0x18], eax
mov eax, edi
mov ecx, 0x3e8
cdq
idiv ecx
imul eax, edx, 0x3e8
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x1c], eax
jmp 0x81f93a
xor eax, eax
mov dword [ebp - 0x1c], eax
xor eax, eax
push ebp
push 0x81f97a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x10]
push eax
push esi
push ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x44]
inc eax
push eax
call sub.wsock32.dll_select
mov edx, eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x3c]
test eax, eax
setg al
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x81f986
cmp dword [ebp - 8], 0
je 0x81f9a2
lea edx, [ebp - 0x120]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x44]
call fcn.0061c808
mov edx, dword [ebp - 8]
mov byte [edx], al
cmp dword [ebp - 0xc], 0
je 0x81f9be
lea edx, [ebp - 0x224]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x44]
call fcn.0061c808
mov edx, dword [ebp - 0xc]
mov byte [edx], al
cmp dword [ebp + 0xc], 0
je 0x81f9da
lea edx, [ebp - 0x328]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x44]
call fcn.0061c808
mov edx, dword [ebp + 0xc]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x81fc90
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov esi, ecx
mov ebx, edx
xor eax, eax
push ebp
push 0x81fd73
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.004069c8
test ebx, ebx
je 0x81fd51
movzx eax, byte [ebx]
add al, 0xd0
sub al, 0xa
jae 0x81fce7
mov eax, ebx
call fcn.004071dc
push eax
call sub.wsock32.dll_inet_addr
inc eax
je 0x81fd5d
mov eax, esi
mov edx, ebx
call fcn.00406a1c
jmp 0x81fd5d
mov eax, ebx
call fcn.004071dc
push eax
call sub.wsock32.dll_gethostbyname
test eax, eax
je 0x81fd5d
mov ebx, eax
lea eax, [ebp - 4]
push eax
mov eax, dword [ebx + 0xc]
mov edi, dword [eax]
movzx eax, byte [edi]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0
movzx eax, byte [edi + 1]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0
movzx eax, byte [edi + 2]
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0
movzx eax, byte [edi + 3]
mov dword [ebp - 0xc], eax
mov byte [ebp - 8], 0
lea edx, [ebp - 0x24]
mov ecx, 3
mov eax, 0x81fd90
call fcn.00417450
mov edx, dword [ebp - 4]
mov eax, esi
mov ecx, 0
call fcn.00407e00
jmp 0x81fd5d
mov eax, esi
mov edx, 0x81fdb4
call fcn.00406a1c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x81fd7a
lea eax, [ebp - 4]
call fcn.00407b9c
ret
Function at 0x855cf8
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
test dl, dl
je 0x855d0d
add esp, 0xfffffff0
call fcn.00405b5c
mov esi, ecx
mov byte [ebp - 1], dl
mov ebx, eax
mov dl, 1
mov eax, dword [0x85a328]
call fcn.0085c70c
mov edi, eax
mov dword [ebx + 0x44], edi
mov dword [edi + 0x1c], ebx
mov dword [edi + 0x18], 0x856058
movzx eax, byte [0x855e68]
mov byte [ebx + 0x38], al
mov ecx, esi
mov dl, 1
mov eax, dword [0x65c6c8]
call fcn.0065c87c
mov edi, eax
mov dword [ebx + 0x18], edi
mov eax, edi
mov edx, esi
mov ecx, dword [eax]
call dword [ecx + 0x78]
mov eax, dword [ebx + 0x18]
mov eax, dword [eax + 0x70]
mov ecx, 8
mov edx, 3
call fcn.004e9e90
mov eax, dword [ebx + 0x18]
mov eax, dword [eax + 0x70]
mov ecx, 8
mov edx, 2
call fcn.004e9e90
mov eax, dword [ebx + 0x18]
mov eax, dword [eax + 0x70]
mov ecx, dword [ebp + 0xc]
mov edx, 1
call fcn.004e9e90
mov eax, dword [ebx + 0x18]
mov eax, dword [eax + 0x70]
mov ecx, dword [ebp + 8]
xor edx, edx
call fcn.004e9e90
mov eax, dword [ebx + 0x18]
xor edx, edx
call fcn.0065cb3c
mov eax, dword [ebx + 0x18]
mov byte [eax + 0x290], 0
mov dword [eax + 0xec], ebx
mov dword [eax + 0xe8], 0x856164
mov edx, dword [ebp + 0xc]
call fcn.004ead70
mov eax, dword [ebx + 0x18]
mov edx, dword [ebp + 8]
call reloc.user32.dll_SetWindowRgn
mov eax, dword [ebx + 0x18]
call fcn.004eb9e8
mov eax, dword [ebx + 0x18]
mov dl, 1
call fcn.004eb650
mov ecx, dword [ebx + 0x18]
mov dl, 1
mov eax, dword [0x85a1b8]
call fcn.0085b880
mov dword [ebx + 0x1c], eax
mov byte [ebx + 0x39], 0
mov dword [ebx + 0x40], 5
xor eax, eax
mov dword [ebx + 0x3c], eax
mov dword [ebx + 0x24], 0x258
call fcn.0041983c
fstp qword [ebx + 0x28]
wait
fld qword [ebx + 0x28]
fadd dword [0x855e6c]
fstp qword [ebp - 0x10]
wait
mov eax, dword [ebp - 0x10]
mov dword [ebx + 0x30], eax
mov eax, dword [ebp - 0xc]
mov dword [ebx + 0x34], eax
mov dword [ebx + 0x48], 1
mov eax, ebx
call fcn.00856178
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x855e5b
call fcn.00405bb4
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x856f70
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 4], edx
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x857126
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x18]
mov eax, dword [ecx + 0x48]
mov edx, dword [ebp - 0xc]
mov ebx, dword [edx + 0x48]
cdq
idiv ebx
push eax
mov eax, dword [ecx + 0x4c]
cdq
idiv ebx
push eax
mov ecx, dword [ecx + 0x34]
mov dl, 1
mov eax, dword [0x854f90]
call fcn.00855cf8
mov dword [ebp - 0x10], eax
lea edx, [ebp - 4]
mov eax, dword [ebp - 0xc]
call fcn.00856694
mov eax, dword [ebp - 4]
call fcn.004095e4
push eax
xor ecx, ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
call fcn.00856afc
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x44]
mov eax, dword [eax + 8]
dec eax
test eax, eax
jl 0x8570f5
inc eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x44]
mov edx, dword [ebp - 0x14]
call fcn.0085c758
cmp byte [eax + 0x44], 1
jne 0x8570e9
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x44]
mov edx, dword [ebp - 0x14]
call fcn.0085c758
mov edi, eax
mov eax, dword [edi + 0x8c]
mov esi, dword [eax + 8]
dec esi
test esi, esi
jl 0x8570e9
inc esi
xor ebx, ebx
mov eax, dword [edi + 0x8c]
mov edx, ebx
call fcn.00853074
call fcn.00852fe4
test al, al
jne 0x8570e1
mov eax, dword [edi + 0x8c]
mov edx, ebx
call fcn.00853074
lea edx, [ebp - 0x1c]
call fcn.00852fec
mov eax, dword [ebp - 0x1c]
call fcn.004163a4
test al, al
je 0x8570e1
lea edx, [ebp - 8]
mov eax, dword [0x8e0a00]
mov eax, dword [eax]
call fcn.0063b8e8
push 0
mov eax, dword [ebp - 8]
call fcn.00407c38
push eax
mov eax, dword [edi + 0x8c]
mov edx, ebx
call fcn.00853074
lea edx, [ebp - 0x20]
call fcn.00852fec
mov eax, dword [ebp - 0x20]
call fcn.00407c38
push eax
call sub.kernel32.dll_CopyFileW
test eax, eax
je 0x8570e1
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x44]
mov edx, dword [ebp - 0x14]
call fcn.0085c758
mov eax, dword [eax + 0x8c]
mov edx, ebx
call fcn.00853074
add eax, 0x14
mov edx, dword [ebp - 8]
call fcn.00407bac
inc ebx
dec esi
jne 0x85703f
inc dword [ebp - 0x14]
dec dword [ebp - 0x18]
jne 0x857002
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x85712d
lea eax, [ebp - 0x20]
mov edx, 2
call fcn.00407ba4
lea eax, [ebp - 8]
call fcn.00407b9c
lea eax, [ebp - 4]
mov edx, dword [0x40badc]
call fcn.004098cc
ret
Function at 0x100ad13
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov eax, 0x1035844
call int.01034e28
push ecx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
xor edi, edi
push 0xa
lea ecx, [esi + 0x40]
mov dword [ebp - 4], edi
mov dword [esi], 0x1002138
call fcn.01033570
or dword [esi + 0x14], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x24], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x30], edi
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], edi
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x100ad1e
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov eax, 0x1035844
call int.01034e28
push ecx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
xor edi, edi
push 0xa
lea ecx, [esi + 0x40]
mov dword [ebp - 4], edi
mov dword [esi], 0x1002138
call fcn.01033570
or dword [esi + 0x14], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x24], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x30], edi
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], edi
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x100d354
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
add eax, 5
xor edx, edx
mov ecx, 0x3e8
div ecx
push esi
push edi
push 0xa
pop ecx
push 2
mov dword [ebp + 0xc], 0x2e
mov edi, eax
mov eax, edx
xor edx, edx
div ecx
mov esi, eax
lea eax, [ebp + 0xc]
push eax
push 0xe
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov ecx, dword [ebp + 8]
push 0x18
call fcn.0103378c
test esi, esi
je 0x100d3b6
push esi
lea ecx, [ebp + 0xc]
push ecx
push edi
push 0x100250c
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x14
jmp 0x100d3c6
push edi
push 0x1002504
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
mov ecx, dword [ebp + 8]
push 0xffffffffffffffff
call fcn.010336c0
pop edi
pop esi
pop ebp
ret 8
Function at 0x100da98
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push 2
lea eax, [ebp - 4]
push eax
push 0xe
xor esi, esi
push 0x400
mov dword [ebp - 8], esi
mov dword [ebp - 4], 0x2e
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
cmp dword [eax - 8], esi
je 0x100db37
push edi
push dword [ebp - 4]
mov ecx, ebx
call fcn.01033804
push 1
mov ecx, ebx
mov edi, eax
call fcn.010336cc
mov ebx, dword [sym.imp.msvcrt.dll__wtoi]
push eax
mov dword [ebp + 8], eax
call ebx
imul eax, eax, 0x3e8
test edi, edi
pop ecx
mov dword [ebp - 8], eax
jl 0x100db36
mov eax, dword [ebp + 8]
lea esi, [eax + edi*2 + 2]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
mov dword [ebp + 8], esi
call edi
cmp eax, 2
jle 0x100db17
and word [esi + 4], 0
push esi
call ebx
pop ecx
push dword [ebp + 8]
lea esi, [eax + eax*4]
shl esi, 1
call edi
push 2
pop ecx
cmp eax, ecx
jge 0x100db36
sub ecx, eax
lea esi, [esi + esi*4]
shl esi, 1
dec ecx
jne 0x100db2e
pop edi
mov eax, dword [ebp - 8]
add eax, esi
pop esi
pop ebx
leave
ret 4

Function at 0x1011829
Capabilities:
Create directory
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
je 0x101183f
xor eax, eax
jmp 0x10118b0
cmp eax, 0xffffffff
je 0x1011849
or eax, 0xffffffff
jmp 0x10118b0
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0
push dword [ebp + 8]
call ebx
test eax, eax
je 0x101185f
xor eax, eax
jmp 0x10118af
push esi
push 0x1002be8
push dword [ebp + 8]
call fcn.010117be
mov esi, eax
test esi, esi
jne 0x1011878
or eax, 0xffffffff
jmp 0x10118ae
push edi
mov di, word [esi]
push dword [ebp + 8]
and word [esi], 0
call fcn.01011829
test eax, eax
mov word [esi], di
je 0x1011894
or eax, 0xffffffff
jmp 0x10118ad
cmp word [esi + 2], 0
je 0x10118ab
push 0
push dword [ebp + 8]
call ebx
neg eax
sbb eax, eax
neg eax
dec eax
jmp 0x10118ad
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 4
Function at 0x101a961
Capabilities:
Log keystrokes via polling

Disassembly:
mov edi, edi
push ebx
push edi
mov ebx, ecx
call fcn.0100965c
xor edi, edi
cmp dword [0x103ed08], edi
mov dword [0x103ede4], edi
mov dword [0x103ede0], edi
je 0x101a996
mov ecx, ebx
call fcn.01018cf8
pop edi
mov dword [0x103ecf8], 1
pop ebx
ret
push esi
mov esi, dword [0x103d74c]
call dword [sym.imp.USER32.dll_GetCapture]
push eax
call fcn.0103363c
cmp eax, ebx
je 0x101a9ec
cmp dword [esi + 0x20], edi
jne 0x101a9ec
cmp dword [esi + 0x14], edi
jne 0x101a9e2
mov eax, dword [0x103d74c]
mov eax, dword [eax + 0x30]
cmp eax, 0x26c
je 0x101a9e2
cmp eax, 0x26d
je 0x101a9e2
cmp eax, 0x1aa0
je 0x101a9e2
cmp eax, 0x278
je 0x101a9e2
cmp eax, 0x26e
jne 0x101aa2d
mov eax, dword [esi]
push ebx
mov ecx, esi
call dword [eax + 0x38]
jmp 0x101aa2d
mov esi, dword [0x103e7dc]
xor ecx, ecx
push ecx
xor eax, eax
push eax
push edi
push 0x400
mov ecx, ebx
call fcn.0101ba61
push 0x7f16
push edi
call dword [sym.imp.USER32.dll_LoadCursorW]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
cmp esi, edi
jne 0x101aa23
mov ecx, ebx
call fcn.01019732
mov dword [0x103ecf8], 1
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
xor edi, edi
inc edi
push edi
call esi
test ax, ax
jl 0x101aa47
push 2
call esi
test ax, ax
jge 0x101aa4d
mov dword [0x103ecf8], edi
pop esi
pop edi
pop ebx
jmp fcn.010195c2

Function at 0x101edae
Capabilities:
Accept command line arguments

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
and dword [ebp - 8], 0
push ebx
push esi
lea eax, [ebp - 0xc]
push eax
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
xor ebx, ebx
inc ebx
cmp dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
jle 0x101eeb9
push edi
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
lea edi, [eax + ecx*4]
push 0x10047fc
push dword [edi]
call fcn.0101ed78
test eax, eax
je 0x101ee09
mov dword [esi + 0x154], ebx
mov dword [ebp - 8], ebx
jmp 0x101eea9
push 0x10047f8
push dword [edi]
call fcn.0101ed78
test eax, eax
je 0x101ee24
mov dword [esi + 0x154], ebx
jmp 0x101eea9
push 0x10047f0
push dword [edi]
call fcn.0101ed78
test eax, eax
je 0x101ee3c
mov dword [esi + 0x168], ebx
jmp 0x101eea9
mov eax, dword [esi + 0x168]
xor edx, edx
cmp eax, edx
je 0x101ee69
lea ecx, [esi + 0x16c]
mov edx, dword [ecx]
cmp dword [edx - 8], 0
je 0x101eea2
xor edx, edx
cmp eax, edx
je 0x101ee69
lea ecx, [esi + 0x170]
mov eax, dword [ecx]
cmp dword [eax - 8], edx
je 0x101eea2
lea ecx, [esi + 0x158]
mov eax, dword [ecx]
cmp dword [eax - 8], edx
je 0x101eea2
cmp dword [ebp - 8], edx
je 0x101eea9
lea ecx, [esi + 0x15c]
mov eax, dword [ecx]
cmp dword [eax - 8], edx
je 0x101eea2
lea ecx, [esi + 0x160]
mov eax, dword [ecx]
cmp dword [eax - 8], edx
je 0x101eea2
lea ecx, [esi + 0x164]
mov eax, dword [ecx]
cmp dword [eax - 8], edx
jne 0x101eea9
push dword [edi]
call int.01033528
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0xc]
jl 0x101ede2
pop edi
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop esi
pop ebx
leave
ret
Function at 0x10223ea
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
xor esi, esi
xor edi, edi
cmp dword [ecx + 0x44], esi
je 0x1022468
mov ecx, dword [ecx + 0x40]
mov eax, dword [ecx + 0x24]
cmp dword [eax - 8], esi
jne 0x1022411
mov eax, dword [ecx]
call dword [eax + 0x60]
test eax, eax
je 0x1022468
lea eax, [ebp - 4]
push eax
xor edi, edi
inc edi
push edi
push esi
push 0x1005078
push SysReAllocString
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1022468
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push esi
push esi
push 0x100504c
push dword [ebp - 4]
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x102245f
cmp dword [ebp - 8], esi
sete al
mov edi, eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
leave
ret

Function at 0x10330b4
Capabilities:
Encode data using xor

Disassembly:
xor dword [ebx + edx*8 - 0x15], edi
mov dword [0x2c62e542], eax

Function at 0x10333fc
Capabilities:
Encode data using xor

Disassembly:
pop edi
push 0xff0e545b
add dh, ch
inc edi
mov al, 0x3f
or al, 0x7a
jp 0x103334e
or eax, ebx
daa
pushal
cli
loope 0x103341b
jp 0x103340c
out 0xdd, al
fsubr dword [0x8de1e4fe]
aaa
fistp qword [ecx - 0x2e]
jns 0x10333d0
sahf
xor eax, 0x5cee6c27
invalid
invalid
cli
aas
Function at 0x4081a0
Capabilities:
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x68e4d8]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x220], ecx
mov dword [ebp - 0x218], 0x104
cmp dword [ebp + 8], 0
je 0x408285
mov dword [ebp - 0x210], 0
mov dword [ebp - 0x224], 0
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x218]
push ecx
lea edx, [ebp - 0x20c]
push edx
lea eax, [ebp - 0x210]
push eax
push 0
mov ecx, dword [ebp + 8]
push ecx
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x408285
cmp dword [ebp - 0x210], 0
je 0x408285
mov edx, dword [ebp - 0x210]
push edx
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 0x214], eax
cmp dword [ebp - 0x214], 0
je 0x408285
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x218]
push ecx
lea edx, [ebp - 0x20c]
push edx
lea eax, [ebp - 0x210]
push eax
mov ecx, dword [ebp - 0x214]
push ecx
mov edx, dword [ebp + 8]
push edx
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
je 0x408278
mov eax, dword [ebp - 0x214]
jmp 0x408287
mov eax, dword [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005367cc
mov esp, ebp
pop ebp
ret 4

Function at 0x408330
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
cmp dword [ebp + 8], 0
jne 0x408344
jmp 0x4083d6
mov dword [ebp - 0xc], 0
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_GetExplicitEntriesFromAclW]
test eax, eax
jne 0x4083d6
mov eax, dword [ebp - 0xc]
sub eax, 1
mov dword [ebp - 4], eax
jmp 0x408375
mov ecx, dword [ebp - 4]
sub ecx, 1
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0
jl 0x4083d6
mov edx, dword [ebp - 4]
shl edx, 5
mov eax, dword [ebp - 8]
mov ecx, dword [eax + edx + 4]
cmp ecx, dword [ebp + 0xc]
jne 0x4083d4
cmp dword [ebp + 0x10], 0
je 0x4083c6
mov edx, dword [ebp - 4]
shl edx, 5
mov eax, dword [ebp - 8]
cmp dword [eax + edx + 0x14], 0
jne 0x4083d4
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 4]
shl edx, 5
mov eax, dword [ebp - 8]
lea ecx, [eax + edx + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_GetTrusteeNameW]
push eax
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x4083d4
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_DeleteAce]
jmp 0x40836c
mov esp, ebp
pop ebp
ret 0xc
Function at 0x409010
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x409034
xor eax, eax
jmp 0x4090b4
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40904b
xor eax, eax
jmp 0x4090b4
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 4]
add edx, dword [ebp - 0x14]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp + 0x10]
and eax, 0xf
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jbe 0x409097
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0x10]
jae 0x409097
mov edx, dword [ebp - 4]
movzx eax, word [edx]
mov ecx, dword [ebp - 4]
lea edx, [ecx + eax*2 + 2]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 8]
sub eax, 1
mov dword [ebp - 8], eax
jmp 0x40906e
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0x10]
jb 0x4090a3
xor eax, eax
jmp 0x4090b4
mov edx, dword [ebp - 4]
movzx eax, word [edx]
test eax, eax
jne 0x4090b1
xor eax, eax
jmp 0x4090b4
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x4151d0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1110
call fcn.00537800
mov eax, dword [0x68e4d8]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
call fcn.0040ac40
cmp eax, 0x104
jle 0x4151fd
xor eax, eax
jmp 0x415321
mov dword [ebp - 0x110c], 0x400
push 0x800
push 0
lea eax, [ebp - 0x1104]
push eax
call fcn.0058abd0
add esp, 0xc
push 0x800
push 0
lea ecx, [ebp - 0x904]
push ecx
call fcn.0058abd0
add esp, 0xc
mov ecx, dword [ebp + 8]
call fcn.0040f070
push eax
lea edx, [ebp - 0x1104]
push edx
call fcn.004169d0
add esp, 8
cmp dword [ebp + 0xc], 0
je 0x41526c
mov eax, dword [ebp + 0xc]
movzx ecx, word [eax]
test ecx, ecx
je 0x41526c
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0x1104]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov dword [ebp - 0x1110], 0xa
push 0x100
push 0
lea ecx, [ebp - 0x104]
push ecx
call fcn.0058abd0
add esp, 0xc
mov dword [ebp - 0x1108], 0
jmp 0x4152a7
mov edx, dword [ebp - 0x1108]
add edx, 1
mov dword [ebp - 0x1108], edx
cmp dword [ebp - 0x1108], 0xa
jge 0x41531f
push 0x80
lea eax, [ebp - 0x104]
push eax
call fcn.00415020
add esp, 8
lea ecx, [ebp - 0x104]
push ecx
lea edx, [ebp - 0x1104]
push edx
lea eax, [ebp - 0x904]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
push str..tmp
lea ecx, [ebp - 0x904]
push ecx
call fcn.004169b0
add esp, 8
lea edx, [ebp - 0x904]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x41531a
lea eax, [ebp - 0x904]
push eax
mov ecx, dword [ebp + 0x10]
call fcn.0040aac0
mov eax, 1
jmp 0x415321
jmp 0x415298
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005367cc
mov esp, ebp
pop ebp
ret

Function at 0x415480
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x60e710
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x68e4d8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
mov dword [eax], vtable.CFileManager.0
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 4], vtable.CFileManager.1.0
push 1
mov ecx, dword [ebp - 0x10]
call fcn.00415ec0
mov ecx, dword [ebp - 0x10]
add ecx, 0x40
call fcn.0040f070
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4154ed
mov ecx, dword [ebp - 0x10]
add ecx, 0x40
call fcn.0040f070
push eax
call fcn.0051a5a0
add esp, 4
mov ecx, dword [ebp - 0x10]
add ecx, 0x44
call fcn.004165a0
mov ecx, dword [ebp - 0x10]
add ecx, 0x40
call fcn.0040aae0
mov ecx, dword [ebp - 0x10]
add ecx, 0x24
call fcn.00414e30
mov ecx, dword [ebp - 0x10]
add ecx, 0x20
call fcn.0040aae0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret