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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [fcn.10010b60]
mov dword [ebp - 8], eax
jmp 0x10010b98
mov eax, dword [ebp - 8]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
sub eax, 0x1000
and eax, 0xfffff000
mov dword [ebp - 8], eax
mov eax, dword [0x10048b84]
sub eax, 0x362
mov dword [0x10048b84], eax
jmp 0x10010bb9
mov eax, dword [ebp - 8]
movzx eax, word [eax]
cmp eax, 0x5a4d
jne 0x10010b71
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 8]
mov ecx, dword [ecx + 0x3c]
cmp dword [eax + ecx], 0x4550
je 0x10010bc1
jmp 0x10010bc9
mov al, 1
test al, 1
jne 0x10010b98
jmp 0x10010bcb
mov eax, dword [ebp - 8]
mov dword [ebp - 4], eax
jmp 0x10010bd4
jmp 0x10010b71
mov dword [ebp - 4], 0
jmp 0x10010bd4
mov eax, dword [ebp - 4]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
add esp, 0x10
pop ebp
ret

Function at 0x10010bf0
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0x10], 0
mov eax, dword fs:[0x30]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [0x10048b84], 0x252d
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x10]
mov eax, dword [eax + 0x3c]
mov dword [ebp - 4], eax
mov eax, dword [0x10048b88]
add eax, 0x253
mov dword [0x10048b84], eax
mov dword [ebp - 8], 0
jmp 0x10010c96
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
movzx eax, word [eax + ecx*2 - 0x18]
cmp eax, 0x6f
je 0x10010cbf
jmp 0x10010d63
mov dword [0x10048b84], 0xbea
jmp 0x10010cb2
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
movzx eax, word [eax + ecx*2 - 0x10]
cmp eax, 0x6c
je 0x10010d2a
jmp 0x10010d5b
mov dword [0x10048b88], 0x1ac
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
movzx eax, word [eax + ecx*2 - 0x1a]
cmp eax, 0x6c
je 0x10010c37
jmp 0x10010d65
cmp dword [ebp - 8], 0x104
jge 0x10010c75
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
movzx eax, word [eax + ecx*2]
cmp eax, 0
jne 0x10010c4e
jmp 0x10010c75
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
jmp 0x10010c96
mov dword [0x10048b88], 0x198f
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
movzx eax, word [eax + ecx*2 - 0x16]
cmp eax, 0x61
jne 0x10010d61
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
movzx eax, word [ecx + eax*2 - 0x14]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, 0x64
jne 0x10010d5f
mov eax, dword [0x10048b84]
sub eax, 0x1325
mov dword [0x10048b84], eax
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
mov dx, word [eax + ecx*2 - 0x12]
mov word [ebp - 0x16], dx
mov ax, word [ebp - 0x16]
movzx ecx, ax
cmp ecx, 0x64
je 0x10010c5a
jmp 0x10010d5d
mov dword [0x10048b84], 0x23b8
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
movzx eax, word [eax + ecx*2 - 0xe]
cmp eax, 0x6c
jne 0x10010d59
mov dword [0x10048b88], 0xc8
mov dword [ebp - 0xc], 1
jmp 0x10010d6e
jmp 0x10010d5b
jmp 0x10010d5d
jmp 0x10010d5f
jmp 0x10010d61
jmp 0x10010d63
jmp 0x10010d65
mov dword [ebp - 0xc], 0
jmp 0x10010d6e
mov eax, dword [ebp - 0xc]
add esp, 0x18
pop ebp
ret
Function at 0x408a30
Capabilities:
Set current directory

Disassembly:
push 0xffffffffffffffff
push 0x4376bb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x114
mov ecx, dword [0x448f54]
push esi
lea eax, [esp + 4]
push edi
push eax
call fcn.0040b090
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.00408910
mov esi, eax
mov eax, dword [esp + 0x1c]
add esp, 0x10
cmp eax, edi
mov dword [esp + 8], 0x43a2d4
mov dword [esp + 0xc], edi
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], edi
je 0x408ab8
push eax
call fcn.0041a6b3
add esp, 4
cmp esi, edi
jbe 0x408acf
cmp esi, 0x104
jae 0x408acf
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 0x409e50
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x437857
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.00409e40
mov ebx, eax
test ebx, ebx
jne 0x409ea8
mov eax, dword [esp + 0x3c]
mov esi, dword [esp + 0x34]
push 0xffffffffffffffff
push eax
mov ecx, esi
call fcn.004044f0
mov dword [esi], 0x43a2e4
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.00404250
push 0
push 0
lea ecx, [esp + 0x24]
mov dword [esp + 0x3c], 1
mov dword [esp + 0x24], 0x43a324
call fcn.004043d0
mov dword [esp + 0x1c], 0x43a2e4
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 0x409f5e
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 0x409fc3
call fcn.00404250
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], 0x43a324
call fcn.004043d0
mov dword [esi], 0x43a2e4
mov dword [esp + 0xc], 1
mov dword [esp + 0x14], 0x43a2d4
lea ecx, [esp + 0x14]
mov dword [esp + 0x2c], 4
call fcn.00416b30
test eax, eax
je 0x40a028
jmp 0x40a01f
call fcn.00404250
mov ecx, dword [esp + 0x3c]
xor eax, eax
test ecx, ecx
mov byte [esp + 0x2c], 5
mov dword [esi], 0x43a324
je 0x409feb
cmp byte [ecx], 0
je 0x409feb
mov dl, byte [eax + ecx + 1]
inc eax
test dl, dl
jne 0x409fe2
push eax
push ecx
mov ecx, esi
call fcn.004043d0
mov dword [esi], 0x43a2e4
mov dword [esp + 0xc], 1
mov dword [esp + 0x14], 0x43a2d4
lea ecx, [esp + 0x14]
mov dword [esp + 0x2c], 6
call fcn.00416b30
test eax, eax
je 0x40a028
push eax
call fcn.0041a6b3
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 0x40a040
Capabilities:
Delete registry value
Set registry value

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x10]
test edi, edi
jne 0x40a077
call fcn.00409e40
mov esi, eax
test esi, esi
jne 0x40a058
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.00409e40
mov esi, eax
test esi, esi
jne 0x40a085
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 0x40a3d0
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.0041c872
mov esi, eax
add esp, 0x18
test esi, esi
jne 0x40a41e
lea ecx, [esp + 0x24]
push ecx
push eax
push edi
push ebx
push ebp
push eax
call fcn.0041c872
mov esi, eax
add esp, 0x18
test esi, esi
je 0x40a444
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 0x40b950
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0xc
cmp eax, 1
push ebp
mov ebp, ecx
jge 0x40b984
lea eax, [esp + 0x18]
lea ecx, [esp + 4]
push eax
mov dword [esp + 0x1c], str.Key_Length_should_be_at_least_1
call fcn.0041c9fa
lea ecx, [esp + 4]
push 0x43fa88
push ecx
call fcn.0041cae9
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 0x40b98e
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 0x40b9b0
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 0x40bd70
Capabilities:
Hash data using sha256

Disassembly:
mov edx, 0x43a470
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 0x40bd80
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 0x40ec40
Capabilities:
Create thread

Disassembly:
sub esp, 0xc
push esi
push edi
push 0x18
call fcn.0041b75a
mov esi, eax
xor edi, edi
add esp, 4
cmp esi, edi
je 0x40ec87
push edi
push edi
lea eax, [esp + 0x10]
push 1
push eax
mov dword [esi], 0x43a490
mov dword [esi + 8], edi
mov dword [esi + 0x14], 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 + 4], eax
jmp 0x40ec89
xor esi, esi
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
push esi
push edi
push 0x40e850
mov dword [esi + 0xc], ecx
mov dword [esi + 0x10], edx
call fcn.0041cb23
mov eax, dword [esi + 4]
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
Function at 0x40f330
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x437c9d
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.00404620
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
push ecx
push edx
mov ecx, esi
mov dword [esp + 0x15c], ebp
call fcn.004043d0
lea eax, [esp + 0x28]
push 1
push eax
mov ecx, esi
mov dword [esp + 0x15c], 0xffffffff
call fcn.00405150
mov edi, eax
push 0xffffffffffffffff
push 0x444bb4
lea ecx, [esp + 0x18]
mov dword [esp + 0x15c], 1
call fcn.00404620
lea ecx, [esp + 0x10]
mov byte [esp + 0x154], 2
push ecx
mov ecx, edi
call fcn.0040b270
cmp eax, ebp
mov byte [esp + 0x154], 1
je 0x40f464
lea edx, [esp + 0x38]
push 1
push edx
mov ecx, esi
call fcn.00405150
mov edi, eax
push 0xffffffffffffffff
push 0x444bb0
lea ecx, [esp + 0x18]
mov byte [esp + 0x15c], 3
call fcn.00404620
lea eax, [esp + 0x10]
mov ecx, edi
push eax
mov byte [esp + 0x158], 4
call fcn.0040b270
cmp eax, ebp
mov dword [esp + 0x38], 0x43a2d4
setne bl
lea ecx, [esp + 0x38]
mov byte [esp + 0x154], 5
call fcn.00416b30
cmp eax, ebp
je 0x40f454
push eax
call fcn.0041a6b3
add esp, 4
test bl, bl
mov dword [esp + 0x38], 0x43a2d0
je 0x40f464
mov bl, 1
jmp 0x40f466
xor bl, bl
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x154], 0xffffffff
cmp eax, ebp
mov dword [esp + 0x28], 0x43a2d4
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x30], ebp
mov dword [esp + 0x34], ebp
je 0x40f496
push eax
call fcn.0041a6b3
add esp, 4
test bl, bl
je 0x40f4ed
push 0xffffffffffffffff
push 0x444bb0
lea ecx, [esp + 0x24]
call fcn.00404ae0
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
cmp eax, 0xffffffff
mov dword [esp + 0x1c], 0x43a32c
jne 0x40f4d9
xor eax, eax
cmp ecx, ebp
mov dword [esp + 0x24], eax
je 0x40f4d9
cmp byte [ecx], 0
je 0x40f4d9
inc eax
mov dword [esp + 0x24], eax
cmp byte [ecx + eax], 0
jne 0x40f4ce
push eax
push ecx
mov ecx, esi
mov dword [esp + 0x15c], 6
call fcn.004043d0
mov ecx, dword [esp + 0x14c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x148
ret
Function at 0x412780
Capabilities:
Get file size
Read file via mapping

Disassembly:
push 0xffffffffffffffff
push 0x438491
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.00404ae0
xor eax, eax
lea ecx, [esp + 0x10]
push eax
push eax
mov dword [esp + 0x13c], eax
mov dword [esp + 0x18], 0x43a2d4
mov dword [esp + 0x24], eax
call fcn.004043d0
push 0
push 0
lea ecx, [esp + 0x18]
mov dword [esp + 0x13c], 1
mov dword [esp + 0x18], 0x43a324
call fcn.004043d0
mov dword [esp + 0x10], 0x43a2e4
mov eax, dword [esp + 0x1c]
lea ecx, [esi + 1]
cmp ecx, eax
mov dword [esp + 0x134], 2
jle 0x4128b4
cmp eax, 8
jge 0x412886
mov eax, 8
mov dword [esp + 0x1c], eax
cmp ecx, eax
jle 0x4128a2
add eax, eax
cmp ecx, eax
mov dword [esp + 0x1c], eax
jle 0x4128a2
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.0041abc3
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.0041d070
mov edx, dword [esp + 0x30]
lea ecx, [esp + 0x1c]
push ecx
push edx
call fcn.00412eb0
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], 0x43a2d4
mov dword [esp + 8], ecx
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], ecx
pop ebx
je 0x412930
push eax
call fcn.0041a6b3
add esp, 4
mov ecx, dword [esp + 0x11c]
mov dword fs:[0], ecx
add esp, 0x128
ret
Function at 0x412df0
Capabilities:
Get file size

Disassembly:
sub esp, 0x12c
push ebx
push ebp
push esi
mov ebx, ecx
push edi
mov ecx, 5
mov esi, 0x444d68
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.00409110
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.00414ee0
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], 0x43a2d4
mov dword [esp + 8], ecx
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], ecx
pop ebx
je 0x412ea3
push eax
call fcn.0041a6b3
add esp, 4
add esp, 0x12c
ret
Function at 0x413d20
Capabilities:
Access peb ldr_data
Get file size
Read file via mapping

Disassembly:
push 0xffffffffffffffff
push 0x4386eb
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.00414ee0
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], 0x43a2d4
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
je 0x413d82
push eax
call fcn.0041a6b3
add esp, 4
lea eax, [esp + 0x9c]
push 0x104
push eax
push ebx
mov dword [esp + 0x1c], 0x43a2d0
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.00427080
push esi
push ebx
lea ecx, [esp + 0x48]
mov dword [esp + 0x1b0], 0
call fcn.00427180
mov edx, dword [esp + 0x1b0]
add esi, ebx
push edx
lea ecx, [esp + 0x44]
lea eax, [esi + 0x10]
push eax
call fcn.00427180
lea ecx, [esp + 0x30]
push ecx
lea ecx, [esp + 0x44]
call fcn.00427110
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 0x414ee0
Capabilities:
Get file size
Read file via mapping

Disassembly:
push 0xffffffffffffffff
push 0x438736
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.00404ae0
push ebx
push ebx
mov ecx, ebp
mov dword [esp + 0x144], ebx
mov dword [ebp], 0x43a2d4
mov dword [ebp + 0xc], ebx
call fcn.004043d0
push ebx
push ebx
mov ecx, ebp
mov dword [esp + 0x144], 1
mov dword [ebp], 0x43a324
call fcn.004043d0
mov edi, 0x444e90
or ecx, 0xffffffff
xor eax, eax
mov dword [ebp], 0x43a4ac
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 0x414ffb
mov edx, 0xc800
mov eax, esi
sub eax, edx
sub eax, 0x16
jns 0x415006
xor eax, eax
sub esi, eax
add ecx, eax
mov dword [esp + 0x28], ecx
lea edi, [esi - 0x16]
cmp edi, ebx
jl 0x41509e
lea eax, [ecx + edi]
mov edx, dword [eax]
lea ecx, [esp + 0x10]
cmp edx, dword [ecx]
je 0x41502e
dec edi
dec eax
cmp edi, ebx
jge 0x41501c
jmp 0x41509e
mov ecx, dword [ebp + 0xc]
sub esi, edi
sub esi, 0x16
lea eax, [esi + 1]
cmp eax, ecx
jle 0x41507a
cmp ecx, 8
jge 0x415049
mov dword [ebp + 0xc], 8
mov ecx, dword [ebp + 0xc]
cmp eax, ecx
jle 0x415055
add ecx, ecx
mov dword [ebp + 0xc], ecx
cmp eax, dword [ebp + 0xc]
jle 0x415067
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.0041abc3
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 0x417420
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 0x417457
cmp dword [esp + 0x10], 2
jne 0x417457
cmp dword [esp + 4], 6
jb 0x417457
mov eax, 1
add esp, 0x94
ret
xor eax, eax
add esp, 0x94
ret

Function at 0x417ac0
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.00417a70
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 0x417aeb
ret
Function at 0x4183a0
Capabilities:
Write file on windows

Disassembly:
mov al, byte [0x449070]
sub esp, 8
test al, 1
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0x18]
jne 0x4183c9
or al, 1
push edi
mov byte [0x449070], al
mov eax, dword [esi]
push esi
call dword [eax + 0x7c]
mov dword [0x44906c], eax
mov cl, byte [0x449070]
mov al, 2
test al, cl
jne 0x4183fc
mov edx, dword [0x44906c]
or cl, al
push 0x444794
mov byte [0x449070], cl
mov ecx, dword [esi]
push 0x444e70
push edx
push esi
call dword [ecx + 0x178]
mov dword [0x449068], eax
mov ecx, dword [0x449068]
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 0x418a50
Capabilities:
Create thread

Disassembly:
push 0
push 0
push ecx
push 0x418980
push 0
push 0
call fcn.0041c872
add esp, 0x18
ret