joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44bb30
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
push eax
call fcn.0044bc00
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0xc]
jae 0x44bbec
cmp dword [ebp - 4], 0x50000000
jb 0x44bb6c
cmp dword [ebp - 4], 0x80000000
ja 0x44bb6c
mov dword [ebp - 4], 0x80010000
jmp 0x44bb45
push 0x1c
push 0
lea edx, [ebp - 0x20]
push edx
call fcn.0043c440
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x44bb92
jmp 0x44bbec
cmp dword [ebp - 0x10], 0x10000
jne 0x44bbd5
cmp dword [ebp - 0x14], 0x10000
jb 0x44bbd5
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x44bbc8
mov eax, dword [ebp - 0x24]
jmp 0x44bbee
mov eax, dword [ebp - 4]
add eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x44bbe7
mov ecx, dword [ebp - 0x20]
add ecx, dword [ebp - 0x14]
push ecx
call fcn.0044bc00
add esp, 4
mov dword [ebp - 4], eax
jmp 0x44bb45
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x44bc30
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 0xc]
sub eax, 0x10000
push eax
call fcn.0044bd00
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jbe 0x44bcf4
cmp dword [ebp - 4], 0x50000000
jb 0x44bc71
cmp dword [ebp - 4], 0x80000000
ja 0x44bc71
mov dword [ebp - 4], 0x4fff0000
jmp 0x44bc4a
push 0x1c
push 0
lea edx, [ebp - 0x20]
push edx
call fcn.0043c440
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x44bc97
jmp 0x44bcf4
cmp dword [ebp - 0x10], 0x10000
jne 0x44bcda
cmp dword [ebp - 0x14], 0x10000
jb 0x44bcda
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x44bccd
mov eax, dword [ebp - 0x24]
jmp 0x44bcf6
mov eax, dword [ebp - 4]
sub eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x44bcef
mov ecx, dword [ebp - 0x1c]
sub ecx, 0x10000
push ecx
call fcn.0044bd00
add esp, 4
mov dword [ebp - 4], eax
jmp 0x44bc4a
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x4d3dc0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x54000]
push edi
or ebp, 0xffffffff
jmp 0x4d3de2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4d3de9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4d3dd8
mov eax, 1
add ebx, ebx
jne 0x4d3dfb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4d3e0c
jne 0x4d3e2b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4d3e2b
dec eax
add ebx, ebx
jne 0x4d3e18
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4d3df0
add ebx, ebx
jne 0x4d3e27
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4d3e7d
xor ecx, ecx
sub eax, 3
jb 0x4d3e43
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4d3eb2
sar eax, 1
mov ebp, eax
jmp 0x4d3e4e
add ebx, ebx
jne 0x4d3e4e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4d3e1c
inc ecx
add ebx, ebx
jne 0x4d3e5c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4d3e1c
add ebx, ebx
jne 0x4d3e69
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4d3e5e
jne 0x4d3e7a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4d3e5e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4d3e9c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4d3e8e
jmp 0x4d3dde
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4d3e9c
add edi, ecx
jmp 0x4d3dde
pop esi
mov edi, esi
mov ecx, 0x232d
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4d3eba
cmp byte [edi], 0x11
jne 0x4d3eba
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x4d3ebf
lea edi, [esi + 0xd0000]
mov eax, dword [edi]
or eax, eax
je 0x4d3f37
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xdb89c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xdb9b4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4d3eec
mov ecx, edi
jns 0x4d3f1b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xdb9b8]
or eax, eax
je 0x4d3f31
mov dword [ebx], eax
add ebx, 4
jmp 0x4d3f09
call dword [esi + 0xdb9c8]
mov ebp, dword [esi + 0xdb9bc]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4d3f6b
sub esp, 0xffffff80
jmp 0x44d10e
Function at 0x40106b
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
xor edi, edi
push edi
push edi
push 3
push edi
push 3
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x401092
xor eax, eax
jmp 0x4010c0
push edi
mov edi, dword [ebp + 0x10]
lea eax, [ebp + 8]
push eax
push edi
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
push esi
jne 0x4010b2
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40108e
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
cmp dword [ebp + 8], edi
sete al
pop edi
pop esi
pop ebp
ret

Function at 0x4010c4
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
xor edi, edi
push edi
push 0x80000002
push 4
push edi
push 3
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4010ef
xor eax, eax
jmp 0x401124
push edi
mov edi, dword [ebp + 0x10]
lea eax, [ebp + 8]
push eax
push edi
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
push esi
jne 0x40110f
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4010eb
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
cmp dword [ebp + 8], edi
sete al
pop edi
pop esi
pop ebp
ret

Function at 0x401e51
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x405178
cmp edx, dword [eax]
je 0x401e73
add eax, 8
inc ecx
cmp eax, 0x405208
jl 0x401e64
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x405178]
jne 0x401fa1
mov eax, dword [0x40556c]
cmp eax, 1
je 0x401f7b
test eax, eax
jne 0x401ea4
cmp dword [0x4050c8], 1
je 0x401f7b
cmp edx, 0xfc
je 0x401fa1
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x401edb
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00402400
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00402570
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x401f1e
lea eax, [ebp - 0x1a4]
push eax
call fcn.00402570
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x404398
push edi
call fcn.00403200
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00402400
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00402410
lea eax, [ebp - 0xa0]
push 0x404378
push eax
call fcn.00402410
push dword [esi + 0x40517c]
lea eax, [ebp - 0xa0]
push eax
call fcn.00402410
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0040316e
add esp, 0x2c
pop edi
jmp 0x401fa1
lea eax, [ebp + 8]
lea esi, [esi + 0x40517c]
push 0
push eax
push dword [esi]
call fcn.00402570
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x4015fe
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 0x401628
movzx ecx, byte [edi]
movzx eax, dl
xor ecx, eax
shr edx, 8
xor edx, dword [ecx*4 + 0x434f00]
inc edi
sub esi, 1
jne 0x401610
pop edi
mov eax, edx
pop esi
ret 0xc

Function at 0x401ee0
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x1050
call fcn.004154f0
push ebx
mov ebx, dword [esp + 0x105c]
push ebp
push edi
mov edi, ecx
and dword [edi + 0x1034], 0
cmp byte [edi + 0x30], 0
jne 0x401f0c
test bl, 4
jne 0x401f0c
xor al, al
jmp 0x401f0e
mov al, 1
push esi
mov esi, ebx
shr esi, 1
not esi
and esi, 1
inc esi
shl esi, 0x1e
test bl, 1
je 0x401f27
or esi, 0x40000000
shr ebx, 3
not ebx
and ebx, 1
test al, al
je 0x401f36
or ebx, 2
lea ecx, [esp + 0x18]
call fcn.00401b85
cmp byte [edi + 0x24], 0
je 0x401f4b
or esi, 0x100
push 0
push 0x8000000
push 3
push 0
push ebx
push esi
push dword [esp + 0x107c]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x401fbb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x18]
push 0x800
push eax
push dword [esp + 0x106c]
call fcn.004035c6
test al, al
je 0x401fc8
push 0
push 0x8000000
push 3
push 0
push ebx
push esi
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x401fc3
mov dword [esp + 0x10], eax
jmp 0x401fc3
mov eax, dword [esp + 0x10]
mov dword [esp + 0x10], eax
cmp ebp, 0xffffffff
jne 0x401fd9
cmp dword [esp + 0x10], 2
jne 0x401fd9
mov dword [edi + 0x1034], 1
cmp byte [edi + 0x24], 0
pop esi
je 0x401fff
cmp ebp, 0xffffffff
je 0x401fff
or dword [esp + 0xc], 0xffffffff
lea eax, [esp + 0xc]
or dword [esp + 0x10], 0xffffffff
push 0
push eax
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_SetFileTime]
xor eax, eax
cmp ebp, 0xffffffff
mov byte [edi + 0x1c], al
mov dword [edi + 0x10], eax
setne bl
mov byte [edi + 0x15], al
je 0x40202e
push 0x800
push dword [esp + 0x1064]
lea ecx, [edi + 0x32]
mov dword [edi + 8], ebp
push ecx
call fcn.004069cc
mov byte [edi + 0x25], 0
pop edi
pop ebp
mov al, bl
pop ebx
add esp, 0x1050
ret 8
Function at 0x40251a
Capabilities:
Write file on windows

Disassembly:
push ecx
push ecx
push ebp
push esi
mov esi, dword [esp + 0x18]
mov ebp, ecx
test esi, esi
jne 0x40252f
mov al, 1
jmp 0x40264a
cmp dword [ebp + 0x10], 1
lea ecx, [ebp + 8]
mov dword [esp + 0xc], ecx
jne 0x40254b
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
lea ecx, [ebp + 8]
mov dword [ecx], eax
jmp 0x40254f
mov dword [esp + 0xc], ecx
push ebx
push edi
and dword [esp + 0x10], 0
xor bl, bl
cmp dword [ebp + 0x10], 0
je 0x4025a3
xor edi, edi
test esi, esi
je 0x4025c4
mov eax, esi
sub eax, edi
cmp eax, 0x4000
jb 0x402574
mov eax, 0x4000
push 0
lea edx, [esp + 0x14]
push edx
push eax
mov eax, dword [esp + 0x28]
add eax, edi
push eax
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, 1
sete bl
jne 0x4025c0
mov ecx, dword [esp + 0x14]
add edi, 0x4000
cmp edi, esi
jb 0x402564
jmp 0x4025c0
push 0
lea eax, [esp + 0x14]
push eax
push esi
push dword [esp + 0x28]
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea ebx, [eax - 1]
neg ebx
sbb bl, bl
inc bl
test bl, bl
jne 0x402642
cmp byte [ebp + 0x1e], 0
je 0x402642
cmp dword [ebp + 0x10], 0
jne 0x402642
push 0
lea edi, [ebp + 0x32]
mov ecx, 0x45ad9c
push edi
call fcn.004017d2
test al, al
je 0x402635
mov ecx, dword [esp + 0x14]
cmp dword [esp + 0x10], esi
jae 0x402551
cmp dword [esp + 0x10], 0
jbe 0x402551
mov edi, dword [ebp]
push 0
mov esi, dword [edi + 0x14]
mov ecx, esi
call dword [0x42922c]
mov ecx, ebp
call esi
sub eax, dword [esp + 0x14]
mov ecx, dword [edi + 0x10]
sbb edx, 0
push edx
push eax
call dword [0x42922c]
mov ecx, ebp
call dword [edi + 0x10]
mov esi, dword [esp + 0x20]
mov ecx, dword [esp + 0x14]
jmp 0x402551
push edi
push 0
mov ecx, 0x45ad9c
call fcn.00401ac9
pop edi
mov al, bl
mov byte [ebp + 0xc], 1
pop ebx
pop esi
pop ebp
pop ecx
pop ecx
ret 8

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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1000
call fcn.004154f0
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4027d7
push 0x800
lea eax, [ebp - 0x1000]
push eax
push dword [ebp + 8]
call fcn.004035c6
test al, al
je 0x4027d7
lea eax, [ebp - 0x1000]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
mov eax, esi
pop esi
leave
ret 4
Function at 0x402810
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1000
call fcn.004154f0
push esi
mov esi, dword [ebp + 8]
push esi
call fcn.004038de
movzx eax, word [eax]
cmp eax, 0x2e
je 0x402841
cmp eax, 0x20
je 0x402841
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x402874
push esi
call fcn.00402780
test al, al
jne 0x402887
push 0x800
lea eax, [ebp - 0x1000]
push eax
push esi
call fcn.004035c6
test al, al
je 0x402887
push 0
lea eax, [ebp - 0x1000]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x402887
cmp byte [ebp + 0xc], 0
je 0x402883
push dword [ebp + 0x10]
push esi
call fcn.00402a4b
xor eax, eax
jmp 0x40289f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
push 2
pop eax
cmp ecx, eax
je 0x40289f
xor eax, eax
cmp ecx, 3
sete al
inc eax
pop esi
leave
ret 0xc

Function at 0x402a4b
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1000
call fcn.004154f0
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne bl
test eax, eax
jne 0x402a9b
push 0x800
lea eax, [ebp - 0x1000]
push eax
push dword [ebp + 8]
call fcn.004035c6
test al, al
je 0x402a9b
push dword [ebp + 0xc]
lea eax, [ebp - 0x1000]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne bl
mov al, bl
pop ebx
leave
ret 8
Function at 0x402c15
Capabilities:
Check if file exists
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1250
call fcn.004154f0
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x250]
push edi
or edi, 0xffffffff
mov ebx, 0x800
push eax
cmp esi, edi
jne 0x402ca1
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, edi
jne 0x402cbc
push ebx
lea eax, [ebp - 0x1250]
push eax
push dword [ebp + 0xc]
call fcn.004035c6
test al, al
je 0x402c78
lea eax, [ebp - 0x250]
push eax
lea eax, [ebp - 0x1250]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, edi
jne 0x402cbc
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x402c91
cmp eax, 3
je 0x402c91
cmp eax, 0x12
je 0x402c91
mov al, 1
jmp 0x402c93
xor al, al
mov edi, dword [ebp + 0x10]
mov byte [edi + 0x1044], al
jmp 0x402d7e
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x402cbc
mov esi, edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
setne al
jmp 0x402c93
mov edi, dword [ebp + 0x10]
push ebx
push dword [ebp + 0xc]
push edi
call fcn.004069cc
push ebx
lea eax, [ebp - 0x224]
push eax
push edi
call fcn.004039b5
mov ecx, dword [ebp - 0x234]
xor eax, eax
add eax, dword [ebp - 0x230]
mov dword [edi + 0x1000], eax
mov eax, dword [ebp - 0x250]
adc ecx, 0
mov dword [edi + 0x1008], eax
mov eax, dword [ebp - 0x24c]
mov dword [edi + 0x1004], ecx
mov ecx, dword [ebp - 0x248]
mov dword [edi + 0x1028], eax
mov eax, dword [ebp - 0x244]
mov dword [edi + 0x102c], ecx
mov ecx, dword [ebp - 0x240]
mov dword [edi + 0x1030], eax
mov eax, dword [ebp - 0x23c]
mov dword [edi + 0x1034], ecx
mov ecx, dword [ebp - 0x238]
mov dword [edi + 0x1038], eax
lea eax, [ebp - 0x23c]
mov dword [edi + 0x103c], ecx
lea ecx, [edi + 0x1010]
push eax
call fcn.0040741d
lea eax, [ebp - 0x24c]
push eax
lea ecx, [edi + 0x1018]
call fcn.0040741d
lea eax, [ebp - 0x244]
push eax
lea ecx, [edi + 0x1020]
call fcn.0040741d
and dword [edi + 0x1040], 0
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x4035c6
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1000
call fcn.004154f0
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
cmp word [esi], 0
je 0x403747
push esi
call fcn.00403750
push esi
call fcn.0041a063
pop ecx
push esi
mov edi, eax
call fcn.0040377b
test al, al
je 0x40367b
push esi
call fcn.00403750
test al, al
je 0x403635
lea eax, [edi + 4]
cmp dword [ebp + 0x10], eax
jbe 0x403747
push dword [ebp + 0x10]
push 0x4295e8
push dword [ebp + 0xc]
call fcn.004069cc
push dword [ebp + 0x10]
push esi
push dword [ebp + 0xc]
call fcn.004069a4
mov al, 1
jmp 0x403749
push 0x5c
pop eax
cmp word [esi], ax
jne 0x403747
lea ebx, [esi + 2]
cmp word [ebx], ax
jne 0x403747
mov esi, dword [ebp + 0x10]
lea eax, [edi + 6]
cmp esi, eax
jbe 0x403747
push esi
push 0x4295e8
push dword [ebp + 0xc]
call fcn.004069cc
push esi
push 0x4295f4
push dword [ebp + 0xc]
call fcn.004069a4
push esi
push ebx
jmp 0x403626
lea eax, [ebp - 0x1000]
mov ebx, 0x7ff
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x403747
cmp eax, ebx
ja 0x403747
movzx eax, word [esi]
push eax
call fcn.004037b0
test al, al
je 0x4036e6
lea eax, [edi + 6]
mov edi, dword [ebp + 0x10]
cmp edi, eax
jbe 0x403747
push edi
push 0x4295e8
push dword [ebp + 0xc]
call fcn.004069cc
xor eax, eax
mov word [ebp - 0xffc], ax
lea eax, [ebp - 0x1000]
push edi
push eax
push dword [ebp + 0xc]
call fcn.004069a4
push edi
jmp 0x403625
push 0x800
lea eax, [ebp - 0x1000]
push eax
call fcn.004031e2
lea eax, [ebp - 0x1000]
push eax
call fcn.0041a063
add edi, 4
add eax, edi
mov edi, dword [ebp + 0x10]
pop ecx
cmp edi, eax
jbe 0x403747
push edi
push 0x4295e8
push dword [ebp + 0xc]
call fcn.004069cc
push edi
lea eax, [ebp - 0x1000]
push eax
push dword [ebp + 0xc]
call fcn.004069a4
cmp word [esi], 0x2e
jne 0x4036e0
movzx eax, word [esi + 2]
push eax
call fcn.004037b0
test al, al
je 0x4036e0
add esi, 4
jmp 0x4036e0
xor al, al
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x404c35
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 + 0x43af28], cl
inc ecx
cmp ecx, 0x100
jl 0x404c3e
mov al, byte [ebp + str.cw]
mov byte [esp + 0x10], al
push 2
push dword [esp + 0x14]
mov byte [ebp*4 + 0x43bc29], al
mov byte [ebp*4 + 0x43bc28], al
mov byte [ebp*4 + 0x43b82b], al
mov byte [ebp*4 + 0x43b828], al
mov byte [ebp*4 + 0x43b42b], al
mov byte [ebp*4 + 0x43b42a], al
mov byte [ebp*4 + 0x43b02a], al
mov byte [ebp*4 + 0x43b029], al
call fcn.004053ef
push 3
push dword [esp + 0x14]
mov byte [ebp*4 + 0x43bc2b], al
mov byte [ebp*4 + 0x43b82a], al
mov byte [ebp*4 + 0x43b429], al
mov byte [ebp*4 + 0x43b028], al
call fcn.004053ef
mov bl, byte [ebp + 0x43af28]
push 0xb
mov byte [esp + 0x10], bl
push dword [esp + 0x10]
mov byte [ebp*4 + 0x43bc2a], al
mov byte [ebp*4 + 0x43b829], al
mov byte [ebp*4 + 0x43b428], al
mov byte [ebp*4 + 0x43b02b], al
call fcn.004053ef
movzx edi, bl
push 9
push dword [esp + 0x10]
mov byte [ebp*4 + 0x43cc2a], al
mov byte [ebp*4 + 0x43c829], al
mov byte [ebp*4 + 0x43c428], al
mov byte [ebp*4 + 0x43c02b], al
mov byte [edi*4 + 0x43dc2a], al
mov byte [edi*4 + 0x43d829], al
mov byte [edi*4 + 0x43d428], al
mov byte [edi*4 + 0x43d02b], al
call fcn.004053ef
push 0xd
push dword [esp + 0x10]
mov byte [ebp*4 + 0x43cc28], al
mov byte [ebp*4 + 0x43c82b], al
mov byte [ebp*4 + 0x43c42a], al
mov byte [ebp*4 + 0x43c029], al
mov byte [edi*4 + 0x43dc28], al
mov byte [edi*4 + 0x43d82b], al
mov byte [edi*4 + 0x43d42a], al
mov byte [edi*4 + 0x43d029], al
call fcn.004053ef
push 0xe
push dword [esp + 0x10]
mov byte [ebp*4 + 0x43cc29], al
mov byte [ebp*4 + 0x43c828], al
mov byte [ebp*4 + 0x43c42b], al
mov byte [ebp*4 + 0x43c02a], al
mov byte [edi*4 + 0x43dc29], al
mov byte [edi*4 + 0x43d828], al
mov byte [edi*4 + 0x43d42b], al
mov byte [edi*4 + 0x43d02a], al
call fcn.004053ef
mov byte [ebp*4 + 0x43cc2b], al
mov byte [ebp*4 + 0x43c82a], al
mov byte [ebp*4 + 0x43c429], al
mov byte [ebp*4 + 0x43c028], al
inc ebp
mov byte [edi*4 + 0x43dc2b], al
mov byte [edi*4 + 0x43d82a], al
mov byte [edi*4 + 0x43d429], al
mov byte [edi*4 + 0x43d028], al
cmp ebp, 0x100
jl 0x404c54
pop edi
pop ebp
pop ebx
pop ecx
pop ecx
ret
Function at 0x40536a
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
push ecx
cmp dword [esp + 0xc], 0
movups xmm1, xmmword [ecx + 8]
push esi
mov esi, dword [esp + 0xc]
push edi
lea edi, [ecx + 0x18]
jbe 0x4053e5
mov edx, dword [esp + 0x18]
mov eax, esi
add esi, 0x10
cmp byte [ecx + 1], 0
movups xmm0, xmmword [eax]
je 0x405395
pxor xmm0, xmm1
movups xmm1, xmmword [edi]
mov eax, dword [ecx + 4]
pxor xmm1, xmm0
cmp eax, 1
jle 0x4053c7
lea edx, [edi + 0x10]
lea edi, [eax - 1]
mov dword [esp + 8], edi
lea edi, [ecx + 0x18]
sub dword [esp + 8], 1
movups xmm0, xmmword [edx]
lea edx, [edx + 0x10]
aesenc xmm1, xmm0
jne 0x4053b1
mov edx, dword [esp + 0x18]
add eax, eax
movups xmm0, xmmword [edi + eax*8]
mov eax, edx
add edx, 0x10
sub dword [esp + 0x14], 1
aesenclast xmm1, xmm0
mov dword [esp + 0x18], edx
movups xmmword [eax], xmm1
jne 0x405383
pop edi
movups xmmword [ecx + 8], xmm1
pop esi
pop ecx
ret 0xc

Function at 0x405419
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x20
push ebp
push edi
mov ebp, ecx
xor edi, edi
inc edi
mov dword [esp + 0x14], ebp
mov dword [esp + 8], edi
cmp dword [ebp + 4], edi
jle 0x4054c7
push ebx
lea ebx, [ebp + 0x28]
push esi
mov dword [esp + 0x14], ebx
lea eax, [ebx + 2]
xor esi, esi
mov dword [esp + 0x18], eax
lea edi, [esp + 0x20]
mov ebp, eax
push 4
add edi, esi
pop ebx
movzx eax, byte [ebp + 1]
movzx ecx, byte [ebp - 1]
mov dl, byte [esi + eax*4 + 0x43dc28]
movzx eax, byte [ebp - 2]
xor dl, byte [esi + ecx*4 + 0x43d428]
xor dl, byte [esi + eax*4 + 0x43d028]
movzx eax, byte [ebp]
lea ebp, [ebp + 4]
xor dl, byte [esi + eax*4 + 0x43d828]
mov byte [edi], dl
lea edi, [edi + 4]
sub ebx, 1
jne 0x405451
mov eax, dword [esp + 0x18]
inc esi
cmp esi, 4
jl 0x405446
mov ebx, dword [esp + 0x14]
lea eax, [esp + 0x20]
push 0x10
push eax
push ebx
call fcn.00416af0
mov edi, dword [esp + 0x1c]
add esp, 0xc
mov ebp, dword [esp + 0x1c]
inc edi
add ebx, 0x10
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], ebx
cmp edi, dword [ebp + 4]
jl 0x40543d
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x20
ret