joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10001770
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x144
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x140], eax
push ebx
push esi
push edi
mov dword [esp + 0x14], 0x9080706
xor edi, edi
mov dword [esp + 0x20], 0x128
nop
mov bl, byte [esp + edi + 0x14]
movzx esi, bl
cmp byte [esi + esi*4 + 0x100094fc], 0xe9
jne 0x1000182e
nop
lea eax, [esp + 0x10]
push eax
push 0x40
push 5
push dword [esi*4 + 0x100094cc]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
nop
cmp bl, 5
je 0x100017ec
cmp bl, 0xa
je 0x100017ec
mov ecx, dword [esi*4 + 0x100094cc]
mov eax, dword [0x10005024]
mov dword [ecx], eax
mov al, byte [0x10005028]
mov byte [ecx + 4], al
nop
jmp 0x10001814
push dword [esi*4 + 0x100094cc]
mov ecx, 0x100094b8
call fcn.10001640
movzx ecx, byte [esi*4 + 0x100094cc]
mov byte [ecx], 0xe9
nop
movzx ecx, byte [esi*4 + 0x100094cc]
mov dword [ecx + 1], eax
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x14]
mov eax, dword [sym.imp.KERNEL32.dll_VirtualProtect]
push 5
push dword [esi*4 + 0x100094cc]
call eax
nop
inc edi
cmp edi, 4
jb 0x100017a0
nop
push 0
push 2
call dword [0x100094ac]
mov edi, eax
mov dword [esp + 0x1c], edi
nop
lea eax, [esp + 0x20]
push eax
push edi
call dword [0x100094a4]
test eax, eax
je 0x10001923
mov esi, dword [sym.imp.MSVCR120.dll_strstr]
lea eax, [esp + 0x44]
mov bl, 1
push 0x100043e4
push eax
call esi
add esp, 8
test eax, eax
jne 0x10001927
lea eax, [esp + 0x44]
push 0x100043f4
push eax
call esi
add esp, 8
test eax, eax
jne 0x10001927
nop
lea eax, [esp + 0x44]
push 0x1000440c
push eax
call esi
add esp, 8
test eax, eax
jne 0x10001927
lea eax, [esp + 0x44]
push 0x10004418
push eax
call esi
add esp, 8
test eax, eax
jne 0x10001927
nop
lea eax, [esp + 0x44]
push 0x10004424
push eax
call esi
add esp, 8
test eax, eax
jne 0x10001927
lea eax, [esp + 0x44]
push 0x10004438
push eax
call esi
add esp, 8
test eax, eax
jne 0x10001927
nop
lea eax, [esp + 0x44]
push 0x10004448
push eax
call esi
add esp, 8
test eax, eax
jne 0x10001927
lea eax, [esp + 0x44]
push 0x10004460
push eax
call esi
add esp, 8
test eax, eax
jne 0x10001927
nop
lea eax, [esp + 0x20]
xor bl, bl
push eax
push edi
call dword [0x100094a8]
nop
test eax, eax
jne 0x10001864
jmp 0x10001927
mov bl, byte [esp + 0x1b]
xor esi, esi
lea esp, [esp]
movzx edi, byte [esp + esi + 0x14]
cmp byte [edi + edi*4 + 0x100094fc], 0xe9
jne 0x1000198b
nop
lea eax, [esp + 0x10]
push eax
mov eax, dword [sym.imp.KERNEL32.dll_VirtualProtect]
push 0x40
push 5
push dword [edi*4 + 0x100094cc]
call eax
mov ecx, dword [edi*4 + 0x100094cc]
mov eax, dword [edi + edi*4 + 0x100094fc]
mov dword [ecx], eax
mov al, byte [edi + edi*4 + 0x10009500]
mov byte [ecx + 4], al
nop
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x14]
push 5
push dword [edi*4 + 0x100094cc]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
nop
inc esi
cmp esi, 4
jb 0x10001930
nop
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x14c]
mov al, bl
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10002d67
mov esp, ebp
pop ebp
ret
Function at 0x100019c0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov dword [ebp - 0xc], 0x2030100
xor edi, edi
mov dword [ebp - 8], 0x50a0b04
jmp 0x100019f0
mov bl, byte [ebp + edi - 0xc]
movzx esi, bl
cmp byte [esi + esi*4 + 0x100094fc], 0xe9
jne 0x10001a7e
nop
lea eax, [ebp - 0x10]
push eax
push 0x40
push 5
push dword [esi*4 + 0x100094cc]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
nop
cmp bl, 5
je 0x10001a3b
cmp bl, 0xa
je 0x10001a3b
mov ecx, dword [esi*4 + 0x100094cc]
mov eax, dword [0x10005024]
mov dword [ecx], eax
mov al, byte [0x10005028]
mov byte [ecx + 4], al
nop
jmp 0x10001a63
push dword [esi*4 + 0x100094cc]
mov ecx, 0x100094b8
call fcn.10001640
movzx ecx, byte [esi*4 + 0x100094cc]
mov byte [ecx], 0xe9
nop
movzx ecx, byte [esi*4 + 0x100094cc]
mov dword [ecx + 1], eax
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x10]
push 5
push dword [esi*4 + 0x100094cc]
call ebx
nop
jmp 0x10001a84
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
inc edi
cmp edi, 8
jb 0x100019f0
nop
push 0
push 0
push 0
push 0
push 0x10004478
call dword [0x10009490]
mov edi, eax
nop
test edi, edi
je 0x10001ae4
push 0
push 0
push 0
push 0
push 0x10004484
push edi
call dword [0x10009494]
mov esi, eax
nop
lea eax, [ebp - 0x14]
push eax
push 0x400
push 0x10009550
push esi
call dword [0x10009498]
push esi
call dword [0x1000949c]
nop
push edi
call dword [0x1000949c]
xor esi, esi
jmp 0x10001af0
movzx edi, byte [ebp + esi - 0xc]
cmp byte [edi + edi*4 + 0x100094fc], 0xe9
jne 0x10001b3f
nop
lea eax, [ebp - 0x10]
push eax
push 0x40
push 5
push dword [edi*4 + 0x100094cc]
call ebx
mov ecx, dword [edi*4 + 0x100094cc]
mov eax, dword [edi + edi*4 + 0x100094fc]
mov dword [ecx], eax
mov al, byte [edi + edi*4 + 0x10009500]
mov byte [ecx + 4], al
nop
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x10]
push 5
push dword [edi*4 + 0x100094cc]
call ebx
nop
inc esi
cmp esi, 8
jb 0x10001af0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10002d67
mov esp, ebp
pop ebp
ret
Function at 0x10001d10
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
cmp dword [ebp + 8], 0
je 0x10001ed9
mov eax, dword [0x1000546c]
cmp byte [eax + 0x81], 0
je 0x10001ed9
nop
mov ecx, dword [0x1000546c]
mov eax, dword [ecx + 0x2c]
cmp eax, 1
je 0x10001d4a
cmp eax, 3
jne 0x10001ed9
mov eax, dword [ecx + 0x24]
push ebx
push esi
push edi
mov eax, dword [eax + 0x4d]
mov dword [ebp - 0x14], eax
mov eax, dword [0xb7ce50]
mov dword [ebp - 0xc], eax
nop
mov eax, dword [0xb7cd98]
movzx eax, word [eax + 0x22]
mov dword [ebp - 0x10], eax
mov eax, dword [0x1000546c]
movzx eax, word [eax + 0x30]
mov dword [ebp - 0x18], eax
mov eax, dword [0x10009474]
dec eax
cmp eax, 3
ja case.default.0x10001d86
jmp dword [eax*4 + 0x10001ee0]
mov ecx, dword [0x1000947c]
mov eax, dword [ecx + 0x3cd]
mov edi, dword [eax + 0x18]
cmp dword [edi + 0x1a], 0xf
mov ebx, dword [edi + 0x2a]
jle 0x10001daa
mov edi, dword [edi + 0xa]
jmp 0x10001dad
add edi, 0xa
lea eax, [ecx + 0x121]
mov dword [ebp + 8], eax
mov eax, dword [ecx + 0x225]
mov dword [ebp - 4], eax
lea eax, [ecx + 0x20]
jmp 0x10001e7b
mov ecx, dword [0x1000947c]
mov eax, dword [ecx + 0x3c5]
mov edi, dword [eax + 8]
cmp dword [edi + 0x16], 0xf
mov ebx, dword [edi + 0x2f3a]
jle 0x10001de7
mov edi, dword [edi + 6]
jmp 0x10001dea
add edi, 6
lea eax, [ecx + 0x11d]
mov dword [ebp + 8], eax
mov eax, dword [ecx + 0x221]
mov dword [ebp - 4], eax
lea eax, [ecx + 0x1c]
jmp 0x10001e7b
mov ecx, dword [0x1000947c]
mov eax, dword [ecx + 0x3de]
mov edi, dword [eax + 8]
cmp dword [edi + 0x2f32], 0xf
mov ebx, dword [edi + 0x2f18]
jle 0x10001e27
mov edi, dword [edi + 0x2f22]
jmp 0x10001e2d
add edi, 0x2f22
lea eax, [ecx + 0x131]
mov dword [ebp + 8], eax
mov eax, dword [ecx + 0x235]
mov dword [ebp - 4], eax
lea eax, [ecx + 0x30]
jmp 0x10001e7b
mov ecx, dword [0x1000947c]
mov eax, dword [ecx + 0x3de]
mov edi, dword [eax + 8]
cmp dword [edi + 0x22], 0xf
mov ebx, dword [edi + 8]
jle 0x10001e61
mov edi, dword [edi + 0x12]
jmp 0x10001e2d
add edi, 0x12
jmp 0x10001e2d
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 8]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 8], eax
nop
push 0x400
call dword [sym.imp.MSVCR120.dll_void____cdecl_operator_new_unsigned_int_]
push dword [ebp - 0xc]
mov esi, eax
mov eax, dword [ebp - 0x10]
movzx ecx, ax
mov eax, dword [ebp - 0x18]
push ecx
push str.0729
push dword [ebp - 0x14]
movzx ecx, ax
push ecx
push ebx
push edi
push dword [ebp + 8]
push dword [ebp - 4]
push dword [ebp - 8]
push 0x100041a0
push 0x100041e0
push esi
call dword [sym.imp.MSVCR120.dll_sprintf]
add esp, 0x38
nop
push esi
push 0
push 0x10001b60
call dword [sym.imp.MSVCR120.dll__beginthread]
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x100022d0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
call fcn.10001700
test al, al
Function at 0x10002480
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [0x10009950]
cmp dword [ecx], 0
jle 0x100025c4
mov eax, dword [ecx + 0xc]
cmp byte [eax], 0xd7
jne 0x100025c4
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], 0
push eax
lea edx, [ebp - 0x24]
call section..text
mov ecx, dword [ebp - 0x28]
add esp, 4
test ecx, ecx
je 0x100025c4
push ebx
xor ebx, ebx
test ecx, ecx
jle 0x100025c3
push esi
movzx eax, ax
mov ecx, 0xb7ce50
push edi
mov edi, dword [ebp - 0x2c]
mov edx, 0xb7cd98
mov dword [ebp - 0x44], eax
lea esp, [esp]
cmp dword [0x10009474], 3
mov eax, dword [ecx]
mov dword [ebp - 0x38], eax
mov eax, dword [edx]
movzx eax, word [eax + 0x22]
mov dword [ebp - 0x3c], eax
jne 0x1000254e
mov ecx, dword [0x1000947c]
mov eax, dword [ecx + 0x3de]
mov eax, dword [eax + 8]
cmp dword [eax + 0x2f32], 0xf
mov edx, dword [eax + 0x2f18]
mov dword [ebp - 0x30], edx
jle 0x10002530
mov edi, dword [eax + 0x2f22]
jmp 0x10002536
lea edi, [eax + 0x2f22]
lea eax, [ecx + 0x131]
mov dword [ebp - 0x40], eax
mov eax, dword [ecx + 0x235]
mov dword [ebp - 0x34], eax
lea eax, [ecx + 0x30]
mov dword [ebp - 0x2c], eax
push 0x400
call dword [sym.imp.MSVCR120.dll_void____cdecl_operator_new_unsigned_int_]
push dword [ebp - 0x38]
mov esi, eax
mov eax, dword [ebp - 0x3c]
movzx ecx, ax
push ecx
push str.0729
push dword [ebp + ebx*4 - 0x24]
push dword [ebp - 0x44]
push dword [ebp - 0x30]
push edi
push dword [ebp - 0x40]
push dword [ebp - 0x34]
push dword [ebp - 0x2c]
push 0x100041a0
push 0x10004288
push esi
call dword [sym.imp.MSVCR120.dll_sprintf]
push esi
push 0
push 0x10001b60
call dword [sym.imp.MSVCR120.dll__beginthread]
add esp, 0x44
push dword [ebp + ebx*4 - 0x24]
call dword [sym.imp.MSVCR120.dll_free]
inc ebx
add esp, 4
mov ecx, 0xb7ce50
mov edx, 0xb7cd98
cmp ebx, dword [ebp - 0x28]
jl 0x100024f0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10002d67
mov esp, ebp
pop ebp
ret

Function at 0x10002d00
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 1
jne 0x10002d5e
push esi
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
push str.0729
push 0
push 0x1f0001
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
test eax, eax
jne 0x10002d54
push str.0729
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
push 0
push 0
push 0x100025e0
mov dword [0x10009484], eax
mov dword [0x10009478], esi
call dword [sym.imp.MSVCR120.dll__beginthread]
add esp, 0xc
mov eax, 1
pop esi
pop ebp
ret 0xc
mov eax, 1
pop ebp
ret 0xc
Function at 0x10002220
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov dword [0x1002c0ec], edi
add dword [0x1002c0f4], ebp
mov dword [0x1002c0e8], esi
jmp fcn.10001ea0
Function at 0x10005730
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push ebx
and esp, 0xfffffff8
sub esp, 0x48
lea eax, [fcn.10005730]
mov dword [esp + 0x40], 0x429592ff
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
mov esi, edx
not esi
mov edi, ecx
not edi
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], esi
mov esi, dword [esp + 0x40]
mov edi, esi
add edi, 0xcc5c61de
mov dword [esp + 0x38], 0x825a9154
mov dword [esp + 0x3c], 0xffffffff
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], eax
mov bx, word [esp + 0x2e]
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], ecx
mov dword [esp + 8], edx
mov word [esp + 6], bx
jmp 0x10005868
mov word [esp + 0x2e], 0x958d
mov eax, dword [esp + 0x20]
mov dword [esp + 0x30], 0x140aebe7
mov ecx, dword [esp + 0x10]
and ecx, ecx
mov dword [esp + 0x30], ecx
sub eax, 0x1000
and eax, 0xfffff000
mov dx, word [esp + 6]
or dx, dx
mov word [esp + 0x2e], dx
mov dword [esp + 0x20], eax
jmp 0x100057e9
mov eax, dword [esp + 0x28]
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret
jmp 0x100057a1
mov al, 1
test al, 1
jne 0x10005868
mov dword [esp + 0x28], 0
jmp 0x100057db
mov al, 0x52
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x14]
mov edx, dword [edx + 0x3c]
mov byte [esp + 0x27], 0xec
mov ah, byte [esp + 0x27]
add ecx, edx
mov edx, dword [esp + 8]
mov dword [esp + 0x3c], edx
mov esi, dword [esp + 0xc]
mov dword [esp + 0x38], esi
mov dword [esp + 0x18], ecx
cmp al, ah
je 0x100057e7
mov ax, word [esp + 6]
xor ax, 0x9edb
mov ecx, dword [esp + 0x18]
mov word [esp + 0x2e], ax
cmp dword [ecx], 0x4550
je 0x100058a4
jmp 0x100057e7
mov eax, 0x3d4f7327
mov cl, 0x2c
mov edx, dword [esp + 0x1c]
mov ch, byte [esp + 0x37]
mov esi, dword [esp + 0x20]
sub cl, ch
mov byte [esp + 0x37], cl
mov dword [esp + 0x14], esi
cmp eax, edx
jb 0x100057ef
jmp 0x100057f9
xor eax, eax
mov ecx, 0xac724ad
mov edx, dword [esp + 0xc]
sub ecx, edx
mov esi, dword [esp + 8]
sbb eax, esi
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x20]
mov di, word [eax]
mov bl, byte [esp + 0x37]
or bl, 0x21
mov byte [esp + 0x37], bl
movzx eax, di
cmp eax, 0x5a4d
je 0x10005845
jmp 0x100057a1
mov eax, dword [esp + 0x20]
mov cx, word [esp + 6]
and cx, cx
mov word [esp + 0x2e], cx
mov dword [esp + 0x28], eax
jmp 0x100057db
Function at 0x403c20
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f148b
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x55a3d0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
call fcn.0049ca73
push 4
mov dword [ebp - 4], 0
call fcn.004b5bb8
mov edi, eax
add esp, 4
test edi, edi
je 0x403c9c
call fcn.0049ce2c
mov dword [edi], eax
call fcn.0049cbeb
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.0049ca34
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x403c92
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.0049ca5c
jmp 0x403c9e
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
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 4
Function at 0x408490
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f45f8
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push edi
mov eax, dword [0x55a3d0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [esi + 0x14], 0x10
mov dword [esi + 0x10], 0
jb 0x4084c7
mov eax, dword [esi]
jmp 0x4084c9
mov eax, esi
mov byte [eax], 0
lea eax, [ebp - 0x14]
push eax
push 1
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerShell_Folders
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x408588
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x1c], eax
lea ecx, [ebp - 0x10]
push ecx
push 0
lea edx, [ebp - 0x18]
push edx
push 0
push str.Common_AppData
mov dword [ebp - 4], 0
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push eax
call edi
test eax, eax
jne 0x40857e
mov ecx, dword [esi + 0x10]
mov eax, dword [ebp - 0x10]
cmp eax, ecx
ja 0x40852d
push 0xffffffffffffffff
push eax
mov ecx, esi
call fcn.004118b0
jmp 0x408539
sub eax, ecx
push 0
push eax
mov ecx, esi
call fcn.0040e610
cmp dword [esi + 0x14], 0x10
jb 0x408543
mov eax, dword [esi]
jmp 0x408545
mov eax, esi
lea ecx, [ebp - 0x10]
push ecx
push eax
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x18]
push edx
push 0
push str.Common_AppData
push eax
call edi
test eax, eax
jne 0x40857e
cmp dword [esi + 0x14], 0x10
jb 0x408569
mov eax, dword [esi]
jmp 0x40856b
mov eax, esi
mov ecx, dword [esi + 0x10]
lea eax, [eax + ecx - 1]
push eax
lea edx, [ebp - 0x20]
push edx
mov eax, esi
call fcn.00408440
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x55a3d0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov esi, ecx
call fcn.00408490
cmp dword [esi + 0x10], 0
je 0x4085db
cmp dword [esi + 0x14], 0x10
jb 0x4085c9
mov eax, dword [esi]
jmp 0x4085cb
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4085db
test al, 0x10
jne 0x408602
push 0x5110cc
call fcn.004b6532
mov ecx, eax
add esp, 4
lea edi, [ecx + 1]
lea ecx, [ecx]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x4085f0
sub ecx, edi
push ecx
push eax
mov ecx, esi
call fcn.00411d00
cmp dword [esi + 0x10], 0
jne 0x40864c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x3c], eax
mov ecx, 0x510f78
cmp eax, dword [ecx]
je 0x408647
add ecx, 8
cmp ecx, str.boost::interprocess_exception::library_error
jne 0x408616
mov ecx, 1
lea eax, [ebp - 0x34]
mov dword [ebp - 0x38], ecx
push eax
lea ecx, [ebp - 0x3c]
call fcn.00409e40
push 0x52da88
lea ecx, [ebp - 0x34]
push ecx
call fcn.004b9b55
mov ecx, dword [ecx + 4]
jmp 0x40862a
push 0x13
push str._boost_interprocess
mov ecx, esi
call fcn.0040e4f0
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004b58f8
mov esp, ebp
pop ebp
ret
Function at 0x409260
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f4590
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x55a3d0]
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 eax, dword [ebp + 8]
xor esi, esi
push str.System
push esi
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x28], esi
call dword [sym.imp.ADVAPI32.dll_OpenEventLogA]
mov ebx, eax
cmp ebx, esi
je 0x409376
mov dword [ebp - 0x38], ebx
mov edi, 0x10000
push edi
mov dword [ebp - 4], esi
call fcn.004b6417
mov esi, eax
add esp, 4
mov dword [ebp - 0x34], esi
mov byte [ebp - 4], 1
test esi, esi
je 0x40936f
lea ecx, [ebp - 0x28]
push ecx
lea edx, [ebp - 0x24]
push edx
push edi
push esi
push 0
push 9
push ebx
call dword [sym.imp.ADVAPI32.dll_ReadEventLogA]
test eax, eax
jne 0x40931d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x409309
mov edi, dword [ebp - 0x28]
push edi
push esi
call fcn.004b636a
add esp, 8
test eax, eax
jne 0x4092d4
push esi
call fcn.004b5fa1
add esp, 4
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseEventLog]
xor al, al
jmp 0x409378
mov ecx, dword [ebp - 0x24]
lea eax, [ebp - 0x30]
push eax
mov eax, esi
call fcn.004091e0
add esp, 4
test al, al
je 0x4092d4
mov ecx, dword [ebp - 0x30]
mov edx, dword [ecx + 0xc]
push edx
lea eax, [ebp - 0x20]
push 0x510ab0
push eax
call fcn.004b5fdb
lea eax, [ebp - 0x20]
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x409350
sub eax, edx
push eax
lea ecx, [ebp - 0x20]
push ecx
mov ecx, dword [ebp - 0x2c]
call fcn.00411d00
push esi
call fcn.004b5fa1
add esp, 4
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseEventLog]
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.004b58f8
mov esp, ebp
pop ebp
ret
Function at 0x410d30
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f148b
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x55a3d0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.0049ca73
push 4
mov dword [ebp - 4], 0
call fcn.004b5bb8
mov edi, eax
add esp, 4
test edi, edi
je 0x410dac
call fcn.0049ce2c
mov dword [edi], eax
call fcn.0049cbeb
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.0049ca34
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x410da2
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.0049ca5c
jmp 0x410dae
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
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 4

Function at 0x412b80
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 8
push esi
push edi
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov esi, eax
cmp esi, 0xffffffff
jne 0x412bc0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov dword [esp + 8], edi
call fcn.004a2200
mov dword [esp + 0xc], eax
test edi, edi
je 0x412bc0
lea eax, [esp + 8]
push eax
mov ecx, 0x511518
call fcn.004129f0
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x412f20
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1a0
mov eax, dword [0x55a3d0]
xor eax, esp
mov dword [esp + 0x19c], eax
push 0x564c94
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
cmp eax, 1
jne 0x412f63
lea eax, [esp + 8]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
push eax
push 0x564c98
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp byte [ebp + 0xc], 0
je 0x412f94
push 0
push 0x564c98
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
test eax, eax
je 0x412f94
mov dword [esp], eax
call fcn.004a2200
lea ecx, [esp]
push ecx
mov ecx, str.winsock
mov dword [esp + 8], eax
call fcn.004129f0
mov ecx, dword [esp + 0x19c]
mov eax, dword [ebp + 8]
xor ecx, esp
call fcn.004b58f8
mov esp, ebp
pop ebp
ret 8