joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402c10
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x483938
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x4a02b4]
xor eax, esp
mov dword [esp + 0x20], eax
push esi
push edi
mov eax, dword [0x4a02b4]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
cmp byte [esi + 0xc], 0
jne 0x402c73
mov edi, dword [esi + 8]
mov eax, edi
and eax, 0x20006
cmp eax, 0x20006
sete cl
mov eax, esi
push ecx
push 0x48977c
push Ordinal_4
call fcn.0040da40
test al, al
mov byte [esi + 0xc], al
je 0x402cb9
mov dword [esp + 0x28], 7
mov dword [esp + 0x24], 0
mov word [esp + 0x14], 0
push str.Channel
push esi
lea eax, [esp + 0x18]
mov dword [esp + 0x40], 0
call fcn.0040dcf0
test al, al
jne 0x402cbe
cmp dword [esp + 0x28], 8
jb 0x402cb9
mov edx, dword [esp + 0x14]
push edx
call fcn.00468cbd
add esp, 4
or eax, 0xffffffff
jmp 0x402ced
mov eax, dword [esp + 0x14]
mov edi, 8
cmp dword [esp + 0x28], edi
jae 0x402cd1
lea eax, [esp + 0x14]
call fcn.0040bd50
cmp dword [esp + 0x28], edi
mov esi, eax
jb 0x402ceb
mov eax, dword [esp + 0x14]
push eax
call fcn.00468cbd
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.00468c2b
add esp, 0x30
ret

Function at 0x405160
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x482de2
mov eax, dword fs:[0]
push eax
sub esp, 0x220
mov eax, dword [0x4a02b4]
xor eax, esp
mov dword [esp + 0x21c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4a02b4]
xor eax, esp
push eax
lea eax, [esp + 0x234]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x244]
mov esi, ecx
xor ebx, ebx
mov dword [esp + 0x1c], ebx
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], ebx
mov dword [esp + 0x20], esi
mov edi, edx
mov word [esi + 4], bx
push 0x208
lea eax, [esp + 0x2a]
mov dword [esp + 0x240], ebx
push ebx
push eax
mov dword [esp + 0x28], 1
mov word [esp + 0x30], bx
call fcn.0046f200
add esp, 0xc
cmp dword [edi + 0x18], 8
mov dword [esp + 0x14], 0x208
mov dword [esp + 0x18], 1
jb 0x405200
mov edi, dword [edi + 4]
jmp 0x405203
add edi, 4
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x20]
push eax
push ebx
push edi
push ebp
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40525a
mov eax, dword [esp + 0x14]
cmp eax, 0x104
ja 0x405231
mov word [esp + eax*2 + 0x24], bx
jmp 0x405239
mov word [esp + 0x22c], bx
lea eax, [esp + 0x24]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x405240
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x28]
push ecx
call fcn.004020a0
mov eax, esi
mov ecx, dword [esp + 0x234]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x21c]
xor ecx, esp
call fcn.00468c2b
add esp, 0x22c
ret 4
Function at 0x407570
Capabilities:
Access peb ldr_data
Get file size
Get kernel32 base address
Hash data with md5
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x482080
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4a02b4]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov ebx, dword [esp + 0x30]
push 0x68
call fcn.00468c53
mov esi, eax
mov dword [esp + 0x1c], esi
xor eax, eax
lea edi, [esi + 0x58]
xor ebp, ebp
mov dword [esp + 0x2c], ebp
mov dword [edi], eax
push 0x58
mov dword [edi + 4], eax
push ebp
mov dword [edi + 8], eax
push esi
mov dword [edi + 0xc], eax
call fcn.0046f200
add esp, 0x10
mov dword [esi + 4], ebp
mov dword [esi], ebp
mov dword [esi + 8], 0x67452301
mov dword [esi + 0xc], 0xefcdab89
mov dword [esi + 0x10], 0x98badcfe
mov dword [esi + 0x14], 0x10325476
mov byte [esp + 0x28], 1
cmp dword [ebx + 0x18], 8
jb 0x4075fb
mov ebx, dword [ebx + 4]
jmp 0x4075fe
add ebx, 4
push ebp
push 0x80
push 3
push ebp
push 1
push Ordinal_4
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x1c], ebp
je 0x40765e
lea eax, [esp + 0x14]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40763d
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x407657
mov ecx, dword [esp + 0x14]
push 1
push 0
push 0
push ecx
call fcn.00479520
xor ecx, ecx
add eax, ebx
adc edx, ecx
or eax, edx
jne 0x40767d
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call fcn.00468cbd
add esp, 4
xor al, al
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
push 0x10000
mov dword [esp + 0x34], ecx
call fcn.00468610
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x407657
push 0
lea edx, [esp + 0x34]
push edx
push 0x10000
push ebx
push ebp
mov dword [esp + 0x44], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4076e6
mov ecx, dword [esp + 0x30]
test ecx, ecx
seta al
test al, al
je 0x4076e6
test ecx, ecx
je 0x4076e6
jle 0x407694
mov edx, dword [esi]
shr edx, 3
and edx, 0x3f
push edx
push ecx
push ecx
lea eax, [ecx*8]
push esi
mov ecx, ebx
call fcn.0040f070
add esp, 0x10
jmp 0x407694
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x4076f4
or ebp, 0xffffffff
push ebx
call fcn.00468d1d
add esp, 4
call fcn.0040f120
cmp ebp, 0xffffffff
mov ecx, dword [edi]
mov eax, dword [esp + 0x34]
mov dword [eax], ecx
mov edx, dword [edi + 4]
mov dword [eax + 4], edx
mov ecx, dword [edi + 8]
mov dword [eax + 8], ecx
mov edx, dword [edi + 0xc]
mov dword [eax + 0xc], edx
je 0x407728
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call fcn.00468cbd
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
Function at 0x408890
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x4834c9
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
push ebx
push esi
mov eax, dword [0x4a02b4]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0x20], ebx
mov dword [edi + 0x18], 7
mov dword [edi + 0x14], ebx
mov dword [esp + 0x58], edi
mov word [edi + 4], bx
mov esi, 1
mov dword [esp + 0x20], esi
mov dword [esp + 0x18], ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
lea eax, [esp + 0x10]
push eax
push 0x20019
push ebx
push str.SOFTWAREMicrosoftWindows_NTCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x94], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
je 0x40890e
mov dword [esp + 0x10], ebx
jmp 0x408943
mov eax, 4
lea ecx, [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x1c]
push edx
mov dword [esp + 0x24], eax
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x24]
push eax
push ebx
push str.InstallDate
push ecx
mov dword [esp + 0x30], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, ebx
je 0x408947
mov dword [esp + 0x14], eax
mov edx, dword [esp + 0x18]
xor eax, eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x2c]
push ecx
mov dword [esp + 0x54], edx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x30], ebx
call fcn.004694dd
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x38]
push edx
mov edx, dword [esp + 0x40]
push eax
mov eax, dword [esp + 0x48]
push ecx
mov ecx, dword [esp + 0x50]
push edx
add eax, 1
push eax
add ecx, 0x76c
push ecx
push str._04d_02d_02d_02d_02d_02d
push edi
call fcn.0040c300
mov eax, dword [edi + 0x14]
add esp, 0x28
cmp eax, 0xe
jae 0x4089d8
push esi
push 0x489c94
mov ecx, edi
call fcn.00401fa0
cmp dword [edi + 0x14], 0xe
jb 0x4089c5
cmp dword [edi + 0x14], 0xe
jbe 0x408a14
push 0xe
xor ecx, ecx
lea esi, [esp + 0x60]
mov edx, edi
call fcn.004059e0
push 0xffffffffffffffff
push ebx
push eax
mov eax, edi
mov byte [esp + 0x8c], 2
call fcn.00401e00
cmp dword [esp + 0x74], 8
jb 0x408a14
mov edx, dword [esp + 0x60]
push edx
call fcn.00468cbd
add esp, 4
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x408a23
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x78
ret
Function at 0x408a60
Capabilities:
Create http request

Disassembly:
push 0xffffffffffffffff
push 0x481e18
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x4a02b4]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.WININET.dll_InternetOpenW]
mov esi, eax
mov dword [esp + 0x18], esi
push 4
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x2c], 0
mov edi, dword [sym.imp.WININET.dll_InternetSetOptionW]
push 2
push esi
mov dword [esp + 0x24], 0x7d0
call edi
push 4
lea ecx, [esp + 0x18]
push ecx
push 3
push esi
mov dword [esp + 0x24], 3
call edi
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x30]
push edx
push eax
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x38]
call fcn.00408ce0
add esp, 0xc
test esi, esi
mov bl, al
je 0x408afa
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov al, bl
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x18
ret
Function at 0x408b10
Capabilities:
Check http status code
Create http request

Disassembly:
push 0xffffffffffffffff
push 0x484248
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x4a02b4]
xor eax, esp
mov dword [esp + 0x40], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4a02b4]
xor eax, esp
push eax
lea eax, [esp + 0x58]
mov dword fs:[0], eax
mov eax, dword [esp + 0x6c]
mov esi, dword [esp + 0x68]
xor ebp, ebp
push ebp
push ebp
push ebp
push ebp
push ebp
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], ecx
mov dword [esp + 0x3c], edx
call dword [sym.imp.WININET.dll_InternetOpenW]
mov edi, eax
mov dword [esp + 0x34], edi
push 4
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x68], ebp
mov ebx, dword [sym.imp.WININET.dll_InternetSetOptionW]
push 2
push edi
mov dword [esp + 0x24], 0x7d0
call ebx
push 4
lea ecx, [esp + 0x18]
push ecx
push 3
push edi
mov dword [esp + 0x24], 3
call ebx
cmp dword [esi + 0x18], 8
mov dword [esp + 0x18], ebp
jb 0x408baa
mov esi, dword [esi + 4]
jmp 0x408bad
add esi, 4
push ebp
push 0x400000
push 0xffffffffffffffff
push ebp
push esi
push edi
mov dword [esp + 0x38], ebp
mov dword [esp + 0x3c], ebp
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
mov esi, eax
mov dword [esp + 0x1c], esi
cmp esi, ebp
mov byte [esp + 0x60], 1
mov ebx, dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [esp + 0x14], 4
mov dword [esp + 0x18], ebp
je 0x408c0b
push ebp
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x20]
push eax
push 0x20000013
push esi
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
cmp dword [esp + 0x18], 0xc8
je 0x408c19
push esi
call ebx
cmp edi, ebp
je 0x408c12
push edi
call ebx
xor al, al
jmp 0x408cb9
mov ebx, dword [esp + 0x2c]
push ebx
lea esi, [esp + 0x3c]
call fcn.00407b50
add esp, 4
mov ecx, esi
push ecx
mov byte [esp + 0x64], 2
call fcn.0040b2c0
add esp, 4
test al, al
jne 0x408c49
mov edx, esi
push edx
call fcn.0040b9b0
add esp, 4
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x30]
push eax
push ecx
lea edx, [esp + 0x24]
push edx
mov ecx, ebx
call fcn.00408f20
add esp, 0xc
cmp dword [esp + 0x50], 8
mov bl, al
jb 0x408c78
mov eax, dword [esp + 0x3c]
push eax
call fcn.00468cbd
add esp, 4
mov eax, dword [esp + 0x20]
cmp eax, ebp
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [esp + 0x50], 7
mov dword [esp + 0x4c], ebp
mov word [esp + 0x3c], bp
je 0x408c9a
push eax
call esi
mov eax, dword [esp + 0x24]
cmp eax, ebp
je 0x408ca5
push eax
call esi
mov eax, dword [esp + 0x1c]
cmp eax, ebp
je 0x408cb0
push eax
call esi
cmp edi, ebp
je 0x408cb7
push edi
call esi
mov al, bl
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.00468c2b
add esp, 0x50
ret
Function at 0x409800
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x483418
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
mov eax, dword [0x4a02b4]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov ebx, dword [esp + 0x38]
lea esi, [esp + 0xc]
call fcn.0040e4f0
mov esi, 0x10
mov dword [esp + 0x30], 0
cmp dword [eax + 0x18], esi
jb 0x409849
mov eax, dword [eax + 4]
jmp 0x40984c
add eax, 4
push ebx
mov ecx, eax
call fcn.00410f40
cmp dword [esp + 0x24], esi
jb 0x409867
mov eax, dword [esp + 0x10]
push eax
call fcn.00468cbd
add esp, 4
mov eax, ebx
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x28
ret 4

Function at 0x40ac90
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x481da8
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push esi
push edi
mov eax, dword [0x4a02b4]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
lea eax, [esp + 0xc]
push eax
call fcn.004096e0
mov dword [esp + 0x30], 0
mov ecx, dword [esi + 0x24]
mov edx, dword [ecx]
mov edx, dword [edx + 0x40]
lea eax, [esp + 0xc]
push eax
call edx
test al, al
jne 0x40ad34
mov eax, dword [esp + 0x20]
cmp eax, 0x4a3a7c
je 0x40acf6
push eax
call fcn.00468d1d
add esp, 4
mov eax, dword [esp + 0x1c]
cmp eax, 0x4a3a7c
je 0x40ad0a
push eax
call fcn.00468d1d
add esp, 4
mov eax, dword [esp + 0x18]
cmp eax, 0x4a3a7c
je 0x40ad1e
push eax
call fcn.00468d1d
add esp, 4
xor al, al
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esp + 0x18]
mov edi, dword [eax]
mov esi, dword [ebp + 8]
call fcn.00402630
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
mov edx, dword [esi + 8]
push ecx
add eax, 8
push eax
push edx
call fcn.0046dd30
mov eax, dword [esp + 0x2c]
add esp, 0xc
cmp eax, 0x4a3a7c
je 0x40ad6d
push eax
call fcn.00468d1d
add esp, 4
mov eax, dword [esp + 0x1c]
cmp eax, 0x4a3a7c
je 0x40ad81
push eax
call fcn.00468d1d
add esp, 4
mov eax, dword [esp + 0x18]
cmp eax, 0x4a3a7c
je 0x40ad95
push eax
call fcn.00468d1d
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x40af30
Capabilities:
Get common file path

Disassembly:
sub esp, 0x624
mov eax, dword [0x4a02b4]
xor eax, esp
mov dword [esp + 0x620], eax
push esi
push edi
xor edi, edi
cmp dword [0x4a1afc], edi
mov esi, ecx
je 0x40af7a
push 0xffffffffffffffff
push edi
push 0x4a1ae8
mov eax, esi
call fcn.00401e00
pop edi
mov al, 1
pop esi
mov ecx, dword [esp + 0x620]
xor ecx, esp
call fcn.00468c2b
add esp, 0x624
ret
push 0x20a
lea eax, [esp + 0xe]
push edi
push eax
mov word [esp + 0x14], di
call fcn.0046f200
add esp, 0xc
lea ecx, [esp + 8]
push ecx
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
add eax, 0xffffffff
cmp eax, 0x103
ja 0x40b063
push 0x410
lea edx, [esp + 0x21a]
push edi
push edx
mov word [esp + 0x21e], di
mov word [esp + 0x220], di
call fcn.0046f200
add esp, 0xc
push 0x208
lea eax, [esp + 0x218]
push eax
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
cmp eax, 0x208
ja 0x40b027
cmp eax, edi
je 0x40b027
push esi
lea edx, [esp + 0x218]
mov word [esp + eax*2 + 0x218], di
call fcn.00405940
pop edi
mov al, 1
pop esi
mov ecx, dword [esp + 0x620]
xor ecx, esp
call fcn.00468c2b
add esp, 0x624
ret
lea eax, [esp + 8]
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x40b030
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0xc]
push edx
call fcn.004020a0
pop edi
mov al, 1
pop esi
mov ecx, dword [esp + 0x620]
xor ecx, esp
call fcn.00468c2b
add esp, 0x624
ret
mov ecx, dword [esp + 0x628]
pop edi
pop esi
xor ecx, esp
xor al, al
call fcn.00468c2b
add esp, 0x624
ret

Function at 0x40b080
Capabilities:
Get common file path

Disassembly:
sub esp, 0x420
mov eax, dword [0x4a02b4]
xor eax, esp
mov dword [esp + 0x41c], eax
push edi
mov eax, esi
call fcn.00405970
push 0x410
lea eax, [esp + 0xa]
push 0
push eax
mov word [esp + 0x10], 0
call fcn.0046f200
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
add esp, 0xc
push 0
push 0
call edi
test eax, eax
jne 0x40b0df
xor al, al
pop edi
mov ecx, dword [esp + 0x41c]
xor ecx, esp
call fcn.00468c2b
add esp, 0x420
ret
cmp eax, 0x208
jae 0x40b0c7
lea ecx, [esp + 4]
push ecx
push 0x209
call edi
test eax, eax
je 0x40b0c7
cmp eax, 0x208
jae 0x40b0c7
push esi
lea edx, [esp + 8]
mov word [esp + 0x418], 0
call fcn.00405940
mov ecx, dword [esp + 0x420]
pop edi
xor ecx, esp
mov al, 1
call fcn.00468c2b
add esp, 0x420
ret
Function at 0x40b130
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x4834f8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push edi
mov eax, dword [0x4a02b4]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov ebx, dword [esp + 0x40]
mov eax, dword [esp + 0x3c]
xor edi, edi
push 0xffffffffffffffff
push edi
push eax
lea eax, [esp + 0x1c]
mov dword [esp + 0x18], edi
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], edi
mov word [esp + 0x20], di
call fcn.00401e00
mov eax, ebx
mov dword [esp + 0x34], edi
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x40b190
sub eax, edx
sar eax, 1
push eax
push ebx
lea ecx, [esp + 0x18]
call fcn.00401fa0
push 0xffffffffffffffff
push edi
push eax
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], edi
mov eax, esi
mov word [esi + 4], di
call fcn.00401e00
cmp dword [esp + 0x28], 8
jb 0x40b1d7
mov ecx, dword [esp + 0x14]
push ecx
call fcn.00468cbd
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
add esp, 0x2c
ret

Function at 0x40b1f0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x4831b8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x4a02b4]
xor eax, esp
mov dword [esp + 0x1c], eax
push esi
mov eax, dword [0x4a02b4]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov eax, dword [esp + 0x38]
xor esi, esi
push 0xffffffffffffffff
push esi
push eax
lea eax, [esp + 0x14]
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], esi
mov word [esp + 0x18], si
call fcn.00401e00
push 0x24
lea ecx, [esp + 0xc]
mov dword [esp + 0x34], esi
call fcn.004077e0
mov eax, dword [esp + 0x10]
mov esi, 8
add esp, 4
cmp dword [esp + 0x20], esi
jae 0x40b268
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40b28b
cmp dword [esp + 0x20], esi
jb 0x40b287
mov eax, dword [esp + 0xc]
push eax
call fcn.00468cbd
add esp, 4
mov al, 1
jmp 0x40b2a0
cmp dword [esp + 0x20], esi
jb 0x40b29e
mov ecx, dword [esp + 0xc]
push ecx
call fcn.00468cbd
add esp, 4
xor al, al
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.00468c2b
add esp, 0x2c
ret
Function at 0x40b2c0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x4831b8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x4a02b4]
xor eax, esp
mov dword [esp + 0x1c], eax
push esi
mov eax, dword [0x4a02b4]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov eax, dword [esp + 0x38]
xor esi, esi
push 0xffffffffffffffff
push esi
push eax
lea eax, [esp + 0x14]
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], esi
mov word [esp + 0x18], si
call fcn.00401e00
push 0x24
lea ecx, [esp + 0xc]
mov dword [esp + 0x34], esi
call fcn.004077e0
mov eax, dword [esp + 0x10]
mov esi, 8
add esp, 4
cmp dword [esp + 0x20], esi
jae 0x40b338
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40b35f
test al, 0x10
je 0x40b35f
cmp dword [esp + 0x20], esi
jb 0x40b35b
mov eax, dword [esp + 0xc]
push eax
call fcn.00468cbd
add esp, 4
mov al, 1
jmp 0x40b374
cmp dword [esp + 0x20], esi
jb 0x40b372
mov ecx, dword [esp + 0xc]
push ecx
call fcn.00468cbd
add esp, 4
xor al, al
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.00468c2b
add esp, 0x2c
ret

Function at 0x40b390
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4841a8
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x4a02b4]
xor eax, esp
mov dword [esp + 0x48], eax
push esi
push edi
mov eax, dword [0x4a02b4]
xor eax, esp
push eax
lea eax, [esp + 0x5c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x6c]
xor esi, esi
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x4c], 7
mov dword [esp + 0x48], esi
mov word [esp + 0x38], si
lea ecx, [esp + 0xc]
push ecx
push eax
mov dword [esp + 0x6c], esi
call fcn.00414770
add esp, 8
test al, al
je 0x40b42a
mov eax, dword [esp + 0x2c]
and eax, 0x10
or eax, esi
jne 0x40b42a
cmp dword [esp + 0x4c], 8
mov esi, dword [esp + 0xc]
mov edi, dword [esp + 0x10]
jb 0x40b424
mov edx, dword [esp + 0x38]
push edx
call fcn.00468cbd
add esp, 4
mov eax, esi
mov edx, edi
jmp 0x40b442
cmp dword [esp + 0x4c], 8
jb 0x40b43e
mov eax, dword [esp + 0x38]
push eax
call fcn.00468cbd
add esp, 4
xor eax, eax
xor edx, edx
mov ecx, dword [esp + 0x5c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.00468c2b
add esp, 0x5c
ret

Function at 0x40b460
Capabilities:
Delete file
Get file attributes
Set file attributes

Disassembly:
cmp dword [edi + 0x18], 8
push esi
lea esi, [edi + 4]
jb 0x40b46e
mov eax, dword [esi]
jmp 0x40b470
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
and eax, 0xfffffffe
cmp dword [edi + 0x18], 8
jb 0x40b484
mov ecx, dword [esi]
jmp 0x40b486
mov ecx, esi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp dword [edi + 0x18], 8
jb 0x40b496
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
sub eax, 1
neg eax
sbb eax, eax
add eax, 1
pop esi
ret