joyce8/EMBER2024-capa huggingface dataset:
Function at 0x13044ba0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
mov esi, dword [esp + 0x18]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 1
push 0
push 0
push esi
call edi
cmp eax, 0xffffffff
jne 0x13044bc3
or ebx, eax
jmp 0x13044bc5
mov ebx, eax
push 2
push 0
push 0
push esi
call edi
cmp eax, 0xffffffff
mov dword [esp + 0x1c], 0xffffffff
je 0x13044bdf
mov dword [esp + 0x1c], eax
push 0
push ebx
push esi
call fcn.13044ee0
mov eax, dword [esp + 0x28]
mov ebp, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
sub eax, ebp
sub ecx, ebp
add esp, 0xc
cmp ecx, eax
mov dword [esp + 0x20], ecx
jl 0x13044c07
mov dword [esp + 0x20], eax
push 0x8000
call fcn.12f5c05b
mov ebx, eax
add esp, 4
mov ecx, 0x2000
xor eax, eax
mov edi, ebx
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x20]
push 0
push 0
lea ecx, [eax + ebp]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea edx, [esp + 0x24]
push 0
push edx
push 0x8000
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x13044c51
or eax, 0xffffffff
jmp 0x13044c8d
mov edi, dword [esp + 0x24]
mov eax, edi
test edi, edi
mov dword [esp + 0x14], eax
jle 0x13044c8d
push 0
push 0
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
test edi, edi
je 0x13044c89
lea eax, [esp + 0x10]
push 0
push eax
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x13044c98
cmp dword [esp + 0x10], edi
jne 0x13044c98
mov eax, dword [esp + 0x14]
add ebp, eax
cmp eax, 0x8000
jne 0x13044cab
jmp 0x13044c21
push ebx
call fcn.12f5c050
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
push 0
sub eax, ecx
push 0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push ebx
call fcn.12f5c050
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
Function at 0x13044ce0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x130746db
push eax
mov dword fs:[0], esp
sub esp, 0xa0
push ebx
mov ebx, dword [esp + 0xb4]
push ebp
xor ebp, ebp
push esi
cmp ebx, ebp
push edi
je 0x13044e84
push ebx
call fcn.12f5c51d
add esp, 4
test eax, eax
je 0x13044e84
push ebx
lea ecx, [esp + 0x18]
call fcn.12f41810
mov esi, dword [esp + 0xc4]
mov dword [esp + 0xb8], ebp
cmp esi, ebp
je 0x13044d51
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x13044e70
neg esi
sbb esi, esi
mov dword [esp + 0x18], ebp
mov ebp, dword [sym.imp.KERNEL32.dll_CreateFileW]
and esi, 0xc0000000
add esi, 0xc0000000
or edi, 0xffffffff
cmp edi, 0xffffffff
jne 0x13044e24
mov eax, dword [esp + 0x18]
test eax, eax
je 0x13044d87
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [0x1318f660]
cmp eax, 0xffffffff
jne 0x13044dc2
mov ecx, 0x24
xor eax, eax
lea edi, [esp + 0x20]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], 0x94
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esp + 0x2c]
xor eax, eax
cmp ecx, 2
sete al
mov dword [0x1318f660], eax
test eax, eax
je 0x13044ddb
push 0
push 0x80
push 4
push 0
push 1
push esi
push ebx
call ebp
mov edi, eax
jmp 0x13044e09
push ebx
lea ecx, [esp + 0x14]
call fcn.12f41810
mov edx, dword [esp + 0x10]
push 0
push 0x80
push 4
push 0
push 1
push esi
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
lea ecx, [esp + 0x10]
mov edi, eax
call fcn.12f41f70
mov eax, dword [esp + 0x18]
inc eax
cmp eax, 3
mov dword [esp + 0x18], eax
jl 0x13044d6e
cmp edi, 0xffffffff
je 0x13044eba
mov esi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 1
push 0
push 0
push edi
call esi
cmp eax, 0xffffffff
jne 0x13044e3c
or ebp, eax
jmp 0x13044e3e
mov ebp, eax
push 2
push 0
push 0
push edi
call esi
cmp eax, 0xffffffff
jne 0x13044e50
or ebx, eax
jmp 0x13044e52
mov ebx, eax
push 0
push 0
push ebp
push edi
call esi
test ebx, ebx
jne 0x13044eba
mov eax, dword [esp + 0xc4]
test eax, eax
je 0x13044ea0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x14]
mov dword [esp + 0xb8], 0xffffffff
call fcn.12f41f70
or eax, 0xffffffff
mov ecx, dword [esp + 0xb0]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xac
ret
lea eax, [esp + 0x10]
push 2
push eax
push 0
push edi
mov dword [esp + 0x20], 0xfeff
call fcn.130449c0
add esp, 0x10
lea ecx, [esp + 0x14]
mov dword [esp + 0xb8], 0xffffffff
call fcn.12f41f70
mov eax, edi
jmp 0x13044e87
Function at 0x13049550
Capabilities:
Get disk information

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x13074a40
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push ebp
push esi
mov esi, dword [esp + 0x34]
push edi
push 0xffffffffffffffff
push 0
mov ecx, esi
call fcn.12f4cce0
mov edi, dword [esp + 0x3c]
push 0xffffffffffffffff
push 0
mov ecx, edi
call fcn.12f4cce0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov ebp, eax
mov eax, dword [0x131cb5d0]
test eax, eax
je 0x13049608
cmp ebp, eax
jne 0x13049608
mov eax, dword [0x131cb5d4]
test eax, eax
je 0x13049608
cmp ebx, eax
jb 0x13049608
add eax, 0x493e0
cmp eax, ebx
jb 0x13049608
mov ebp, dword [0x131cb5d8]
push 1
inc ebp
push 0x131cb4f0
lea ecx, [esp + 0x18]
mov dword [0x131cb5d8], ebp
call fcn.12f56170
push 0x131cb520
mov ecx, esi
mov dword [esp + 0x34], 0
call fcn.12f4cec0
push 0x131cb510
mov ecx, edi
call fcn.12f4cec0
mov dword [esp + 0x30], 0xffffffff
lea ecx, [esp + 0x10]
jmp 0x1304967e
push edi
push esi
mov dword [0x131cb5d8], 0
call fcn.13049980
add esp, 8
lea ecx, [esp + 0x1c]
push 1
push 0x131cb4f0
call fcn.12f56170
push 0xffffffffffffffff
push 0
mov ecx, 0x131cb520
mov dword [esp + 0x38], 1
mov dword [0x131cb5d0], ebp
mov dword [0x131cb5d4], ebx
call fcn.12f4cce0
push esi
mov ecx, 0x131cb520
call fcn.12f4cec0
push 0xffffffffffffffff
push 0
mov ecx, 0x131cb510
call fcn.12f4cce0
push edi
mov ecx, 0x131cb510
call fcn.12f4cec0
mov dword [esp + 0x30], 0xffffffff
lea ecx, [esp + 0x1c]
call fcn.12f561d0
mov ecx, dword [esp + 0x28]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret
Function at 0x13049980
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x13074aa6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x224
push ebx
push ebp
push esi
mov esi, dword [esp + 0x240]
push edi
xor ebx, ebx
push 0xffffffffffffffff
push ebx
mov ecx, esi
call fcn.12f4cce0
mov ebp, dword [esp + 0x248]
push 0xffffffffffffffff
push ebx
mov ecx, ebp
call fcn.12f4cce0
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov dword [esp + 0x28], eax
xor eax, eax
mov dword [esp + 0x10], 1
mov dword [esp + 0x20], eax
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x10]
test ecx, edx
je 0x13049ab9
mov edx, dword [0x130e0f10]
mov cx, word [0x130e0f14]
mov dword [esp + 0x18], edx
add word [esp + 0x18], ax
lea edx, [esp + 0x18]
mov word [esp + 0x1c], cx
push edx
lea ecx, [esp + 0x28]
mov word [esp + 0x22], bx
call fcn.12f46b50
mov eax, dword [esi + 4]
lea ecx, [esp + 0x24]
push ecx
push eax
mov ecx, esi
mov dword [esp + 0x244], ebx
call fcn.12f4d280
mov edx, dword [0x1307d24c]
mov dword [esp + 0x14], edx
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x2e]
mov word [esp + 0x2c], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x2c]
push 0x104
lea ecx, [esp + 0x1c]
push eax
push ecx
mov byte [esp + 0x248], 1
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
lea edx, [esp + 0x2c]
lea ecx, [esp + 0x14]
push edx
mov word [esp + 0x236], bx
call fcn.12f47570
mov eax, dword [ebp + 4]
lea ecx, [esp + 0x14]
push ecx
push eax
mov ecx, ebp
call fcn.12f4d280
lea ecx, [esp + 0x14]
mov byte [esp + 0x23c], bl
call fcn.12f472f0
lea ecx, [esp + 0x24]
mov dword [esp + 0x23c], 0xffffffff
call fcn.12f472f0
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x10]
inc eax
shl edx, 1
cmp eax, 0x1a
mov dword [esp + 0x20], eax
mov dword [esp + 0x10], edx
jb 0x130499db
mov ecx, dword [esp + 0x234]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x230
ret
Function at 0x401160
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], 4
push 0x40
push 0x3000
mov eax, dword [ebp + 8]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esp, ebp
pop ebp
ret
Function at 0x503b67
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
mov ecx, ebp
push ebp
mov ebp, esp
mov dword [0x505076], ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x505298], eax
mov dword [0x505220], 0x5032dd
mov dword [0x50521c], 2
jmp 0x503b97
mov dword [0x505224], 0
mov dword [0x505228], 0
mov dword [0x505218], 0x30
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
mov dword [0x50522c], eax
mov dword [0x505240], 0x504088
mov dword [0x505238], 0xf
mov dword [0x50506e], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadIconA]
mov dword [0x505230], eax
mov dword [0x505244], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
mov dword [0x505234], eax
push 0x505218
call dword [sym.imp.user32.dll_RegisterClassExA]
push 0
push dword [0x50506e]
push 0
push 0
push 0x1e5
push 0x21e
push 0xffffe52a
push 0xfffff588
push 0x40000
push str.wait
push str.aroka
push 0
call dword [sym.imp.user32.dll_CreateWindowExA]
mov dword [0x505290], eax
push 5
push dword [0x505290]
call dword [sym.imp.user32.dll_ShowWindow]
push dword [0x505290]
call dword [sym.imp.user32.dll_UpdateWindow]
jmp 0x503c6a
push 0
push 0
push 0
push 0x505248
call dword [sym.imp.user32.dll_GetMessageA]
or eax, eax
je 0x503c97
push 0x505248
call dword [sym.imp.user32.dll_TranslateMessage]
push 0x505248
call dword [sym.imp.user32.dll_DispatchMessageA]
jmp 0x503c6a
mov eax, dword [0x505250]
jmp 0x503ca4
call 0x502b16
ret

Function at 0x433005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
mov eax, section..text
nop
nop
mov ebx, 0x40de38
nop
mov ecx, 0x66526ae4
nop
nop
test eax, eax
nop
nop
je 0x43304e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x433024
nop
nop
mov eax, section..rsrc
nop
mov ebx, 0x4304d8
nop
mov ecx, 0x101d642d
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x433084
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
add eax, 4
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
push 4
nop
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x431072
nop
mov ebx, 0x40915c
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
nop
div edi
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x9c477d
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x431060
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
nop
je 0x4310d2
nop
mov ebx, 0x42f3f8
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x1bac771d
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
loop 0x4310c0
nop
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x4035e0
Capabilities:
Copy file
Get common file path
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, ecx
push ebx
mov ebx, eax
sub esp, 0x430
mov dword [ebp - 0x420], edx
cmp word [0x431140], 0
je 0x403770
xor eax, eax
lea edi, [ebp - 0x41c]
lea esi, [esi]
movzx edx, word [eax + 0x431140]
mov word [edi + eax], dx
add eax, 2
test dx, dx
jne 0x403610
cmp word [ebp - 0x41c], 0
mov edx, edi
je 0x403639
nop
add edx, 2
cmp word [edx], 0
jne 0x403630
xor eax, eax
lea esi, [esi]
nop
movzx ecx, word [ebx + eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x403640
lea edx, [ebp - 0x214]
mov dword [esp + 8], 0x104
mov dword [esp + 4], edx
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_GetModuleFileNameW]
lea edx, [ebp - 0x214]
sub esp, 0xc
mov dword [esp], edx
mov dword [esp + 4], edi
mov dword [esp + 8], 0
call dword [sym.imp.kernel32.dll_CopyFileW]
sub esp, 0xc
mov dword [ebp - 0x424], eax
call fcn.00415b00
mov dword [eax], 0x41a018
mov dword [eax + 4], 0x4c9
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov dword [esp + 4], str.CopyFileW_failed__error__lu._n
mov dword [esp + 8], eax
mov edx, dword [ebp - 0x424]
mov dword [esp], edx
call fcn.00401db0
mov dword [esp], edi
mov dword [esp + 4], pe_nt_image_headers32
call dword [sym.imp.kernel32.dll_SetFileAttributesW]
sub esp, 8
mov dword [esp], edi
mov dword [esp + 4], 1
call dword [sym.imp.kernel32.dll_BeginUpdateResourceW]
sub esp, 8
mov edx, eax
mov dword [esp + 0x14], esi
mov eax, dword [ebp - 0x420]
mov dword [esp + 8], ebx
mov dword [esp], edx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0
mov dword [esp + 4], 0xa
mov dword [ebp - 0x420], edx
call dword [sym.imp.kernel32.dll_UpdateResourceW]
sub esp, 0x18
mov dword [esp + 4], 0
mov edx, dword [ebp - 0x420]
mov dword [esp], edx
call dword [sym.imp.kernel32.dll_EndUpdateResourceW]
sub esp, 8
mov dword [esp], edi
mov dword [esp + 8], 2
mov dword [esp + 4], 0
call dword [sym.imp.kernel32.dll_LoadLibraryExW]
sub esp, 0xc
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 4], 0x431140
mov dword [esp], 0x104
call dword [sym.imp.kernel32.dll_GetTempPathW]
sub esp, 8
jmp 0x403604
Function at 0x417230
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
mov dword [esp + 0x10], eax
lea eax, [ebp - 8]
mov dword [esp + 8], eax
lea eax, [ebp - 0xc]
mov dword [esp + 4], eax
lea eax, [ebp - 0x10]
mov dword [esp], eax
mov dword [esp + 0xc], 0
call sub.msvcrt.dll___getmainargs
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete al
movzx eax, al
add eax, 1
mov dword [esp], eax
call sub.msvcrt.dll___set_app_type
mov eax, dword [ebp - 8]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call fcn.004172f0
mov dword [esp], eax
call sub.msvcrt.dll_exit
nop
nop
nop
nop
push ebp
mov ebp, esp
call sub.msvcrt.dll___iob_func
mov edx, dword [ebp + 8]
pop ebp
shl edx, 5
add eax, edx
ret
Function at 0x121ce
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x16584]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
push dword [eax]
mov byte [ebp - 0x19], 0
push eax
push esi
call sub.ntoskrnl.exe_memcpy
mov edi, dword [esi]
and dword [ebp - 0x20], 0
and dword [ebp - 0x28], 0
sub edi, 0x18
mov edx, edi
add esp, 0xc
and edx, 0x80000003
lea ecx, [esi + 0x18]
jns 0x12218
dec edx
or edx, 0xfffffffc
inc edx
mov eax, edi
sub eax, edx
mov dword [ebp - 0x2c], eax
test eax, eax
jle 0x12267
dec eax
shr eax, 2
inc eax
mov dword [ebp - 0x30], eax
shl eax, 2
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x20]
mov eax, dword [esi + eax + 4]
add dword [ebp - 0x20], 4
mov edx, eax
shr edx, 4
mov ebx, eax
shl ebx, 4
xor edx, ebx
and edx, 0xf0f0f0f
shl eax, 4
xor edx, eax
xor dword [ecx], edx
add ecx, 4
cmp dword [ebp - 0x20], 0x14
jne 0x12262
and dword [ebp - 0x20], 0
dec dword [ebp - 0x30]
jne 0x12231
cmp dword [ebp - 0x28], edi
jge 0x12293
mov eax, dword [ebp - 0x20]
lea eax, [esi + eax + 4]
mov dword [ebp - 0x20], eax
mov eax, edi
sub eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x20]
mov dl, byte [edx]
mov bl, dl
shr bl, 4
shl dl, 4
xor bl, dl
xor byte [ecx], bl
inc ecx
inc dword [ebp - 0x20]
dec eax
jne 0x1227b
lea eax, [ebp - 0x18]
push eax
push edi
lea ebx, [esi + 0x18]
push ebx
call fcn.00013f58
push 0x14
lea eax, [ebp - 0x18]
push eax
add esi, 4
push esi
call dword [sym.imp.ntoskrnl.exe_RtlCompareMemory]
cmp eax, 0x14
jne 0x1231e
movzx ecx, byte [ebp + 0x10]
mov eax, ecx
shl eax, 8
or eax, ecx
shl eax, 8
or eax, ecx
shl eax, 8
or eax, ecx
xor ecx, ecx
cmp dword [ebp - 0x2c], ecx
mov esi, ebx
jle 0x12316
mov byte [ebp - 0x21], cl
inc ecx
mov byte [ebp - 0x19], cl
inc ecx
mov dl, cl
inc ecx
mov bl, cl
movzx ebx, bl
shl ebx, 8
movzx edx, dl
or ebx, edx
movzx edx, byte [ebp - 0x19]
shl ebx, 8
or ebx, edx
movzx edx, byte [ebp - 0x21]
shl ebx, 8
or ebx, edx
xor ebx, eax
xor dword [esi], ebx
inc ecx
add esi, 4
cmp ecx, dword [ebp - 0x2c]
jl 0x122d4
jmp 0x12316
mov al, cl
xor al, byte [ebp + 0x10]
xor byte [esi], al
inc esi
inc ecx
cmp ecx, edi
jl 0x1230d
mov byte [ebp - 0x19], 1
mov ecx, dword [ebp - 4]
mov al, byte [ebp - 0x19]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00015a4f
leave
ret 0xc

Function at 0x129de
Capabilities:
Hash data using sha1

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push 0xd0
push 0
push esi
call sub.ntoskrnl.exe_memset
add esp, 0xc
mov dword [esi], 0x67452301
mov dword [esi + 4], 0xefcdab89
mov dword [esi + 8], 0x98badcfe
mov dword [esi + 0xc], 0x10325476
mov dword [esi + 0x10], 0xc3d2e1f0
pop esi
pop ebp
ret 4
Function at 0x146c0
Capabilities:
Map section object
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
push edi
push dword [ebp + 8]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.0001467e
mov ebx, dword [ebp + 0xc]
xor esi, esi
push esi
push esi
push esi
push 1
push 1
push esi
push esi
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x28]
push eax
push 1
push ebx
call dword [sym.imp.ntoskrnl.exe_ZwCreateFile]
test eax, eax
jl 0x14791
push esi
push esi
lea eax, [ebp - 0x28]
push eax
call fcn.0001467e
push dword [ebx]
mov edi, dword [ebp + 0x10]
push 0x8000000
push 2
push esi
lea eax, [ebp - 0x28]
push eax
push 0xf0005
push edi
call dword [sym.imp.ntoskrnl.exe_ZwCreateSection]
test eax, eax
jl 0x14789
push 2
push esi
push 1
lea eax, [ebp + 0xc]
push eax
push esi
push esi
push esi
lea eax, [ebp + 8]
push eax
push 0xffffffffffffffff
push dword [edi]
mov dword [ebp + 0xc], esi
mov dword [ebp + 8], esi
call dword [sym.imp.ntoskrnl.exe_ZwMapViewOfSection]
test eax, eax
jl 0x14781
mov eax, dword [ebp + 8]
cmp eax, esi
je 0x14781
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x14778
mov ecx, dword [eax + 0x3c]
cmp dword [eax + ecx], 0x4550
jne 0x14778
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
mov al, 1
jmp 0x14793
push eax
push 0xffffffffffffffff
call dword [sym.imp.ntoskrnl.exe_ZwUnmapViewOfSection]
push dword [edi]
call dword [sym.imp.ntoskrnl.exe_ZwClose]
push dword [ebx]
call dword [sym.imp.ntoskrnl.exe_ZwClose]
xor al, al
pop edi
pop esi
pop ebx
leave
ret 0x10

Function at 0x147cc
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
push esi
push dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.0001467e
xor esi, esi
push esi
push esi
push 0x20
push esi
push 1
push 0x80
push esi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x28]
push eax
push 0x100002
lea eax, [ebp + 8]
push eax
call dword [sym.imp.ntoskrnl.exe_ZwCreateFile]
test eax, eax
jl 0x14830
push esi
push esi
push dword [ebp + 0x10]
lea eax, [ebp - 8]
push dword [ebp + 0xc]
push eax
push esi
push esi
push esi
push dword [ebp + 8]
call dword [sym.imp.ntoskrnl.exe_ZwWriteFile]
push dword [ebp + 8]
call dword [sym.imp.ntoskrnl.exe_ZwClose]
pop esi
leave
ret 0xc
Function at 0x148d6
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push esi
push edi
mov edi, dword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
lea eax, [ebp - 8]
push eax
push 4
lea eax, [ebp - 4]
push eax
xor esi, esi
push 0xb
mov dword [ebp - 0x14], esi
mov dword [ebp - 8], esi
call edi
mov eax, dword [ebp - 8]
cmp eax, esi
je 0x14982
add eax, eax
push eax
push 1
call dword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov dword [ebp - 4], eax
cmp eax, esi
je 0x14982
mov ecx, dword [ebp - 8]
push esi
add ecx, ecx
push ecx
push eax
push 0xb
call edi
test eax, eax
jne 0x14979
mov eax, dword [ebp - 4]
lea edi, [eax + 4]
cmp dword [eax], esi
jbe 0x14979
lea eax, [edi + 0x1a]
push ebx
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x10], eax
mov ebx, 0x11c
mov eax, dword [ebp - 0x10]
movzx eax, word [eax]
add eax, dword [ebp - 0xc]
lea eax, [eax + edi + 0x1c]
push eax
push dword [ebp + 8]
call dword [sym.imp.ntoskrnl.exe__stricmp]
pop ecx
pop ecx
test eax, eax
je 0x1496b
mov eax, dword [ebp - 4]
add dword [ebp - 0xc], ebx
add dword [ebp - 0x10], ebx
inc esi
cmp esi, dword [eax]
jb 0x1493e
jmp 0x14978
imul esi, esi, 0x11c
mov eax, dword [esi + edi + 8]
mov dword [ebp - 0x14], eax
pop ebx
push dword [ebp - 4]
call dword [sym.imp.ntoskrnl.exe_ExFreePool]
mov eax, dword [ebp - 0x14]
pop edi
pop esi
leave
ret 4
Function at 0x14ae0
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x14c04
mov eax, 0x5a4d
cmp word [edi], ax
jne 0x14c04
mov ebx, dword [edi + 0x3c]
add ebx, edi
cmp dword [ebx], 0x4550
mov dword [ebp - 8], ebx
jne 0x14c04
cmp byte [ebp + 0x10], 0
mov eax, dword [ebx + 0x78]
jne 0x14b28
push eax
push ebx
call fcn.00014a78
cmp byte [ebp + 0x10], 0
lea esi, [eax + edi]
je 0x14b36
mov eax, dword [esi + 0x1c]
jmp 0x14b3f
push dword [esi + 0x1c]
push ebx
call fcn.00014a78
add eax, edi
cmp byte [ebp + 0x10], 0
mov dword [ebp - 0x10], eax
je 0x14b4f
mov eax, dword [esi + 0x24]
jmp 0x14b58
push dword [esi + 0x24]
push ebx
call fcn.00014a78
add eax, edi
cmp byte [ebp + 0x10], 0
mov dword [ebp - 0xc], eax
je 0x14b68
mov eax, dword [esi + 0x20]
jmp 0x14b71
push dword [esi + 0x20]
push ebx
call fcn.00014a78
mov esi, dword [esi + 0x18]
lea ebx, [eax + edi]
xor edi, edi
mov dword [ebp - 0x14], edi
mov byte [ebp - 1], 1
mov dword [ebp - 0x18], esi
test esi, esi
jbe 0x14c04
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + edi*2]
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx + eax*4]
mov ecx, dword [ebp - 8]
mov ecx, dword [ecx + 0x78]
cmp eax, ecx
jb 0x14baa
mov edx, dword [ebp - 8]
mov edx, dword [edx + 0x7c]
add ecx, edx
cmp eax, ecx
jb 0x14bfe
cmp byte [ebp - 1], 0
je 0x14bcb
cmp byte [ebp + 0x10], 0
jne 0x14bc7
mov esi, dword [ebx + edi*4]
push esi
push dword [ebp - 8]
call fcn.00014a78
sub eax, esi
mov dword [ebp - 0x14], eax
mov byte [ebp - 1], 0
mov ecx, dword [ebx + edi*4]
add ecx, dword [ebp - 0x14]
mov edx, dword [ebp + 0xc]
add ecx, dword [ebp + 8]
mov al, byte [edx]
cmp al, byte [ecx]
jne 0x14bf5
test al, al
je 0x14bf1
mov al, byte [edx + 1]
cmp al, byte [ecx + 1]
jne 0x14bf5
inc edx
inc edx
inc ecx
inc ecx
test al, al
jne 0x14bd7
xor eax, eax
jmp 0x14bfa
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x14c0d
inc edi
cmp edi, dword [ebp - 0x18]
jb 0x14b87
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0xc
cmp byte [ebp + 0x10], 0
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
movzx eax, word [eax + edi*2]
je 0x14c22
mov eax, dword [ecx + eax*4]
jmp 0x14c2d
push dword [ecx + eax*4]
push dword [ebp - 8]
call fcn.00014a78
mov ecx, dword [ebp + 8]
add eax, ecx
jmp 0x14c06

Function at 0x14c3a
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x14c62
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x14c62
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x14c62
add eax, 0x28
jmp 0x14c64
xor eax, eax
pop ebp
ret 4