joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44c7cd
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x33c
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
push ebx
call fcn.0044b18c
test al, al
jne 0x44c7fe
cmp word [esi + 0x16], 8
jae 0x44c805
add esi, 0x44
push str.Bit_depth_must_be_8_or_24
push esi
call fcn.0045c200
pop ecx
pop ecx
xor al, al
jmp 0x44c9d3
and byte [ebp - 0x18], 0
push edi
mov ecx, esi
call fcn.00446aa4
test eax, eax
setne al
mov byte [ebp - 0x17], al
mov ax, word [esi + 0x16]
cmp ax, 8
mov dx, ax
setne cl
inc ecx
sub dx, 8
mov byte [ebp - 0x16], cl
xor ecx, ecx
neg dx
sbb edx, edx
mov edi, 0x100
and dl, cl
mov word [ebp - 0x15], cx
add edx, edi
cmp ax, 8
mov word [ebp - 0x13], dx
mov word [ebp - 0x10], cx
setne dl
dec edx
and byte [ebp - 7], cl
and edx, 0x18
cmp dword [esi + 0x1a0], ecx
mov byte [ebp - 0x11], dl
mov dx, word [esi + 0xc]
mov word [ebp - 0xc], dx
mov dx, word [esi + 0x10]
mov word [ebp - 0xa], dx
mov dl, al
mov word [ebp - 0xe], cx
mov byte [ebp - 8], dl
je 0x44c887
cmp ax, 0x18
jne 0x44c887
mov byte [ebp - 8], 0x20
mov eax, dword [ebx]
push 1
lea ecx, [ebp - 0x18]
push 0x12
push ecx
mov ecx, ebx
call dword [eax + 0xc]
cmp word [esi + 0x16], 8
jne 0x44c8db
mov ecx, esi
call fcn.00446aa4
lea ecx, [ebp - 0x33b]
add eax, 2
mov dl, byte [eax - 2]
mov byte [ecx - 1], dl
mov dl, byte [eax - 1]
mov byte [ecx], dl
mov dl, byte [eax]
mov byte [ecx + 1], dl
add eax, 4
add ecx, 3
dec edi
jne 0x44c8ad
mov eax, dword [ebx]
push 1
lea ecx, [ebp - 0x33c]
push 0x300
push ecx
mov ecx, ebx
call dword [eax + 0xc]
push esi
lea ecx, [ebp - 0x3c]
call fcn.0044cd15
xor edi, edi
cmp dword [esi + 0x1a0], edi
je 0x44c99d
cmp word [esi + 0x16], 8
je 0x44c99d
movzx eax, word [ebp - 0xc]
shl eax, 2
push eax
call fcn.0045ac39
and dword [ebp - 4], 0
cmp word [ebp - 0xa], 0
mov edi, eax
pop ecx
mov dword [ebp - 0x20], edi
jbe 0x44c994
xor ebx, ebx
cmp word [ebp - 0xc], bx
jbe 0x44c972
inc edi
push dword [ebp - 4]
lea eax, [ebp - 0x24]
mov ecx, esi
push ebx
push eax
call fcn.00446bcc
mov eax, dword [eax]
push dword [ebp - 4]
mov dword [ebp - 0x1c], eax
mov byte [edi - 1], al
mov al, byte [ebp - 0x1a]
mov byte [edi], ah
push ebx
mov ecx, esi
mov byte [edi + 1], al
call fcn.00446ff1
movzx ecx, byte [esi + 0x17c]
movzx eax, al
imul eax, ecx
cdq
mov ecx, 0xff
add edi, 4
idiv ecx
inc ebx
mov byte [edi - 2], al
movzx eax, word [ebp - 0xc]
cmp ebx, eax
jl 0x44c924
movzx edx, word [ebp - 0xc]
mov ecx, dword [ebp + 8]
mov edi, dword [ebp - 0x20]
shl edx, 2
mov eax, dword [ecx]
push 1
push edx
push edi
call dword [eax + 0xc]
movzx eax, word [ebp - 0xa]
inc dword [ebp - 4]
cmp dword [ebp - 4], eax
jl 0x44c91b
push edi
call fcn.0045abf1
pop ecx
jmp 0x44c9d0
cmp word [ebp - 0xa], di
jbe 0x44c9d0
push edi
lea ecx, [ebp - 0x3c]
call fcn.0044cd41
movzx ecx, word [esi + 0x16]
movzx edx, word [ebp - 0xc]
shr ecx, 3
imul ecx, edx
mov eax, dword [ebx]
push 1
push ecx
mov ecx, ebx
push dword [ebp - 0x2c]
call dword [eax + 0xc]
movzx eax, word [ebp - 0xa]
inc edi
cmp edi, eax
jl 0x44c9a3
mov al, 1
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x44e850
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
jne 0x44e85f
xor eax, eax
pop esi
ret 0xc
mov eax, dword [0x493778]
test eax, eax
je 0x44e86d
call fcn.0044e700
mov edx, dword [esp + 0x10]
cmp edx, 8
mov eax, dword [esp + 8]
not eax
jb 0x44e961
push ebx
push edi
mov edi, edx
shr edi, 3
xor ecx, ecx
mov cl, byte [esi]
mov ebx, eax
shr ebx, 8
sub edx, 8
xor ecx, eax
and ecx, 0xff
mov eax, dword [ecx*4 + 0x4ab5f8]
xor eax, ebx
xor ecx, ecx
mov cl, byte [esi + 1]
inc esi
xor ecx, eax
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x4ab5f8]
shr eax, 8
xor ecx, eax
xor eax, eax
mov al, byte [esi + 1]
inc esi
xor eax, ecx
and eax, 0xff
mov eax, dword [eax*4 + 0x4ab5f8]
shr ecx, 8
xor eax, ecx
xor ecx, ecx
mov cl, byte [esi + 1]
inc esi
xor ecx, eax
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x4ab5f8]
shr eax, 8
xor ecx, eax
xor eax, eax
mov al, byte [esi + 1]
inc esi
xor eax, ecx
and eax, 0xff
mov eax, dword [eax*4 + 0x4ab5f8]
shr ecx, 8
xor eax, ecx
xor ecx, ecx
mov cl, byte [esi + 1]
inc esi
xor ecx, eax
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x4ab5f8]
shr eax, 8
xor ecx, eax
xor eax, eax
mov al, byte [esi + 1]
inc esi
xor eax, ecx
and eax, 0xff
mov eax, dword [eax*4 + 0x4ab5f8]
shr ecx, 8
xor eax, ecx
xor ecx, ecx
mov cl, byte [esi + 1]
inc esi
xor ecx, eax
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x4ab5f8]
shr eax, 8
xor eax, ecx
inc esi
dec edi
jne 0x44e887
pop edi
pop ebx
test edx, edx
je 0x44e981
xor ecx, ecx
mov cl, byte [esi]
xor ecx, eax
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x4ab5f8]
shr eax, 8
xor eax, ecx
inc esi
dec edx
jne 0x44e965
not eax
pop esi
ret 0xc
Function at 0x461c1f
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x496338
cmp edx, dword [eax]
je 0x461c41
add eax, 8
inc ecx
cmp eax, 0x4963c8
jl 0x461c32
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x496338]
jne 0x461d6f
mov eax, dword [0x4ada90]
cmp eax, 1
je 0x461d49
test eax, eax
jne 0x461c72
cmp dword [0x4957a4], 1
je 0x461d49
cmp edx, 0xfc
je 0x461d6f
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x461ca9
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0045c200
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0045bbb0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x461cec
lea eax, [ebp - 0x1a4]
push eax
call fcn.0045bbb0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4835ec
push edi
call fcn.0045b770
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0045c200
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0045c210
lea eax, [ebp - 0xa0]
push 0x4835cc
push eax
call fcn.0045c210
push dword [esi + 0x49633c]
lea eax, [ebp - 0xa0]
push eax
call fcn.0045c210
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0046439f
add esp, 0x2c
pop edi
jmp 0x461d6f
lea eax, [ebp + 8]
lea esi, [esi + 0x49633c]
push 0
push eax
push dword [esi]
call fcn.0045bbb0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x468e40
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.0045acd0
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x468f0b
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x468f0b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x468ebe
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x468ec9
or bh, 8
and edi, 0x8000000
je 0x468ee4
mov eax, dword [0x4af23c]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x468f0b
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4692e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x46930b
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x46932f
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x46934a
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
Function at 0x46c070
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov eax, ebx
push edi
mov edi, ecx
shr eax, 0x10
test ax, ax
mov dword [edi + 0x40], ebx
jne 0x46c092
cmp dword [edi + 0x3c], 0
jne 0x46c092
movzx eax, bx
mov dword [edi + 0x3c], eax
call fcn.00474ee5
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
mov ecx, edi
push dword [esp + 0x18]
push eax
call fcn.0046c0bf
pop edi
pop esi
pop ebx
ret 8

Function at 0x46d6c6
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x46d6fe
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0046b74f
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0046b727
jmp 0x46d70a
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x46ec67
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x46eca9
call fcn.00474ee5
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x46eca9
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x46eca0
xor eax, eax
jmp 0x46ecb1
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0046ecb7
pop edi
pop esi
pop ebx
ret 4

Function at 0x475804
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x475832
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x475850
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0047576a
jmp 0x475850
mov eax, dword [esi + 0x14]
test eax, eax
je 0x475850
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0047576a
test edi, edi
mov eax, edi
jne 0x47583a
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x475fa4
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0x476054
mov ecx, 0x4ad9d8
call fcn.004758f1
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov esi, eax
cmp word [esi + 8], 0
jne 0x476032
push str.COMCTL32.DLL
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
mov dword [ebp + 0xc], eax
je 0x476010
mov ecx, dword [ebp + 0x10]
push 5
neg ecx
sbb ecx, ecx
and ecx, 0xe
add ecx, 0x3ee
movzx ecx, cx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x476010
push ebx
push edi
push eax
call fcn.00470586
add esp, 0xc
mov eax, dword [edi]
mov eax, dword [eax - 8]
inc eax
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [esi + 4], eax
push dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ax, word [ebx]
mov word [esi + 8], ax
push dword [esi + 4]
mov ecx, edi
call fcn.0046b4a5
mov si, word [esi + 8]
xor eax, eax
mov word [ebx], si
cmp si, 0xffff
pop edi
pop esi
setne al
pop ebx
pop ebp
ret 0xc
Function at 0x408530
Capabilities:
Create device object
Create thread

Disassembly:
sub esp, 0x1c
push ebx
push edi
push 0x4d6c7431
push 0x20
xor ebx, ebx
push ebx
call dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
cmp eax, ebx
je 0x408572
mov dword [eax + 8], ebx
mov dword [eax + 4], ebx
mov dword [eax + 0xc], ebx
xor ecx, ecx
cmp dword [ecx*4 + 0x40d77c], ebx
je 0x408565
inc ecx
cmp ecx, 0xa
jl 0x408554
jmp 0x408572
inc dword [0x40d7a4]
mov dword [ecx*4 + 0x40d77c], eax
mov edi, dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
push 0x40b740
lea eax, [esp + 0x14]
push eax
call edi
push str.DosDevicesHelpDetectWz
lea ecx, [esp + 0x1c]
push ecx
call edi
lea edx, [esp + 0xc]
push edx
push 1
push 0x100
push 0x22
lea eax, [esp + 0x20]
push eax
push ebx
push esi
mov dword [esp + 0x28], ebx
call dword [sym.imp.ntoskrnl.exe_IoCreateDevice]
cmp eax, ebx
jl 0x4086a8
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x1c]
push edx
call dword [sym.imp.ntoskrnl.exe_IoCreateSymbolicLink]
mov edi, eax
cmp edi, ebx
mov eax, dword [esp + 0xc]
jge 0x4085e0
push eax
call dword [sym.imp.ntoskrnl.exe_IoDeleteDevice]
mov eax, edi
pop edi
pop ebx
add esp, 0x1c
ret
mov ecx, dword [esi + 0x34]
mov edx, dword [esi + 0x70]
push 0xc8
push ebx
push 0x40d694
mov dword [0x40d4e4], ecx
mov dword [0x40d690], edx
mov dword [esi + 0x70], 0x408790
mov dword [0x40d778], esi
mov dword [0x40d68c], eax
mov dword [esi + 0x34], 0x4086b0
call dword [sym.imp.ntoskrnl.exe_KeInitializeSemaphore]
mov eax, 0x40d680
mov dword [0x40d684], eax
mov dword [0x40d680], eax
mov eax, 0x40d570
mov dword [0x40d56c], ebx
mov dword [0x40d574], eax
mov dword [0x40d570], eax
call fcn.00405100
push ebx
push 0x408d30
push ebx
push ebx
push ebx
push ebx
push 0x40d688
call dword [sym.imp.ntoskrnl.exe_PsCreateSystemThread]
cmp eax, ebx
je 0x40867c
mov ecx, dword [0x40d044]
mov edx, dword [ecx]
push eax
mov eax, dword [edx]
push str.Create_Thread_Fail_Code__x
push ecx
call eax
add esp, 0xc
xor eax, eax
pop edi
pop ebx
add esp, 0x1c
ret
mov ecx, dword [sym.imp.ntoskrnl.exe_PsThreadType]
mov edx, dword [ecx]
mov eax, dword [0x40d688]
push ebx
push 0x40d568
push ebx
push edx
push ebx
push eax
call dword [sym.imp.ntoskrnl.exe_ObReferenceObjectByHandle]
mov ecx, dword [0x40d688]
push ecx
call dword [sym.imp.ntoskrnl.exe_ZwClose]
xor eax, eax
pop edi
pop ebx
add esp, 0x1c
ret
Function at 0x403d2a
Capabilities:
Access peb ldr_data
Resolve function by hash

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
mov dword [ebp - 4], 0
cld
xor edx, edx
mov edx, dword fs:[edx + 0x30]
mov edx, dword [edx + 0xc]
mov edx, dword [edx + 0x14]
mov esi, dword [edx + 0x28]
push 0x18
pop ecx
xor edi, edi
xor eax, eax
lodsb al, byte [esi]
cmp al, 0x61
jl 0x403d58
sub al, 0x20
ror edi, 0xd
add edi, eax
loop 0x403d4f
cmp edi, 0x6a4abc5b
mov ebx, dword [edx + 0x10]
mov edx, dword [edx]
jne 0x403d47
mov eax, ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
jmp 0x403d79
mov esp, ebp
pop ebp
ret

Function at 0x403d7d
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
mov dword [ebp - 4], 0
add esp, 0xffffffec
push esi
push ebx
push edi
push edx
push ecx
mov eax, dword [ebp + 0x10]
xor edx, edx
xchg edx, eax
mov esi, 0x3c
add esi, dword [ebp + 0xc]
mov eax, dword [esi]
add eax, dword [ebp + 0xc]
mov esi, dword [eax + 0x78]
add esi, 0x18
add esi, dword [ebp + 0xc]
mov eax, dword [esi]
mov dword [ebp - 0x14], eax
add esi, 4
lea edi, [ebp - 8]
lodsd eax, dword [esi]
add eax, dword [ebp + 0xc]
stosd dword es:[edi], eax
mov dword [ebp - 8], eax
lodsd eax, dword [esi]
add eax, dword [ebp + 0xc]
push eax
stosd dword es:[edi], eax
mov dword [ebp - 0xc], eax
mov eax, dword [esi]
add eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
pop esi
mov dword [ebp - 4], 0
push esi
mov eax, dword [esi]
add eax, dword [ebp + 0xc]
xchg edi, eax
mov ebx, edi
push edi
xor al, al
scasb al, byte es:[edi]
jne 0x403de9
pop esi
sub edi, ebx
push edx
cld
xor ecx, ecx
dec ecx
mov edx, ecx
xor eax, eax
xor ebx, ebx
lodsb al, byte [esi]
xor al, cl
mov cl, ch
mov ch, dl
mov dl, dh
mov dh, 8
shr bx, 1
rcr ax, 1
jae 0x403e16
xor ax, 0x8320
xor bx, 0xedb8
dec dh
jne 0x403e05
xor ecx, eax
xor edx, ebx
dec edi
jne 0x403df6
not edx
not ecx
mov eax, edx
rol eax, 0x10
mov ax, cx
pop edx
cmp edx, eax
je 0x403e3c
pop esi
add esi, 4
add dword [ebp - 4], 1
jmp 0x403ddd
pop esi
mov eax, dword [ebp - 4]
shl eax, 1
add eax, dword [ebp - 0x10]
xor esi, esi
xchg esi, eax
mov ax, word [esi]
shl ax, 2
add eax, dword [ebp - 8]
xchg esi, eax
mov eax, dword [esi]
add eax, dword [ebp + 0xc]
pop ecx
pop edx
pop edi
pop ebx
pop esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
jmp 0x403e68
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40445e
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
jmp 0x40446e
sub esp, 0x38
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
cmp dword [ebp + 8], 0
jle 0x4044c3
push dword [ebp + 8]
call fcn.0040466f
mov dword [ebp - 0x24], eax
cmp word [ebp - 0x24], 0x5a4d
jne 0x4044c3
xor eax, eax
jmp 0x4044c8
mov eax, 1
test eax, eax
je 0x4044da
mov eax, 0
jmp 0x404669
push 0x3c
push dword [ebp + 8]
call fcn.004046b1
push eax
call fcn.0040468b
push eax
push dword [ebp + 8]
call fcn.004046b1
mov dword [ebp - 4], eax
push dword [ebp - 4]
call fcn.0040468b
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0x4550
jne 0x404535
push 0x7c
push dword [ebp - 4]
call fcn.004046b1
push eax
call fcn.0040468b
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
je 0x404535
xor eax, eax
jmp 0x40453a
mov eax, 1
test eax, eax
je 0x40454c
mov eax, 0
jmp 0x404669
push 0x78
push dword [ebp - 4]
call fcn.004046b1
push eax
call fcn.0040468b
push eax
push dword [ebp + 8]
call fcn.004046b1
mov dword [ebp - 8], eax
push 0x20
push dword [ebp - 8]
call fcn.004046b1
push eax
call fcn.0040468b
push eax
push dword [ebp + 8]
call fcn.004046b1
push eax
call fcn.0040468b
push eax
push dword [ebp + 8]
call fcn.004046b1
mov dword [ebp - 0xc], eax
push 0x18
push dword [ebp - 8]
call fcn.004046b1
push eax
call fcn.0040468b
mov dword [ebp - 0x10], eax
push 1
push dword [ebp - 0x10]
call fcn.004046d8
push eax
lea eax, [ebp - 0x10]
mov ebx, eax
mov ecx, 0
pop edx
push edx
push ecx
push ebx
mov dword [ebx], ecx
cmp ecx, edx
jg 0x40465c
push dword [ebp - 0x18]
push dword [ebp - 0xc]
call fcn.004046b1
mov dword [ebp - 0x14], eax
push dword [ebp + 0xc]
push dword [ebp - 0x14]
call fcn.004046ff
test eax, eax
je 0x40463f
push 0x1c
push dword [ebp - 8]
call fcn.004046b1
push eax
call fcn.0040468b
push eax
push dword [ebp + 8]
call fcn.004046b1
mov dword [ebp - 0x24], eax
push 4
push dword [ebp - 0x10]
call fcn.00404733
push eax
push dword [ebp - 0x24]
call fcn.004046b1
push eax
call fcn.0040468b
push eax
push dword [ebp + 8]
call fcn.004046b1
jmp 0x404669
push dword [ebp - 0x14]
call fcn.0040475b
push eax
push dword [ebp - 0x18]
call fcn.004046b1
mov dword [ebp - 0x18], eax
pop ebx
pop ecx
pop edx
inc ecx
jmp 0x4045c8
add esp, 0xc
mov eax, 0
jmp 0x404669
mov esp, ebp
pop ebp
ret 8
Function at 0x404924
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
jmp 0x40492c
sub esp, 0x28
push ecx
mov ecx, dword [ebp + 8]
cmp ecx, 0
jle 0x404971
mov eax, dword [ecx]
mov dword [ebp - 8], eax
cmp word [ebp - 8], 0x5a4d
jne 0x404971
lea eax, [ecx + 0x3c]
mov eax, dword [eax]
add ecx, eax
mov eax, dword [ecx]
cmp eax, 0x4550
jne 0x404971
lea eax, [ecx + 0x16]
mov eax, dword [eax]
cwde
and eax, 0x2000
test eax, eax
je 0x404971
lea eax, [ecx + 0x28]
mov eax, dword [eax]
add eax, dword [ebp + 8]
jmp 0x404975
xor eax, eax
jmp 0x4049a0
nop
push 0
push 0
push 0
call eax
call fcn.004049a5
push 0x700ed6df
push eax
push 0
call fcn.004049f8
push 0
push 0x8000
push 0
push dword [ebp + 8]
push 0xffffffffffffffff
call eax
pop ecx
leave
ret 4

Function at 0x4049a5
Capabilities:
Access peb ldr_data
Resolve function by hash

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
mov dword [ebp - 4], 0
cld
xor edx, edx
mov edx, dword fs:[edx + 0x30]
mov edx, dword [edx + 0xc]
mov edx, dword [edx + 0x14]
mov esi, dword [edx + 0x28]
push 0x18
pop ecx
xor edi, edi
xor eax, eax
lodsb al, byte [esi]
cmp al, 0x61
jl 0x4049d3
sub al, 0x20
ror edi, 0xd
add edi, eax
loop 0x4049ca
cmp edi, 0x6a4abc5b
mov ebx, dword [edx + 0x10]
mov edx, dword [edx]
jne 0x4049c2
mov eax, ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
jmp 0x4049f4
mov esp, ebp
pop ebp
ret

Function at 0x4049f8
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
mov dword [ebp - 4], 0
add esp, 0xffffffec
push esi
push ebx
push edi
push edx
push ecx
mov eax, dword [ebp + 0x10]
xor edx, edx
xchg edx, eax
mov esi, 0x3c
add esi, dword [ebp + 0xc]
mov eax, dword [esi]
add eax, dword [ebp + 0xc]
mov esi, dword [eax + 0x78]
add esi, 0x18
add esi, dword [ebp + 0xc]
mov eax, dword [esi]
mov dword [ebp - 0x14], eax
add esi, 4
lea edi, [ebp - 8]
lodsd eax, dword [esi]
add eax, dword [ebp + 0xc]
stosd dword es:[edi], eax
mov dword [ebp - 8], eax
lodsd eax, dword [esi]
add eax, dword [ebp + 0xc]
push eax
stosd dword es:[edi], eax
mov dword [ebp - 0xc], eax
mov eax, dword [esi]
add eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
pop esi
mov dword [ebp - 4], 0
push esi
mov eax, dword [esi]
add eax, dword [ebp + 0xc]
xchg edi, eax
mov ebx, edi
push edi
xor al, al
scasb al, byte es:[edi]
jne 0x404a64
pop esi
sub edi, ebx
push edx
cld
xor ecx, ecx
dec ecx
mov edx, ecx
xor eax, eax
xor ebx, ebx
lodsb al, byte [esi]
xor al, cl
mov cl, ch
mov ch, dl
mov dl, dh
mov dh, 8
shr bx, 1
rcr ax, 1
jae 0x404a91
xor ax, 0x8320
xor bx, 0xedb8
dec dh
jne 0x404a80
xor ecx, eax
xor edx, ebx
dec edi
jne 0x404a71
not edx
not ecx
mov eax, edx
rol eax, 0x10
mov ax, cx
pop edx
cmp edx, eax
je 0x404ab7
pop esi
add esi, 4
add dword [ebp - 4], 1
jmp 0x404a58
pop esi
mov eax, dword [ebp - 4]
shl eax, 1
add eax, dword [ebp - 0x10]
xor esi, esi
xchg esi, eax
mov ax, word [esi]
shl ax, 2
add eax, dword [ebp - 8]
xchg esi, eax
mov eax, dword [esi]
add eax, dword [ebp + 0xc]
pop ecx
pop edx
pop edi
pop ebx
pop esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
jmp 0x404ae3
mov esp, ebp
pop ebp
ret 0xc