joyce8/EMBER2024-capa huggingface dataset:
Function at 0x430eba
Capabilities:
Parse pe header

Disassembly:
push ebx
push edx
add esp, 4
add ecx, 0x3b184f74
push esp
sub ecx, 0x3b184f74
mov dword [esp], ecx
add esp, 4
mov esi, dword [esp + 4]
add esp, 8
push eax
push ebx
pop eax
add eax, 0x3320127d
mov ebx, eax
pop eax
push esp
sub ebx, 0xf7d5e7ba
sub ebx, 0x82a1846
sub ebx, 0x3320127d
mov dword [esp], ebx
lea ebx, [esi]
push eax
push eax
add esp, 4
mov dword [esp], edx
push ecx
mov dword [esp], 0x2c3a0014
pop edx
add edx, 0xffe5dfbe
add edx, 0x1a2042
add edx, 0xd3c60000
push edx
mov dword [esp], edx
sub ebx, dword [esp]
add esp, 4
add esp, 4
mov edx, dword [esp - 4]
xchg ebx, esi
sub edx, 0x11e97e52
add edx, 0x11e97e52
mov dword [esp - 4], edx
push edx
push eax
push eax
add esp, 4
mov dword [esp], edx
mov ebx, dword [esp + 8]
add esp, 0xc
push edi
pop edi
push ebx
push ebx
add esp, 4
push esi
mov dword [esp], ebx
add esp, 4
mov dword [esp], edi
push edi
add dword [esp], 0x3f483564
pop edi
push esp
sub edi, 0xd37dafbe
sub edi, 0x2c825042
sub edi, 0x3f483564
mov dword [esp], edi
push esi
push ecx
sub ecx, esi
pop ecx
adc esi, 0x20304102
push 0x254216
pop esi
sub esi, 0xffcdffbe
sub esi, 0x320042
sub esi, 0x25420e
push esi
mov edi, dword [esp]
add esp, 4
mov esi, dword [esp]
add esp, 4
mov dword [esp], edi
add esp, 4
mov eax, dword [esp - 4]
mov edi, esp
mov edi, dword [edi]
add esp, 4
mov dword [esi], eax
push eax
push eax
add esp, 4
mov dword [esp], esi
sub esi, 0x57310670
add esi, 0x57310670
mov dword [esp - 4], esi
push esi
add esp, 4
mov dword [esp], eax
push eax
push 0x4171630b
pop eax
sub dword [esp], eax
pop eax
push 0x4171630b
add eax, dword [esp]
add esp, 4
mov dword [esp - 4], eax
push ebx
pop ebx
push eax
push eax
add esp, 4
mov esi, dword [esp + 8]
add esp, 0xc
push esp
mov eax, esp
mov eax, dword [eax]
add esp, 4
mov eax, dword [esp]
add esp, 4
pushal
call 0x430dbf
pop ebx
mov eax, 0x500311d3
sub eax, 0x50031032
add eax, ebx
xor dword [eax], 0x78c9aed2
call 0x430eba
jmp 0x430e9c
call fcn.00430ddc
push 0x86abc981
push 0x5ac18765
xor eax, eax
js 0x430f20
insb byte es:[edi], dx
imul esi, dword [eax + eax + 0x61], 0xa6e9
add byte [ebp - 0x75], dl
in al, dx
mov ebx, 0x77000000
add ebx, 0x10000
cmp ebx, 0x80000000
jne 0x430ed5
mov ebx, 0xbff00000
call fcn.00430f19
cmp eax, 0
je 0x430ec2
cmp word [ebx], 0x5a4d
jne 0x430ec2
mov eax, dword [ebx + 0x3c]
add eax, ebx
cmp word [eax], 0x4550
jne 0x430ec2
test byte [eax + 0x17], 0x20
je 0x430ec2
mov eax, dword [eax + 0x78]
add eax, ebx
mov edx, dword [eax + 0xc]
add edx, ebx
cmp dword [edx], 0x4e52454b
jne 0x430ec2
cmp dword [edx + 4], 0x32334c45
jne 0x430ec2
mov eax, ebx
mov esp, ebp
pop ebp
ret
mov edx, 0x500311b8
sub edx, 0x50031192
add eax, edx
push eax
push dword fs:[0]
mov dword fs:[0], esp
mov ecx, dword [ebx]
mov ecx, 1
jmp 0x430f52
pop dword fs:[0]
pop eax
mov dword [esp + 0x1c], ecx
popal
ret
Function at 0x408f90
Capabilities:
Set current directory

Disassembly:
push 0xffffffffffffffff
push 0x4371db
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x114
mov ecx, dword [0x448e94]
push esi
lea eax, [esp + 4]
push edi
push eax
call fcn.0040b2b0
mov esi, eax
mov eax, dword [esi + 8]
mov edx, dword [esi]
xor edi, edi
push eax
mov ecx, esi
mov dword [esp + 0x128], edi
call dword [edx + 4]
mov edx, dword [esp + 0x12c]
mov esi, dword [esi + 4]
lea ecx, [esp + 0x18]
push 0x104
push ecx
push edx
push esi
call fcn.00408e70
mov esi, eax
mov eax, dword [esp + 0x1c]
add esp, 0x10
cmp eax, edi
mov dword [esp + 8], 0x43a2a0
mov dword [esp + 0xc], edi
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], edi
je 0x409018
push eax
call fcn.0041a070
add esp, 4
cmp esi, edi
jbe 0x40902f
cmp esi, 0x104
jae 0x40902f
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov ecx, dword [esp + 0x11c]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x120
ret
Function at 0x40a270
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x437377
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
push esi
mov dword [esp + 0xc], 0
call fcn.0040a260
mov ebx, eax
test ebx, ebx
jne 0x40a2c8
mov eax, dword [esp + 0x3c]
mov esi, dword [esp + 0x34]
push 0xffffffffffffffff
push eax
mov ecx, esi
call fcn.00401b90
mov dword [esi], 0x43a2c4
mov eax, esi
pop esi
pop ebx
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
add esp, 0x28
ret
push ebp
push edi
push 0
push 0
lea ecx, [esp + 0x24]
call fcn.00404ee0
push 0
push 0
lea ecx, [esp + 0x24]
mov dword [esp + 0x3c], 1
mov dword [esp + 0x24], 0x43a2d4
call fcn.004019d0
mov dword [esp + 0x1c], 0x43a2c4
mov edi, dword [esp + 0x40]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x18]
push ecx
push 0
push edx
push 0
push edi
push ebx
mov dword [esp + 0x4c], 2
call ebp
mov esi, eax
test esi, esi
jne 0x40a37e
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x1c]
push eax
lea ecx, [esp + 0x20]
call dword [edx + 4]
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x1c]
push eax
lea ecx, [esp + 0x20]
call dword [edx + 4]
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x10]
push eax
lea edx, [esp + 0x1c]
push ecx
push edx
push esi
push edi
push ebx
call ebp
mov edx, dword [esp + 0x1c]
mov esi, eax
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x1c]
push eax
call dword [edx + 4]
mov edi, dword [esp + 0x20]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x24], ecx
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop ebp
test esi, esi
mov esi, dword [esp + 0x34]
push 0
push 0
mov ecx, esi
jne 0x40a3e3
call fcn.00404ee0
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
push eax
push ecx
mov ecx, esi
mov byte [esp + 0x34], 3
mov dword [esi], 0x43a2d4
call fcn.004019d0
mov dword [esi], 0x43a2c4
mov dword [esp + 0xc], 1
mov dword [esp + 0x14], 0x43a2a0
lea ecx, [esp + 0x14]
mov dword [esp + 0x2c], 4
call fcn.00401f00
test eax, eax
je 0x40a448
jmp 0x40a43f
call fcn.00404ee0
mov ecx, dword [esp + 0x3c]
xor eax, eax
test ecx, ecx
mov byte [esp + 0x2c], 5
mov dword [esi], 0x43a2d4
je 0x40a40b
cmp byte [ecx], 0
je 0x40a40b
mov dl, byte [eax + ecx + 1]
inc eax
test dl, dl
jne 0x40a402
push eax
push ecx
mov ecx, esi
call fcn.004019d0
mov dword [esi], 0x43a2c4
mov dword [esp + 0xc], 1
mov dword [esp + 0x14], 0x43a2a0
lea ecx, [esp + 0x14]
mov dword [esp + 0x2c], 6
call fcn.00401f00
test eax, eax
je 0x40a448
push eax
call fcn.0041a070
add esp, 4
mov ecx, dword [esp + 0x24]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x28
ret
Function at 0x40a460
Capabilities:
Delete registry value
Set registry value

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x10]
test edi, edi
jne 0x40a497
call fcn.0040a260
mov esi, eax
test esi, esi
jne 0x40a478
pop edi
pop esi
ret
mov eax, dword [esp + 0xc]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push esi
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test edi, edi
pop edi
pop esi
sete al
ret
call fcn.0040a260
mov esi, eax
test esi, esi
jne 0x40a4a5
pop edi
pop esi
ret
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [esp + 0xc]
inc eax
push eax
push edi
push 1
push 0
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push esi
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test edi, edi
pop edi
pop esi
sete al
ret
Function at 0x40a7f0
Capabilities:
Create thread

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
mov ebp, dword [esp + 0x14]
push esi
lea eax, [esp + 0x20]
push edi
mov edi, dword [esp + 0x24]
push eax
push 0x10000
push edi
push ebx
push ebp
push 0
mov dword [esp + 0x28], 0
call fcn.0041c2e2
mov esi, eax
add esp, 0x18
test esi, esi
jne 0x40a83e
lea ecx, [esp + 0x24]
push ecx
push eax
push edi
push ebx
push ebp
push eax
call fcn.0041c2e2
mov esi, eax
add esp, 0x18
test esi, esi
je 0x40a864
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea edx, [esp + 0x10]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push edi
call ebx
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x40bbc0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0xc
cmp eax, 1
push ebp
mov ebp, ecx
jge 0x40bbf4
lea eax, [esp + 0x18]
lea ecx, [esp + 4]
push eax
mov dword [esp + 0x1c], str.Key_Length_should_be_at_least_1
call fcn.0041c5a3
lea ecx, [esp + 4]
push 0x43f9a0
push ecx
call fcn.0041c692
push ebx
push esi
xor ecx, ecx
push edi
xor eax, eax
lea ebx, [ebp + 1]
mov byte [ebx + eax], al
inc eax
cmp eax, 0x100
jl 0x40bbfe
mov esi, dword [esp + 0x20]
or edi, 0xffffffff
mov byte [ebp + 0x201], cl
mov byte [ebp + 0x202], cl
mov ecx, ebx
sub edi, ebp
xor edx, edx
mov dword [ebp + 0x204], ecx
mov dl, byte [ebp + 0x201]
mov al, byte [edx + esi]
mov dl, byte [ecx]
add al, dl
mov dl, byte [ebp + 0x202]
add dl, al
mov al, dl
mov byte [ebp + 0x202], dl
and eax, 0xff
lea edx, [eax + ebp + 1]
mov dword [ebp + 0x208], edx
mov al, byte [ecx]
mov byte [ebp + 0x20c], al
mov al, byte [edx]
mov byte [ecx], al
mov edx, dword [ebp + 0x208]
mov al, byte [ebp + 0x20c]
mov byte [edx], al
xor eax, eax
mov al, byte [ebp + 0x201]
inc eax
cdq
idiv dword [esp + 0x24]
inc ecx
mov byte [ebp + 0x201], dl
lea edx, [edi + ecx]
cmp edx, 0x100
jl 0x40bc20
lea edi, [ebp + 0x101]
mov ecx, 0x40
mov esi, ebx
xor al, al
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
mov byte [ebp + 0x201], al
mov byte [ebp + 0x202], al
mov byte [ebp], 1
pop ebx
pop ebp
add esp, 0xc
ret 8

Function at 0x40bfe0
Capabilities:
Hash data using sha256

Disassembly:
mov edx, 0x43a444
push esi
push edi
mov eax, ecx
sub edx, ecx
mov esi, 8
mov edi, dword [edx + eax]
mov dword [eax], edi
add eax, 4
dec esi
jne 0x40bff0
xor eax, eax
pop edi
mov dword [ecx + 0x20], eax
mov dword [ecx + 0x24], eax
mov byte [ecx + 0x68], al
pop esi
ret
Function at 0x40efe0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x43775d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x13c
push ebx
push ebp
push esi
lea eax, [esp + 0x44]
push edi
push eax
mov esi, ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov edx, dword [esi + 0x34]
add esi, 0x34
xor ebp, ebp
mov ecx, esi
push ebp
call dword [edx + 4]
lea eax, [esp + 0x48]
push 0xffffffffffffffff
push eax
lea ecx, [esp + 0x18]
call fcn.004050c0
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
push ecx
push edx
mov ecx, esi
mov dword [esp + 0x15c], ebp
call fcn.004019d0
lea eax, [esp + 0x28]
push 1
push eax
mov ecx, esi
mov dword [esp + 0x15c], 0xffffffff
call fcn.00405910
mov edi, eax
push 0xffffffffffffffff
push 0x444ae8
lea ecx, [esp + 0x18]
mov dword [esp + 0x15c], 1
call fcn.004050c0
lea ecx, [esp + 0x10]
mov byte [esp + 0x154], 2
push ecx
mov ecx, edi
call fcn.0040b490
cmp eax, ebp
mov byte [esp + 0x154], 1
je 0x40f114
lea edx, [esp + 0x38]
push 1
push edx
mov ecx, esi
call fcn.00405910
mov edi, eax
push 0xffffffffffffffff
push 0x444ae4
lea ecx, [esp + 0x18]
mov byte [esp + 0x15c], 3
call fcn.004050c0
lea eax, [esp + 0x10]
mov ecx, edi
push eax
mov byte [esp + 0x158], 4
call fcn.0040b490
cmp eax, ebp
mov dword [esp + 0x38], 0x43a2a0
setne bl
lea ecx, [esp + 0x38]
mov byte [esp + 0x154], 5
call fcn.00401f00
cmp eax, ebp
je 0x40f104
push eax
call fcn.0041a070
add esp, 4
test bl, bl
mov dword [esp + 0x38], 0x43a294
je 0x40f114
mov bl, 1
jmp 0x40f116
xor bl, bl
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x154], 0xffffffff
cmp eax, ebp
mov dword [esp + 0x28], 0x43a2a0
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x30], ebp
mov dword [esp + 0x34], ebp
je 0x40f146
push eax
call fcn.0041a070
add esp, 4
test bl, bl
je 0x40f19d
push 0xffffffffffffffff
push 0x444ae4
lea ecx, [esp + 0x24]
call fcn.00401df0
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
cmp eax, 0xffffffff
mov dword [esp + 0x1c], 0x43a300
jne 0x40f189
xor eax, eax
cmp ecx, ebp
mov dword [esp + 0x24], eax
je 0x40f189
cmp byte [ecx], 0
je 0x40f189
inc eax
mov dword [esp + 0x24], eax
cmp byte [ecx + eax], 0
jne 0x40f17e
push eax
push ecx
mov ecx, esi
mov dword [esp + 0x15c], 6
call fcn.004019d0
mov ecx, dword [esp + 0x14c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x148
ret
Function at 0x412430
Capabilities:
Get file size
Read file via mapping

Disassembly:
push 0xffffffffffffffff
push 0x437f51
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x11c
push ebx
push ebp
push esi
push edi
mov edi, dword [ecx + 0x54]
lea eax, [esp + 0x28]
push 0x104
push eax
push 0
mov dword [esp + 0x30], ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0
push 0x80
push 3
push 0
push 3
lea ecx, [esp + 0x3c]
push 0x80000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0
push 0
push 0
push 2
push 0
push ebp
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
push esi
push 0
push 0
push 4
push eax
mov dword [esp + 0x34], eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebx, eax
add edi, 0xfffffffc
push 0
push 0
mov esi, dword [edi + ebx]
lea ecx, [esp + 0x18]
call fcn.00401df0
xor eax, eax
lea ecx, [esp + 0x10]
push eax
push eax
mov dword [esp + 0x13c], eax
mov dword [esp + 0x18], 0x43a2a0
mov dword [esp + 0x24], eax
call fcn.004019d0
push 0
push 0
lea ecx, [esp + 0x18]
mov dword [esp + 0x13c], 1
mov dword [esp + 0x18], 0x43a2d4
call fcn.004019d0
mov dword [esp + 0x10], 0x43a2c4
mov eax, dword [esp + 0x1c]
lea ecx, [esi + 1]
cmp ecx, eax
mov dword [esp + 0x134], 2
jle 0x412564
cmp eax, 8
jge 0x412536
mov eax, 8
mov dword [esp + 0x1c], eax
cmp ecx, eax
jle 0x412552
add eax, eax
cmp ecx, eax
mov dword [esp + 0x1c], eax
jle 0x412552
lea eax, [ecx + 0xb]
mov edx, eax
and edx, 7
sub eax, edx
mov dword [esp + 0x1c], eax
push eax
mov eax, dword [esp + 0x18]
push eax
call fcn.0041a181
add esp, 8
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x14]
push esi
mov byte [ecx + esi], 0
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x14]
mov dword [esp + 0x1c], esi
call dword [edx + 4]
mov eax, dword [esp + 0x14]
sub edi, esi
add edi, ebx
push esi
push edi
push eax
call fcn.0041caa0
mov edx, dword [esp + 0x30]
lea ecx, [esp + 0x1c]
push ecx
push edx
call fcn.00412b60
add esp, 0x14
push ebx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [esp + 0x20]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
push ebp
call esi
mov eax, dword [esp + 0x14]
xor ecx, ecx
pop edi
pop esi
pop ebp
cmp eax, ecx
mov dword [esp + 4], 0x43a2a0
mov dword [esp + 8], ecx
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], ecx
pop ebx
je 0x4125e0
push eax
call fcn.0041a070
add esp, 4
mov ecx, dword [esp + 0x11c]
mov dword fs:[0], ecx
add esp, 0x128
ret
Function at 0x412aa0
Capabilities:
Get file size

Disassembly:
sub esp, 0x12c
push ebx
push ebp
push esi
mov ebx, ecx
push edi
mov ecx, 5
mov esi, 0x444c9c
lea edi, [esp + 0x20]
rep movsd dword es:[edi], dword [esi]
lea eax, [esp + 0x20]
push 0x16
push eax
movsw word es:[edi], word [esi]
call fcn.004095a0
mov ebp, dword [eax]
add esp, 8
lea ecx, [esp + 0x38]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0
push 0x80
push 3
push 0
push 3
lea edx, [esp + 0x4c]
push 0x80000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x10]
call fcn.00414bf0
mov ecx, dword [eax + 8]
mov eax, dword [esp + 0x14]
sub esi, ecx
xor ecx, ecx
sub esi, ebp
pop edi
sub esi, 0x10
cmp eax, ecx
mov dword [ebx + 0x54], esi
pop esi
pop ebp
mov dword [esp + 4], 0x43a2a0
mov dword [esp + 8], ecx
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], ecx
pop ebx
je 0x412b53
push eax
call fcn.0041a070
add esp, 4
add esp, 0x12c
ret
Function at 0x4139d0
Capabilities:
Access peb ldr_data
Get file size
Read file via mapping

Disassembly:
push 0xffffffffffffffff
push 0x4381ab
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x190
push ebx
push ebp
push esi
push edi
lea ecx, [esp + 0x10]
call fcn.00414bf0
mov eax, dword [eax + 8]
mov edx, dword [esp + 0x1b0]
add edx, eax
mov eax, dword [esp + 0x14]
xor ebx, ebx
mov dword [esp + 0x1b0], edx
cmp eax, ebx
mov dword [esp + 0x10], 0x43a2a0
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
je 0x413a32
push eax
call fcn.0041a070
add esp, 4
lea eax, [esp + 0x9c]
push 0x104
push eax
push ebx
mov dword [esp + 0x1c], 0x43a294
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push ebx
push 0x80
push 3
push ebx
push 3
lea ecx, [esp + 0xb0]
push 0x80000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push ebx
push ebx
push ebx
push 2
push ebx
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
push esi
push ebx
mov ebp, eax
push ebx
push 4
push ebp
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ecx, dword [esp + 0x1b0]
mov ebx, eax
sub esi, ecx
lea ecx, [esp + 0x40]
sub esi, 0x10
call fcn.00426ab0
push esi
push ebx
lea ecx, [esp + 0x48]
mov dword [esp + 0x1b0], 0
call fcn.00426bb0
mov edx, dword [esp + 0x1b0]
add esi, ebx
push edx
lea ecx, [esp + 0x44]
lea eax, [esi + 0x10]
push eax
call fcn.00426bb0
lea ecx, [esp + 0x30]
push ecx
lea ecx, [esp + 0x44]
call fcn.00426b40
mov edx, dword [esi]
mov eax, dword [esi + 4]
mov ecx, dword [esi + 8]
mov dword [esp + 0x20], edx
mov edx, dword [esi + 0xc]
push ebx
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], edx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call esi
push edi
call esi
mov ecx, 4
lea edi, [esp + 0x30]
lea esi, [esp + 0x20]
xor eax, eax
repe cmpsd dword [esi], dword es:[edi]
pop edi
pop esi
sete al
pop ebp
mov ecx, dword [esp + 0x194]
pop ebx
mov dword fs:[0], ecx
add esp, 0x19c
ret
Function at 0x414bf0
Capabilities:
Get file size
Read file via mapping

Disassembly:
push 0xffffffffffffffff
push 0x4381f6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x124
push ebx
push ebp
push esi
xor ebx, ebx
push edi
mov ebp, ecx
push ebx
push ebx
mov dword [esp + 0x20], ebp
call fcn.00401df0
push ebx
push ebx
mov ecx, ebp
mov dword [esp + 0x144], ebx
mov dword [ebp], 0x43a2a0
mov dword [ebp + 0xc], ebx
call fcn.004019d0
push ebx
push ebx
mov ecx, ebp
mov dword [esp + 0x144], 1
mov dword [ebp], 0x43a2d4
call fcn.004019d0
mov edi, 0x444dc0
or ecx, 0xffffffff
xor eax, eax
mov dword [ebp], 0x43a47c
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x11]
mov eax, ecx
mov esi, edi
mov edi, edx
mov byte [esp + 0x10], 0x50
shr ecx, 2
mov byte [esp + 0x11], bl
mov byte [esp + 0x12], bl
mov byte [esp + 0x13], bl
mov byte [esp + 0x14], bl
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push 0x104
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x34]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push ebx
push 0x80
push 3
push ebx
push 3
lea edx, [esp + 0x44]
push 0x80000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
push ebx
push edi
mov dword [esp + 0x20], edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push ebx
push ebx
push ebx
push 2
push ebx
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
push esi
push ebx
push ebx
push 4
push eax
mov dword [esp + 0x30], eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ecx, eax
mov eax, 0x51eb851f
mov dword [esp + 0x20], ecx
mul esi
shr edx, 5
cmp edx, 0xc800
jae 0x414d0b
mov edx, 0xc800
mov eax, esi
sub eax, edx
sub eax, 0x16
jns 0x414d16
xor eax, eax
sub esi, eax
add ecx, eax
mov dword [esp + 0x28], ecx
lea edi, [esi - 0x16]
cmp edi, ebx
jl 0x414dae
lea eax, [ecx + edi]
mov edx, dword [eax]
lea ecx, [esp + 0x10]
cmp edx, dword [ecx]
je 0x414d3e
dec edi
dec eax
cmp edi, ebx
jge 0x414d2c
jmp 0x414dae
mov ecx, dword [ebp + 0xc]
sub esi, edi
sub esi, 0x16
lea eax, [esi + 1]
cmp eax, ecx
jle 0x414d8a
cmp ecx, 8
jge 0x414d59
mov dword [ebp + 0xc], 8
mov ecx, dword [ebp + 0xc]
cmp eax, ecx
jle 0x414d65
add ecx, ecx
mov dword [ebp + 0xc], ecx
cmp eax, dword [ebp + 0xc]
jle 0x414d77
add eax, 0xb
mov edx, eax
and edx, 7
sub eax, edx
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 4]
push eax
push ecx
call fcn.0041a181
add esp, 8
mov dword [ebp + 4], eax
mov edx, dword [ebp + 4]
mov eax, dword [esp + 0x28]
mov ecx, esi
mov byte [esi + edx], bl
mov dword [ebp + 8], esi
mov edx, ecx
lea esi, [eax + edi + 0x16]
mov edi, dword [ebp + 4]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [esp + 0x1c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [esp + 0x18]
push edx
call esi
mov ecx, dword [esp + 0x134]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x130
ret
Function at 0x417040
Capabilities:
Check os version

Disassembly:
sub esp, 0x94
lea eax, [esp]
mov dword [esp], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x417077
cmp dword [esp + 0x10], 2
jne 0x417077
cmp dword [esp + 4], 6
jb 0x417077
mov eax, 1
add esp, 0x94
ret
xor eax, eax
add esp, 0x94
ret

Function at 0x4176e0
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
push eax
mov eax, dword [esp + 0x10]
and eax, 0xff
push ecx
mov edx, eax
shl edx, 5
sub edx, eax
push edx
call fcn.00417690
mov dword [esp + 0x14], eax
add esp, 0xc
xor al, al
xor ecx, ecx
mov dl, byte [esp + ecx + 8]
xor al, dl
inc ecx
cmp ecx, 4
jb 0x41770b
ret
Function at 0x417fc0
Capabilities:
Write file on windows

Disassembly:
mov al, byte [0x448fa8]
sub esp, 8
test al, 1
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0x18]
jne 0x417fe9
or al, 1
push edi
mov byte [0x448fa8], al
mov eax, dword [esi]
push esi
call dword [eax + 0x7c]
mov dword [0x448fa4], eax
mov cl, byte [0x448fa8]
mov al, 2
test al, cl
jne 0x41801c
mov edx, dword [0x448fa4]
or cl, al
push 0x444798
mov byte [0x448fa8], cl
mov ecx, dword [esi]
push 0x444070
push edx
push esi
call dword [ecx + 0x178]
mov dword [0x448fa0], eax
mov ecx, dword [0x448fa0]
mov eax, dword [esi]
push ecx
push edi
push esi
call dword [eax + 0x194]
lea ecx, [esp + 0x14]
push 0
mov dword [esp + 0x10], edx
mov dl, byte [esp + 0x20]
mov byte [esp + 0x1c], dl
push ecx
lea edx, [esp + 0x20]
push 1
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
add esp, 8
ret 0xc

Function at 0x418670
Capabilities:
Create thread

Disassembly:
push 0
push 0
push ecx
push 0x4185a0
push 0
push 0
call fcn.0041c2e2
add esp, 0x18
ret
Function at 0x427040
Capabilities:
Create thread

Disassembly:
sub esp, 0xc
push esi
push edi
push 0x14
call fcn.0041b1d2
mov esi, eax
xor edi, edi
add esp, 4
cmp esi, edi
je 0x42708a
push edi
push edi
lea eax, [esp + 0x10]
push 1
push eax
mov dword [esi], 0x43b358
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov dword [esi + 0x10], edi
mov dword [esp + 0x18], 0xc
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [esi + 0xc], eax
jmp 0x42708c
xor esi, esi
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
push esi
push edi
mov dword [0x449354], esi
push 0x426f90
mov dword [esi + 8], ecx
mov dword [esi + 4], edx
call fcn.00434f31
mov eax, dword [esi + 0xc]
add esp, 0xc
push 0x7530
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, esi
pop edi
pop esi
add esp, 0xc
ret