joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4225f0
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x28
mov edi, dword [esp + 0x40]
mov esi, dword [esp + 0x48]
mov cl, 4
mov ebp, dword [edi + 8]
mov ebx, dword [edi + 0xc]
mov eax, ebp
or eax, ebx
je 0x42266f
cmp esi, ebp
mov ecx, ebp
mov eax, ebp
cmovb ecx, esi
test ebx, ebx
cmovne eax, esi
cmove eax, ecx
cmp eax, esi
ja 0x422741
mov ecx, dword [edi + 4]
lea edx, [esp + 0x10]
push eax
push dword [esp + 0x48]
push dword [edi]
push edx
call dword [ecx + 0xc]
add esp, 0x10
movzx eax, byte [esp + 0x10]
cmp al, 4
jne 0x42267e
mov edx, dword [esp + 0x14]
mov eax, ebx
cmp ebp, edx
sbb eax, 0
jb 0x422752
sub ebp, edx
mov cl, 4
sbb ebx, 0
mov dword [edi + 8], ebp
mov dword [edi + 0xc], ebx
mov eax, dword [esp + 0x3c]
test esi, esi
jne 0x42269f
jmp 0x42272c
xor edx, edx
mov eax, dword [esp + 0x3c]
test esi, esi
jne 0x42269f
jmp 0x42272c
movzx ecx, byte [esp + 0x13]
movzx ebx, word [esp + 0x11]
mov edx, dword [esp + 0x14]
shl ecx, 0x10
or ebx, ecx
mov ecx, eax
mov eax, dword [esp + 0x3c]
test esi, esi
je 0x42272c
mov dword [esp + 8], edx
mov byte [esp + 3], cl
mov edx, dword [edi + 0x18]
mov ecx, dword [edi + 0x10]
mov ebp, dword [edi + 0x14]
mov edi, dword [esp + 0x44]
mov dword [esp + 4], ebx
nop dword [eax + eax]
mov ebx, edx
mov dword [esp + 0xc], esi
movzx esi, dl
shr edx, 8
or ebx, 3
mov eax, ebx
and eax, 0xfffffffe
imul eax, ebx
mov ebx, ecx
shr ecx, 8
xor ah, byte [edi]
xor bl, ah
mov byte [edi], ah
inc edi
movzx ebx, bl
xor ecx, dword [ebx*4 + 0x69ce30]
movzx ebx, cl
add ebx, ebp
imul ebp, ebx, 0x8088405
inc ebp
mov ebx, ebp
shr ebx, 0x18
xor esi, ebx
xor edx, dword [esi*4 + 0x69ce30]
mov esi, dword [esp + 0xc]
dec esi
jne 0x4226c0
mov eax, dword [esp + 0x40]
mov ebx, dword [esp + 4]
mov dword [eax + 0x18], edx
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ebp
movzx ecx, byte [esp + 3]
mov edx, dword [esp + 8]
mov eax, dword [esp + 0x3c]
shl ebx, 8
movzx ecx, cl
mov dword [eax + 4], edx
or ecx, ebx
mov dword [eax], ecx
add esp, 0x28
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x69cde4
push esi
push eax
call fcn.0044aa20
add esp, 0xc
ud2
mov dword [esp + 0x10], str.number_of_read_bytes_exceeds_limit
mov dword [esp + 0x14], 1
mov dword [esp + 0x20], 0
mov dword [esp + 0x18], 0x69cde4
mov dword [esp + 0x1c], 0
push 0x69ce20
lea eax, [esp + 0x14]
push eax
call fcn.0044a5d0
add esp, 8
ud2
Function at 0x426610
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp esi, 0x80
jae 0x426625
push esi
push edx
push ecx
jmp 0x4267e6
movdqu xmm4, xmmword [edx]
not ecx
movdqu xmm3, xmmword [edx + 0x10]
movdqu xmm2, xmmword [edx + 0x20]
movdqu xmm1, xmmword [edx + 0x30]
movdqa xmm5, xmmword [0x69dd60]
add edx, 0x40
add esi, 0xffffffc0
movd xmm0, ecx
pxor xmm0, xmm4
movdqa xmm4, xmmword [0x69dd50]
nop dword [eax + eax]
movdqa xmm6, xmm0
movdqa xmm7, xmm0
movdqu xmm0, xmmword [edx]
add esi, 0xffffffc0
pclmulqdq xmm6, xmm4, 0
pclmulqdq xmm7, xmm5, 0x11
pxor xmm0, xmm6
movdqu xmm6, xmmword [edx + 0x10]
pxor xmm0, xmm7
movdqa xmm7, xmm3
pclmulqdq xmm3, xmm5, 0x11
pclmulqdq xmm7, xmm4, 0
pxor xmm7, xmm6
movdqu xmm6, xmmword [edx + 0x20]
pxor xmm3, xmm7
movdqa xmm7, xmm2
pclmulqdq xmm2, xmm5, 0x11
pclmulqdq xmm7, xmm4, 0
pxor xmm7, xmm6
movdqu xmm6, xmmword [edx + 0x30]
add edx, 0x40
cmp esi, 0x3f
pxor xmm2, xmm7
movdqa xmm7, xmm1
pclmulqdq xmm1, xmm5, 0x11
pclmulqdq xmm7, xmm4, 0
pxor xmm7, xmm6
pxor xmm1, xmm7
ja 0x426660
movdqa xmm4, xmmword [0x69dd70]
movdqa xmm5, xmmword [0x69dd80]
movdqa xmm6, xmm0
cmp esi, 0x10
pclmulqdq xmm6, xmm4, 0
pclmulqdq xmm0, xmm5, 0x11
pxor xmm0, xmm6
pxor xmm0, xmm3
movdqa xmm3, xmm0
pclmulqdq xmm0, xmm5, 0x11
pclmulqdq xmm3, xmm4, 0
pxor xmm0, xmm3
pxor xmm0, xmm2
movdqa xmm2, xmm0
pclmulqdq xmm0, xmm5, 0x11
pclmulqdq xmm2, xmm4, 0
pxor xmm0, xmm2
pxor xmm0, xmm1
jb 0x426777
nop word cs:[eax + eax]
nop dword [eax]
movdqu xmm1, xmmword [edx]
movdqa xmm2, xmm0
add esi, 0xfffffff0
pclmulqdq xmm0, xmm5, 0x11
add edx, 0x10
pclmulqdq xmm2, xmm4, 0
cmp esi, 0xf
pxor xmm2, xmm1
pxor xmm0, xmm2
ja 0x426750
movdqa xmm1, xmmword [0x69dd80]
pxor xmm2, xmm2
test esi, esi
pclmulqdq xmm1, xmm0, 1
psrldq xmm0, 8
pxor xmm0, xmm1
pxor xmm1, xmm1
pblendw xmm2, xmm0, 3
psrldq xmm0, 4
pclmulqdq xmm2, xmmword [0x69dd90], 0
pxor xmm0, xmm2
pxor xmm2, xmm2
pblendw xmm2, xmm0, 3
pclmulqdq xmm2, xmmword [0x69dda0], 0x10
pblendw xmm2, xmm1, 0xfc
pclmulqdq xmm2, xmmword [0x69ddb0], 0
pxor xmm2, xmm0
pextrd eax, xmm2, 1
not eax
je 0x4267ee
push esi
push edx
push eax
call fcn.004267f0
add esp, 0xc
pop esi
ret
Function at 0x4297e0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x43c
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x43a7f0
mov esi, 0x200
lea eax, [ebp - 0x18]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 2
mov dword [ebp - 0x2c], 0
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
mov dword [ebp - 0x38], 2
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
cmp esi, 0x201
jae 0x429870
jmp 0x42985e
jbe 0x429904
cmp esi, 0x201
jae 0x429870
lea ebx, [ebp - 0x448]
mov dword [ebp - 0x28], 0x200
mov edi, esi
jmp 0x4298ab
mov edi, dword [ebp - 0x20]
mov eax, dword [ebp - 0x2c]
sub esi, edi
sub eax, edi
cmp eax, esi
jae 0x42989c
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 0x38]
mov edx, edi
push esi
call fcn.004495e0
add esp, 4
mov eax, dword [ebp - 0x38]
mov edi, dword [ebp - 0x34]
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x24]
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x20], edi
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov esi, eax
test eax, eax
jne 0x4298cf
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x429967
cmp esi, edi
jne 0x429850
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x429983
lea esi, [edi + edi]
test edi, edi
mov eax, 0xffffffff
cmovs esi, eax
cmp esi, 0x201
jb 0x42985e
jmp 0x429870
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x10], 0
cmp esi, eax
ja 0x4299a0
lea eax, [ebp - 0x48]
push esi
push ebx
push eax
call fcn.0042d520
add esp, 0xc
movsd xmm0, qword [ebp - 0x48]
mov esi, dword [ebp + 8]
movsd xmm1, qword [ebp - 0x40]
movsd qword [esi + 8], xmm1
movsd qword [esi], xmm0
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x429951
add eax, eax
push 2
push eax
push dword [ebp - 0x24]
call fcn.0040b490
add esp, 0xc
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
mov eax, esi
add esp, 0x43c
pop esi
pop edi
pop ebx
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [ebp + 8]
mov byte [esi], 0
mov dword [esi + 4], eax
mov byte [esi + 0xc], 2
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x429941
jmp 0x429951
mov dword [ebp - 0x10], 0
push 0x6a3ecc
push 0x28
push str.internal_error:_entered_unreachable_code_rustc_8ede3aae28fe6e4d52b38157d7bfe0d3bceef225library_alloc_src_vecmod.rs
call fcn.0044a690
add esp, 0xc
jmp 0x4299af
push 0x6a3edc
push eax
push esi
call fcn.0044aa20
add esp, 0xc
ud2
Function at 0x429e00
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x80
mov esi, esp
mov dword [esi + 0x68], ebp
mov dword [esi + 0x6c], esp
mov dword [esi + 0x78], 0xffffffff
mov dword [esi + 0x74], 0x43a810
mov ebx, dword [ebp + 8]
movaps xmm0, xmmword [0x6a1df0]
mov edx, dword [ebp + 0xc]
lea edi, [esi + 0x20]
lea ecx, [esi + 4]
mov eax, dword fs:[0]
mov dword [esi + 0x70], eax
lea eax, [esi + 0x70]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x3c], 0
mov word [esi + 0x40], 0
mov dword [esi + 0x20], 0
movups xmmword [esi + 0x28], xmm0
mov dword [esi + 0x38], 0
mov byte [esi + 0x3c], 1
push edi
push eax
call fcn.00434300
add esp, 8
cmp byte [esi + 4], 4
jne 0x429e85
mov edx, dword [esi + 8]
jmp 0x429e93
mov eax, dword [esi + 4]
mov edx, dword [esi + 8]
cmp al, 4
jne 0x429f43
lea ecx, [esi + 0x20]
mov dword [esi + 0x1c], edx
mov dword [esi + 0xc], edx
call fcn.00434530
mov eax, dword [esi + 0x20]
xor eax, 2
or eax, dword [esi + 0x24]
jne 0x429f10
movzx eax, byte [esi + 0x28]
mov ebx, dword [esi + 0x2c]
cmp al, 4
je 0x429f13
cmp al, 3
jne 0x429efe
mov eax, dword [ebx]
mov ecx, dword [ebx + 4]
mov dword [esi + 0x18], ebx
mov dword [esi + 0x78], 1
mov dword [esi + 0x10], eax
push eax
mov dword [esi + 0x14], ecx
call dword [ecx]
add esp, 4
mov ecx, dword [esi + 0x14]
mov eax, dword [ecx + 4]
test eax, eax
je 0x429eef
push dword [ecx + 8]
push eax
push dword [esi + 0x10]
call fcn.0040b490
add esp, 0xc
push 4
push 0xc
push dword [esi + 0x18]
call fcn.0040b490
add esp, 0xc
mov eax, 1
xor ebx, ebx
xor edi, edi
mov dword [esi + 0x78], 2
jmp 0x429f6f
mov ebx, dword [esi + 0x58]
test ebx, ebx
je 0x429f63
setns al
js 0x42a002
movzx edi, al
movzx eax, byte [0x6ae109]
push edi
push ebx
call fcn.0040b480
add esp, 8
test eax, eax
je 0x42a010
mov edi, 1
jmp 0x429f6f
mov ecx, eax
mov byte [ebx + 4], al
shr eax, 0x18
shr ecx, 8
mov byte [ebx + 7], al
mov word [ebx + 5], cx
mov dword [ebx + 8], edx
mov dword [ebx], 0
jmp 0x429fef
mov edi, 1
xor ebx, ebx
mov eax, 1
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], 0
mov dword [esi + 0x78], 2
lea eax, [esi + 0x1c]
lea ecx, [esi + 4]
lea edx, [esi + 0x20]
push ebx
push edi
push eax
call fcn.0042bcb0
add esp, 0xc
movzx eax, byte [esi + 4]
mov ebx, dword [ebp + 8]
cmp al, 4
jne 0x429fb3
mov eax, dword [esi + 0x28]
movsd xmm0, qword [esi + 0x20]
mov dword [ebx + 8], eax
movsd qword [ebx], xmm0
jmp 0x429fe6
movzx ecx, byte [esi + 7]
movzx edi, word [esi + 5]
mov edx, dword [esi + 8]
mov byte [ebx + 7], cl
mov word [ebx + 5], di
mov byte [ebx + 4], al
mov eax, dword [esi + 0x24]
mov dword [ebx + 8], edx
mov dword [ebx], 0
test eax, eax
je 0x429fe6
push 1
push eax
push dword [esi + 0x20]
call fcn.0040b490
add esp, 0xc
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 0x70]
mov dword fs:[0], eax
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [esi + 0x78], 0
call fcn.00441af0
jmp 0x42a021
mov dword [esi + 0x78], 0
push ebx
push edi
call fcn.0044a490
add esp, 8
ud2
Function at 0x42ddf0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0xc
movzx ebx, byte [edx + 0x1c]
mov dword [esp + 8], ecx
xor ecx, ecx
mov eax, 0
mov edi, edx
call 0x42de0d
pop ebp
cmp bl, 1
setne dl
sbb eax, eax
or al, dl
movzx edx, al
cmp al, 0xff
je 0x42de23
test edx, edx
jne 0x42de4c
mov byte [esp + 3], bl
movzx ebx, byte [edi + 0x1e]
cmp al, 0xff
mov esi, ebx
je 0x42de35
test edx, edx
jne 0x42de3f
mov ecx, edi
call fcn.0042dd00
movzx ecx, al
movzx ebx, byte [esp + 3]
xor eax, eax
test bl, bl
jne 0x42dea8
jmp 0x42de54
xor esi, esi
xor eax, eax
test bl, bl
jne 0x42dea8
xor eax, eax
cmp byte [edi + 8], 6
lea edx, [edi + 8]
cmove edx, eax
je 0x42dea8
movzx ebx, byte [edx]
mov eax, 6
add ebp, dword [ebx*4 + 0x42dfb4]
jmp ebp
add ecx, eax
mov eax, esi
movzx esi, al
mov eax, dword [edi + 4]
lea ebx, [ecx + esi]
cmp eax, ebx
jb 0x42df9b
mov ebp, dword [edi]
cmp eax, ebx
lea edx, [ebp + ebx]
jne 0x42ded7
movzx ecx, byte [edi + 8]
mov byte [esp + 3], cl
xor ecx, ecx
sub eax, ebx
jne 0x42df52
jmp 0x42df37
mov dword [esp + 4], edx
mov dh, byte [edi + 8]
add ecx, esi
sub ecx, eax
cmp dh, 3
mov byte [esp + 3], dh
jae 0x42df0b
mov edx, dword [esp + 4]
lea esi, [eax + ebp - 1]
nop word cs:[eax + eax]
nop dword [eax]
cmp byte [esi], 0x5c
je 0x42df3b
dec esi
inc ecx
jne 0x42df00
jmp 0x42df31
mov edx, dword [esp + 4]
lea edi, [eax + ebp - 1]
nop word cs:[eax + eax]
nop dword [eax]
movzx esi, byte [edi]
cmp esi, 0x2f
je 0x42df3b
cmp esi, 0x5c
je 0x42df3b
dec edi
inc ecx
jne 0x42df20
xor ecx, ecx
sub eax, ebx
jne 0x42df52
mov bl, 0xa
jmp 0x42df82
not ecx
lea ebx, [ebx + ecx + 1]
cmp eax, ebx
jb 0x42dfa2
add ebp, ebx
mov ecx, 1
mov edx, ebp
sub eax, ebx
je 0x42df37
mov bl, 9
cmp eax, 2
je 0x42df73
cmp eax, 1
jne 0x42df82
cmp byte [edx], 0x2e
jne 0x42df82
xor ebx, ebx
cmp byte [esp + 3], 3
setae bl
lea ebx, [ebx + ebx*2 + 7]
jmp 0x42df82
cmp byte [edx], 0x2e
jne 0x42df82
cmp byte [edx + 1], 0x2e
sete bl
xor bl, 9
mov esi, dword [esp + 8]
add ecx, eax
mov dword [esi], ecx
mov byte [esi + 4], bl
mov dword [esi + 8], edx
mov dword [esi + 0xc], eax
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x6a2cb4
jmp 0x42dfa7
push 0x6a2cc4
push eax
push ebx
call fcn.0044a9b0
add esp, 0xc
ud2
Function at 0x4349e0
Capabilities:
Create directory

Disassembly:
push ebx
push edi
push esi
sub esp, 0x18
mov esi, ecx
mov ecx, esp
push dword [esp + 0x28]
call fcn.00438ed0
add esp, 4
mov ecx, dword [esp]
mov edi, dword [esp + 4]
mov eax, dword [esp + 8]
test ecx, ecx
je 0x434a46
mov dword [esp], ecx
mov dword [esp + 4], edi
mov dword [esp + 8], eax
lea ecx, [esp + 0xc]
mov edx, esp
push 1
call fcn.00437180
add esp, 4
mov ebx, dword [esp + 0xc]
mov edi, dword [esp + 0x10]
test ebx, ebx
je 0x434a42
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x434a52
mov byte [esi], 4
test edi, edi
jne 0x434a62
jmp 0x434a4b
mov eax, dword [esp + 0x14]
mov dword [esi], edi
mov dword [esi + 4], eax
add esp, 0x18
pop esi
pop edi
pop ebx
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [esi], 0
mov dword [esi + 4], eax
test edi, edi
je 0x434a4b
add edi, edi
push 2
push edi
push ebx
call fcn.0040b490
add esp, 0x24
pop esi
pop edi
pop ebx
ret

Function at 0x434a80
Capabilities:
Delete file

Disassembly:
push ebx
push edi
push esi
sub esp, 0x18
mov esi, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
mov ecx, esp
push dword [esp + 0x30]
call fcn.00438ed0
add esp, 4
mov ecx, dword [esp]
mov edi, dword [esp + 4]
mov eax, dword [esp + 8]
test ecx, ecx
je 0x434aea
mov dword [esp], ecx
mov dword [esp + 4], edi
mov dword [esp + 8], eax
lea ecx, [esp + 0xc]
mov edx, esp
push 1
call fcn.00437180
add esp, 4
mov ebx, dword [esp + 0xc]
mov edi, dword [esp + 0x10]
test ebx, ebx
je 0x434ae6
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x434af1
mov byte [esi], 4
test edi, edi
jne 0x434b01
jmp 0x434b0f
mov eax, dword [esp + 0x14]
mov dword [esi], edi
mov dword [esi + 4], eax
jmp 0x434b0f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [esi], 0
mov dword [esi + 4], eax
test edi, edi
je 0x434b0f
add edi, edi
push 2
push edi
push ebx
call fcn.0040b490
add esp, 0xc
mov eax, esi
add esp, 0x18
pop esi
pop edi
pop ebx
ret
Function at 0x435b60
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x38
mov esi, esp
mov dword [esi + 0x20], ebp
mov dword [esi + 0x24], esp
mov dword [esi + 0x30], 0xffffffff
mov dword [esi + 0x2c], 0x43abc0
mov edi, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
lea ecx, [esi + 0x28]
mov eax, dword fs:[0]
mov dword [esi + 0x28], eax
mov dword fs:[0], ecx
mov ecx, esi
push ebx
call fcn.00438ed0
add esp, 4
mov ecx, dword [esi]
mov edx, dword [esi + 4]
mov eax, dword [esi + 8]
test ecx, ecx
je 0x435c6d
mov dword [esi], ecx
mov dword [esi + 4], edx
mov edx, esi
mov dword [esi + 8], eax
lea ecx, [esi + 0x14]
push 1
call fcn.00437180
add esp, 4
mov eax, dword [esi + 0x14]
mov edx, dword [esi + 0x18]
test eax, eax
je 0x435c6a
mov edi, dword [ebp + 0x18]
mov dword [esi + 0x10], edx
mov edx, dword [ebp + 0x14]
mov dword [esi + 0xc], eax
mov dword [esi + 0x30], 0
mov ecx, esi
push edi
call fcn.00438ed0
add esp, 4
mov ecx, dword [esi]
mov edi, dword [esi + 4]
mov eax, dword [esi + 8]
test ecx, ecx
je 0x435c7e
mov dword [esi], ecx
mov dword [esi + 4], edi
mov dword [esi + 8], eax
lea ecx, [esi + 0x14]
mov edx, esi
push 1
call fcn.00437180
add esp, 4
mov ebx, dword [esi + 0x14]
mov edi, dword [esi + 0x18]
test ebx, ebx
je 0x435c7b
mov dword [esi + 4], 0
mov dword [esi], 0
push 0
push 0
mov eax, esi
push eax
push 0x435d10
push ebx
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_CopyFileExW]
test eax, eax
je 0x435c8f
mov eax, dword [esi]
mov edx, dword [ebp + 8]
mov ecx, dword [esi + 4]
mov dword [edx + 8], eax
mov dword [edx + 0xc], ecx
mov dword [edx], 0
test edi, edi
jne 0x435ca9
jmp 0x435cb7
mov eax, dword [esi + 0x1c]
mov dword [edi + 4], edx
mov dword [edi + 8], eax
mov dword [edi], 1
jmp 0x435cd1
mov eax, dword [esi + 0x1c]
mov ecx, dword [ebp + 8]
mov dword [ecx + 4], edi
mov dword [ecx + 8], eax
mov dword [ecx], 1
jmp 0x435cb7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 8]
mov byte [ecx + 4], 0
mov dword [ecx + 8], eax
mov dword [ecx], 1
test edi, edi
je 0x435cb7
add edi, edi
push 2
push edi
push ebx
call fcn.0040b490
add esp, 0xc
mov eax, dword [esi + 0x10]
mov edi, dword [ebp + 8]
test eax, eax
je 0x435cd1
add eax, eax
push 2
push eax
push dword [esi + 0xc]
call fcn.0040b490
add esp, 0xc
mov eax, dword [esi + 0x28]
mov dword fs:[0], eax
mov eax, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x436060
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x40
mov esi, ecx
mov ecx, dword [ebp + 0xc]
cmp dword [ebp + 0x10], 0
mov edi, edx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x103
je 0x4360a4
mov eax, dword [ebp + 0x1c]
mov ebx, dword [ebp + 0x18]
lea edx, [esp + 0x20]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], eax
xor eax, eax
mov ebx, 1
jmp 0x4360aa
xor ebx, ebx
xor eax, eax
xor edx, edx
mov dword [esp + 0x1c], eax
lea eax, [esp + 8]
mov dword [esp + 0x18], ebx
push 0
push edx
push ecx
push dword [ebp + 8]
push eax
push 0
push 0
push 0
push edi
call dword [sym.imp.ntdll.dll_NtReadFile]
cmp eax, 0x103
jne 0x4360df
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 8]
cmp eax, 0xc0000011
jne 0x4360ef
mov dword [esi + 4], 0
jmp 0x436101
cmp eax, 0x103
je 0x43611b
test eax, eax
js 0x43610c
mov eax, dword [esp + 0xc]
mov dword [esi + 4], eax
mov byte [esi], 4
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
push eax
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov byte [esi], 0
mov dword [esi + 4], eax
jmp 0x436104
lea eax, [esp + 4]
mov dword [esp + 0x18], 0x6a3874
mov dword [esp + 0x1c], 1
mov dword [esp + 0x28], 0
mov dword [esp + 0x10], 0
mov byte [esp + 0x14], 0
lea ecx, [esp + 0x10]
lea edx, [esp + 0x34]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x18]
mov dword [esp + 0x24], 0
push eax
push ecx
push edx
call fcn.0042cc80
add esp, 0xc
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
call fcn.004277b0
mov ecx, 7
int 0x29
ud2
Function at 0x436180
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x40
mov esi, ecx
mov ecx, dword [ebp + 0xc]
cmp dword [ebp + 0x10], 0
mov edi, edx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x103
je 0x4361c4
mov eax, dword [ebp + 0x1c]
mov ebx, dword [ebp + 0x18]
lea edx, [esp + 0x20]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], eax
xor eax, eax
mov ebx, 1
jmp 0x4361ca
xor ebx, ebx
xor eax, eax
xor edx, edx
mov dword [esp + 0x1c], eax
lea eax, [esp + 8]
mov dword [esp + 0x18], ebx
push 0
push edx
push ecx
push dword [ebp + 8]
push eax
push 0
push 0
push 0
push edi
call dword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
jne 0x436206
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 8]
cmp eax, 0x103
je 0x43622b
test eax, eax
js 0x436215
mov eax, dword [esp + 0xc]
mov dword [esi + 4], eax
mov al, 4
jmp 0x436221
push eax
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov dword [esi + 4], eax
xor eax, eax
mov byte [esi], al
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
lea eax, [esp + 4]
mov dword [esp + 0x18], 0x6a3874
mov dword [esp + 0x1c], 1
mov dword [esp + 0x28], 0
mov dword [esp + 0x10], 0
mov byte [esp + 0x14], 0
lea ecx, [esp + 0x10]
lea edx, [esp + 0x34]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x18]
mov dword [esp + 0x24], 0
push eax
push ecx
push edx
call fcn.0042cc80
add esp, 0xc
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
call fcn.004277b0
mov ecx, 7
int 0x29
ud2

Function at 0x4377f0
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x60
mov esi, esp
mov dword [esi + 0x48], ebp
mov dword [esi + 0x4c], esp
mov dword [esi + 0x58], 0xffffffff
mov dword [esi + 0x54], 0x43ac20
mov edi, ecx
lea eax, [esi + 0x50]
xorps xmm0, xmm0
mov ecx, dword fs:[0]
mov dword [esi + 0x50], ecx
mov dword fs:[0], eax
movaps xmmword [esi + 0x10], xmm0
lea eax, [esi + 0x10]
push 0x10
push eax
call dword [sym.imp.ADVAPI32.dll_SystemFunction036]
test al, al
je 0x43786e
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0x14]
mov edx, dword [esi + 0x18]
mov ebx, dword [esi + 0x1c]
mov dword [esi + 4], eax
mov eax, dword [esi + 0x50]
mov dword fs:[0], eax
mov dword [edi + 0xc], ebx
mov dword [edi + 8], edx
mov dword [edi + 4], ecx
mov eax, dword [esi + 4]
mov dword [edi], eax
mov eax, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [esi + 8], 0
mov dword [esi + 0xc], eax
lea eax, [esi + 8]
mov dword [esi + 0x30], 0x6a3a00
mov dword [esi + 0x34], 1
mov dword [esi + 0x40], 0
mov dword [esi + 0x58], 0
mov dword [esi + 0x28], eax
lea eax, [esi + 0x28]
mov dword [esi + 0x2c], fcn.0042aea0
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], 1
lea eax, [esi + 0x30]
push 0x6a3a2c
push eax
call fcn.0044a5d0
add esp, 8
ud2