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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x818
mov eax, dword [0x10073098]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x814], eax
mov dword [ebp - 0x818], edx
test eax, eax
je 0x10034481
test edx, edx
je 0x10034481
mov eax, dword [edx]
push ebx
mov ebx, dword [edx + 0x18]
mov ecx, ebx
push esi
mov esi, dword [eax + 4]
shl ecx, 0xa
add esi, 0xfffffc00
add esi, ecx
mov dword [ebp - 0x810], ecx
push edi
mov ecx, 0x100
mov dword [ebp - 0x80c], eax
lea edi, [ebp - 0x804]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [edx + 0x1c]
cmp esi, 1
jbe 0x1003441c
shl ebx, 0xb
dec esi
mov dword [ebp - 0x808], esi
nop dword [eax]
mov eax, dword [ebp - 0x80c]
lea edi, [ebp - 0x804]
mov edx, dword [eax + 4]
xor eax, eax
add edx, 0xfffffc00
add edx, ebx
lea ecx, [edx + 0x3f8]
cmp edi, ecx
ja 0x10034382
lea ecx, [ebp - 0x40c]
cmp ecx, edx
jb 0x10034382
nop dword [eax]
mov ecx, dword [edx + eax*8]
xor dword [ebp + eax*8 - 0x804], ecx
mov ecx, dword [edx + eax*8 + 4]
xor dword [ebp + eax*8 - 0x800], ecx
inc eax
cmp eax, 0x80
jl 0x10034360
jmp 0x10034407
lea esi, [ebp - 0x804]
lea edi, [ebp - 0x7f4]
sub esi, edx
lea ecx, [edx + 0x20]
sub edi, edx
nop word [eax + eax]
movups xmm0, xmmword [ebp + eax*8 - 0x804]
lea ecx, [ecx + 0x40]
movups xmm1, xmmword [ecx - 0x60]
pxor xmm1, xmm0
movups xmmword [ebp + eax*8 - 0x804], xmm1
movups xmm0, xmmword [ebp + eax*8 - 0x7f4]
movups xmm1, xmmword [ecx - 0x50]
pxor xmm1, xmm0
movups xmmword [ebp + eax*8 - 0x7f4], xmm1
add eax, 8
movups xmm0, xmmword [esi + ecx - 0x40]
movups xmm1, xmmword [ecx - 0x40]
pxor xmm1, xmm0
movups xmmword [esi + ecx - 0x40], xmm1
movups xmm0, xmmword [edi + ecx - 0x40]
movups xmm1, xmmword [ecx - 0x30]
pxor xmm1, xmm0
movups xmmword [edi + ecx - 0x40], xmm1
cmp eax, 0x80
jl 0x100343a0
mov esi, dword [ebp - 0x808]
add ebx, dword [ebp - 0x810]
sub esi, 1
mov dword [ebp - 0x808], esi
jne 0x10034330
lea eax, [ebp - 0x804]
push eax
lea eax, [ebp - 0x404]
push eax
call fcn.100349b0
mov esi, dword [ebp - 0x814]
lea eax, [ebp - 0x404]
push 0x400
push eax
push dword [esi + 4]
push dword [esi]
call fcn.1003a0a0
lea eax, [ebp - 0x804]
push 0x400
push eax
call fcn.10033f50
lea eax, [ebp - 0x404]
push 0x400
push eax
call fcn.10033f50
push dword [esi + 0x38]
push dword [ebp - 0x818]
call fcn.10034490
add esp, 0x30
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1004bc43
mov esp, ebp
pop ebp
ret
Function at 0x10035370
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push 0x125
push 0
lea eax, [esi + 0x40]
mov dword [esi], 0xf3bcc908
push eax
mov dword [esi + 4], 0x6a09e667
mov dword [esi + 8], 0x84caa73b
mov dword [esi + 0xc], 0xbb67ae85
mov dword [esi + 0x10], 0xfe94f82b
mov dword [esi + 0x14], 0x3c6ef372
mov dword [esi + 0x18], 0x5f1d36f1
mov dword [esi + 0x1c], 0xa54ff53a
mov dword [esi + 0x20], 0xade682d1
mov dword [esi + 0x24], 0x510e527f
mov dword [esi + 0x28], 0x2b3e6c1f
mov dword [esi + 0x2c], 0x9b05688c
mov dword [esi + 0x30], 0xfb41bd6b
mov dword [esi + 0x34], 0x1f83d9ab
mov dword [esi + 0x38], 0x137e2179
mov dword [esi + 0x3c], 0x5be0cd19
call fcn.1004d980
mov ecx, dword [ebp + 0xc]
add esp, 0xc
mov eax, dword [ecx]
xor dword [esi], eax
mov eax, dword [ecx + 4]
xor dword [esi + 4], eax
mov eax, dword [ecx + 8]
xor dword [esi + 8], eax
mov eax, dword [ecx + 0xc]
xor dword [esi + 0xc], eax
mov eax, dword [ecx + 0x10]
xor dword [esi + 0x10], eax
mov eax, dword [ecx + 0x14]
xor dword [esi + 0x14], eax
mov eax, dword [ecx + 0x18]
xor dword [esi + 0x18], eax
mov eax, dword [ecx + 0x1c]
xor dword [esi + 0x1c], eax
mov eax, dword [ecx + 0x20]
xor dword [esi + 0x20], eax
mov eax, dword [ecx + 0x24]
xor dword [esi + 0x24], eax
mov eax, dword [ecx + 0x28]
xor dword [esi + 0x28], eax
mov eax, dword [ecx + 0x2c]
xor dword [esi + 0x2c], eax
mov eax, dword [ecx + 0x30]
xor dword [esi + 0x30], eax
mov eax, dword [ecx + 0x34]
xor dword [esi + 0x34], eax
mov eax, dword [ecx + 0x38]
xor dword [esi + 0x38], eax
mov eax, dword [ecx + 0x3c]
xor dword [esi + 0x3c], eax
xor eax, eax
pop esi
pop ebp
ret
Function at 0x10038b60
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push esi
lea ecx, [edx + 0x3f8]
lea esi, [eax + 0x3f8]
cmp eax, ecx
ja 0x10038b9d
cmp esi, edx
jb 0x10038b9d
sub edx, eax
mov esi, 0x80
mov ecx, dword [eax + edx]
lea eax, [eax + 8]
xor dword [eax - 8], ecx
mov ecx, dword [eax + edx - 4]
xor dword [eax - 4], ecx
sub esi, 1
jne 0x10038b85
pop esi
pop ebp
ret
lea esi, [edx + 0x30]
sub edx, eax
lea ecx, [eax + 0x10]
mov eax, 0x10
nop word [eax + eax]
lea ecx, [ecx + 0x40]
lea esi, [esi + 0x40]
movups xmm0, xmmword [ecx - 0x50]
movups xmm1, xmmword [esi - 0x70]
pxor xmm1, xmm0
movups xmmword [ecx - 0x50], xmm1
movups xmm0, xmmword [ecx - 0x40]
movups xmm1, xmmword [edx + ecx - 0x40]
pxor xmm1, xmm0
movups xmmword [ecx - 0x40], xmm1
movups xmm0, xmmword [ecx - 0x30]
movups xmm1, xmmword [esi - 0x50]
pxor xmm1, xmm0
movups xmmword [ecx - 0x30], xmm1
movups xmm0, xmmword [ecx - 0x20]
movups xmm1, xmmword [esi - 0x40]
pxor xmm1, xmm0
movups xmmword [ecx - 0x20], xmm1
sub eax, 1
jne 0x10038bb0
pop esi
pop ebp
ret
Function at 0x1003ba50
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x10073098]
xor eax, ebp
mov dword [ebp - 4], eax
xor edx, edx
xor eax, eax
mov cl, dl
mov dword [ebp - 0xc], edx
mov byte [ebp - 0x10], cl
mov cl, byte [ebp - 9]
mov byte [ebp - 0xf], cl
mov cl, byte [ebp - 0xa]
push ebx
mov byte [ebp - 0xe], cl
mov bl, dl
mov cl, byte [ebp - 0xb]
push esi
mov esi, dword [ebp + 8]
mov word [ebp - 8], dx
mov ch, byte [ebp - 7]
mov byte [ebp - 0xd], cl
nop dword [eax]
mov cl, byte [esi + eax]
mov bh, byte [eax + 0x10061240]
xor bh, cl
or bh, bl
mov bl, byte [eax + 0x10061260]
xor bl, cl
mov byte [ebp - 0x11], bh
or bl, byte [ebp - 0xd]
mov byte [ebp - 0x17], bl
mov byte [ebp - 0xd], bl
mov bl, byte [eax + 0x10061280]
xor bl, cl
or bl, byte [ebp - 0xe]
mov byte [ebp - 0x16], bl
mov byte [ebp - 0xe], bl
mov bl, byte [eax + 0x100612a0]
xor bl, cl
or bl, byte [ebp - 0xf]
mov byte [ebp - 0x15], bl
mov byte [ebp - 0xf], bl
mov bl, byte [eax + 0x100612c0]
xor bl, cl
or bl, byte [ebp - 0x10]
mov byte [ebp - 0x14], bl
mov byte [ebp - 0x10], bl
mov bl, byte [eax + 0x100612e0]
xor bl, cl
or bl, ch
mov byte [ebp - 0x13], bl
mov ch, bl
mov bl, byte [eax + 0x10061300]
inc eax
xor bl, cl
or bl, dl
mov byte [ebp - 0x12], bl
mov dl, bl
mov bl, bh
cmp eax, 0x1f
jb 0x1003ba90
mov bl, byte [eax + esi]
movzx esi, byte [eax + 0x10061300]
and bl, 0x7f
movzx ecx, bl
xor esi, ecx
movzx ecx, dl
movzx edx, byte [eax + 0x100612e0]
or esi, ecx
movzx ecx, bl
dec esi
xor edx, ecx
movzx ecx, byte [ebp - 0x13]
or edx, ecx
movzx ecx, bl
dec edx
or esi, edx
movzx edx, byte [eax + 0x100612c0]
xor edx, ecx
movzx ecx, byte [ebp - 0x14]
or edx, ecx
movzx ecx, bl
dec edx
or esi, edx
movzx edx, byte [eax + 0x100612a0]
xor edx, ecx
movzx ecx, byte [ebp - 0x15]
or edx, ecx
movzx ecx, bl
dec edx
or esi, edx
movzx edx, byte [eax + 0x10061280]
xor edx, ecx
movzx ecx, byte [ebp - 0x16]
or edx, ecx
movzx ecx, bl
dec edx
or esi, edx
movzx edx, byte [eax + 0x10061260]
movzx eax, byte [eax + 0x10061240]
xor edx, ecx
movzx ecx, byte [ebp - 0x17]
or edx, ecx
movzx ecx, bl
xor eax, ecx
dec edx
movzx ecx, bh
or esi, edx
or eax, ecx
mov ecx, dword [ebp - 4]
dec eax
xor ecx, ebp
or eax, esi
shr eax, 8
pop esi
and eax, 1
pop ebx
call fcn.1004bc43
mov esp, ebp
pop ebp
ret

Function at 0x1003c3b0
Capabilities:
Encrypt data using salsa20 or chacha

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov dword [edx], 0x61707865
mov dword [edx + 4], 0x3320646e
mov dword [edx + 8], 0x79622d32
mov dword [edx + 0xc], 0x6b206574
mov eax, dword [ecx]
mov dword [edx + 0x10], eax
mov eax, dword [ecx + 4]
mov dword [edx + 0x14], eax
mov eax, dword [ecx + 8]
mov dword [edx + 0x18], eax
mov eax, dword [ecx + 0xc]
mov dword [edx + 0x1c], eax
mov eax, dword [ecx + 0x10]
mov dword [edx + 0x20], eax
mov eax, dword [ecx + 0x14]
mov dword [edx + 0x24], eax
mov eax, dword [ecx + 0x18]
mov dword [edx + 0x28], eax
mov eax, dword [ecx + 0x1c]
mov dword [edx + 0x2c], eax
pop ebp
ret
Function at 0x1003edf0
Capabilities:
Encrypt data using salsa20 or chacha

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx]
mov dword [edx + 0x14], eax
mov eax, dword [ecx + 4]
mov dword [edx + 0x28], eax
mov eax, dword [ecx + 8]
mov dword [edx + 0x3c], eax
mov eax, dword [ecx + 0xc]
mov dword [edx + 0x30], eax
mov eax, dword [ecx + 0x10]
mov dword [edx + 0x1c], eax
mov eax, dword [ecx + 0x14]
mov dword [edx + 0x10], eax
mov eax, dword [ecx + 0x18]
mov dword [edx + 0x24], eax
mov eax, dword [ecx + 0x1c]
mov dword [edx + 0x38], eax
mov dword [edx], 0x61707865
mov dword [edx + 4], 0x3320646e
mov dword [edx + 8], 0x79622d32
mov dword [edx + 0xc], 0x6b206574
pop ebp
ret

Function at 0x1004a0e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp + 0xc], eax
xor eax, eax
mov dword [ebp + 8], 0
push esi
nop word [eax + eax]
mov ecx, dword [ebp + 0xc]
mov cl, byte [ecx + eax]
movzx edx, cl
mov ecx, dword [ebp - 4]
movzx esi, byte [ecx + eax]
inc eax
mov ecx, dword [ebp + 8]
xor esi, edx
or ecx, esi
mov dword [ebp + 8], ecx
cmp eax, 0x10
jl 0x1004a100
mov eax, dword [ebp + 8]
dec eax
shr eax, 8
and eax, 1
dec eax
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x1004b330
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
imul eax, dword [ebp + 0xc], 0x3c0
add eax, 0x10061580
mov dword [ebp + 0xc], eax
pop ebp
jmp fcn.1004b1a0
Function at 0x4015e0
Capabilities:
Get common file path

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x108
push ebx
xor ebx, ebx
cmp eax, 4
jge 0x4015ff
mov eax, 8
pop ebx
add esp, 0x108
ret
lea eax, [esp + 4]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
jbe 0x40166d
lea ecx, [esp + 4]
push 0x4121d4
push ecx
call fcn.004082ee
add esp, 8
cmp eax, ebx
je 0x401660
push esi
push edi
mov byte [eax + 1], bl
lea edi, [esp + 0xc]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ebx
mov edx, ecx
mov esi, edi
mov edi, dword [esp + 0x118]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebx
add esp, 0x108
ret
mov eax, 3
pop ebx
add esp, 0x108
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
pop ebx
add esp, 0x108
ret

Function at 0x4018a0
Capabilities:
Create directory

Disassembly:
sub esp, 0x208
push ebx
mov ebx, dword [esp + 0x210]
push ebp
xor ebp, ebp
push esi
push edi
test ebx, ebx
jne 0x4018c7
pop edi
pop esi
pop ebp
mov eax, 3
pop ebx
add esp, 0x208
ret
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
test ecx, ecx
jle 0x4019ff
cmp ecx, 0x104
jg 0x4019ff
push eax
push ebx
call fcn.00408513
add esp, 8
test eax, eax
jne 0x401900
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x114]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov al, byte [ebx]
and ecx, 3
cmp al, 0x5c
rep movsb byte es:[edi], byte [esi]
jne 0x401959
cmp byte [ebx + 1], 0x5c
jne 0x401959
lea ecx, [esp + 0x116]
push 0x4121d4
push ecx
call fcn.00408477
add esp, 8
lea edx, [esp + 0x10]
push 0x4121d4
push eax
push str._s_s
push edx
jmp 0x40197e
lea eax, [esp + 0x114]
push 0x4121d4
push eax
call fcn.00408477
add esp, 8
lea ecx, [esp + 0x10]
push 0x4121d4
push eax
push 0x4121cc
push ecx
call fcn.0040829c
add esp, 0x10
push 0x4121d4
push 0
call fcn.00408477
add esp, 8
test eax, eax
je 0x4019f2
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x4121d4
lea edx, [esp + 0x14]
push eax
push edx
lea eax, [esp + 0x1c]
push str._s_s_s
push eax
call fcn.0040829c
add esp, 0x14
lea ecx, [esp + 0x10]
push 0
push ecx
call esi
test eax, eax
jne 0x4019dd
call edi
mov ebp, eax
cmp ebp, 0xb7
jne 0x4019f2
jmp 0x4019df
xor ebp, ebp
push 0x4121d4
push 0
call fcn.00408477
add esp, 8
test eax, eax
jne 0x4019a5
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x208
ret
pop edi
pop esi
pop ebp
mov eax, 8
pop ebx
add esp, 0x208
ret
Function at 0x401d50
Capabilities:
Delete file

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push ebp
push esi
mov esi, dword [esp + 0x10]
push edi
push esi
xor edi, edi
call ebx
test eax, eax
jne 0x401d9d
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebp
mov edi, eax
cmp edi, 5
jne 0x401d9d
push 0x80
push esi
call fcn.004085de
add esp, 8
test eax, eax
jne 0x401d9d
push esi
call ebx
test eax, eax
jne 0x401d96
call ebp
pop edi
pop esi
pop ebp
pop ebx
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x401ed0
Capabilities:
Create process on windows
Create process suspended

Disassembly:
mov edx, dword [esp + 0x18]
sub esp, 0x10
lea eax, [ecx + 0x48]
add ecx, 4
push eax
mov eax, dword [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x2c]
push ecx
mov ecx, dword [esp + 0x28]
push edx
mov edx, dword [esp + 0x40]
push eax
mov eax, dword [esp + 0x40]
push ecx
mov ecx, dword [esp + 0x2c]
push edx
mov edx, dword [esp + 0x3c]
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x401f3c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [esp + 0xc]
call fcn.00401db0
mov eax, dword [esp + 0xc]
lea ecx, [esp]
push 0x410bc0
push ecx
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x410144
call fcn.0040861d
add esp, 0x10
ret 0x20

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

Disassembly:
mov eax, dword [ecx + 4]
sub esp, 0x10
cmp eax, 0xffffffff
push esi
push edi
je 0x403c53
mov ecx, dword [esp + 0x28]
mov edi, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x20]
push edi
push edx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov esi, eax
test esi, esi
jne 0x403c42
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x26
je 0x403c49
push eax
lea ecx, [esp + 0x14]
call fcn.00403e70
mov edx, dword [esp + 0x14]
lea eax, [esp + 8]
push 0x410c30
push eax
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], 0x410158
call fcn.0040861d
cmp dword [edi], 0
jne 0x403c49
xor esi, esi
mov eax, esi
pop edi
pop esi
add esp, 0x10
ret 0x10
push 0xffffffffffffffff
lea ecx, [esp + 0x14]
call fcn.00403e70
mov ecx, dword [esp + 0x14]
lea edx, [esp + 8]
push 0x410c30
push edx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], 0x410158
call fcn.0040861d
nop
nop
nop
Function at 0x403c80
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [ecx + 4]
sub esp, 0x14
cmp eax, 0xffffffff
push esi
jne 0x403cb5
push eax
lea ecx, [esp + 0x14]
call fcn.00403e70
mov eax, dword [esp + 0x14]
lea ecx, [esp + 8]
push 0x410c30
push ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], 0x410158
call fcn.0040861d
mov edx, dword [esp + 0x28]
mov esi, dword [esp + 0x20]
lea ecx, [esp + 4]
push edx
mov edx, dword [esp + 0x20]
push ecx
push esi
push edx
push eax
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x403d0b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [esp + 0x14]
call fcn.00403e70
mov eax, dword [esp + 0x14]
lea ecx, [esp + 8]
push 0x410c30
push ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], 0x410158
call fcn.0040861d
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 4]
test ecx, ecx
je 0x403d19
mov dword [ecx], edx
cmp esi, edx
je 0x403d4c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [esp + 0x14]
call fcn.00403e70
mov edx, dword [esp + 0x14]
lea eax, [esp + 8]
push 0x410c30
push eax
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], 0x410158
call fcn.0040861d
pop esi
add esp, 0x14
ret 0x10

Function at 0x4054f0
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
jne 0x4054ff
xor eax, eax
pop esi
ret 0xc
mov eax, dword [0x412320]
test eax, eax
je 0x40550d
call fcn.00405490
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
cmp edx, 8
push ebx
not eax
jb 0x40560f
push edi
mov edi, edx
shr edi, 3
mov ecx, eax
xor ebx, ebx
mov bl, byte [esi]
and ecx, 0xff
xor ecx, ebx
mov ebx, eax
shr ebx, 8
mov eax, dword [ecx*4 + 0x416118]
sub edx, 8
xor eax, ebx
inc esi
mov ecx, eax
xor ebx, ebx
mov bl, byte [esi]
and ecx, 0xff
xor ecx, ebx
xor ebx, ebx
mov bl, byte [esi + 1]
mov ecx, dword [ecx*4 + 0x416118]
shr eax, 8
xor ecx, eax
inc esi
mov eax, ecx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [esi + 1]
mov eax, dword [eax*4 + 0x416118]
shr ecx, 8
xor eax, ecx
inc esi
mov ecx, eax
and ecx, 0xff
xor ecx, ebx
xor ebx, ebx
mov bl, byte [esi + 1]
mov ecx, dword [ecx*4 + 0x416118]
shr eax, 8
xor ecx, eax
inc esi
mov eax, ecx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [esi + 1]
mov eax, dword [eax*4 + 0x416118]
shr ecx, 8
xor eax, ecx
inc esi
mov ecx, eax
and ecx, 0xff
xor ecx, ebx
xor ebx, ebx
mov bl, byte [esi + 1]
mov ecx, dword [ecx*4 + 0x416118]
shr eax, 8
xor ecx, eax
inc esi
mov eax, ecx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [esi + 1]
mov eax, dword [eax*4 + 0x416118]
shr ecx, 8
xor eax, ecx
inc esi
mov ecx, eax
and ecx, 0xff
xor ecx, ebx
shr eax, 8
mov ecx, dword [ecx*4 + 0x416118]
xor eax, ecx
inc esi
dec edi
jne 0x405527
pop edi
test edx, edx
je 0x405631
mov ecx, eax
xor ebx, ebx
mov bl, byte [esi]
and ecx, 0xff
xor ecx, ebx
shr eax, 8
mov ecx, dword [ecx*4 + 0x416118]
xor eax, ecx
inc esi
dec edx
jne 0x405613
pop ebx
pop esi
not eax
ret 0xc
Function at 0x408513
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x408533
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0040b97f
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x408554
test byte [esp + 8], 2
je 0x408554
mov dword [0x416538], 0xd
mov dword [0x41653c], 5
jmp 0x40852f
xor eax, eax
ret

Function at 0x4085de
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x408609
test byte [esp + 8], 0x80
je 0x4085f8
and al, 0xfe
jmp 0x4085fa
or al, 1
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x40861a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0040b97f
pop ecx
or eax, 0xffffffff
ret
xor eax, eax
ret
Function at 0x10001ac0
Capabilities:
Get file size
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
push ebx
xor ebx, ebx
push edi
push ebx
push ebx
push 4
push ebx
push 3
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x10001b2e
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
push ebx
call fcn.10004b81
add esp, 4
lea ecx, [esp + 0x10]
mov esi, eax
push 0
push ecx
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push edx
mov edx, dword [esp + 0x14]
push eax
push ecx
push edx
push esi
call fcn.10001a50
push esi
mov ebx, eax
call fcn.10003f72
add esp, 0x18
pop esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
pop edi
pop ebx
ret

Function at 0x10001cb0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ecx
mov eax, dword [esp + 8]
push ebx
push ebp
push esi
push edi
push 1
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov esi, eax
xor ebx, ebx
mov ecx, dword [esi + 0x3c]
mov edi, dword [ecx + esi + 0x78]
mov ecx, dword [edi + esi + 0x1c]
add edi, esi
add ecx, esi
mov dword [esp + 0x10], ecx
mov eax, dword [edi + 0x20]
mov ebp, dword [edi + 0x24]
mov ecx, dword [edi + 0x18]
add eax, esi
add ebp, esi
test ecx, ecx
jbe 0x10001d1f
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x18]
mov edx, esi
mov ecx, dword [eax]
add edx, ecx
mov ecx, dword [esp + 0x1c]
push edx
push ecx
call fcn.10004b90
add esp, 8
test eax, eax
je 0x10001d28
mov ecx, dword [esp + 0x18]
mov eax, dword [edi + 0x18]
inc ebx
add ecx, 4
cmp ebx, eax
mov dword [esp + 0x18], ecx
jb 0x10001cf0
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
pop ecx
ret
mov eax, dword [esp + 0x10]
xor edx, edx
mov dx, word [ebp + ebx*2]
mov ecx, dword [esp + 0x20]
mov edi, dword [eax + edx*4]
lea eax, [eax + edx*4]
add edi, esi
test ecx, ecx
je 0x10001d4f
sub ecx, esi
push ecx
push eax
call fcn.10001b90
add esp, 8
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x10001df0
Capabilities:
Create thread
Inject dll
Inject thread

Disassembly:
mov ecx, dword [0x1000cdf4]
sub esp, 0x208
lea eax, [esp + 0x104]
push ebx
push ebp
push esi
push edi
push 0x104
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x114]
push edx
push str.Injecting_DLL__s_n
call fcn.10001130
mov eax, dword [esp + 0x224]
add esp, 8
push eax
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
jne 0x10001e5f
push str.Process_found__but_cannot_open_handle_n
call fcn.10001130
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret
push str.LoadLibraryA
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea ecx, [esp + 0x10]
push 0
push ecx
lea edx, [esp + 0x11c]
push 0x104
push edx
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
lea edi, [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
push 4
repne scasb al, byte es:[edi]
not ecx
push 0x3000
push ecx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov ebx, eax
test ebx, ebx
jne 0x10001ed0
push str.Could_not_allocate_memory_inside_the_target_process_n
call fcn.10001130
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret
lea edi, [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
push 0
repne scasb al, byte es:[edi]
not ecx
lea eax, [esp + 0x14]
push ecx
push eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x10001f0c
push str.There_were_no_bytes_written_to_the_processs_address_space._n
call fcn.10001130
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret
push 0
push 0
push ebx
push ebp
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov edi, eax
test edi, edi
jne 0x10001f30
push str.Could_not_create_remote_thread_in_target_process_n
call fcn.10001130
add esp, 4
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push esi
call edi
mov ecx, dword [esp + 0x21c]
push ecx
push str.Injecting_into_pid__d_n
call fcn.10001130
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret