joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40e520
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48b34c
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x4c4754]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x20], ecx
mov eax, dword [ebp - 0x20]
add eax, 0x14
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
mov dword [ecx], 0
mov edx, dword [ebp - 0x20]
mov dword [edx], 0x490d80
mov eax, dword [ebp - 0x20]
mov dword [eax + 4], 0x490d70
mov ecx, dword [ebp - 0x20]
mov dword [ecx + 8], 0x490d5c
mov edx, dword [ebp - 0x20]
mov dword [edx + 0xc], 0x490d4c
mov eax, dword [ebp - 0x20]
mov dword [eax + 0x10], 0x490d38
mov ecx, dword [ebp - 0x20]
add ecx, 0x18
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x14]
mov dword [edx], 0
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x10], 0
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x20]
add ecx, 0x30
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp - 0x18]
call fcn.00463a20
mov byte [ebp - 4], 1
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x20]
add edx, 0x1d30
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x1c]
mov dword [eax], 0
mov byte [ebp - 4], 3
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret

Function at 0x40e9b0
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48b3d7
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x4c4754]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1c], ecx
mov eax, dword [ebp - 0x1c]
mov dword [eax], 0x490d80
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + 4], 0x490d70
mov edx, dword [ebp - 0x1c]
mov dword [edx + 8], 0x490d5c
mov eax, dword [ebp - 0x1c]
mov dword [eax + 0xc], 0x490d4c
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + 0x10], 0x490d38
mov dword [ebp - 4], 2
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x1c]
add edx, 0x1d30
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push ecx
call fcn.00466210
add esp, 4
mov edx, dword [ebp - 0x10]
mov dword [edx], 0
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x1c]
add eax, 0x30
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 3
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x18]
call fcn.00463b30
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x18]
add ecx, 0x18
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x14]
cmp dword [edx], 0
je 0x40ea7b
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x14]
mov eax, dword [edx]
mov ecx, dword [ecx]
push eax
mov edx, dword [ecx + 8]
call edx
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x1c]
add ecx, 0x18
call fcn.00466030
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret

Function at 0x40efe0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x4c74e8], 0
jne 0x40f008
call dword [sym.imp.KERNEL32.dll_GetVersion]
and eax, 0xffff
movzx eax, ax
and eax, 0xff
movzx ecx, al
mov dword [0x4c74e8], ecx
cmp dword [0x4c74e8], 6
sbb eax, eax
add eax, 1
pop ebp
ret
Function at 0x40fd50
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push str._temp
mov edx, dword [ebp + 8]
push edx
call fcn.0040f780
add esp, 0x10
test eax, eax
jne 0x40fd74
xor al, al
jmp 0x40fdad
mov eax, dword [ebp + 0xc]
push eax
call fcn.0040f7b0
add esp, 4
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40fd9f
mov edx, dword [ebp + 0xc]
push edx
call fcn.0040f560
add esp, 4
test eax, eax
jne 0x40fdab
mov eax, dword [ebp + 0xc]
mov word [eax], 0
xor al, al
jmp 0x40fdad
mov al, 1
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push edi
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0040f1d0
add esp, 8
test eax, eax
jne 0x40fdd2
xor al, al
jmp 0x40fe7a
call fcn.0040efe0
test eax, eax
je 0x40fe78
mov edx, dword [ebp + 8]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
add eax, 2
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0xc]
mov dx, word [ecx]
mov word [ebp - 0x12], dx
add dword [ebp - 0xc], 2
cmp word [ebp - 0x12], 0
jne 0x40fdee
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 0x10]
sar eax, 1
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 4], ecx
mov edx, dword [ebp + 8]
add edx, 0xfffffffe
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x1c]
mov cx, word [eax + 2]
mov word [ebp - 0x1e], cx
add dword [ebp - 0x1c], 2
cmp word [ebp - 0x1e], 0
jne 0x40fe1d
mov edi, dword [ebp - 0x1c]
mov edx, dword [str.Low]
mov dword [edi], edx
mov eax, dword [0x49116c]
mov dword [edi + 4], eax
mov cx, word [0x491170]
mov word [edi + 8], cx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
je 0x40fe6c
mov eax, dword [ebp - 8]
and eax, 0x10
jne 0x40fe78
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
mov word [edx + ecx*2], 0
mov al, 1
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x4110b0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48b798
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x4c4754]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 2
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp + 8]
call fcn.004118d0
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x20], ecx
push 0x491e48
mov edx, dword [ebp - 0x20]
push edx
call fcn.00414ef0
add esp, 8
neg eax
sbb eax, eax
add eax, 1
movzx eax, al
test eax, eax
je 0x411142
mov dword [ebp - 0x14], 4
mov dword [ebp - 4], 1
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
sub ecx, 0x14
mov dword [ebp - 0x24], ecx
mov ecx, dword [ebp - 0x24]
call fcn.004102a0
mov eax, dword [ebp - 0x14]
jmp 0x41123d
mov edx, dword [ebp - 0x10]
mov eax, dword [edx - 0x14]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 2
jl 0x4111f3
mov ecx, 1
test ecx, ecx
jl 0x41116d
mov edx, dword [ebp - 0x10]
mov eax, dword [edx - 0x14]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 1
jge 0x411184
push 0x288
push str.d:p_sib_libportable_sib_string.h
push 0x80070057
call fcn.00412870
add esp, 0xc
mov ecx, 1
shl ecx, 1
mov edx, dword [ebp - 0x10]
mov ax, word [edx + ecx]
mov word [ebp - 0x2e], ax
movzx ecx, word [ebp - 0x2e]
cmp ecx, 0x3a
jne 0x4111f3
push 0x491d44
call fcn.00401ee0
add esp, 4
push eax
push 0x491d44
lea ecx, [ebp - 0x10]
call fcn.00411ef0
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x34], edx
mov eax, dword [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 2
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
sub ecx, 0x14
mov dword [ebp - 0x38], ecx
mov ecx, dword [ebp - 0x38]
call fcn.004102a0
mov eax, dword [ebp - 0x18]
jmp 0x41123d
mov dword [ebp - 0x1c], 0
mov dword [ebp - 4], 3
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x10]
sub edx, 0x14
mov dword [ebp - 0x3c], edx
mov ecx, dword [ebp - 0x3c]
call fcn.004102a0
mov eax, dword [ebp - 0x1c]
jmp 0x41123d
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x412710
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48ba38
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x4c4754]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea ecx, [ebp - 0x18]
call fcn.0040f3d0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x44], eax
push 0
push 0x80
push 4
mov ecx, dword [ebp - 0x44]
push ecx
push 3
push 4
push 0x4c9510
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0xffffffff
jne 0x41278d
mov dword [ebp - 0x2c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.0040f500
mov eax, dword [ebp - 0x2c]
jmp 0x412855
cmp dword [ebp + 8], 0
jne 0x41279c
mov dword [ebp - 0x4c], 0
jmp 0x4127c4
mov edx, dword [ebp + 8]
mov dword [ebp - 0x48], edx
jmp 0x4127ad
mov eax, dword [ebp - 0x48]
add eax, 2
mov dword [ebp - 0x48], eax
mov ecx, dword [ebp - 0x48]
movzx edx, word [ecx]
test edx, edx
je 0x4127b9
jmp 0x4127a4
mov eax, dword [ebp - 0x48]
sub eax, dword [ebp + 8]
sar eax, 1
mov dword [ebp - 0x4c], eax
mov ecx, dword [ebp - 0x4c]
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x24]
lea eax, [edx*4 + 1]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.00466e45
add esp, 4
mov dword [ebp - 0x10], eax
push 0
push 0
push 0
mov edx, dword [ebp - 0x20]
push edx
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00416d30
add esp, 0x1c
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x28], 0
push 0
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.00466c92
add esp, 4
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x30], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.0040f500
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x4133e0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48bbe0
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x4c4754]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.004101e0
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
add eax, 0x14
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 0
mov dword [ebp - 4], 1
mov dword [ebp - 0x14], 0
call fcn.004101e0
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x2c]
add ecx, 0x14
mov dword [ebp - 0x1c], ecx
mov byte [ebp - 4], 2
mov byte [ebp - 4], 3
lea edx, [ebp - 0x1c]
push edx
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x18]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00410320
add esp, 0x10
mov byte [ebp - 0xd], al
movzx eax, byte [ebp - 0xd]
test eax, eax
jne 0x4134aa
mov cl, byte [ebp - 0xd]
mov byte [ebp - 0x21], cl
mov byte [ebp - 4], 4
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x1c]
sub edx, 0x14
mov dword [ebp - 0x30], edx
mov ecx, dword [ebp - 0x30]
call fcn.004102a0
mov dword [ebp - 4], 5
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x18]
sub eax, 0x14
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x34]
call fcn.004102a0
mov al, byte [ebp - 0x21]
jmp 0x413504
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x38], ecx
mov edx, dword [ebp - 0x38]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 0x20], eax
xor eax, eax
cmp dword [ebp - 0x20], 0xffffffff
setne al
mov byte [ebp - 0x22], al
mov byte [ebp - 4], 6
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x1c]
sub ecx, 0x14
mov dword [ebp - 0x3c], ecx
mov ecx, dword [ebp - 0x3c]
call fcn.004102a0
mov dword [ebp - 4], 7
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x18]
sub edx, 0x14
mov dword [ebp - 0x40], edx
mov ecx, dword [ebp - 0x40]
call fcn.004102a0
mov al, byte [ebp - 0x22]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x413b10
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48bd98
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x4c4754]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.004101e0
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
add eax, 0x14
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0
mov dword [ebp - 4], 1
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00410320
add esp, 0x10
mov byte [ebp - 0xd], al
movzx edx, byte [ebp - 0xd]
test edx, edx
jne 0x413ba4
mov al, byte [ebp - 0xd]
mov byte [ebp - 0x1d], al
mov dword [ebp - 4], 2
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x14]
sub ecx, 0x14
mov dword [ebp - 0x30], ecx
mov ecx, dword [ebp - 0x30]
call fcn.004102a0
mov al, byte [ebp - 0x1d]
jmp 0x413c5c
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x34], edx
push 0
mov eax, dword [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x413c36
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
lea eax, [ebp - 0x24]
push eax
call fcn.00414a90
add esp, 0xc
mov dword [ebp - 0x48], eax
mov ecx, dword [ebp - 0x48]
mov dword [ebp - 0x38], ecx
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x38]
push edx
mov ecx, dword [ebp + 0x10]
call fcn.0040f850
mov byte [ebp - 4], 4
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x24]
sub eax, 0x14
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp - 0x3c]
call fcn.004102a0
mov byte [ebp - 0x25], 0
mov dword [ebp - 4], 5
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x14]
sub ecx, 0x14
mov dword [ebp - 0x40], ecx
mov ecx, dword [ebp - 0x40]
call fcn.004102a0
mov al, byte [ebp - 0x25]
jmp 0x413c5c
mov byte [ebp - 0x26], 1
mov dword [ebp - 4], 6
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x14]
sub edx, 0x14
mov dword [ebp - 0x44], edx
mov ecx, dword [ebp - 0x44]
call fcn.004102a0
mov al, byte [ebp - 0x26]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x414d30
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x4c4754]
xor eax, ebp
mov dword [ebp - 0x18], eax
cmp dword [ebp + 8], 0
jne 0x414d4d
xor eax, eax
jmp 0x414ede
mov eax, dword [ebp + 8]
mov dword [eax], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x10], 0
mov byte [ebp - 0x20], 0
mov byte [ebp - 0x1f], 0
mov byte [ebp - 0x1e], 0
mov byte [ebp - 0x1d], 0
mov byte [ebp - 0x1c], 0
mov byte [ebp - 0x1b], 5
lea ecx, [ebp - 0x10]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
lea edx, [ebp - 0x20]
push edx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x414dbf
xor eax, eax
jmp 0x414ede
cmp dword [ebp - 0x10], 0
jne 0x414dcc
xor eax, eax
jmp 0x414ede
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
push 0
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x414df1
jmp 0x414e9b
mov edx, dword [ebp + 8]
cmp dword [edx], 0
jne 0x414e08
cmp dword [ebp + 0xc], 0
je 0x414e08
call fcn.0040efe0
test eax, eax
jne 0x414e19
mov dword [ebp - 4], 1
jmp 0x414e9b
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
push eax
push 8
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x414e3a
jmp 0x414e9b
lea edx, [ebp - 0x24]
push edx
push 4
lea eax, [ebp - 0x14]
push eax
push 0x13
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x414e7a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0x520
je 0x414e6f
cmp dword [ebp - 0x28], 0x522
jne 0x414e76
mov dword [ebp - 4], 1
jmp 0x414e9b
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x414e94
jmp 0x414e9b
mov dword [ebp - 4], 1
cmp dword [ebp - 0xc], 0
je 0x414eab
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 8], 0
je 0x414ebb
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x14], 0
je 0x414ecb
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x10], 0
je 0x414edb
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.00466b32
mov esp, ebp
pop ebp
ret
Function at 0x41b840
Capabilities:
Access the windows event log

Disassembly:
mov eax, 0x108
call fcn.00467480
mov eax, dword [0x4c4754]
xor eax, esp
mov dword [esp + 0x104], eax
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
test eax, eax
je 0x41b8a5
push eax
call dword [sym.imp.KERNEL32.dll_GetFileType]
test eax, eax
je 0x41b8a5
mov ecx, dword [esp + 0x10c]
lea eax, [esp + 0x110]
push eax
push ecx
call fcn.00469c94
add eax, 0x40
push eax
call fcn.0046a6b8
add esp, 0xc
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.00466b32
add esp, 0x108
ret
mov eax, dword [esp + 0x10c]
lea edx, [esp + 0x110]
push edx
push eax
lea ecx, [esp + 0xc]
push 0xff
push ecx
call fcn.0046a54f
add esp, 0x10
mov byte [esp + 0x103], 0
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x41b934
call fcn.0041b700
test eax, eax
jle 0x41b934
push esi
push str.OPENSSL
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
push 0
mov esi, eax
lea eax, [esp + 8]
push eax
push 0
push 1
push 0
push 0
push 0
push 1
lea edx, [esp + 0x28]
push esi
mov dword [esp + 0x28], edx
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
pop esi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.00466b32
add esp, 0x108
ret
push 0x10
push str.OpenSSL:_FATAL
lea ecx, [esp + 0xc]
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.00466b32
add esp, 0x108
ret
Function at 0x45bd50
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [eax + 4]
push ebx
push esi
push edi
mov edi, dword [esp + 0x18]
cmp ecx, dword [edi + 4]
jge 0x45bd69
mov esi, edi
mov edi, eax
jmp 0x45bd6b
mov esi, eax
mov eax, dword [esi + 4]
mov ebx, dword [esp + 0x10]
cmp eax, dword [ebx + 8]
jg 0x45bd7b
mov eax, ebx
jmp 0x45bd85
push eax
push ebx
call fcn.00426640
add esp, 8
test eax, eax
jne 0x45bd8d
pop edi
pop esi
pop ebx
ret
xor eax, eax
cmp dword [edi + 4], eax
jle 0x45bdab
mov edx, dword [esi]
mov ecx, dword [edi]
mov edx, dword [edx + eax*4]
xor edx, dword [ecx + eax*4]
mov ecx, dword [ebx]
mov dword [ecx + eax*4], edx
add eax, 1
cmp eax, dword [edi + 4]
jl 0x45bd94
cmp eax, dword [esi + 4]
jge 0x45bdc2
mov edx, dword [esi]
mov edx, dword [edx + eax*4]
mov ecx, dword [ebx]
mov dword [ecx + eax*4], edx
add eax, 1
cmp eax, dword [esi + 4]
jl 0x45bdb0
mov eax, dword [esi + 4]
test eax, eax
mov dword [ebx + 4], eax
jle 0x45bde5
mov ecx, dword [ebx]
lea ecx, [ecx + eax*4 - 4]
mov edx, dword [ecx]
sub ecx, 4
test edx, edx
jne 0x45bde2
sub eax, 1
test eax, eax
jg 0x45bdd2
mov dword [ebx + 4], eax
pop edi
pop esi
mov eax, 1
pop ebx
ret

Function at 0x463940
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], 0
jmp 0x463958
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x100
jae 0x4639b0
mov ecx, dword [ebp - 4]
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], 0
jmp 0x463979
mov edx, dword [ebp - 0xc]
add edx, 1
mov dword [ebp - 0xc], edx
cmp dword [ebp - 0xc], 8
jge 0x4639a1
mov eax, dword [ebp - 8]
and eax, 1
je 0x463997
mov ecx, dword [ebp - 8]
shr ecx, 1
xor ecx, 0xedb88320
mov dword [ebp - 8], ecx
jmp 0x46399f
mov edx, dword [ebp - 8]
shr edx, 1
mov dword [ebp - 8], edx
jmp 0x463970
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
mov dword [eax*4 + 0x4cc560], ecx
jmp 0x46394f
mov esp, ebp
pop ebp
ret

Function at 0x466455
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x4c4754]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.004663ea
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.00466b50
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x4664a4
cmp dword [ebp - 0x1c], 5
jb 0x4664bc
jmp 0x4664b8
cmp dword [ebp - 0x10], 1
jne 0x4664bc
cmp dword [ebp - 0x1c], 4
ja 0x4664b8
jne 0x4664bc
cmp dword [ebp - 0x18], 0
jbe 0x4664bc
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x4bd07c
call fcn.00402600
test eax, eax
jge 0x4664dd
mov byte [0x4c5c60], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00466b32
add ebp, 0x78
leave
ret
Function at 0x46675c
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x4cc9f4], 0
push esi
jne 0x4666cf
call fcn.004665fa
test eax, eax
je 0x466712
mov eax, dword [0x4cc9f4]
cmp eax, 1
jne 0x4666f0
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x466712
pop esi
ret
push eax
call dword [0x4cc9fc]
test eax, eax
jne 0x46675a
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x466716
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x4cc9f4]
call dword [0x4cc9fc]
mov edi, eax
test edi, edi
je 0x46673d
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x466759
lea edi, [esi + 0xff0]
push esi
push dword [0x4cc9f4]
call dword [0x4cc9f8]
add esi, 0x10
cmp esi, edi
jb 0x466743
mov eax, esi
pop edi
pop esi
ret
jmp 0x4666bc

Function at 0x466b32
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4c4754]
jne 0x466b3c
repz ret
jmp fcn.0046d8dc