joyce8/EMBER2024-capa huggingface dataset:
Function at 0x417000
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
mov ecx, dword [esp + 4]
mov eax, ecx
mov edx, dword [esp + 8]
movdqa xmm0, xmmword [edx]
aeskeygenassist xmm0, xmm0, 2
movdqa xmmword [ecx], xmm0
ret
Function at 0x4273a0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x4c
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x43e0f0
mov esi, ecx
lea eax, [ebp - 0x18]
mov edi, edx
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
movzx eax, byte [0x510121]
push 4
push 0x1ec
call fcn.0040ad40
add esp, 8
test eax, eax
je 0x427546
mov ebx, dword [edi]
mov dword [ebp - 0x3c], esi
mov esi, dword [edi + 8]
mov dword [eax + 0xb0], 0
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x28], eax
movzx ecx, word [ebx + 0x1ea]
mov edi, esi
not edi
add edi, ecx
mov dword [ebp - 0x20], ecx
lea ecx, [esi + esi*8]
lea ecx, [ecx + ecx*2]
mov word [eax + 0x1ea], di
add ecx, esi
mov edx, dword [ebx + ecx + 0xcc]
mov dword [ebp - 0x40], edx
movsd xmm0, qword [ebx + ecx + 0xc4]
movsd qword [ebp - 0x48], xmm0
movsd xmm0, qword [ebx + ecx + 0xb4]
movsd xmm1, qword [ebx + ecx + 0xbc]
mov ecx, esi
shl ecx, 4
cmp edi, 0xb
movsd qword [ebp - 0x50], xmm1
movsd qword [ebp - 0x58], xmm0
mov eax, dword [ebx + ecx]
mov edx, dword [ebx + ecx + 4]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x2c], edx
ja 0x427552
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x34], esi
inc esi
sub eax, esi
cmp eax, edi
jne 0x42756b
mov edx, dword [ebx + ecx + 0xc]
mov ecx, dword [ebx + ecx + 8]
lea eax, [ebx + 0xb4]
add eax, esi
mov dword [ebp - 0x30], edx
lea edx, [esi + esi*8]
mov dword [ebp - 0x20], ecx
mov ecx, dword [ebp - 0x28]
lea edx, [edx + edx*2]
add eax, edx
lea edx, [edi + edi*8]
lea edx, [edx + edx*2]
add edx, edi
add ecx, 0xb4
push edx
push eax
push ecx
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
shl esi, 4
shl edi, 4
add esi, ebx
push edi
push esi
mov esi, dword [ebp - 0x28]
push esi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x3c]
mov edi, dword [ebp - 0x24]
mov edx, dword [ebp - 0x2c]
mov word [ebx + 0x1ea], ax
mov eax, dword [ebp - 0x40]
movsd xmm0, qword [ebp - 0x58]
movsd xmm1, qword [ebp - 0x50]
mov dword [ecx + 0x18], eax
mov eax, dword [ebp - 0x38]
movsd qword [ecx], xmm0
movsd xmm0, qword [ebp - 0x48]
movsd qword [ecx + 8], xmm1
mov eax, dword [eax + 4]
movsd qword [ecx + 0x10], xmm0
mov dword [ecx + 0x2c], ebx
mov dword [ecx + 0x30], eax
mov dword [ecx + 0x1c], edi
mov dword [ecx + 0x20], edx
mov edi, dword [ebp - 0x30]
mov edx, dword [ebp - 0x20]
mov dword [ecx + 0x28], edi
mov dword [ecx + 0x24], edx
mov dword [ecx + 0x34], esi
mov dword [ecx + 0x38], 0
mov ecx, dword [ebp - 0x18]
mov dword fs:[0], ecx
add esp, 0x4c
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x1ec
push 4
call fcn.0044b460
mov dword [ebp - 0x10], 0
push 0x507064
push 0xb
push edi
call fcn.0044b8c0
add esp, 0xc
jmp 0x427586
mov dword [ebp - 0x10], 0
push 0x507054
push 0x28
push str.assertion_failed:_src.len____dst.len__
call fcn.0044b5f0
add esp, 0xc
ud2
Function at 0x429ec0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x438
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x43e170
mov edi, 0x200
lea eax, [ebp - 0x18]
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x2c], 2
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 2
mov dword [ebp - 0x20], 0
cmp edi, 0x201
jae 0x429f50
jmp 0x429f3e
jbe 0x429fd6
cmp edi, 0x201
jae 0x429f50
mov dword [ebp - 0x30], 0x200
lea ebx, [ebp - 0x444]
mov esi, edi
jmp 0x429f81
mov esi, dword [ebp - 0x34]
sub edi, esi
je 0x429f75
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 0x28]
mov edx, esi
push edi
call fcn.0044ab20
add esp, 4
mov esi, dword [ebp - 0x28]
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x2c], eax
mov ebx, dword [ebp - 0x2c]
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x34], esi
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov edi, eax
test eax, eax
jne 0x429fa5
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x42a039
cmp edi, esi
jne 0x429f30
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x42a058
lea edi, [esi + esi]
test esi, esi
mov eax, 0xffffffff
cmovs edi, eax
cmp edi, 0x201
jb 0x429f3e
jmp 0x429f50
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x10], 0
cmp edi, eax
ja 0x42a075
lea eax, [ebp - 0x44]
push edi
push ebx
push eax
call fcn.0042c170
add esp, 0xc
movsd xmm0, qword [ebp - 0x44]
mov esi, dword [ebp + 8]
movsd xmm1, qword [ebp - 0x3c]
movsd qword [esi + 8], xmm1
movsd qword [esi], xmm0
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x42a023
add eax, eax
push 2
push eax
push dword [ebp - 0x24]
call fcn.0040ad50
add esp, 0xc
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
mov eax, esi
add esp, 0x438
pop esi
pop edi
pop ebx
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [ebp + 8]
mov byte [esi + 4], 0
mov dword [esi + 8], eax
mov dword [esi], 0x80000000
mov eax, dword [ebp - 0x28]
test eax, eax
jne 0x42a013
jmp 0x42a023
mov dword [ebp - 0x10], 0
push 0x509030
push 0x28
push 0x507148
call fcn.0044b5f0
add esp, 0xc
jmp 0x42a084
push 0x509020
push eax
push edi
call fcn.0044b8c0
add esp, 0xc
ud2
Function at 0x42c9b0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xc
mov dword [ebp - 0x14], ecx
mov ecx, edx
mov edi, edx
call fcn.0042c420
mov ecx, dword [edi + 4]
cmp eax, ecx
ja 0x42cacb
mov edx, dword [edi]
mov ebx, edx
lea esi, [edx + eax]
movzx edx, byte [edi + 8]
mov edi, eax
sub edi, ecx
mov byte [ebp - 0xd], dl
jne 0x42c9f7
mov ebx, dword [ebp - 0x14]
xor edi, edi
movzx edx, byte [ebp - 0xd]
sub ecx, eax
jne 0x42ca73
jmp 0x42ca51
cmp dl, 3
mov dword [ebp - 0x18], esi
jae 0x42ca1f
mov edx, ebx
lea esi, [ecx + ebx - 1]
mov ebx, dword [ebp - 0x14]
mov edi, eax
sub edi, ecx
nop dword [eax]
cmp byte [esi], 0x5c
je 0x42cab5
dec esi
inc edi
jne 0x42ca10
jmp 0x42ca44
mov edx, ebx
lea esi, [ecx + ebx - 1]
nop word cs:[eax + eax]
nop
movzx ebx, byte [esi]
cmp ebx, 0x2f
je 0x42ca55
cmp ebx, 0x5c
je 0x42ca55
dec esi
inc edi
jne 0x42ca30
mov ebx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x18]
xor edi, edi
movzx edx, byte [ebp - 0xd]
sub ecx, eax
jne 0x42ca73
mov al, 0xa
jmp 0x42caa0
mov ebx, dword [ebp - 0x14]
not edi
lea eax, [eax + edi + 1]
cmp eax, ecx
ja 0x42cabf
add edx, eax
mov edi, 1
mov esi, edx
movzx edx, byte [ebp - 0xd]
sub ecx, eax
je 0x42ca51
mov al, 9
cmp ecx, 2
je 0x42ca92
cmp ecx, 1
jne 0x42caa0
cmp byte [esi], 0x2e
jne 0x42caa0
xor eax, eax
cmp dl, 3
setae al
lea eax, [eax + eax*2 + 7]
jmp 0x42caa0
cmp byte [esi], 0x2e
jne 0x42caa0
cmp byte [esi + 1], 0x2e
sete al
xor al, 9
add edi, ecx
mov dword [ebx], edi
mov byte [ebx + 4], al
mov dword [ebx + 8], esi
mov dword [ebx + 0xc], ecx
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret
not edi
lea eax, [eax + edi + 1]
cmp eax, ecx
jbe 0x42ca62
push 0x507e50
push ecx
push eax
call fcn.0044b8a0
push 0x507e40
push ecx
push eax
call fcn.0044b8a0
int3
Function at 0x42fb80
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov eax, 0x1038
call fcn.00449cd0
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x43e2e0
mov esi, ecx
lea eax, [ebp - 0x18]
mov dword [ebp - 0x24], edx
lea edi, [ebp - 0x1044]
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
push 0x1000
push 0
push edi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
xorps xmm0, xmm0
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], 0
movups xmmword [ebp - 0x44], xmm0
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x44]
push 0x435bf0
push eax
push 0x1000
push edi
mov dword [ebp - 0x20], esi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFileEx]
test eax, eax
je 0x42fcd3
mov esi, dword [sym.imp.KERNEL32.dll_SleepEx]
push 1
push 0xffffffffffffffff
call esi
cmp dword [ebp - 0x30], 0
je 0x42fc0a
cmp dword [ebp - 0x2c], 0
jne 0x42fcd9
mov edi, dword [ebp - 0x28]
test edi, edi
je 0x42fcd9
cmp edi, 0x1000
ja 0x42fd15
xor ebx, ebx
nop dword [eax]
mov eax, edi
sub eax, ebx
jb 0x42fcfd
xorps xmm0, xmm0
lea edx, [ebp - 0x30]
lea ecx, [ebp + ebx - 0x1044]
mov dword [ebp - 0x30], 0
movups xmmword [ebp - 0x44], xmm0
mov dword [ebp - 0x34], edx
push 0x435bf0
lea edx, [ebp - 0x44]
push edx
push eax
push ecx
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_WriteFileEx]
test eax, eax
je 0x42fcd3
nop dword [eax]
push 1
push 0xffffffffffffffff
call esi
cmp dword [ebp - 0x30], 0
je 0x42fc80
cmp dword [ebp - 0x2c], 0
jne 0x42fcd9
add ebx, dword [ebp - 0x28]
cmp ebx, edi
jne 0x42fc40
xorps xmm0, xmm0
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], 0
movups xmmword [ebp - 0x44], xmm0
mov dword [ebp - 0x34], eax
push 0x435bf0
lea eax, [ebp - 0x44]
push eax
push 0x1000
lea eax, [ebp - 0x1044]
push eax
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_ReadFileEx]
test eax, eax
jne 0x42fc0a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x20]
call esi
push dword [ebp - 0x24]
call esi
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
add esp, 0x1038
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [ebp - 0x10], 0
push 0x508b70
push edi
push ebx
call fcn.0044b8e0
add esp, 0xc
jmp 0x42fd2f
mov dword [ebp - 0x10], 0
push 0x508b70
push 0x1000
push edi
call fcn.0044b8c0
add esp, 0xc
ud2
Function at 0x433850
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x24
mov esi, ecx
lea ecx, [ebp - 0x24]
push dword [ebp + 8]
call fcn.0043bd60
add esp, 4
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
cmp edx, 0x80000000
je 0x4338a4
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x2c], eax
lea ecx, [ebp - 0x18]
lea edx, [ebp - 0x30]
push 1
call fcn.0043d0a0
add esp, 4
mov edi, dword [ebp - 0x18]
cmp edi, 0x80000000
jne 0x4338b1
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
mov dword [esi], eax
mov dword [esi + 4], ecx
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret
mov ebx, dword [ebp - 0x14]
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x4338ca
mov byte [esi], 4
test edi, edi
jne 0x4338da
jmp 0x4338a9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [esi], 0
mov dword [esi + 4], eax
test edi, edi
je 0x4338a9
add edi, edi
push 2
push edi
push ebx
call fcn.0040ad50
add esp, 0x30
jmp 0x4338ac
Function at 0x433f50
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x48
mov esi, esp
mov dword [esi + 0x30], ebp
mov dword [esi + 0x34], esp
mov dword [esi + 0x40], 0xffffffff
mov dword [esi + 0x3c], 0x43e3e0
mov edi, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
lea ecx, [esi + 0x38]
mov eax, dword fs:[0]
mov dword [esi + 0x38], eax
mov dword fs:[0], ecx
lea ecx, [esi + 0x24]
push ebx
call fcn.0043bd60
add esp, 4
mov edx, dword [esi + 0x24]
mov eax, dword [esi + 0x28]
mov ecx, dword [esi + 0x2c]
cmp edx, 0x80000000
je 0x433fd4
mov dword [esi + 8], edx
mov dword [esi + 0x10], ecx
mov dword [esi + 0xc], eax
lea ecx, [esi + 0x18]
lea edx, [esi + 8]
push 1
call fcn.0043d0a0
add esp, 4
mov eax, dword [esi + 0x18]
cmp eax, 0x80000000
jne 0x433ff3
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x20]
mov dword [edi + 4], eax
mov dword [edi + 8], ecx
mov dword [edi], 1
mov eax, dword [esi + 0x38]
mov dword fs:[0], eax
mov eax, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [esi + 4], eax
mov ecx, dword [esi + 0x1c]
mov eax, dword [ebp + 0x18]
mov edx, dword [ebp + 0x14]
mov dword [esi + 0x40], 0
mov dword [esi], ecx
lea ecx, [esi + 0x24]
push eax
call fcn.0043bd60
add esp, 4
mov edx, dword [esi + 0x24]
mov eax, dword [esi + 0x28]
mov ecx, dword [esi + 0x2c]
cmp edx, 0x80000000
je 0x43404f
mov dword [esi + 8], edx
mov dword [esi + 0x10], ecx
mov dword [esi + 0xc], eax
lea ecx, [esi + 0x18]
lea edx, [esi + 8]
push 1
call fcn.0043d0a0
add esp, 4
mov edi, dword [esi + 0x18]
cmp edi, 0x80000000
jne 0x434080
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x20]
mov edx, dword [ebp + 8]
mov dword [edx + 4], eax
mov dword [edx + 8], ecx
mov dword [edx], 1
mov eax, dword [esi + 4]
mov edi, dword [ebp + 8]
test eax, eax
je 0x433fe0
add eax, eax
push 2
push eax
push dword [esi]
call fcn.0040ad50
add esp, 0xc
jmp 0x433fe0
mov ebx, dword [esi + 0x1c]
mov dword [esi + 0xc], 0
mov dword [esi + 8], 0
push 0
push 0
lea eax, [esi + 8]
push eax
push 0x434130
push ebx
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CopyFileExW]
test eax, eax
je 0x4340c6
mov eax, dword [esi + 8]
mov edx, dword [ebp + 8]
mov ecx, dword [esi + 0xc]
mov dword [edx + 8], eax
mov dword [edx + 0xc], ecx
mov dword [edx], 0
test edi, edi
jne 0x4340e4
jmp 0x43405e
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 0x43405e
add edi, edi
push 2
push edi
push ebx
call fcn.0040ad50
add esp, 0xc
jmp 0x43405e
Function at 0x4344b0
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 0x4344f4
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 0x4344fa
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 0x43452f
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 8]
cmp eax, 0xc0000011
jne 0x43453f
mov dword [esi + 4], 0
jmp 0x434551
cmp eax, 0x103
je 0x43456b
test eax, eax
js 0x43455c
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 0x434554
lea eax, [esp + 4]
mov dword [esp + 0x18], 0x5089d4
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.0042beb0
add esp, 0xc
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
call fcn.00425730
mov ecx, 7
int 0x29
ud2
Function at 0x4345d0
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 0x434614
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 0x43461a
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 0x434656
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 8]
cmp eax, 0x103
je 0x434678
test eax, eax
js 0x434662
mov eax, dword [esp + 0xc]
mov bl, 4
jmp 0x43466b
xor ebx, ebx
push eax
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov dword [esi + 4], eax
mov byte [esi], bl
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
lea eax, [esp + 4]
mov dword [esp + 0x18], 0x5089d4
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.0042beb0
add esp, 0xc
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
call fcn.00425730
mov ecx, 7
int 0x29
ud2
Function at 0x436030
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
cmp dword [edx], 0
mov edi, edx
jne 0x436106
mov ebx, dword [edi + 0xc]
mov esi, ecx
mov edx, dword [ebx]
test edx, edx
jne 0x43605c
mov eax, dword [ebx + 8]
xor edx, edx
lea ecx, [eax + 0xf]
cmp ecx, 0xf
jbe 0x4360d5
mov eax, dword [ebx + 8]
cmp edx, eax
je 0x4360f0
mov ecx, dword [edi + 8]
sub edx, eax
add eax, dword [ebx + 4]
mov dword [ebp - 0x24], 0
lea ebx, [ebp - 0x24]
push ecx
push ebx
push edx
push eax
push dword [edi + 0x10]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x436098
mov eax, dword [ebp - 0x24]
mov ecx, 2
test eax, eax
jne 0x4360b1
jmp 0x4360bd
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
je 0x4360bd
cmp eax, 0x3e5
jne 0x4360c4
mov ecx, 1
xor eax, eax
mov dword [edi], ecx
mov dword [edi + 4], eax
mov word [esi], 0x104
jmp 0x4360cd
mov word [esi], 4
jmp 0x4360cd
mov dword [esi], 0
mov dword [esi + 4], eax
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
mov edx, eax
mov ecx, ebx
push 0x10
call fcn.0044aaa0
add esp, 4
mov edx, dword [ebx]
mov eax, dword [ebx + 8]
cmp edx, eax
jne 0x436067
mov ecx, ebx
push 1
call fcn.0044aaa0
add esp, 4
mov edx, dword [ebx]
mov eax, dword [ebx + 8]
jmp 0x436067
lea edx, [ebp - 0x24]
mov ecx, edi
mov dword [ebp - 0x24], 0
call fcn.0044aa70
int3

Function at 0x436400
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x43e4a0
lea eax, [ebp - 0x18]
mov ecx, dword fs:[0]
test esi, esi
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
je 0x43645c
js 0x4364cd
movzx eax, byte [0x510121]
push 1
push esi
call fcn.0040ad40
add esp, 8
test eax, eax
jne 0x436461
mov eax, 1
push esi
push eax
call fcn.0044b440
mov eax, 1
mov edi, dword [ebp + 8]
push esi
push dword [ebp + 0xc]
mov dword [ebp - 0x20], eax
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov ebx, dword [edi + 0x30]
cmp ebx, dword [edi + 0x28]
jne 0x436494
lea ecx, [edi + 0x28]
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x24], ebx
call fcn.00428ea0
mov ebx, dword [ebp - 0x24]
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0x2c]
mov edx, dword [ebp + 0x10]
mov esi, dword [ebp - 0x20]
lea ecx, [ebx + ebx*4]
inc ebx
mov dword [eax + ecx*4], 0
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], esi
mov dword [eax + ecx*4 + 0xc], edx
mov byte [eax + ecx*4 + 0x10], 0
mov dword [edi + 0x30], ebx
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
xor eax, eax
push esi
push eax
call fcn.0044b440
nop word cs:[eax + eax]
push ebp
sub esp, 0xc
add ebp, 0xc
cmp dword [ebp + 0x10], 0
je 0x4364fd
push 1
push dword [ebp + 0x10]
push dword [ebp - 0x20]
call fcn.0040ad50
add esp, 0xc
add esp, 0xc
pop ebp
ret
Function at 0x439830
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x28
mov esi, ecx
lea ecx, [ebp - 0x28]
push dword [ebp + 8]
call fcn.0043bd60
add esp, 4
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x20]
cmp edx, 0x80000000
jne 0x439869
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x18], 0x80000000
jmp 0x439888
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x2c], ecx
lea ecx, [ebp - 0x18]
lea edx, [ebp - 0x34]
mov dword [ebp - 0x30], eax
call fcn.00433450
mov edi, dword [ebp - 0x18]
cmp edi, 0x80000000
jne 0x43989b
lea ecx, [ebp - 0x18]
call fcn.00425b30
mov dword [esi], 0x80000000
add esp, 0x28
jmp 0x4398d8
mov ebx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x1c], eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4398c0
mov eax, dword [ebp - 0x1c]
mov dword [esi], edi
mov dword [esi + 4], ebx
mov dword [esi + 8], eax
add esp, 0x28
jmp 0x4398d8
test edi, edi
mov dword [esi], 0x80000000
je 0x4398bb
add edi, edi
push 2
push edi
push ebx
call fcn.0040ad50
add esp, 0x34
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x43b0e0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x1c
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x43e500
lea eax, [ebp - 0x18]
mov ebx, dword [ebp + 0x10]
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
movzx eax, byte [0x510121]
push 4
push 8
call fcn.0040ad40
add esp, 8
test eax, eax
je 0x43b1c2
mov esi, eax
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x14]
mov dword [esi], ebx
mov dword [esi + 4], ecx
push 0
push 0x10000
push esi
push 0x43b240
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x43b15d
mov dword [edi + 4], eax
mov byte [edi], 4
jmp 0x43b1af
mov eax, dword [esi]
mov ecx, dword [esi + 4]
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x10], 1
mov dword [ebp - 0x24], eax
push eax
mov dword [ebp - 0x20], ecx
call dword [ecx]
add esp, 4
mov ecx, dword [ebp - 0x20]
mov edi, dword [ebp + 8]
mov eax, dword [ecx + 4]
test eax, eax
je 0x43b194
push dword [ecx + 8]
push eax
push dword [ebp - 0x24]
call fcn.0040ad50
add esp, 0xc
push 4
push 8
push dword [ebp - 0x28]
call fcn.0040ad50
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [edi], 0
mov dword [edi + 4], eax
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
mov eax, edi
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [ebp - 0x10], 0
push 8
push 4
call fcn.0044b460
add esp, 8
ud2
Function at 0x448b10
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov eax, dword [ebp + 8]
test eax, eax
je 0x448b68
lea edi, [edx + eax*2]
xor ebx, ebx
movzx esi, byte [edx + 1]
cmp byte [edx], ch
lea edx, [edx + 2]
lea eax, [ebx + esi]
jne 0x448b60
cmp ebx, eax
ja 0x448bd6
cmp eax, dword [ebp + 0x10]
ja 0x448be2
add ebx, dword [ebp + 0xc]
nop word cs:[eax + eax]
nop
test esi, esi
je 0x448b62
dec esi
cmp byte [ebx], cl
lea ebx, [ebx + 1]
jne 0x448b50
jmp 0x448bbf
ja 0x448b68
cmp edx, edi
mov ebx, eax
jne 0x448b22
mov edx, dword [ebp + 0x18]
test edx, edx
je 0x448bc3
mov esi, dword [ebp + 0x14]
movzx ecx, cx
mov al, 1
add edx, esi
nop dword [eax]
movzx ebx, byte [esi]
lea edi, [esi + 1]
test bl, bl
js 0x448ba0
mov esi, edi
sub ecx, ebx
jns 0x448bb7
jmp 0x448bc5
cmp edi, edx
je 0x448bcc
movzx edi, byte [esi + 1]
and ebx, 0x7f
add esi, 2
shl ebx, 8
or ebx, edi
sub ecx, ebx
js 0x448bc5
xor al, 1
cmp esi, edx
jne 0x448b80
jmp 0x448bc5
xor eax, eax
jmp 0x448bc5
mov al, 1
and al, 1
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x50aa58
call fcn.0044b4e0
push 0x50aa68
push eax
push ebx
call fcn.0044b8e0
push 0x50aa68
push dword [ebp + 0x10]
push eax
call fcn.0044b8c0

Function at 0x44a223
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x44a262
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x44a262
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x44a262
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x44a262
cmp dword [ecx + 0x74], 0xe
jbe 0x44a262
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret