joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40a340
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xc
push ebx
push ebp
mov ebp, dword [esp + 0x18]
push edi
mov edi, eax
xor ebx, ebx
cmp edi, ebx
jne 0x40a35e
pop edi
pop ebp
mov eax, 0xffffff9a
pop ebx
add esp, 0xc
ret
cmp dword [edi + 0x18], ebx
je 0x40a352
cmp dword [edi + 0x7c], ebx
je 0x40a36d
call fcn.0040a730
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x1c]
push edx
call fcn.0040a0b0
add esp, 0xc
test eax, eax
je 0x40a394
pop edi
pop ebp
mov eax, 0xffffff99
pop ebx
add esp, 0xc
ret
push esi
push 0x84
call fcn.0042878d
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x40a3d5
push 0x4000
call fcn.0042878d
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
add esp, 4
mov dword [esi], eax
mov dword [esi + 0x44], ecx
mov dword [esi + 0x48], edx
mov dword [esi + 0x4c], ebx
cmp eax, ebx
jne 0x40a3e2
push esi
call fcn.00428670
add esp, 4
pop esi
pop edi
pop ebp
mov eax, 0xffffff98
pop ebx
add esp, 0xc
ret
mov dword [esi + 0x40], ebx
mov ecx, dword [edi + 0x3c]
xor eax, eax
cmp dword [edi + 0x34], ebx
mov dword [esi + 0x54], ecx
mov dword [esi + 0x50], ebx
mov edx, dword [edi + 0x34]
sete al
mov dword [esi + 0x64], edx
mov ecx, dword [edi]
mov dword [esi + 0x60], ecx
mov edx, dword [edi + 0xc]
mov dword [esi + 0x68], edx
mov dword [esi + 0x18], ebx
cmp eax, ebx
jne 0x40a42a
lea eax, [esi + 4]
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
call fcn.00409200
test eax, eax
jne 0x40a42a
mov dword [esi + 0x40], 1
mov eax, dword [edi + 0x40]
mov dword [esi + 0x58], eax
mov ecx, dword [edi + 0x44]
mov dword [esi + 0x5c], ecx
mov dl, byte [edi + 0x30]
and dl, 1
mov byte [esi + 0x6c], dl
mov eax, dword [edi + 0x30]
shr eax, 3
test al, 1
je 0x40a454
mov cl, byte [edi + 0x39]
mov byte [esi + 0x80], cl
jmp 0x40a45d
mov dl, byte [edi + 0x3f]
mov byte [esi + 0x80], dl
movzx eax, byte [esi + 0x6c]
neg eax
sbb eax, eax
and eax, 0xc
lea edx, [esi + 0x70]
mov dword [esi + 0x7c], eax
mov dword [edx], 0x12345678
mov dword [esi + 0x74], 0x23456789
mov dword [esi + 0x78], 0x34567890
cmp ebp, ebx
je 0x40a497
mov cl, byte [ebp]
cmp cl, bl
je 0x40a497
call fcn.00408ef0
add ebp, 1
jne 0x40a486
mov ecx, dword [edi + 0x78]
mov edx, dword [esp + 0x18]
lea eax, [ecx + edx + 0x1e]
mov dword [esi + 0x3c], eax
mov dword [esi + 8], ebx
mov dword [edi + 0x7c], esi
pop esi
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret
Function at 0x40a830
Capabilities:
Get common file path

Disassembly:
cmp dword [esi], 0
push edi
jne 0x40a8db
cmp dword [esi + 4], 0xffffffff
jne 0x40a8db
lea edi, [esi + 0x140]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov eax, edi
lea edx, [eax + 1]
jmp 0x40a860
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40a860
sub eax, edx
mov al, byte [eax + esi + 0x13f]
cmp al, 0x5c
je 0x40a891
cmp al, 0x2f
je 0x40a891
dec edi
lea esp, [esp]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x40a880
mov ax, word [0x443e30]
mov word [edi], ax
push 0x20
call fcn.0040b6a6
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
add esp, 4
mov byte [eax], 0
mov byte [eax + 1], 1
mov byte [eax + 0x10], 0
mov dword [eax + 0x14], ecx
mov dword [eax + 0x18], edx
mov dword [eax + 0x1c], 0
mov dword [eax + 0xc], 0
call fcn.00409990
mov dword [esi], eax
neg eax
sbb eax, eax
and eax, 0xfffffe00
add eax, 0x200
pop edi
ret 8
mov eax, 0x1000000
pop edi
ret 8

Function at 0x40aea0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
sub esp, 0x20c
mov eax, dword [0x451690]
xor eax, esp
mov dword [esp + 0x208], eax
push ebp
mov ebp, dword [esp + 0x218]
push edi
mov edi, dword [esp + 0x218]
test edi, edi
je 0x40aedd
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40aedd
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov al, byte [ebp]
test al, al
je 0x40af96
push esi
mov esi, ebp
mov ecx, ebp
lea ecx, [ecx]
cmp al, 0x2f
je 0x40aef8
cmp al, 0x5c
jne 0x40aefa
mov esi, ecx
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x40aef0
cmp esi, ebp
je 0x40af30
sub esi, ebp
push esi
lea eax, [esp + 0x114]
push ebp
push eax
call fcn.0042db70
lea ecx, [esp + 0x11c]
push ecx
push edi
mov byte [esp + esi + 0x124], 0
call fcn.0040aea0
add esp, 0x14
mov byte [esp + 0xc], 0
test edi, edi
je 0x40af4b
lea edx, [esp + 0xc]
mov eax, edi
sub edx, edi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x40af41
mov eax, ebp
mov edx, ebp
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40af50
lea edi, [esp + 0xc]
sub eax, edx
dec edi
mov edi, edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x40af60
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea edx, [esp + 0xc]
and ecx, 3
push edx
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
pop esi
cmp eax, 0xffffffff
jne 0x40af96
push 0
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ecx, dword [esp + 0x210]
pop edi
pop ebp
xor ecx, esp
call fcn.00427974
add esp, 0x20c
ret
Function at 0x40ca2f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x40ca77
call fcn.004166e6
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x40ca77
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x40caba
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x40caa3
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x40caa3
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x40cab7
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x41517c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x4151c3
call fcn.004166e6
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x4151c3
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x4151df
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.00414cf6
mov esi, eax
test edi, edi
je 0x4151dd
test ebx, ebx
je 0x4151dd
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x415986
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x43bb7e
call fcn.00429f0b
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x4159ab
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x4159f1
lea ecx, [ebp - 0x10]
call fcn.004020f0
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040f9a3
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.004020d0
mov eax, esi
call fcn.00429fe3
ret 8
Function at 0x427974
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x451690]
jne 0x42797e
repz ret
jmp fcn.0042d295

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x42800d
call fcn.0042a4a0
mov dword [eax], esi
call fcn.0042a48d
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.0042994e
add esp, 0x14
push 0x16
pop eax
jmp 0x428062
test dword [ebp + 0xc], 0xfffffff9
jne 0x427fe9
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x42803a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0042a4b3
pop ecx
call fcn.0042a48d
mov eax, dword [eax]
jmp 0x428062
test al, 0x10
jne 0x428060
test al, 1
je 0x428060
test byte [ebp + 0xc], 2
je 0x428060
call fcn.0042a4a0
mov dword [eax], 5
call fcn.0042a48d
mov dword [eax], 0xd
jmp 0x428031
xor eax, eax
pop esi
pop ebp
ret

Function at 0x436d71
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0042d40d
and dword [ebp - 4], 0
cmp dword [0x45594c], 0
mov ebx, eax
jne 0x436e22
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x436ed3
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4431e4
push edi
call esi
test eax, eax
je 0x436ed3
push eax
call fcn.0042d39b
mov dword [esp], 0x4431d4
push edi
mov dword [0x45594c], eax
call esi
push eax
call fcn.0042d39b
mov dword [esp], 0x4431c0
push edi
mov dword [0x455950], eax
call esi
push eax
call fcn.0042d39b
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x455954], eax
call esi
push eax
call fcn.0042d39b
pop ecx
mov dword [0x45595c], eax
test eax, eax
je 0x436e22
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0042d39b
pop ecx
mov dword [0x455958], eax
mov eax, dword [0x455958]
cmp eax, ebx
je 0x436e7a
cmp dword [0x45595c], ebx
je 0x436e7a
push eax
call fcn.0042d416
push dword [0x45595c]
mov esi, eax
call fcn.0042d416
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x436e7a
test edi, edi
je 0x436e7a
call esi
test eax, eax
je 0x436e71
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x436e71
test byte [ebp - 0xc], 1
jne 0x436e7a
or dword [ebp + 0x10], 0x200000
jmp 0x436eb3
mov eax, dword [0x455950]
cmp eax, ebx
je 0x436eb3
push eax
call fcn.0042d416
pop ecx
test eax, eax
je 0x436eb3
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x436eb3
mov eax, dword [0x455954]
cmp eax, ebx
je 0x436eb3
push eax
call fcn.0042d416
pop ecx
test eax, eax
je 0x436eb3
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x45594c]
call fcn.0042d416
pop ecx
test eax, eax
je 0x436ed3
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x436ed5
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1002aadf
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
pushal
call 0x1002aaee
pop dword [ebp - 0x3c]
mov eax, 0x165df1b6
add eax, 0xf9a4b938
sub dword [ebp - 0x3c], eax
mov dword [ebp - 0x4c], 0xc4fdf97c
add dword [ebp - 0x4c], 0x89544bcf
mov dword [ebp - 0x48], 0xa03db7ae
sub dword [ebp - 0x48], 0x6e0a6b69
mov dword [ebp - 0x44], 0xfb3d0bc1
add dword [ebp - 0x44], 0x510f386d
mov dword [ebp - 0x40], 0x63d96f57
add dword [ebp - 0x40], 0x9c2690a9
lea eax, [ebp - 0x4c]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x3c]
call dword [eax]
mov dword [ebp - 0x4c], 0x6fa7b020
add dword [ebp - 0x4c], 0x4cab936
mov dword [ebp - 0x48], 0x5ee2062d
add dword [ebp - 0x48], 0xe28a5b48
mov dword [ebp - 0x44], 0x7e0aabd4
add dword [ebp - 0x44], 0xe564c098
mov dword [ebp - 0x40], 0xdc5d40db
add dword [ebp - 0x40], 0x23a2bf25
lea ebx, [ebp - 0x4c]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x3c]
call dword [eax]
push 0x40
push 0x1000
push 0x37d80
push 0
call eax
mov ecx, 0xefacb10e
sub ecx, 0xefac638d
mov edi, eax
mov ebx, 0xebda029a
add ebx, 0x24299366
add ebx, dword [ebp - 0x3c]
mov edx, 0xb962fd04
sub edx, 0xed63dc72
xor dword [ebp - 0x28], eax
mov esi, dword [ebx]
xor dword [ebp - 0x34], 0xbe68d85e
add esi, edx
mov dword [edi], esi
add edi, 4
add ebx, 4
loop 0x1002ac06
add eax, 0x399179de
sub eax, 0x39905107
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0xaf0343e5
sub ecx, 0x9f0343e5
add ecx, dword [ebp - 0x3c]
call ebx
leave
ret
Function at 0x4052af
Capabilities:
Set file attributes

Disassembly:
test edx, 0xf0000000
je 0x4052bd
and edx, 0x3fff
jmp fcn.00405221

Function at 0x4052c2
Capabilities:
Delete directory

Disassembly:
mov eax, 0x43c014
call fcn.0043b650
sub esp, 0xc
push ebx
push esi
push edi
mov edi, ecx
call fcn.00407f9a
mov esi, dword [sym.imp.kernel32.dll_RemoveDirectoryW]
mov ebx, eax
cmp ebx, 1
je 0x4052f1
push edi
call esi
test eax, eax
je 0x4052f1
mov al, 1
jmp 0x405335
test ebx, ebx
je 0x405333
lea ecx, [ebp - 0x18]
call fcn.00402b75
and dword [ebp - 4], 0
cmp ebx, 1
setne al
push eax
lea edx, [ebp - 0x18]
mov ecx, edi
call fcn.004080a3
test al, al
push dword [ebp - 0x18]
je 0x40532d
call esi
mov esi, eax
push dword [ebp - 0x18]
call fcn.00401c54
test esi, esi
pop ecx
setne al
jmp 0x405335
call fcn.00401c54
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 0x405344
Capabilities:
Move file

Disassembly:
mov eax, 0x43c030
call fcn.0043b650
sub esp, 0x24
push ebx
push esi
push edi
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x18], ecx
call fcn.00407f9a
mov ecx, dword [ebp - 0x10]
mov esi, eax
call fcn.00407f9a
mov edi, dword [sym.imp.kernel32.dll_MoveFileW]
mov dword [ebp - 0x14], eax
push 1
pop ebx
cmp esi, ebx
je 0x40538d
cmp eax, ebx
je 0x40538d
push dword [ebp - 0x10]
push dword [ebp - 0x18]
call edi
test eax, eax
je 0x40538d
mov al, bl
jmp 0x405404
test esi, esi
jne 0x405396
cmp dword [ebp - 0x14], esi
je 0x405402
lea ecx, [ebp - 0x30]
call fcn.00402b75
and dword [ebp - 4], 0
lea ecx, [ebp - 0x24]
call fcn.00402b75
cmp esi, ebx
mov byte [ebp - 4], bl
je 0x4053b6
cmp dword [ebp - 0x14], ebx
jne 0x4053b8
xor ebx, ebx
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x24]
push ebx
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.00414373
test al, al
push dword [ebp - 0x24]
je 0x4053f3
push dword [ebp - 0x30]
call edi
mov esi, eax
push dword [ebp - 0x24]
call fcn.00401c54
push dword [ebp - 0x30]
call fcn.00401c54
pop ecx
test esi, esi
pop ecx
setne al
jmp 0x405404
call fcn.00401c54
push dword [ebp - 0x30]
call fcn.00401c54
pop ecx
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 0x40550f
Capabilities:
Create directory

Disassembly:
mov eax, 0x43c060
call fcn.0043b650
sub esp, 0xc
push ebx
push esi
push edi
mov edi, ecx
call fcn.00407f9a
mov esi, dword [sym.imp.kernel32.dll_CreateDirectoryW]
mov ebx, eax
cmp ebx, 1
je 0x40554d
push 0
push edi
call esi
test eax, eax
je 0x405540
mov al, 1
jmp 0x405596
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0xb7
je 0x405594
test ebx, ebx
je 0x405594
lea ecx, [ebp - 0x18]
call fcn.00402b75
and dword [ebp - 4], 0
cmp ebx, 1
setne al
push eax
lea edx, [ebp - 0x18]
mov ecx, edi
call fcn.004080a3
test al, al
je 0x40558b
push 0
push dword [ebp - 0x18]
call esi
mov esi, eax
push dword [ebp - 0x18]
call fcn.00401c54
test esi, esi
pop ecx
setne al
jmp 0x405596
push dword [ebp - 0x18]
call fcn.00401c54
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 0x4056e6
Capabilities:
Create directory

Disassembly:
mov eax, 0x43c0a3
call fcn.0043b650
sub esp, 0x7c
push ebx
push esi
push edi
mov esi, ecx
call fcn.00407f9a
mov ebx, dword [sym.imp.kernel32.dll_GetLastError]
mov edi, eax
cmp edi, 1
je 0x40572b
push 0
push esi
call dword [sym.imp.kernel32.dll_CreateDirectoryW]
test eax, eax
je 0x40571e
mov al, 1
jmp 0x405812
call ebx
cmp eax, 0xb7
je 0x4057c1
test edi, edi
je 0x4057c1
lea ecx, [ebp - 0x18]
call fcn.00402b75
and dword [ebp - 4], 0
cmp edi, 1
setne al
push eax
lea edx, [ebp - 0x18]
mov ecx, esi
call fcn.004080a3
test al, al
je 0x4057b4
push 0
push dword [ebp - 0x18]
call dword [sym.imp.kernel32.dll_CreateDirectoryW]
test eax, eax
je 0x405767
mov bl, 1
jmp 0x4057af
call ebx
cmp eax, 0xb7
je 0x405774
xor bl, bl
jmp 0x4057af
lea ecx, [ebp - 0x50]
call fcn.00405ddb
lea ecx, [ebp - 0x28]
call fcn.00402b75
push 0
lea ecx, [ebp - 0x50]
push dword [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.0040625d
test al, al
jne 0x40579d
xor bl, bl
jmp 0x4057a6
mov ebx, dword [ebp - 0x30]
shr ebx, 4
and bl, 1
push dword [ebp - 0x28]
call fcn.00401c54
pop ecx
push dword [ebp - 0x18]
jmp 0x40580a
push dword [ebp - 0x18]
or dword [ebp - 4], 0xffffffff
call fcn.00401c54
pop ecx
call ebx
cmp eax, 0xb7
je 0x4057ce
xor al, al
jmp 0x405812
lea ecx, [ebp - 0x88]
call fcn.00405ddb
lea ecx, [ebp - 0x60]
call fcn.00402b75
push 0
push esi
lea ecx, [ebp - 0x88]
mov dword [ebp - 4], 2
call fcn.0040625d
test al, al
jne 0x4057fe
xor bl, bl
jmp 0x405807
mov ebx, dword [ebp - 0x68]
shr ebx, 4
and bl, 1
push dword [ebp - 0x60]
call fcn.00401c54
pop ecx
mov al, bl
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x40582b
Capabilities:
Delete file

Disassembly:
mov eax, 0x43c0b8
call fcn.0043b650
sub esp, 0xc
push ebx
push esi
push edi
mov edi, ecx
call fcn.004061e0
cmp eax, 0xffffffff
je 0x40585f
test al, 0x10
jne 0x40585f
test al, 1
je 0x40585f
mov edx, eax
mov ecx, edi
and edx, 0xfffffffe
call fcn.00405221
test al, al
je 0x4058c0
mov ecx, edi
call fcn.00407f9a
mov esi, dword [sym.imp.kernel32.dll_DeleteFileW]
mov ebx, eax
cmp ebx, 1
je 0x40587e
push edi
call esi
test eax, eax
je 0x40587e
mov al, 1
jmp 0x4058c2
test ebx, ebx
je 0x4058c0
lea ecx, [ebp - 0x18]
call fcn.00402b75
and dword [ebp - 4], 0
cmp ebx, 1
setne al
push eax
lea edx, [ebp - 0x18]
mov ecx, edi
call fcn.004080a3
test al, al
push dword [ebp - 0x18]
je 0x4058ba
call esi
mov esi, eax
push dword [ebp - 0x18]
call fcn.00401c54
test esi, esi
pop ecx
setne al
jmp 0x4058c2
call fcn.00401c54
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 0x4061e0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, 0x43c170
call fcn.0043b650
sub esp, 0xc
push ebx
push esi
push edi
mov edi, ecx
call fcn.00407f9a
mov esi, dword [sym.imp.kernel32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 1
je 0x40620c
push edi
call esi
cmp eax, 0xffffffff
jne 0x40624e
test ebx, ebx
je 0x40624b
lea ecx, [ebp - 0x18]
call fcn.00402b75
and dword [ebp - 4], 0
cmp ebx, 1
setne al
push eax
lea edx, [ebp - 0x18]
mov ecx, edi
call fcn.004080a3
test al, al
push dword [ebp - 0x18]
je 0x406245
call esi
mov esi, eax
push dword [ebp - 0x18]
call fcn.00401c54
pop ecx
mov eax, esi
jmp 0x40624e
call fcn.00401c54
pop ecx
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x406a2b
Capabilities:
Get disk information

Disassembly:
mov eax, 0x43c23c
call fcn.0043b650
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 0x18], ecx
call fcn.00401553
mov edi, dword [sym.imp.kernel32.dll_GetLogicalDriveStringsW]
push 0
push 0
call edi
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0x14], ebx
je 0x406af9
mov eax, SysReAllocString
cmp ebx, eax
ja 0x406a67
mov eax, ebx
add eax, eax
push eax
call fcn.00414373
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 - 0x10], ebx
je 0x406af2
cmp ebx, dword [ebp - 0x14]
ja 0x406af2
lea ecx, [ebp - 0x2c]
call fcn.00402b75
test ebx, ebx
mov byte [ebp - 4], 1
mov dword [ebp - 0x14], edi
jbe 0x406ada
push 2
xor eax, eax
pop ebx
cmp word [esi + ebx - 2], 0
jne 0x406acf
add eax, esi
lea ecx, [ebp - 0x2c]
push eax
call fcn.00414373
mov ecx, dword [ebp - 0x18]
lea eax, [edi + 1]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x2c]
push eax
mov dword [ebp - 0x1c], ebx
call fcn.0040150c
mov eax, ebx
inc edi
inc ebx
inc ebx
cmp edi, dword [ebp - 0x10]
jb 0x406aa5
mov ebx, dword [ebp - 0x10]
push dword [ebp - 0x2c]
call fcn.00401c54
push esi
call fcn.00401c54
cmp dword [ebp - 0x14], ebx
pop ecx
pop ecx
sete al
jmp 0x406afb
push esi
call fcn.00401c54
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 0x414373
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
pushal
call 0x414382
pop dword [ebp - 0x34]
mov eax, 0x94e117d0
add eax, 0x6b602bb2
sub dword [ebp - 0x34], eax
push 0x40
push 0x1000
push 0x39def
push 0
mov eax, 0xb23c97ff
add eax, 0x4e077841
add eax, dword [ebp - 0x34]
call dword [eax]
mov ecx, 0xb12739ab
add ecx, 0x4ed90917
mov esi, eax
mov edx, 0x456e00
add edx, dword [ebp - 0x34]
mov edi, 0x1029d5eb
add edi, 0x7e2ef512
sub dword [ebp - 0x18], 0xd586e87c
mov ebx, dword [edx]
xor dword [ebp - 0x14], 0xad754bfc
sub ebx, edi
sub dword [ebp - 8], 0xc4e1e90d
mov dword [esi], ebx
xor dword [ebp - 0x10], eax
add esi, 0xcf5922ff
add esi, 0x30a6dd05
add edx, 4
loop 0x4143db
add eax, 0x8ca9bd6
add eax, 0xf7366205
xor ebx, ebx
add ebx, eax
add eax, 0x63cf555
add eax, 0xf9c30ab0
mov ecx, 0x7e03f24b
sub ecx, 0x7dc3f24b
add ecx, dword [ebp - 0x34]
call ebx
leave
ret

Function at 0x4166b1
Capabilities:
Encode data using xor

Disassembly:
test edx, edx
mov eax, ecx
jbe 0x4167c8
mov ecx, edx
mov edx, dword [esp + 4]
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
dec ecx
jne 0x4166c1
ret 4

Function at 0x419771
Capabilities:
Encode data using xor

Disassembly:
push esi
or eax, 0xffffffff
xor esi, esi
test edx, edx
jbe 0x41979e
push ebx
push edi
movzx edi, byte [esi + ecx]
mov ebx, eax
and ebx, 0xff
xor edi, ebx
shr eax, 8
mov edi, dword [edi*4 + 0x44e780]
xor eax, edi
inc esi
cmp esi, edx
jb 0x41977d
pop edi
pop ebx
not eax
pop esi
ret