joyce8/EMBER2024-capa huggingface dataset:
Function at 0x477620
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x7b8f56
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push ebp
push esi
mov ebp, ecx
push edi
mov dword [esp + 0x18], ebp
call fcn.00467130
mov al, byte [esp + 0x13]
xor esi, esi
lea ebx, [ebp + 0x824]
mov dword [esp + 0x30], esi
mov byte [ebx], al
mov dword [ebx + 4], esi
mov dword [ebx + 8], esi
mov dword [ebx + 0xc], esi
lea ecx, [ebp + 0x98]
mov byte [esp + 0x30], 1
mov dword [ebp], fcn.00467ca0
mov dword [ebp + 0x18], 1
mov edx, dword [ecx]
mov edi, 0x870c08
mov dword [esp + 0x1c], edx
mov eax, dword [ecx + 4]
mov dword [esp + 0x20], eax
mov ecx, dword [ecx + 8]
mov dword [ebp + 0x570], eax
mov dword [esp + 0x24], ecx
mov dword [ebp + 0x574], ecx
mov dword [ebp + 0x56c], edx
or ecx, 0xffffffff
xor eax, eax
mov byte [ebp + 0x834], 0
mov dword [ebp + 0x838], esi
mov dword [ebp + 0x83c], esi
mov dword [ebp + 0x820], esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, ecx
cmp edi, 0xfffffffd
mov dword [esp + 0x14], edi
jbe 0x4776d9
call fcn.007a02eb
mov ecx, dword [ebx + 4]
cmp ecx, esi
je 0x4776fe
mov al, byte [ecx - 1]
test al, al
je 0x4776fe
cmp al, 0xff
je 0x4776fe
cmp edi, esi
jne 0x477722
dec al
push esi
mov byte [ecx - 1], al
mov ecx, ebx
call fcn.00404e60
jmp 0x477753
cmp edi, esi
jne 0x47770d
push 1
mov ecx, ebx
call fcn.00404e60
jmp 0x477753
mov eax, dword [ebx + 0xc]
cmp eax, 0x1f
ja 0x477719
cmp eax, edi
jae 0x47772a
push 1
mov ecx, ebx
call fcn.00404e60
push edi
mov ecx, ebx
call fcn.00401c60
mov eax, dword [ebx + 4]
mov ecx, edi
mov edx, ecx
mov esi, 0x870c08
mov edi, eax
mov eax, dword [esp + 0x14]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [ebx + 8], eax
mov ebx, dword [ebx + 4]
add ebx, eax
mov byte [ebx], 0
mov ecx, dword [esp + 0x28]
pop edi
mov byte [ebp + 0x840], 0
mov eax, ebp
pop esi
mov dword [esp + 0x28], 0xffffffff
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret
Function at 0x47b020
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x68
lea eax, [ecx + 0x98]
add ecx, 0x7c
push ebx
push esi
mov edx, dword [eax]
push edi
mov dword [esp + 0x18], edx
mov dword [esp + 0xc], 0
mov edx, dword [eax + 4]
mov dword [esp + 0x10], 0
mov dword [esp + 0x1c], edx
mov edx, dword [ecx]
mov eax, dword [eax + 8]
mov dword [esp + 0x24], edx
mov dword [esp + 0x20], eax
mov eax, dword [ecx + 4]
mov dword [esp + 0x28], eax
mov dword [esp + 0x14], 0x3f800000
mov edx, dword [ecx + 8]
mov dword [esp + 0x2c], edx
lea edx, [esp + 0x34]
mov eax, dword [ecx + 0xc]
lea ecx, [esp + 0x24]
push ecx
push edx
mov dword [esp + 0x38], eax
call fcn.00770096
fld dword [esp + 0xc]
fld dword [esp + 0x10]
fld dword [esp + 0x14]
fld dword [esp + 0x54]
fmul st(1)
fld dword [esp + 0x44]
fmul st(3)
xor edi, edi
faddp st(1)
fld dword [esp + 0x34]
fmul st(4)
faddp st(1)
fadd dword [esp + 0x64]
fstp dword [esp + 0xc]
fld dword [esp + 0x58]
fmul st(1)
fld dword [esp + 0x48]
fmul st(3)
faddp st(1)
fld dword [esp + 0x38]
fmul st(4)
faddp st(1)
fadd dword [esp + 0x68]
fstp dword [esp + 0x10]
fld dword [esp + 0x5c]
fmul st(1)
fld dword [esp + 0x4c]
fmul st(3)
faddp st(1)
fld dword [esp + 0x3c]
fmul st(4)
faddp st(1)
fadd dword [esp + 0x6c]
fstp dword [esp + 0x14]
fstp st(0)
fstp st(0)
fstp st(0)
fld dword [esp + 0x78]
call fcn.007a2dec
mov ebx, eax
test ebx, ebx
jle 0x47b172
mov esi, dword [esp + 0x7c]
fld dword [esp + 0x18]
fadd dword [esp + 0xc]
fld dword [esp + 0x10]
fadd dword [esp + 0x1c]
fstp dword [esp + 0x28]
fld dword [esp + 0x14]
fadd dword [esp + 0x20]
mov eax, dword [esp + 0x28]
mov dword [esi + 4], eax
fstp dword [esp + 0x2c]
mov ecx, dword [esp + 0x2c]
fstp dword [esi]
mov dword [esi + 8], ecx
mov edx, dword [0x9ea1cc]
mov ecx, dword [edx + 0x1c]
mov edx, dword [0x7e6580]
push edx
lea edx, [esp + 0x10]
mov eax, dword [ecx]
push edx
lea edx, [esp + 0x20]
push edx
call dword [eax + 0x48]
cmp al, 1
je 0x47b17d
mov eax, dword [esi]
mov ecx, dword [esi + 4]
mov edx, dword [esi + 8]
inc edi
cmp edi, ebx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], edx
jl 0x47b106
pop edi
pop esi
xor al, al
pop ebx
add esp, 0x68
ret 8
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov dword [esi], eax
mov dword [esi + 4], ecx
mov dword [esi + 8], edx
pop edi
pop esi
mov al, 1
pop ebx
add esp, 0x68
ret 8
Function at 0x496810
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
mov ebp, dword [sym.imp.kernel32.dll_WriteFile]
mov esi, ecx
push edi
mov edi, dword [esp + 0x1c]
lea ecx, [esp + 0x14]
mov al, byte [esi + 0x2c]
push 0
mov ebx, 1
push ecx
lea edx, [esp + 0x1b]
push ebx
push edx
push edi
mov dword [esp + 0x28], 0
mov byte [esp + 0x27], al
call ebp
mov al, byte [esi + 0x30]
lea ecx, [esp + 0x14]
push 0
push ecx
lea edx, [esp + 0x1b]
push ebx
push edx
push edi
mov byte [esp + 0x27], al
call ebp
lea eax, [esp + 0x14]
push 0
push eax
lea ecx, [esi + 0x40]
push 4
push ecx
push edi
call ebp
mov dl, byte [esi + 0x3c]
lea eax, [esp + 0x14]
push 0
push eax
lea ecx, [esp + 0x1b]
push ebx
push ecx
push edi
mov byte [esp + 0x27], dl
call ebp
lea edx, [esp + 0x14]
push 0
push edx
lea eax, [esi + 0x54]
push 0xc
push eax
push edi
call ebp
lea ecx, [esp + 0x14]
push 0
push ecx
lea edx, [esi + 0x60]
push 0xc
push edx
push edi
call ebp
lea eax, [esp + 0x14]
push 0
push eax
lea ecx, [esi + 0x6c]
push 0xc
push ecx
push edi
call ebp
lea edx, [esp + 0x14]
push 0
push edx
lea eax, [esi + 0xa4]
push ebx
push eax
push edi
call ebp
push 0
lea ecx, [esp + 0x18]
push ecx
lea edx, [esi + 0x98]
push 0xc
push edx
push edi
call ebp
lea eax, [esp + 0x14]
push 0
push eax
lea ecx, [esi + 0x1b0]
push 4
push ecx
push edi
call ebp
lea edx, [esp + 0x14]
push 0
push edx
lea eax, [esi + 0x1b4]
push 4
push eax
push edi
call ebp
lea ecx, [esp + 0x14]
push 0
push ecx
lea edx, [esi + 0xa5]
push 0x104
push edx
push edi
call ebp
lea eax, [esp + 0x14]
push 0
push eax
lea ecx, [esi + 0x1c4]
push 4
push ecx
push edi
call ebp
lea edx, [esp + 0x14]
push 0
push edx
lea eax, [esi + 0x1c8]
push 4
push eax
push edi
call ebp
lea ecx, [esp + 0x14]
push 0
push ecx
lea edx, [esi + 0x1b8]
push 4
push edx
push edi
call ebp
lea eax, [esp + 0x14]
push 0
push eax
lea ecx, [esi + 0x1bc]
push 4
push ecx
push edi
call ebp
mov ecx, dword [esi + 0x1d0]
lea eax, [esi + 0x1c0]
cmp ecx, ebx
mov dword [eax], 0x5c7
jne 0x49697e
mov dword [eax], 0x1c7
cmp dword [esi + 0x1d4], ebx
jne 0x49698c
xor dword [eax], 0x100
cmp dword [esi + 0x1dc], ebx
je 0x496997
xor dword [eax], 4
cmp dword [esi + 0x1d8], ebx
jne 0x4969a2
xor dword [eax], 0x40
cmp dword [esi + 0x1cc], ebx
je 0x4969ac
xor dword [eax], ebx
lea edx, [esp + 0x14]
push 0
push edx
push 4
push eax
push edi
call ebp
pop edi
pop esi
mov al, bl
pop ebp
pop ebx
add esp, 8
ret 4
Function at 0x4dfb40
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x7bd6ef
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, dword [esp + 0x1c]
mov dword [esp + 8], esi
xor ebx, ebx
cmp esi, ebx
mov dword [esp + 0x14], ebx
je 0x4dfc17
push ebp
push edi
mov edi, dword [esp + 0x28]
mov al, byte [edi]
mov dword [esi + 4], ebx
mov byte [esi], al
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov ecx, dword [0x7e565c]
push ecx
push ebx
push edi
mov ecx, esi
call fcn.00404c60
mov dl, byte [edi + 0x10]
lea ebp, [edi + 0x10]
lea ecx, [esi + 0x10]
mov byte [esp + 0x1c], 1
mov byte [ecx], dl
mov dword [ecx + 4], ebx
mov dword [ecx + 8], ebx
mov dword [ecx + 0xc], ebx
mov eax, dword [0x7e565c]
push eax
push ebx
push ebp
call fcn.00404c60
mov dl, byte [edi + 0x20]
lea ebp, [edi + 0x20]
lea ecx, [esi + 0x20]
mov byte [esp + 0x1c], 2
mov byte [ecx], dl
mov dword [ecx + 4], ebx
mov dword [ecx + 8], ebx
mov dword [ecx + 0xc], ebx
mov eax, dword [0x7e565c]
push eax
push ebx
push ebp
call fcn.00404c60
mov ecx, dword [edi + 0x30]
mov byte [esp + 0x1c], 3
mov dword [esi + 0x30], ecx
mov dx, word [edi + 0x34]
mov word [esi + 0x34], dx
mov ax, word [edi + 0x36]
pop edi
mov word [esi + 0x36], ax
pop ebp
mov byte [esp + 0x14], bl
pop esi
mov dword [esp + 0x10], 0xffffffff
pop ebx
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x14], 0xffffffff
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x4e0b80
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x7bd7a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
mov ebp, ecx
push esi
push edi
mov ecx, 9
lea edi, [ebp + 0x17c]
or eax, 0xffffffff
rep stosd dword es:[edi], eax
mov al, byte [esp + 0x13]
mov edi, 0x82cfb0
mov byte [esp + 0x14], al
or ecx, 0xffffffff
xor eax, eax
xor esi, esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 1
mov ebx, ecx
lea ecx, [esp + 0x18]
push ebx
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
call fcn.00401b40
test al, al
je 0x4e0c0a
mov edi, dword [esp + 0x18]
mov ecx, ebx
mov edx, ecx
mov esi, 0x82cfb0
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x18]
call fcn.00405070
xor esi, esi
mov eax, dword [ebp + 0x70]
mov dword [esp + 0x2c], esi
mov edi, dword [eax]
cmp eax, edi
je 0x4e0c5d
mov ebx, dword [edi + 8]
cmp dword [ebx + 0x78], 1
jne 0x4e0c45
mov eax, dword [ebx + 0x30]
cmp eax, esi
jne 0x4e0c2c
mov eax, 0x7e5658
mov ecx, dword [esp + 0x18]
cmp ecx, esi
jne 0x4e0c39
mov ecx, 0x7e5658
push eax
push ecx
call dword [sym.imp.kernel32.dll_lstrcmpiA]
test eax, eax
je 0x4e0c50
mov edi, dword [edi]
mov eax, dword [ebp + 0x70]
cmp eax, edi
jne 0x4e0c17
jmp 0x4e0c5d
cmp ebx, esi
je 0x4e0c5d
mov eax, dword [ebx]
push 2
mov ecx, ebx
call dword [eax + 0x3c]
mov ecx, ebp
call fcn.004e1530
cmp dword [ebp + 0x7c], 0x11
jne 0x4e0c75
mov edx, dword [ebp]
mov ecx, ebp
call dword [edx + 0xac]
mov eax, dword [ebp]
push esi
mov ecx, ebp
call dword [eax + 0x3c]
mov ecx, ebp
call fcn.00631e50
mov ecx, dword [0x9ea1d8]
call fcn.005f6fc0
mov ecx, dword [esp + 0x18]
pop edi
cmp ecx, esi
pop esi
pop ebp
mov dword [esp + 0x20], 0xffffffff
pop ebx
je 0x4e0ccd
mov al, byte [ecx - 1]
test al, al
je 0x4e0cc3
cmp al, 0xff
je 0x4e0cc3
dec al
mov byte [ecx - 1], al
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
add esp, 0x20
ret
dec ecx
push ecx
call fcn.007a02e0
add esp, 4
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
add esp, 0x20
ret
Function at 0x537b30
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x7c23f4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x1c], esi
call fcn.00401f40
mov al, byte [esp + 0x13]
mov cl, byte [esp + 0x13]
xor ebx, ebx
lea edi, [esi + 0xc0]
mov dword [esp + 0x2c], ebx
push 0x28
mov dword [esp + 0x24], edi
mov byte [edi], al
mov byte [edi + 1], cl
mov byte [edi + 8], bl
call fcn.007a2d8d
mov ebp, eax
add esp, 4
lea ecx, [esp + 0x18]
mov dword [esp + 0x14], ebp
mov dword [ebp + 4], ebx
mov dword [ebp + 0x24], 1
call fcn.007a04d4
mov eax, dword [0x9e55cc]
mov byte [esp + 0x2c], 1
cmp eax, ebx
jne 0x537bbe
mov dword [0x9e55cc], ebp
mov dword [ebp], ebx
mov edx, dword [0x9e55cc]
mov dword [esp + 0x14], ebx
mov dword [edx + 8], ebx
mov edx, dword [0x9e55c8]
lea ecx, [esp + 0x18]
inc edx
mov dword [0x9e55c8], edx
mov byte [esp + 0x2c], bl
call fcn.007a0570
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x537be9
push eax
call fcn.007a02e0
add esp, 4
mov ebp, dword [0x9e55cc]
push 0x28
call fcn.007a2d8d
mov dword [eax + 4], ebp
mov dword [eax + 0x24], ebx
mov dword [edi + 4], eax
mov dword [edi + 0xc], ebx
mov dword [eax], eax
mov edi, dword [edi + 4]
mov dword [edi + 8], edi
mov al, byte [esp + 0x17]
mov byte [esp + 0x30], 3
push 0x34
mov byte [esi + 0xd0], al
call fcn.007a2d8d
mov dword [eax], eax
mov dword [eax + 4], eax
add esp, 8
mov dword [esi + 0xd4], eax
mov dword [esi + 0xd8], ebx
mov ecx, dword [esp + 0x24]
mov byte [esp + 0x2c], 4
mov dword [esi], 0x7e8bdc
mov dword [esi + 0xbc], ebx
mov dword [esi + 0xdc], ebx
mov dword [esi + 0xe0], ebx
mov dword [esi + 0xe4], ebx
mov dword [esi + 0xe8], ebx
mov dword [esi + 0xec], ebx
mov dword [esi + 0xf0], ebx
mov dword [esi + 0xf4], ebx
mov dword [esi + 0xf8], ebx
mov dword [esi + 0xfc], ebx
mov eax, esi
pop edi
pop esi
mov dword [esp + 0x24], 0xffffffff
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret
Function at 0x561110
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x7c5118
push eax
mov dword fs:[0], esp
sub esp, 0x18
lea eax, [esp + 8]
push ebx
push esi
push edi
push 0x300
push 0x400
push 0x26
push 0
mov esi, ecx
push eax
call dword [sym.imp.user32.dll_SetRect]
mov eax, dword [esi + 0xf8]
test eax, eax
je 0x561170
add eax, 0x88
mov ecx, dword [eax]
mov dword [esp + 0x14], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x18], edx
mov ecx, dword [eax + 8]
mov dword [esp + 0x1c], ecx
mov edx, dword [eax + 0xc]
mov dword [esp + 0x20], edx
lea edi, [esi + 0xbc]
mov ecx, edi
call fcn.006fea60
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
sub esp, 0x10
mov eax, esp
sub esp, 0x10
mov ebx, esp
mov dword [esp + 0x30], esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x3c]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x40]
mov dword [eax + 8], ecx
lea ecx, [esi + 0xfc]
mov dword [eax + 0xc], edx
lea eax, [esp + 0x2f]
push eax
call fcn.004df9d0
push eax
mov ecx, ebx
call fcn.004c84c0
mov ecx, dword [0x8b1a40]
mov edx, dword [0x9ebadc]
push ecx
push edx
mov ecx, edi
mov dword [esp + 0x54], 0xffffffff
call fcn.006fe5c0
mov ecx, dword [esp + 0x24]
mov byte [esi + 0x12c], 0
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x24
ret
Function at 0x562c20
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x7c534e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
push edi
mov esi, ecx
push 0x108
call fcn.007a2d8d
add esp, 4
mov dword [esp + 8], eax
test eax, eax
mov dword [esp + 0x14], 0
je 0x562c60
mov ecx, eax
call fcn.00571250
jmp 0x562c62
xor eax, eax
or edi, 0xffffffff
push 0xd8
mov dword [esp + 0x18], edi
mov dword [esi + 0xc], eax
call fcn.007a2d8d
add esp, 4
mov dword [esp + 8], eax
test eax, eax
mov dword [esp + 0x14], 1
je 0x562c92
mov ecx, eax
call fcn.00573510
jmp 0x562c94
xor eax, eax
mov dword [esp + 0x14], edi
push 0xc4
mov dword [esi + 0x10], eax
call fcn.007a2d8d
add esp, 4
mov dword [esp + 8], eax
test eax, eax
mov dword [esp + 0x14], 2
je 0x562cc1
mov ecx, eax
call fcn.0056fea0
jmp 0x562cc3
xor eax, eax
mov dword [esp + 0x14], edi
push 0xdc
mov dword [esi + 0x14], eax
call fcn.007a2d8d
add esp, 4
mov dword [esp + 8], eax
test eax, eax
mov dword [esp + 0x14], 3
je 0x562cf0
mov ecx, eax
call fcn.00570440
jmp 0x562cf2
xor eax, eax
mov dword [esp + 0x14], edi
push 0xe4
mov dword [esi + 0x18], eax
call fcn.007a2d8d
add esp, 4
mov dword [esp + 8], eax
test eax, eax
mov dword [esp + 0x14], 4
je 0x562d1f
mov ecx, eax
call fcn.00565470
jmp 0x562d21
xor eax, eax
mov dword [esp + 0x14], edi
push 0x284
mov dword [esi + 0x1c], eax
call fcn.007a2d8d
add esp, 4
mov dword [esp + 8], eax
test eax, eax
mov dword [esp + 0x14], 5
je 0x562d4e
mov ecx, eax
call fcn.00566990
jmp 0x562d50
xor eax, eax
mov dword [esp + 0x14], edi
push 0x160
mov dword [esi + 0x20], eax
call fcn.007a2d8d
add esp, 4
mov dword [esp + 8], eax
test eax, eax
mov dword [esp + 0x14], 6
je 0x562d7d
mov ecx, eax
call fcn.005682e0
jmp 0x562d7f
xor eax, eax
mov dword [esp + 0x14], edi
push 0xec
mov dword [esi + 0x24], eax
call fcn.007a2d8d
add esp, 4
mov dword [esp + 8], eax
test eax, eax
mov dword [esp + 0x14], 7
je 0x562dac
mov ecx, eax
call fcn.0056cc40
jmp 0x562dae
xor eax, eax
mov dword [esp + 0x14], edi
push 0xdc
mov dword [esi + 0x28], eax
call fcn.007a2d8d
add esp, 4
mov dword [esp + 8], eax
test eax, eax
mov dword [esp + 0x14], 8
je 0x562ddb
mov ecx, eax
call fcn.0056e250
jmp 0x562ddd
xor eax, eax
mov dword [esp + 0x14], edi
push 0xcc
mov dword [esi + 0x2c], eax
call fcn.007a2d8d
add esp, 4
mov dword [esp + 8], eax
test eax, eax
mov dword [esp + 0x14], 9
je 0x562e0a
mov ecx, eax
call fcn.0056f0d0
jmp 0x562e0c
xor eax, eax
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x14], edi
mov dword [esi + 0x30], eax
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x57c3c0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x7c6b96
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov al, byte [esp + 0x2c]
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov dword [esp + 8], esi
mov byte [esi + 4], al
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x14], ebx
push 0x100
mov dword [esi + 0x18], ecx
call fcn.007a2d8d
add esp, 4
mov dword [esp + 0x34], eax
cmp eax, ebx
mov byte [esp + 0x14], 1
je 0x57c41e
mov ecx, eax
call fcn.004126c0
jmp 0x57c420
xor eax, eax
mov byte [esp + 0x14], bl
cmp eax, ebx
mov dword [esi], eax
je 0x57c472
mov ecx, dword [esp + 0x1c]
mov edx, dword [eax]
push edi
push ecx
mov ecx, eax
call dword [edx + 0x70]
mov ecx, dword [esi]
lea eax, [esp + 0x3c]
push eax
mov edx, dword [ecx]
call dword [edx + 0x30]
mov ecx, dword [esi]
push 0x200000
mov edx, dword [ecx]
call dword [edx + 0x40]
mov eax, dword [esp + 0x34]
mov ecx, dword [esi]
mov edi, eax
and eax, 1
mov edx, dword [ecx]
and edi, 2
push edi
push eax
mov eax, dword [esp + 0x38]
push eax
mov eax, dword [esp + 0x38]
push eax
call dword [edx + 0xa4]
pop edi
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
push ecx
push edx
mov ecx, esi
call fcn.0057c4c0
mov ecx, dword [esi]
cmp ecx, ebx
je 0x57c48f
mov eax, dword [ecx]
push ebx
call dword [eax + 0x44]
mov ecx, dword [esp + 0xc]
mov byte [esi + 0x2c], bl
mov byte [esi + 0x2d], bl
mov dword [esi + 0x30], ebx
mov eax, esi
mov dword [esp + 0x14], 0xffffffff
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 0x2c
Function at 0x5ada80
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x7c9c13
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0x14], esi
call fcn.007a0a36
lea ecx, [esp + 0x10]
mov dword [esi + 0x34], eax
call fcn.007a04d4
mov edi, dword [0x9edfa8]
xor ebx, ebx
lea ecx, [esp + 0xc]
mov dword [esp + 0x20], ebx
call fcn.007a04d4
mov eax, dword [edi + 4]
mov byte [esp + 0x20], 1
cmp eax, 0xffffffff
jae 0x5adad8
inc eax
mov dword [edi + 4], eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x20], bl
call fcn.007a0570
lea ecx, [esp + 0x10]
mov dword [esp + 0x20], 0xffffffff
call fcn.007a0570
lea eax, [esi + 4]
lea ecx, [esi + 0x14]
lea edx, [esi + 0x18]
mov dword [esp + 0x20], 2
mov dword [esi + 0xc], eax
mov dword [esi + 0x1c], ecx
mov dword [esi + 0x20], edx
lea eax, [esi + 8]
lea ecx, [esi + 0x24]
lea edx, [esi + 0x28]
mov dword [esi], 0x7f3720
mov dword [esi + 0x10], eax
mov dword [esi + 0x2c], ecx
mov dword [esi + 0x30], edx
mov dword [eax], ebx
mov eax, dword [esi + 0x20]
push ebx
push ebx
mov dword [eax], ebx
mov ecx, dword [esi + 0x30]
push ebx
mov dword [ecx], ebx
mov ecx, esi
call fcn.005adbb0
mov cl, byte [esp + 0x28]
xor eax, eax
mov dword [esp + 0x20], 3
mov dword [esi], 0x7eb32c
test cl, 1
jne 0x5adb5c
mov eax, 4
test cl, 2
jne 0x5adb63
or al, 2
mov edx, dword [esi + 0xc]
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x40], 0x20
mov dword [esi + 0x44], eax
mov dword [edx], ebx
mov eax, dword [esi + 0x1c]
pop edi
mov dword [eax], ebx
mov ecx, dword [esi + 0x2c]
mov dword [ecx], ebx
mov edx, dword [esi + 0x10]
mov dword [edx], ebx
mov eax, dword [esi + 0x20]
mov dword [eax], ebx
mov ecx, dword [esi + 0x30]
mov eax, esi
pop esi
mov dword [ecx], ebx
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x18], 0xffffffff
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret 4
Function at 0x5b84b0
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x7ca90b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x150
mov eax, dword [esp + 0x168]
mov ecx, dword [esp + 0x164]
mov edx, dword [esp + 0x160]
push eax
push ecx
lea eax, [esp + 8]
push edx
push eax
call fcn.00766f80
add esp, 0x10
mov eax, dword [esp + 4]
mov dword [esp + 0x158], 0
test eax, eax
jne 0x5b8508
mov eax, 0x7e5658
lea ecx, [esp + 0x10]
push esi
push ecx
push eax
call dword [sym.imp.kernel32.dll_FindFirstFileA]
mov esi, eax
test esi, esi
jne 0x5b8547
push eax
call dword [sym.imp.kernel32.dll_FindClose]
mov ecx, dword [esp + 8]
mov dword [esp + 0x15c], 0xffffffff
test ecx, ecx
je 0x5b85a5
mov al, byte [ecx - 1]
test al, al
je 0x5b859b
cmp al, 0xff
je 0x5b859b
dec al
mov byte [ecx - 1], al
jmp 0x5b85a5
mov eax, dword [esp + 8]
test eax, eax
jne 0x5b8554
mov eax, 0x7e5658
push eax
call dword [sym.imp.kernel32.dll_DeleteFileA]
test eax, eax
push esi
jne 0x5b851c
call dword [sym.imp.kernel32.dll_FindClose]
mov ecx, dword [esp + 8]
mov dword [esp + 0x15c], 0xffffffff
test ecx, ecx
je 0x5b8597
mov al, byte [ecx - 1]
test al, al
je 0x5b858d
cmp al, 0xff
je 0x5b858d
dec al
mov byte [ecx - 1], al
xor al, al
jmp 0x5b85a7
dec ecx
push ecx
call fcn.007a02e0
add esp, 4
xor al, al
jmp 0x5b85a7
dec ecx
push ecx
call fcn.007a02e0
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x154]
pop esi
mov dword fs:[0], ecx
add esp, 0x15c
ret 0xc
Function at 0x5bb0a0
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x7cab4b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x864
mov eax, dword [ecx + 0xd8]
mov edx, dword [ecx + 0xd4]
inc eax
push eax
mov eax, dword [ecx + 0xcc]
push edx
lea ecx, [esp + 8]
push eax
push ecx
call fcn.00766f80
add esp, 0x10
mov eax, dword [esp + 4]
mov dword [esp + 0x86c], 0
test eax, eax
jne 0x5bb0f6
mov eax, 0x7e5658
push esi
push 0
push 0x80
push 3
push 0
push 0
push SysReAllocString
push eax
call dword [sym.imp.kernel32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x5bb157
mov ecx, dword [esp + 8]
mov dword [esp + 0x870], eax
test ecx, ecx
je 0x5bb210
mov al, byte [ecx - 1]
test al, al
je 0x5bb150
cmp al, 0xff
je 0x5bb150
dec al
pop esi
mov byte [ecx - 1], al
mov ecx, dword [esp + 0x864]
mov dword fs:[0], ecx
add esp, 0x870
ret
dec ecx
push ecx
jmp 0x5bb208
push ebx
push ebp
push edi
push 0
push esi
call dword [sym.imp.kernel32.dll_GetFileSize]
mov ebx, eax
push ebx
call fcn.007a2d8d
add esp, 4
lea edx, [esp + 0x20]
mov ebp, eax
push 0
push edx
push ebx
push ebp
push esi
call dword [sym.imp.kernel32.dll_ReadFile]
push esi
call dword [sym.imp.kernel32.dll_CloseHandle]
mov ecx, ebx
mov esi, ebp
mov eax, ecx
lea edi, [esp + 0x28]
shr ecx, 2
mov byte [esp + 0x24], 0x3c
mov byte [esp + 0x25], 0x1a
mov word [esp + 0x26], bx
push ebp
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
add ebx, 4
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.007a02e0
add esp, 4
lea ecx, [esp + 0x24]
push ebx
push ecx
mov ecx, dword [0x9eba54]
call fcn.004633d0
mov eax, dword [esp + 0x14]
pop edi
pop ebp
mov dword [esp + 0x874], 0xffffffff
test eax, eax
pop ebx
je 0x5bb210
mov cl, byte [eax - 1]
test cl, cl
je 0x5bb206
cmp cl, 0xff
je 0x5bb206
dec cl
pop esi
mov byte [eax - 1], cl
mov ecx, dword [esp + 0x864]
mov dword fs:[0], ecx
add esp, 0x870
ret
dec eax
push eax
call fcn.007a02e0
add esp, 4
mov ecx, dword [esp + 0x868]
pop esi
mov dword fs:[0], ecx
add esp, 0x870
ret