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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x698d18]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x5e426c
cmp byte [ebx], 0xa
jne 0x5e426c
or byte [eax + edi + 0x28], 4
jmp 0x5e4271
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x5e436f
mov al, byte [edx]
cmp al, 0x1a
je 0x5e4351
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x5e42a0
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x5e42c5
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x5e42cf
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x5e4282
jmp 0x5e436f
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x5e434c
cmp dword [ebp - 0xc], 0
je 0x5e434c
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x698d18]
test byte [eax + edi + 0x28], 0x48
je 0x5e4326
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x5e4311
mov byte [esi], dl
jmp 0x5e4322
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x698d18]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x5e436f
cmp byte [ebp - 1], 0xa
jne 0x5e4335
cmp esi, ebx
jne 0x5e4335
mov byte [esi], 0xa
jmp 0x5e436e
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.005e50c1
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x5e436f
mov byte [esi], 0xd
jmp 0x5e436e
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x698d18]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x5e436b
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x5e436f
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x5e4378
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x698d18]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x5e43bb
cmp word [esi], dx
jne 0x5e43bb
or byte [edi + eax + 0x28], 4
jmp 0x5e43c0
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x5e4513
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x5e44f3
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x5e4402
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x5e4438
cmp eax, edx
jae 0x5e4444
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x5e43da
jmp 0x5e4513
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x5e44ef
cmp dword [ebp - 0x14], 0
je 0x5e44ef
mov eax, dword [ebx*4 + 0x698d18]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x5e44c7
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x5e4490
mov word [esi], cx
jmp 0x5e44c3
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x698d18]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x698d18]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x698d18]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x5e4513
pop ebx
cmp word [ebp - 4], bx
jne 0x5e44d8
cmp esi, dword [ebp + 0xc]
jne 0x5e44d8
mov word [esi], bx
jmp 0x5e4510
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.005e50c1
add esp, 0x10
cmp word [ebp - 4], bx
je 0x5e4513
push 0xd
jmp 0x5e450c
mov ecx, dword [ebx*4 + 0x698d18]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x5e450a
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x5e4513
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x5ead0d
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.005eab2d
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x5eae85
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x5eae85
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x5eae34
jg 0x5ead66
test eax, eax
je 0x5eae2a
push 1
push 0x1000
call fcn.005d2200
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x5ead8c
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x5eae21
push 0x8000
push ebx
call fcn.005cac07
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x5eadb8
jg 0x5eadb3
cmp ecx, 0x1000
jb 0x5eadb8
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.005db836
add esp, 0x10
cmp eax, 0xffffffff
je 0x5eadfd
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x5eadb3
jl 0x5eade4
test ecx, ecx
jne 0x5eada5
push dword [ebp - 0xc]
push ebx
call fcn.005cac07
push esi
call fcn.005cfea0
add esp, 0xc
xor edi, edi
jmp 0x5eae96
cmp byte [edi + 0x24], 0
je 0x5eae14
cmp dword [edi + 0x20], 5
jne 0x5eae14
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x5eae1f
mov edi, dword [edi + 0x18]
jmp 0x5eae21
xor edi, edi
push esi
call fcn.005cfea0
pop ecx
jmp 0x5eae96
test ecx, ecx
jg 0x5eadf6
jl 0x5eae34
test eax, eax
jae 0x5eadf6
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.005e50c1
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x5eae57
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x5eadf6
jmp 0x5eae8e
push ebx
call fcn.005df2d7
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x5eadf6
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x5eae96
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x5eae93
mov edi, dword [edi + 0x18]
jmp 0x5eae96
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.005e50c1
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x5ed9c0
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2d10
call fcn.00537800
mov eax, dword [0x68e4d8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x2d10], eax
test eax, eax
je 0x5edb22
cmp dword [ebp + 0xc], 0
je 0x5edb22
push ebx
push esi
xor ebx, ebx
xor esi, esi
push edi
nop dword [eax]
push esi
push str..PhysicalDrive_d
lea eax, [ebp - 0x204]
push 0x200
push eax
call fcn.00407f40
add esp, 0x10
lea eax, [ebp - 0x204]
push 0
push 0
push 3
push 0
push 3
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x5edb05
push 0x2710
lea eax, [ebp - 0x2cfc]
mov dword [ebp - 0x2d0c], 0
push 0
push eax
mov dword [ebp - 0x2d00], 0
mov dword [ebp - 0x2d08], 0
mov dword [ebp - 0x2d04], 0
call fcn.0058abd0
add esp, 0xc
lea eax, [ebp - 0x2d0c]
push 0
push eax
push 0x2710
lea eax, [ebp - 0x2cfc]
push eax
push 0xc
lea eax, [ebp - 0x2d08]
push eax
push 0x2d1400
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x5edafa
push 0x3e8
lea eax, [ebp - 0x5ec]
push 0
push eax
call fcn.0058abd0
lea eax, [ebp - 0x5ec]
push eax
push 1
push dword [ebp - 0x2ce4]
lea eax, [ebp - 0x2cfc]
push eax
call fcn.005edd10
add esp, 0x1c
lea eax, [ebp - 0x5ec]
push eax
push dword [ebp + 0xc]
push dword [ebp - 0x2d10]
call fcn.005edb40
test eax, eax
mov eax, 1
cmove ebx, eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
jne 0x5edb0f
inc esi
cmp esi, 0x10
jl 0x5eda00
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005367cc
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.005367cc
mov esp, ebp
pop ebp
ret
Function at 0x40be20
Capabilities:
Shutdown system

Disassembly:
add esp, 0xffffffec
cmp dword [0x40d07c], 2
jne 0x40be8d
push esp
push 0x28
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
test eax, eax
jne 0x40be45
call fcn.0040be00
jmp 0x40be9f
lea eax, [esp + 8]
push eax
push 0x40bea4
push 0
call sub.advapi32.dll_LookupPrivilegeValueA
mov dword [esp + 4], 1
mov dword [esp + 0x10], 2
push 0
push 0
push 0
lea eax, [esp + 0x10]
push eax
push 0
mov eax, dword [esp + 0x14]
push eax
call sub.advapi32.dll_AdjustTokenPrivileges
call sub.kernel32.dll_GetLastError_1
test eax, eax
je 0x40be8d
call fcn.0040be00
jmp 0x40be9f
push 0
push 2
call sub.user32.dll_ExitWindowsEx
test eax, eax
jne 0x40be9f
call fcn.0040be00
add esp, 0x14
ret

Function at 0x40beb8
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebx
push esi
push edi
mov edi, eax
mov ebx, edx
dec ebx
test ebx, ebx
jl 0x40befe
inc ebx
xor esi, esi
test esi, esi
je 0x40bed5
push 0xfa
call sub.kernel32.dll_Sleep
mov eax, edi
call fcn.0040341c
push eax
call sub.kernel32.dll_DeleteFileA
test eax, eax
jne 0x40befe
call sub.kernel32.dll_GetLastError_1
cmp eax, 2
je 0x40befe
call sub.kernel32.dll_GetLastError_1
cmp eax, 3
je 0x40befe
inc esi
dec ebx
jne 0x40bec7
pop edi
pop esi
pop ebx
ret

Function at 0x40c2ac
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff84
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x7c], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ecx
mov edi, edx
mov esi, eax
lea ebx, [ebp - 0x78]
xor eax, eax
push ebp
push 0x40c3ae
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x7c]
mov eax, esi
call fcn.0040b540
push dword [ebp - 0x7c]
push 0x40c3c4
push edi
lea eax, [ebp - 8]
mov edx, 3
call fcn.00403318
lea eax, [ebp - 0x4c]
xor ecx, ecx
mov edx, 0x44
call fcn.0040277c
mov dword [ebp - 0x4c], 0x44
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x4c]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 8]
call fcn.0040341c
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
jne 0x40c33a
mov al, 0x5a
call fcn.0040bf04
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_CloseHandle_1
jmp 0x40c351
push ebx
call sub.user32.dll_TranslateMessage
push ebx
call sub.user32.dll_DispatchMessageA
push 1
push 0
push 0
push 0
push ebx
call sub.user32.dll_PeekMessageA
test eax, eax
jne 0x40c345
push 0xff
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x5c]
push eax
push 1
call sub.user32.dll_MsgWaitForMultipleObjects
dec eax
je 0x40c351
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 0x5c]
push eax
call sub.kernel32.dll_GetExitCodeProcess
mov eax, dword [ebp - 0x5c]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c3b5
lea eax, [ebp - 0x7c]
call fcn.0040317c
lea eax, [ebp - 8]
call fcn.0040317c
ret
Function at 0x40c450
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x40c52f
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
call fcn.0040b5c4
mov eax, dword [ebp - 8]
lea ecx, [ebp - 4]
mov edx, 0x40c548
call fcn.0040bcfc
push 0
mov eax, dword [ebp - 4]
call fcn.0040341c
push eax
call sub.kernel32.dll_CreateDirectoryA
test eax, eax
jne 0x40c4fd
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x18]
mov edx, dword [ebp - 4]
mov al, 0x2a
call fcn.0040baf4
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
lea edx, [ebp - 0x1c]
mov eax, ebx
call fcn.00404e8c
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x10], eax
lea edx, [ebp - 0x20]
mov eax, ebx
call fcn.00405440
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0xc], eax
lea edx, [ebp - 0x14]
mov ecx, 2
mov al, 0x58
call fcn.0040bac4
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, 0x404808
call fcn.00405af0
call fcn.00402e98
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.004031cc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c536
lea eax, [ebp - 0x20]
mov edx, 3
call fcn.0040319c
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040319c
ret

Function at 0x40c558
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffbc
mov edi, eax
lea esi, [esp + 0x28]
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemInfo
mov ebx, edi
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x40c60c
jmp 0x40c601
cmp dword [esi + 0x10], 0x1000
jne 0x40c5ed
test byte [esi + 0x15], 1
jne 0x40c5ed
xor ebx, ebx
mov eax, dword [esi + 0x14]
cmp eax, 1
je 0x40c5ac
cmp eax, 2
je 0x40c5ac
cmp eax, 0x10
je 0x40c5ac
cmp eax, 0x20
jne 0x40c5c1
push esp
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x40c5c1
mov bl, 1
xor ebp, ebp
jmp 0x40c5d2
mov eax, dword [esi]
add eax, ebp
call fcn.0040c550
add ebp, dword [esp + 8]
cmp ebp, dword [esi + 0xc]
jl 0x40c5c5
test bl, bl
je 0x40c5ed
push esp
mov eax, dword [esp + 4]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov ebx, eax
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x40c60c
mov eax, dword [esi + 4]
cmp eax, edi
je 0x40c584
add esp, 0x44
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x44a520
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0xe10878]
xor edx, edx
cmp eax, edx
jne 0x44a546
xor eax, eax
mov byte [eax + 0xe10778], al
inc eax
cmp eax, 0x100
jl 0x44a52e
mov dword [0xe10878], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0xe10778
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x44a5d7
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x44a5aa
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x44a578
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x44a650
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x44a6a3
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x44a68a
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x44e940
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x68
mov eax, dword [esp + 0x78]
push ebx
push esi
cmp eax, 1
push edi
mov dword [esp + 0x14], ecx
jl 0x44eb61
cmp eax, 8
jg 0x44eb61
cmp dword [esp + 0x8c], 2
jl 0x44eb61
mov eax, dword [esp + 0x7c]
mov esi, dword [eax]
mov edi, dword [eax + 4]
mov ecx, dword [eax + 8]
mov dword [esp + 0x6c], ecx
sub ecx, esi
mov ebx, dword [eax + 0xc]
mov dword [esp + 0x7c], ecx
test ecx, ecx
mov dword [esp + 0x70], ebx
jle 0x44eb61
sub ebx, edi
test ebx, ebx
mov dword [esp + 0x20], ebx
jle 0x44eb61
mov eax, dword [esp + 0x80]
test eax, eax
je 0x44e9c7
mov edx, dword [eax]
mov dword [esp + 0x44], edx
mov edx, dword [eax + 4]
mov dword [esp + 0x48], edx
mov edx, dword [eax + 8]
mov dword [esp + 0x4c], edx
mov eax, dword [eax + 0xc]
mov dword [esp + 0x50], eax
xor edx, edx
push ebp
test ebx, ebx
mov dword [esp + 0x1c], 1
mov dword [esp + 0x14], edx
jle 0x44eb4a
mov ebp, dword [0x69944c]
mov eax, ebx
mov dword [esp + 0x10], 0x32
sub eax, edx
cmp eax, 0x32
jg 0x44e9f9
mov dword [esp + 0x10], eax
xor eax, eax
test ecx, ecx
jle 0x44eb31
mov ebx, dword [esp + 0x10]
add ebx, edx
mov dword [esp + 0x20], ebx
sub ecx, eax
cmp ecx, 0x32
jle 0x44ea19
mov ecx, 0x32
lea ebx, [ecx + eax]
mov ecx, dword [esp + 0x20]
push ecx
push ebx
push edx
lea edx, [esp + 0x34]
push eax
push edx
call dword [0x699460]
push edi
lea eax, [esp + 0x2c]
push esi
push eax
call ebp
mov eax, dword [esp + 0x84]
test eax, eax
je 0x44ea58
lea ecx, [esp + 0x48]
lea edx, [esp + 0x28]
push ecx
lea eax, [esp + 0x2c]
push edx
push eax
call dword [0x699458]
lea ecx, [esp + 0x28]
push ecx
call dword [0x699418]
test eax, eax
jne 0x44eb18
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x38], edx
mov edx, dword [esp + 0x34]
mov dword [esp + 0x40], ecx
mov eax, edi
mov ecx, esi
mov dword [esp + 0x44], edx
neg eax
neg ecx
push eax
lea edx, [esp + 0x3c]
push ecx
push edx
call ebp
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x60], edx
lea edx, [esp + 0x58]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x44]
push edx
mov edx, dword [esp + 0x94]
mov dword [esp + 0x60], ecx
mov ecx, dword [esp + 0x78]
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x74]
push edx
mov edx, dword [esp + 0x94]
sub ecx, edi
sub eax, esi
push edx
push ecx
mov ecx, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x9c]
push eax
call fcn.0044df50
cmp eax, 1
jne 0x44eb42
mov ecx, dword [esp + 0x94]
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x80]
push edx
push eax
push ecx
mov ecx, dword [esp + 0x28]
call fcn.0044e800
mov ecx, dword [esp + 0x80]
mov edx, dword [esp + 0x14]
mov eax, ebx
cmp eax, ecx
jl 0x44ea0d
mov ebx, dword [esp + 0x24]
add edx, dword [esp + 0x10]
cmp edx, ebx
mov dword [esp + 0x14], edx
jge 0x44eb4a
jmp 0x44e9e4
mov dword [esp + 0x1c], 0
mov ecx, dword [esp + 0x18]
call fcn.0044db50
mov eax, dword [esp + 0x1c]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x68
ret 0x1c
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x68
ret 0x1c
Function at 0x451400
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x18
mov eax, dword [esp + 0x1c]
push ebx
push ebp
push esi
xor esi, esi
xor ecx, ecx
mov si, word [eax + 8]
mov cx, word [eax + 4]
xor ebp, ebp
xor edx, edx
mov bp, word [eax + 0xa]
mov dx, word [eax + 6]
sub esi, ecx
sub ebp, edx
inc esi
xor ebx, ebx
inc ebp
cmp esi, ebx
mov dword [esp + 0x14], esi
jle 0x451598
cmp ebp, ebx
jle 0x451598
mov eax, esi
push edi
cdq
and edx, 7
add eax, edx
mov edi, eax
mov eax, esi
sar edi, 3
and eax, 0x80000007
mov dword [esp + 0x10], edi
jns 0x45145e
dec eax
or eax, 0xfffffff8
inc eax
je 0x451465
inc edi
mov dword [esp + 0x10], edi
mov ecx, edi
and ecx, 0x80000001
jns 0x451474
dec ecx
or ecx, 0xfffffffe
inc ecx
je 0x45147b
inc edi
mov dword [esp + 0x10], edi
push 0x18
call fcn.0068a225
add esp, 4
cmp eax, ebx
je 0x45149c
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov dword [eax + 0x14], ebx
mov ebx, eax
mov eax, edi
mov dword [esp + 0x14], ebx
imul eax, ebp
push eax
mov dword [ebx], 7
mov dword [ebx + 4], esi
mov dword [ebx + 8], ebp
mov dword [ebx + 0x14], eax
call fcn.0068a225
mov ecx, dword [ebx + 0x14]
mov edi, eax
mov edx, ecx
xor eax, eax
shr ecx, 2
mov dword [ebx + 0x10], edi
add esp, 4
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x2c]
test ebp, ebp
lea edx, [eax + 0x80]
jle 0x45158e
xor eax, eax
mov dword [esp + 0x20], ebp
mov dword [esp + 0x1c], eax
mov ebp, dword [ebx + 0x10]
xor ecx, ecx
add ebp, eax
mov dword [esp + 0x2c], ecx
test esi, esi
jle 0x451575
mov al, byte [edx]
cmp al, 0xc0
jbe 0x451561
and eax, 0xff
sub eax, 0xc0
inc edx
mov esi, eax
mov dword [esp + 0x24], edx
cmp esi, 1
jle 0x451556
xor eax, eax
mov ecx, esi
mov al, byte [edx]
mov edx, ecx
mov bl, al
mov edi, ebp
mov bh, bl
dec esi
mov eax, ebx
shl eax, 0x10
mov ax, bx
mov ebx, dword [esp + 0x14]
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
mov edx, dword [esp + 0x24]
and ecx, 3
add ebp, esi
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x2c]
lea ecx, [eax + esi*8]
mov esi, dword [esp + 0x18]
jmp 0x451564
mov al, byte [edx]
mov esi, dword [esp + 0x18]
mov byte [ebp], al
jmp 0x451564
mov byte [ebp], al
inc ebp
add ecx, 8
inc edx
cmp ecx, esi
mov dword [esp + 0x2c], ecx
jl 0x451500
mov eax, dword [esp + 0x1c]
mov edi, dword [esp + 0x10]
mov ecx, dword [esp + 0x20]
add eax, edi
dec ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ecx
jne 0x4514f1
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x18
ret
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x18
ret