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

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push 0x20019
xor esi, esi
push esi
push 0x1002050
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100f066
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
push esi
push 0x10000002
push 0x100203c
push esi
push dword [ebp + 0xc]
call dword [sym.imp.SHLWAPI.dll_SHRegGetValueA]
test eax, eax
jne 0x100f05d
inc esi
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
neg eax
sbb eax, eax
and eax, 0x7fff0001
add eax, 0x8000ffff
pop esi
leave
ret 8

Function at 0x100f755
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
push esi
push 0xfa7
push dword [ecx]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
xor ebx, ebx
push ebx
push ebx
push 0x1004
push eax
mov dword [ebp - 4], eax
call esi
cmp eax, ebx
mov dword [ebp - 8], eax
jle 0x100f7bf
push edi
push 0xd
pop ecx
xor eax, eax
lea edi, [ebp - 0x3c]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x3c]
push eax
push 0
push 0x104b
push dword [ebp - 4]
mov dword [ebp - 0x3c], 4
mov dword [ebp - 0x38], ebx
call esi
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x100f7b8
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
inc ebx
cmp ebx, dword [ebp - 8]
jl 0x100f787
pop edi
xor eax, eax
pop esi
inc eax
pop ebx
leave
ret

Function at 0x100f833
Capabilities:
Get graphical window text

Disassembly:
push ebp
lea ebp, [esp - 0x200]
sub esp, 0x280
mov eax, dword [0x10171b0]
push ebx
push esi
push edi
push 0xd
mov dword [ebp + 0x1fc], eax
mov esi, ecx
pop ecx
xor eax, eax
lea edi, [ebp - 0x4c]
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 0x208]
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x4c]
push eax
push 0
push 0x104b
push 0xfa7
push dword [esi]
mov dword [ebp - 0x14], 0x105
mov dword [ebp - 0x4c], 4
call edi
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
push eax
call ebx
cmp dword [ebp - 0x48], 0xffffffff
je 0x100f8e1
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax]
push 0
push dword [esi]
mov dword [ebp - 0x18], eax
push eax
call dword [ecx + 0x3c]
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
lea edx, [ebp - 0x10]
push edx
lea edx, [ebp - 0x14]
push edx
push eax
call dword [ecx + 0x1c]
and dword [ebp - 0x78], 0
lea eax, [ebp - 0x10]
mov dword [ebp - 0x6c], eax
lea eax, [ebp - 0x80]
push eax
push dword [ebp + 0x208]
push 0x1074
push 0xfa7
push dword [esi]
call edi
push eax
call ebx
mov ecx, dword [ebp + 0x1fc]
pop edi
xor eax, eax
pop esi
inc eax
pop ebx
call fcn.010120df
add ebp, 0x200
leave
ret 4
Function at 0x100fae6
Capabilities:
Get graphical window text

Disassembly:
push ebp
lea ebp, [esp - 0xa00]
sub esp, 0xa80
mov eax, dword [0x10171b0]
mov dword [ebp + 0x9fc], eax
push esi
mov esi, ecx
xor eax, eax
cmp dword [esi + 8], eax
mov dword [ebp - 0x48], 0x105
je 0x100fcb5
push ebx
push edi
push 0xd
pop ecx
lea edi, [ebp - 0x80]
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 0xa08]
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
mov dword [ebp - 0x7c], eax
lea eax, [ebp - 0x80]
push eax
push 0
push 0x104b
push 0xfa7
push dword [esi]
mov dword [ebp - 0x80], 4
call edi
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
push eax
call ebx
cmp dword [ebp - 0x7c], 0xffffffff
je 0x100fc5d
mov eax, dword [ebp - 0x60]
test eax, eax
mov dword [ebp - 0x4c], eax
je 0x100fc5d
mov ecx, dword [eax]
lea edx, [ebp + 0x5d4]
push edx
lea edx, [ebp - 0x48]
push edx
push eax
call dword [ecx + 0x1c]
test eax, eax
je 0x100fb88
and word [ebp + 0x7e0], 0
jmp 0x100fba8
lea eax, [ebp + 0x5d4]
push eax
push 0x105
lea eax, [ebp + 0x7e0]
push eax
call fcn.010033c9
test eax, eax
jl 0x100fc5d
push 0x104
lea eax, [ebp - 0x44]
push eax
push 0x11f8
push dword [0x10172a0]
call dword [sym.imp.USER32.dll_LoadStringW]
push 0x104
lea eax, [ebp + 0x3cc]
push eax
push 0x11f9
push dword [0x10172a0]
call dword [sym.imp.USER32.dll_LoadStringW]
lea eax, [ebp + 0x7e0]
push eax
lea eax, [ebp + 0x3cc]
push eax
lea eax, [ebp + 0x1c4]
push 0x104
push eax
call fcn.01003a7e
add esp, 0x10
push 0x24
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp + 0x1c4]
push eax
push dword [esi]
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 7
je 0x100fc5d
mov ecx, dword [ebp - 0x4c]
lea eax, [ebp + 0x7e0]
push eax
lea eax, [ebp - 0x48]
push eax
mov dword [ebp - 0x48], 0x105
call fcn.010069d9
test eax, eax
jl 0x100fc5d
and word [ebp + 0x82c], 0
lea eax, [ebp + 0x7e0]
push eax
push 0x105
lea eax, [ebp + 0x5d4]
push eax
call fcn.010033c9
test eax, eax
jge 0x100fc61
xor eax, eax
jmp 0x100fcb3
lea eax, [ebp + 0x9ec]
push eax
lea eax, [ebp + 0x5d4]
push eax
call dword [sym.imp.ole32.dll_CLSIDFromString]
mov eax, dword [ebp - 0x4c]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esi + 8]
mov ecx, dword [eax]
lea edx, [ebp + 0x9ec]
push edx
push eax
call dword [ecx + 0x18]
push 0xfa7
push dword [esi]
call edi
push 0
push dword [ebp + 0xa08]
mov esi, eax
push 0x1008
push esi
call ebx
push esi
call dword [sym.imp.USER32.dll_UpdateWindow]
xor eax, eax
inc eax
pop edi
pop ebx
mov ecx, dword [ebp + 0x9fc]
pop esi
call fcn.010120df
add ebp, 0xa00
leave
ret 4
Function at 0x101074c
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x10171b0]
push esi
mov esi, ecx
cmp dword [esi + 0x44], 0
mov dword [ebp - 4], eax
push edi
je 0x10107d7
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x430
push dword [esi + 0x40]
call edi
push 0x104
lea ecx, [ebp - 0x210]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov eax, dword [esi + 0x3c]
mov ecx, dword [eax]
lea edx, [ebp - 0x210]
push edx
push eax
call dword [ecx + 0x20]
test eax, eax
je 0x10107a2
xor eax, eax
jmp 0x10107da
lea eax, [ebp - 0x210]
push eax
push 0xff3
push dword [esi + 0x40]
call edi
push eax
call fcn.010101e7
lea eax, [ebp - 0x210]
push eax
push 0
push 0x478
push dword [esi + 0x40]
call dword [sym.imp.USER32.dll_GetParent]
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
call fcn.010120df
leave
ret

Function at 0x1010c0f
Capabilities:
Check for time delay via gettickcount
Query service status
Start service

Disassembly:
sub esp, 0x20
push ebp
push esi
push 1
xor ebp, ebp
push ebp
push ebp
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
cmp esi, ebp
jne 0x1010c31
pop esi
pop ebp
add esp, 0x20
jmp dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
push edi
push 0x14
push 0x1002164
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push esi
mov edi, eax
call ebx
cmp edi, ebp
jne 0x1010c5d
pop edi
pop ebx
pop esi
pop ebp
add esp, 0x20
jmp dword [sym.imp.KERNEL32.dll_GetLastError]
lea eax, [esp + 0x14]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x1010c7d
push edi
call ebx
pop edi
pop ebx
pop esi
pop ebp
add esp, 0x20
jmp dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [esp + 0x18], 4
jne 0x1010c8e
push edi
call ebx
xor eax, eax
jmp 0x1010d41
push ebp
push ebp
push edi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x1010cab
push edi
call ebx
pop edi
pop ebx
pop esi
pop ebp
add esp, 0x20
jmp dword [sym.imp.KERNEL32.dll_GetLastError]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, eax
xor ebp, ebp
add esi, 0x15f90
inc ebp
mov dword [esp + 0x10], 0x435
lea eax, [esp + 0x14]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x1010d30
mov eax, dword [esp + 0x18]
cmp eax, 1
je 0x1010d28
cmp eax, 3
je 0x1010d28
cmp eax, 4
je 0x1010d23
cmp eax, 5
jbe 0x1010cf1
cmp eax, 7
jbe 0x1010d28
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, esi
jae 0x1010d28
mov eax, dword [esp + 0x2c]
push 0xa
xor edx, edx
pop ecx
div ecx
mov ecx, 0x3e8
cmp eax, ecx
jb 0x1010d18
mov ecx, 0x2710
cmp eax, ecx
jbe 0x1010d1a
mov eax, ecx
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1010d2a
and dword [esp + 0x10], 0
xor ebp, ebp
test ebp, ebp
jne 0x1010cc4
jmp 0x1010d3a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], eax
push edi
call ebx
mov eax, dword [esp + 0x10]
pop edi
pop ebx
pop esi
pop ebp
add esp, 0x20
ret
Function at 0x10120df
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10171b0]
jne 0x10120e8
ret
jmp 0x10120ed
push ebp
lea ebp, [esp - 0x2a8]
sub esp, 0x328
mov eax, dword [0x10171b0]
mov dword [ebp + 0x2a4], eax
mov eax, dword [0x1017304]
test eax, eax
je 0x1012111
call eax
cmp dword [0x1017308], 0
je 0x1012158
push edi
xor eax, eax
and dword [ebp - 0x28], eax
push 0x13
pop ecx
lea edi, [ebp - 0x7c]
rep stosd dword es:[edi], eax
mov ecx, 0xb2
lea edi, [ebp - 0x24]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x80]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x28]
push 0
mov dword [ebp - 0x80], 0xc0000409
mov dword [ebp - 0x2c], eax
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea eax, [ebp - 0x30]
push eax
call dword [0x1017308]
pop edi
push 0x502
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [ebp + 0x2a4]
call fcn.010120df
add ebp, 0x2a8
leave
ret
Function at 0x10121eb
Capabilities:
Get geographical location

Disassembly:
push ebp
lea ebp, [esp - 0x70]
sub esp, 0xb0
mov eax, dword [0x10171b0]
and word [ebp - 0x34], 0
push ebx
push esi
push edi
mov esi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
and dword [ebp - 0x40], 0
push 0x27
pop ecx
mov dword [ebp + 0x6c], eax
xor eax, eax
lea edi, [ebp - 0x32]
rep stosd dword es:[edi], eax
push 0x50
pop ebx
stosw word es:[edi], ax
push ebx
lea eax, [ebp - 0x34]
push eax
push 0x23
mov edi, 0x400
push edi
call esi
test eax, eax
je 0x10122bf
xor eax, eax
cmp word [ebp - 0x34], 0x30
sete al
test eax, eax
mov dword [ebp - 0x38], eax
je 0x1012265
push ebx
lea eax, [ebp - 0x34]
push eax
push 0x1005
push edi
call esi
test eax, eax
je 0x10122bf
xor eax, eax
cmp word [ebp - 0x34], 0x31
sete al
mov dword [ebp - 0x40], eax
push ebx
lea eax, [ebp - 0x34]
push eax
push 0x25
push edi
call esi
test eax, eax
je 0x10122bf
xor eax, eax
cmp word [ebp - 0x34], 0x31
push ebx
sete al
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x34]
push eax
push 0x1e
push edi
call esi
xor esi, esi
cmp eax, esi
je 0x10122bf
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, dword [ebp + 0x7c]
xor ecx, ecx
cmp dword [ebp - 0x3c], esi
setne cl
add eax, ecx
mov ecx, dword [ebp - 0x38]
neg ecx
sbb ecx, ecx
and ecx, 3
lea eax, [eax + ecx + 4]
cmp eax, ebx
jbe 0x10122bb
xor eax, eax
cmp eax, esi
jne 0x10122d2
push dword [ebp + 0x7c]
push 0x10021f4
push dword [ebp + 0x78]
call dword [sym.imp.SHLWAPI.dll_StrCpyNW]
jmp 0x1012340
cmp dword [ebp - 0x38], esi
mov edi, dword [ebp + 0x78]
mov word [edi], si
je 0x10122f7
cmp dword [ebp - 0x40], esi
je 0x10122ef
push ebx
push 0x10021ec
push edi
call dword [sym.imp.SHLWAPI.dll_StrCpyNW]
push ebx
mov ebx, 0x10021e8
jmp 0x10122fd
push ebx
mov ebx, 0x10021e4
mov esi, dword [sym.imp.SHLWAPI.dll_StrCatBuffW]
push ebx
push edi
call esi
cmp dword [ebp - 0x3c], 0
je 0x1012314
push dword [ebp + 0x7c]
push ebx
push edi
call esi
push dword [ebp + 0x7c]
lea eax, [ebp - 0x34]
push eax
push edi
call esi
push dword [ebp + 0x7c]
push 0x10021dc
push edi
call esi
cmp dword [ebp - 0x38], 0
je 0x1012340
cmp dword [ebp - 0x40], 0
jne 0x1012340
push dword [ebp + 0x7c]
push 0x10021d4
push edi
call esi
mov ecx, dword [ebp + 0x6c]
pop edi
pop esi
pop ebx
call fcn.010120df
add ebp, 0x70
leave
ret 8
Function at 0x4026e0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x454
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov al, byte [ebp + 8]
push ebx
push esi
xor esi, esi
mov dword [ebp - 0x28], 0x4f435101
mov dword [ebp - 0x24], 0x6166204d
mov dword [ebp - 0x20], 0x64207473
mov dword [ebp - 0x1c], 0x6c6e776f
mov dword [ebp - 0x18], 0x2064616f
mov dword [ebp - 0x14], 0x746f7270
mov dword [ebp - 0x10], 0x6c6f636f
mov dword [ebp - 0xc], 0x736f6820
mov byte [ebp - 8], 0x74
mov byte [ebp - 7], al
mov word [ebp - 6], 0x102
mov word [ebp - 0x454], 0x17
push edi
mov edi, ecx
cmp al, 2
jbe 0x402757
mov byte [ebp - 5], 0x11
mov byte [edi + 4], 1
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
nop dword [eax]
mov ecx, dword [edi]
lea eax, [ebp - 0x450]
push eax
lea eax, [ebp - 0x44c]
mov dword [ebp - 0x450], 0x424
push eax
push 0x24
lea eax, [ebp - 0x28]
push eax
call fcn.0040ab90
test eax, eax
jne 0x40279a
cmp dword [ebp - 0x450], eax
jle 0x40279a
cmp byte [ebp - 0x44c], 2
je 0x4027ae
mov ecx, dword [edi]
call fcn.0040aa90
push 0x1f4
call ebx
inc esi
cmp esi, 0xa
jl 0x402760
mov ecx, dword [edi]
call fcn.0040aa90
cmp esi, 0xa
je 0x40281e
push str.Got_hello_response_n
call fcn.0040bae2
add esp, 4
cmp esi, 0xa
jge 0x40281e
nop dword [eax]
mov ecx, dword [edi]
lea eax, [ebp - 0x450]
push eax
lea eax, [ebp - 0x44c]
mov dword [ebp - 0x450], 0x424
push eax
push 2
lea eax, [ebp - 0x454]
push eax
call fcn.0040ab90
cmp dword [ebp - 0x450], 0
jle 0x40280a
cmp byte [ebp - 0x44c], 0x18
je 0x402836
mov ecx, dword [edi]
call fcn.0040aa90
push 0x1f4
call ebx
inc esi
cmp esi, 0xa
jl 0x4027d0
pop edi
pop esi
mov eax, 6
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040b500
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040b500
mov esp, ebp
pop ebp
ret 4

Function at 0x403aa0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, edx
cmp esi, 1
jl 0x403b25
cmp esi, 0x100
ja 0x403b25
push ecx
mov ecx, 0x42b1e0
call fcn.0040a980
push esi
lea edx, [ebp - 0x104]
mov ecx, edi
call fcn.00403a30
add esp, 4
mov dword [ebp - 0x108], esi
xor edi, edi
lea eax, [ebp - 0x108]
push edi
push eax
push esi
lea eax, [ebp - 0x104]
push eax
push dword [0x42b1e0]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x403b13
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, edi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040b500
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 0x57
pop edi
xor ecx, ebp
pop esi
call fcn.0040b500
mov esp, ebp
pop ebp
ret
Function at 0x4061f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
movq xmm0, qword [str.__data__n]
mov al, byte [0x426b1c]
push esi
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push ecx
movq qword [ebp - 0x10], xmm0
mov byte [ebp - 8], al
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x406250
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040b500
mov esp, ebp
pop ebp
ret 4
push 2
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 0x14]
push eax
push 8
lea eax, [ebp - 0x10]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.0040b500
mov esp, ebp
pop ebp
ret 4

Function at 0x406450
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x140], 0xffffffff
jne 0x406470
mov eax, 6
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [esi + 0x128]
xor eax, eax
imul ebx, dword [esi + 0x104]
push 0x4000
mov dword [ebp - 8], 0
add ebx, dword [esi + 0x138]
adc eax, dword [esi + 0x13c]
mov dword [ebp - 4], eax
call fcn.0040b57a
add esp, 4
mov dword [esi + 0x570], eax
lea edi, [esi + 0x144]
push dword [edi + 0x10]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, dword [ebp - 4]
mov dword [edi + 0xc], eax
lea eax, [ebp - 8]
push edi
push eax
push 0x200
lea eax, [esi + 0x16c]
mov dword [edi + 8], ebx
push eax
push dword [esi + 0x140]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4064ee
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [edi + 0x10]
add ebx, 0x200
adc dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, dword [ebp - 4]
mov dword [edi + 0xc], eax
lea eax, [ebp - 8]
push edi
push eax
push 0x200
lea eax, [esi + 0x370]
mov dword [edi + 8], ebx
push eax
push dword [esi + 0x140]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4064e1
push dword [edi + 0x10]
add ebx, 0x200
adc dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, dword [ebp - 4]
mov dword [edi + 0xc], eax
lea eax, [ebp - 8]
push edi
push eax
push 0x4000
mov dword [edi + 8], ebx
push dword [esi + 0x570]
push dword [esi + 0x140]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4064e1
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x407fd0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push dword [ebp + 0x14]
mov esi, ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push str.__xml_version_1.0_____data__n_createstoragedrives_DRIVE4_SIZE_IN_KB__i__DRIVE5_SIZE_IN_KB__i__DRIVE6_SIZE_IN_KB__i__DRIVE7_SIZE_IN_KB__i______data_
push 0x800
push dword [esi + 0x264]
call fcn.0040ca05
mov edx, dword [esi + 0x264]
add esp, 0x1c
mov ecx, edx
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x408006
mov eax, dword [esi + 0x238]
sub ecx, edi
push 0
lea edi, [ebp + 0x14]
mov dword [ebp + 0x14], ecx
push edi
push ecx
push edx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x408032
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [esi + 0x264]
push esi
call fcn.00409880
add esp, 8
mov ecx, esi
call fcn.00407950
push 0
push dword [esi + 0x25c]
mov ecx, esi
mov edi, eax
push dword [esi + 0x24c]
call fcn.00407400
test eax, eax
jle 0x408072
push dword [esi + 0x24c]
push esi
call fcn.00409880
add esp, 8
mov eax, edi
pop edi
pop esi
pop ebp
ret 0x10

Function at 0x408080
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push dword [ebp + 8]
mov esi, ecx
push str.__xml_version_1.0_____data__n_setbootablestoragedrive_value__i______data__n
push 0x800
push dword [esi + 0x264]
call fcn.0040ca05
mov edx, dword [esi + 0x264]
add esp, 0x10
mov ecx, edx
lea edi, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4080b0
mov eax, dword [esi + 0x238]
sub ecx, edi
push 0
lea edi, [ebp + 8]
mov dword [ebp + 8], ecx
push edi
push ecx
push edx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4080dc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [esi + 0x264]
push esi
call fcn.00409880
add esp, 8
mov ecx, esi
call fcn.00407950
push 0
push dword [esi + 0x25c]
mov ecx, esi
mov edi, eax
push dword [esi + 0x24c]
call fcn.00407400
test eax, eax
jle 0x40811c
push dword [esi + 0x24c]
push esi
call fcn.00409880
add esp, 8
mov eax, edi
pop edi
pop esi
pop ebp
ret 4

Function at 0x4086d0
Capabilities:
Hash data using crc32b

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
xor edi, edi
or ebx, 0xffffffff
cmp dword [ebp + 0xc], edi
jle 0x408781
mov edx, 0x80
push esi
nop dword [eax]
mov eax, dword [ebp + 8]
movzx ecx, byte [edi + eax]
xor eax, eax
test cl, 1
cmovne eax, edx
sar ecx, 1
test cl, 1
je 0x40870a
bts eax, 6
sar ecx, 1
test cl, 1
je 0x408715
bts eax, 5
sar ecx, 1
test cl, 1
je 0x408720
bts eax, 4
sar ecx, 1
test cl, 1
je 0x40872b
bts eax, 3
sar ecx, 1
test cl, 1
je 0x408736
bts eax, 2
sar ecx, 1
test cl, 1
je 0x408741
bts eax, 1
test cl, 2
je 0x40874a
bts eax, 0
mov esi, 8
nop
mov edx, ebx
movzx ecx, al
sar edx, 0x1f
add ebx, ebx
and edx, 1
shr ecx, 7
xor ecx, edx
je 0x40876a
xor ebx, 0x4c11db7
add al, al
sub esi, 1
jne 0x408750
inc edi
mov edx, 0x80
cmp edi, dword [ebp + 0xc]
jl 0x4086f0
pop esi
xor eax, eax
lea ecx, [eax + 0x1f]
test bl, 1
je 0x40878e
bts eax, ecx
dec ecx
sar ebx, 1
cmp ecx, 0xffffffff
jg 0x408786
pop edi
not eax
pop ebx
pop ebp
ret 8
Function at 0x40ab90
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push edi
mov edi, ecx
mov dword [ebp - 4], 0
cmp dword [edi], 0xffffffff
jne 0x40abb1
mov eax, 6
pop edi
mov esp, ebp
pop ebp
ret 0x10
push ebx
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x20000
push eax
push dword [edi + 4]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040acc0
mov eax, dword [ebp - 8]
lea ecx, [ebp + 0xc]
push 0
push ecx
push eax
push dword [edi + 4]
mov dword [ebp + 0xc], eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x40abf3
call ebx
test eax, eax
jne 0x40ac55
push esi
xor esi, esi
mov eax, dword [edi + 4]
lea ecx, [ebp - 4]
push 0
push ecx
push 1
add eax, esi
mov dword [ebp - 4], 1
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40ac1d
call ebx
test eax, eax
jne 0x40ac54
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x40ac45
mov eax, dword [edi + 4]
cmp byte [esi + eax], 0x7e
jne 0x40ac34
cmp esi, 1
jg 0x40ac3f
xor esi, esi
inc esi
cmp esi, 0x20000
jl 0x40abf6
jmp 0x40ac45
lea ecx, [esi + 1]
mov dword [ebp - 4], ecx
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push ecx
push dword [edi + 4]
call fcn.0040ad70
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret 0x10

Function at 0x40acc0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
mov ecx, 0xffff
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, edx
push edi
test ebx, ebx
jle 0x40ad01
mov edi, ebx
nop dword [eax]
movzx eax, byte [esi]
lea esi, [esi + 1]
xor eax, ecx
shr cx, 8
and eax, 0xff
xor cx, word [eax*2 + 0x4235e0]
movzx ecx, cx
sub edi, 1
jne 0x40ace0
not ecx
lea edi, [ebx + 2]
movzx eax, cx
xor esi, esi
mov dword [ebp + 8], eax
mov eax, dword [ebp + 0x10]
mov byte [eax], 0x7e
inc eax
test edi, edi
jle 0x40ad4f
nop dword [eax]
cmp esi, ebx
lea ecx, [ebp + 8]
cmovne ecx, edx
mov edx, ecx
mov cl, byte [edx]
cmp cl, 0x7e
je 0x40ad3b
cmp cl, 0x7d
je 0x40ad3b
mov byte [eax], cl
inc eax
jmp 0x40ad49
mov byte [eax], 0x7d
mov cl, byte [edx]
xor cl, 0x20
mov byte [eax + 1], cl
add eax, 2
inc esi
inc edx
cmp esi, edi
jl 0x40ad20
mov ecx, dword [ebp + 0x14]
mov byte [eax], 0x7e
sub eax, dword [ebp + 0x10]
pop edi
inc eax
pop esi
mov dword [ecx], eax
xor eax, eax
pop ebx
pop ebp
ret 0x10