joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10079a20
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x1c
push ebx
push ebp
push esi
xor esi, esi
xor ebx, ebx
push edi
mov dword [esp + 0x18], esi
mov dword [esp + 0x24], esi
cmp dword [esp + 0x30], esi
je 0x10079a5a
cmp dword [esp + 0x34], esi
je 0x10079a5a
push 0x200
call fcn.100842c4
mov edi, eax
add esp, 4
cmp edi, esi
jne 0x10079a65
push 8
call dword [sym.imp.KERNEL32.DLL_SetLastError]
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
lea eax, [esp + 0x14]
push eax
push 0x20119
push esi
push 0x100afee0
push reloc.OLEAUT32.DLL_SysReAllocString
call dword [sym.imp.ADVAPI32.DLL_RegOpenKeyExW]
test eax, eax
jne 0x10079bc4
mov edx, dword [esp + 0x14]
mov ebp, dword [sym.imp.ADVAPI32.DLL_RegEnumKeyExW]
push esi
push esi
push esi
push esi
lea ecx, [esp + 0x20]
push ecx
push edi
push esi
push edx
mov dword [esp + 0x30], 0x100
call ebp
test eax, eax
jne 0x10079b5a
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x10079abd
mov eax, reloc.OLEAUT32.DLL_SysReAllocString
lea ecx, [esp + 0x1c]
push ecx
push 0x20119
push 0
push edi
push eax
call dword [sym.imp.ADVAPI32.DLL_RegOpenKeyExW]
test eax, eax
jne 0x10079b33
lea edx, [esp + 0x34]
push edx
mov edx, dword [esp + 0x20]
lea eax, [edi + 4]
push eax
lea ecx, [esp + 0x28]
push ecx
push 0
push 0x100aff54
push edx
mov dword [esp + 0x38], 1
mov dword [esp + 0x28], 0x200
call dword [sym.imp.ADVAPI32.DLL_RegQueryValueExA]
test eax, eax
jne 0x10079b28
mov eax, edi
mov dword [edi], 0x5c2e5c5c
call fcn.10079990
cmp edx, ebx
jb 0x10079b28
ja 0x10079b22
cmp eax, dword [esp + 0x24]
jbe 0x10079b28
mov dword [esp + 0x24], eax
mov ebx, edx
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.ADVAPI32.DLL_RegCloseKey]
mov edx, dword [esp + 0x14]
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x20]
push ecx
push edi
inc esi
push esi
push edx
mov dword [esp + 0x30], 0x100
call ebp
test eax, eax
je 0x10079ab0
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.DLL_RegCloseKey]
test ebx, ebx
ja 0x10079b70
cmp dword [esp + 0x24], 0
jbe 0x10079bc4
mov ecx, dword [esp + 0x24]
push ebx
push ecx
push 0x100aff60
push 0x200
call fcn.10077a60
add esp, 0x10
test eax, eax
jne 0x10079ba9
push edi
mov dword [esp + 0x1c], 0xffffffff
call fcn.1008438e
mov eax, dword [esp + 0x1c]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x34]
push edi
push edx
push 0x100aff6c
call fcn.100795c0
add esp, 0xc
mov dword [esp + 0x18], eax
push edi
call fcn.1008438e
mov eax, dword [esp + 0x1c]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
Function at 0x1007c4a0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
lea ebp, [esp - 0x88]
sub esp, 0x88
push 0xffffffffffffffff
push 0x100a183b
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x100bb300]
xor eax, ebp
mov dword [ebp + 0x84], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [0x100c7548], 0
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcessId]
push eax
push 0x100aff80
push 0x100affcc
mov ecx, 0x41
lea ebx, [ebp]
call fcn.1007c1e0
add esp, 0xc
xor eax, eax
mov word [ebp + 0x80], ax
xor ebx, ebx
xor esi, esi
lea ecx, [ebp]
push ecx
push 1
push ebx
call dword [sym.imp.KERNEL32.DLL_CreateMutexW]
mov edi, eax
mov dword [ebp - 0x14], edi
cmp edi, ebx
je 0x1007c5fa
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0xb7
jne 0x1007c544
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
mov dword [ebp - 4], ebx
call fcn.1007c250
cmp eax, ebx
je 0x1007c55a
mov dword [0x100c7548], eax
jmp 0x1007c5db
xor esi, esi
call dword [sym.imp.KERNEL32.DLL_GetProcessHeap]
cmp eax, ebx
je 0x1007c575
push 0x5c0
push ebx
push eax
call dword [sym.imp.KERNEL32.DLL_HeapAlloc]
mov esi, eax
mov dword [ebp - 0x20], esi
mov byte [ebp - 4], 1
cmp esi, ebx
je 0x1007c589
push edi
push esi
call fcn.1007c920
jmp 0x1007c58b
xor eax, eax
mov byte [ebp - 4], bl
mov dword [0x100c7548], eax
cmp eax, ebx
jne 0x1007c5ac
mov dword [ebp - 0x1c], 1
push 0x100b61a4
lea edx, [ebp - 0x1c]
push edx
call fcn.10088202
mov esi, 1
mov dword [ebp - 0x24], esi
push eax
call fcn.1007c340
add esp, 4
test eax, eax
jne 0x1007c5d6
mov dword [ebp - 0x18], 3
push 0x100b61a4
lea eax, [ebp - 0x18]
push eax
call fcn.10088202
mov eax, dword [0x100c7548]
inc dword [eax + 0x5bc]
mov dword [ebp - 4], 0xffffffff
push edi
call dword [sym.imp.KERNEL32.DLL_ReleaseMutex]
cmp esi, ebx
jne 0x1007c5fa
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, 0x100c7548
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x84]
xor ecx, ebp
call fcn.10083dbb
add ebp, 0x88
mov esp, ebp
pop ebp
ret
Function at 0x1007c6e0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100a1620
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x100bb300]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ecx, dword [0x100c7548]
xor edi, edi
cmp ecx, edi
jne 0x1007c72b
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
mov eax, dword [ecx + 4]
cmp eax, 0xffffffff
jne 0x1007c738
mov dword [ebp - 0x14], edi
jmp 0x1007c750
push eax
call dword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov dword [ebp - 0x14], eax
cmp eax, edi
jne 0x1007c7f6
mov ecx, dword [0x100c7548]
mov eax, dword [ecx]
cmp eax, edi
je 0x1007c717
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
test eax, eax
jne 0x1007c717
mov dword [ebp - 4], edi
mov ebx, 0x100c7548
call fcn.1007c810
mov esi, eax
mov dword [ebp - 0x14], esi
cmp esi, edi
jne 0x1007c78e
mov dword [ebp - 0x18], 1
push 0x100b61a4
lea eax, [ebp - 0x18]
push eax
call fcn.10088202
mov ecx, dword [0x100c7548]
mov eax, dword [ecx + 4]
cmp eax, 0xffffffff
je 0x1007c7a8
push esi
push eax
call dword [sym.imp.KERNEL32.DLL_TlsSetValue]
cmp eax, edi
jne 0x1007c7bd
mov dword [ebp - 0x1c], 4
push 0x100b61a4
lea edx, [ebp - 0x1c]
push edx
call fcn.10088202
mov dword [ebp - 4], 0xffffffff
jmp 0x1007c7e2
mov eax, dword [0x100c7548]
mov eax, dword [eax]
test eax, eax
je 0x1007c7f4
push eax
call dword [sym.imp.KERNEL32.DLL_ReleaseMutex]
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
Function at 0x1007c810
Capabilities:
Print debug messages

Disassembly:
sub esp, 8
mov dword [esp], 0
call dword [sym.imp.KERNEL32.DLL_GetCurrentThreadId]
mov dword [esp + 4], eax
mov eax, dword [ebx]
mov ecx, dword [eax + 0x5b0]
add eax, 8
mov dword [eax + 0x5b0], ecx
cmp ecx, eax
jne 0x1007c83d
xor ecx, ecx
jmp 0x1007c849
mov edx, dword [ecx + 0x5a8]
mov dword [eax + 0x5b0], edx
push esi
mov esi, ecx
test ecx, ecx
je 0x1007c8fd
push ebp
mov ebp, dword [sym.imp.KERNEL32.DLL_GetProcessHeap]
push edi
mov edi, dword [sym.imp.KERNEL32.DLL_OpenThread]
mov eax, dword [esi]
cmp dword [esp + 0x10], eax
jne 0x1007c870
mov dword [esp + 0xc], esi
jmp 0x1007c8d0
push eax
push 1
push 0x40
call edi
test eax, eax
jne 0x1007c8c9
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x57
jne 0x1007c8bc
mov eax, dword [esi + 0x5ac]
mov ecx, dword [esi + 0x5a8]
mov dword [eax + 0x5a8], ecx
mov edx, dword [esi + 0x5a8]
mov eax, dword [esi + 0x5ac]
mov dword [edx + 0x5ac], eax
call ebp
test eax, eax
je 0x1007c8d0
push esi
push 0
push eax
call dword [sym.imp.KERNEL32.DLL_HeapFree]
jmp 0x1007c8d0
push 0x100affd8
call dword [sym.imp.KERNEL32.DLL_OutputDebugStringW]
jmp 0x1007c8d0
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [ebx]
mov esi, dword [eax + 0x5b8]
add eax, 8
cmp esi, eax
je 0x1007c8f3
mov ecx, dword [esi + 0x5a8]
mov dword [eax + 0x5b0], ecx
test esi, esi
jne 0x1007c862
mov eax, dword [esp + 0xc]
pop edi
pop ebp
test eax, eax
jne 0x1007c911
mov ecx, dword [ebx]
add ecx, 8
call fcn.1007ca80
test eax, eax
je 0x1007c911
mov edx, dword [esp + 8]
mov dword [eax], edx
pop esi
add esp, 8
ret

Function at 0x1007c920
Capabilities:
Allocate thread local storage

Disassembly:
push 0xffffffffffffffff
push 0x100a180b
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x100bb300]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov edi, dword [esp + 0x1c]
lea esi, [edi + 8]
push 0x5a0
lea eax, [esi + 8]
push 0
mov dword [edi], 0
mov dword [edi + 4], 0xffffffff
push eax
mov dword [esi], 0
call fcn.10087b80
add esp, 0xc
mov dword [esi + 0x5ac], esi
mov dword [esi + 0x5a8], esi
mov dword [esi + 0x5b0], esi
mov dword [esp + 0x14], 0
mov dword [edi + 0x5bc], 0
call dword [sym.imp.KERNEL32.DLL_TlsAlloc]
mov dword [edi + 4], eax
cmp eax, 0xffffffff
jne 0x1007c9b8
push 0x100b61a4
lea eax, [esp + 0x24]
push eax
mov dword [esp + 0x28], 2
call fcn.10088202
mov ecx, dword [esp + 0x20]
mov dword [edi], ecx
mov dword [esp + 0x14], 0xffffffff
mov eax, edi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 8
Function at 0x1007ecd0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x100a1e00
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x100bb300]
xor eax, esp
mov dword [esp + 0x2c], eax
push ebx
push edi
mov eax, dword [0x100bb300]
xor eax, esp
push eax
lea eax, [esp + 0x3c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x4c]
xor ebx, ebx
mov edi, edx
mov dword [esp + 0x30], 0xf
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x1c], bl
mov dword [esp + 0x44], 1
mov edx, dword [eax]
push 0xffffffffffffffff
mov dword [esp + 0x10], edx
mov edx, dword [eax + 4]
mov eax, dword [eax + 8]
push ebx
push ecx
lea ecx, [esp + 0x24]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], eax
call fcn.10002ef0
mov dword [esp + 0x34], edi
lea eax, [esi + 0x20]
lea edi, [esp + 0xc]
call fcn.1007ee90
mov dword [esp + 0x44], 0xffffffff
cmp dword [esp + 0x30], 0x10
jb 0x1007ed6d
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.10083db0
add esp, 4
mov dword [esp + 0x30], 0xf
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x1c], bl
xor al, al
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.10083dbb
add esp, 0x3c
ret 4

Function at 0x1007ee20
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x100a2123
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x100bb300]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
sub esp, 0x2c
mov eax, esp
xor ecx, ecx
mov dword [eax + 0x24], 0xf
mov dword [eax + 0x20], ecx
mov dword [esp + 0x30], esp
mov dword [esp + 0x34], eax
mov byte [eax + 0x10], cl
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x40], 1
mov dword [esp + 0x40], 0xffffffff
call fcn.1007efe0
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
add esp, 0x14
ret 4
Function at 0x10082e9e
Capabilities:
Allocate or change rwx memory

Disassembly:
cmp dword [0x100c59e0], 0
push esi
jne 0x10082e11
call fcn.10082d37
test eax, eax
je 0x10082e54
mov eax, dword [0x100c59e0]
cmp eax, 1
jne 0x10082e32
push 0xd
push 0
call dword [sym.imp.KERNEL32.DLL_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.DLL_HeapAlloc]
test eax, eax
je 0x10082e54
pop esi
ret
push eax
call dword [0x100c59e8]
test eax, eax
jne 0x10082e9c
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 0x10082e58
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x100c59e0]
call dword [0x100c59e8]
mov edi, eax
test edi, edi
je 0x10082e7d
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.DLL_VirtualFree]
jmp 0x10082e99
mov edi, esi
add esi, 0xff0
push edi
push dword [0x100c59e0]
call dword [fcn.100c59e4]
add edi, 0x10
cmp edi, esi
jb 0x10082e85
mov eax, edi
pop edi
pop esi
ret
jmp 0x10082dfe

Function at 0x10083dbb
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x100bb300]
jne 0x10083dc5
repz ret
jmp fcn.1008b5f0
Function at 0x1009b091
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.1008be4b
and dword [ebp - 4], 0
cmp dword [0x100c6638], 0
mov ebx, eax
jne 0x1009b142
push 0x100a69d4
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x1009b1f3
mov esi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push 0x100a69c8
push edi
call esi
test eax, eax
je 0x1009b1f3
push eax
call fcn.1008bdd9
mov dword [esp], 0x100a69b8
push edi
mov dword [0x100c6638], eax
call esi
push eax
call fcn.1008bdd9
mov dword [esp], 0x100a69a4
push edi
mov dword [0x100c663c], eax
call esi
push eax
call fcn.1008bdd9
mov dword [esp], 0x100a6988
push edi
mov dword [0x100c6640], eax
call esi
push eax
call fcn.1008bdd9
pop ecx
mov dword [0x100c6648], eax
test eax, eax
je 0x1009b142
push 0x100a6970
push edi
call esi
push eax
call fcn.1008bdd9
pop ecx
mov dword [0x100c6644], eax
mov eax, dword [0x100c6644]
cmp eax, ebx
je 0x1009b19a
cmp dword [0x100c6648], ebx
je 0x1009b19a
push eax
call fcn.1008be54
push dword [0x100c6648]
mov esi, eax
call fcn.1008be54
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x1009b19a
test edi, edi
je 0x1009b19a
call esi
test eax, eax
je 0x1009b191
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x1009b191
test byte [ebp - 0xc], 1
jne 0x1009b19a
or dword [ebp + 0x10], 0x200000
jmp 0x1009b1d3
mov eax, dword [0x100c663c]
cmp eax, ebx
je 0x1009b1d3
push eax
call fcn.1008be54
pop ecx
test eax, eax
je 0x1009b1d3
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x1009b1d3
mov eax, dword [0x100c6640]
cmp eax, ebx
je 0x1009b1d3
push eax
call fcn.1008be54
pop ecx
test eax, eax
je 0x1009b1d3
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x100c6638]
call fcn.1008be54
pop ecx
test eax, eax
je 0x1009b1f3
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x1009b1f5
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x100dc4f3
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
cld
mov dl, 0x80
movsb byte es:[edi], byte [esi]
call fcn.100dc572
jae 0x100dc4ff
xor ecx, ecx
call fcn.100dc572
jae 0x100dc529
xor eax, eax
call fcn.100dc572
jae 0x100dc53a
mov al, 0x10
call fcn.100dc572
adc al, al
jae 0x100dc51b
jne 0x100dc567
stosb byte es:[edi], al
jmp 0x100dc500
call fcn.100dc57e
dec ecx
loop 0x100dc546
mov eax, ebp
call fcn.100dc57c
jmp 0x100dc568
lodsb al, byte [esi]
shr eax, 1
je 0x100dc58e
adc ecx, 2
mov ebp, eax
jmp 0x100dc568
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
mov ebp, eax
call fcn.100dc57c
cmp eax, 0x7d00
jae 0x100dc566
cmp eax, 0x500
jae 0x100dc567
cmp eax, 0x7f
ja 0x100dc568
inc ecx
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x100dc500
pop ebp
ret 8
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x407ef8
nop
nop
mov ecx, 0x50026c9c
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x42e04e
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x42e024
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42cd70
mov ecx, 0x70ff3abb
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x42e084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x42e06c
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x401850
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40186b
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4018a4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x4018a0
jmp 0x401890
cmp esi, eax
jae 0x4018a4
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401890
cmp esi, eax
jb 0x4018ab
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x40fe30
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4a8cc8]
jne 0x40fe3a
repz ret
jmp fcn.004157b6

Function at 0x41f257
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004151c5
and dword [ebp - 4], 0
cmp dword [0x4ae340], 0
mov ebx, eax
jne 0x41f308
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x41f3b9
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x47e078
push edi
call esi
test eax, eax
je 0x41f3b9
push eax
call fcn.00415153
mov dword [esp], 0x47e068
push edi
mov dword [0x4ae340], eax
call esi
push eax
call fcn.00415153
mov dword [esp], 0x47e054
push edi
mov dword [0x4ae344], eax
call esi
push eax
call fcn.00415153
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4ae348], eax
call esi
push eax
call fcn.00415153
pop ecx
mov dword [0x4ae350], eax
test eax, eax
je 0x41f308
push 0x47e020
push edi
call esi
push eax
call fcn.00415153
pop ecx
mov dword [0x4ae34c], eax
mov eax, dword [0x4ae34c]
cmp eax, ebx
je 0x41f360
cmp dword [0x4ae350], ebx
je 0x41f360
push eax
call fcn.004151ce
push dword [0x4ae350]
mov esi, eax
call fcn.004151ce
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x41f360
test edi, edi
je 0x41f360
call esi
test eax, eax
je 0x41f357
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x41f357
test byte [ebp - 0xc], 1
jne 0x41f360
or dword [ebp + 0x10], 0x200000
jmp 0x41f399
mov eax, dword [0x4ae344]
cmp eax, ebx
je 0x41f399
push eax
call fcn.004151ce
pop ecx
test eax, eax
je 0x41f399
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x41f399
mov eax, dword [0x4ae348]
cmp eax, ebx
je 0x41f399
push eax
call fcn.004151ce
pop ecx
test eax, eax
je 0x41f399
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4ae340]
call fcn.004151ce
pop ecx
test eax, eax
je 0x41f3b9
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x41f3bb
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x427970
Capabilities:
Compute adler32 checksum

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.004276e0
Function at 0x42dab0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x24
call fcn.004146c0
mov eax, dword [0x4a8cc8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
mov eax, esi
push edi
mov dword [ebp - 0x18], esi
lea ecx, [eax + 1]
jmp 0x42dae0
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x42dae0
mov ebx, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0
push 0
sub eax, ecx
lea edi, [eax + 1]
push edi
push esi
push 8
push 0xfde9
mov dword [ebp - 0x20], 8
call ebx
mov esi, eax
test esi, esi
jg 0x42db58
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3ec
jne 0x42db3a
mov ecx, dword [ebp - 0x18]
push 0
push 0
push edi
push ecx
push 0
push 0xfde9
mov dword [ebp - 0x20], 0
call ebx
mov esi, eax
test esi, esi
jg 0x42db58
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x459
jne 0x42dbea
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x18]
push edx
push eax
jmp 0x42dbd8
lea eax, [esi + esi]
call fcn.00414750
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x20]
mov eax, esp
push esi
push eax
push edi
push ecx
push edx
push 0xfde9
mov dword [ebp - 0x24], eax
call ebx
test eax, eax
je 0x42dbea
mov esi, dword [ebp - 0x1c]
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x42db83
push 8
sub eax, edx
lea ecx, [ebp - 0x14]
push ecx
inc eax
push eax
push esi
push 0
push 0xfde9
call ebx
test eax, eax
je 0x42dbea
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x14]
push edx
push eax
call fcn.00410c84
mov esi, eax
add esp, 8
test esi, esi
jne 0x42dc8e
call fcn.00413fdd
cmp dword [eax], 2
je 0x42dbd0
call fcn.00413fdd
cmp dword [eax], 9
jne 0x42dbe2
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x18]
push ecx
push edx
call fcn.0046e1f1
mov esi, eax
add esp, 8
test esi, esi
jne 0x42dc8e
push 0xa9
push str..crypto_bio_bss_file.c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 1
push 2
call fcn.0042d110
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x18]
push 0x483920
push eax
push 0x48391c
push ecx
push str.fopen_
push 5
call fcn.0042ce10
add esp, 0x2c
call fcn.00413fdd
cmp dword [eax], 2
jne 0x42dc60
push 0xac
push str..crypto_bio_bss_file.c
push 0x80
push 0x6d
push 0x20
call fcn.0042d110
add esp, 0x14
xor eax, eax
lea esp, [ebp - 0x30]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040fe30
mov esp, ebp
pop ebp
ret
push 0xae
push str..crypto_bio_bss_file.c
push 2
push 0x6d
push 0x20
call fcn.0042d110
add esp, 0x14
xor eax, eax
lea esp, [ebp - 0x30]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040fe30
mov esp, ebp
pop ebp
ret
push 0x4aa478
call fcn.0042a450
mov edi, eax
add esp, 4
test edi, edi
jne 0x42dcc0
push esi
call fcn.004110dc
add esp, 4
xor eax, eax
lea esp, [ebp - 0x30]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040fe30
mov esp, ebp
pop ebp
ret
push 0
push edi
call fcn.00429ee0
push esi
push 1
push 0x6a
push edi
call fcn.0042a240
add esp, 0x18
mov eax, edi
lea esp, [ebp - 0x30]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040fe30
mov esp, ebp
pop ebp
ret
Function at 0x42fb50
Capabilities:
Access the windows event log

Disassembly:
mov eax, 0x108
call fcn.004146c0
mov eax, dword [0x4a8cc8]
xor eax, esp
mov dword [esp + 0x104], eax
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
test eax, eax
je 0x42fbb5
push eax
call dword [sym.imp.KERNEL32.dll_GetFileType]
test eax, eax
je 0x42fbb5
mov ecx, dword [esp + 0x10c]
lea eax, [esp + 0x110]
push eax
push ecx
call fcn.004177b5
add eax, 0x40
push eax
call fcn.0046e46b
add esp, 0xc
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.0040fe30
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.0041ac9d
add esp, 0x10
mov byte [esp + 0x103], 0
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x42fc44
call fcn.0042fa10
test eax, eax
jle 0x42fc44
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.0040fe30
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.0040fe30
add esp, 0x108
ret

Function at 0x431fd0
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
push esi
xor esi, esi
test edx, edx
je 0x432017
mov al, byte [edx]
test al, al
je 0x432017
push edi
mov edi, 0x100
movsx eax, al
or eax, edi
mov ecx, eax
shr ecx, 2
xor ecx, eax
and ecx, 0xf
add edi, 0x100
rol esi, cl
mov ecx, eax
imul ecx, eax
mov al, byte [edx + 1]
inc edx
xor esi, ecx
test al, al
jne 0x431fe7
mov eax, esi
shr eax, 0x10
pop edi
xor eax, esi
pop esi
ret
xor eax, eax
pop esi
ret