joyce8/EMBER2024-capa huggingface dataset:
Function at 0x53e2eb
Capabilities:
Get process heap force flags

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebx + 0x2c]
test eax, 0x40000
push esi
push edi
je 0x53e315
push 0
push 0
push dword [ebp + 8]
push ebx
push pe_nt_image_headers32
call sym.ntoskrnl.exe_KeBugCheckEx
or eax, 0x200000
mov dword [ebx + 0x2c], eax
lea eax, [ebp - 8]
mov dword [ebp - 4], eax
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
xor edi, edi
mov dword [ebx + 0x60], edi
movsx eax, byte [eax + 0x30]
push eax
mov byte [ebp - 0x10], 1
mov byte [ebp - 0xe], 4
mov dword [ebp - 0xc], edi
call fcn.00411f9c
mov esi, eax
mov dword [esi + 0x64], ebx
mov eax, dword fs:[0x124]
mov dword [esi + 0x50], eax
lea eax, [ebp - 0x10]
mov dword [esi + 0x2c], eax
lea eax, [esi + 0x18]
mov dword [esi + 0x28], eax
mov eax, dword [esi + 0x60]
sub eax, 0x24
mov byte [esi + 0x20], 0
mov dword [esi + 0x30], edi
mov dword [esi + 8], 0x404
mov cl, 1
mov byte [eax], 0x12
mov dword [eax + 0x18], ebx
call dword [sym.imp.HAL.dll_KfRaiseIrql]
mov edx, dword [esi + 0x50]
add edx, 0x210
mov ecx, dword [edx]
lea edi, [esi + 0x10]
mov dword [edi], ecx
mov dword [edi + 4], edx
mov dword [ecx + 4], edi
mov cl, al
mov dword [edx], edi
call dword [sym.imp.HAL.dll_KfLowerIrql]
push esi
push dword [ebp + 8]
call sym.ntoskrnl.exe_IoCallDriver
cmp eax, 0x103
jne 0x53e3bf
xor eax, eax
push eax
push eax
push eax
push 6
lea eax, [ebp - 0x10]
push eax
call sym.ntoskrnl.exe_KeWaitForMutexObject
mov cl, 1
call dword [sym.imp.HAL.dll_KfRaiseIrql]
mov edx, dword [edi]
mov cl, al
mov eax, dword [edi + 4]
mov dword [eax], edx
mov dword [edx + 4], eax
mov dword [edi + 4], edi
mov dword [edi], edi
call dword [sym.imp.HAL.dll_KfLowerIrql]
push esi
call sym.ntoskrnl.exe_IoFreeIrp
and dword [ebx + 0x60], 0
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x54bb54
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x6c
mov eax, dword [0x47aa20]
mov dword [ebp - 4], eax
mov eax, dword [0x487e80]
push ebx
mov ebx, dword [ebp + 8]
push esi
movzx esi, word [ebx]
mov dword [ebp - 0x68], eax
push edi
mov edi, dword [sym.ntoskrnl.exe_NtBuildNumber]
xor ecx, ecx
inc eax
imul eax, edi
imul eax, eax, 0x75bcd15
mov dword [ebp - 0x60], eax
mov eax, dword [ebx + 4]
push 0x10
shr esi, 1
mov dword [ebp - 0x54], eax
pop eax
cmp esi, eax
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x64], ecx
mov dword [ebp - 0x50], esi
jae 0x54bba5
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x50], ecx
mov dword [ebp - 0x4c], ecx
jbe 0x54bbdd
mov eax, dword [ebp - 0x4c]
mov ecx, eax
xor edx, edx
div esi
mov eax, dword [ebp - 0x54]
and ecx, 0xf
lea edi, [ebp + ecx - 0x6c]
movzx eax, word [eax + edx*2]
push eax
call sym.ntoskrnl.exe_RtlUpcaseUnicodeChar
xor byte [edi], al
inc dword [ebp - 0x4c]
mov eax, dword [ebp - 0x4c]
cmp eax, dword [ebp - 0x50]
jb 0x54bbad
mov edi, dword [sym.ntoskrnl.exe_NtBuildNumber]
and dword [ebp - 0x50], 0
xor edx, edx
mov dword [ebp - 0x54], 1
mov dword [ebp - 0x4c], edx
mov ecx, dword [ebp - 0x4c]
mov eax, edx
lea ecx, [ebp + ecx - 0x6c]
movzx edx, byte [ecx]
shl eax, 8
add eax, edx
push 0x3e
xor edx, edx
pop esi
div esi
test al, al
mov byte [ecx], al
je 0x54bc0f
and dword [ebp - 0x54], 0
inc dword [ebp - 0x4c]
cmp dword [ebp - 0x4c], 0x10
jb 0x54bbed
mov eax, dword [ebp - 0x50]
mov cx, word [edx*2 + 0x54bd90]
mov word [ebp + eax*2 - 0x48], cx
inc eax
cmp eax, 0x21
mov dword [ebp - 0x50], eax
jae 0x54bc66
cmp dword [ebp - 0x54], 0
je 0x54bbe1
and word [ebp + eax*2 - 0x48], 0
add eax, eax
mov word [ebp - 0x5a], ax
mov word [ebp - 0x5c], ax
lea eax, [ebp - 0x48]
mov dword [ebp - 0x58], eax
lea eax, [ebp - 0x5c]
push eax
and edi, 0xfffffff
push edi
push ebx
push 0x54bc76
call sym.ntoskrnl.exe_DbgPrint
add esp, 0x10
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0040d8f1
leave
ret 4
Function at 0x54c840
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], 0xc0000225
mov eax, dword fs:[0x124]
push 1
mov edi, eax
dec dword [edi + 0xd4]
push 0x483b40
call sym.ntoskrnl.exe_ExAcquireResourceSharedLite
mov esi, dword [ebp + 8]
push 1
push esi
call fcn.004c29c8
mov ebx, eax
test ebx, ebx
je 0x54c8db
mov eax, dword [ebx + 0x18]
push eax
sub esi, eax
call sym.ntoskrnl.exe_RtlImageNtHeader
movzx ecx, word [eax + 0x14]
and dword [ebp + 8], 0
lea ecx, [ecx + eax + 0x18]
movzx eax, word [eax + 6]
test eax, eax
mov dword [ebp - 8], eax
jbe 0x54c8db
mov eax, dword [ecx + 0x10]
mov edx, dword [ecx + 8]
cmp eax, edx
jae 0x54c8aa
mov eax, edx
mov edx, dword [ecx + 0xc]
cmp esi, edx
jb 0x54c8b7
add edx, eax
cmp esi, edx
jb 0x54c8c7
add ecx, 0x28
inc dword [ebp + 8]
mov eax, dword [ebp + 8]
cmp eax, dword [ebp - 8]
jb 0x54c89e
jmp 0x54c8db
mov ecx, dword [ecx + 0xc]
add ecx, dword [ebx + 0x18]
mov edx, dword [ebp + 0xc]
and dword [ebp - 4], 0
mov dword [edx], ecx
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov ecx, 0x483b40
call sym.ntoskrnl.exe_ExReleaseResourceLite
inc dword [edi + 0xd4]
jne 0x54c900
lea eax, [edi + 0x34]
cmp dword [eax], eax
je 0x54c900
mov cl, 1
mov byte [edi + 0x49], 1
call dword [sym.imp.HAL.dll_HalRequestSoftwareInterrupt]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x562d35
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov eax, dword fs:[0x124]
dec dword [eax + 0xd4]
mov ebx, dword [ebp + 8]
push 1
push dword [ebx + 0x30]
call sym.ntoskrnl.exe_ExAcquireResourceSharedLite
mov ecx, dword [ebx + 0x10]
mov eax, dword [ebp + 0xc]
mov dword [eax], ecx
mov ecx, dword [ebx + 0x14]
mov dword [eax + 4], ecx
mov ecx, dword [ebx + 0x18]
mov dword [eax + 8], ecx
mov ecx, dword [ebx + 0x1c]
mov dword [eax + 0xc], ecx
mov ecx, dword [ebx + 0x40]
mov dword [eax + 0x10], ecx
mov ecx, dword [ebx + 0x44]
mov dword [eax + 0x14], ecx
lea edi, [eax + 0x18]
mov esi, ebx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov ecx, dword [ebx + 0x30]
call sym.ntoskrnl.exe_ExReleaseResourceLite
mov eax, dword fs:[0x124]
inc dword [eax + 0xd4]
pop edi
pop esi
pop ebx
jne 0x562db1
lea ecx, [eax + 0x34]
cmp dword [ecx], ecx
je 0x562db1
mov cl, 1
mov byte [eax + 0x49], 1
call dword [sym.imp.HAL.dll_HalRequestSoftwareInterrupt]
pop ebp
ret 8
Function at 0x56790d
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
mov ecx, dword [ebp + 0x18]
mov eax, dword [0x47a5a8]
lea edx, [eax + ecx + 0x1f]
dec eax
not eax
push edi
mov edi, dword [ebp + 8]
and edx, eax
mov eax, dword [edi + 0x108]
lea ecx, [eax - 0x48]
cmp edx, ecx
mov dword [ebp + 0x18], edx
jbe 0x567940
xor eax, eax
jmp 0x567a1e
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebx + 0x30]
mov ecx, eax
sub ecx, esi
cmp edx, ecx
jbe 0x5679a9
cmp esi, eax
jae 0x56796b
mov edx, ecx
shr ecx, 2
or eax, 0xffffffff
lea edi, [esi + ebx]
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov edi, dword [ebp + 8]
xor eax, eax
push eax
lea esi, [edi + 0xe0]
push esi
push dword [edi + 0x108]
lea ecx, [ebp - 8]
push ebx
push ecx
push eax
push eax
push eax
push dword [ebp + 0xc]
call sym.ntoskrnl.exe_ZwWriteFile
mov dword [ebx + 0x30], 0x48
mov ecx, dword [edi + 0x108]
add dword [esi], ecx
adc dword [esi + 4], 0
test eax, eax
jge 0x5679a6
xor eax, eax
jmp 0x567a1c
mov edx, dword [ebp + 0x18]
mov esi, dword [ebx + 0x30]
mov eax, dword [ebp + 0x14]
shl eax, 0x10
add esi, ebx
add eax, edx
mov dword [esi + 4], eax
mov dword [esi], 0xc0010001
mov eax, dword fs:[0x124]
mov dword [ebp + 8], eax
call dword [edi + 0x128]
mov dword [esi + 0x10], eax
mov eax, dword [ebp + 8]
mov dword [esi + 0x14], edx
mov ecx, dword [eax + 0x1f0]
mov dword [esi + 8], ecx
mov ecx, dword [eax + 0x1ec]
mov dword [esi + 0xc], ecx
mov ecx, dword [eax + 0x144]
mov dword [esi + 0x18], ecx
mov eax, dword [eax + 0x148]
mov dword [esi + 0x1c], eax
mov eax, dword [ebp + 0x18]
mov word [esi + 4], ax
add dword [ebx + 0x30], eax
mov ecx, dword [edi + 0x108]
mov eax, dword [ebx + 0x30]
sub ecx, 4
cmp eax, ecx
ja 0x567a19
or dword [eax + ebx], 0xffffffff
lea eax, [esi + 0x20]
pop esi
pop ebx
pop edi
leave
ret 0x18

Function at 0x5737fb
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0xc]
test ecx, ecx
push esi
je 0x573854
cmp ecx, 0xffffffff
je 0x573854
mov edx, dword [eax + 0x10]
cmp edx, 0x40
jb 0x573854
cmp word [ecx], 0x5a4d
jne 0x573854
mov eax, dword [ecx + 0x3c]
push edi
xor esi, esi
lea edi, [eax + 4]
inc esi
cmp edx, edi
pop edi
jb 0x573854
add eax, ecx
cmp dword [eax], 0x4550
jne 0x57383c
push 3
jmp 0x573845
cmp word [eax], 0x454e
jne 0x573846
push 2
pop esi
mov eax, dword [ebp + 8]
test eax, eax
je 0x57384f
mov dword [eax], esi
xor eax, eax
inc eax
jmp 0x573856
xor eax, eax
pop esi
pop ebp
ret 8
Function at 0x58d61b
Capabilities:
Execute anti-debugging instructions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, dword [ebp + 8]
cmp byte [ebx], 0
je 0x58d70c
cmp dword [ebx + 0x70], 0
jl 0x58d70c
push esi
push edi
jmp 0x58d6f8
mov eax, dword [ebx + 0x8c]
cmp dword [eax + 0xc], 0
sete al
push eax
push ebx
call fcn.0058d4c3
test al, al
je 0x58d70a
mov eax, dword [ebx + 0x8c]
cmp dword [eax + 0xc], 0
je 0x58d640
mov ecx, dword [eax + 0xc]
mov eax, dword [ebp + 0x10]
cmp ecx, eax
mov dword [ebp + 8], ecx
jle 0x58d67a
mov dword [ebp + 8], eax
mov ecx, eax
add dword [ebx + 0xd0], ecx
rdtsc
mov esi, dword [ebp + 0xc]
mov dword [ebp - 8], eax
mov eax, dword [ebx + 0x8c]
mov edi, dword [eax + 8]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
mov dword [ebp - 4], edx
rep movsb byte es:[edi], byte [esi]
rdtsc
sub eax, dword [ebp - 8]
mov edi, dword [ebp + 8]
sbb edx, dword [ebp - 4]
lea ecx, [ebx + 0xa8]
add dword [ecx], eax
mov eax, dword [ebx + 0x8c]
push edi
adc dword [ecx + 4], edx
mov esi, dword [eax + 8]
sub esi, dword [eax]
add dword [ebp + 0xc], edi
sub dword [ebp + 0x10], edi
push eax
add eax, 0x14
push eax
sar esi, 0xc
call fcn.0058d472
lea eax, [esi*4 + 0x3c]
mov edx, dword [ebp + 0x14]
mov ecx, dword [ebx + 0x8c]
mov dword [eax + ecx], edx
add eax, 4
inc dword [ebp + 0x14]
sub edi, 0x1000
jne 0x58d6de
cmp dword [ebp + 0x10], 0
jg 0x58d640
push 0
push ebx
call fcn.0058d4c3
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x5912ed
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, eax
mov eax, dword [edi - 0x40]
mov ecx, dword [edi - 0x10]
mov dword [ebp - 4], eax
mov eax, dword [edi - 0x14]
sub ecx, 2
xor esi, esi
cmp eax, ecx
jae 0x59134d
push ebx
movzx edx, byte [eax + 2]
movzx ebx, byte [eax]
movzx ebx, word [ebx*2 + 0x47cd00]
movzx edx, word [edx*2 + 0x47d100]
xor edx, ebx
movzx ebx, byte [eax + 1]
movzx ebx, word [ebx*2 + 0x47cf00]
xor edx, ebx
mov ebx, dword [ebp - 4]
mov bx, word [ebx + edx*2]
mov word [edi + esi*2], bx
mov ebx, dword [ebp - 4]
inc eax
mov word [ebx + edx*2], si
inc esi
cmp eax, ecx
jb 0x59130d
pop ebx
add ecx, 2
cmp eax, ecx
jae 0x591364
sub ecx, eax
xor eax, eax
shr ecx, 1
lea edi, [edi + esi*2]
rep stosd dword es:[edi], eax
adc ecx, ecx
rep stosw word es:[edi], ax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x5c8050
Capabilities:
Enumerate pe sections

Disassembly:
cmp byte [esi + 5], 0x52
jne 0x5c7ff8
cmp byte [esi + 6], 0x46
jne 0x5c7ff8
cmp dword [0x47a064], 0xffffffff
jmp 0x5c8008
cmp eax, edx
jb 0x5c7fb7
mov edx, dword [ebp + 8]
mov dword [edx], ecx
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
jmp 0x5c7fbe
dec dword [ebp - 4]
add esi, 0x28
test byte [esi + 0x27], 2
je 0x5c7f6c
cmp dword [ebp - 4], 1
mov edx, esi
jg 0x5c7f58
mov ebx, dword [ebp - 8]
test edx, edx
je 0x5c7f9a
mov eax, dword [edx + 0x10]
mov ebx, dword [edx + 8]
cmp eax, ebx
jb 0x5e4be8
mov edx, dword [edx + 0xc]
mov ebx, dword [ebp - 8]
add edx, eax
cmp dword [ebp - 4], 1
mov eax, dword [ebp - 0xc]
lea eax, [eax + edx - 1]
jne 0x5e4bef
mov edx, dword [ebx + 0x20]
mov edi, dword [ebp - 0xc]
add edx, edi
cmp eax, edx
ja 0x5e4bfe
cmp ecx, eax
ja 0x5c7fbe
mov edx, fcn.005c8050
cmp ecx, edx
jbe 0x5c7f48
push eax
push ecx
call fcn.00586094
mov edi, dword [ebp - 0x10]
mov edx, dword [ebp - 0x14]
jmp 0x5c7fdc
mov eax, dword [esi]
cmp eax, 0x54494e49
je 0x5c800a
test byte [esi + 0x27], 2
jne 0x5c800a
cmp eax, 0x45474150
je 0x5c7fee
dec dword [ebp - 4]
add esi, 0x28
cmp dword [ebp - 4], 0
jle 0x5c8095
jmp 0x5c7fc6
cmp byte [esi + 4], 0x56
je 0x5c7f28
cmp dword [esi + 4], 0x43455053
jne 0x5c7fdc
cmp dword [0x4837c0], 0
jne 0x5c7fdc
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x10]
mov edi, dword [esi + 8]
add ecx, dword [ebp - 0xc]
cmp eax, edi
jb 0x5e4be1
mov edi, dword [edx + 0x38]
add eax, edi
lea eax, [eax + ecx - 2]
mov edx, 0xfffff000
and eax, edx
add ecx, 0xfff
dec eax
and ecx, edx
cmp dword [ebp - 4], 1
je 0x5c8044
xor edx, edx
jmp 0x5c7f58
mov edx, esi
jmp 0x5c7f6f
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
and dword [eax], 0
push ebx
push edi
mov eax, dword fs:[0x124]
mov edi, eax
dec dword [edi + 0xd4]
push 1
push 0x483b40
mov dword [ebp - 0x10], edi
call sym.ntoskrnl.exe_ExAcquireResourceExclusiveLite
mov ebx, dword [0x483b20]
cmp ebx, 0x483b20
mov dword [ebp - 8], ebx
je 0x5c80a3
push esi
cmp dword [ebx + 0x3c], 0
je 0x5c80c6
mov ebx, dword [ebx]
cmp ebx, 0x483b20
mov dword [ebp - 8], ebx
jne 0x5c808f
pop esi
mov ecx, 0x483b40
call sym.ntoskrnl.exe_ExReleaseResourceLite
inc dword [edi + 0xd4]
jne 0x5c80c0
lea eax, [edi + 0x34]
cmp dword [eax], eax
jne 0x5e4c0b
pop edi
pop ebx
leave
ret 8
mov eax, dword [ebx + 0x18]
push eax
mov dword [ebp - 0xc], eax
call sym.ntoskrnl.exe_RtlImageNtHeader
mov edx, eax
movzx eax, word [edx + 0x14]
lea esi, [eax + edx + 0x18]
movzx eax, word [edx + 6]
test eax, eax
mov dword [ebp - 0x14], edx
mov dword [ebp - 4], eax
jle 0x5c8095
jmp 0x5c7fc6
mov eax, edi
jmp 0x5c801e
mov eax, ebx
jmp 0x5c7f81
lea eax, [edi + eax - 1]
and eax, 0xfffff000
dec eax
jmp 0x5c7f9a
lea eax, [edx - 1]
or eax, 0xfff
jmp 0x5c7faa
mov cl, 1
mov byte [edi + 0x49], 1
call dword [sym.imp.HAL.dll_HalRequestSoftwareInterrupt]
jmp 0x5c80c0
Function at 0x5ccd93
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x148
mov eax, dword [0x47aa20]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push dword [eax + 0x34]
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x110]
xor ebx, ebx
push eax
mov byte [ebp - 0x10], 0x5c
mov byte [ebp - 0xf], 0x41
mov byte [ebp - 0xe], 0x72
mov byte [ebp - 0xd], 0x63
mov byte [ebp - 0xc], 0x4e
mov byte [ebp - 0xb], 0x61
mov byte [ebp - 0xa], 0x6d
mov byte [ebp - 9], 0x65
mov byte [ebp - 8], 0x5c
mov byte [ebp - 7], 0x25
mov byte [ebp - 6], 0x73
mov byte [ebp - 5], bl
call sym.ntoskrnl.exe_sprintf
add esp, 0xc
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x140]
push eax
call sym.ntoskrnl.exe_RtlInitAnsiString
push 1
lea eax, [ebp - 0x140]
push eax
lea eax, [ebp - 0x11c]
push eax
call sym.ntoskrnl.exe_RtlAnsiStringToUnicodeString
test eax, eax
jl 0x5ccefa
push 0x40
pop eax
push eax
mov dword [ebp - 0x12c], eax
push ebx
lea eax, [ebp - 0x148]
push eax
lea eax, [ebp - 0x138]
push eax
push 0x80
lea eax, [ebp - 0x114]
lea ecx, [ebp - 0x11c]
push eax
mov dword [ebp - 0x138], 0x18
mov dword [ebp - 0x134], ebx
mov dword [ebp - 0x130], ecx
mov dword [ebp - 0x128], ebx
mov dword [ebp - 0x124], ebx
call sym.ntoskrnl.exe_ZwOpenFile
cmp eax, ebx
push ebx
jl 0x5e1c84
lea eax, [ebp - 0x120]
push eax
push ebx
push dword [sym.ntoskrnl.exe_IoFileObjectType]
push ebx
push dword [ebp - 0x114]
call sym.ntoskrnl.exe_ObReferenceObjectByHandle
cmp eax, ebx
jl 0x5e1c94
push esi
mov esi, dword [ebp - 0x120]
mov eax, dword [esi + 4]
mov ecx, 0x100
or dword [eax + 0x1c], ecx
cmp byte [0x47bb14], bl
jne 0x5e1ca5
mov ecx, dword [esi + 4]
call sym.ntoskrnl.exe_ObfReferenceObject
mov eax, dword [esi + 4]
mov dword [0x47be94], eax
lea eax, [ebp - 0x11c]
push eax
call sym.ntoskrnl.exe_RtlFreeAnsiString
push dword [ebp - 0x114]
call sym.ntoskrnl.exe_NtClose
mov ecx, esi
call sym.ntoskrnl.exe_ObfDereferenceObject
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
pop ebx
call fcn.0040d8f1
leave
ret 4
xor al, al
jmp 0x5cceed
push ebx
push eax
lea eax, [ebp - 0x11c]
push eax
push 0x7b
call sym.ntoskrnl.exe_KeBugCheckEx
lea eax, [ebp - 0x11c]
push eax
call sym.ntoskrnl.exe_RtlFreeAnsiString
jmp 0x5ccefa
mov eax, dword [esi + 4]
test byte [eax + 0x20], 1
je 0x5e1cb5
or byte [0x47bb19], 2
mov eax, dword [esi + 4]
test byte [eax + 0x20], 2
je 0x5ccebc
or dword [0x47bb18], ecx
jmp 0x5ccebc
Function at 0x5d5139
Capabilities:
Enumerate pe sections

Disassembly:
push ebx
mov ebx, dword [ecx + 0xc]
add ebx, esi
shr ebx, 0xa
mov edx, 0x3ffffc
and ebx, edx
mov eax, 0x40000000
sub ebx, eax
mov dword [0x483b1c], ebx
mov ecx, dword [ecx + 0xc]
add ecx, edi
lea ecx, [ecx + esi + 0xfff]
shr ecx, 0xa
and ecx, edx
sub ecx, eax
mov dword [0x483b18], ecx
pop ebx
jmp 0x5d518d
cmp dword [ecx + 4], 0x45545053
jne 0x5d5185
mov eax, dword [ecx + 0xc]
add eax, esi
mov dword [0x483b7c], eax
mov eax, dword [ecx + 0xc]
add eax, edi
add eax, esi
mov dword [0x483b78], eax
jmp 0x5d5185
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov esi, dword [eax + 0x18]
push esi
call sym.ntoskrnl.exe_RtlImageNtHeader
movzx edx, word [eax + 6]
test edx, edx
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jle 0x5d518e
push edi
mov edi, dword [ecx + 0x10]
mov eax, dword [ecx + 8]
cmp edi, eax
jb 0x5e473a
mov eax, dword [ecx]
cmp eax, 0x7273722e
je 0x5cd8f3
cmp eax, 0x4c4f4f50
je 0x5d5193
cmp eax, 0x5953494d
je 0x5d5113
dec edx
add ecx, 0x28
test edx, edx
jg 0x5d515c
pop edi
pop esi
pop ebp
ret 4
cmp dword [ecx + 4], 0x45444f43
jne 0x5d51b4
mov eax, dword [ecx + 0xc]
add eax, esi
mov dword [0x483b8c], eax
mov eax, dword [ecx + 0xc]
add eax, edi
add eax, esi
mov dword [0x483b88], eax
jmp 0x5d5185
cmp word [ecx + 4], 0x494d
jne 0x5d5185
mov eax, dword [ecx + 0xc]
add eax, esi
mov dword [0x483b84], eax
mov eax, dword [ecx + 0xc]
add eax, edi
add eax, esi
mov dword [0x483b80], eax
jmp 0x5d5185
mov edi, eax
jmp 0x5d516a
Function at 0x401130
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor esi, esi
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x41c2f0
mov edi, eax
push 0x82
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x4011ab
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push ebx
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov dword [eax], esi
call fcn.0040a901
push esi
mov edi, eax
push 0
push edi
call fcn.00411f00
mov ecx, dword [ebp - 4]
push esi
push ecx
push edi
call fcn.0040e3d0
add esp, 0x1c
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x403460
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 8]
xor eax, eax
push ebx
push esi
mov dword [ebp - 4], eax
cmp dword [ecx], eax
je 0x4034dc
cmp edi, eax
jle 0x403486
mov ecx, dword [ebp + 0xc]
mov dl, byte [eax + ecx]
not dl
mov byte [eax + ecx], dl
inc eax
cmp eax, edi
jl 0x403476
lea ebx, [edi + 7]
push ebx
call fcn.0040a901
mov esi, eax
lea eax, [edi + 5]
mov word [esi], ax
mov ecx, dword [0x420fb0]
mov eax, dword [ebp + 0xc]
mov dword [esi + 2], ecx
mov dl, byte [0x420fb4]
push edi
push eax
lea ecx, [esi + 7]
push ecx
mov byte [esi + 6], dl
call fcn.0040e3d0
mov edx, dword [ebp + 8]
mov eax, dword [edx]
add esp, 0x10
push 0
push ebx
push esi
push eax
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x4034df
cmp eax, ebx
jne 0x4034df
mov dword [ebp - 4], 1
jmp 0x4034df
mov esi, dword [ebp + 8]
test esi, esi
je 0x4034ec
push esi
call fcn.0040b20b
add esp, 4
mov eax, dword [ebp - 4]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x403660
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8e0
mov eax, dword [0x420044]
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, edx
xor edx, edx
push 0x7fe
mov dword [ebp - 0x8d8], eax
push edx
lea eax, [ebp - 0x8ca]
push eax
mov dword [ebp - 0x8dc], edi
mov dword [ebp - 0x8e0], ecx
mov word [ebp - 0x8cc], dx
call fcn.00411f00
add esp, 0xc
lea ebx, [ebp - 0x8cc]
mov dword [ebp - 0x8d4], ebx
test esi, esi
je 0x4036c6
mov dword [ebp - 0x8d4], esi
mov ebx, esi
xor ecx, ecx
mov word [ebx], cx
mov esi, dword [edi]
xor eax, eax
mov dword [ebp - 0x8d0], eax
test esi, esi
je 0x40380b
cmp dword [ebp - 0x8d8], eax
je 0x40380b
push 0xc7
push eax
lea edx, [ebp - 0xcb]
push edx
mov byte [ebp - 0xcc], al
call fcn.00411f00
add esp, 0xc
push 0
push 2
lea eax, [ebp - 0xcc]
push eax
push esi
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x403857
test eax, eax
je 0x403857
movzx edi, word [ebp - 0xcc]
lea ecx, [edi + 2]
push ecx
xor esi, esi
call fcn.0040a901
add esp, 4
mov ebx, eax
test edi, edi
jle 0x4037f8
mov ecx, dword [ebp - 0x8dc]
push 0
mov edx, edi
sub edx, esi
push edx
mov edx, dword [ecx]
lea eax, [esi + ebx]
push eax
push edx
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x4037d9
test eax, eax
je 0x4037d9
add esi, eax
cmp edi, esi
jg 0x403746
cmp esi, 5
jl 0x4037f8
mov ecx, dword [0x420fb0]
sub esi, 5
cmp ecx, dword [ebx]
jne 0x40383c
mov dl, byte [ebx + 4]
cmp dl, byte [0x420fb4]
jne 0x40383c
test esi, esi
jle 0x4037ab
lea eax, [ebx + 5]
mov edi, esi
mov cl, byte [eax]
not cl
mov byte [eax], cl
inc eax
dec edi
jne 0x4037a1
mov edi, dword [ebp - 0x8e0]
mov eax, dword [edi]
cmp eax, esi
jl 0x40381c
mov eax, dword [ebp - 0x8d8]
push esi
lea edx, [ebx + 5]
push edx
push eax
call fcn.0040e3d0
mov dword [edi], esi
add esp, 0xc
mov dword [ebp - 0x8d0], 1
jmp 0x4037f8
mov eax, dword [ebp - 0x8d4]
push 0x41c398
push 0x3ff
push eax
call fcn.0040a7ee
add esp, 0xc
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test ebx, ebx
je 0x403805
push ebx
call fcn.0040b20b
add esp, 4
mov eax, dword [ebp - 0x8d0]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040a7df
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x8d8]
push eax
lea ecx, [ebx + 5]
push ecx
push edx
call fcn.0040e3d0
add esp, 0xc
mov dword [ebp - 0x8d0], 1
jmp 0x4037f8
mov eax, dword [ebp - 0x8d4]
push 0x41c398
push 0x3ff
push eax
call fcn.0040a7ee
add esp, 0xc
jmp 0x4037f8
push 0x41c398
push 0x3ff
push ebx
call fcn.0040a7ee
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x8d0]
add esp, 0xc
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040a7df
mov esp, ebp
pop ebp
ret