joyce8/EMBER2024-capa huggingface dataset:
Function at 0x484a30
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x5ad184
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6b06f8]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x30]
xor eax, eax
mov dword [esp + 0x18], eax
cmp dword [ebp], eax
jne 0x484a6b
call fcn.00483d50
mov dword [esp + 0x14], eax
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x38]
push eax
mov ebx, ebp
call fcn.00484d90
mov ebx, eax
push ebx
call fcn.00563cac
add esp, 4
cmp eax, 6
jne 0x484b66
cmp dword [esp + 0x14], 0x3e8
jg 0x484b66
cmp dword [esp + 0x30], 3
jg 0x484b66
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push 8
mov edi, eax
call fcn.005737a7
mov esi, eax
add esp, 4
mov dword [esp + 0x1c], esi
mov dword [esp + 0x28], 1
test esi, esi
je 0x484aec
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov dword [esi], edi
mov dword [esi + 4], eax
jmp 0x484aee
xor esi, esi
mov byte [esp + 0x28], 0
mov ecx, dword [ebp]
push esi
push 0x483b90
push ecx
call fcn.0054dac2
add esp, 0xc
push 1
push 0x1388
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObjectEx]
cmp eax, 0xc0
je 0x484b05
test eax, eax
je 0x484b22
inc dword [esp + 0x30]
mov edx, dword [ebp]
push 0
push 0
push edx
call fcn.0054dac2
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [esp + 0x14]
push ebx
call fcn.0055d5a7
mov eax, dword [esp + 0x3c]
add esp, 4
push eax
mov ebx, ebp
call fcn.00484d90
mov ebx, eax
push ebx
call fcn.00563cac
add esp, 4
cmp eax, 6
je 0x484a93
push ebx
cmp eax, 0x65
jne 0x484bb3
mov ecx, dword [ebp]
mov esi, dword [esp + 0x38]
mov dword [esi], ecx
mov dword [esi + 4], ebx
mov byte [esi + 8], 1
call fcn.00537f5f
add esp, 4
mov dword [esi + 0xc], eax
mov byte [esi + 0x10], 1
mov dword [esp + 0x28], 0
mov dword [esp + 0x18], 1
mov eax, esi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 0xc
cmp eax, 0x64
jne 0x484be9
mov edx, dword [ebp]
mov esi, dword [esp + 0x38]
mov dword [esi], edx
mov dword [esi + 4], ebx
mov byte [esi + 8], 0
call fcn.00537f5f
mov dword [esi + 0xc], eax
mov eax, 1
add esp, 4
mov byte [esi + 0x10], al
mov dword [esp + 0x28], 0
mov dword [esp + 0x18], eax
jmp 0x484b9b
call fcn.0055d5a7
mov esi, eax
mov eax, dword [ebp]
push eax
call fcn.00546263
add esp, 8
push 0x687b04
lea ecx, [esp + 0x3c]
push ecx
mov dword [esp + 0x40], esi
call fcn.00578185
int3
Function at 0x48cf50
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5b29f9
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x6b06f8]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
push edx
mov edx, dword [esp + 0x30]
push edx
mov edx, dword [esp + 0x30]
mov dword [esp + 0x10], 0
mov eax, dword [eax]
mov ecx, dword [eax + 4]
mov eax, dword [eax]
push edx
push ecx
push eax
mov eax, dword [esp + 0x30]
push esi
push eax
call fcn.0048cfd0
mov dword [esp + 0x14], 0
mov dword [esp + 8], 1
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret 0x14

Function at 0x4903b0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x5acd0d
mov eax, dword fs:[0]
push eax
sub esp, 0x814
mov eax, dword [0x6b06f8]
xor eax, esp
mov dword [esp + 0x810], eax
push edi
mov eax, dword [0x6b06f8]
xor eax, esp
push eax
lea eax, [esp + 0x81c]
mov dword fs:[0], eax
xor edi, edi
mov dword [esp + 0x824], edi
mov dword [esp + 0x10], edi
mov eax, dword [0x6c7718]
mov edx, dword [eax + 0xc]
mov ecx, 0x6c7718
mov dword [esp + 0x14], esi
call edx
add eax, 0x10
mov dword [esi], eax
mov dword [esp + 0x824], edi
lea eax, [esp + 8]
push eax
push 0x20119
push edi
push str.SOFTWAREMicrosoftWindowsCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x24], 1
mov dword [esp + 0x1c], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4904a7
mov eax, dword [esp + 8]
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x1c]
push edx
push edi
push edi
push str.ProgramFilesDir
push eax
mov dword [esp + 0x24], 0x400
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x49049c
mov eax, dword [esp + 0xc]
cmp eax, edi
je 0x49049c
shr eax, 1
xor ecx, ecx
mov word [esp + eax*2 + 0x18], cx
lea eax, [esp + 0x18]
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x490480
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x1c]
push edx
mov eax, esi
call fcn.0040b33c
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [esp + 0x81c]
mov dword fs:[0], ecx
pop ecx
pop edi
mov ecx, dword [esp + 0x810]
xor ecx, esp
call fcn.0057372c
add esp, 0x820
ret
Function at 0x4932a0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x5bc1fa
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x6b06f8]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
push edx
mov edx, dword [esp + 0x30]
push edx
mov edx, dword [esp + 0x30]
mov dword [esp + 0x14], 0
mov eax, dword [eax]
mov ecx, dword [eax + 4]
mov eax, dword [eax]
push edx
push ecx
push eax
push esi
call fcn.00493320
add esp, 0x18
mov dword [esp + 0x18], 0
mov dword [esp + 0xc], 1
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x14
ret

Function at 0x496440
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x5aa5fc
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x6b06f8]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, dword [esp + 0x24]
push esi
call fcn.00498410
xor edi, edi
mov dword [esp + 0x1c], edi
lea eax, [esi + 0x18]
push eax
call fcn.00498410
mov byte [esp + 0x1c], 1
lea eax, [esi + 0x50]
mov dword [esi + 0x30], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x44], edi
mov dword [esi + 0x48], edi
mov dword [esi + 0x4c], edi
mov dword [esp + 0xc], eax
mov dword [eax], 0xffffffff
mov byte [esp + 0x1c], 2
mov dword [eax + 4], edi
mov byte [esp + 0x1c], 3
add eax, 8
mov dword [esp + 0x10], eax
mov dword [eax], edi
mov dword [esp + 0x1c], 0xffffffff
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x14
ret 4
Function at 0x4968f0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5bd98a
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x6b06f8]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
push eax
mov eax, dword [esp + 0x2c]
push ecx
mov ecx, dword [esp + 0x2c]
push edx
mov edx, dword [esp + 0x2c]
push eax
push ecx
push edx
push esi
mov dword [esp + 0x24], 0
call fcn.00491ee0
add esp, 0x1c
mov dword [esp + 0x14], 0
mov dword [esp + 8], 1
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret
Function at 0x496c90
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5b2732
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x6b06f8]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [ebp + 8]
push eax
lea ecx, [esp + 0x24]
xor ebx, ebx
push ecx
mov byte [esp + 0x1b], bl
call fcn.004b0830
mov dword [esp + 0x38], ebx
mov eax, dword [esp + 0x20]
cmp eax, 0xffffffff
je 0x496db8
lea edx, [esp + 0x18]
push edx
push eax
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp dword [esp + 0x18], ebx
ja 0x496d08
cmp edi, 0x10
jbe 0x496db8
mov eax, dword [esp + 0x28]
push 4
push str.MSDB
push eax
call fcn.00578964
add esp, 0xc
test eax, eax
jne 0x496db8
mov ebx, dword [esp + 0x28]
add edi, 0xfffffffc
lea ecx, [esp + 0x14]
push edi
add ebx, 4
push ecx
call fcn.00483a10
add esp, 8
mov byte [esp + 0x38], 1
mov eax, dword [esp + 0x14]
cmp dword [eax], 0
je 0x496d8a
cmp dword [eax + 4], 0
je 0x496d8a
lea ebx, [esi + 8]
mov edi, ebx
call fcn.00496830
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 4]
mov eax, dword [eax]
mov edi, dword [esi]
push 1
push 0
push ecx
push eax
call fcn.0046eb10
add esp, 0x10
test al, al
je 0x496d8a
mov esi, dword [esi]
push esi
mov eax, ebx
call fcn.004964e0
test al, al
je 0x496d8a
mov byte [esp + 0x13], 1
mov byte [esp + 0x38], 0
mov eax, dword [esp + 0x14]
dec dword [eax + 8]
mov esi, eax
add eax, 8
cmp dword [eax], 0
jne 0x496db8
xor edi, edi
call fcn.00428c7e
mov edx, dword [esp + 0x14]
push edx
call fcn.00573721
add esp, 4
mov dword [esp + 0x14], edi
mov dword [esp + 0x38], 0xffffffff
lea eax, [esp + 0x20]
push eax
call fcn.004b09b0
mov al, byte [esp + 0x13]
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4993a0
Capabilities:
Hash data with md5

Disassembly:
xor ecx, ecx
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret
Function at 0x49c870
Capabilities:
Hash data with md5

Disassembly:
push 0xffffffffffffffff
push 0x5b2681
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x6b06f8]
xor eax, esp
mov dword [esp + 0x64], eax
push ebp
push esi
push edi
mov eax, dword [0x6b06f8]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x88]
mov dword [esp + 0x14], 0
xor eax, eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x8c]
push ecx
lea esi, [esp + 0x20]
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], 0x67452301
mov dword [esp + 0x24], 0xefcdab89
mov dword [esp + 0x28], 0x98badcfe
mov dword [esp + 0x2c], 0x10325476
call fcn.0042c709
add esp, 4
lea eax, [esp + 0x10]
push eax
mov ecx, esi
push ecx
call fcn.0049c7a0
mov esi, 1
mov dword [esp + 0x80], esi
push eax
push ebp
call fcn.004711c0
add esp, 8
mov dword [esp + 0x14], esi
mov byte [esp + 0x80], 0
mov eax, dword [esp + 0x10]
dec dword [eax + 8]
mov esi, eax
add eax, 8
cmp dword [eax], 0
jne 0x49c94a
xor edi, edi
call fcn.00428c7e
mov edx, dword [esp + 0x10]
push edx
call fcn.00573721
add esp, 4
mov dword [esp + 0x10], edi
mov eax, ebp
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x64]
xor ecx, esp
call fcn.0057372c
add esp, 0x74
ret

Function at 0x49c970
Capabilities:
Encode data using xor

Disassembly:
push ebx
push edi
mov edi, eax
mov ebx, ecx
test edi, edi
jbe 0x49c9b5
push ebp
jmp 0x49c980
mov edx, dword [esi + 4]
movzx ebp, byte [ebx]
mov ecx, dword [esi]
mov eax, edx
shr eax, 0x18
shld edx, ecx, 8
xor eax, ebp
and eax, 0xff
xor edx, dword [eax*8 + 0x67171c]
shl ecx, 8
xor ecx, dword [eax*8 + 0x671718]
dec edi
inc ebx
mov dword [esi], ecx
mov dword [esi + 4], edx
test edi, edi
ja 0x49c980
pop ebp
pop edi
pop ebx
ret
Function at 0x49ed10
Capabilities:
Delete file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5aa3e0
mov eax, dword fs:[0]
push eax
sub esp, 0x78
push ebx
push esi
push edi
mov eax, dword [0x6b06f8]
xor eax, esp
push eax
lea eax, [esp + 0x88]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov eax, dword [esi]
xor ebx, ebx
push eax
mov byte [esp + 0x1b], bl
call fcn.004a0570
add esp, 4
cmp eax, ebx
jne 0x49eec9
push 0x54
lea eax, [esp + 0x34]
push ebx
push eax
call fcn.005783f0
mov eax, dword [esi]
add esp, 0xc
push ebx
push ebx
lea ecx, [esp + 0x34]
push ebx
push ecx
call fcn.0049fd30
add esp, 0x10
test eax, eax
jne 0x49eea3
mov edx, dword [ebp + 0xc]
push ebx
push ebx
push 2
push ebx
push 1
push 0x40000000
push edx
mov dword [esp + 0x34], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [esp + 0x28], esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x90], ebx
cmp esi, 0xffffffff
je 0x49ee53
mov edi, 0x10000
lea ebx, [esp + 0x20]
call fcn.0042694e
mov byte [esp + 0x90], 1
mov ebx, dword [esp + 0x20]
mov eax, dword [ebx]
mov edi, dword [ebp + 8]
mov ecx, dword [ebx + 4]
push eax
mov eax, dword [edi]
call fcn.004a0740
add esp, 4
test eax, eax
jle 0x49ee24
push 0
lea edx, [esp + 0x20]
push edx
mov dword [esp + 0x24], eax
mov ecx, dword [ebx]
push eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x49ee24
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x49ee24
add dword [esp + 0x18], eax
mov eax, dword [ebx]
mov ecx, dword [ebx + 4]
push eax
mov eax, dword [edi]
call fcn.004a0740
add esp, 4
test eax, eax
jg 0x49edea
push esi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov byte [esp + 0x90], 0
add dword [ebx + 8], 0xffffffff
jne 0x49ee53
xor edi, edi
mov esi, ebx
call fcn.00428c7e
push ebx
call fcn.00573721
mov esi, dword [esp + 0x2c]
add esp, 4
mov dword [esp + 0x20], edi
mov ecx, dword [esp + 0x18]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
cmp ecx, dword [esp + 0x4c]
jne 0x49ee72
cmp eax, dword [esp + 0x50]
jne 0x49ee72
mov byte [esp + 0x17], 1
jmp 0x49ee8c
cmp esi, 0xffffffff
je 0x49ee7a
push esi
call edi
mov edx, dword [ebp + 0xc]
push edx
mov dword [esp + 0x28], 0xffffffff
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [esp + 0x90], 0xffffffff
mov eax, dword [esp + 0x24]
cmp eax, 0xffffffff
je 0x49eea3
push eax
call edi
mov eax, dword [ebp + 8]
mov edi, dword [eax]
call fcn.004a09c0
mov al, byte [esp + 0x17]
mov ecx, dword [esp + 0x88]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov al, bl
mov ecx, dword [esp + 0x88]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4a0bc0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x5acb2f
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x6b06f8]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, dword [esp + 0x20]
push esi
call fcn.00498410
xor ecx, ecx
mov dword [esp + 0x18], ecx
lea eax, [esi + 0x30]
mov dword [esi + 0x18], ecx
mov dword [esi + 0x20], ecx
mov dword [esi + 0x24], ecx
mov dword [esi + 0x28], ecx
mov dword [esi + 0x2c], ecx
mov dword [esp + 8], eax
mov dword [eax], 0xffffffff
mov byte [esp + 0x18], 1
mov dword [eax + 4], ecx
mov byte [esp + 0x18], 2
add eax, 8
mov dword [esp + 0xc], eax
mov dword [eax], ecx
mov dword [esp + 0x18], 0xffffffff
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x14
ret 4
Function at 0x4a1300
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5aca88
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x6b06f8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], 0
lea eax, [ebp - 0x14]
push eax
call fcn.0040850b
mov byte [ebp - 4], 1
push str..X:
lea eax, [ebp - 0x14]
call fcn.00417833
add esp, 4
mov ecx, dword [ebp + 8]
push ecx
mov ebx, 4
lea eax, [ebp - 0x14]
call fcn.00426685
push 0x250
call fcn.005737a7
add esp, 4
mov esi, eax
xor ebx, ebx
cmp esi, ebx
je 0x4a1386
push 0x250
push ebx
push esi
call fcn.005783f0
add esp, 0xc
jmp 0x4a1388
xor esi, esi
push 0x250
push ebx
push esi
call fcn.005783f0
add esp, 0xc
push ebx
push ebx
push 3
push ebx
push 3
push closesocket
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x4a149a
mov edi, 0x200
mov dword [ebp - 0x18], edi
push ebx
lea eax, [ebp - 0x18]
push eax
push edi
lea ecx, [esi + 0x20]
push ecx
mov edx, dword [esi]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4a149a
cmp dword [ebp - 0x18], edi
jne 0x4a149a
push 4
lea eax, [esi + 0x23]
push eax
push str.NTFS
call fcn.00578964
add esp, 0xc
test eax, eax
jne 0x4a149a
mov dword [esi + 4], 1
movzx ecx, byte [esi + 0x2d]
movzx edx, word [esi + 0x2b]
imul ecx, edx
mov dword [esi + 0x224], ecx
mov eax, dword [esi + 0x60]
cmp eax, 0x80
jae 0x4a1426
imul eax, ecx
jmp 0x4a1434
mov ecx, 0x100
sub ecx, eax
mov eax, 1
shl eax, cl
mov dword [esi + 0x220], eax
mov dword [esi + 0x228], ebx
mov eax, dword [esi + 0x224]
push ebx
push eax
mov ecx, dword [esi + 0x54]
push ecx
mov edx, dword [esi + 0x50]
push edx
call fcn.00578e90
mov dword [esi + 0x238], eax
mov dword [esi + 0x23c], edx
mov dword [esi + 0x240], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0x22c], ebx
mov ax, word [ebp + 8]
mov word [esi + 0x14], ax
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x14]
call fcn.004085a2
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
call fcn.00573721
add esp, 4
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x14]
call fcn.004085a2
mov dword [ebp - 4], 0xffffffff
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4a1580
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x18
push ebx
push ebp
push esi
test edi, edi
je 0x4a1671
cmp dword [edi + 4], 1
jne 0x4a1671
mov eax, dword [edi + 0x238]
mov ecx, dword [edi + 0x23c]
push 0
lea edx, [esp + 0x20]
push edx
push eax
mov dword [esp + 0x24], eax
mov eax, dword [edi]
push eax
mov dword [esp + 0x2c], ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, dword [edi + 0x224]
push ecx
call fcn.005726e9
mov ecx, dword [edi]
add esp, 4
push 0
mov esi, eax
mov eax, dword [edi + 0x224]
lea edx, [esp + 0x18]
push edx
push eax
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, esi
call fcn.004a18a0
cmp dword [esi], 0x454c4946
jne 0x4a168a
movzx ecx, word [esi + 0x14]
movzx eax, word [esi + 0x28]
mov edx, 8
add ecx, esi
mov ebx, edx
cmp dx, ax
jb 0x4a1612
movzx ebx, ax
mov ax, word [esi + 0x16]
mov ebp, dword [esp + 0x10]
xor edx, edx
mov word [esi + 6], ax
test ebx, ebx
jle 0x4a1666
mov eax, dword [ecx]
test eax, eax
jl 0x4a1666
cmp eax, 0x100
jg 0x4a1666
sub eax, 0x20
je 0x4a167c
sub eax, 0x60
je 0x4a1646
sub eax, 0x30
jne 0x4a1648
mov dword [esp + 0x10], ecx
jmp 0x4a1648
mov ebp, ecx
mov eax, dword [ecx + 4]
test eax, eax
jbe 0x4a1658
cmp eax, dword [esi + 0x18]
jae 0x4a1658
add ecx, eax
jmp 0x4a1661
cmp byte [ecx + 8], 1
jne 0x4a1661
add ecx, 0x48
inc edx
cmp edx, ebx
jl 0x4a1624
test ebp, ebp
je 0x4a1671
cmp dword [esp + 0x10], 0
jne 0x4a168e
xor eax, eax
xor edx, edx
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
mov eax, 3
xor edx, edx
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
mov ebp, dword [esp + 0x10]
mov ecx, dword [ebp + 0x30]
xor edx, edx
mov eax, ecx
div dword [edi + 0x220]
mov dword [edi + 0x240], esi
mov dword [edi + 0x22c], ecx
pop esi
mov dword [edi + 0x230], eax
mov eax, dword [ebp + 0x30]
mov edx, dword [ebp + 0x34]
pop ebp
pop ebx
add esp, 0x18
ret
Function at 0x4a17c0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x14
mov edx, dword [esp + 0x18]
push ebx
push ebp
push edi
mov edi, ecx
mov ecx, dword [esp + 0x28]
push ecx
xor ebp, ebp
push edx
mov ebx, eax
mov eax, dword [edi + 0x224]
push ebp
push eax
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebp
call fcn.00578e90
push ebp
lea ecx, [esp + 0x20]
push ecx
mov dword [esp + 0x24], edx
mov edx, dword [edi]
push eax
push edx
mov dword [esp + 0x28], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, ebx
shr eax, 0xa
cmp eax, 1
jb 0x4a1857
mov dword [esp + 0x24], eax
shl eax, 0xa
mov dword [esp + 0x14], eax
jmp 0x4a1820
mov ecx, dword [edi + 0x224]
mov edx, dword [edi]
push 0
lea eax, [esp + 0x14]
push eax
shl ecx, 0xa
push ecx
push esi
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x10]
push ecx
mov ecx, esi
add ebp, eax
call fcn.004a1a60
add esp, 4
sub dword [esp + 0x24], 1
jne 0x4a1820
sub ebx, dword [esp + 0x14]
mov eax, dword [edi]
imul ebx, dword [edi + 0x224]
push 0
lea edx, [esp + 0x14]
push edx
push ebx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x10]
push ecx
mov ecx, esi
call fcn.004a1a60
mov edx, dword [esp + 0x14]
add esp, 4
pop edi
lea eax, [edx + ebp]
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x4a3420
Capabilities:
Check for peb ntglobalflag flag
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x5af601
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x6b06f8]
xor eax, esp
mov dword [esp + 0x68], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6b06f8]
xor eax, esp
push eax
lea eax, [esp + 0x84]
mov dword fs:[0], eax
mov eax, dword [esp + 0x9c]
mov esi, dword [esp + 0x94]
mov ebp, dword [esp + 0x98]
mov edi, edx
xor ebx, ebx
mov dword [esp + 0x8c], ebx
push edi
mov dword [esp + 0x3c], edi
mov dword [esp + 0x20], eax
mov dword [esp + 0x38], ecx
mov dword [esp + 0x24], ebx
call fcn.0040850b
mov dword [esp + 0x8c], ebx
xor eax, eax
push 0x30
lea edx, [esp + 0x40]
push ebx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
push edx
mov dword [esp + 0x2c], 1
mov dword [esp + 0x34], eax
mov dword [esp + 0x30], 0x10
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], ebx
call fcn.005783f0
mov eax, 1
mov dword [esp + 0x5c], eax
mov dword [esp + 0x64], eax
lea eax, [esp + 0x30]
mov dword [esp + 0x60], eax
mov al, 0xc2
add esp, 0xc
mov ecx, 0xcd44
mov byte [esp + 0x75], al
mov byte [esp + 0x79], al
lea eax, [esp + 0x3c]
mov word [esp + 0x70], cx
push eax
lea ecx, [esp + 0x70]
push ecx
mov edx, 0x11d0
push 0xffffffffffffffff
mov dword [esp + 0x48], 0x30
mov dword [esp + 0x54], 2
mov dword [esp + 0x58], ebx
mov dword [esp + 0x78], 0xaac56b
mov word [esp + 0x7e], dx
mov byte [esp + 0x80], 0x8c
mov byte [esp + 0x82], bl
mov byte [esp + 0x83], 0xc0
mov byte [esp + 0x84], 0x4f
mov byte [esp + 0x86], 0x95
mov byte [esp + 0x87], 0xee
call sub.WINTRUST.dll_WinVerifyTrust
test eax, eax
jne 0x4a3563
mov byte [ebp], 1
mov eax, dword [esp + 0x5c]
cmp eax, ebx
je 0x4a35de
push eax
call sub.WINTRUST.dll_WTHelperProvDataFromStateData
mov esi, eax
cmp esi, ebx
je 0x4a35de
cmp dword [esi + 0x3c], ebx
je 0x4a35de
mov eax, dword [esi + 0x30]
cmp eax, ebx
jbe 0x4a35de
cmp dword [esi + 0x34], ebx
je 0x4a35de
xor ebp, ebp
cmp eax, ebx
jbe 0x4a35de
mov edi, edi
mov edx, dword [esp + 0x34]
mov ecx, dword [esi + 0x34]
mov eax, dword [esp + 0x1c]
push edx
mov edx, dword [ecx + ebp*4]
mov ecx, dword [esi + 0x3c]
push eax
push edx
lea eax, [esp + 0x24]
push eax
call fcn.004a3100
add esp, 0x10
mov dword [esp + 0x8c], 1
call fcn.004085c5
lea ecx, [esp + 0x18]
mov byte [esp + 0x8c], bl
call fcn.004085a2
mov ecx, dword [edi]
cmp dword [ecx - 0xc], ebx
jne 0x4a35de
inc ebp
cmp ebp, dword [esi + 0x30]
jb 0x4a3590
lea edx, [esp + 0x3c]
push edx
lea eax, [esp + 0x70]
push eax
push ebx
mov dword [esp + 0x64], 2
call sub.WINTRUST.dll_WinVerifyTrust
mov eax, edi
mov ecx, dword [esp + 0x84]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.0057372c
add esp, 0x7c
ret