joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40f0d0
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 8]
push esi
xor esi, esi
test eax, eax
jle 0x40f143
mov eax, dword [esp + 0x10]
push ebx
and eax, 0xffff
push ebp
push edi
lea ecx, [eax + eax*4]
mov eax, dword [esp + 0x20]
shl ecx, 1
and eax, 0xff
add eax, ecx
lea edi, [eax + eax*4]
mov eax, dword [esp + 0x24]
and eax, 0xff
add eax, ecx
mov ecx, dword [esp + 0x14]
shl edi, 3
lea ebp, [eax + eax*4]
shl ebp, 3
mov eax, esi
mov ebx, 0x28
cdq
idiv ebx
mov bl, byte [ecx]
mov al, byte [edx + edi + 0x474668]
xor bl, al
mov byte [ecx], bl
mov dl, byte [edx + ebp + 0x474668]
mov al, bl
xor dl, al
mov eax, dword [esp + 0x18]
mov byte [ecx], dl
inc ecx
inc esi
cmp esi, eax
jl 0x40f112
pop edi
pop ebp
pop ebx
pop esi
ret 0x14

Function at 0x40f150
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 8]
push esi
xor esi, esi
test eax, eax
jle 0x40f1c3
mov eax, dword [esp + 0x10]
push ebx
and eax, 0xffff
push ebp
push edi
lea ecx, [eax + eax*4]
mov eax, dword [esp + 0x24]
shl ecx, 1
and eax, 0xff
add eax, ecx
lea edi, [eax + eax*4]
mov eax, dword [esp + 0x20]
and eax, 0xff
add eax, ecx
mov ecx, dword [esp + 0x14]
shl edi, 3
lea ebp, [eax + eax*4]
shl ebp, 3
mov eax, esi
mov ebx, 0x28
cdq
idiv ebx
mov bl, byte [ecx]
mov al, byte [edx + edi + 0x474668]
xor bl, al
mov byte [ecx], bl
mov dl, byte [edx + ebp + 0x474668]
mov al, bl
xor dl, al
mov eax, dword [esp + 0x18]
mov byte [ecx], dl
inc ecx
inc esi
cmp esi, eax
jl 0x40f192
pop edi
pop ebp
pop ebx
pop esi
ret 0x14

Function at 0x40f300
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, dword [esp + 0xc]
push esi
xor esi, esi
test ebp, ebp
jle 0x40f35b
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
and eax, 0xffff
and ecx, 0xff
push ebx
push edi
lea eax, [eax + eax*4]
lea eax, [ecx + eax*2]
mov ecx, dword [esp + 0x14]
lea edi, [eax + eax*4]
shl edi, 3
mov eax, esi
mov ebx, 0x28
cdq
idiv ebx
mov al, byte [ecx]
mov dl, byte [edx + edi + 0x474668]
xor dl, al
mov al, dl
sar al, 7
and al, 1
shl dl, 1
or al, dl
mov byte [ecx], al
inc ecx
inc esi
cmp esi, ebp
jl 0x40f331
pop edi
pop ebx
pop esi
pop ebp
ret 0x10

Function at 0x40f360
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov eax, dword [esp + 8]
push edi
xor edi, edi
test eax, eax
jle 0x40f3c3
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
and eax, 0xffff
and ecx, 0xff
push ebx
push ebp
lea eax, [eax + eax*4]
push esi
mov esi, dword [esp + 0x14]
lea eax, [ecx + eax*2]
lea ebx, [eax + eax*4]
shl ebx, 3
mov al, byte [esi]
mov ebp, 0x28
mov cl, al
sar cl, 1
and cl, 0x7f
shl al, 7
or cl, al
mov eax, edi
cdq
idiv ebp
mov eax, dword [esp + 0x18]
mov byte [esi], cl
mov dl, byte [edx + ebx + 0x474668]
xor dl, cl
mov byte [esi], dl
inc esi
inc edi
cmp edi, eax
jl 0x40f391
pop esi
pop ebp
pop ebx
pop edi
ret 0x10
Function at 0x40f7a0
Capabilities:
Get file size

Disassembly:
mov eax, dword [esp + 4]
push esi
push 0
push 0
push 3
push 0
push 3
push closesocket
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40f7c6
xor eax, eax
pop esi
ret
push edi
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
ret

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

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40f823
xor al, al
ret
shr al, 4
and al, 1
ret

Function at 0x415ea0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x46fd4b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x378
push ebx
mov ebx, dword [esp + 0x390]
push edi
mov ecx, 0xd4
xor eax, eax
lea edi, [esp + 0x30]
rep stosd dword es:[edi], eax
mov eax, dword [ebx]
lea ecx, [esp + 0x30]
push ecx
push ebx
mov dword [esp + 0x38], 0x350
call dword [eax + 0xc]
mov cl, 0x10
test byte [esp + 0x34], 1
mov eax, dword [esp + 0x398]
jne 0x415efd
test byte [eax + 4], cl
je 0x41600c
mov dl, byte [esp + 0xb]
push ebp
xor ebp, ebp
push esi
mov byte [esp + 0x14], dl
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], ebp
mov edx, dword [esp + 0x40]
mov dword [esp + 0x390], ebp
mov dword [esp + 0x24], edx
mov edx, dword [esp + 0x44]
mov dword [esp + 0x28], edx
mov edx, dword [esp + 0x48]
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0x4c]
mov dword [esp + 0x30], edx
mov dl, byte [eax + 4]
test cl, dl
je 0x415f8b
lea edi, [eax + 0x138]
push edi
call fcn.0043011e
add esp, 4
mov esi, eax
lea ecx, [esp + 0x14]
push 1
push esi
call fcn.004162a0
test al, al
je 0x415f8b
mov eax, dword [esp + 0x18]
cmp esi, ebp
mov ecx, edi
jbe 0x415f7f
mov edx, esi
mov di, word [ecx]
add ecx, 2
mov word [eax], di
add eax, 2
dec edx
jne 0x415f70
mov eax, dword [esp + 0x18]
mov dword [esp + 0x1c], esi
mov word [eax + esi*2], bp
mov ecx, dword [esp + 0x398]
mov dword [esp + 0x34], ebx
push 0x2c
mov edi, dword [ecx + 0xc]
mov esi, dword [edi + 4]
mov ebp, dword [esi + 4]
call fcn.00461a0b
add esp, 4
mov ecx, esi
test esi, esi
jne 0x415fb1
mov ecx, eax
mov dword [eax], ecx
mov ecx, ebp
test ebp, ebp
jne 0x415fbb
mov ecx, eax
mov dword [eax + 4], ecx
mov dword [esi + 4], eax
mov edx, dword [eax + 4]
lea ecx, [esp + 0x14]
push ecx
mov dword [edx], eax
add eax, 8
push eax
call fcn.004164e0
mov edx, dword [edi + 8]
add esp, 8
inc edx
mov dword [edi + 8], edx
mov edx, dword [ebx]
push ebx
call dword [edx + 4]
pop esi
pop ebp
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x41600c
mov al, byte [ecx - 1]
test al, al
je 0x416000
cmp al, 0xff
je 0x416000
dec al
mov byte [ecx - 1], al
jmp 0x41600c
add ecx, 0xfffffffe
push ecx
call fcn.00461a34
add esp, 4
mov ecx, dword [esp + 0x380]
pop edi
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x384
ret 0xc
Function at 0x4191a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 0xc]
sub esp, 0x48
cmp eax, 1
push ebx
mov ebx, ecx
push ebp
push esi
push edi
mov dword [ebx + 0x7c], eax
mov dword [ebx + 0x80], 0
jne 0x419321
mov edi, dword [esp + 0x5c]
test edi, edi
jne 0x4191da
pop edi
pop esi
pop ebp
mov eax, 0x80070057
pop ebx
add esp, 0x48
ret 0xc
mov eax, dword [ebx]
test eax, eax
je 0x4191ef
push eax
call fcn.00461a34
add esp, 4
mov dword [ebx], 0
push 0x10000
push 0
push edi
call dword [sym.imp.WINMM.dll_mmioOpenA]
test eax, eax
mov dword [ebx + 4], eax
jne 0x4192e1
mov ebp, dword [sym.imp.KERNEL32.dll_FindResourceA]
push str.WAVE
push edi
push eax
call ebp
mov esi, eax
test esi, esi
jne 0x41923b
push 0x48bdb0
push edi
push eax
call ebp
mov esi, eax
test esi, esi
jne 0x41923b
pop edi
pop esi
pop ebp
mov eax, 0x80004005
pop ebx
add esp, 0x48
ret 0xc
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x419259
pop edi
pop esi
pop ebp
mov eax, 0x80004005
pop ebx
add esp, 0x48
ret 0xc
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebp, eax
test ebp, ebp
jne 0x419277
pop edi
pop esi
pop ebp
mov eax, 0x80004005
pop ebx
add esp, 0x48
ret 0xc
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x419293
pop edi
pop esi
pop ebp
mov eax, 0x80004005
pop ebx
add esp, 0x48
ret 0xc
push ebp
call fcn.00461a0b
mov ecx, ebp
mov edx, eax
mov eax, ecx
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
add esp, 4
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x12
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x10]
push 0x10000
push ecx
push eax
mov dword [esp + 0x20], 0x204d454d
mov dword [esp + 0x30], ebp
mov dword [esp + 0x34], edx
call dword [sym.imp.WINMM.dll_mmioOpenA]
mov dword [ebx + 4], eax
mov ecx, ebx
call fcn.00419390
mov esi, eax
test esi, esi
jge 0x419306
mov edx, dword [ebx + 4]
push 0
push edx
call dword [sym.imp.WINMM.dll_mmioClose]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x48
ret 0xc
mov ecx, ebx
call fcn.00419530
test eax, eax
jl 0x41937a
mov ecx, dword [ebx + 0xc]
pop edi
pop esi
mov dword [ebx + 0x30], ecx
pop ebp
pop ebx
add esp, 0x48
ret 0xc
mov edx, dword [esp + 0x5c]
push 0x11002
push 0
push edx
call dword [sym.imp.WINMM.dll_mmioOpenA]
test eax, eax
mov dword [ebx + 4], eax
jne 0x419349
pop edi
pop esi
pop ebp
mov eax, 0x80004005
pop ebx
add esp, 0x48
ret 0xc
mov eax, dword [esp + 0x60]
mov ecx, ebx
push eax
call fcn.004198a0
mov esi, eax
test esi, esi
jge 0x419373
mov ecx, dword [ebx + 4]
push 0
push ecx
call dword [sym.imp.WINMM.dll_mmioClose]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x48
ret 0xc
mov ecx, ebx
call fcn.00419530
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x48
ret 0xc
Function at 0x41b0c0
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
mov eax, dword [esp + 4]
push esi
mov esi, ecx
push eax
mov ecx, dword [esi + 0x198]
push ecx
mov ecx, esi
call fcn.0041b230
mov edx, dword [esi + 0x19c]
mov dword [esi + 0x198], eax
and eax, 0xff
mov ecx, esi
add eax, edx
imul eax, eax, 0x8088405
inc eax
mov dword [esi + 0x19c], eax
shr eax, 0x18
mov byte [esp + 8], al
mov eax, dword [esi + 0x1a0]
mov edx, dword [esp + 8]
push edx
push eax
call fcn.0041b230
mov dword [esi + 0x1a0], eax
pop esi
ret 4

Function at 0x41b8f0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x470465
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
mov eax, dword [esp + 0x38]
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push eax
lea ecx, [esp + 0x44]
mov dword [esp + 0xc], ebx
call fcn.00465d87
mov eax, dword [esp + 0x48]
mov dword [esp + 0x30], 1
test eax, eax
jne 0x41b934
mov eax, dword [esp + 0x3c]
push eax
lea ecx, [esp + 0x10]
call fcn.00465d87
mov ecx, dword [esp + 0xc]
mov byte [esp + 0x30], 2
mov eax, dword [ecx - 8]
test eax, eax
jne 0x41b96b
mov esi, dword [esp + 0x38]
lea edx, [esp + 0x40]
push edx
mov ecx, esi
call fcn.00465a8e
mov dword [esp + 8], 1
jmp 0x41ba99
mov eax, dword [esp + 0x40]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x41b994
push 0x48be28
lea ecx, [esp + 0x44]
call fcn.00460c61
mov cl, byte [0x474df8]
push ecx
lea ecx, [esp + 0x44]
call fcn.004660a8
push 0x48be28
lea ecx, [esp + 0x10]
call fcn.00460c61
mov eax, dword [0x48daf8]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x10]
push edx
mov byte [esp + 0x34], 7
mov dword [esp + 0x14], 0x474d88
call fcn.004223a0
mov al, byte [esp + 0x44]
mov byte [esp + 0x30], 8
test al, al
je 0x41ba0e
mov al, byte [esi + 4]
test al, al
je 0x41ba08
lea eax, [esp + 0x48]
lea ecx, [esp + 0x10]
push eax
call fcn.004225a0
mov ebx, 2
mov dword [esp + 8], ebx
mov byte [esp + 0x30], 9
jmp 0x41ba30
lea eax, [esp + 0xc]
jmp 0x41ba30
lea ecx, [esp + 0x10]
lea edx, [esp + 0x44]
push ecx
push edx
mov ecx, esi
call fcn.0041b550
mov ebx, 4
mov dword [esp + 8], ebx
mov dword [esp + 0x30], 0xa
push eax
lea ecx, [esp + 0x44]
call fcn.004660bd
test bl, 4
mov dword [esp + 0x30], 9
je 0x41ba57
and ebx, 0xfffffffb
lea ecx, [esp + 0x44]
mov dword [esp + 8], ebx
call fcn.00465d19
test bl, 2
mov dword [esp + 0x30], 8
je 0x41ba74
and ebx, 0xfffffffd
lea ecx, [esp + 0x48]
mov dword [esp + 8], ebx
call fcn.00465d19
mov esi, dword [esp + 0x38]
lea eax, [esp + 0x40]
push eax
mov ecx, esi
call fcn.00465a8e
or ebx, 1
lea ecx, [esp + 0x10]
mov dword [esp + 8], ebx
mov byte [esp + 0x30], 2
call fcn.00422320
lea ecx, [esp + 0xc]
mov byte [esp + 0x30], 1
call fcn.00465d19
lea ecx, [esp + 0x40]
mov byte [esp + 0x30], 0
call fcn.00465d19
mov ecx, dword [esp + 0x28]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x2c
ret 0x14
Function at 0x41bfb0
Capabilities:
Access peb ldr_data
Enumerate pe sections
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x4704d8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov esi, ecx
push 0
push 0x2e
lea ecx, [esp + 0x1c]
call fcn.0041cfd0
mov eax, dword [esp + 0x18]
mov edi, dword [esp + 0x30]
push 1
push 0x2e
push eax
mov ecx, edi
mov dword [esp + 0x34], 0
call fcn.0041f3e0
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
mov dword [esi + 4], ecx
mov dx, word [eax + 4]
mov word [esi + 8], dx
mov cx, word [eax + 6]
mov word [esi + 0xa], cx
mov dx, word [eax + 8]
mov word [esi + 0xc], dx
mov cx, word [eax + 0xa]
mov word [esi + 0xe], cx
mov dx, word [eax + 0xc]
mov word [esi + 0x10], dx
mov cx, word [eax + 0xe]
mov word [esi + 0x12], cx
mov edx, dword [eax + 0x10]
mov dword [esi + 0x14], edx
mov ecx, dword [eax + 0x14]
mov dword [esi + 0x18], ecx
mov edx, dword [eax + 0x18]
mov dword [esi + 0x1c], edx
mov cx, word [eax + 0x20]
mov dx, word [eax + 0x22]
mov bx, word [eax + 0x1c]
mov bp, word [eax + 0x1e]
mov word [esp + 0x30], cx
mov word [esi + 0x20], dx
mov cx, word [eax + 0x24]
mov word [esi + 0x22], cx
mov edx, dword [eax + 0x26]
mov dword [esi + 0x24], edx
mov eax, dword [eax + 0x2a]
lea ecx, [esp + 0x14]
mov dword [esi + 0x28], eax
call fcn.0041d010
mov edx, dword [esi + 4]
mov ecx, 0x48be30
cmp edx, dword [ecx]
je 0x41c09c
lea ecx, [esp + 0x14]
mov dword [esp + 0x28], 0xffffffff
call fcn.0041d000
xor al, al
jmp 0x41c12f
mov eax, dword [edi + 0x50]
and ebx, 0xffff
push 0
push ebx
lea ecx, [esi + 0x38]
mov dword [esp + 0x18], eax
call fcn.0041d040
mov eax, dword [esi + 0x3c]
push 1
push ebx
push eax
mov ecx, edi
call fcn.0041f3e0
test bp, bp
je 0x41c0e8
mov ebx, ebp
push 0
and ebx, 0xffff
lea ecx, [esi + 0x2c]
push ebx
call fcn.0041d040
mov eax, dword [esi + 0x30]
push 1
push ebx
push eax
mov ecx, edi
call fcn.0041f3e0
mov ebx, dword [esp + 0x30]
test bx, bx
je 0x41c110
and ebx, 0xffff
push 0
push ebx
lea ecx, [esi + 0x44]
call fcn.0041d040
mov esi, dword [esi + 0x48]
push 1
push ebx
push esi
mov ecx, edi
call fcn.0041f3e0
mov ecx, dword [esp + 0x10]
mov eax, dword [edi + 0x50]
cmp eax, ecx
lea ecx, [esp + 0x14]
sete bl
mov dword [esp + 0x28], 0xffffffff
call fcn.0041d000
mov al, bl
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 4
Function at 0x41fe80
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x470c10
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
mov ecx, dword [ecx + 0x1c]
lea edx, [esp]
push edx
mov eax, dword [ecx]
call dword [eax + 0x24]
mov ecx, dword [esp]
mov dword [esp + 0x28], 0
mov eax, dword [ecx - 8]
test eax, eax
jne 0x41feda
lea ecx, [esp]
mov dword [esp + 0x28], 0xffffffff
call fcn.00465d19
xor eax, eax
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret
mov eax, dword [0x48daf8]
push esi
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
push ecx
lea ecx, [esp + 0x10]
mov byte [esp + 0x30], 5
mov dword [esp + 0x10], 0x474d88
call fcn.004223a0
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
mov byte [esp + 0x30], 6
call fcn.0041adb0
mov eax, dword [eax]
mov byte [esp + 0x2c], 7
push eax
call fcn.00420420
add esp, 4
lea ecx, [esp + 8]
mov esi, eax
mov byte [esp + 0x2c], 6
call fcn.00465d19
lea ecx, [esp + 0xc]
mov byte [esp + 0x2c], 0
call fcn.00422320
lea ecx, [esp + 4]
mov dword [esp + 0x2c], 0xffffffff
call fcn.00465d19
mov ecx, dword [esp + 0x24]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x2c
ret

Function at 0x41ff70
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x470c60
push eax
mov eax, dword [esp + 0x10]
mov dword fs:[0], esp
sub esp, 0x1c
push esi
push edi
mov edi, eax
mov esi, ecx
and edi, 0xffff
test ax, ax
mov dword [esi + 0x50], edi
je 0x420099
mov ecx, dword [esi + 0x1c]
lea edx, [esp + 0x34]
push edx
mov eax, dword [ecx]
call dword [eax + 0x24]
mov eax, dword [esi + 0x20]
mov dword [esp + 0x2c], 0
cmp eax, 3
jne 0x41ffda
mov eax, dword [esp + 0x34]
push eax
call fcn.004206a0
add esp, 4
neg al
sbb eax, eax
add eax, 2
mov dword [esi + 0x20], eax
jmp 0x41ffe1
mov dword [esi + 0x20], 2
cmp dword [esi + 0x20], 1
jne 0x41fff9
mov eax, dword [esi + 0x24]
test eax, eax
jne 0x41fffc
push 0x67
mov ecx, esi
call fcn.0041f680
jmp 0x41fffc
mov dword [esi + 0x28], edi
mov eax, dword [0x48daf8]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov ecx, dword [esp + 0x34]
mov byte [esp + 0x2c], 5
push ecx
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], 0x474d88
call fcn.004223a0
lea edx, [esp + 8]
lea ecx, [esp + 0xc]
push edx
mov byte [esp + 0x30], 6
call fcn.004200c0
push eax
lea ecx, [esi + 0x2c]
mov byte [esp + 0x30], 7
call fcn.00465e52
lea ecx, [esp + 8]
mov byte [esp + 0x2c], 6
call fcn.00465d19
lea ecx, [esi + 0x3c]
call fcn.0041d010
lea ecx, [esp + 0xc]
mov byte [esp + 0x2c], 0
call fcn.00422320
lea ecx, [esp + 0x34]
mov dword [esp + 0x2c], 0xffffffff
call fcn.00465d19
pop edi
pop esi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
add esp, 0x28
ret 4
mov ecx, dword [esp + 0x24]
mov dword [esi + 0x20], 0
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x28
ret 4
Function at 0x420420
Capabilities:
Access peb ldr_data
Get disk size

Disassembly:
push 0xffffffffffffffff
push 0x470cd8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
mov eax, dword [0x48daf8]
push esi
mov dword [esp + 0x20], eax
mov dword [esp + 0x3c], 0
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x44]
lea ecx, [esp + 0x1c]
push eax
mov byte [esp + 0x40], 4
mov dword [esp + 0x20], 0x474d88
call fcn.004223a0
lea ecx, [esp + 0x44]
mov dword [esp + 0x3c], 5
push ecx
lea ecx, [esp + 0x20]
call fcn.00420570
mov esi, dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
lea edx, [esp + 0x10]
lea eax, [esp + 0xc]
push edx
lea ecx, [esp + 0xc]
push eax
mov eax, dword [esp + 0x4c]
lea edx, [esp + 0xc]
push ecx
push edx
push eax
mov byte [esp + 0x50], 6
call esi
test eax, eax
jne 0x420523
push 0x48be28
lea ecx, [esp + 0x48]
call fcn.00460c61
mov cl, byte [0x474df8]
push ecx
lea ecx, [esp + 0x48]
call fcn.004660a8
lea edx, [esp + 0x10]
lea eax, [esp + 0xc]
push edx
lea ecx, [esp + 0xc]
push eax
mov eax, dword [esp + 0x4c]
lea edx, [esp + 0xc]
push ecx
push edx
push eax
call esi
test eax, eax
jne 0x420523
lea ecx, [esp + 0x44]
mov byte [esp + 0x3c], 5
call fcn.00465d19
lea ecx, [esp + 0x1c]
mov dword [esp + 0x3c], 0xffffffff
call fcn.00422320
xor eax, eax
pop esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
add esp, 0x3c
ret
mov esi, dword [esp + 4]
lea ecx, [esp + 0x44]
imul esi, dword [esp + 8]
imul esi, dword [esp + 0xc]
mov dword [esp + 0x18], 0
mov byte [esp + 0x3c], 5
call fcn.00465d19
lea ecx, [esp + 0x1c]
mov dword [esp + 0x3c], 0xffffffff
call fcn.00422320
mov ecx, dword [esp + 0x34]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x3c
ret

Function at 0x420590
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push esi
push 0
push 0
call ebp
mov esi, eax
test esi, esi
jne 0x4205a9
pop esi
xor al, al
pop ebp
ret
push ebx
push edi
push esi
call fcn.00461a0b
add esp, 4
mov edi, eax
mov bl, 1
push edi
push esi
call ebp
test eax, eax
jne 0x4205d2
push edi
xor bl, bl
call fcn.00461a34
add esp, 4
mov al, bl
pop edi
pop ebx
pop esi
pop ebp
ret
mov ecx, dword [esp + 0x14]
push edi
call fcn.00465ea2
push edi
call fcn.00461a34
add esp, 4
mov al, bl
pop edi
pop ebx
pop esi
pop ebp
ret

Function at 0x4205f0
Capabilities:
Set file attributes

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
neg eax
sbb eax, eax
neg eax
ret
Function at 0x4206a0
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x470d20
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov eax, dword [0x48daf8]
push ebx
mov dword [esp + 8], eax
mov dword [esp + 0x24], 0
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x2c]
lea ecx, [esp + 4]
push eax
mov byte [esp + 0x28], 4
mov dword [esp + 8], 0x474d88
call fcn.004223a0
lea ecx, [esp + 0x2c]
mov dword [esp + 0x24], 5
push ecx
lea ecx, [esp + 8]
call fcn.00420570
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 2
lea ecx, [esp + 0x2c]
sete bl
call fcn.00465d19
lea ecx, [esp + 4]
mov dword [esp + 0x24], 0xffffffff
call fcn.00422320
mov ecx, dword [esp + 0x1c]
mov al, bl
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret

Function at 0x420750
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x470d68
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov eax, dword [0x48daf8]
push ebx
mov dword [esp + 8], eax
mov dword [esp + 0x24], 0
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x2c]
lea ecx, [esp + 4]
push eax
mov byte [esp + 0x28], 4
mov dword [esp + 8], 0x474d88
call fcn.004223a0
lea ecx, [esp + 0x2c]
mov dword [esp + 0x24], 5
push ecx
lea ecx, [esp + 8]
call fcn.00420570
push 0x48be28
lea ecx, [esp + 0x30]
mov byte [esp + 0x28], 6
call fcn.00460c61
mov dl, byte [0x474df8]
lea ecx, [esp + 0x2c]
push edx
call fcn.004660a8
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetVolumeLabelA]
test eax, eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0x24], 5
setne bl
call fcn.00465d19
lea ecx, [esp + 4]
mov dword [esp + 0x24], 0xffffffff
call fcn.00422320
mov ecx, dword [esp + 0x1c]
mov al, bl
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret

Function at 0x420860
Capabilities:
Delete file

Disassembly:
push esi
mov esi, dword [esp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x420883
mov al, byte [esp + 0xc]
test al, al
je 0x420887
push esi
push 0x71
call fcn.0041d8f0
add esp, 8
mov al, 1
pop esi
ret
xor al, al
pop esi
ret
Function at 0x421100
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x42110d
xor eax, eax
ret 0xc
mov eax, dword [esp + 4]
push ebx
push esi
mov esi, dword [esp + 0x14]
cmp esi, 8
not eax
jb 0x421210
push edi
mov edi, esi
shr edi, 3
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
mov ebx, eax
shr ebx, 8
mov eax, dword [edx*4 + 0x474e00]
sub esi, 8
xor eax, ebx
inc ecx
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x474e00]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x474e00]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x474e00]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x474e00]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x474e00]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x474e00]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x474e00]
xor eax, edx
inc ecx
dec edi
jne 0x421128
pop edi
test esi, esi
je 0x421232
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x474e00]
xor eax, edx
inc ecx
dec esi
jne 0x421214
pop esi
pop ebx
not eax
ret 0xc