joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40cba0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, ecx
cmp byte [esi + 4], 0
je 0x40cbdf
mov eax, dword [ebp - 4]
push 0
and eax, 0xffff02ff
lea ecx, [ebp - 8]
push ecx
or eax, 0x2ff
push 4
lea edx, [ebp - 4]
mov dword [ebp - 4], eax
mov eax, dword [esi + 0xc]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x40cbe8
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp + 8]
mov ecx, esi
call fcn.0040cc20
test al, al
setne al
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x40cc20
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, eax
xor al, al
push edi
mov edi, ecx
mov byte [ebp - 1], al
mov dword [ebp - 8], 0
test ebx, ebx
je 0x40ccd5
mov ecx, dword [edi + 0x10]
test ecx, ecx
je 0x40ccd5
push esi
push ecx
call fcn.00401760
mov esi, eax
add esp, 4
test esi, esi
je 0x40ccd1
mov eax, dword [edi + 0x10]
push eax
push 0
push esi
call sub.MSVCR100.dll_memset
mov eax, dword [edi + 0x10]
mov edi, dword [edi + 0xc]
add esp, 0xc
push 0
lea ecx, [ebp - 8]
push ecx
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40ccbc
cmp byte [esi + 3], 0
jne 0x40ccbc
movzx edx, word [esi + 6]
mov word [ebx], dx
mov ax, word [esi + 4]
mov word [ebx + 2], ax
mov cx, word [esi + 0xa]
mov word [ebx + 4], cx
movzx edx, word [esi + 8]
mov word [ebx + 6], dx
push esi
mov bl, 1
call fcn.004017d0
add esp, 4
pop esi
pop edi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
mov bl, byte [ebp - 1]
push esi
call fcn.004017d0
add esp, 4
pop esi
pop edi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
mov al, byte [ebp - 1]
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40cce0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, ecx
xor eax, eax
xor bl, bl
xor ecx, ecx
cmp dword [ebp + 8], eax
je 0x40cd90
cmp dword [esi + 0x10], eax
je 0x40cd90
and ecx, 0xff00001d
or ecx, 0x1d
push 0
mov dword [ebp - 0xc], ecx
and eax, 0xffff0203
lea ecx, [ebp - 8]
push ecx
or eax, 0x203
push 8
lea edx, [ebp - 0x10]
mov dword [ebp - 0x10], eax
mov eax, dword [esi + 0xc]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40cd9a
mov eax, dword [esi + 0x10]
push edi
push eax
call fcn.00401760
mov edi, eax
add esp, 4
test edi, edi
je 0x40cd8f
mov ecx, dword [esi + 0x10]
push ecx
push 0
push edi
call sub.MSVCR100.dll_memset
mov eax, dword [esi + 0x10]
mov esi, dword [esi + 0xc]
add esp, 0xc
push 0
lea edx, [ebp - 4]
push edx
push eax
push edi
push esi
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40cd86
cmp byte [edi + 3], bl
jne 0x40cd86
mov eax, dword [edi + 9]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov bl, 1
push edi
call fcn.004017d0
add esp, 4
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x40ed80
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x421018]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x104
lea eax, [ebp - 0x20c]
push eax
xor esi, esi
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x40ee66
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
test eax, eax
je 0x40ee66
push 0xffffffffffffffff
push 0x41becc
lea eax, [ebp - 0x20c]
push 0x104
push eax
call dword [sym.imp.MSVCR100.dll_wcsncat_s]
add esp, 0x10
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40ee66
lea eax, [ebp - 0x20c]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40ee10
sub eax, edx
sar eax, 1
push edi
lea edi, [eax + 1]
lea edx, [edi + edi]
push edx
call fcn.00401760
mov esi, eax
add esp, 4
test esi, esi
je 0x40ee77
lea eax, [ebp - 0x20c]
push eax
push edi
push esi
call dword [sym.imp.MSVCR100.dll_wcscpy_s]
add esp, 0xc
test eax, eax
je 0x40ee77
push esi
call fcn.004017d0
add esp, 4
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00417cae
mov esp, ebp
pop ebp
ret
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00417cae
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00417cae
mov esp, ebp
pop ebp
ret

Function at 0x40f880
Capabilities:
Access the windows event log
Create thread

Disassembly:
push esi
push 0
push 0
push 0
push 0x40f870
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0x41be5c
push 0
mov dword [0x422b30], eax
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov esi, eax
test esi, esi
je 0x40f8cf
push 0
push 0
push 0
push 0
push 0
push 0x40000000
push 0
push 4
push esi
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
pop esi
ret

Function at 0x40f8e0
Capabilities:
Access the windows event log

Disassembly:
mov ecx, dword [0x422b34]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebx
push esi
call edx
mov eax, dword [0x422b30]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, 1
mov dword [0x422b30], 0
test byte [0x422b68], bl
jne 0x40f92a
or dword [0x422b68], ebx
call fcn.0040d2d0
push 0x41a960
call fcn.00417dd5
add esp, 4
cmp dword [0x422b74], 0
jne 0x40f97a
test byte [0x422b68], bl
jne 0x40f953
or dword [0x422b68], ebx
call fcn.0040d2d0
push 0x41a960
call fcn.00417dd5
add esp, 4
mov ecx, dword [0x422b70]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [0x422b70]
push edx
mov dword [0x422b74], ebx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
call fcn.0040dc20
push 0x41be5c
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov esi, eax
test esi, esi
je 0x40f9ae
push 0
push 0
push 0
push 0
push 0
push 0x40000001
push 0
push 4
push esi
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
pop esi
pop ebx
ret
Function at 0x410e80
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4192d6
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
mov eax, dword [0x421018]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov eax, dword [edi]
mov dword [esi], eax
mov ecx, dword [edi + 4]
mov dword [esi + 4], ecx
mov edx, dword [edi + 8]
mov dword [esi + 8], edx
mov eax, dword [edi + 0xc]
mov dword [esi + 0xc], eax
mov ecx, dword [edi + 0x10]
mov dword [esi + 0x10], ecx
lea ecx, [esi + 0x14]
lea edx, [edi + 0x14]
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push edx
or eax, 0xffffffff
xor ebx, ebx
mov byte [ecx], 0
call fcn.00401f40
mov dword [ebp - 4], ebx
mov eax, dword [edi + 0x30]
mov dword [esi + 0x30], eax
mov ecx, dword [edi + 0x34]
lea edx, [edi + 0x38]
push edx
lea eax, [esi + 0x38]
push eax
mov dword [esi + 0x34], ecx
call fcn.00412e40
lea edx, [esi + 0x44]
lea ecx, [edi + 0x44]
push edx
mov byte [ebp - 4], 1
call fcn.004131d0
mov eax, dword [edi + 0x5c]
mov dword [esi + 0x5c], eax
mov ecx, dword [edi + 0x60]
mov dword [esi + 0x60], ecx
mov edx, dword [edi + 0x64]
mov dword [esi + 0x64], edx
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x415ce0
Capabilities:
Delete service

Disassembly:
push esi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
test esi, esi
jne 0x415d2c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x415d16
push str.ACCESS_DENIED:_administrative_privileges_required._n
call dword [sym.imp.MSVCR100.dll_printf]
add esp, 4
mov eax, 2
pop esi
ret
push eax
push str.OpenSCManager_failed___d__n
call dword [sym.imp.MSVCR100.dll_printf]
add esp, 8
mov eax, 1
pop esi
ret
push edi
push 0x10000
push str.jhi_service
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
test edi, edi
jne 0x415d73
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 5
je 0x415d97
cmp eax, 0x424
jne 0x415dad
push str.Error:_the_service_does_not_exist._n
call dword [sym.imp.MSVCR100.dll_printf]
add esp, 4
lea eax, [edi + 4]
pop edi
pop esi
ret
push edi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x415dc6
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 5
jne 0x415dad
push str.ACCESS_DENIED:_administrative_privileges_required._n
call dword [sym.imp.MSVCR100.dll_printf]
add esp, 4
pop edi
mov eax, 2
pop esi
ret
call esi
push eax
push str.Uninstall_Service_failed:___d__n
call dword [sym.imp.MSVCR100.dll_printf]
add esp, 8
pop edi
mov eax, 1
pop esi
ret
push str.JHI_Service_removed_successfully_n
call dword [sym.imp.MSVCR100.dll_printf]
add esp, 4
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
pop edi
xor eax, eax
pop esi
ret
Function at 0x415df0
Capabilities:
Start service

Disassembly:
push esi
push 1
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
test esi, esi
jne 0x415e39
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x415e23
push str.ACCESS_DENIED:_administrative_privileges_required._n
call dword [sym.imp.MSVCR100.dll_printf]
add esp, 4
mov eax, 2
pop esi
ret
push eax
push str.OpenSCManager_failed___d__n
call dword [sym.imp.MSVCR100.dll_printf]
add esp, 8
mov eax, 1
pop esi
ret
push edi
push 0x10
push str.jhi_service
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
test edi, edi
jne 0x415e96
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 5
je 0x415ebe
cmp eax, 0x424
jne 0x415e7d
push str.Error:_the_service_does_not_exist._n
call dword [sym.imp.MSVCR100.dll_printf]
add esp, 4
lea eax, [edi + 4]
pop edi
pop esi
ret
call esi
push eax
push str.Open_Service_failed:___d__n
call dword [sym.imp.MSVCR100.dll_printf]
add esp, 8
pop edi
mov eax, 1
pop esi
ret
push 0
push 0
push edi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x415f0a
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 5
jne 0x415ed4
push str.ACCESS_DENIED:_administrative_privileges_required._n
call dword [sym.imp.MSVCR100.dll_printf]
add esp, 4
pop edi
mov eax, 2
pop esi
ret
cmp eax, 0x420
jne 0x415ef1
push str.Error:_JHI_service_already_running._n
call dword [sym.imp.MSVCR100.dll_printf]
add esp, 4
pop edi
mov eax, 5
pop esi
ret
call esi
push eax
push str.Start_Service_failed:___d__n
call dword [sym.imp.MSVCR100.dll_printf]
add esp, 8
pop edi
mov eax, 1
pop esi
ret
push str.JHI_Service_started_successfully_n
call dword [sym.imp.MSVCR100.dll_printf]
add esp, 4
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
pop edi
xor eax, eax
pop esi
ret
Function at 0x415f30
Capabilities:
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x421018]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 1
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
test esi, esi
jne 0x415fa1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x415f7e
push str.ACCESS_DENIED:_administrative_privileges_required._n
call dword [sym.imp.MSVCR100.dll_printf]
add esp, 4
lea eax, [esi + 2]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00417cae
mov esp, ebp
pop ebp
ret
push eax
push str.OpenSCManager_failed___d__n
call dword [sym.imp.MSVCR100.dll_printf]
add esp, 8
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00417cae
mov esp, ebp
pop ebp
ret
push edi
push 0x20000000
push str.jhi_service
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
test edi, edi
jne 0x415ff9
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 5
je 0x416027
cmp eax, 0x424
jne 0x416074
push str.Error:_the_service_does_not_exist._n
call dword [sym.imp.MSVCR100.dll_printf]
add esp, 4
lea eax, [edi + 4]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00417cae
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x20]
push eax
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x41609a
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 5
jne 0x41604a
push str.ACCESS_DENIED:_administrative_privileges_required._n
call dword [sym.imp.MSVCR100.dll_printf]
add esp, 4
pop edi
mov eax, 2
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00417cae
mov esp, ebp
pop ebp
ret
cmp eax, 0x426
jne 0x416074
push str.Error:_JHI_service_has_not_been_started._n
call dword [sym.imp.MSVCR100.dll_printf]
add esp, 4
pop edi
mov eax, 6
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00417cae
mov esp, ebp
pop ebp
ret
call esi
push eax
push str.Stop_Service_failed:___d__n
call dword [sym.imp.MSVCR100.dll_printf]
add esp, 8
pop edi
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00417cae
mov esp, ebp
pop ebp
ret
push str.JHI_Service_terminated_successfully_n
call dword [sym.imp.MSVCR100.dll_printf]
add esp, 4
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
xor eax, eax
pop esi
call fcn.00417cae
mov esp, ebp
pop ebp
ret

Function at 0x417cae
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x421018]
jne 0x417cb8
repz ret
jmp fcn.004181b0
Function at 0x10001850
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
push edi
mov ecx, 0x10
mov esi, 0x38b56f8
lea edi, [ebp - 0x44]
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov esi, dword [ebp + 8]
add esi, 0xfffffffe
xor ecx, ecx
test esi, esi
jle 0x100018e2
jmp 0x10001880
movzx edi, byte [edx + ecx]
shr edi, 2
movzx ebx, byte [ebp + edi - 0x44]
mov byte [eax], bl
movsx edi, byte [edx + ecx]
movzx ebx, byte [edx + ecx + 1]
and edi, 3
shr ebx, 4
shl edi, 4
or edi, ebx
movzx ebx, byte [ebp + edi - 0x44]
mov byte [eax + 1], bl
movsx ebx, byte [edx + ecx + 1]
movzx edi, byte [edx + ecx + 2]
and ebx, 0xf
add ebx, ebx
shr edi, 6
add ebx, ebx
or edi, ebx
movzx ebx, byte [ebp + edi - 0x44]
mov byte [eax + 2], bl
movsx edi, byte [edx + ecx + 2]
and edi, 0x3f
movzx ebx, byte [ebp + edi - 0x44]
mov byte [eax + 3], bl
add ecx, 3
add eax, 4
cmp ecx, esi
jl 0x10001880
cmp ecx, dword [ebp + 8]
jge 0x1000195e
movzx esi, byte [ecx + edx]
shr esi, 2
mov bl, byte [ebp + esi - 0x44]
mov esi, dword [ebp + 8]
dec esi
mov byte [eax], bl
cmp ecx, esi
jne 0x10001921
movsx ecx, byte [ecx + edx]
and ecx, 3
add ecx, ecx
mov dl, byte [ebp + ecx*8 - 0x44]
mov byte [eax + 1], dl
pop edi
mov byte [eax + 2], 0x3d
add eax, 3
pop esi
mov word [eax], 0x3d
pop ebx
mov esp, ebp
pop ebp
ret 4
lea esi, [ecx + edx + 1]
movsx ecx, byte [ecx + edx]
movzx edx, byte [esi]
and ecx, 3
shl ecx, 4
shr edx, 4
or ecx, edx
movzx ecx, byte [ebp + ecx - 0x44]
mov byte [eax + 1], cl
movsx edx, byte [esi]
and edx, 0xf
movzx ecx, byte [ebp + edx*4 - 0x44]
pop edi
mov byte [eax + 2], cl
add eax, 3
pop esi
mov word [eax], 0x3d
pop ebx
mov esp, ebp
pop ebp
ret 4
pop edi
pop esi
mov byte [eax], 0
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x10003940
Capabilities:
Execute anti-debugging instructions

Disassembly:
rdtsc
xor dword [0x38be210], eax
push ebx
push esi
push edi
mov edi, dword [0x38b519c]
call edi
mov ebx, dword [0x38b5194]
xor dword [0x38be210], eax
push 0x38b622c
call ebx
test eax, eax
je 0x10003981
push 0x38b98a4
push eax
call dword [0x38b5190]
test eax, eax
je 0x10003981
push 0x38be210
call eax
mov ecx, dword [0x38be210]
mov eax, ecx
xor edx, edx
or esi, 0xffffffff
div esi
lea esi, [ecx + eax]
rdtsc
xor ecx, eax
mov dword [0x38be210], ecx
call edi
xor dword [0x38be210], eax
push 0x38b622c
call ebx
test eax, eax
je 0x100039c7
push 0x38b98a4
push eax
call dword [0x38b5190]
test eax, eax
je 0x100039c7
push 0x38be210
call eax
mov ecx, dword [0x38be210]
push esi
mov eax, ecx
xor edx, edx
or esi, 0xffffffff
div esi
add eax, ecx
push eax
push 0x38b5968
push 0x104
push 0x38c9c60
call dword [0x38b52f4]
add esp, 0x14
pop edi
pop esi
pop ebx
ret
Function at 0x1000d7a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
lea eax, [ebp - 4]
push eax
push 0x38bf588
mov dword [ebp - 4], 0x10
call dword [0x38b52a4]
push 0x38bf588
call dword [0x38b52a8]
or ecx, 0xffffffff
mov edx, 0x38bf588
test eax, eax
je 0x1000d7ed
movzx esi, byte [edx]
xor esi, ecx
and esi, 0xff
shr ecx, 8
xor ecx, dword [esi*4 + 0x38bf6c8]
inc edx
dec eax
jne 0x1000d7d4
mov edi, dword [0x38b54d4]
not ecx
mov esi, ecx
push esi
push 0x38be504
push 0x38bf5a0
call edi
lea ebx, [esi + esi]
push ebx
push 0x38be504
push 0x38bf54c
call edi
lea ecx, [esi + esi*2]
push ecx
push 0x38be504
push 0x38bf5dc
call edi
push esi
push 0x38be580
push 0x38bf670
call edi
push ebx
push 0x38be580
push 0x38bf630
call edi
add esp, 0x3c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x1000da30
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push 0x101
lea eax, [ebp - 0x104]
push eax
push ecx
call dword [0x38b54e4]
mov edx, eax
or eax, 0xffffffff
lea ecx, [ebp - 0x104]
test edx, edx
je 0x1000da7a
push esi
lea esp, [esp]
movzx esi, byte [ecx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x38bf6c8]
inc ecx
dec edx
jne 0x1000da60
pop esi
not eax
mov esp, ebp
pop ebp
ret

Function at 0x1000daf0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x38c9ed4]
sub esp, 0x104
push ebx
mov ebx, dword [0x38b53a8]
push esi
push edi
push 1
push 5
push eax
call ebx
push eax
call ebx
mov edi, dword [0x38b540c]
mov esi, eax
lea esp, [esp]
push esi
call dword [0x38b53e4]
test eax, eax
je 0x1000dbb7
push 0xfffffffffffffff0
push esi
call dword [0x38b541c]
test eax, 0x40000000
jne 0x1000db9c
push 0x101
lea ecx, [ebp - 0x104]
push ecx
push esi
call dword [0x38b54e4]
or ecx, 0xffffffff
lea edx, [ebp - 0x104]
test eax, eax
je 0x1000db7f
nop
movzx ebx, byte [edx]
xor ebx, ecx
and ebx, 0xff
shr ecx, 8
xor ecx, dword [ebx*4 + 0x38bf6c8]
inc edx
dec eax
jne 0x1000db60
mov ebx, dword [0x38b53a8]
not ecx
test ecx, ecx
je 0x1000db96
xor eax, eax
cmp ecx, dword [eax*8 + 0x38be528]
je 0x1000dbcd
inc eax
cmp eax, 0xb
jb 0x1000db87
xor eax, eax
test al, 0x20
je 0x1000dbb7
push 0
push 0x1b
push 0x100
push esi
call edi
push 0xc01b0000
push 0x1b
push 0x101
push esi
call edi
push 3
push esi
call ebx
mov esi, eax
test esi, esi
jne 0x1000db20
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
movzx eax, word [eax*8 + 0x38be52c]
jmp 0x1000db98
Function at 0x100282e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test ecx, ecx
jne 0x100282f0
xor eax, eax
pop ebp
ret 4
push esi
not eax
cmp edx, 8
jb 0x100283bf
mov esi, edx
shr esi, 3
push edi
movzx edi, byte [ecx]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x38b7d50]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x38b7d50]
movzx edi, byte [ecx + 2]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x38b7d50]
movzx edi, byte [ecx + 3]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x38b7d50]
movzx edi, byte [ecx + 4]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x38b7d50]
movzx edi, byte [ecx + 5]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x38b7d50]
movzx edi, byte [ecx + 6]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x38b7d50]
movzx edi, byte [ecx + 7]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x38b7d50]
add ecx, 8
sub edx, 8
dec esi
jne 0x10028302
pop edi
test edx, edx
je 0x100283dc
movzx esi, byte [ecx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x38b7d50]
inc ecx
dec edx
jne 0x100283c3
not eax
pop esi
pop ebp
ret 4
Function at 0x100283f0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78
push ebx
push esi
push edi
call dword [0x38b512c]
cmp eax, 1
je 0x10028411
mov eax, 0x1000000
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
lea eax, [ebp - 0x74]
push eax
push edi
call dword [0x38b5128]
test eax, eax
jne 0x1002842d
mov eax, 0x200
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
lea ecx, [ebp - 0x30]
push ecx
call dword [0x38b51f4]
lea edx, [ebp - 0x40]
push edx
call dword [0x38b5134]
mov esi, dword [0x38b5138]
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x30]
push ecx
call esi
lea edx, [ebp - 0x18]
push edx
lea eax, [ebp - 0x40]
push eax
call esi
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x1c]
sbb ecx, dword [ebp - 0x14]
sub dword [ebp - 0x60], eax
sbb dword [ebp - 0x5c], ecx
sub dword [ebp - 0x68], eax
sbb dword [ebp - 0x64], ecx
sub dword [ebp - 0x70], eax
sbb dword [ebp - 0x6c], ecx
mov ecx, dword [ebp - 0x74]
mov eax, ecx
xor esi, esi
and eax, 1
je 0x1002848f
mov dword [ebp - 8], 1
mov esi, dword [ebp - 8]
test cl, 2
je 0x10028497
or esi, 2
test cl, 4
je 0x1002849f
or esi, 4
mov edx, ecx
and edx, 0x10
je 0x100284a9
or esi, 0x10
test cl, 0x20
je 0x100284b1
or esi, 0x20
test edx, edx
je 0x100284bd
or esi, 0x40000000
jmp 0x100284c3
or esi, 0x80000000
or esi, 0x1000000
mov dword [ebp - 8], esi
test eax, eax
jne 0x100284d9
or esi, 0x800000
mov dword [ebp - 8], esi
push 0
push edi
call dword [0x38b513c]
mov dword [ebp - 0x10], eax
cmp eax, 0x28
jbe 0x10028580
mov esi, dword [0x38b51fc]
push 0
push 0
push 0
push edi
call esi
mov ebx, dword [0x38b521c]
push 0
lea ecx, [ebp - 0xc]
push ecx
push 2
lea edx, [ebp - 4]
push edx
push edi
call ebx
push 0
push 0
push 0x24
push edi
call esi
push 0
lea eax, [ebp - 0xc]
push eax
push 4
lea ecx, [ebp - 0x14]
push ecx
push edi
call ebx
mov edx, 0x54ad
cmp word [ebp - 4], dx
jne 0x1002857d
mov eax, dword [ebp - 0x14]
lea ecx, [eax + 0x34]
cmp dword [ebp - 0x10], ecx
jbe 0x1002857d
push 0
push 0
push eax
push edi
call esi
push 0
lea edx, [ebp - 0xc]
push edx
push 4
lea eax, [ebp - 0x1c]
push eax
push edi
call ebx
mov eax, dword [ebp - 0x1c]
cmp eax, 0x5a4d
je 0x10028576
cmp eax, 0x454e
je 0x10028576
cmp eax, 0x454c
je 0x10028576
cmp eax, 0x4550
jne 0x1002857d
or dword [ebp - 8], 0x400000
mov esi, dword [ebp - 8]
mov eax, dword [ebp + 8]
xor ecx, ecx
cmp eax, ecx
je 0x1002858b
mov dword [eax], esi
mov eax, dword [ebp + 0xc]
cmp eax, ecx
je 0x10028597
mov edx, dword [ebp - 0x10]
mov dword [eax], edx
mov eax, dword [ebp + 0x10]
cmp eax, ecx
je 0x100285a6
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov esi, dword [ebp + 0x14]
cmp esi, ecx
je 0x100285ce
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp + 8]
push ecx
lea edx, [ebp - 0x60]
push edx
call dword [0x38b5140]
movzx eax, word [ebp + 8]
movzx ecx, word [ebp + 0xc]
shl eax, 0x10
or eax, ecx
mov dword [esi], eax
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10