joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401000
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
mov eax, dword [0x40705a]
shl eax, 2
mov dword [0x40705e], eax
push edi
push ecx
xor eax, eax
mov edi, 0x4084a4
mov ecx, 0x4088f4
cmp ecx, edi
jbe 0x401024
sub ecx, edi
cld
rep stosb byte es:[edi], al
pop ecx
pop edi
mov edx, dword fs:[4]
mov dword [0x40706e], edx
mov eax, dword [edx - 8]
mov dword [0x407066], eax
mov eax, dword [edx - 4]
mov dword [0x40706a], eax
sub edx, 4
mov dword [0x408658], edx
sub edx, 4
cmp edx, esp
jae 0x401054
mov esp, edx
push 0
call fcn.00403ad6
pop ecx
push 0x40702c
push 0
call sub.KERNEL32.dll_GetModuleHandleA
mov dword [0x407062], eax
push 0
jmp fcn.00406b94

Function at 0x4010cc
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff6c
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0xc]
sub eax, dword [esi + 8]
mov dword [ebp - 4], eax
test eax, eax
je 0x401171
xor ecx, ecx
lea eax, [ebp - 0x94]
mov edx, dword [esi + 8]
cmp ecx, dword [ebp - 4]
jge 0x401115
mov bl, byte [edx]
inc edx
mov byte [eax], bl
xor ebx, ebx
mov bl, byte [0x40708c]
inc ecx
mov word [eax + 2], bx
add eax, 4
cmp ecx, dword [ebp - 4]
jl 0x4010fb
mov ax, word [ebp - 4]
mov word [ebp - 8], ax
mov word [ebp - 6], 1
mov word [ebp - 0xc], 0
mov word [ebp - 0xa], 0
mov dx, word [esi]
mov ecx, edx
sub cx, ax
dec edx
mov word [ebp - 0x14], cx
mov word [ebp - 0x10], dx
lea edx, [ebp - 0x14]
mov ax, word [esi + 4]
mov word [ebp - 0xe], ax
mov word [ebp - 0x12], ax
push edx
mov ecx, dword [ebp - 0xc]
lea edx, [ebp - 0x94]
push ecx
mov ecx, dword [0x4084a4]
mov eax, dword [ebp - 8]
push eax
push edx
push ecx
call sub.KERNEL32.dll_WriteConsoleOutputA
mov eax, dword [esi + 0xc]
mov dword [esi + 8], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push ebx
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.dll_GetFileAttributesA
mov ebx, eax
cmp eax, 0xffffffff
jne 0x4054f0
call fcn.0040545c
pop ebx
pop ebp
ret
test byte [ebp + 0xc], 2
je 0x40550b
test bl, 1
je 0x40550b
mov dword [0x408380], 5
or eax, 0xffffffff
pop ebx
pop ebp
ret
xor eax, eax
pop ebx
pop ebp
ret
Function at 0x40561c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
test byte [ebp + 0xd], 0xc0
jne 0x40563b
mov eax, dword [0x407c98]
mov edx, dword [eax]
and edx, 0xc000
or dword [ebp + 0xc], edx
test byte [ebp + 0xd], 0x80
jne 0x405648
or dword [ebp + 0xc], 0x4000
mov ecx, dword [ebp + 0xc]
and ecx, 0x700
cmp ecx, 0x500
jg 0x405675
je 0x405687
sub ecx, 0x100
je 0x405695
sub ecx, 0x100
je 0x40569c
sub ecx, 0x100
je 0x40568e
jmp 0x4056a3
sub ecx, 0x600
je 0x40569c
sub ecx, 0x100
je 0x405687
jmp 0x4056a3
mov edi, 1
jmp 0x4056a8
mov edi, 2
jmp 0x4056a8
mov edi, 4
jmp 0x4056a8
mov edi, 5
jmp 0x4056a8
mov edi, 3
test byte [ebp + 0xd], 1
je 0x4056cf
lea eax, [ebp + 0x10]
add eax, 4
mov eax, dword [eax - 4]
and eax, dword [0x408194]
test al, 0x80
je 0x4056c8
mov ebx, 0x80
jmp 0x4056e1
mov ebx, 1
jmp 0x4056e1
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.dll_GetFileAttributesA
mov ebx, eax
cmp eax, 0xffffffff
jne 0x4056e1
xor ebx, ebx
mov eax, dword [ebp + 0xc]
and eax, 3
sub eax, 1
jb 0x4056f3
je 0x4056fc
dec eax
je 0x405705
jmp 0x40570e
mov dword [ebp - 4], 0x80000000
jmp 0x40571d
mov dword [ebp - 4], 0x40000000
jmp 0x40571d
mov dword [ebp - 4], 0xc0000000
jmp 0x40571d
push 1
call fcn.004053f8
pop ecx
mov ebx, eax
jmp 0x405809
mov eax, dword [ebp + 0xc]
and eax, 0x70
sub eax, 0x10
je 0x405739
sub eax, 0x10
je 0x405740
sub eax, 0x10
je 0x405749
sub eax, 0x10
je 0x405752
jmp 0x405752
xor edx, edx
mov dword [ebp - 8], edx
jmp 0x405759
mov dword [ebp - 8], 1
jmp 0x405759
mov dword [ebp - 8], 2
jmp 0x405759
mov dword [ebp - 8], 3
mov dword [ebp - 0x14], 0xc
xor ecx, ecx
lea edx, [ebp - 0x14]
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp + 0xc]
and eax, 0x80
cmp eax, 1
sbb eax, eax
neg eax
mov dword [ebp - 0xc], eax
push 0
push ebx
push edi
push edx
mov ecx, dword [ebp - 8]
push ecx
mov eax, dword [ebp - 4]
push eax
mov edx, dword [ebp + 8]
push edx
call sub.KERNEL32.dll_CreateFileA
mov esi, eax
cmp eax, 0xffffffff
jne 0x4057c2
call sub.KERNEL32.dll_GetLastError
mov ebx, eax
and ebx, 0xffff
cmp ebx, 0x6e
jne 0x4057b7
test byte [ebp + 0xd], 1
mov ebx, 0x50
jne 0x4057b7
add ebx, 0xffffffb2
push ebx
call fcn.004053f8
pop ecx
mov ebx, eax
jmp 0x405809
mov edi, esi
push edi
call fcn.0040558c
pop ecx
test eax, eax
je 0x4057d6
or dword [ebp + 0xc], 0x2000
test bl, 1
jne 0x4057e2
or dword [ebp + 0xc], 0x100
and dword [ebp + 0xc], 0xfffff8ff
mov eax, dword [ebp + 0xc]
push eax
push edi
call fcn.00405154
add esp, 8
mov ebx, eax
inc eax
jne 0x405809
push 4
call fcn.004053f8
pop ecx
push esi
call sub.KERNEL32.dll_CloseHandle
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4063a4
Capabilities:
Get memory capacity

Disassembly:
add esp, 0xffffffe0
mov dword [esp], 0x20
push esp
call sub.KERNEL32.dll_GlobalMemoryStatus
mov eax, dword [esp + 0xc]
add esp, 0x20
ret
Function at 0x406564
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffac
cmp dword [0x408384], 0
push ebx
push esi
mov esi, dword [ebp + 8]
jne 0x40661c
cmp byte [0x407059], 0
je 0x4065d6
push 0x50
lea eax, [ebp - 0x54]
push eax
push 0
call sub.KERNEL32.dll_GetModuleFileNameA
push 0x5c
lea edx, [ebp - 0x54]
push edx
call fcn.00401a8c
add esp, 8
mov ebx, eax
test eax, eax
jne 0x4065bf
push 0x3a
lea edx, [ebp - 0x54]
push edx
call fcn.00401a8c
add esp, 8
mov ebx, eax
test eax, eax
jne 0x4065bf
lea ebx, [ebp - 0x54]
jmp 0x4065c0
inc ebx
call fcn.0040651c
or eax, 0x10010
push eax
push ebx
push esi
push 0
call sub.USER32.dll_MessageBoxA
jmp 0x40663d
push 0xfffffffffffffff4
call sub.KERNEL32.dll_GetStdHandle
mov ebx, eax
lea eax, [ebp - 4]
push 0
push eax
push 2
push 0x408388
push ebx
call sub.KERNEL32.dll_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push esi
call fcn.00401a2c
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.dll_WriteFile
push 0
lea ecx, [ebp - 4]
push ecx
push 2
push 0x40838b
push ebx
call sub.KERNEL32.dll_WriteFile
jmp 0x40663d
cmp dword [0x408384], 0xffffffff
je 0x40663d
mov eax, dword [0x408384]
test eax, eax
je 0x40663d
cmp byte [eax], 0
je 0x40663d
push esi
push eax
call fcn.004066cc
add esp, 8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x430004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
call 0x43000c
pop eax
nop
nop
nop
nop
nop
add eax, 0x403d6f
nop
sub eax, 0x403d15
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x430030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
nop
popal
jmp fcn.00401219
Function at 0x402057
Capabilities:
Create pipe

Disassembly:
sub esp, 0x1c
mov eax, dword [0x43f780]
xor eax, esp
mov dword [esp + 0x18], eax
push ebx
push ebp
push esi
push edi
xor eax, eax
mov ebp, dword [esp + 0x30]
lea edi, [esp + 0x10]
mov ebx, ecx
stosd dword es:[edi], eax
lea esi, [esp + 0x10]
push 5
pop ecx
or dword [ebx + 8], 0xffffffff
stosd dword es:[edi], eax
mov byte [ebx + 0x20], 1
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea edi, [ebx + 0xc]
rep movsd dword es:[edi], dword [esi]
xor esi, esi
push esi
push 1
push 1
push esi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [ebx + 0x1c], eax
test eax, eax
jne 0x4020a7
xor al, al
jmp 0x4020e8
push ebp
lea eax, [esp + 0x14]
mov ecx, ebx
push eax
call fcn.004020fd
cmp dword [eax + 0x14], 7
jbe 0x4020bc
mov eax, dword [eax]
push esi
push dword [ebx]
mov ecx, 0x4000
push ecx
push ecx
push 1
push esi
push 0x40000003
push eax
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
lea ecx, [esp + 0x10]
mov dword [ebx + 8], eax
call fcn.00401780
cmp dword [ebx + 8], 0xffffffff
setne al
mov ecx, dword [esp + 0x28]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0041d184
add esp, 0x1c
ret 4
Function at 0x40215b
Capabilities:
Read file on windows
Read pipe
Write file on windows

Disassembly:
sub esp, 0x428
mov eax, dword [0x43f780]
xor eax, esp
mov dword [esp + 0x424], eax
push ebx
mov ebx, dword [esp + 0x430]
push ebp
push esi
push edi
mov edi, dword [esp + 0x440]
mov esi, ecx
xor ebp, ebp
push ebx
lea eax, [esp + 0x20]
mov ecx, esi
push eax
call fcn.004020fd
cmp dword [esp + 0x30], 7
lea eax, [esp + 0x1c]
jbe 0x4021a1
mov eax, dword [esp + 0x1c]
push ebp
push ebp
push 3
push ebp
push ebp
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 8], eax
cmp eax, 0xffffffff
jne 0x402215
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xe7
jne 0x4021ef
cmp dword [esp + 0x30], 7
lea eax, [esp + 0x1c]
jbe 0x4021d7
mov eax, dword [esp + 0x1c]
push dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_WaitNamedPipeW]
test eax, eax
je 0x4021ef
lea ecx, [esp + 0x1c]
call fcn.00401780
jmp 0x402185
lea ecx, [esp + 0x1c]
call fcn.00401780
xor al, al
mov ecx, dword [esp + 0x434]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0041d184
add esp, 0x428
ret 8
lea ecx, [esp + 0x1c]
call fcn.00401780
xor ebx, ebx
mov eax, dword [edi]
cmp eax, dword [edi + 4]
je 0x402243
push ebx
lea eax, [esp + 0x14]
push eax
push ebx
push ebx
push ebx
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_PeekNamedPipe]
test eax, eax
je 0x402288
cmp dword [esp + 0x10], ebx
je 0x402288
push ebx
lea eax, [esp + 0x14]
push eax
push 0x400
lea eax, [esp + 0x40]
push eax
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4021f8
cmp dword [esp + 0x10], ebx
je 0x402288
push dword [esp + 0x10]
lea eax, [esp + 0x38]
mov ecx, edi
push eax
push dword [edi + 4]
call fcn.00401e60
mov eax, dword [edi + 4]
sub eax, dword [edi]
cmp eax, dword [esi + 4]
jbe 0x402220
jmp 0x4021f8
push ebx
lea eax, [esp + 0x1c]
mov dword [esp + 0x18], 1
push eax
push 4
lea eax, [esp + 0x20]
push eax
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
setne al
jmp 0x4021fa
Function at 0x4022b0
Capabilities:
Connect pipe
Read file on windows
Write file on windows
Write pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x43f780]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
push edi
lea edi, [esi + 0xc]
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
jne 0x402349
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x217
je 0x4022f5
push edi
push dword [esi + 8]
mov ecx, esi
call fcn.00402118
test al, al
je 0x402349
mov eax, dword [ebx + 4]
lea ecx, [ebp - 0x48]
sub eax, dword [ebx]
push edi
push ecx
push eax
push dword [ebx]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x40231e
push edi
push dword [esi + 8]
mov ecx, esi
call fcn.00402118
test al, al
je 0x402349
push edi
lea eax, [ebp - 0x4c]
push eax
push 0x40
lea eax, [ebp - 0x44]
push eax
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x402345
push edi
push dword [esi + 8]
mov ecx, esi
call fcn.00402118
test al, al
je 0x402349
mov al, 1
jmp 0x40234b
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041d184
leave
ret 4

Function at 0x403372
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0x10]
test esi, esi
je 0x40339c
movzx ecx, byte [edi]
movzx eax, dl
xor ecx, eax
shr edx, 8
xor edx, dword [ecx*4 + 0x440090]
inc edi
sub esi, 1
jne 0x403384
pop edi
mov eax, edx
pop esi
ret 0xc
Function at 0x404528
Capabilities:
Write file on windows

Disassembly:
push 0x28
mov eax, 0x430b0f
call fcn.0041d228
mov ebx, ecx
mov esi, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
mov dword [ebp - 0x34], edx
test esi, esi
jne 0x40454a
mov al, 1
jmp 0x404670
cmp dword [ebx + 0x10], 1
jne 0x40455e
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [ebx + 8], eax
mov edx, dword [ebp - 0x34]
and dword [ebp - 0x30], 0
xor cl, cl
cmp dword [ebx + 0x10], 0
mov byte [ebp - 0x29], cl
je 0x4045b1
xor edi, edi
test esi, esi
je 0x4045d2
mov eax, esi
mov ecx, 0x4000
sub eax, edi
cmp eax, ecx
jb 0x404582
mov eax, ecx
push 0
lea ecx, [ebp - 0x30]
push ecx
push eax
lea eax, [edx + edi]
push eax
push dword [ebx + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
setne cl
mov byte [ebp - 0x29], cl
test eax, eax
je 0x4045ca
mov edx, dword [ebp - 0x34]
add edi, 0x4000
cmp edi, esi
jb 0x404573
jmp 0x4045ca
push 0
lea eax, [ebp - 0x30]
push eax
push esi
push edx
push dword [ebx + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
setne cl
mov byte [ebp - 0x29], cl
test cl, cl
jne 0x404669
cmp byte [ebx + 0x1e], 0
je 0x404669
cmp dword [ebx + 0x10], 0
jne 0x404669
push 0
lea edi, [ebx + 0x34]
mov ecx, 0x45c598
push edi
call fcn.0040353a
test al, al
je 0x404641
mov edx, dword [ebp - 0x34]
cmp dword [ebp - 0x30], esi
jae 0x40455e
cmp dword [ebp - 0x30], 0
jbe 0x40455e
mov edi, dword [ebx]
push 0
mov esi, dword [edi + 0x14]
mov ecx, esi
call dword [0x433258]
mov ecx, ebx
call esi
sub eax, dword [ebp - 0x30]
mov ecx, dword [edi + 0x10]
sbb edx, 0
push edx
push eax
call dword [0x433258]
mov ecx, ebx
call dword [edi + 0x10]
mov esi, dword [ebp + 0xc]
jmp 0x40455b
push 0x433688
lea ecx, [ebp - 0x28]
call fcn.004014a2
and dword [ebp - 4], 0
lea eax, [ebp - 0x28]
push edi
push eax
mov ecx, 0x45c598
call fcn.0040396d
lea ecx, [ebp - 0x28]
call fcn.00401780
mov al, byte [ebp - 0x29]
mov byte [ebx + 0xc], 1
call fcn.0041d1d7
ret 8
Function at 0x404ca9
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0x24
mov eax, 0x430a9c
call fcn.0041d228
mov esi, dword [ebp + 8]
mov eax, esi
cmp dword [esi + 0x14], 7
jbe 0x404cc2
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x404d48
xor eax, eax
lea edi, [ebp - 0x28]
stosd dword es:[edi], eax
push 7
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
and dword [ebp - 0x18], 0
pop edi
mov dword [ebp - 0x14], edi
mov word [ebp - 0x28], ax
and dword [ebp - 4], eax
lea eax, [ebp - 0x28]
push eax
push esi
call fcn.004067c5
test al, al
je 0x404d0e
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], edi
jbe 0x404d05
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
mov eax, dword [ebp - 0x14]
cmp eax, edi
jbe 0x404d48
mov ecx, dword [ebp - 0x28]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], ecx
cmp eax, 0x1000
jb 0x404d3f
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.004016c3
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x30]
push eax
push ecx
call fcn.0041d176
pop ecx
pop ecx
mov eax, ebx
call fcn.0041d1d7
ret 4

Function at 0x404f2d
Capabilities:
Create directory

Disassembly:
push 0x24
mov eax, 0x430a9c
call fcn.0041d228
mov esi, dword [ebp + 8]
push esi
call fcn.004065b6
movzx eax, ax
cmp eax, 0x2e
je 0x404f71
cmp eax, 0x20
je 0x404f71
cmp dword [esi + 0x14], 7
mov eax, esi
jbe 0x404f59
mov eax, dword [esi]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov edi, eax
mov dword [ebp - 0x2c], edi
test edi, edi
jne 0x40501c
jmp 0x404f75
and dword [ebp - 0x2c], 0
push esi
call fcn.00404c97
test al, al
jne 0x40502f
xor eax, eax
lea edi, [ebp - 0x28]
stosd dword es:[edi], eax
push 7
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
and dword [ebp - 0x18], 0
pop edi
mov dword [ebp - 0x14], edi
mov word [ebp - 0x28], ax
and dword [ebp - 4], eax
lea eax, [ebp - 0x28]
push eax
push esi
call fcn.004067c5
test al, al
je 0x404fc5
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], edi
jbe 0x404fb8
mov eax, dword [ebp - 0x28]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov edi, eax
jmp 0x404fc8
mov edi, dword [ebp - 0x2c]
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
cmp eax, 7
jbe 0x405007
mov ecx, dword [ebp - 0x28]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], ecx
cmp eax, 0x1000
jb 0x404ffe
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.004016c3
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x30]
push eax
push ecx
call fcn.0041d176
pop ecx
pop ecx
and dword [ebp - 0x18], 0
xor eax, eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
test edi, edi
je 0x40502f
cmp byte [ebp + 0xc], 0
je 0x40502b
push dword [ebp + 0x10]
push esi
call fcn.0040528d
xor eax, eax
jmp 0x405047
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
push 2
pop eax
cmp ecx, eax
je 0x405047
xor eax, eax
cmp ecx, 3
sete al
inc eax
call fcn.0041d1d7
ret 0xc
Function at 0x40528d
Capabilities:
Set file attributes

Disassembly:
push 0x24
mov eax, 0x430a9c
call fcn.0041d228
mov esi, dword [ebp + 8]
mov eax, esi
cmp dword [esi + 0x14], 7
jbe 0x4052a6
mov eax, dword [esi]
push dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne bl
test eax, eax
jne 0x405335
lea edi, [ebp - 0x28]
stosd dword es:[edi], eax
push 7
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
and dword [ebp - 0x18], 0
pop edi
mov dword [ebp - 0x14], edi
mov word [ebp - 0x28], ax
and dword [ebp - 4], eax
lea eax, [ebp - 0x28]
push eax
push esi
call fcn.004067c5
test al, al
je 0x4052fb
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], edi
jbe 0x4052ec
mov eax, dword [ebp - 0x28]
push dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne bl
mov eax, dword [ebp - 0x14]
cmp eax, edi
jbe 0x405335
mov ecx, dword [ebp - 0x28]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], ecx
cmp eax, 0x1000
jb 0x40532c
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.004016c3
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x30]
push eax
push ecx
call fcn.0041d176
pop ecx
pop ecx
mov al, bl
call fcn.0041d1d7
ret 8
Function at 0x4055b0
Capabilities:
Check if file exists
Enumerate files on windows

Disassembly:
push 0x274
mov eax, 0x430bf5
call fcn.0041d228
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0x27c], eax
cmp esi, 0xffffffff
jne 0x4056c0
cmp dword [eax + 0x14], 7
mov ecx, eax
jbe 0x4055e1
mov ecx, dword [eax]
lea eax, [ebp - 0x278]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4056e3
xor eax, eax
lea edi, [ebp - 0x28]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
and dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
and dword [ebp - 4], eax
lea eax, [ebp - 0x28]
mov edi, dword [ebp - 0x27c]
push eax
push edi
call fcn.004067c5
test al, al
je 0x405647
cmp dword [ebp - 0x14], 7
lea eax, [ebp - 0x28]
jbe 0x405637
mov eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x278]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
cmp eax, 7
jbe 0x405698
mov ecx, dword [ebp - 0x28]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x27c], eax
mov dword [ebp - 0x280], ecx
cmp eax, 0x1000
jb 0x40568f
lea eax, [ebp - 0x27c]
push eax
lea eax, [ebp - 0x280]
push eax
call fcn.004016c3
mov eax, dword [ebp - 0x27c]
mov ecx, dword [ebp - 0x280]
push eax
push ecx
call fcn.0041d176
pop ecx
pop ecx
cmp esi, 0xffffffff
jne 0x4056e9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x4056b6
cmp eax, 3
je 0x4056b6
cmp eax, 0x12
je 0x4056b6
mov al, 1
jmp 0x4056b8
xor al, al
mov byte [ebx + 0x5c], al
jmp 0x4057a0
lea eax, [ebp - 0x278]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4056e3
or esi, 0xffffffff
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
setne al
jmp 0x4056b8
mov edi, dword [ebp - 0x27c]
push edi
mov ecx, ebx
call fcn.00403aaa
lea eax, [ebp - 0x24c]
push eax
lea ecx, [ebp - 0x28]
call fcn.004014a2
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 1
push eax
push ebx
call fcn.00406e14
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00401780
mov ecx, dword [ebp - 0x25c]
xor eax, eax
add eax, dword [ebp - 0x258]
mov dword [ebx + 0x18], eax
mov eax, dword [ebp - 0x278]
adc ecx, 0
mov dword [ebx + 0x20], eax
mov eax, dword [ebp - 0x274]
mov dword [ebx + 0x1c], ecx
mov ecx, dword [ebp - 0x270]
mov dword [ebx + 0x40], eax
mov eax, dword [ebp - 0x26c]
mov dword [ebx + 0x44], ecx
mov ecx, dword [ebp - 0x268]
mov dword [ebx + 0x48], eax
mov eax, dword [ebp - 0x264]
mov dword [ebx + 0x4c], ecx
mov ecx, dword [ebp - 0x260]
mov dword [ebx + 0x50], eax
lea eax, [ebp - 0x264]
mov dword [ebx + 0x54], ecx
lea ecx, [ebx + 0x28]
push eax
call fcn.0040bcc5
lea eax, [ebp - 0x274]
push eax
lea ecx, [ebx + 0x30]
call fcn.0040bcc5
lea eax, [ebp - 0x26c]
push eax
lea ecx, [ebx + 0x38]
call fcn.0040bcc5
and dword [ebx + 0x58], 0
mov eax, esi
call fcn.0041d1d7
ret 0xc
Function at 0x408d74
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ecx
push ecx
push ebx
push ebp
xor ebp, ebp
push edi
mov ecx, ebp
movzx eax, byte [ecx + str.cw]
mov byte [eax + 0x4480c8], cl
inc ecx
cmp ecx, 0x100
jl 0x408d7d
mov al, byte [ebp + str.cw]
mov byte [esp + 0x10], al
push 2
push dword [esp + 0x14]
mov byte [ebp*4 + 0x448dc9], al
mov byte [ebp*4 + 0x448dc8], al
mov byte [ebp*4 + 0x4489cb], al
mov byte [ebp*4 + 0x4489c8], al
mov byte [ebp*4 + 0x4485cb], al
mov byte [ebp*4 + 0x4485ca], al
mov byte [ebp*4 + 0x4481ca], al
mov byte [ebp*4 + 0x4481c9], al
call fcn.0040951d
push 3
push dword [esp + 0x14]
mov byte [ebp*4 + 0x448dcb], al
mov byte [ebp*4 + 0x4489ca], al
mov byte [ebp*4 + 0x4485c9], al
mov byte [ebp*4 + 0x4481c8], al
call fcn.0040951d
mov bl, byte [ebp + 0x4480c8]
push 0xb
mov byte [esp + 0x10], bl
push dword [esp + 0x10]
mov byte [ebp*4 + 0x448dca], al
mov byte [ebp*4 + 0x4489c9], al
mov byte [ebp*4 + 0x4485c8], al
mov byte [ebp*4 + 0x4481cb], al
call fcn.0040951d
movzx edi, bl
push 9
push dword [esp + 0x10]
mov byte [ebp*4 + 0x449dca], al
mov byte [ebp*4 + 0x4499c9], al
mov byte [ebp*4 + 0x4495c8], al
mov byte [ebp*4 + 0x4491cb], al
mov byte [edi*4 + 0x44adca], al
mov byte [edi*4 + 0x44a9c9], al
mov byte [edi*4 + 0x44a5c8], al
mov byte [edi*4 + 0x44a1cb], al
call fcn.0040951d
push 0xd
push dword [esp + 0x10]
mov byte [ebp*4 + 0x449dc8], al
mov byte [ebp*4 + 0x4499cb], al
mov byte [ebp*4 + 0x4495ca], al
mov byte [ebp*4 + 0x4491c9], al
mov byte [edi*4 + 0x44adc8], al
mov byte [edi*4 + 0x44a9cb], al
mov byte [edi*4 + 0x44a5ca], al
mov byte [edi*4 + 0x44a1c9], al
call fcn.0040951d
push 0xe
push dword [esp + 0x10]
mov byte [ebp*4 + 0x449dc9], al
mov byte [ebp*4 + 0x4499c8], al
mov byte [ebp*4 + 0x4495cb], al
mov byte [ebp*4 + 0x4491ca], al
mov byte [edi*4 + 0x44adc9], al
mov byte [edi*4 + 0x44a9c8], al
mov byte [edi*4 + 0x44a5cb], al
mov byte [edi*4 + 0x44a1ca], al
call fcn.0040951d
mov byte [ebp*4 + 0x449dcb], al
mov byte [ebp*4 + 0x4499ca], al
mov byte [ebp*4 + 0x4495c9], al
mov byte [ebp*4 + 0x4491c8], al
inc ebp
mov byte [edi*4 + 0x44adcb], al
mov byte [edi*4 + 0x44a9ca], al
mov byte [edi*4 + 0x44a5c9], al
mov byte [edi*4 + 0x44a1c8], al
cmp ebp, 0x100
jl 0x408d93
pop edi
pop ebp
pop ebx
pop ecx
pop ecx
ret