joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405b63
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4255d4]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [edi + 0x44], 0
push esi
je 0x405c4c
cmp byte [edi + 0x4a], 0
je 0x405c4c
mov eax, dword [edi]
mov esi, 0xffff
push esi
mov ecx, edi
call dword [eax + 0xc]
cmp si, ax
jne 0x405ba1
xor al, al
jmp 0x405c4e
lea esi, [ebp - 0x20]
call fcn.0040540e
push ebx
cmp dword [ebp - 0xc], 0x10
mov eax, dword [ebp - 0x20]
jae 0x405bee
lea eax, [ebp - 0x20]
mov edx, eax
mov ecx, dword [edi + 0x44]
mov esi, dword [ecx]
lea ebx, [ebp - 0x24]
push ebx
mov ebx, dword [ebp - 0x10]
add eax, ebx
push eax
push edx
lea eax, [edi + 0x4c]
push eax
call dword [esi + 0x18]
sub eax, 0
je 0x405bf3
dec eax
je 0x405bf7
dec eax
dec eax
je 0x405c48
xor bl, bl
push 0
push 1
lea ecx, [ebp - 0x20]
call fcn.00405542
mov al, bl
pop ebx
jmp 0x405c4e
mov edx, dword [ebp - 0x20]
jmp 0x405bb8
mov byte [edi + 0x4a], 0
cmp dword [ebp - 0xc], 0x10
mov eax, dword [ebp - 0x20]
jae 0x405c03
lea eax, [ebp - 0x20]
mov esi, dword [ebp - 0x24]
sub esi, eax
je 0x405c29
cmp dword [ebp - 0xc], 0x10
mov eax, dword [ebp - 0x20]
jae 0x405c16
lea eax, [ebp - 0x20]
push dword [edi + 0x54]
push esi
push 1
push eax
call fcn.0040db33
add esp, 0x10
cmp esi, eax
jne 0x405bdb
cmp byte [edi + 0x4a], 0
je 0x405c48
test esi, esi
jne 0x405baa
push esi
push 8
pop ebx
lea esi, [ebp - 0x20]
call fcn.00405452
jmp 0x405baa
mov bl, 1
jmp 0x405bdd
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0040bbda
leave
ret
Function at 0x406880
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c0
mov eax, dword [0x4255d4]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
push ebx
push esi
push edi
mov esi, ecx
mov edi, edx
mov ecx, 0x80000002
mov dword [ebp - 0x4bc], edi
mov dword [ebp - 0x4ac], ecx
jb 0x4068b6
mov eax, dword [eax]
lea edx, [ebp - 0x4ac]
push edx
push 0x20019
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
test ebx, ebx
jne 0x4069cf
push 0x42284c
push edi
call fcn.00401312
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x4b0], 1
mov dword [ebp - 0x4b4], 0x400
jb 0x4068ff
mov eax, dword [esi]
jmp 0x406901
mov eax, esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [ebp - 0x4b4]
push ecx
lea ecx, [ebp - 0x48c]
push ecx
lea ecx, [ebp - 0x4b0]
push ecx
push 0
push eax
push dword [ebp - 0x4ac]
call edi
mov ebx, eax
test ebx, ebx
jne 0x4069cf
push 4
pop eax
cmp dword [ebp - 0x4b0], eax
je 0x406950
lea eax, [ebp - 0x48c]
push eax
push dword [ebp - 0x4bc]
call fcn.00401312
jmp 0x4069cf
and dword [ebp - 0x4b8], 0
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x4b4], eax
jb 0x406965
mov esi, dword [esi]
lea eax, [ebp - 0x4b4]
push eax
lea eax, [ebp - 0x4b8]
push eax
lea eax, [ebp - 0x4b0]
push eax
push 0
push esi
push dword [ebp - 0x4ac]
call edi
mov ebx, eax
test ebx, ebx
jne 0x4069cf
push eax
push dword [ebp - 0x4b8]
lea eax, [ebp - 0x8c]
push 0x422ae4
push 0x40
push eax
call fcn.00406864
add esp, 0x14
lea eax, [ebp - 0x8c]
push eax
lea esi, [ebp - 0x4a8]
call fcn.004012da
mov edi, dword [ebp - 0x4bc]
call fcn.00401364
push ebx
push 1
mov ecx, esi
call fcn.00401451
mov ecx, dword [ebp - 8]
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.0040bbda
leave
ret 4

Function at 0x4069e2
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0x58
call fcn.0040afd4
xor edx, edx
pop ecx
cmp dword [ebp + 0xc], edx
jle 0x406a24
push esi
mov esi, dword [ebp + 8]
push edi
mov ecx, 0x426560
mov edi, eax
sub esi, ecx
sub edi, ecx
mov cx, word [esi + edx*2 + 0x426560]
xor cx, word [edx*2 + 0x426560]
inc edx
mov word [edi + edx*2 + 0x42655e], cx
cmp edx, dword [ebp + 0xc]
jl 0x406a04
pop edi
pop esi
xor ecx, ecx
mov word [eax + edx*2], cx
pop ebp
ret 8

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

Disassembly:
cmp dword [eax + 0x14], 8
jb 0x407698
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4076b3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x4076b3
xor eax, eax
inc eax
ret
xor eax, eax
ret
Function at 0x4076b6
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x4255d4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, ecx
and dword [edi + 0x10], 0
xor eax, eax
mov esi, edx
mov dword [edi + 0x14], 7
push eax
mov dword [ebp - 0x234], esi
mov word [edi], ax
call fcn.0040e2ff
push eax
call fcn.0040e2cc
pop ecx
pop ecx
call fcn.0040e2de
cdq
mov ecx, 0x2710
idiv ecx
mov dword [ebp - 0x22c], edx
cmp dword [esi + 0x14], 8
jb 0x407710
mov eax, dword [esi]
jmp 0x407712
mov eax, esi
push dword [ebp - 0x22c]
push eax
push 6
push 0x426190
call fcn.004069e2
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
lea esi, [ebp - 0x228]
call fcn.004012da
mov esi, eax
call fcn.00401364
push 0
push 1
lea ecx, [ebp - 0x228]
call fcn.00401451
cmp dword [edi + 0x14], 8
jb 0x407768
mov eax, dword [edi]
jmp 0x40776a
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40778e
shr eax, 4
and al, 1
je 0x40778e
inc dword [ebp - 0x22c]
mov esi, dword [ebp - 0x234]
jmp 0x407706
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.0040bbda
leave
ret
Function at 0x40779e
Capabilities:
Delete directory
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4e0
mov eax, dword [0x4255d4]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push edi
lea eax, [ebp - 0x24c]
mov dword [ebp - 0x4dc], ecx
call fcn.004043d0
cmp dword [ebp - 0x238], 8
mov eax, dword [ebp - 0x24c]
jae 0x4077de
lea eax, [ebp - 0x24c]
lea ecx, [ebp - 0x4d4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x4d8], eax
cmp eax, 0xffffffff
jne 0x40781b
xor bl, bl
push 0
push 1
lea ecx, [ebp - 0x24c]
call fcn.00401451
mov ecx, dword [ebp - 8]
pop edi
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.0040bbda
leave
ret 4
push 0x422844
lea esi, [ebp - 0x284]
call fcn.004012da
push 0x422848
lea esi, [ebp - 0x268]
call fcn.004012da
mov ebx, 0x4271ac
test byte [ebp - 0x4d4], 0x10
je 0x40789f
lea eax, [ebp - 0x4a8]
push eax
lea ecx, [ebp - 0x284]
call fcn.004065ae
test eax, eax
je 0x407924
lea eax, [ebp - 0x4a8]
push eax
lea ecx, [ebp - 0x268]
call fcn.004065ae
test eax, eax
je 0x407924
lea eax, [ebp - 0x4a8]
push eax
lea esi, [ebp - 0x230]
call fcn.004012da
mov ecx, dword [ebp - 0x4dc]
mov eax, esi
push eax
call fcn.0040779e
jmp 0x407915
cmp dword [edi + 0x14], 8
jb 0x4078a9
mov eax, dword [edi]
jmp 0x4078ab
mov eax, edi
lea ecx, [ebp - 0x4a8]
push ecx
push eax
push 5
push 0x42619c
call fcn.004069e2
push eax
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x214]
push eax
lea esi, [ebp - 0x230]
call fcn.004012da
cmp dword [ebp - 0x21c], 8
mov esi, dword [ebp - 0x230]
jae 0x4078f7
lea esi, [ebp - 0x230]
push 0xb
push 0x4273d4
call fcn.00401860
push eax
push 8
push ebx
call fcn.00401814
push eax
call fcn.004018a6
push esi
call eax
push 0
push 1
lea ecx, [ebp - 0x230]
call fcn.00401451
lea eax, [ebp - 0x4d4]
push eax
push dword [ebp - 0x4d8]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x407840
push 9
push 0x427304
call fcn.00401860
push eax
push 8
push ebx
call fcn.00401814
push eax
call fcn.004018a6
push dword [ebp - 0x4d8]
call eax
cmp dword [edi + 0x14], 8
jb 0x40796a
mov edi, dword [edi]
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
push 0
push 1
lea ecx, [ebp - 0x268]
call fcn.00401451
push 0
push 1
lea ecx, [ebp - 0x284]
call fcn.00401451
mov bl, 1
jmp 0x4077f9
Function at 0x40919a
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push edi
mov edi, edx
test ecx, ecx
jne 0x4091a5
xor eax, eax
pop edi
ret
push esi
not eax
mov edx, 0xff
cmp edi, 8
jb 0x409259
mov esi, edi
shr esi, 3
push ebx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x4223f0]
movzx ebx, byte [ecx + 1]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x4223f0]
movzx ebx, byte [ecx + 2]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x4223f0]
movzx ebx, byte [ecx + 3]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x4223f0]
movzx ebx, byte [ecx + 4]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x4223f0]
movzx ebx, byte [ecx + 5]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x4223f0]
movzx ebx, byte [ecx + 6]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x4223f0]
movzx ebx, byte [ecx + 7]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x4223f0]
add ecx, 8
sub edi, 8
dec esi
jne 0x4091bc
pop ebx
test edi, edi
je 0x409272
movzx esi, byte [ecx]
xor esi, eax
and esi, edx
shr eax, 8
xor eax, dword [esi*4 + 0x4223f0]
inc ecx
dec edi
jne 0x40925d
pop esi
not eax
pop edi
ret

Function at 0x409277
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov eax, dword [ecx]
movsx edx, dl
xor edx, eax
push esi
mov esi, 0xff
and edx, esi
mov edx, dword [edx*4 + 0x4223f0]
shr eax, 8
xor edx, eax
mov eax, dword [ecx + 8]
mov dword [ecx], edx
movzx edx, dl
add edx, dword [ecx + 4]
imul edx, edx, 0x8088405
inc edx
mov dword [ecx + 4], edx
shr edx, 0x18
xor edx, eax
and edx, esi
shr eax, 8
xor eax, dword [edx*4 + 0x4223f0]
pop esi
mov dword [ecx + 8], eax
ret

Function at 0x4098da
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 0xc]
imul edi, dword [ebp + 0x10]
cmp byte [esi], 0
je 0x40990a
push 0
lea eax, [ebp + 8]
push eax
push edi
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x409905
mov byte [esi + 8], 1
mov eax, dword [ebp + 8]
jmp 0x409932
mov ecx, dword [esi + 0x1c]
mov eax, dword [esi + 0x18]
lea edx, [ecx + edi]
cmp edx, eax
jbe 0x40991b
sub eax, ecx
mov edi, eax
mov eax, dword [esi + 0x14]
push edi
add eax, ecx
push eax
push dword [ebp + 8]
call fcn.0040e7c0
add esp, 0xc
add dword [esi + 0x1c], edi
mov eax, edi
xor edx, edx
div dword [ebp + 0xc]
pop edi
pop ebp
ret 0xc
Function at 0x40a6bd
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebx], 0
push esi
push edi
jne 0x40a761
cmp dword [ebx + 4], 0xffffffff
jne 0x40a761
lea esi, [ebx + 0x244]
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40a6ec
sub eax, edx
sar eax, 1
movzx eax, word [ebx + eax*2 + 0x242]
cmp eax, 0x5c
je 0x40a724
cmp eax, 0x2f
je 0x40a724
sub esi, 2
mov ax, word [esi + 2]
add esi, 2
test ax, ax
jne 0x40a710
mov edi, esi
mov esi, 0x42102c
movsd dword es:[edi], dword [esi]
push 0x20
call fcn.0040c223
and dword [eax + 0x1c], 0
and dword [eax + 0xc], 0
pop ecx
mov ecx, dword [ebp + 8]
mov dword [eax + 0x14], ecx
mov ecx, dword [ebp + 0xc]
push eax
mov word [eax], 0x100
mov byte [eax + 0x10], 0
mov dword [eax + 0x18], ecx
call fcn.00409b4f
mov dword [ebx], eax
neg eax
sbb eax, eax
and eax, 0xfffffe00
add eax, 0x200
jmp 0x40a766
mov eax, 0x1000000
pop edi
pop esi
pop ebp
ret 8

Function at 0x40bbda
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4255d4]
jne 0x40bbe4
repz ret
jmp fcn.004106d1
Function at 0x41c133
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4255d4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00411366
and dword [ebp - 0x14], 0
cmp dword [0x476934], 0
mov dword [ebp - 0x18], eax
jne 0x41c1e6
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x41c28e
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x41c28e
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x476934], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x476938], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x47693c], eax
call edi
push eax
call esi
mov dword [0x476944], eax
test eax, eax
je 0x41c1e6
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x476940], eax
mov eax, dword [0x476940]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x41c23f
cmp dword [0x476944], ecx
je 0x41c23f
push eax
call esi
push dword [0x476944]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x41c23f
test ebx, ebx
je 0x41c23f
call edi
test eax, eax
je 0x41c236
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x41c236
test byte [ebp - 8], 1
jne 0x41c23f
or dword [ebp + 0x10], 0x200000
jmp 0x41c272
mov eax, dword [0x476938]
cmp eax, dword [ebp - 0x18]
je 0x41c272
push eax
call esi
test eax, eax
je 0x41c272
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x41c272
mov eax, dword [0x47693c]
cmp eax, dword [ebp - 0x18]
je 0x41c272
push eax
call esi
test eax, eax
je 0x41c272
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x476934]
call esi
test eax, eax
je 0x41c28e
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x41c290
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040bbda
leave
ret
Function at 0x401508
Capabilities:
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
push esi
push edi
push 0x11
xor eax, eax
pop ecx
lea edi, [ebp - 0x54]
rep stosd dword es:[edi], eax
lea edi, [ebp - 0x10]
mov dword [ebp - 0x54], 0x44
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x25c]
mov dword [ebp - 0x28], 1
push eax
push 0x104
mov word [ebp - 0x24], 5
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [ebp - 0x25c]
push eax
call esi
xor edi, edi
cmp word [ebp + eax*2 - 0x25e], 0x5c
jne 0x401577
lea eax, [ebp - 0x25c]
push eax
call esi
mov word [ebp + eax*2 - 0x25e], di
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
push eax
push edi
push edi
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x25c]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 5
pop edi
neg eax
sbb eax, eax
pop esi
inc eax
leave
ret

Function at 0x4015a5
Capabilities:
Read file on windows

Disassembly:
push esi
push 0x403064
push dword [esp + 0xc]
call dword [sym.imp.MSVCRT.dll__wfopen]
mov esi, eax
pop ecx
test esi, esi
pop ecx
jne 0x4015bf
pop esi
ret
push edi
push 0
push 0x17e1b1
push esi
call dword [sym.imp.MSVCRT.dll_fseek]
mov edi, dword [esp + 0x1c]
push 0xc
pop ecx
xor eax, eax
push esi
push 0x30
rep stosd dword es:[edi], eax
push 1
pop edi
push edi
push dword [esp + 0x28]
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x1c
cmp eax, 0x30
je 0x4015f4
xor edi, edi
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
pop ecx
mov eax, edi
pop edi
pop esi
ret

Function at 0x401601
Capabilities:
Read file on windows

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x14]
push edi
push esi
call dword [sym.imp.MSVCRT.dll_malloc]
mov ecx, esi
mov ebx, eax
mov edx, ecx
xor eax, eax
mov edi, ebx
push 0
push dword [esp + 0x1c]
shr ecx, 2
push dword [esp + 0x1c]
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
call dword [sym.imp.MSVCRT.dll_fseek]
add esp, 0x10
cmp eax, 0xffffffff
je 0x401652
push dword [esp + 0x10]
push esi
push 1
push ebx
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
cmp eax, esi
je 0x40165e
push ebx
call dword [sym.imp.MSVCRT.dll_free]
pop ecx
xor eax, eax
jmp 0x401660
mov eax, ebx
pop edi
pop esi
pop ebx
ret
Function at 0x401803
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag
Get ntdll base address

Disassembly:
mov eax, 0x4297bf
call fcn.00428110
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x10], esi
lea ecx, [esi + 0x18]
mov byte [esi], bl
mov byte [esi + 1], bl
mov byte [esi + 2], bl
mov byte [esi + 3], bl
mov byte [esi + 4], bl
mov byte [esi + 5], bl
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
call fcn.0040185c
lea ecx, [esi + 0x30]
call fcn.004025e9
lea ecx, [esi + 0x3c]
mov dword [ebp - 4], ebx
call fcn.004025e9
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x4018bf
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
mov eax, 0x429827
call fcn.00428110
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x10], esi
mov dword [esi], 0x42c818
mov dword [esi + 0xc], 0x42c808
mov dword [esi + 0x10], 0x42c7f8
mov dword [esi + 0x14], ebx
lea ecx, [esi + 0x30]
mov byte [esi + 0x1a], bl
mov byte [esi + 0x1b], bl
mov byte [esi + 0x1c], bl
mov byte [esi + 0x1d], 1
mov byte [esi + 0x1e], bl
mov byte [esi + 0x1f], bl
mov byte [esi + 0x20], bl
mov byte [esi + 0x21], bl
mov byte [esi + 0x22], bl
mov byte [esi + 0x23], bl
mov byte [esi + 0x24], bl
mov dword [esi + 0x2c], ebx
call fcn.004025e9
lea ecx, [esi + 0x3c]
mov dword [ebp - 4], ebx
call fcn.004025e9
lea ecx, [esi + 0x48]
mov byte [ebp - 4], 1
call fcn.004025e9
lea ecx, [esi + 0x58]
mov byte [ebp - 4], 2
call fcn.004025e9
lea ecx, [esi + 0x64]
mov byte [ebp - 4], 3
call fcn.004025e9
lea ecx, [esi + 0x70]
mov byte [ebp - 4], 4
call fcn.004025e9
lea ecx, [esi + 0x7c]
mov byte [ebp - 4], 5
call fcn.004025e9
lea ecx, [esi + 0x88]
mov byte [ebp - 4], 6
call fcn.004025e9
lea ecx, [esi + 0x94]
mov byte [ebp - 4], 7
call fcn.004025e9
mov ecx, dword [ebp - 0xc]
mov dword [esi], 0x42c7d4
mov dword [esi + 4], 0x42c7c0
mov dword [esi + 8], 0x42c7ac
mov dword [esi + 0xc], 0x42c79c
mov dword [esi + 0x10], 0x42c78c
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x403968
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
and dword [ebp - 4], 0
push esi
push edi
push dword [ebp + 8]
mov ebx, ecx
mov edi, edx
lea ecx, [ebp - 4]
push 0x2002
call fcn.0040562f
test al, al
jne 0x40398f
xor bl, bl
jmp 0x4039c5
mov esi, dword [ebp - 4]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x40398b
push dword [ebp + 8]
push edi
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [ebp - 4]
push ebx
call dword [sym.imp.USER32.dll_SetClipboardData]
test eax, eax
je 0x40398b
and dword [ebp - 4], 0
mov bl, 1
lea ecx, [ebp - 4]
call fcn.00405650
mov al, bl
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x403b77
Capabilities:
Set file attributes

Disassembly:
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne al
ret
Function at 0x403d03
Capabilities:
Create directory

Disassembly:
mov eax, 0x4299d8
call fcn.00428110
sub esp, 0x38
push ebx
push esi
xor ebx, ebx
mov esi, ecx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x403d26
mov al, 1
jmp 0x403d6c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x403d37
xor al, al
jmp 0x403d6c
lea ecx, [ebp - 0x44]
call fcn.00403f40
lea ecx, [ebp - 0x1c]
call fcn.004025e9
push ebx
push esi
lea ecx, [ebp - 0x44]
mov dword [ebp - 4], ebx
call fcn.004042bb
test al, al
je 0x403d61
mov ebx, dword [ebp - 0x24]
shr ebx, 4
and bl, 1
push dword [ebp - 0x1c]
call fcn.00402099
pop ecx
mov al, bl
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

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

Disassembly:
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4042ba
or eax, eax
ret

Function at 0x404969
Capabilities:
Get disk information

Disassembly:
mov eax, 0x429ab0
call fcn.00428110
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 0x10], ecx
call fcn.00401f28
mov edi, dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
push 0
push 0
call edi
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0x18], ebx
je 0x404a3f
mov eax, SysReAllocString
cmp ebx, eax
ja 0x4049a5
mov eax, ebx
add eax, eax
push eax
call fcn.00402065
mov esi, eax
pop ecx
mov dword [ebp - 0x20], esi
and dword [ebp - 4], 0
push esi
push ebx
call edi
mov ebx, eax
xor edi, edi
cmp ebx, edi
mov dword [ebp - 0x14], ebx
je 0x404a38
cmp ebx, dword [ebp - 0x18]
ja 0x404a38
lea ecx, [ebp - 0x2c]
call fcn.004025e9
test ebx, ebx
mov byte [ebp - 4], 1
mov dword [ebp - 0x18], edi
jbe 0x404a20
push 2
xor eax, eax
pop ebx
cmp word [esi + ebx - 2], 0
jne 0x404a15
add eax, esi
lea ecx, [ebp - 0x2c]
push eax
call fcn.00402728
mov ecx, dword [ebp - 0x10]
lea eax, [edi + 1]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], ebx
call fcn.00401c77
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x2c]
push eax
call fcn.00401cf0
mov eax, ebx
inc edi
inc ebx
inc ebx
cmp edi, dword [ebp - 0x14]
jb 0x4049e3
mov ebx, dword [ebp - 0x14]
push dword [ebp - 0x2c]
call fcn.00402099
push esi
call fcn.00402099
cmp dword [ebp - 0x18], ebx
pop ecx
pop ecx
sete al
jmp 0x404a41
push esi
call fcn.00402099
pop ecx
xor al, al
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x404ac6
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push edi
push eax
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x404af0
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x404af0
xor al, al
jmp 0x404b10
push 1
push 0
push 0
push dword [ebp - 4]
call fcn.004283f0
mov ecx, eax
xor eax, eax
add ecx, edi
adc edx, eax
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov al, 1
pop edi
leave
ret 4