joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403140
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x53ac48
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x58c950]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x58c950]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov eax, dword [esp + 0x4c]
mov ebp, dword [esp + 0x48]
mov dword [esp + 0x14], eax
mov edi, 0x58ec14
xor ebx, ebx
xor ecx, ecx
push 0xffffffffffffffff
mov word [esp + 0x20], cx
push ebx
mov eax, ebp
lea ecx, [esp + 0x20]
mov dword [esp + 0x38], 7
mov dword [esp + 0x34], ebx
call fcn.00403510
mov dword [esp + 0x40], ebx
push 1
push 0x5680d8
lea eax, [esp + 0x20]
call fcn.00403610
mov ecx, dword [edi]
mov eax, ecx
lea esi, [eax + 2]
mov dx, word [eax]
add eax, 2
cmp dx, bx
jne 0x4031c1
sub eax, esi
sar eax, 1
push eax
push ecx
lea eax, [esp + 0x20]
call fcn.00403610
mov eax, dword [esp + 0x1c]
mov esi, 8
cmp dword [esp + 0x30], esi
jae 0x4031ee
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x403259
mov dword [esp + 0x40], 0xffffffff
cmp dword [esp + 0x30], esi
jb 0x403214
mov edx, dword [esp + 0x1c]
push edx
call fcn.00410507
add esp, 4
xor eax, eax
add edi, 4
cmp edi, 0x58ec2c
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], ebx
mov word [esp + 0x1c], ax
jl 0x403185
xor al, al
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.0050e8a6
add esp, 0x30
ret 8
mov ecx, dword [esp + 0x14]
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x20]
call fcn.00403510
mov dword [esp + 0x40], 0xffffffff
cmp dword [esp + 0x30], esi
jb 0x403284
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.00410507
add esp, 4
xor edx, edx
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], ebx
mov word [esp + 0x1c], dx
mov al, 1
jmp 0x403238
Function at 0x4032a0
Capabilities:
Get common file path
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x53b29b
mov eax, dword fs:[0]
push eax
sub esp, 0x224
mov eax, dword [0x58c950]
xor eax, esp
mov dword [esp + 0x220], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x58c950]
xor eax, esp
push eax
lea eax, [esp + 0x238]
mov dword fs:[0], eax
mov eax, dword [esp + 0x248]
mov ebp, dword [esp + 0x24c]
xor edx, edx
push 0x206
mov dword [esp + 0x20], eax
push edx
lea eax, [esp + 0x36]
push eax
mov dword [esp + 0x34], ecx
mov word [esp + 0x38], dx
call fcn.00513690
add esp, 0xc
lea ecx, [esp + 0x2c]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [esp + 0x2c]
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x403322
mov edx, dword [0x5680dc]
mov ecx, dword [str.z.dll]
mov dword [eax], edx
mov edx, dword [0x5680e4]
mov dword [eax + 4], ecx
mov ecx, dword [0x5680e8]
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
push 0x82
mov eax, 0x5680ec
lea esi, [esp + 0x18]
call fcn.0040aa60
mov dword [esp + 0x240], 0
lea edx, [esp + 0x2c]
push 0x568b54
push edx
call fcn.0050fe23
mov esi, eax
add esp, 8
test esi, esi
je 0x4033af
mov edi, dword [esp + 0x18]
test edi, edi
jbe 0x4033af
mov eax, dword [esp + 0x14]
push esi
push edi
push 1
push eax
call fcn.0050f88e
cmp eax, edi
push esi
sete bl
call fcn.0050f9a8
add esp, 0x14
test bl, bl
jne 0x4033df
push str.unCompress_res.Release_false._r_n
call fcn.00408e70
add esp, 4
mov dword [esp + 0x240], 0xffffffff
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4033d8
push eax
call fcn.00410507
add esp, 4
xor al, al
jmp 0x403480
lea ecx, [esp + 0x2c]
push ecx
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [esp + 0x24], eax
test eax, eax
je 0x40340a
push 0x567ef0
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esp + 0x20], eax
mov edx, 8
cmp dword [ebp + 0x18], edx
jb 0x403419
mov ecx, dword [ebp + 4]
jmp 0x40341c
lea ecx, [ebp + 4]
mov eax, dword [esp + 0x1c]
cmp dword [eax + 0x18], edx
jb 0x40342a
mov eax, dword [eax + 4]
jmp 0x40342d
add eax, 4
push ecx
push eax
lea ecx, [esp + 0x28]
call fcn.00402160
test al, al
jne 0x403446
push str.unCompress_DeCompress_false._r_n
jmp 0x4033b4
mov esi, dword [esp + 0x28]
push esi
push ebp
call fcn.00403140
test al, al
jne 0x403462
push 0xffffffffffffffff
push 0
mov eax, ebp
mov ecx, esi
call fcn.00403510
mov dword [esp + 0x240], 0xffffffff
mov eax, dword [esp + 0x14]
test eax, eax
je 0x40347e
push eax
call fcn.00410507
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x238]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x220]
xor ecx, esp
call fcn.0050e8a6
add esp, 0x230
ret 8
Function at 0x4057b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
movzx edx, word [esp + 4]
mov dword [esp + 4], edx
jmp fcn.00415df6
Function at 0x405f40
Capabilities:
Check if file exists
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x53b891
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x58c950]
xor eax, esp
mov dword [esp + 0x44], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x58c950]
xor eax, esp
push eax
lea eax, [esp + 0x5c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x6c]
xor ebx, ebx
mov dword [esp + 0x1c], ebx
mov eax, dword [ebp + 0x80]
xor ecx, ecx
mov word [esp + 0x40], cx
mov ecx, eax
mov dword [esp + 0x54], 7
mov dword [esp + 0x50], ebx
lea esi, [ecx + 2]
lea ebx, [ebx]
mov dx, word [ecx]
add ecx, 2
cmp dx, bx
jne 0x405fa0
sub ecx, esi
sar ecx, 1
push ecx
lea esi, [esp + 0x40]
call fcn.00404060
mov dword [esp + 0x64], ebx
push 0xd
push str._softlist.xml
mov eax, esi
call fcn.00403610
mov edx, dword [ebp + 0x9c]
mov eax, dword [edx + 4]
lea edi, [ebp + 0x84]
push eax
mov ecx, edi
call fcn.004053b0
mov eax, dword [edi + 0x18]
mov dword [eax + 4], eax
mov eax, dword [edi + 0x18]
mov dword [edi + 0x1c], ebx
mov dword [eax], eax
mov eax, dword [edi + 0x18]
mov dword [eax + 8], eax
xor ecx, ecx
push 0x2e
mov eax, str.http:__file1.updrv.com_soft_baidu_softlist.xml
lea esi, [esp + 0x24]
mov dword [esp + 0x3c], 7
mov dword [esp + 0x38], ebx
mov word [esp + 0x28], cx
call fcn.00404060
mov byte [esp + 0x64], 1
mov edx, esi
lea ecx, [esp + 0x3c]
mov dword [esp + 0x1c], 1
call fcn.00403b90
mov esi, 8
test eax, eax
je 0x406058
mov eax, dword [esp + 0x40]
cmp dword [esp + 0x54], esi
jae 0x406048
lea eax, [esp + 0x40]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov byte [esp + 0x1b], 1
test eax, eax
jne 0x40605c
mov byte [esp + 0x1b], bl
mov dword [esp + 0x64], ebx
mov eax, 1
mov dword [esp + 0x1c], eax
and eax, 0xfffffffe
mov dword [esp + 0x1c], eax
cmp dword [esp + 0x38], esi
jb 0x406083
mov edx, dword [esp + 0x24]
push edx
call fcn.00410507
add esp, 4
xor eax, eax
mov dword [esp + 0x38], 7
mov dword [esp + 0x34], ebx
mov word [esp + 0x24], ax
cmp byte [esp + 0x1b], bl
je 0x4060a6
push edi
lea ecx, [esp + 0x40]
call fcn.004096e0
mov eax, dword [esp + 0x40]
cmp dword [esp + 0x54], esi
jae 0x4060b4
lea eax, [esp + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, ebp
call fcn.00406120
mov dword [esp + 0x64], 0xffffffff
cmp dword [esp + 0x54], 8
jb 0x4060de
mov ecx, dword [esp + 0x40]
push ecx
call fcn.00410507
add esp, 4
xor edx, edx
mov dword [esp + 0x54], 7
mov dword [esp + 0x50], ebx
mov word [esp + 0x40], dx
mov ecx, dword [esp + 0x5c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.0050e8a6
add esp, 0x54
ret 4
Function at 0x4064a0
Capabilities:
Create process on windows
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x53b0f0
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x58c950]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x58c950]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov edi, ecx
mov ebx, 8
lea esi, [edi + 4]
cmp dword [edi + 0x18], ebx
jb 0x4064e5
mov eax, dword [esi]
jmp 0x4064e7
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
je 0x406515
cmp dword [edi + 0x18], ebx
jb 0x4064f9
mov esi, dword [esi]
push 1
push 0
push esi
push str.explorer.exe
push 0x5684b4
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
jmp 0x40666c
lea ecx, [esp + 0x14]
call fcn.00407b20
xor ebp, ebp
mov dword [esp + 0x48], ebp
cmp dword [edi + 0x18], ebx
jb 0x40652d
mov eax, dword [esi]
jmp 0x40652f
mov eax, esi
push eax
lea ecx, [esp + 0x1c]
call fcn.00402430
mov byte [esp + 0x48], 1
lea ecx, [esp + 0x18]
call fcn.00407c30
mov eax, dword [esp + 0x18]
cmp dword [eax - 0xc], ebp
jl 0x406580
push str..msi
push eax
call fcn.0050f5b4
add esp, 8
cmp eax, ebp
je 0x406580
sub eax, dword [esp + 0x18]
sar eax, 1
cmp eax, ebp
jle 0x406580
cmp dword [edi + 0x18], ebx
jb 0x406573
mov esi, dword [esi]
push esi
push str.msiexec__i___s_
lea eax, [esp + 0x1c]
push eax
jmp 0x406592
cmp dword [edi + 0x18], ebx
jb 0x406587
mov esi, dword [esi]
push esi
push 0x5684ec
lea ecx, [esp + 0x1c]
push ecx
call fcn.00408790
add esp, 0xc
mov dword [esp + 0x38], 0xf
mov dword [esp + 0x34], ebp
mov byte [esp + 0x24], 0
mov ebx, 2
mov byte [esp + 0x48], bl
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x20]
push edx
sub esp, 0x1c
mov esi, esp
xor ecx, ecx
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], ebp
mov word [esi + 4], cx
mov ecx, eax
mov dword [esp + 0x3c], esp
lea edi, [ecx + 2]
jmp 0x4065e0
mov dx, word [ecx]
add ecx, ebx
cmp dx, bp
jne 0x4065e0
sub ecx, edi
sar ecx, 1
push ecx
call fcn.00404060
mov byte [esp + 0x68], 3
mov byte [esp + 0x68], bl
call fcn.0040aae0
mov eax, dword [esp + 0x44]
mov esi, 0x10
add esp, 0x20
cmp dword [esp + 0x38], esi
jae 0x406618
lea eax, [esp + 0x24]
mov edx, dword [esp + 0x50]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
mov byte [esp + 0x48], 1
cmp dword [esp + 0x38], esi
jb 0x40663c
mov eax, dword [esp + 0x24]
push eax
call fcn.00410507
add esp, 4
mov dword [esp + 0x38], 0xf
mov dword [esp + 0x34], ebp
mov byte [esp + 0x24], 0
mov byte [esp + 0x48], 0
lea ecx, [esp + 0x18]
call fcn.00402500
mov dword [esp + 0x48], 0xffffffff
lea ecx, [esp + 0x14]
call fcn.00402500
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.0050e8a6
add esp, 0x38
ret 4
Function at 0x406f10
Capabilities:
Set registry value

Disassembly:
push ecx
push edi
lea eax, [esp + 4]
push eax
push 2
xor edi, edi
push edi
push 0x5685b0
push SysReAllocString
mov dword [esp + 0x18], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x406f6c
cmp dword [esi + 0x18], 8
mov ecx, dword [esi + 0x14]
jb 0x406f42
mov eax, dword [esi + 4]
jmp 0x406f45
lea eax, [esi + 4]
push ecx
mov ecx, dword [esp + 8]
push eax
push 1
push edi
push str.Start_Page
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x406f61
lea edi, [eax + 1]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop ecx
ret

Function at 0x4089c0
Capabilities:
Create thread
Terminate thread

Disassembly:
push ecx
mov eax, dword [esi + 8]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_TerminateThread]
xor ebx, ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, ebx
je 0x408a05
push 0x7d0
push eax
mov byte [esi + 0xc], bl
call edi
mov eax, dword [esi + 8]
push 4
push eax
call ebp
mov ecx, dword [esi + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 8], ebx
mov dword [esi + 0x48], 0xffffffff
mov dword [esi + 4], ebx
mov dword [esi], ebx
mov eax, 1
push 0xffffffffffffffff
mov byte [esi + 0xc], al
mov dword [esi + 0x48], eax
mov eax, dword [esp + 0x18]
push ebx
lea ecx, [esi + 0x10]
mov dword [esp + 0x14], ebx
mov dword [esi + 4], ebx
mov dword [esi], ebx
call fcn.00403510
mov eax, dword [esp + 0x18]
push 0xffffffffffffffff
push ebx
lea ecx, [esi + 0x2c]
call fcn.00403510
lea edx, [esp + 0xc]
push edx
push ebx
push esi
push 0x408e10
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 8], eax
cmp eax, ebx
jne 0x408a65
pop edi
pop ebp
mov byte [esi + 0xc], bl
mov dword [esi + 0x48], 0xffffffff
xor al, al
pop ebx
pop ecx
ret 8
push 0xffffffffffffffff
push eax
call edi
test eax, eax
je 0x408a76
mov eax, dword [esi + 8]
push 4
push eax
call ebp
mov ecx, dword [esi + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
cmp dword [esi + 0x48], 2
pop edi
pop ebp
mov dword [esi + 8], ebx
sete al
pop ebx
pop ecx
ret 8
Function at 0x408e70
Capabilities:
Get file size
Write file on windows

Disassembly:
sub esp, 0x244
mov eax, dword [0x58c950]
xor eax, esp
mov dword [esp + 0x240], eax
push ebp
push esi
push edi
push 0xff
lea eax, [esp + 0x45]
push 0
push eax
mov byte [esp + 0x4c], 0
call fcn.00513690
xor eax, eax
add esp, 0xc
lea ecx, [esp + 0xc]
push ecx
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx edx, word [esp + 0x1a]
movzx eax, word [esp + 0x18]
movzx ecx, word [esp + 0x16]
push edx
movzx edx, word [esp + 0x18]
push eax
movzx eax, word [esp + 0x1a]
push ecx
movzx ecx, word [esp + 0x1a]
push edx
movzx edx, word [esp + 0x1c]
push eax
push ecx
push edx
lea eax, [esp + 0x5c]
push str._4d__02d__02d__02d:_02d:_02d._03d_:
push eax
call fcn.0050fa24
mov edx, dword [esp + 0x278]
lea ecx, [esp + 0x27c]
push ecx
push edx
call fcn.0050fb39
lea ecx, [esp + 0x6c]
add esp, 0x2c
inc eax
lea esi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x408f12
sub ecx, esi
mov ebp, ecx
lea edi, [eax + ebp + 1]
push edi
call fcn.0050fc32
mov esi, eax
add esp, 4
test esi, esi
je 0x409071
push edi
push 0
push esi
call fcn.00513690
lea eax, [esp + 0x4c]
mov edx, esi
mov ecx, eax
add esp, 0xc
sub edx, ecx
lea ebx, [ebx]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x408f50
mov eax, dword [esp + 0x254]
lea edx, [esp + 0x258]
push edx
push eax
lea ecx, [esi + ebp]
push ecx
call fcn.0050fb1f
push 0x103
lea edx, [esp + 0x151]
push 0
push edx
mov byte [esp + 0x158], 0
call fcn.00513690
add esp, 0x18
push 0x104
lea eax, [esp + 0x144]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 0x140]
push 0x5c
push ecx
call fcn.0050fd30
mov byte [eax + 1], 0
lea eax, [esp + 0x148]
add esp, 8
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x408fc5
mov edx, dword [str.dtlsetup.log]
mov ecx, dword [0x568a64]
mov dword [eax], edx
mov edx, dword [0x568a68]
push 0
push 0x80
mov dword [eax + 4], ecx
mov cl, byte [0x568a6c]
mov dword [eax + 8], edx
push 4
lea edx, [esp + 0x40]
push edx
push 0
mov byte [eax + 0xc], cl
push 0x40000000
lea eax, [esp + 0x158]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x409068
xor eax, eax
lea ecx, [esp + 0x1c]
push ecx
push edi
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esp + 0x28], eax
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x409045
sub eax, edx
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x20]
push ecx
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call fcn.0050fb55
add esp, 4
mov ecx, dword [esp + 0x24c]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.0050e8a6
add esp, 0x244
ret
Function at 0x40aa60
Capabilities:
Extract resource via kernel32 functions

Disassembly:
movzx ecx, word [esp + 4]
push edi
push eax
push ecx
push 0
mov dword [esi], 0
mov dword [esi + 4], 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x40aac6
push ebx
push edi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x40aabf
push edi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push ebx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x40aabf
push edi
call fcn.004104fc
push edi
push ebx
push eax
mov dword [esi], eax
mov dword [esi + 4], edi
call fcn.00514620
add esp, 0x10
pop ebx
mov eax, esi
pop edi
ret 4
mov eax, esi
pop edi
ret 4

Function at 0x40b1a0
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 4], 0
je 0x40b1e4
mov eax, dword [esi + 8]
test eax, eax
je 0x40b1e4
mov ecx, dword [esp + 8]
push edi
push eax
mov eax, dword [esp + 0x14]
push eax
push 1
push ecx
call fcn.005109df
mov edx, dword [esi + 8]
push edx
mov edi, eax
call fcn.0051037d
add esp, 0x14
test eax, eax
je 0x40b1dd
pop edi
or eax, 0xffffffff
pop esi
ret 8
mov eax, edi
pop edi
pop esi
ret 8
xor eax, eax
pop esi
ret 8

Function at 0x40b1f0
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 4], 0
je 0x40b234
mov eax, dword [esi + 8]
test eax, eax
je 0x40b234
mov ecx, dword [esp + 8]
push edi
push eax
mov eax, dword [esp + 0x14]
push eax
push 1
push ecx
call fcn.0050f88e
mov edx, dword [esi + 8]
push edx
mov edi, eax
call fcn.0051037d
add esp, 0x14
test eax, eax
je 0x40b22d
pop edi
or eax, 0xffffffff
pop esi
ret 8
mov eax, edi
pop edi
pop esi
ret 8
xor eax, eax
pop esi
ret 8
Function at 0x40d9f0
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x53aeb1
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
mov eax, dword [0x58c950]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov esi, dword [esp + 0x3c]
xor ebx, ebx
mov dword [esp + 0xc], ebx
xor eax, eax
push 0xffffffffffffffff
mov word [esp + 0x18], ax
mov eax, dword [esp + 0x44]
push ebx
lea ecx, [esp + 0x18]
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], ebx
call fcn.00403510
mov dword [esp + 0x34], 1
mov eax, 0x56a14c
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40da52
sub eax, edx
sar eax, 1
push eax
push 0x56a14c
lea eax, [esp + 0x18]
call fcn.00403610
xor ecx, ecx
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], ebx
push 0xffffffffffffffff
mov word [esi + 4], cx
push ebx
mov ecx, esi
call fcn.00403510
mov dword [esp + 0xc], 1
mov byte [esp + 0x34], bl
cmp dword [esp + 0x28], 8
jb 0x40daaa
mov edx, dword [esp + 0x14]
push edx
call fcn.00410507
add esp, 4
xor eax, eax
mov word [esp + 0x14], ax
mov dword [esp + 0x28], 7
mov dword [esp + 0x24], ebx
mov eax, esi
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x2c
ret

Function at 0x40dbb0
Capabilities:
Parse pe header
Read file on windows

Disassembly:
sub esp, 0x144
mov eax, dword [0x58c950]
xor eax, esp
mov dword [esp + 0x140], eax
mov eax, dword [esp + 0x148]
push ebx
push esi
push edi
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40dc08
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x140]
xor ecx, esp
call fcn.0050e8a6
add esp, 0x144
ret
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
xor ebx, ebx
push ebx
lea eax, [esp + 0x10]
push eax
push 0x40
lea ecx, [esp + 0x114]
push ecx
push esi
call edi
cmp dword [esp + 0xc], 0x40
jne 0x40dc7b
mov edx, 0x5a4d
cmp word [esp + 0x108], dx
jne 0x40dc7b
mov eax, dword [esp + 0x144]
push ebx
push ebx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x40dc7b
push ebx
lea ecx, [esp + 0x10]
push ecx
push 0xf8
lea edx, [esp + 0x1c]
push edx
push esi
call edi
cmp dword [esp + 0xc], 0xf8
jne 0x40dc7b
cmp dword [esp + 0x10], 0x4550
jne 0x40dc7b
mov ebx, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x14c]
pop edi
pop esi
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.0050e8a6
add esp, 0x144
ret
Function at 0x40e100
Capabilities:
Delete file
Set file attributes

Disassembly:
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x40e110
xor al, al
ret
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne al
ret

Function at 0x40e5f0
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 0xc]
cmp eax, 0x400000
jbe 0x40e600
mov eax, 0x400000
mov edx, dword [esp + 8]
push 0
lea ecx, [esp + 0x10]
push ecx
push eax
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0xc]
push edx
push ecx
mov dword [esp + 0x20], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [esp + 0x10]
test eax, eax
setne al
test ecx, ecx
je 0x40e636
mov edx, dword [esp + 0xc]
mov dword [ecx], edx
test al, al
je 0x40e63f
xor eax, eax
ret 0x10
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x40e651
mov eax, 0x80004005
ret 0x10
jle 0x40e65d
and eax, 0xffff
or eax, 0x80070000
ret 0x10

Function at 0x40e710
Capabilities:
Get file size

Disassembly:
mov ecx, dword [esp + 4]
mov edx, dword [ecx + 8]
push esi
push edi
lea eax, [esp + 0xc]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40e738
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
test eax, eax
jne 0x40e760
mov eax, dword [esp + 0xc]
push 1
push 0
push 0
push eax
call fcn.00513f90
mov ecx, eax
xor eax, eax
add ecx, esi
adc edx, eax
mov eax, dword [esp + 0x10]
pop edi
mov dword [eax], ecx
mov dword [eax + 4], edx
xor eax, eax
pop esi
ret 8
call edi
test eax, eax
jne 0x40e770
pop edi
mov eax, 0x80004005
pop esi
ret 8
jle 0x40e77c
and eax, 0xffff
or eax, 0x80070000
pop edi
pop esi
ret 8

Function at 0x40e790
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 0xc]
cmp eax, 0x400000
jbe 0x40e7a0
mov eax, 0x400000
mov edx, dword [esp + 8]
push esi
mov esi, dword [esp + 8]
push 0
lea ecx, [esp + 0x14]
push ecx
push eax
mov eax, dword [esi + 8]
push edx
push eax
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [esp + 0x14]
test eax, eax
mov eax, dword [esp + 0x10]
setne dl
add dword [esi + 0x10], eax
adc dword [esi + 0x14], 0
pop esi
test ecx, ecx
je 0x40e7df
mov dword [ecx], eax
test dl, dl
je 0x40e7e8
xor eax, eax
ret 0x10
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x40e7fa
mov eax, 0x80004005
ret 0x10
jle 0x40e806
and eax, 0xffff
or eax, 0x80070000
ret 0x10