joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100329f0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x10054040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x10042850
push 0x64
mov edi, edx
mov esi, ecx
call fcn.1003d2d6
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x10032bf4
push 0x64
push 0
push ebx
call sub.VCRUNTIME140.dll_memset
mov byte [ebx], 1
lea eax, [ebx + 0x34]
xorps xmm0, xmm0
add esp, 0xc
movups xmmword [ebx + 0x10], xmm0
movq qword [ebx + 0x20], xmm0
mov dword [ebx + 0x28], 0
push eax
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov dword [ebx + 0x2c], 0xffffffff
mov dword [ebx + 4], 2
mov dword [ebx + 0x30], 0
call dword [sym.imp.MSVCP140.dll__Cnd_init_in_situ]
add esp, 4
mov dword [0x1008d4f0], ebx
lea eax, [ebp - 0x48]
xorps xmm0, xmm0
movq qword [ebx + 0x5c], xmm0
push 0x20
push eax
push 0xffffffffffffffff
push esi
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
xor edx, edx
lea ecx, [ebp - 0x48]
call fcn.10037f90
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push 0x10055564
mov dword [0x1008d2ec], eax
call dword [sym.imp.MSVCP140.dll__Mtx_lock]
add esp, 4
test eax, eax
je 0x10032ac6
push 5
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
mov eax, dword [0x10055590]
cmp eax, 0x7fffffff
jne 0x10032ae0
dec eax
push 6
mov dword [0x10055590], eax
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
test edi, edi
je 0x10032af5
movups xmm0, xmmword [edi]
movups xmmword [0x10088eb4], xmm0
movq xmm0, qword [edi + 0x10]
jmp 0x10032aff
xorps xmm0, xmm0
movups xmmword [0x10088eb4], xmm0
movq qword [0x10088ec4], xmm0
xorps xmm0, xmm0
push 0x10055564
movups xmmword [0x10088ecc], xmm0
movq qword [0x10088edc], xmm0
call dword [sym.imp.MSVCP140.dll__Mtx_unlock]
add esp, 4
cmp dword [0x10088eb0], 0
jne 0x10032bfe
mov dword [0x10078d28], 0x10056958
test esi, esi
je 0x10032b69
cmp byte [esi], 0
mov ecx, 0x10078d38
je 0x10032b66
mov edx, 1
sub edx, esi
lea eax, [esi + edx]
cmp eax, 0x40
jae 0x10032b66
mov al, byte [esi]
inc esi
mov byte [ecx], al
inc ecx
cmp byte [esi], 0
jne 0x10032b53
mov byte [ecx], 0
mov esi, dword [0x1008d4f0]
mov al, 1
mov dword [0x10088eb0], 0x10078d28
mov dword [0x10078d30], 0x10033040
mov dword [0x10078d34], 0x10033050
xchg byte [esi], al
push 4
call fcn.1003c402
add esp, 4
lea ecx, [ebp - 0x4c]
mov dword [eax], esi
push ecx
push 0
push eax
push 0x100334e0
push 0
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov ecx, eax
add esp, 0x18
mov dword [ebp - 0x50], ecx
test ecx, ecx
je 0x10032be5
cmp dword [esi + 0x60], 0
je 0x10032bcb
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
mov eax, dword [ebp - 0x4c]
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003c3f4
mov esp, ebp
pop ebp
ret
push 6
mov dword [ebp - 0x4c], 0
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
mov dword [0x1008d4f0], 0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1003c3f4
mov esp, ebp
pop ebp
ret
Function at 0x10033be0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x10054040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [0x10088eb0]
push esi
push eax
mov dword [edi + 0x154], 1
lea eax, [edi + 0x15c]
lea ebx, [edi + 0x154]
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov dword [edi + 0x158], esi
add esi, 8
je 0x10033cb2
mov eax, dword [edi]
test eax, eax
je 0x10033c61
mov eax, dword [eax + 4]
cmp eax, 0xffffffff
je 0x10033c61
test ebx, ebx
je 0x10033c61
push 0
lea ecx, [ebp - 8]
mov dword [ebp - 8], 0
push ecx
push esi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, 1
jne 0x10033c61
cmp dword [ebp - 8], esi
je 0x10033cb2
mov ecx, dword [edi + 0xc]
test ecx, ecx
je 0x10033c81
mov eax, dword [edi + 4]
cmp eax, 3
je 0x10033c75
cmp eax, 1
jne 0x10033c81
lea eax, [edi + 0x54]
push eax
push dword [edi + 0x50]
call ecx
add esp, 8
mov esi, dword [edi]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 4], 0xffffffff
xor al, al
mov byte [esi], 0
mov dword [edi + 4], 0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003c3f4
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1003c3f4
mov esp, ebp
pop ebp
ret 8
Function at 0x100396f0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 0xc]
sub eax, 0x10000
push eax
call fcn.100398c0
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jbe 0x100397cd
mov edx, dword [ebp - 4]
cmp edx, dword [0x10054004]
jb 0x1003973a
mov eax, dword [ebp - 4]
cmp eax, dword [0x10054008]
ja 0x1003973a
mov ecx, dword [ebp - 4]
sub ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x1003970a
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
call sub.KERNEL32.dll_VirtualQuery
test eax, eax
jne 0x1003975f
jmp 0x100397cd
cmp dword [ebp - 0x14], 0x10000
jne 0x100397b3
cmp dword [ebp - 0x18], 0x10000
jb 0x100397b3
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call sub.KERNEL32.dll_VirtualAlloc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x10039796
mov eax, dword [ebp - 8]
jmp 0x100397cf
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x100397a6
xor eax, eax
jmp 0x100397cf
mov eax, dword [ebp - 4]
sub eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x100397c8
mov ecx, dword [ebp - 0x20]
sub ecx, 0x10000
push ecx
call fcn.100398c0
add esp, 4
mov dword [ebp - 4], eax
jmp 0x1003970a
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x100397e0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
push eax
call fcn.100398f0
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0xc]
jae 0x100398b5
mov edx, dword [ebp - 4]
cmp edx, dword [0x10054004]
jb 0x10039825
mov eax, dword [ebp - 4]
cmp eax, dword [0x10054008]
ja 0x10039825
mov ecx, dword [ebp - 4]
add ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x100397f5
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
call sub.KERNEL32.dll_VirtualQuery
test eax, eax
jne 0x1003984a
jmp 0x100398b5
cmp dword [ebp - 0x14], 0x10000
jne 0x1003989e
cmp dword [ebp - 0x18], 0x10000
jb 0x1003989e
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call sub.KERNEL32.dll_VirtualAlloc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x10039881
mov eax, dword [ebp - 8]
jmp 0x100398b7
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x10039891
xor eax, eax
jmp 0x100398b7
mov eax, dword [ebp - 4]
add eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x100398b0
mov ecx, dword [ebp - 0x24]
add ecx, dword [ebp - 0x18]
push ecx
call fcn.100398f0
add esp, 4
mov dword [ebp - 4], eax
jmp 0x100397f5
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x10039920
Capabilities:
Hook routines via microsoft detours

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.10039d10
add esp, 0xc
mov dword [ebp - 4], 0
cmp dword [0x100570c8], 0
jne 0x1003995d
cmp dword [0x100570c4], 0
je 0x1003995d
mov eax, dword [0x100570c4]
mov dword [0x100570c8], eax
cmp dword [0x100570c8], 0
je 0x100399da
mov ecx, dword [0x100570c8]
cmp dword [ecx + 8], 0
je 0x100399da
mov edx, dword [0x100570c8]
mov eax, dword [edx + 8]
cmp eax, dword [ebp - 0x10]
jb 0x100399da
mov ecx, dword [0x100570c8]
mov edx, dword [ecx + 8]
cmp edx, dword [ebp - 0xc]
ja 0x100399da
mov eax, dword [0x100570c8]
mov ecx, dword [eax + 8]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 0x10]
jb 0x100399a9
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0xc]
jbe 0x100399b0
xor eax, eax
jmp 0x10039af9
mov ecx, dword [0x100570c8]
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x40]
mov dword [ecx + 8], eax
push 0x48
push 0xcc
mov ecx, dword [ebp - 4]
push ecx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov eax, dword [ebp - 4]
jmp 0x10039af9
mov edx, dword [0x100570c4]
mov dword [0x100570c8], edx
jmp 0x100399f6
mov eax, dword [0x100570c8]
mov ecx, dword [eax + 4]
mov dword [0x100570c8], ecx
cmp dword [0x100570c8], 0
je 0x10039a36
cmp dword [0x100570c8], 0
je 0x10039a34
mov edx, dword [0x100570c8]
cmp dword [edx + 8], 0
je 0x10039a34
mov eax, dword [0x100570c8]
mov ecx, dword [eax + 8]
cmp ecx, dword [ebp - 0x10]
jb 0x10039a34
mov edx, dword [0x100570c8]
mov eax, dword [edx + 8]
cmp eax, dword [ebp - 0xc]
ja 0x10039a34
jmp 0x1003998e
jmp 0x100399e8
mov ecx, dword [ebp + 8]
and ecx, 0xffff
mov edx, dword [ebp + 8]
sub edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.10039b00
add esp, 0xc
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x10039af7
mov eax, dword [ebp - 0x18]
mov dword [0x100570c8], eax
mov ecx, dword [0x100570c8]
mov dword [ecx], 0x52727464
mov edx, dword [0x100570c8]
mov dword [edx + 8], 0
mov eax, dword [0x100570c8]
mov ecx, dword [0x100570c4]
mov dword [eax + 4], ecx
mov edx, dword [0x100570c8]
mov dword [0x100570c4], edx
mov dword [ebp - 0x14], 0
mov eax, dword [0x100570c8]
add eax, 0x48
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0x38c
jmp 0x10039ac7
mov ecx, dword [ebp - 8]
sub ecx, 1
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 1
jle 0x10039ae7
imul edx, dword [ebp - 8], 0x48
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x14]
mov dword [eax + edx + 0x40], ecx
imul edx, dword [ebp - 8], 0x48
add edx, dword [ebp - 4]
mov dword [ebp - 0x14], edx
jmp 0x10039abe
mov eax, dword [0x100570c8]
mov ecx, dword [ebp - 0x14]
mov dword [eax + 8], ecx
jmp 0x1003998e
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x1003a840
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x100570c4]
mov dword [ebp - 4], eax
jmp 0x1003a859
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
je 0x1003a880
lea eax, [ebp - 8]
push eax
push 0x40
push 0x10000
mov ecx, dword [ebp - 4]
push ecx
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
jne 0x1003a87e
call sub.KERNEL32.dll_GetLastError
jmp 0x1003a882
jmp 0x1003a850
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x1003ad20
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 8], 0
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [0x100570d4], eax
je 0x1003ad44
mov eax, 0x10dd
jmp 0x1003aeec
cmp dword [0x100570d8], 0
je 0x1003ad57
mov eax, dword [0x100570d8]
jmp 0x1003aeec
cmp dword [ebp + 0xc], 0
jne 0x1003ad67
mov eax, 0x57
jmp 0x1003aeec
cmp dword [ebp + 8], 0
jne 0x1003ad77
mov eax, 6
jmp 0x1003aeec
mov eax, dword [ebp + 8]
cmp dword [eax], 0
jne 0x1003ada0
mov dword [ebp - 8], 6
mov ecx, dword [ebp - 8]
mov dword [0x100570d8], ecx
mov edx, dword [ebp + 8]
mov dword [0x100570dc], edx
mov eax, dword [ebp - 8]
jmp 0x1003aeec
push 0x18
call fcn.1003c402
add esp, 4
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x1003adfb
mov dword [ebp - 8], 8
mov ecx, dword [ebp - 8]
mov dword [0x100570d8], ecx
cmp dword [ebp - 4], 0
je 0x1003adea
mov edx, dword [ebp - 4]
mov dword [ebp - 0x20], edx
push 0x18
mov eax, dword [ebp - 0x20]
push eax
call fcn.1003c455
add esp, 8
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 8]
mov dword [0x100570dc], ecx
mov eax, dword [ebp - 8]
jmp 0x1003aeec
push 0
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
call fcn.1003ad00
mov dword [ebp - 0x10], eax
push 0
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.1003ad00
mov dword [ebp + 0xc], eax
mov edx, dword [ebp - 0x10]
movzx eax, byte [edx + 0x36]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x40]
sub edx, dword [ebp - 0xc]
mov dword [ebp - 0x14], edx
cmp dword [ebp - 0xc], 0
je 0x1003ae3b
cmp dword [ebp - 0xc], 0x1e
jbe 0x1003ae57
mov dword [ebp - 8], 9
cmp dword [0x100570cc], 0
je 0x1003ae52
jmp 0x1003adc9
jmp 0x1003adc0
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x44]
cmp ecx, dword [ebp + 0xc]
je 0x1003ae7e
mov dword [ebp - 8], 9
cmp dword [0x100570cc], 0
je 0x1003ae79
jmp 0x1003adc9
jmp 0x1003adc0
mov dword [ebp - 0x18], 0
lea edx, [ebp - 0x18]
push edx
push 0x40
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
jne 0x1003aea9
call sub.KERNEL32.dll_GetLastError
mov dword [ebp - 8], eax
jmp 0x1003adc0
mov edx, dword [ebp - 4]
mov dword [edx + 4], 1
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov dword [eax + 8], ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
mov dword [edx + 0x10], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x14]
mov dword [ecx + 0xc], edx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x18]
mov dword [eax + 0x14], ecx
mov edx, dword [ebp - 4]
mov eax, dword [0x100570e4]
mov dword [edx], eax
mov ecx, dword [ebp - 4]
mov dword [0x100570e4], ecx
xor eax, eax
mov esp, ebp
pop ebp
ret 8
Function at 0x1003af00
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [0x100570d4], eax
je 0x1003af1d
mov eax, 0x10dd
jmp 0x1003b000
mov eax, dword [0x100570e4]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x1003af9c
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x14]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x10]
movzx eax, byte [edx + 0x36]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0xc]
push edx
call sub.KERNEL32.dll_VirtualProtect
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
jne 0x1003af78
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x10], 0
je 0x1003af78
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x10]
push eax
call fcn.10039da0
add esp, 4
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x10], 0
mov edx, dword [ebp - 4]
mov eax, dword [edx]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 4]
mov dword [ebp - 0xc], ecx
push 0x18
mov edx, dword [ebp - 0xc]
push edx
call fcn.1003c455
add esp, 8
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], eax
jmp 0x1003af25
mov dword [0x100570e4], 0
call fcn.1003a680
mov ecx, dword [0x100570e0]
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0
je 0x1003afea
mov edx, dword [ebp - 8]
mov eax, dword [edx + 4]
push eax
call sub.KERNEL32.dll_ResumeThread
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
push 8
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.1003c455
add esp, 8
mov edx, dword [ebp - 0x18]
mov dword [ebp - 8], edx
jmp 0x1003afb4
mov dword [0x100570e0], 0
mov dword [0x100570d4], 0
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x1003b4e0
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [0x100570d8], 0
je 0x1003b4f9
mov eax, dword [0x100570d8]
jmp 0x1003b598
call sub.KERNEL32.dll_GetCurrentThread
cmp dword [ebp + 8], eax
jne 0x1003b50a
xor eax, eax
jmp 0x1003b598
push 8
call fcn.1003c402
add esp, 4
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x1003b562
mov dword [ebp - 8], 8
cmp dword [ebp - 4], 0
je 0x1003b54b
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x10], ecx
push 8
mov edx, dword [ebp - 0x10]
push edx
call fcn.1003c455
add esp, 8
mov dword [ebp - 4], 0
mov eax, dword [ebp - 8]
mov dword [0x100570d8], eax
mov dword [0x100570dc], 0
mov eax, dword [ebp - 8]
jmp 0x1003b598
mov ecx, dword [ebp + 8]
push ecx
call sub.KERNEL32.dll_SuspendThread
cmp eax, 0xffffffff
jne 0x1003b57a
call sub.KERNEL32.dll_GetLastError
mov dword [ebp - 8], eax
jmp 0x1003b52a
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
mov dword [edx + 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [0x100570e0]
mov dword [ecx], edx
mov eax, dword [ebp - 4]
mov dword [0x100570e0], eax
xor eax, eax
mov esp, ebp
pop ebp
ret 4
Function at 0x433003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
mov eax, section..reloc
nop
mov ebx, 0x40de38
nop
mov ecx, 0x5ec81550
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x43304e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x433024
nop
nop
mov eax, section..rdata
mov ebx, 0x4304d8
nop
mov ecx, 0x6676790a
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x433084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x401100
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x40b61c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push 1
push str.ServicesActive
push 0
xor bl, bl
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov dword [ebp - 0x24], eax
test eax, eax
je 0x40118b
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor esi, esi
cmp esi, 0x18
jae 0x401186
push 4
push dword [esi + 0x40b014]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov edi, eax
test edi, edi
je 0x401176
lea eax, [ebp - 0x20]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x40116b
cmp dword [ebp - 0x1c], 4
mov eax, 1
movzx ebx, bl
cmove ebx, eax
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call edi
jmp 0x40117c
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 0x24]
add esi, 4
test bl, bl
je 0x401133
push eax
call edi
pop edi
pop esi
mov ecx, dword [ebp - 4]
mov al, bl
xor ecx, ebp
pop ebx
call fcn.00404c9b
mov esp, ebp
pop ebp
ret
Function at 0x4022e0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x405c83
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x40b61c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [edi + 0x24], 0
mov dword [ebp - 4], 0
mov dword [edi + 0x2c], 0
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x20]
mov esi, dword [ebp + 0x24]
mov dword [edi], eax
mov eax, dword [ebp + 0xc]
mov dword [edi + 4], eax
mov eax, dword [ebp + 0x10]
mov dword [edi + 8], eax
mov eax, dword [ebp + 0x18]
mov dword [edi + 0x10], eax
mov eax, dword [ebp + 0x1c]
mov dword [edi + 0x14], eax
mov al, byte [ebp + 0x28]
mov byte [ebp - 4], 1
mov dword [edi + 0xc], ebx
mov dword [edi + 0x18], edx
mov dword [edi + 0x1c], esi
mov byte [edi + 0x20], al
mov dword [edi + 0x30], 0
test al, al
jne 0x4023b5
xor ecx, ecx
test esi, esi
je 0x40237d
add edx, 0xc
nop dword [eax]
cmp dword [edx], ecx
cmova ecx, dword [edx]
lea edx, [edx + 0x10]
sub esi, 1
jne 0x402370
mov eax, 0x100000
cmp ecx, eax
cmova ecx, eax
mov dword [edi + 0x28], ecx
lea eax, [ecx + 0xa]
push eax
call fcn.00404e3e
mov esi, eax
add esp, 4
mov eax, dword [edi + 0x24]
cmp eax, esi
je 0x4023ab
push eax
call fcn.00404e47
add esp, 4
mov dword [edi + 0x24], esi
push 0
call fcn.00404e47
add esp, 4
xor ecx, ecx
mov dword [ebp + 0x28], ebx
mov eax, ebx
mov edx, 0x40
mul edx
seto cl
neg ecx
or ecx, eax
xor eax, eax
add ecx, 4
setb al
neg eax
or eax, ecx
push eax
call fcn.00404e3e
add esp, 4
mov dword [ebp + 8], eax
mov byte [ebp - 4], 2
test eax, eax
je 0x402406
push 0x4026a0
push 0x402280
push dword [ebp + 0x14]
mov dword [eax], ebx
lea ebx, [eax + 4]
push 0x40
push ebx
call fcn.00404cac
jmp 0x402408
xor ebx, ebx
mov eax, dword [edi + 0x2c]
mov byte [ebp - 4], 1
cmp eax, ebx
je 0x402447
test eax, eax
je 0x402444
push 0x4026a0
push dword [eax - 4]
lea esi, [eax - 4]
mov byte [ebp - 4], 3
push 0x40
push eax
call fcn.00404d16
mov eax, dword [esi]
shl eax, 6
add eax, 4
push eax
push esi
call fcn.00404e4c
add esp, 8
mov byte [ebp - 4], 1
mov dword [edi + 0x2c], ebx
mov ecx, edi
call fcn.004028e0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x24
Function at 0x402c80
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
cmp dword [ecx + 4], 0
jg 0x402cbe
jl 0x402ca2
mov edx, dword [ebp - 0xc]
cmp dword [edx], 0x7fffffff
ja 0x402cbe
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
cmp dword [ecx + 4], 0xffffffff
jg 0x402cc3
jl 0x402cbe
mov edx, dword [ebp - 0x10]
cmp dword [edx], 0x80000001
jae 0x402cc3
jmp 0x402d62
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp + 0xc]
movzx eax, byte [edx + 8]
test eax, eax
je 0x402cdf
mov dword [ebp - 0x14], 0
jmp 0x402ce6
mov dword [ebp - 0x14], 2
mov ecx, dword [ebp - 0x14]
push ecx
push 0
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
test eax, eax
je 0x402d62
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 4]
cmp edx, dword [ecx + 0xc]
jae 0x402d62
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0xc]
sub ecx, dword [ebp - 4]
mov dword [ebp - 0x1c], ecx
lea edx, [ebp - 0x1c]
push edx
lea eax, [ebp + 0x14]
push eax
call fcn.004019c0
add esp, 8
mov ecx, dword [eax]
mov dword [ebp - 8], ecx
push 0
lea edx, [ebp - 0x20]
push edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x402d55
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 8]
jae 0x402d57
jmp 0x402d62
mov ecx, dword [ebp - 4]
add ecx, dword [ebp - 8]
mov dword [ebp - 4], ecx
jmp 0x402d05
mov esp, ebp
pop ebp
ret