joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48e49e
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x84
mov eax, dword [0x52efc0]
mov esi, ecx
xor eax, ebp
mov dword [ebp - 0x10], eax
call fcn.004586e0
cmp dword [eax + 0x40], 1
mov bl, 1
jne 0x48e600
xor ebx, ebx
xor eax, eax
lea edi, [esi + 8]
inc eax
push ebx
push ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov ecx, edi
push eax
call fcn.0040e94a
lea edi, [esi + 0xc]
push ebx
push ebx
xor eax, eax
inc eax
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov ecx, edi
push eax
call fcn.0040e94a
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edi, eax
mov eax, dword [esi]
lea ecx, [ebp - 0x58]
push ebx
push ebx
push 0x100002
push ecx
push dword [eax]
push dword [esi + 8]
push edi
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x48e600
mov eax, dword [esi]
lea ecx, [ebp - 0x5c]
push ebx
push ebx
push 0x100002
push ecx
push dword [eax]
push dword [esi + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x48e600
mov eax, dword [esi]
mov ecx, 0x1000
push 0x40
push ecx
push ecx
push 0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
xor ebx, ebx
test eax, eax
je 0x48e600
mov ecx, dword [ebp - 0x58]
mov edi, eax
lea eax, [ebp - 0x8c]
lea edx, [ebp - 0x90]
mov dword [eax + 4], ebx
mov dword [eax + 0x10], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x18], ebx
mov dword [eax + 0x14], ebx
mov dword [eax + 0x20], ebx
mov dword [eax + 0x1c], ebx
mov dword [eax + 0x28], ebx
mov dword [eax + 0x24], ebx
mov dword [eax + 0x2c], ebx
mov dword [eax], ecx
mov ecx, dword [ebp - 0x5c]
mov dword [eax + 8], ecx
mov ecx, dword [esi]
push edx
mov edx, 0x10
push edx
push eax
push edi
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x48e600
cmp dword [ebp - 0x90], 0x10
jne 0x48e600
mov ecx, esi
push edi
call fcn.0048e656
test al, al
je 0x48e5fe
mov ecx, esi
call fcn.0048ea46
test al, al
je 0x48e5fe
mov eax, dword [esi]
lea ecx, [ebp - 0x54]
mov esi, dword [eax]
lea eax, [ebp - 0x50]
push ecx
push 0x30
push eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
xor ebx, ebx
test eax, eax
je 0x48e600
cmp dword [ebp - 0x54], 0x30
jne 0x48e600
cmp dword [ebp - 0x34], 0
jne 0x48e5fe
cmp dword [ebp - 0x24], 0
je 0x48e617
xor ebx, ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004aeb01
mov eax, ebx
add esp, 0x84
pop esi
pop edi
pop ebx
pop ebp
ret
lea edi, [ebp - 0x20]
lea eax, [ebp - 0x54]
push eax
push 0x10
push edi
push dword [ebp - 0x38]
push esi
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
xor ebx, ebx
test eax, eax
je 0x48e600
cmp dword [ebp - 0x54], 0x10
jne 0x48e600
lea eax, [ebp - 0x54]
push eax
push 0x10
push edi
push dword [ebp - 0x28]
push esi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x48e5fe
cmp dword [ebp - 0x54], 0x10
sete bl
jmp 0x48e600
Function at 0x48ea46
Capabilities:
Resume thread
Suspend thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x208
mov eax, dword [0x52efc0]
mov esi, ecx
xor eax, ebp
mov dword [ebp - 0x10], eax
mov eax, dword [ecx]
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 1
jne 0x48eafa
mov edi, 0x200
xor ebx, ebx
push 0xffffffffffffffff
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x80
je 0x48eafc
cmp eax, 0x102
je 0x48eafc
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
test eax, eax
je 0x48eafa
mov eax, dword [esi]
lea ecx, [ebp - 0x214]
push ecx
push edi
lea ecx, [ebp - 0x210]
push ecx
push dword [esi + 4]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
setne al
cmp dword [ebp - 0x214], edi
sete bl
and bl, al
cmp bl, 1
jne 0x48eadf
mov eax, dword [esi]
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_SuspendThread]
test eax, eax
jne 0x48eafa
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
not bl
setne cl
test bl, cl
jne 0x48ea77
test eax, eax
setne bl
jmp 0x48eafc
xor ebx, ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004aeb01
mov eax, ebx
add esp, 0x208
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x4ad3ac
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
xor ebx, ebx
mov edi, edx
mov esi, ecx
mov dword [ecx], ebx
mov dword [ecx + 4], ebx
push ebx
push edx
push ebx
push 0x8000004
push ebx
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ecx, esi
push eax
call fcn.0040e94a
mov eax, dword [esi]
lea ecx, [eax + 1]
cmp ecx, 2
jb 0x4ad3ef
push edi
push ebx
push ebx
push 6
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [esi + 4], eax
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x4b24fc
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
xor edi, edi
push edi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x4b254b
mov esi, dword [ebp + 0x18]
lea eax, [ebp + 0x10]
push edi
push eax
push esi
push dword [ebp + 0x14]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4b254b
cmp esi, dword [ebp + 0x10]
je 0x4b2546
push 0x4f0988
push 1
push edi
push edi
call fcn.004b13fd
jmp 0x4b2559
xor eax, eax
inc eax
jmp 0x4b255e
mov eax, 0x4f0988
push eax
push eax
push edi
push edi
call fcn.004b13e0
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebp
ret

Function at 0x4b273e
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x4b2768
mov eax, 0x4f0988
push eax
push eax
push 0
push 0
call fcn.004b13e0
add esp, 0x10
xor eax, eax
pop ebp
ret
xor eax, eax
inc eax
pop ebp
ret
Function at 0x4b374d
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
and dword [eax + 0x14], 0
and dword [eax + 0x10], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
pop ebp
ret

Function at 0x4b41bc
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
and dword [eax + 0x20], 0
and dword [eax + 0x24], 0
mov dword [eax], 0x6a09e667
mov dword [eax + 4], 0xbb67ae85
mov dword [eax + 8], 0x3c6ef372
mov dword [eax + 0xc], 0xa54ff53a
mov dword [eax + 0x10], 0x510e527f
mov dword [eax + 0x14], 0x9b05688c
mov dword [eax + 0x18], 0x1f83d9ab
mov dword [eax + 0x1c], 0x5be0cd19
pop ebp
ret

Function at 0x4b4720
Capabilities:
Check mutex on windows

Disassembly:
push 0xa4
mov eax, 0x4e101d
call fcn.004b12fc
mov esi, ecx
mov dword [ebp - 0xa0], esi
xor ebx, ebx
mov dword [esi], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 0x4f2be0
push str._s__u
push 0x41
lea eax, [ebp - 0x98]
push eax
call fcn.004b4530
add esp, 0x14
xor eax, eax
mov word [ebp - 0x18], ax
lea eax, [ebp - 0x98]
push eax
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov edi, eax
mov dword [ebp - 0x9c], edi
test edi, edi
je 0x4b486c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4b4799
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 4], ebx
call fcn.004b45cc
test eax, eax
je 0x4b47ce
mov dword [esi], eax
mov eax, dword [esi]
inc dword [eax + 0x5bc]
or dword [ebp - 4], 0xffffffff
push edi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
test ebx, ebx
jne 0x4b486c
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4b486c
push 0x5c0
call fcn.004b4b80
pop ecx
mov dword [ebp - 0xac], eax
mov byte [ebp - 4], 1
test eax, eax
je 0x4b47f1
push edi
mov ecx, eax
call fcn.004b4a86
jmp 0x4b47f3
mov eax, ebx
mov byte [ebp - 4], bl
mov dword [esi], eax
test eax, eax
je 0x4b4874
xor ebx, ebx
inc ebx
mov dword [ebp - 0xb0], ebx
push eax
call fcn.004b4645
pop ecx
test eax, eax
jne 0x4b47a7
mov dword [ebp - 0xa8], 3
push 0x52bb84
lea eax, [ebp - 0xa8]
jmp 0x4b4889
mov eax, esi
call fcn.004b135c
ret
mov dword [ebp - 0xa4], 1
push 0x52bb84
lea eax, [ebp - 0xa4]
push eax
call fcn.004b5c7c
int3
Function at 0x4b49df
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [ebx]
add ecx, 8
mov dword [ebp - 4], eax
mov eax, dword [ecx + 0x5a8]
mov dword [ecx + 0x5b0], eax
call fcn.004b4d04
mov edi, eax
test edi, edi
je 0x4b4a6a
mov eax, dword [ebp - 4]
cmp eax, dword [edi]
jne 0x4b4a1a
mov esi, edi
jmp 0x4b4a56
push dword [edi]
push 1
push 0x40
call dword [sym.imp.KERNEL32.dll_OpenThread]
test eax, eax
jne 0x4b4a4f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x4b4a42
mov ecx, dword [ebx]
push edi
add ecx, 8
call fcn.004b4ccf
jmp 0x4b4a56
push 0x4f2c38
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x4b4a56
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebx]
add ecx, 8
call fcn.004b4d04
mov edi, eax
test edi, edi
jne 0x4b4a0f
test esi, esi
jne 0x4b4a7f
mov ecx, dword [ebx]
add ecx, 8
call fcn.004b4c20
mov esi, eax
test esi, esi
je 0x4b4a7f
mov eax, dword [ebp - 4]
mov dword [esi], eax
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x4b4a86
Capabilities:
Allocate thread local storage

Disassembly:
push 4
mov eax, 0x4e105b
call fcn.004b125a
mov esi, ecx
mov dword [ebp - 0x10], esi
and dword [esi], 0
lea ecx, [esi + 8]
or dword [esi + 4], 0xffffffff
call fcn.004b4be7
and dword [ebp - 4], 0
and dword [esi + 0x5bc], 0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [esi + 4], eax
cmp eax, 0xffffffff
je 0x4b4ad2
mov eax, dword [ebp + 8]
mov dword [esi], eax
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.004b1336
ret 4
push 0x52bb84
lea eax, [ebp + 8]
mov dword [ebp + 8], 2
push eax
call fcn.004b5c7c
int3

Function at 0x4dc42e
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004dc439
Function at 0x406000
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x38], 0
je 0x40602b
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00406910
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x14], eax
test eax, eax
je 0x40604d
mov eax, dword [ebx + 0x30]
mov eax, dword [eax]
jmp 0x40604f
xor eax, eax
cdq
mov dword [esp + 0xc], eax
mov ecx, edx
mov dword [esp + 0x10], ecx
test edi, edi
jl 0x4060d3
jg 0x406064
test esi, esi
je 0x4060d3
test ecx, ecx
jl 0x4060ad
jg 0x40606e
test eax, eax
je 0x4060ad
cmp edi, ecx
jg 0x406082
jl 0x406078
cmp esi, eax
jae 0x406082
mov eax, esi
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], edi
push eax
push dword [ebp + 8]
push dword [esp + 0x1c]
call fcn.00430ec0
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov edx, dword [ebp + 8]
mov eax, dword [ebx + 0x30]
add edx, ecx
sub esi, ecx
sbb edi, dword [esp + 0x10]
sub dword [eax], ecx
mov eax, dword [ebx + 0x20]
add dword [eax], ecx
jmp 0x4060b0
mov edx, dword [ebp + 8]
test edi, edi
jl 0x4060d3
jg 0x4060ba
test esi, esi
je 0x4060d3
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x4060d3
push eax
push esi
push 1
push edx
call fcn.0044f6e3
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4060f0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x38], 0
je 0x40611b
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004069f0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [edi + 0x1c]
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
mov dword [esp + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x14], eax
test eax, eax
je 0x40613d
mov eax, dword [edi + 0x2c]
mov eax, dword [eax]
jmp 0x40613f
xor eax, eax
cdq
mov dword [esp + 0xc], eax
mov ecx, edx
mov dword [esp + 0x10], ecx
test ebx, ebx
jl 0x4061de
jg 0x40615c
test esi, esi
je 0x4061de
test ecx, ecx
jl 0x4061a9
jg 0x406166
test eax, eax
je 0x4061a9
cmp ebx, ecx
jg 0x40617a
jl 0x406170
cmp esi, eax
jae 0x40617a
mov eax, esi
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], ebx
push eax
push dword [esp + 0x18]
push dword [ebp + 8]
call fcn.00430ec0
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov edx, dword [ebp + 8]
mov eax, dword [edi + 0x2c]
add edx, ecx
sub esi, ecx
mov dword [esp + 0xc], edx
sbb ebx, dword [esp + 0x10]
sub dword [eax], ecx
mov eax, dword [edi + 0x1c]
add dword [eax], ecx
jmp 0x4061b0
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], eax
test ebx, ebx
jl 0x4061de
jg 0x4061ba
test esi, esi
je 0x4061de
cmp dword [edi + 0x4c], 0
je 0x4061de
mov ecx, edi
call fcn.004080b0
push dword [edi + 0x4c]
push esi
push 1
push dword [esp + 0x18]
call fcn.0044f924
add esp, 0x10
sub esi, eax
sbb ebx, 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
pop edi
pop esi
sbb edx, ebx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4065e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x49606c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x406610
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042e658
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x40664c
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x40664c
lea ecx, [edi - 1]
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042e658
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x406714
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x406674
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov edx, dword [esi + 0x38]
test edx, edx
jne 0x4066a7
push dword [esi + 0x4c]
movsx eax, bl
push eax
call fcn.0044e7e0
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042e658
mov esp, ebp
pop ebp
ret 4
mov cl, bl
mov byte [ebp - 0x25], cl
mov edi, dword [edx]
cmp edi, vtable.std::codecvt_char__char__struct__Mbstatet_.0
jne 0x40672a
lea eax, [ebp - 0x25]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x24]
mov dword [ebp - 0x2c], eax
mov edx, dword [esi + 0x4c]
call fcn.00403200
or ecx, 0xffffffff
test al, al
pop edi
cmovne ecx, ebx
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042e658
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x406704
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.0044f6e3
add esp, 0x10
cmp edi, eax
jne 0x406714
lea eax, [ebp - 0x25]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
jne 0x406637
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042e658
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x2c]
mov ecx, edx
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x25]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edi + 0x1c]
test eax, eax
js 0x406714
cmp eax, 1
jle 0x4066e7
cmp eax, 3
jne 0x406714
mov cl, byte [ebp - 0x25]
jmp 0x4066c2
Function at 0x408170
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x49606c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x38], 0
je 0x408207
cmp byte [esi + 0x3d], 0
je 0x408207
push 0xffffffffffffffff
call fcn.004065e0
cmp eax, 0xffffffff
je 0x4081c0
mov ecx, dword [esi + 0x38]
mov edx, dword [ecx]
cmp edx, vtable.std::codecvt_char__char__struct__Mbstatet_.0
jne 0x408219
lea edi, [ebp - 0x24]
xor eax, eax
mov dword [ebp - 0x28], edi
sub eax, 0
je 0x4081d2
sub eax, 1
je 0x4081d6
sub eax, 2
je 0x408207
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042e658
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
lea eax, [ebp - 0x24]
sub edi, eax
je 0x4081f0
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.0044f6e3
add esp, 0x10
cmp edi, eax
jne 0x4081c0
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042e658
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
xor ecx, ebp
pop esi
call fcn.0042e658
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x20]
mov edi, dword [ebp - 0x28]
jmp 0x4081b1

Function at 0x4084b0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x477a20
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x49606c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
push 8
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.0042e6a6
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.00412687
mov dword [esi + 4], eax
lea ecx, [edi + 8]
lea eax, [edi + 4]
mov dword [edi + 0x10], ecx
mov dword [edi + 0xc], eax
add esp, 8
lea eax, [edi + 0x14]
mov dword [edi + 0x34], esi
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x18]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x24]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x28]
mov dword [edi + 0x30], eax
mov dword [ecx], 0
mov ecx, edi
mov eax, dword [edi + 0x20]
push 0
push 0
mov dword [eax], 0
mov eax, dword [edi + 0x30]
mov dword [eax], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x1c]
mov dword [eax], 0
mov eax, dword [edi + 0x2c]
mov dword [eax], 0
mov dword [edi], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
call fcn.00408240
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x40f650
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x228
mov eax, dword [0x49606c]
xor eax, esp
mov dword [esp + 0x224], eax
mov eax, dword [ecx + 4]
mov edx, dword [ebp + 8]
or eax, 0x2001f
push esi
push edi
push eax
push edx
push dword [ecx]
mov dword [esp + 0x28], ecx
lea ecx, [esp + 0x18]
mov dword [esp + 0x24], edx
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
call fcn.0040f5a0
mov esi, eax
test esi, esi
jne 0x40f747
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea eax, [esp + 0x20]
push eax
push esi
push esi
push esi
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0x100
push eax
lea eax, [esp + 0x3c]
push eax
push esi
push dword [esp + 0x28]
call edi
test eax, eax
jne 0x40f719
nop dword [eax]
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x10]
call fcn.0040f650
mov esi, eax
test esi, esi
jne 0x40f747
lea eax, [esp + 0x20]
mov dword [esp + 8], 0x100
push eax
push esi
push esi
push esi
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x3c]
push eax
push esi
push dword [esp + 0x28]
call edi
test eax, eax
je 0x40f6e0
mov eax, dword [esp + 0xc]
test eax, eax
je 0x40f730
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0xc], 0
push dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x14], 0
call fcn.0040f8c0
mov esi, eax
mov eax, dword [esp + 0xc]
test eax, eax
je 0x40f756
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x22c]
mov eax, esi
pop edi
pop esi
xor ecx, esp
call fcn.0042e658
mov esp, ebp
pop ebp
ret 4
Function at 0x4105d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x478016
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x49606c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x420], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x430], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], 0
mov dword [ebp - 0x418], 0
push 0x60
push 0
mov byte [ebp - 4], 1
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push edi
call ebx
mov esi, eax
mov dword [ebp - 0x424], esi
test esi, esi
jne 0x41067c
push 2
push eax
push edi
call ebx
mov esi, eax
mov dword [ebp - 0x424], eax
test esi, esi
jne 0x41067c
call fcn.0040e180
mov edi, eax
jmp 0x41079b
push dword [ebp - 0x41c]
push dword [ebp - 0x420]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x41069f
call fcn.0040e180
jmp 0x41078e
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x420], ebx
test ebx, ebx
jne 0x4106bd
call fcn.0040e180
jmp 0x41078e
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
mov dword [ebp - 0x41c], edi
lea eax, [edi + 1]
cmp eax, edi
jae 0x4106de
mov edi, 0x8007000e
jmp 0x410790
mov ecx, 2
mov byte [ebp - 4], 2
mul ecx
test edx, edx
ja 0x4107d4
jb 0x4106fc
cmp eax, 0xffffffff
ja 0x4107d4
cmp eax, 0x400
jbe 0x410711
push eax
lea ecx, [ebp - 0x418]
call fcn.0040e0d0
jmp 0x410737
lea eax, [ebp - 0x414]
mov dword [ebp - 0x418], eax
jmp 0x410737
mov dword [ebp - 4], 1
cmp dword [ebp - 0x418], 0
jne 0x41074e
mov edi, 0x8007000e
jmp 0x410790
push edi
push dword [ebp - 0x418]
push edi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
jne 0x41076e
call fcn.0040e180
jmp 0x41078e
mov eax, dword [ebp - 0x418]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x42c]
push dword [ebp - 0x418]
call fcn.00410420
mov edi, eax
test esi, esi
je 0x41079b
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x4107b4
lea ecx, [ebp - 0x418]
call fcn.0040e0b0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0042e658
mov esp, ebp
pop ebp
ret 0x10
push 0x80070216
call fcn.00411230
int3

Function at 0x460d6e
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00460967

Function at 0x46b871
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0046b04b

Function at 0x46b87c
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0046b286

Function at 0x46bdf6
Capabilities:
Create thread
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0046bb7d