joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42ced0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0xc
mov eax, dword [esp + 0x20]
mov esi, dword [eax]
test esi, esi
mov dword [esp], esi
je 0x42cf70
mov eax, dword [eax + 4]
mov edi, 0xffffffff
mov ebp, 0xffffffff
xor esi, esi
mov dword [esp + 4], eax
nop
lea esi, [esi]
mov eax, dword [esp + 4]
mov edx, dword [eax + esi*4]
mov eax, edx
mov ecx, edx
xor edx, edi
and ecx, 1
shr eax, 1
or eax, ecx
neg eax
shr eax, 0x1f
mov ecx, eax
neg ecx
neg eax
and ecx, edx
mov edx, esi
add esi, 1
xor edx, ebp
xor edi, ecx
and eax, edx
xor ebp, eax
cmp dword [esp], esi
jne 0x42cf00
shl ebp, 5
add ebp, 1
mov esi, 5
mov ecx, 0x10
xor eax, eax
mov ebx, edi
shr ebx, cl
mov edx, ebx
xor ebx, edi
neg edx
sar edx, 0x1f
and ebx, edx
and edx, ecx
shr ecx, 1
xor edi, ebx
add eax, edx
sub esi, 1
jne 0x42cf45
add esp, 0xc
add eax, ebp
pop ebx
pop esi
pop edi
pop ebp
ret
mov ebp, 0xffffffe1
mov edi, 0xffffffff
jmp 0x42cf39
Function at 0x44d750
Capabilities:
Encode data using base64

Disassembly:
push esi
push ebx
xor edx, edx
sub esp, 0x10
mov ecx, dword [esp + 0x1c]
movsx eax, byte [ecx + edx]
lea ebx, [eax - 0x41]
cmp bl, 0x19
ja 0x44d810
sub eax, 0x41
mov dword [esp + edx*4], eax
add edx, 1
cmp edx, 4
jne 0x44d75b
mov edx, dword [esp]
cmp edx, 0xffffffff
je 0x44d800
mov ecx, dword [esp + 4]
cmp ecx, 0xffffffff
je 0x44d800
mov ebx, dword [esp + 8]
mov esi, dword [esp + 0xc]
cmp ebx, 0xffffffff
je 0x44d850
xor eax, eax
cmp esi, 0xffffffff
setne al
shl ecx, 0xc
shl edx, 0x12
or edx, ecx
and esi, 0x3f
shl ebx, 6
or edx, esi
and ebx, 0xfc0
mov esi, dword [esp + 0x20]
or edx, ebx
add eax, 2
mov ecx, edx
shr ecx, 0x10
cmp eax, 3
mov byte [esi + 1], dh
mov byte [esi], cl
jne 0x44d880
mov esi, dword [esp + 0x20]
mov byte [esi + 2], dl
add esp, 0x10
pop ebx
pop esi
ret
lea ebx, [eax - 0x30]
cmp bl, 9
jbe 0x44d820
cmp al, 0x2b
je 0x44d840
cmp al, 0x2f
je 0x44d871
cmp al, 0x3d
je 0x44d830
lea esi, [esi]
lea edi, [edi]
xor eax, eax
add esp, 0x10
pop ebx
pop esi
ret
lea ebx, [eax - 0x61]
cmp bl, 0x19
ja 0x44d7e2
sub eax, 0x47
jmp 0x44d76e
add eax, 4
jmp 0x44d76e
mov eax, 0xffffffff
jmp 0x44d76e
mov eax, 0x3e
jmp 0x44d76e
cmp esi, 0xffffffff
jne 0x44d800
mov eax, dword [esp + 0x20]
shl edx, 0x12
shl ecx, 0xc
or edx, ecx
shr edx, 0x10
mov byte [eax], dl
add esp, 0x10
mov eax, 1
pop ebx
pop esi
ret
mov eax, 0x3f
jmp 0x44d76e
mov eax, 2
jmp 0x44d802

Function at 0x450e50
Capabilities:
Encode data using xor

Disassembly:
push edi
push esi
push ebx
mov ebx, dword [esp + 0x18]
mov esi, dword [esp + 0x10]
mov edi, dword [esp + 0x14]
test ebx, ebx
je 0x450e91
xor edx, edx
xor ecx, ecx
mov esi, esi
lea edi, [edi]
movzx eax, byte [esi + edx]
xor al, byte [edi + edx]
add edx, 1
movzx eax, al
or ecx, eax
cmp ebx, edx
jne 0x450e70
mov eax, 0x100
sub eax, ecx
pop ebx
shr eax, 8
pop esi
pop edi
ret
pop ebx
mov eax, 1
pop esi
pop edi
ret
Function at 0x453790
Capabilities:
Get session user name

Disassembly:
push edi
push esi
push ebx
sub esp, 0x20
cmp byte [0x4659ec], 0
mov eax, dword [0x4659e8]
je 0x453830
test eax, eax
je 0x453920
lea esi, [esp + 0x1c]
mov dword [esp + 0x1c], 0
mov dword [esp + 4], 0
mov dword [esp], 8
mov dword [esp + 8], esi
call eax
sub esp, 0xc
mov eax, dword [esp + 0x1c]
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], eax
call fcn.00450480
mov dword [esp + 8], esi
mov ebx, eax
mov dword [esp + 4], eax
mov dword [esp], 8
call dword [0x4659e8]
sub esp, 0xc
test al, al
je 0x453880
mov dword [esp + 4], 0x40
mov dword [esp], ebx
call sub.msvcrt.dll_strchr
test eax, eax
je 0x453825
mov byte [eax], 0
add esp, 0x20
mov eax, ebx
pop ebx
pop esi
pop edi
ret
mov dword [esp], str.secur32.dll
call fcn.00453a60
mov dword [esp], str.sspicli.dll
mov ebx, eax
call fcn.00453a60
test ebx, ebx
je 0x453900
mov dword [esp + 4], str.GetUserNameExA
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov byte [0x4659ec], 1
sub esp, 8
mov dword [0x4659e8], eax
jmp 0x4537a8
mov dword [esp], ebx
call fcn.00450510
mov dword [esp + 0x1c], 0
mov dword [esp + 4], esi
mov dword [esp], 0
mov edi, dword [sym.imp.ADVAPI32.dll_GetUserNameA]
call edi
sub esp, 8
test eax, eax
je 0x4538f0
mov eax, dword [esp + 0x1c]
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], eax
call fcn.00450480
mov dword [esp + 4], esi
mov ebx, eax
mov dword [esp], eax
call edi
sub esp, 8
test eax, eax
jne 0x453825
mov dword [esp], ebx
xor ebx, ebx
call fcn.00450510
add esp, 0x20
mov eax, ebx
pop ebx
pop esi
pop edi
ret
mov dword [esp + 0x1c], 0x100
mov eax, 0x100
jmp 0x4538ae
mov dword [0x4659e8], 0
mov byte [0x4659ec], 1
lea esi, [esp + 0x1c]
jmp 0x453888
lea esi, [esp + 0x1c]
jmp 0x453888
Function at 0x453930
Capabilities:
Check mutex on windows

Disassembly:
push ebx
sub esp, 0x38
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
call fcn.00453e60
test al, al
je 0x453977
mov eax, dword [esp + 0x44]
mov dword [esp], 0x1f0001
xor ebx, ebx
mov dword [esp + 0xc], eax
lea eax, [esp + 0x20]
mov dword [esp + 8], eax
lea eax, [esp + 0x1c]
mov dword [esp + 4], eax
call fcn.00454400
test al, al
je 0x4539c9
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x40]
lea eax, [esp + 0x24]
mov dword [esp + 0x2c], 0
mov dword [esp + 0x24], 0xc
mov dword [esp + 4], 0
mov dword [esp], eax
mov dword [esp + 0x28], edx
mov dword [esp + 8], ecx
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
sub esp, 0xc
test eax, eax
mov ebx, eax
je 0x453a00
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
sub esp, 8
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4539dd
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
sub esp, 4
mov eax, dword [esp + 0x20]
test eax, eax
je 0x4539f1
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
sub esp, 4
add esp, 0x38
mov eax, ebx
pop ebx
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], eax
call fcn.00454bc0
mov dword [esp + 8], eax
mov eax, dword [esp + 0x40]
mov dword [esp], str.CreateMutex___s___failed:__s
mov dword [esp + 4], eax
call fcn.0044f440
mov edx, dword [esp + 0x44]
mov dword [edx], eax
jmp 0x4539c9
Function at 0x453e70
Capabilities:
Link many functions at runtime

Disassembly:
push esi
push ebx
sub esp, 0x14
movzx ebx, byte [0x465a04]
test bl, bl
je 0x453e90
movzx ebx, byte [0x4659fc]
add esp, 0x14
mov eax, ebx
pop ebx
pop esi
ret
mov dword [esp], str.advapi32.dll
mov byte [0x465a04], 1
call fcn.00453a60
test eax, eax
mov dword [0x465a00], eax
je 0x453fbc
mov dword [esp + 4], str.GetSecurityInfo
mov dword [esp], eax
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
call esi
sub esp, 8
test eax, eax
mov dword [fcn.00465e94], eax
je 0x453fbc
mov eax, dword [0x465a00]
test eax, eax
je 0x453fd0
mov dword [esp + 4], str.SetSecurityInfo
mov dword [esp], eax
call esi
sub esp, 8
test eax, eax
mov dword [0x465e98], eax
je 0x453fbc
mov eax, dword [0x465a00]
test eax, eax
je 0x453ff0
mov dword [esp + 4], str.OpenProcessToken
mov dword [esp], eax
call esi
sub esp, 8
test eax, eax
mov dword [0x465e84], eax
je 0x453fbc
mov eax, dword [0x465a00]
test eax, eax
je 0x453fe0
mov dword [esp + 4], str.GetTokenInformation
mov dword [esp], eax
call esi
sub esp, 8
test eax, eax
mov dword [0x465e90], eax
je 0x453fbc
mov eax, dword [0x465a00]
test eax, eax
je 0x454000
mov dword [esp + 4], str.InitializeSecurityDescriptor
mov dword [esp], eax
call esi
sub esp, 8
test eax, eax
mov dword [0x465e8c], eax
je 0x453fbc
mov eax, dword [0x465a00]
test eax, eax
je 0x454010
mov dword [esp + 4], str.SetSecurityDescriptorOwner
mov dword [esp], eax
call esi
sub esp, 8
test eax, eax
mov dword [0x465e88], eax
je 0x453fbc
mov eax, dword [0x465a00]
test eax, eax
je 0x454020
mov dword [esp + 4], str.SetEntriesInAclA
mov dword [esp], eax
call esi
sub esp, 8
test eax, eax
mov dword [0x465e80], eax
setne bl
mov byte [0x4659fc], bl
add esp, 0x14
mov eax, ebx
pop ebx
pop esi
ret
mov dword [0x465e98], 0
jmp 0x453fbc
mov dword [0x465e90], 0
jmp 0x453fbc
mov dword [0x465e84], 0
jmp 0x453fbc
mov dword [0x465e8c], 0
jmp 0x453fbc
mov dword [0x465e88], 0
jmp 0x453fbc
mov dword [0x465e80], 0
jmp 0x453fbc

Function at 0x454d40
Capabilities:
Get common file path

Disassembly:
mov eax, dword [0x465a1c]
test eax, eax
je 0x454d50
repz ret
push ebx
sub esp, 0x28
mov ebx, dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
jmp 0x454d96
mov dword [esp + 0xc], eax
mov eax, dword [0x465a1c]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 1
mov dword [esp + 8], 1
mov dword [esp + 4], 0x465a18
mov dword [esp], eax
call fcn.00450530
mov dword [0x465a1c], eax
mov edx, dword [0x465a18]
mov dword [esp], eax
mov dword [esp + 4], edx
call ebx
sub esp, 8
cmp dword [0x465a18], eax
jbe 0x454d60
mov eax, dword [0x465a1c]
add esp, 0x28
pop ebx
ret
Function at 0x455280
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
sub esp, 0x30
mov esi, dword [0x465d8c]
test esi, esi
jle 0x455390
mov edi, dword [0x465d90]
xor ebx, ebx
lea edx, [edi + 0xc]
nop
mov ecx, dword [edx]
cmp ecx, eax
ja 0x4552b4
mov edi, dword [edx + 4]
add ecx, dword [edi + 8]
cmp eax, ecx
jb 0x455335
add ebx, 1
add edx, 0x14
cmp ebx, esi
jne 0x4552a0
mov dword [esp], eax
mov ebx, eax
call fcn.00455ac0
test eax, eax
mov edi, eax
je 0x4553b7
mov eax, dword [0x465d90]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call fcn.00455bc0
add eax, dword [edi + 0xc]
mov edx, dword [0x465d90]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp], eax
mov dword [esp + 4], edx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x455397
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x45532e
sub eax, 4
and eax, 0xfffffffb
jne 0x455340
add dword [0x465d8c], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
add ebx, dword [0x465d90]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
mov dword [ebx + 4], eax
mov dword [ebx + 8], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0x40
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x45532e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.00456480
lea esi, [esi]
xor esi, esi
jmp 0x4552be
mov eax, dword [0x465d90]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call fcn.00456480
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call fcn.00456480
mov esi, esi
lea edi, [edi]

Function at 0x455740
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x465db0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x465da8]
sub esp, 4
test ebx, ebx
je 0x455795
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x45578e
test esi, esi
je 0x45578e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x455770
mov dword [esp], 0x465db0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x456480
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call fcn.004563b0
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call fcn.004563b0
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop
nop
nop
nop
push ebp
mov ebp, esp
pop ebp
jmp fcn.004014e0
Function at 0x46d7c0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a225d
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x4cc3d0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x40], esi
mov ebx, 0x7f
mov byte [ebp - 0x24], 0x3c
mov byte [ebp - 0x23], 0x64
mov byte [ebp - 0x22], 0x11
mov byte [ebp - 0x21], 0x7c
mov byte [ebp - 0x20], 0x49
mov byte [ebp - 0x1f], 0x49
mov byte [ebp - 0x1e], 0x5e
mov byte [ebp - 0x1d], 0xd
mov byte [ebp - 0x1c], 0x7c
mov byte [ebp - 0x1b], 0x68
mov byte [ebp - 0x1a], 0x54
mov byte [ebp - 0x19], 0xd
mov byte [ebp - 0x18], 0x14
mov byte [ebp - 0x17], 0x36
mov byte [ebp - 0x16], 0x65
mov byte [ebp - 0x15], 0x4a
mov byte [ebp - 0x14], 0
mov al, byte [ebp - 0x24]
mov byte [ebp - 0x13], 0
cmp byte [ebp - 0x13], 0
jne 0x46d870
mov byte [ebp - 0x13], 1
xor ecx, ecx
nop
mov al, byte [ebp + ecx - 0x24]
movsx eax, al
sub eax, 0x6c
imul eax, eax, 0x13
cdq
idiv ebx
lea eax, [edx + 0x7f]
cdq
idiv ebx
mov byte [ebp + ecx - 0x24], dl
inc ecx
cmp ecx, 0x10
jb 0x46d850
lea ecx, [ebp - 0x24]
mov dword [esi], 0
mov dword [esi + 0x10], 0
lea edx, [ecx + 1]
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
lea ecx, [ecx]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x46d890
sub ecx, edx
lea eax, [ebp - 0x24]
push ecx
push eax
mov ecx, esi
call fcn.0041fc30
mov byte [ebp - 0x38], 0x49
mov byte [ebp - 0x37], 0x49
mov byte [ebp - 0x36], 0x21
mov byte [ebp - 0x35], 0x35
mov byte [ebp - 0x34], 0x21
mov byte [ebp - 0x33], 0x35
mov byte [ebp - 0x32], 0x11
mov byte [ebp - 0x31], 0x35
mov byte [ebp - 0x30], 0x68
mov byte [ebp - 0x2f], 0x7c
mov byte [ebp - 0x2e], 0x6f
mov byte [ebp - 0x2d], 0x6f
mov byte [ebp - 0x2c], 0x64
mov byte [ebp - 0x2b], 0x64
mov byte [ebp - 0x2a], 0x2c
mov byte [ebp - 0x29], 0x11
mov byte [ebp - 0x28], 0
mov al, byte [ebp - 0x38]
mov byte [ebp - 0x27], 0
cmp byte [ebp - 0x27], 0
mov dword [ebp - 4], 0
jne 0x46d923
mov byte [ebp - 0x27], 1
xor ecx, ecx
mov al, byte [ebp + ecx - 0x38]
movsx eax, al
sub eax, 0x6c
imul eax, eax, 0x13
cdq
idiv ebx
lea eax, [edx + 0x7f]
cdq
idiv ebx
mov byte [ebp + ecx - 0x38], dl
inc ecx
cmp ecx, 0x10
jb 0x46d903
lea edx, [ebp - 0x38]
mov dword [esi + 0x18], 0
mov dword [esi + 0x28], 0
lea ecx, [edx + 1]
mov dword [esi + 0x2c], 0xf
mov byte [esi + 0x18], 0
mov al, byte [edx]
inc edx
test al, al
jne 0x46d942
sub edx, ecx
lea eax, [ebp - 0x38]
push edx
push eax
lea ecx, [esi + 0x18]
call fcn.0041fc30
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00472108
mov esp, ebp
pop ebp
ret
Function at 0x405d1c
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x4232d4], 0
push esi
jne 0x405d53
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405d2d
mov dword [ecx*4 + 0x4232d0], eax
inc ecx
cmp ecx, 0x100
jl 0x405d28
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405d84
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x4232d0]
xor eax, esi
inc ecx
dec edx
jne 0x405d66
pop edi
not eax
pop esi
ret 0xc

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
nop
nop
nop
pop eax
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x433030
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43301e
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x401119
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x401127
xor eax, eax
pop ebp
ret
mov eax, dword [ebp + 8]
cmp dword [ebp + 0x10], 8
push esi
push edi
not eax
mov ecx, 0xff
jb 0x401208
mov edi, dword [ebp + 0x10]
push ebx
shr edi, 3
movzx ebx, byte [edx]
mov esi, eax
sub dword [ebp + 0x10], 8
and esi, ecx
xor esi, ebx
mov ebx, eax
shr ebx, 8
mov eax, dword [esi*4 + 0x407198]
xor eax, ebx
inc edx
mov esi, eax
movzx ebx, byte [edx]
and esi, ecx
xor esi, ebx
movzx ebx, byte [edx + 1]
mov esi, dword [esi*4 + 0x407198]
shr eax, 8
xor esi, eax
inc edx
mov eax, esi
and eax, ecx
xor eax, ebx
movzx ebx, byte [edx + 1]
mov eax, dword [eax*4 + 0x407198]
shr esi, 8
xor eax, esi
inc edx
mov esi, eax
and esi, ecx
xor esi, ebx
movzx ebx, byte [edx + 1]
mov esi, dword [esi*4 + 0x407198]
shr eax, 8
xor esi, eax
inc edx
mov eax, esi
and eax, ecx
xor eax, ebx
movzx ebx, byte [edx + 1]
mov eax, dword [eax*4 + 0x407198]
shr esi, 8
xor eax, esi
inc edx
mov esi, eax
and esi, ecx
xor esi, ebx
movzx ebx, byte [edx + 1]
mov esi, dword [esi*4 + 0x407198]
shr eax, 8
xor esi, eax
inc edx
mov eax, esi
and eax, ecx
xor eax, ebx
movzx ebx, byte [edx + 1]
mov eax, dword [eax*4 + 0x407198]
shr esi, 8
xor eax, esi
inc edx
mov esi, eax
and esi, ecx
xor esi, ebx
shr eax, 8
mov esi, dword [esi*4 + 0x407198]
xor eax, esi
inc edx
dec edi
jne 0x401144
pop ebx
cmp dword [ebp + 0x10], 0
je 0x401229
movzx edi, byte [edx]
mov esi, eax
and esi, ecx
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x407198]
xor eax, esi
inc edx
dec dword [ebp + 0x10]
jne 0x40120e
pop edi
pop esi
not eax
pop ebp
ret
Function at 0x402f4d
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
push ebx
mov ebx, dword [sym.imp.KERNEL32.DLL_SetFilePointer]
push esi
and dword [ebp - 8], 0
push edi
lea edi, [ecx + eax]
push 2
push 0
push edi
mov esi, 0xffff
push dword [ebp + 8]
mov dword [ebp - 4], esi
mov dword [ebp - 0xc], edi
call ebx
cmp eax, 0xffffffff
je 0x402fa6
cmp edi, esi
jae 0x402f8a
mov dword [ebp - 4], edi
push 4
mov edi, 0x404
push 0x1000
push edi
push 0
call dword [sym.imp.KERNEL32.DLL_VirtualAlloc]
test eax, eax
mov dword [ebp + 0xc], eax
jne 0x402fad
xor eax, eax
jmp 0x40305b
push 4
pop eax
cmp dword [ebp - 4], eax
jbe 0x403048
jmp 0x402fc3
mov eax, dword [ebp + 0x10]
mov edi, 0x404
mov ecx, dword [ebp - 4]
add eax, 0x400
cmp eax, ecx
mov dword [ebp + 0x10], ecx
ja 0x402fd5
mov dword [ebp + 0x10], eax
mov eax, dword [ebp - 0xc]
mov esi, eax
sub esi, dword [ebp + 0x10]
sub eax, esi
cmp eax, edi
ja 0x402fe5
mov edi, eax
push 0
push 0
push esi
push dword [ebp + 8]
call ebx
cmp eax, 0xffffffff
je 0x403048
lea eax, [ebp - 0x10]
push 0
push eax
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x403048
lea eax, [edi - 3]
mov ecx, eax
dec eax
test ecx, ecx
jle 0x40303c
mov ecx, dword [ebp + 0xc]
cmp byte [eax + ecx], 0x50
jne 0x40300e
cmp byte [eax + ecx + 1], 0x4b
jne 0x40300e
cmp byte [eax + ecx + 2], 5
jne 0x40300e
cmp byte [eax + ecx + 3], 6
jne 0x40300e
add eax, esi
test eax, eax
mov dword [ebp - 8], eax
jne 0x403048
mov eax, dword [ebp - 4]
cmp dword [ebp + 0x10], eax
jb 0x402fbb
push 0x8000
push 0
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_VirtualFree]
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x403857
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
push esi
cmp eax, ebx
push edi
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
jne 0x403872
push 0xffffffffffffff9a
jmp 0x403880
mov esi, dword [eax + 0x7c]
cmp esi, ebx
je 0x40386e
cmp dword [esi + 4], ebx
jne 0x403886
push 0xffffffffffffff9c
pop eax
jmp 0x4039c0
mov ecx, dword [ebp + 0x10]
cmp ecx, ebx
je 0x4039b4
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x18], ecx
mov dword [esi + 0x14], eax
mov eax, dword [esi + 0x60]
cmp ecx, eax
jbe 0x4038a4
mov dword [esi + 0x18], eax
cmp dword [esi + 0x18], ebx
jbe 0x4039af
cmp dword [esi + 0xc], ebx
jne 0x40390e
mov eax, dword [esi + 0x5c]
cmp eax, ebx
jbe 0x40390e
mov edi, 0x4000
cmp eax, edi
jae 0x4038cc
mov edi, eax
cmp edi, ebx
je 0x4039b4
mov eax, dword [esi + 0x68]
push ebx
add eax, dword [esi + 0x40]
push ebx
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
cmp eax, 0xffffffff
je 0x4039b8
lea eax, [ebp + 0x10]
push ebx
push eax
push edi
push dword [esi + 4]
push dword [esi]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x4039b8
mov eax, dword [esi + 4]
add dword [esi + 0x40], edi
sub dword [esi + 0x5c], edi
mov dword [esi + 8], eax
mov dword [esi + 0xc], edi
cmp dword [esi + 0x64], ebx
jne 0x40395f
mov eax, dword [esi + 0x18]
mov edi, dword [esi + 0xc]
cmp eax, edi
jae 0x40391f
mov edi, eax
xor eax, eax
cmp edi, ebx
jbe 0x403936
mov ecx, dword [esi + 8]
mov edx, dword [esi + 0x14]
mov cl, byte [ecx + eax]
mov byte [edx + eax], cl
inc eax
cmp eax, edi
jb 0x403925
push edi
push dword [esi + 0x14]
push dword [esi + 0x54]
call fcn.00401119
sub dword [esi + 0x60], edi
sub dword [esi + 0xc], edi
sub dword [esi + 0x18], edi
add dword [esi + 0x14], edi
add dword [esi + 8], edi
add dword [esi + 0x1c], edi
add esp, 0xc
add dword [ebp - 4], edi
mov dword [esi + 0x54], eax
jmp 0x4039a1
mov eax, dword [esi + 0x14]
mov ebx, dword [esi + 0x1c]
mov dword [ebp + 8], eax
lea eax, [esi + 8]
push 2
push eax
call fcn.00402547
mov edi, dword [esi + 0x1c]
mov dword [ebp - 8], eax
sub edi, ebx
push edi
push dword [ebp + 8]
push dword [esi + 0x54]
call fcn.00401119
sub dword [esi + 0x60], edi
add dword [ebp - 4], edi
add esp, 0x14
cmp dword [ebp - 8], 1
mov dword [esi + 0x54], eax
je 0x4039af
cmp dword [ebp - 8], 0
jne 0x4039bd
xor ebx, ebx
cmp dword [esi + 0x18], ebx
ja 0x4038ad
cmp dword [ebp - 8], ebx
jne 0x4039bd
mov eax, dword [ebp - 4]
jmp 0x4039c0
xor eax, eax
jmp 0x4039c0
or eax, 0xffffffff
jmp 0x4039c0
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret