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

Disassembly:
push 0xffffffffffffffff
push 0x4b5186
mov eax, dword fs:[0]
push eax
sub esp, 0x12c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4f4930]
xor eax, esp
push eax
lea eax, [esp + 0x140]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x154]
mov edi, ecx
cmp byte [edi + 0x11c], 0
lea eax, [edi + 0xc]
jne 0x41e385
mov eax, dword [edi + 8]
lea esi, [eax + 4]
call fcn.00426a10
mov ecx, edi
mov bl, al
call fcn.0041c660
test al, al
jne 0x41e4c1
cmp byte [edi + 0x11c], al
lea eax, [edi + 0xc]
jne 0x41e3ac
mov eax, dword [edi + 8]
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x41e3c8
shr eax, 4
not al
and al, 1
jne 0x41e44b
test ebp, ebp
je 0x41e3d3
mov dword [ebp], 1
cmp byte [edi + 0x11c], 0
je 0x41e3e1
add edi, 0xc
jmp 0x41e3e4
mov edi, dword [edi + 8]
lea ecx, [esp + 0x1c]
call fcn.0041ead0
lea eax, [edi + 4]
lea edx, [esp + 0x1c]
call fcn.0041ed00
mov ecx, dword [esp + 0x150]
push 0x4d46f4
mov dword [esp + 0x14c], 1
call fcn.0041a480
mov edi, eax
lea eax, [esp + 0x20]
call fcn.0041a910
cmp byte [esp + 0x138], 0
mov dword [esp + 0x1c], 0x4d4d70
jne 0x41e447
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x28]
cmp eax, ecx
je 0x41e447
push eax
call fcn.00470027
add esp, 4
xor al, al
jmp 0x41e4c3
test bl, bl
je 0x41e4c1
cmp byte [edi + 0x11c], 0
lea eax, [edi + 0xc]
jne 0x41e45e
mov eax, dword [edi + 8]
add eax, 4
push eax
call fcn.00428f50
test ebp, ebp
je 0x41e46e
mov dword [ebp], eax
test eax, eax
je 0x41e4c1
cmp byte [edi + 0x11c], 0
je 0x41e480
add edi, 0xc
jmp 0x41e483
mov edi, dword [edi + 8]
mov ecx, dword [esp + 0x150]
push eax
push 0x4d4d10
call fcn.00403120
mov ecx, eax
call fcn.0041a850
mov esi, eax
push 0x4d4d20
push 0x4d4204
mov edx, esi
call fcn.0041f080
add esp, 8
add edi, 4
push edi
mov ecx, esi
call fcn.0041a870
xor al, al
jmp 0x41e4c3
mov al, 1
mov ecx, dword [esp + 0x140]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x138
ret 8
Function at 0x41f900
Capabilities:
Check if file exists
Delete file
Enumerate files on windows
Enumerate files recursively
Get file attributes
Move file

Disassembly:
push 0xffffffffffffffff
push 0x4b1ec6
mov eax, dword fs:[0]
push eax
sub esp, 0x92c
mov eax, dword [0x4f4930]
xor eax, esp
mov dword [esp + 0x928], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4f4930]
xor eax, esp
push eax
lea eax, [esp + 0x940]
mov dword fs:[0], eax
mov edi, dword [esp + 0x950]
lea ecx, [esp + 0x18]
call fcn.0041ead0
mov eax, edi
lea edx, [esp + 0x18]
call fcn.0041ed00
mov dword [esp + 0x948], 1
xor esi, esi
cmp byte [esp + 0x134], 0
lea eax, [esp + 0x24]
jne 0x41f975
mov eax, dword [esp + 0x20]
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x41f98d
shr eax, 4
not al
and al, 1
jne 0x41f9a3
lea ecx, [esp + 0x18]
call fcn.0041c660
test al, al
je 0x41fa26
mov esi, 0x4000
mov ebx, dword [sym.imp.KERNEL32.dll_MoveFileExW]
test esi, 0x4000
je 0x41fafa
push edi
lea edx, [esp + 0x140]
push str._s.
push edx
call fcn.004214c0
add esp, 0xc
push 0x506fe0
lea eax, [esp + 0x140]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x41fafa
mov ebp, dword [sym.imp.KERNEL32.dll_FindNextFileW]
nop
mov ecx, 0x4cb12c
mov eax, 0x50700c
lea ebx, [ebx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x41fa54
test dx, dx
je 0x41fa22
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x41fa54
add eax, 4
add ecx, 4
test dx, dx
jne 0x41fa00
xor eax, eax
jmp 0x41fa59
cmp byte [esp + 0x134], 0
mov dword [esp + 0x18], 0x4d4d70
jne 0x41fa4d
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x24]
cmp eax, ecx
je 0x41fa4d
push eax
call fcn.00470027
add esp, 4
xor eax, eax
jmp 0x41fb2c
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x41fae3
mov ecx, 0x4cb130
mov eax, 0x50700c
jmp 0x41fa70
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x41fa96
test dx, dx
je 0x41fa92
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x41fa96
add eax, 4
add ecx, 4
test dx, dx
jne 0x41fa70
xor eax, eax
jmp 0x41fa9b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x41fae3
push 0x50700c
push edi
lea ecx, [esp + 0x144]
push 0x4d5b8c
push ecx
call fcn.004214c0
add esp, 0x10
test byte [0x506fe0], 0x10
je 0x41fad5
lea edx, [esp + 0x13c]
push edx
call fcn.0041f900
add esp, 4
jmp 0x41fae3
push 4
push 0
lea eax, [esp + 0x144]
push eax
call ebx
push 0x506fe0
push esi
call ebp
test eax, eax
jne 0x41f9f0
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
push 4
push 0
push edi
call ebx
cmp byte [esp + 0x134], 0
mov esi, eax
mov dword [esp + 0x18], 0x4d4d70
jne 0x41fb2a
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x24]
cmp eax, ecx
je 0x41fb2a
push eax
call fcn.00470027
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x940]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x928]
xor ecx, esp
call fcn.0046fdae
add esp, 0x938
ret
Function at 0x41fc10
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4b602c
mov eax, dword fs:[0]
push eax
sub esp, 0xa60
mov eax, dword [0x4f4930]
xor eax, esp
mov dword [esp + 0xa58], eax
push ebx
push esi
push edi
mov eax, dword [0x4f4930]
xor eax, esp
push eax
lea eax, [esp + 0xa70]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov eax, edi
call fcn.0041fb60
test al, al
je 0x41fcbb
lea ecx, [esp + 0x14]
xor esi, esi
call fcn.0041ead0
mov eax, edi
lea edx, [esp + 0x14]
call fcn.0041ed00
lea eax, [esp + 0x10]
mov dword [esp + 0xa78], 1
push eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x14], esi
call fcn.0041c5e0
test al, al
jne 0x41fcc2
mov dword [esp + 0x14], 0x4d4d70
cmp byte [esp + 0x130], al
jne 0x41fcbb
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x20]
cmp eax, ecx
je 0x41fcbb
push eax
call fcn.00470027
add esp, 4
xor eax, eax
jmp 0x41fe63
test dword [esp + 0x10], 0x4000
je 0x41fddb
push edi
lea edx, [esp + 0x268]
push str._s.
push edx
call fcn.004214c0
add esp, 0xc
push 0x5073a0
lea eax, [esp + 0x268]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x41fdd0
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileW]
lea ebx, [ebx]
mov ecx, 0x4cb12c
mov eax, 0x5073cc
lea ebx, [ebx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x41fd46
test dx, dx
je 0x41fd42
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x41fd46
add eax, 4
add ecx, 4
test dx, dx
jne 0x41fd20
xor eax, eax
jmp 0x41fd4b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x41fdb9
mov ecx, 0x4cb130
mov eax, 0x5073cc
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x41fd86
test dx, dx
je 0x41fd82
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x41fd86
add eax, 4
add ecx, 4
test dx, dx
jne 0x41fd60
xor eax, eax
jmp 0x41fd8b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x41fdb9
push 0x5073cc
push edi
lea ecx, [esp + 0x26c]
push 0x4d5b8c
push ecx
call fcn.004214c0
lea edx, [esp + 0x274]
push 1
push edx
call fcn.0041fc10
add esp, 0x18
push 0x5073a0
push esi
call ebx
test eax, eax
jne 0x41fd10
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov esi, eax
jmp 0x41fe3a
lea ecx, [esp + 0x13c]
call fcn.0041ead0
mov eax, edi
lea edx, [esp + 0x13c]
call fcn.0041ed00
push esi
lea ecx, [esp + 0x140]
mov byte [esp + 0xa7c], 3
call fcn.0041c910
cmp byte [esp + 0x258], 0
mov dword [esp + 0x13c], 0x4d4d70
jne 0x41fe3a
mov eax, dword [esp + 0x144]
lea ecx, [esp + 0x148]
cmp eax, ecx
je 0x41fe3a
push eax
call fcn.00470027
add esp, 4
cmp byte [esp + 0x130], 0
mov dword [esp + 0x14], 0x4d4d70
jne 0x41fe61
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x20]
cmp eax, edx
je 0x41fe61
push eax
call fcn.00470027
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0xa70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xa58]
xor ecx, esp
call fcn.0046fdae
mov esp, ebp
pop ebp
ret
Function at 0x420070
Capabilities:
Get file version info

Disassembly:
sub esp, 0x10
push ebx
push ebp
mov ebp, dword [esp + 0x1c]
lea eax, [esp + 0xc]
xor ebx, ebx
push eax
push edi
mov byte [esp + 0x13], 0
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [esp + 0xc], eax
cmp eax, ebx
jne 0x4200a7
pop ebp
xor al, al
pop ebx
add esp, 0x10
ret
push eax
call fcn.00470104
mov ecx, dword [esp + 0x10]
add esp, 4
mov ebx, eax
push ebx
push ecx
push 0
push edi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x420129
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x14]
push eax
push 0x4cb7d0
push ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x420129
mov eax, dword [esp + 0x10]
movzx ecx, word [eax + 0xa]
mov word [esi], cx
movzx edx, word [eax + 8]
mov word [esi + 2], dx
movzx ecx, word [eax + 0xe]
mov word [esi + 4], cx
movzx edx, word [eax + 0xc]
mov word [esi + 6], dx
test ebp, ebp
je 0x420124
movzx ecx, word [eax + 0x12]
mov word [ebp], cx
movzx edx, word [eax + 0x10]
mov word [ebp + 2], dx
movzx ecx, word [eax + 0x16]
mov word [ebp + 4], cx
movzx edx, word [eax + 0x14]
mov word [ebp + 6], dx
mov byte [esp + 0xb], 1
test ebx, ebx
je 0x420136
push ebx
call fcn.00470027
add esp, 4
mov al, byte [esp + 0xb]
pop ebp
pop ebx
add esp, 0x10
ret

Function at 0x420140
Capabilities:
Get common file path

Disassembly:
sub esp, 0x21c
mov eax, dword [0x4f4930]
xor eax, esp
mov dword [esp + 0x218], eax
push ebp
mov ebp, dword [esp + 0x224]
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x1e]
push ecx
mov word [esp + 0x20], ax
call fcn.00476c30
add esp, 0xc
push 0x104
lea edx, [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x4201a2
xor al, al
pop ebp
mov ecx, dword [esp + 0x218]
xor ecx, esp
call fcn.0046fdae
add esp, 0x21c
ret
push esi
push edi
push 0x4d5be0
lea eax, [esp + 0x20]
push 0x104
push eax
call fcn.00471f8e
lea ecx, [esp + 0x18]
push ecx
lea esi, [esp + 0x24]
lea edi, [esp + 0x2c]
call fcn.00420070
add esp, 0x10
pop edi
pop esi
test al, al
je 0x42018a
movzx edx, word [esp + 0xc]
movzx eax, word [esp + 0xe]
movzx ecx, word [esp + 0x10]
mov dword [ebx + 4], edx
mov dword [ebx + 8], eax
xor edx, edx
mov eax, 2
mov dword [ebx], 0x114
mov dword [ebx + 0xc], ecx
mov dword [ebx + 0x10], eax
mov word [ebx + 0x14], dx
test ebp, ebp
je 0x42022b
movzx ecx, word [esp + 4]
movzx edx, word [esp + 6]
mov dword [ebp + 4], ecx
movzx ecx, word [esp + 8]
mov dword [ebp + 8], edx
xor edx, edx
mov dword [ebp], 0x114
mov dword [ebp + 0xc], ecx
mov dword [ebp + 0x10], eax
mov word [ebp + 0x14], dx
mov ecx, dword [esp + 0x21c]
pop ebp
xor ecx, esp
mov al, 1
call fcn.0046fdae
add esp, 0x21c
ret
Function at 0x4206f0
Capabilities:
Get disk information

Disassembly:
sub esp, 0x220
mov eax, dword [0x4f4930]
xor eax, esp
mov dword [esp + 0x21c], eax
mov eax, dword [esp + 0x228]
push ebp
mov ebp, dword [esp + 0x228]
cmp word [ebp], 0x5c
mov dword [esp + 4], eax
je 0x420748
push ebp
push 0x104
push eax
call fcn.0047149d
add esp, 0xc
mov eax, 1
pop ebp
mov ecx, dword [esp + 0x21c]
xor ecx, esp
call fcn.0046fdae
add esp, 0x220
ret
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
push 0
push 0
call edi
mov esi, eax
test esi, esi
jne 0x420774
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x21c]
xor ecx, esp
call fcn.0046fdae
add esp, 0x220
ret
lea eax, [esi + esi + 2]
push ebx
push eax
call fcn.00470104
add esp, 4
mov ebx, eax
push ebx
lea ecx, [esi + 1]
push ecx
mov dword [esp + 0x1c], ebx
call edi
cmp eax, esi
ja 0x4208b8
test eax, eax
je 0x4208b8
mov edx, dword [0x4d5c20]
mov ax, word [0x4d5c24]
xor ecx, ecx
push 0x206
mov dword [esp + 0x20], edx
push ecx
lea edx, [esp + 0x2e]
push edx
mov edi, ebx
mov word [esp + 0x2c], ax
mov word [esp + 0x30], cx
call fcn.00476c30
add esp, 0xc
xor bl, bl
mov ax, word [edi]
push 0x104
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x24]
push edx
mov word [esp + 0x28], ax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x420831
lea eax, [esp + 0x24]
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x420800
sub eax, edx
sar eax, 1
mov esi, eax
cmp esi, 0x104
jae 0x420831
push esi
lea eax, [esp + 0x28]
push eax
push ebp
call fcn.004712b8
add esp, 0xc
test eax, eax
sete bl
test bl, bl
jne 0x420880
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x420836
sub eax, edx
sar eax, 1
je 0x4208a6
mov eax, edi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x420850
sub eax, edx
sar eax, 1
cmp word [edi + eax*2 + 2], cx
lea edi, [edi + eax*2 + 2]
jne 0x4207d2
mov ecx, dword [esp + 0x14]
push ecx
call fcn.00470027
add esp, 4
movzx eax, bl
jmp 0x4208c3
mov eax, dword [esp + 0x10]
lea ecx, [ebp + esi*2]
push ecx
lea edx, [esp + 0x20]
push edx
push 0x4d5c28
push 0x103
push 0x104
push eax
call fcn.0046fddb
add esp, 0x18
mov ecx, dword [esp + 0x14]
push ecx
call fcn.00470027
add esp, 4
movzx eax, bl
jmp 0x4208c3
push ebx
call fcn.00470027
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x22c]
pop ebx
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.0046fdae
add esp, 0x220
ret
Function at 0x421560
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4b3253
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x4f4930]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
fld dword [0x4e40c4]
xor edi, edi
mov dword [esi], edi
mov dword [esi + 4], edi
mov dword [esi + 8], 0x11
mov dword [esi + 0x18], 0xffffffff
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], 0xa
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], ebx
fstp dword [esi + 0xc]
fld dword [0x4e40c8]
mov ecx, esi
fstp dword [esi + 0x10]
fld dword [0x4e40cc]
fstp dword [esi + 0x14]
call fcn.00422b90
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x44], ebx
mov dword [esi + 0x48], edi
mov dword [esi + 0x4c], edi
mov dword [esi + 0x50], edi
mov dword [esi + 0x54], edi
mov dword [esi + 0x58], ebx
mov dword [esi + 0x5c], ebx
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 4
Function at 0x422c30
Capabilities:
Encrypt data using aes

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
jmp fcn.0042abf0

Function at 0x423190
Capabilities:
Get file version info

Disassembly:
sub esp, 0x10
push ebx
push ebp
mov ebp, dword [esp + 0x1c]
lea eax, [esp + 0xc]
xor ebx, ebx
push eax
push ebp
mov byte [esp + 0x13], bl
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [esp + 0xc], eax
cmp eax, ebx
jne 0x4231c6
pop ebp
xor al, al
pop ebx
add esp, 0x10
ret
push esi
push eax
call fcn.00470104
mov ecx, dword [esp + 0x14]
add esp, 4
mov esi, eax
push esi
push ecx
push ebx
push ebp
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x423224
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x18]
push eax
push 0x4cb7d0
push esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x423224
mov eax, dword [esp + 0x14]
movzx ecx, word [eax + 0xa]
movzx edx, word [eax + 8]
mov word [edi], cx
movzx ecx, word [eax + 0xe]
mov word [edi + 2], dx
movzx edx, word [eax + 0xc]
mov word [edi + 4], cx
mov word [edi + 6], dx
mov byte [esp + 0xf], 1
cmp esi, ebx
je 0x423231
push esi
call fcn.00470027
add esp, 4
mov al, byte [esp + 0xf]
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x424520
Capabilities:
Set file attributes

Disassembly:
sub esp, 0xc
push ebx
push ebp
mov ebp, dword [esp + 0x18]
push esi
push edi
mov edi, ecx
mov esi, eax
mov eax, dword [edi + 0x130]
mov edx, dword [eax + 0x18]
lea ebx, [edi + 0x130]
push esi
push ebp
mov ecx, ebx
call edx
test al, al
jne 0x42456f
mov ecx, ebp
call fcn.0041a480
push 0x4d4648
push 0x4d4204
mov edx, eax
call fcn.0041f080
add esp, 8
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 8
push ebp
push ebx
call fcn.004238a0
test al, al
je 0x424548
xor eax, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], eax
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x14]
mov dword [edi + 0x34c], ebx
mov ebx, dword [esp + 0x28]
push ecx
lea edx, [esp + 0x1c]
push edx
mov eax, ebp
mov dword [edi + 8], ebx
call fcn.00424320
add esp, 0xc
test al, al
jne 0x4245fb
cmp byte [esi + 0x11c], al
je 0x4245bf
add esi, 0xc
jmp 0x4245c2
mov esi, dword [esi + 8]
mov ecx, ebp
call fcn.0041a480
mov edi, eax
push 0x4d6120
push 0x4d4204
mov edx, edi
call fcn.0041f080
add esi, 4
push esi
push 0x4d4204
mov edx, edi
call fcn.0041f080
add esp, 0x10
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 8
mov ebp, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
push 0
push 0x80
push ebp
push 0
push eax
push ecx
mov ecx, esi
call fcn.0041c370
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [edi + 4], eax
mov ebx, 1
cmp eax, 0xffffffff
jne 0x4246a7
mov edi, edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x24], eax
cmp eax, 0x20
jne 0x42465b
cmp ebx, 3
jge 0x4246f5
cmp byte [edi + 0x350], 0
je 0x42467c
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x42467c
cmp eax, 5
jne 0x4246bc
cmp ebx, 3
jge 0x4246f5
push 0x80
mov ecx, esi
call fcn.0041c370
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
push 0
push 0x80
push ebp
push 0
push edx
push eax
mov ecx, esi
call fcn.0041c370
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
inc ebx
mov dword [edi + 4], eax
cmp eax, 0xffffffff
je 0x424630
push esi
lea ecx, [edi + 0xc]
call fcn.0041c490
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 8
test eax, eax
jne 0x4246f5
cmp byte [esi + 0x11c], al
je 0x4246cd
add esi, 0xc
jmp 0x4246d0
mov esi, dword [esi + 8]
mov ecx, dword [esp + 0x20]
add esi, 4
push esi
push 0x4d6130
call fcn.00403120
mov ecx, eax
call fcn.0041a870
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 8
cmp byte [esi + 0x11c], 0
lea ebx, [esi + 0xc]
jne 0x424704
mov ebx, dword [esi + 8]
mov ebp, dword [esp + 0x20]
mov ecx, ebp
call fcn.0041a480
mov edi, dword [esp + 0x24]
mov esi, eax
call fcn.0041a720
mov ecx, ebp
call fcn.0041a480
add ebx, 4
push ebx
push 0x4d6120
mov ecx, eax
call fcn.0041a870
mov ecx, eax
call fcn.0041a870
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0xc
ret 8
Function at 0x424820
Capabilities:
Read file on windows

Disassembly:
push ecx
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_SetLastError]
push esi
push edi
push 0
mov ebx, eax
mov edi, ecx
mov esi, edx
call ebp
test edi, edi
jne 0x424849
test ebx, ebx
je 0x42483f
mov dword [ebx], edi
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
pop ecx
ret 8
mov ecx, dword [esp + 0x1c]
mov edx, dword [esi + 4]
push 0
lea eax, [esp + 0x14]
push eax
push edi
push ecx
push edx
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4248cf
lea ebx, [esi + 0x18]
cmp byte [esi + 0x128], al
jne 0x42487a
mov ebx, dword [esi + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x18]
mov edi, eax
call fcn.0041a480
mov esi, eax
call fcn.0041a720
push 0
call ebp
mov ecx, dword [esp + 0x18]
call fcn.0041a480
mov esi, eax
push 0x4d6150
push 0x4d4204
mov edx, esi
call fcn.0041f080
add ebx, 4
push ebx
push 0x4d4204
mov edx, esi
call fcn.0041f080
add esp, 0x10
pop edi
pop esi
pop ebp
xor al, al
pop ebx
pop ecx
ret 8
mov eax, dword [esp + 0x10]
test ebx, ebx
je 0x4248d9
mov dword [ebx], eax
test eax, eax
jne 0x42483f
cmp byte [esi + 0x128], al
je 0x4248ee
add esi, 0x18
jmp 0x4248f1
mov esi, dword [esi + 0x14]
mov ecx, dword [esp + 0x18]
call fcn.0041a480
mov edi, eax
push 0x4d6160
push 0x4d4204
mov edx, edi
call fcn.0041f080
add esi, 4
push esi
push 0x4d4204
mov edx, edi
call fcn.0041f080
add esp, 0x10
pop edi
pop esi
pop ebp
xor al, al
pop ebx
pop ecx
ret 8

Function at 0x424930
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_SetLastError]
push esi
push edi
push 0
mov edi, eax
mov esi, ecx
call ebp
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push 0
lea eax, [esp + 0x10]
push eax
mov eax, dword [esi + 4]
push ecx
push edx
push eax
mov dword [esp + 0x20], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4249cd
push ebx
lea ebx, [esi + 0x18]
cmp byte [esi + 0x128], al
jne 0x424978
mov ebx, dword [esi + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x18]
mov edi, eax
call fcn.0041a480
mov esi, eax
call fcn.0041a720
push 0
call ebp
mov ecx, dword [esp + 0x18]
call fcn.0041a480
mov esi, eax
push 0x4d6180
push 0x4d4204
mov edx, esi
call fcn.0041f080
add ebx, 4
push ebx
push 0x4d4204
mov edx, esi
call fcn.0041f080
add esp, 0x10
pop ebx
pop edi
pop esi
xor al, al
pop ebp
pop ecx
ret 0xc
test edi, edi
je 0x4249d7
mov ecx, dword [esp + 0xc]
mov dword [edi], ecx
pop edi
pop esi
mov al, 1
pop ebp
pop ecx
ret 0xc
Function at 0x426050
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4b1578
mov eax, dword fs:[0]
push eax
mov eax, dword [0x4f4930]
xor eax, esp
push eax
lea eax, [esp + 4]
mov dword fs:[0], eax
mov eax, dword [esp + 0x14]
xor ecx, ecx
mov byte [eax + 4], cl
mov dword [eax + 8], 0x4d61b0
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x18], ecx
mov dword [eax + 0x1c], ecx
mov dword [eax + 0x20], fcn.00470104
mov dword [eax + 0x24], fcn.00470421
mov dword [eax + 0x28], fcn.00470027
mov dword [eax + 0x2c], ecx
mov ecx, dword [esp + 0x18]
mov dword [eax], 0x4d42b4
mov dword [eax + 0x30], ecx
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
pop ecx
add esp, 0xc
ret 8

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

Disassembly:
push 0xffffffffffffffff
push 0x4b1578
mov eax, dword fs:[0]
push eax
mov eax, dword [0x4f4930]
xor eax, esp
push eax
lea eax, [esp + 4]
mov dword fs:[0], eax
mov eax, dword [esp + 0x14]
xor ecx, ecx
mov byte [eax + 4], cl
mov dword [eax + 8], 0x4d61b0
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x18], ecx
mov dword [eax + 0x1c], ecx
mov dword [eax + 0x20], fcn.00470104
mov dword [eax + 0x24], fcn.00470421
mov dword [eax + 0x28], fcn.00470027
mov dword [eax + 0x2c], ecx
mov ecx, dword [esp + 0x18]
mov dword [eax], 0x4d42e4
mov dword [eax + 0x30], ecx
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
pop ecx
add esp, 0xc
ret 8
Function at 0x429470
Capabilities:
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x4b42db
mov eax, dword fs:[0]
push eax
sub esp, 0x364
mov eax, dword [0x4f4930]
xor eax, esp
mov dword [esp + 0x35c], eax
push ebp
push esi
push edi
mov eax, dword [0x4f4930]
xor eax, esp
push eax
lea eax, [esp + 0x374]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x384]
lea esi, [esp + 0x14]
mov edi, ecx
call fcn.004243d0
mov dword [esp + 0x14], 0x4d67b0
mov dword [esp + 0x368], 0x4d67b8
xor esi, esi
mov dword [esp + 0x37c], esi
cmp byte [edi + 0x11c], 0
lea eax, [edi + 0xc]
jne 0x4294e7
mov eax, dword [edi + 8]
push 0x80
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 1
push ebx
mov eax, edi
lea ecx, [esp + 0x1c]
call fcn.00424520
test al, al
jne 0x429533
mov dword [esp + 0x37c], 0xffffffff
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], 0x4d67b0
mov dword [esp + 0x368], 0x4d6930
call fcn.00424450
xor al, al
jmp 0x4295a9
push 2
push 0x4d5d28
push ebx
lea ecx, [esp + 0x374]
call fcn.00429f70
test al, al
je 0x429508
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 4]
push eax
push ecx
push ebx
lea ecx, [esp + 0x374]
call fcn.00429f70
test al, al
je 0x429508
lea edi, [esp + 0x14]
call fcn.00424750
mov edx, dword [ebp + 4]
push edx
call fcn.00470027
mov dword [esp + 0x380], 0xffffffff
add esp, 4
mov ecx, edi
mov dword [ebp + 4], esi
mov dword [ebp + 8], esi
mov dword [ebp + 0xc], esi
mov dword [esp + 0x14], 0x4d67b0
mov dword [esp + 0x368], 0x4d6930
call fcn.00424450
mov al, 1
mov ecx, dword [esp + 0x374]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x35c]
xor ecx, esp
call fcn.0046fdae
add esp, 0x370
ret 4