joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1007485
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 8]
cmp esi, dword [0x1009928]
push edi
jae 0x100765e
mov eax, esi
sar eax, 5
lea edi, [eax*4 + 0x1009940]
mov eax, dword [edi]
and esi, 0x1f
shl esi, 3
add eax, esi
mov dl, byte [eax + 4]
test dl, 1
je 0x100765e
and dword [ebp - 0xc], 0
cmp dword [ebp + 0x10], 0
mov ebx, dword [ebp + 0xc]
mov ecx, ebx
je 0x1007532
test dl, 2
jne 0x1007532
test dl, 0x48
je 0x10074fc
cmp byte [eax + 5], 0xa
je 0x10074fc
mov eax, dword [edi]
mov al, byte [eax + esi + 5]
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea ecx, [ebx + 1]
mov dword [ebp - 0xc], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push ecx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1007545
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop ecx
cmp eax, ecx
jne 0x100752d
mov dword [0x10085f0], ecx
jmp 0x1007665
cmp eax, 0x6d
jne 0x1007539
xor eax, eax
jmp 0x1007672
push eax
call fcn.0100672a
pop ecx
jmp 0x100766f
mov eax, dword [ebp - 0x10]
mov ecx, dword [edi]
add dword [ebp - 0xc], eax
test byte [ecx + esi + 4], 0x80
je 0x1007659
test eax, eax
je 0x100756c
cmp byte [ebx], 0xa
jne 0x100756c
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x1007575
mov eax, dword [edi]
lea eax, [eax + esi + 4]
and byte [eax], 0xfb
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0xc]
add ecx, eax
cmp eax, ecx
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], ecx
jae 0x1007653
mov eax, dword [ebp - 8]
mov al, byte [eax]
cmp al, 0x1a
je 0x1007643
cmp al, 0xd
je 0x10075a7
mov byte [ebx], al
inc ebx
inc dword [ebp - 8]
jmp 0x1007635
dec ecx
cmp dword [ebp - 8], ecx
jae 0x10075c1
mov eax, dword [ebp - 8]
inc eax
cmp byte [eax], 0xa
jne 0x10075bc
add dword [ebp - 8], 2
jmp 0x1007615
mov dword [ebp - 8], eax
jmp 0x1007631
inc dword [ebp - 8]
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x10075e9
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1007631
cmp dword [ebp - 0x10], 0
je 0x1007631
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x100760a
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x1007615
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x1007634
cmp ebx, dword [ebp + 0xc]
jne 0x100761a
cmp byte [ebp - 1], 0xa
jne 0x100761a
mov byte [ebx], 0xa
jmp 0x1007634
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.01006860
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x1007635
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 0xc]
cmp dword [ebp - 8], ecx
jb 0x100758b
jmp 0x1007653
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x1007653
lea esi, [eax + esi + 4]
or byte [esi], 2
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 0xc], ebx
mov eax, dword [ebp - 0xc]
jmp 0x1007672
and dword [0x10085f0], 0
mov dword [0x10085ec], 9
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x405927
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push esi
call fcn.00405d2e
mov edi, eax
cmp edi, 0xffffffff
je 0x405968
test byte [esp + 0x10], 1
push esi
je 0x40594a
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x405950
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x405959
xor eax, eax
inc eax
jmp 0x40596a
test byte [esp + 0x10], 4
jne 0x405968
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor eax, eax
pop edi
pop esi
ret 8

Function at 0x40596f
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, ebx
and eax, 4
push edi
mov dword [ebp - 4], eax
call fcn.00405c3a
test bl, 8
mov dword [ebp - 8], eax
je 0x4059ae
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
inc eax
add dword [0x42a2c8], eax
jmp 0x405b2b
mov dword [ebp + 8], ebx
and dword [ebp + 8], 1
je 0x4059c8
test eax, eax
je 0x405ad9
test bl, 2
je 0x405ad9
mov esi, 0x425730
push edi
push esi
call fcn.0040617e
cmp dword [ebp + 8], 0
je 0x4059e7
push str..
push esi
call sub.KERNEL32.dll_lstrcatW
jmp 0x4059ed
push edi
call fcn.00405b7e
cmp word [edi], 0
jne 0x4059fd
cmp word [0x425730], 0x5c
jne 0x405a08
push 0x40a014
push edi
call sub.KERNEL32.dll_lstrcatW
push edi
call sub.KERNEL32.dll_lstrlenW
lea ebx, [edi + eax*2]
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x405ace
cmp word [ebp - 0x22c], 0x2e
jne 0x405a52
cmp word [ebp - 0x22a], 0
je 0x405ab1
cmp word [ebp - 0x22a], 0x2e
jne 0x405a52
cmp word [ebp - 0x228], 0
je 0x405ab1
lea eax, [ebp - 0x22c]
push eax
push ebx
call fcn.0040617e
test byte [ebp - 0x258], 0x10
je 0x405a7d
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x405ab1
push dword [ebp + 0xc]
push edi
call fcn.0040596f
jmp 0x405ab1
push dword [ebp - 4]
push edi
call fcn.00405927
test eax, eax
jne 0x405aa9
cmp dword [ebp - 4], eax
je 0x405aa1
push edi
push 0xfffffffffffffff1
call fcn.004052dd
push 0
push edi
call fcn.0040601f
jmp 0x405ab1
inc dword [0x42a2c8]
jmp 0x405ab1
push edi
push 0xfffffffffffffff2
call fcn.004052dd
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x405a2a
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x405ad9
and word [ebx - 2], 0
xor esi, esi
cmp dword [ebp + 8], esi
je 0x405b2b
cmp dword [ebp - 8], esi
jne 0x405aed
inc dword [0x42a2c8]
jmp 0x405b2b
push edi
call fcn.004064c1
test eax, eax
je 0x405b2b
push edi
call fcn.00405b32
mov eax, dword [ebp - 4]
or al, 1
push eax
push edi
call fcn.00405927
test eax, eax
jne 0x405b23
cmp dword [ebp - 4], esi
je 0x405ae5
push edi
push 0xfffffffffffffff1
call fcn.004052dd
push esi
push edi
call fcn.0040601f
jmp 0x405b2b
push edi
push 0xffffffffffffffe5
call fcn.004052dd
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x401f60
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
sub esp, 0x808
push ebx
push ebp
push esi
push edi
xor edi, edi
mov dword [esp + 0x10], edx
xor ebp, ebp
mov dword [esp + 0x14], ecx
test ecx, ecx
je 0x401fbb
mov edi, ecx
lea edx, [edi + 2]
nop
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x401f80
sub edi, edx
sar edi, 1
cmp edi, 0x200
jb 0x401f9c
mov edi, 0x1ff
push edi
push ecx
lea eax, [esp + 0x420]
push eax
lea ebp, [edi + edi]
call fcn.00403280
add esp, 0xc
xor eax, eax
mov word [esp + ebp + 0x418], ax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov ebx, dword [eax + 0xc]
add ebx, 0xc
jne 0x401fdd
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov ebx, dword [eax + 0xc]
add ebx, 0x14
je 0x40204f
mov esi, dword [ebx]
cmp esi, ebx
je 0x40204f
test esi, esi
je 0x40204f
cmp word [esi + 0x24], 2
jbe 0x402049
movzx eax, word [esi + 0x2c]
cmp eax, 2
jbe 0x402049
cmp dword [esi + 0x18], 0
je 0x402049
test ebp, ebp
je 0x402005
cmp ebp, eax
jne 0x402049
push edi
push dword [esi + 0x30]
lea eax, [esp + 0x20]
push eax
call fcn.00403280
mov edx, dword [esp + 0x1c]
xor eax, eax
add esp, 0xc
mov word [esp + edi*2 + 0x18], ax
test edx, edx
je 0x40202a
cmp edx, dword [esi + 0x18]
jne 0x402049
cmp dword [esp + 0x14], eax
je 0x40205c
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x41c]
push eax
call fcn.00402720
add esp, 8
test eax, eax
je 0x40205c
mov esi, dword [esi]
cmp esi, ebx
jne 0x401fe3
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x808
ret
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x808
ret
Function at 0x402a10
Capabilities:
Check os version

Disassembly:
mov ecx, 1
mov edx, 0x7f6b48
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
jne 0x402b39
cmp dword fs:[0xc0], eax
je 0x402a3b
mov dword [0x7f6b44], 1
mov eax, dword fs:[0x18]
push ebx
push esi
mov ebx, 1
mov esi, dword [eax + 0x30]
mov eax, dword [esi + 0xa4]
mov dword [0x7f6a2c], eax
mov eax, dword [esi + 0xa8]
mov dword [0x7f6a30], eax
movzx edx, word [esi + 0xac]
mov dword [0x7f6a34], edx
mov eax, dword [esi + 0xb0]
mov dword [0x7f6a38], eax
mov eax, dword [esi + 0x1f4]
test eax, eax
je 0x402a9b
push 0x7f
push eax
push 0x7f6a3c
call fcn.00403280
mov edx, dword [0x7f6a34]
add esp, 0xc
jmp 0x402aa3
xor eax, eax
mov word [0x7f6a3c], ax
movzx eax, byte [esi + 0xaf]
mov ecx, 0xff
mov word [0x7f6b3c], ax
movzx eax, word [esi + 0xae]
and ax, cx
mov word [0x7f6b3e], ax
movzx eax, word [0x7ffe02d0]
mov word [0x7f6b40], ax
mov ecx, eax
mov byte [0x7f6b42], 0
cmp byte [0x7ffe0268], 0
je 0x402aea
mov ebx, dword [0x7ffe0264]
pop esi
mov byte [0x7f6b42], bl
cmp ebx, 1
pop ebx
jne 0x402b04
and ecx, 0xffef
mov word [0x7f6b40], cx
test edx, edx
jne 0x402b39
call fcn.00402a10
cmp dword [0x7f6a2c], 6
ja 0x402b39
jb 0x402b21
cmp dword [0x7f6a30], 4
jae 0x402b39
call fcn.00402a10
cmp dword [0x7f6a2c], 0xa
jae 0x402b39
mov dword [0x7f6a34], 1
ret
Function at 0x402b40
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
sub esp, 0xc08
push ebx
push ebp
mov dword [esp + 0xc], edx
xor edx, edx
mov dword [esp + 8], edx
push esi
push edi
test ecx, ecx
je 0x402b8b
xor esi, esi
lea edi, [esp + 0x818]
mov al, byte [esi + ecx]
test al, al
je 0x402b7b
cbw
inc esi
mov word [edi], ax
add edi, 2
cmp esi, 0x1ff
jb 0x402b61
jmp 0x402b80
xor eax, eax
mov word [edi], ax
lea edx, [esp + 0x818]
mov dword [esp + 0x10], edx
xor edi, edi
xor ebp, ebp
test edx, edx
je 0x402bdb
mov edi, edx
lea ecx, [edi + 2]
jmp 0x402ba0
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x402ba0
sub edi, ecx
sar edi, 1
cmp edi, 0x200
jb 0x402bbc
mov edi, 0x1ff
push edi
push edx
lea eax, [esp + 0x420]
push eax
lea ebp, [edi + edi]
call fcn.00403280
add esp, 0xc
xor eax, eax
mov word [esp + ebp + 0x418], ax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov ebx, dword [eax + 0xc]
add ebx, 0xc
jne 0x402bfd
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov ebx, dword [eax + 0xc]
add ebx, 0x14
je 0x402c70
mov esi, dword [ebx]
cmp esi, ebx
je 0x402c70
test esi, esi
je 0x402c70
cmp word [esi + 0x24], 2
jbe 0x402c6a
movzx eax, word [esi + 0x2c]
cmp eax, 2
jbe 0x402c6a
cmp dword [esi + 0x18], 0
je 0x402c6a
test ebp, ebp
je 0x402c25
cmp ebp, eax
jne 0x402c6a
push edi
push dword [esi + 0x30]
lea eax, [esp + 0x20]
push eax
call fcn.00403280
xor eax, eax
add esp, 0xc
mov word [esp + edi*2 + 0x18], ax
mov eax, dword [esp + 0x14]
test eax, eax
je 0x402c4a
cmp eax, dword [esi + 0x18]
jne 0x402c6a
cmp dword [esp + 0x10], 0
je 0x402c7d
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x41c]
push eax
call fcn.00402720
add esp, 8
test eax, eax
je 0x402c7d
mov esi, dword [esi]
cmp esi, ebx
jne 0x402c03
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc08
ret
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0xc08
ret
Function at 0x402c90
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov eax, dword [0x7f7798]
sub esp, 0x11c
test eax, eax
jne 0x402d8e
push ebx
push esi
push edi
push 0x100
push eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov word [esp + 0x2c], ax
lea eax, [esp + 0x30]
push eax
call fcn.00401d30
add esp, 0xc
xor edi, edi
xor eax, eax
lea ebx, [ebx]
mov byte [esp + eax + 0x28], al
inc eax
cmp eax, 0x100
jb 0x402ce0
xor esi, esi
mov edi, edi
mov dl, byte [esp + esi + 0x28]
mov eax, esi
and eax, 3
movzx ecx, dl
movzx eax, byte [eax + 0x41a100]
add eax, edi
add ecx, eax
movzx edi, cl
mov al, byte [esp + edi + 0x28]
mov byte [esp + esi + 0x28], al
inc esi
mov byte [esp + edi + 0x28], dl
cmp esi, 0x100
jb 0x402cf0
xor edi, edi
xor ebx, ebx
xor esi, esi
lea eax, [edi + 1]
movzx edi, al
mov cl, byte [esp + edi + 0x28]
movzx edx, cl
lea eax, [edx + ebx]
movzx ebx, al
movzx eax, byte [esp + ebx + 0x28]
mov byte [esp + edi + 0x28], al
mov byte [esp + ebx + 0x28], cl
movzx eax, byte [esp + edi + 0x28]
add eax, edx
movzx eax, al
movzx eax, byte [esp + eax + 0x28]
xor al, byte [esi + 0x41a104]
mov byte [esp + esi + 0xc], al
inc esi
cmp esi, 0x1a
jb 0x402d25
xor edx, edx
lea ecx, [esp + 0xc]
call fcn.00401f60
pop edi
pop esi
pop ebx
test eax, eax
je 0x402d89
mov eax, dword [eax + 0x18]
test eax, eax
je 0x402d89
mov dword [0x7f7798], eax
add esp, 0x11c
ret
mov eax, dword [0x7f7798]
add esp, 0x11c
ret
Function at 0x4034a0
Capabilities:
Encode data using xor
Encrypt data using rc4 prga
Get windows directory from kuser_shared_data

Disassembly:
mov eax, dword [0x7f6a08]
sub esp, 0x20c
push ebp
mov ebp, ecx
push esi
push edi
test eax, eax
je 0x40364d
cmp dword [0x7f6a0c], 0
jne 0x403639
xor eax, eax
push 0x100
push eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov word [esp + 0x1c], ax
mov byte [esp + 0x1e], al
lea eax, [esp + 0x20]
push eax
call fcn.00401d30
add esp, 0xc
xor edi, edi
xor eax, eax
nop
mov byte [esp + eax + 0x18], al
inc eax
cmp eax, 0x100
jb 0x4034f0
xor esi, esi
mov edi, edi
mov dl, byte [esp + esi + 0x18]
mov eax, esi
and eax, 3
movzx ecx, dl
movzx eax, byte [eax + 0x41a0d4]
add eax, edi
add ecx, eax
movzx edi, cl
mov al, byte [esp + edi + 0x18]
mov byte [esp + esi + 0x18], al
inc esi
mov byte [esp + edi + 0x18], dl
cmp esi, 0x100
jb 0x403500
xor esi, esi
xor edi, edi
xor edx, edx
lea eax, [esi + 1]
movzx esi, al
mov cl, byte [esp + esi + 0x18]
movzx eax, cl
add eax, edi
movzx edi, al
movzx eax, byte [esp + edi + 0x18]
mov byte [esp + esi + 0x18], al
mov byte [esp + edi + 0x18], cl
movzx eax, byte [esp + esi + 0x18]
movzx ecx, cl
add ecx, eax
movzx eax, cl
movzx eax, byte [esp + eax + 0x18]
xor al, byte [edx + 0x41a0d8]
mov byte [esp + edx + 0xc], al
inc edx
cmp edx, 0xb
jb 0x403535
push 0x200
lea eax, [esp + 0x1c]
push 0
push eax
call fcn.00401d30
mov edx, 0x7ffe0030
add esp, 0xc
xor ecx, ecx
lea esi, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x403594
sub edx, esi
sar edx, 1
je 0x40364d
mov esi, ebp
lea edi, [esi + 1]
mov edi, edi
mov al, byte [esi]
inc esi
test al, al
jne 0x4035b0
sub esi, edi
add edx, 0xc
add edx, esi
cmp edx, 0x200
ja 0x40364d
xor eax, eax
push ebx
test edx, edx
je 0x4035e8
movzx ebx, word [eax + eax + 0x7ffe0030]
test bx, bx
je 0x4035e8
mov byte [esp + eax + 0x1c], bl
inc ecx
inc eax
cmp eax, edx
jb 0x4035d1
xor eax, eax
test edx, edx
je 0x403602
mov edi, edi
mov bl, byte [esp + eax + 0x10]
test bl, bl
je 0x403602
mov byte [esp + ecx + 0x1c], bl
inc eax
inc ecx
cmp eax, edx
jb 0x4035f0
xor eax, eax
test edx, edx
je 0x40361f
lea ecx, [esp + ecx + 0x1c]
lea esp, [esp]
mov bl, byte [eax + ebp]
test bl, bl
je 0x40361f
mov byte [ecx], bl
inc eax
inc ecx
cmp eax, edx
jb 0x403610
push 8
push 0
lea eax, [esp + 0x24]
push eax
call dword [0x7f6a08]
pop ebx
pop edi
pop esi
pop ebp
add esp, 0x20c
ret
push 0x800
push 0
push ebp
call eax
pop edi
pop esi
pop ebp
add esp, 0x20c
ret
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x20c
ret
Function at 0x403660
Capabilities:
64-bit execution via heavens gate

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
lea edx, [ebp + 0x10]
sub esp, 0x40
push ebx
push esi
push edi
test ecx, ecx
jle 0x403688
mov eax, dword [ebp + 0x10]
lea edx, [ebp + 0x18]
dec ecx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp + 0xc], ecx
mov dword [ebp - 0xc], eax
jmp 0x403696
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
test ecx, ecx
jle 0x4036af
dec ecx
add edx, 8
mov dword [ebp + 0xc], ecx
mov eax, dword [edx - 8]
mov dword [ebp - 0x18], eax
mov eax, dword [edx - 4]
mov dword [ebp - 0x14], eax
jmp 0x4036bd
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
test ecx, ecx
jle 0x4036d6
dec ecx
add edx, 8
mov dword [ebp + 0xc], ecx
mov eax, dword [edx - 8]
mov dword [ebp - 0x20], eax
mov eax, dword [edx - 4]
mov dword [ebp - 0x1c], eax
jmp 0x4036e4
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
test ecx, ecx
jle 0x4036fd
dec ecx
add edx, 8
mov dword [ebp + 0xc], ecx
mov eax, dword [edx - 8]
mov dword [ebp - 0x28], eax
mov eax, dword [edx - 4]
mov dword [ebp - 0x24], eax
jmp 0x40370b
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov eax, edx
mov dword [ebp - 0x30], 0
cdq
mov dword [ebp - 0x40], eax
mov eax, ecx
mov dword [ebp - 0x3c], edx
cdq
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], edx
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov word [ebp - 8], fs
mov eax, 0x2b
mov fs, ax
mov dword [ebp - 4], esp
and esp, 0xfffffff0
push 0x33
call 0x403752
add dword [esp], 5
retf
Function at 0x419d32
Capabilities:
Execute syscall

Disassembly:
mov edx, esp
sysenter
ret
Function at 0x10008880
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
lea ebp, [esp - 0x39c]
sub esp, 0x41c
mov eax, dword [0x10028164]
xor eax, ebp
mov dword [ebp + 0x398], eax
mov edx, dword [ebp + 0x3a8]
mov eax, dword [ebp + 0x3a4]
push ebx
push esi
xor esi, esi
mov dword [ebp - 0x70], edx
mov edx, dword [ebp + 0x3ac]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x78], edx
mov dword [ebp - 0x7c], ecx
mov dword [ebp - 0x80], esi
mov dword [ebp - 0x6c], esi
push edi
test eax, eax
je 0x10008a43
mov ecx, eax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100088d1
sub ecx, edx
sar ecx, 1
lea eax, [ecx + 1]
mov ecx, 2
imul ecx
mov edi, eax
test edx, edx
jg 0x10008977
jl 0x100088fe
cmp edi, 0x7fffffff
ja 0x10008977
cmp edx, 0xffffffff
jl 0x10008977
jg 0x1000890d
cmp edi, 0x80000000
jb 0x10008977
cmp edi, 0x400
jg 0x1000892d
push edi
call fcn.10014f0a
add esp, 4
test al, al
je 0x1000892d
mov eax, edi
call fcn.1000bf00
mov ebx, esp
jmp 0x10008951
mov eax, edi
not eax
cmp eax, 8
jb 0x10008a91
lea eax, [edi + 8]
push eax
call fcn.10014f0a
add esp, 4
test eax, eax
je 0x10008977
mov dword [eax], esi
lea ebx, [eax + 8]
mov esi, eax
test ebx, ebx
je 0x10008977
push 0
push 0
push edi
push ebx
push 0xffffffffffffffff
push dword [ebp - 0x74]
mov byte [ebx], 0
push 0
push 3
call dword [sym.imp.kernel32.dll_WideCharToMultiByte]
mov edi, eax
neg edi
sbb edi, edi
and edi, ebx
jmp 0x10008979
xor edi, edi
test edi, edi
je 0x10008a43
push 0x60
push 0
push edi
call dword [sym.imp.kernel32.dll_LoadLibraryExA]
mov ebx, eax
test ebx, ebx
jne 0x100089ae
push 2
push eax
push edi
call dword [sym.imp.kernel32.dll_LoadLibraryExA]
mov ebx, eax
test ebx, ebx
jne 0x100089ae
call fcn.10003920
mov edi, eax
jmp 0x10008a48
push dword [ebp - 0x78]
push dword [ebp - 0x70]
push ebx
call dword [sym.imp.kernel32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x100089c8
call fcn.10003920
jmp 0x10008a34
push edi
push ebx
call dword [sym.imp.kernel32.dll_LoadResource]
mov dword [ebp - 0x70], eax
test eax, eax
jne 0x100089de
call fcn.10003920
jmp 0x10008a34
push edi
push ebx
call dword [sym.imp.kernel32.dll_SizeofResource]
mov edi, eax
lea eax, [edi + 1]
cmp eax, edi
jae 0x100089f6
mov edi, 0x8007000e
jmp 0x10008a36
push eax
lea ecx, [ebp - 0x6c]
call fcn.100033c0
cmp dword [ebp - 0x6c], 0
jne 0x10008a0c
mov edi, 0x8007000e
jmp 0x10008a36
push edi
push dword [ebp - 0x70]
push edi
push dword [ebp - 0x6c]
call fcn.1000aa30
mov eax, dword [ebp - 0x6c]
lea ecx, [ebp - 0x80]
add esp, 0x10
mov byte [eax + edi], 0
push dword [ebp + 0x3b0]
push dword [ebp - 0x6c]
call fcn.100086f0
mov edi, eax
test ebx, ebx
je 0x10008a48
push ebx
call dword [sym.imp.kernel32.dll_FreeLibrary]
jmp 0x10008a48
mov edi, 0x8007000e
lea eax, [ebp - 0x68]
cmp dword [ebp - 0x6c], eax
je 0x10008a58
lea ecx, [ebp - 0x6c]
call fcn.10005750
test esi, esi
je 0x10008a6f
nop dword [eax]
push esi
mov esi, dword [esi]
call fcn.10014f0a
add esp, 4
test esi, esi
jne 0x10008a60
mov eax, edi
lea esp, [ebp - 0x8c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x398]
xor ecx, ebp
call fcn.1000bc54
lea esp, [ebp + 0x39c]
pop ebp
ret 0x10
push 0x80070216
call fcn.100013a0
int3
Function at 0x401600
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x280
lea ecx, [esp]
push eax
push 0x80
push ecx
push edx
call fcn.00401730
add esp, 0x10
test eax, eax
je 0x401682
call fcn.00403540
test eax, eax
jne 0x40163d
call fcn.00403580
test eax, eax
mov eax, str.rundll32.exe_setupx.dll_InstallHinfSection
je 0x401642
mov eax, str.rundll32.exe_setupapi.dll_InstallHinfSection
mov edx, dword [esp + 0x28c]
lea ecx, [esp]
push ecx
push edx
push eax
lea eax, [esp + 0x8c]
push str._s__s_128__s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
lea ecx, [esp + 0x80]
push 5
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
mov eax, 1
add esp, 0x280
ret
xor eax, eax
add esp, 0x280
ret

Function at 0x401690
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x280
lea ecx, [esp]
push eax
push 0x80
push ecx
push edx
call fcn.00401730
add esp, 0x10
test eax, eax
je 0x401723
call fcn.00403540
test eax, eax
jne 0x4016cd
call fcn.00403580
test eax, eax
mov ecx, str.rundll32.exe_setupx.dll_InstallHinfSection
je 0x4016d2
mov ecx, str.rundll32.exe_setupapi.dll_InstallHinfSection
mov eax, dword [esp + 0x290]
test eax, eax
mov eax, str._s__s_128__s
jne 0x4016e7
mov eax, str._s__s_130__s
lea edx, [esp]
push edx
mov edx, dword [esp + 0x290]
push edx
push ecx
push eax
lea eax, [esp + 0x90]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
lea ecx, [esp + 0x80]
push 5
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
mov eax, 1
add esp, 0x280
ret
xor eax, eax
add esp, 0x280
ret