joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10022da0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
mov ecx, dword [esi + 4]
call fcn.10010a59
push 0xfffffffffffffff0
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x10022ddc
call fcn.10022fc2
mov dword [esi + 0xc], 1
jmp 0x10022de1
call fcn.10022fc2
cmp dword [esi], 0
je 0x10022e2a
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, dword [ebp + 0x10]
test eax, eax
jle 0x10022e04
lea ecx, [eax + 1]
push ecx
push eax
mov ecx, esi
call fcn.1000bbad
jmp 0x10022e15
push 0xff
mov ecx, esi
call fcn.10005f4f
push 0x100
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0xffffffffffffffff
mov ecx, esi
call fcn.10006f61
jmp 0x10022e4e
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
jne 0x10022e4e
push dword [esi]
push dword [ebp - 4]
call fcn.10010fde
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x10022f17
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, esi
push edi
push dword [ebp + 0xc]
call fcn.10022fc2
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x10022f5f
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.1000bbad
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.10006f61
jmp 0x10022f6a
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.10010fde
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x10034458
Capabilities:
Get common file path

Disassembly:
push esi
mov esi, ecx
call fcn.10083011
call fcn.10008d8e
cmp dword [eax + 0x14], 0
jne 0x10034473
mov ecx, esi
pop esi
jmp fcn.1003379c
pop esi
ret

Function at 0x1003531c
Capabilities:
Get common file path
Get file system object information

Disassembly:
push esi
mov esi, ecx
call fcn.100d7923
call fcn.10008d8e
cmp dword [eax + 0x14], 0
jne 0x10035337
mov ecx, esi
pop esi
jmp fcn.10034b9a
pop esi
ret
Function at 0x10043b97
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 8], ecx
test esi, esi
jne 0x10043bb0
call fcn.10008d3a
mov esi, dword [eax + 0xc]
push 0x10174d44
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x10043c06
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x10043c05
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
test eax, eax
jne 0x10043be6
xor esi, esi
jmp 0x10043bfc
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 8]
push eax
push dword [ebp - 4]
call fcn.10043c0e
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x10153b10
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.101537d0
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
jmp 0x446d5d
push 0x14
push 0x52f088
call fcn.00446ec0
push 1
call fcn.00446915
pop ecx
test al, al
je 0x446d47
xor bl, bl
mov byte [ebp - 0x19], bl
and dword [ebp - 4], 0
call fcn.004468e3
mov byte [ebp - 0x24], al
mov eax, dword [0x531c74]
xor ecx, ecx
inc ecx
cmp eax, ecx
je 0x446d47
test eax, eax
jne 0x446c6b
mov dword [0x531c74], ecx
push 0x45a2c8
push 0x45a2b0
call fcn.0044d6b9
pop ecx
pop ecx
test eax, eax
je 0x446c4e
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x446d37
push 0x45a2ac
push 0x45a260
call fcn.0044d65d
pop ecx
pop ecx
mov dword [0x531c74], 2
jmp 0x446c70
mov bl, cl
mov byte [ebp - 0x19], bl
push dword [ebp - 0x24]
call fcn.00446a87
pop ecx
call fcn.004473a4
mov esi, eax
xor edi, edi
cmp dword [esi], edi
je 0x446ca1
push esi
call fcn.004469f3
pop ecx
test al, al
je 0x446ca1
mov esi, dword [esi]
push edi
push 2
push edi
mov ecx, esi
call dword [0x45a25c]
call esi
call fcn.004473aa
mov esi, eax
cmp dword [esi], edi
je 0x446cbf
push esi
call fcn.004469f3
pop ecx
test al, al
je 0x446cbf
push dword [esi]
call fcn.0044cb1c
pop ecx
call fcn.004471dc
movzx eax, ax
push eax
call fcn.0044d60a
push eax
push edi
push 0x400000
call main
mov esi, eax
call fcn.00447212
test al, al
je 0x446d4e
test bl, bl
jne 0x446ced
call fcn.0044caf7
push edi
push 1
call fcn.00446aa4
pop ecx
pop ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
jmp 0x446d37
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret
push 7
call fcn.004470c2
push esi
call fcn.0044cb54
push dword [ebp - 0x20]
call fcn.0044cb06
int3
call fcn.004472f7
jmp 0x446be1
Function at 0x401e90
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, edx
shr edi, 2
xor edx, edx
mov eax, edi
mov dword [ebp - 4], 1
shr eax, 1
add eax, 3
mov dword [ecx], eax
add ecx, 0x10
test edi, edi
je 0x401ec5
mov eax, dword [esi]
lea esi, [esi + 4]
mov dword [ecx + edx*4], eax
inc edx
cmp edx, edi
jb 0x401eb8
mov ebx, dword [ecx + edi*4 - 4]
lea eax, [edi + 0xe]
lea eax, [edi + eax*2]
lea esi, [ecx + eax*4]
mov dword [ebp + 8], esi
xor esi, esi
mov eax, dword [ebp + 8]
nop word [eax + eax]
test esi, esi
jne 0x401f41
movzx eax, bl
mov esi, dword [ebp - 4]
movzx edx, byte [eax + str.cw]
mov eax, ebx
shr eax, 0x18
shl edx, 8
movzx eax, byte [eax + str.cw]
or edx, eax
mov eax, ebx
shr eax, 0x10
movzx eax, al
shr ebx, 8
shl edx, 8
movzx eax, byte [eax + str.cw]
or edx, eax
movzx eax, bl
shl edx, 8
movzx ebx, byte [eax + str.cw]
mov eax, 0x1b
xor ebx, esi
add esi, esi
or ebx, edx
test esi, 0x100
cmovne esi, eax
mov dword [ebp - 4], esi
mov esi, edi
jmp 0x401f8e
cmp esi, 4
jne 0x401f91
cmp edi, 6
jbe 0x401f91
mov eax, ebx
shr eax, 0x10
movzx eax, al
movzx edx, byte [eax + str.cw]
mov eax, ebx
shr eax, 0x18
movzx eax, byte [eax + str.cw]
shl eax, 8
or edx, eax
mov eax, ebx
shr eax, 8
movzx eax, al
shl edx, 8
movzx eax, byte [eax + str.cw]
or edx, eax
movzx eax, bl
shl edx, 8
movzx ebx, byte [eax + str.cw]
or ebx, edx
mov eax, dword [ebp + 8]
xor ebx, dword [ecx]
dec esi
mov dword [ecx + edi*4], ebx
add ecx, 4
cmp ecx, eax
jne 0x401ee0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x403000
Capabilities:
Check os version
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2d4
mov eax, dword [0x531014]
xor eax, ebp
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp ax, 6
je 0x403049
push str.SetDefaultDllDirectories
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x403049
push 0xc00
call eax
test eax, eax
jne 0x4030e8
push 0x106
lea eax, [ebp - 0x2d4]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x4030e8
cmp eax, 0x104
ja 0x4030e8
cmp word [ebp + eax*2 - 0x2d6], 0x5c
je 0x403083
mov ecx, 0x5c
mov word [ebp + eax*2 - 0x2d4], cx
inc eax
mov cl, byte [str.userenv]
push esi
mov esi, str.userenv
test cl, cl
je 0x4030e7
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push edi
lea edi, [ebp - 0x2d4]
lea edi, [edi + eax*2]
inc esi
mov eax, edi
test cl, cl
je 0x4030c0
nop dword [eax + eax]
movzx ecx, cl
mov word [eax], cx
add eax, 2
mov cl, byte [esi]
inc esi
test cl, cl
jne 0x4030b0
xor ecx, ecx
mov dword [eax], 0x64002e
push 8
mov dword [eax + 4], 0x6c006c
mov word [eax + 8], cx
lea eax, [ebp - 0x2d4]
push ecx
push eax
call ebx
mov cl, byte [esi]
test cl, cl
jne 0x4030a4
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00446487
mov esp, ebp
pop ebp
ret
Function at 0x407c70
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebx
push esi
mov esi, ecx
mov ecx, 0x20
push edi
mov eax, dword [esi + 4]
cmp eax, ecx
mov dword [esi + 0x78], 0
cmova eax, ecx
mov dword [esi + 0x7c], 0
mov dword [esi + 0x54], eax
mov eax, dword [esi]
mov dword [esi + 0x30], 1
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 0
mov dword [esi + 0x40], 0
mov dword [esi + 0x44], 1
mov dword [esi + 0x70], 0
mov dword [esi + 0x88], 0
mov dword [esi + 0x90], 0xffffffff
mov dword [esi + 0x94], 0xffffffff
mov dword [esi + 0x68], 0
mov dword [esi + 0x6c], 0
mov dword [esi + 0x48], 0
mov dword [esi + 0x4c], 0
mov dword [esi + 0x50], 0
mov dword [esi + 0x60], 0
mov dword [esi + 0x64], 0
mov dword [esi + 0x80], 0
mov dword [esi + 0x84], 0
mov dword [esi + 0x58], 0
cmp eax, dword [esi + 0x20]
je 0x407d6e
lea edi, [esi + 0xc8]
mov ebx, ecx
nop dword [eax]
cmp dword [edi + 8], 0
je 0x407d4d
mov ecx, edi
call fcn.00406c50
add edi, 0x28
sub ebx, 1
jne 0x407d40
mov ecx, dword [esi + 0x5c]
test ecx, ecx
je 0x407d69
mov eax, dword [esi + 0x14]
push ecx
push eax
mov eax, dword [eax + 4]
call eax
mov dword [esi + 0x5c], ebx
mov eax, dword [esi]
mov dword [esi + 0x20], eax
mov edx, dword [esi + 0x10]
lea ecx, [esi + 0x98]
call fcn.00406b10
mov ecx, dword [esi + 0x58]
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
lea eax, [ecx + 5]
lea eax, [eax + eax*4]
lea ebx, [esi + eax*8]
lea eax, [ecx + 1]
mov ecx, ebx
mov dword [esi + 0x58], eax
call fcn.00406bf0
mov edi, eax
test edi, edi
jne 0x407de1
lea ecx, [ebx + 0x20]
call fcn.004084b0
mov edi, eax
test edi, edi
jne 0x407de1
lea ecx, [ebx + 0x1c]
call fcn.004084b0
mov edi, eax
test edi, edi
jne 0x407de1
push ebx
call fcn.00407980
mov edi, eax
test edi, edi
je 0x407df3
mov ecx, esi
mov dword [esi + 0x44], 0
call fcn.00406cc0
test edi, edi
jle 0x407dec
movzx edi, di
or edi, 0x80070000
test edi, edi
je 0x407df3
mov dword [esi + 0x40], edi
cmp dword [esi + 0x38], 0
jne 0x407e0c
cmp dword [esi + 0x40], 0
jne 0x407e0c
cmp dword [esi + 0x3c], 0
jne 0x407e0c
mov dword [esi + 0x44], 0
xor eax, eax
cmp dword [esi + 0x44], eax
cmovne edi, eax
mov eax, edi
pop edi
pop esi
pop ebx
ret

Function at 0x407e20
Capabilities:
Hash data using sha256

Disassembly:
mov dword [ecx + 8], 0
mov dword [ecx + 0xc], 0
mov dword [ecx + 0x20], 0x6a09e667
mov dword [ecx + 0x24], 0xbb67ae85
mov dword [ecx + 0x28], 0x3c6ef372
mov dword [ecx + 0x2c], 0xa54ff53a
mov dword [ecx + 0x30], 0x510e527f
mov dword [ecx + 0x34], 0x9b05688c
mov dword [ecx + 0x38], 0x1f83d9ab
mov dword [ecx + 0x3c], 0x5be0cd19
ret

Function at 0x407e70
Capabilities:
Hash data using sha256

Disassembly:
mov dword [ecx], 0x407e80
jmp fcn.00407e20

Function at 0x408450
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
mov esi, ecx
push eax
push 0
push dword [ebp + 8]
push edx
push 0
push 0
call fcn.0044aec6
add esp, 0x18
mov dword [esi], eax
mov ecx, eax
call fcn.004083d0
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x40ae80
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x532359], 0
push esi
mov esi, edx
jne 0x40aeb6
mov edx, ecx
lea ecx, [ebp - 0xc]
call fcn.004099d0
push esi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.00446498
add esp, 4
test esi, esi
jmp 0x40aec0
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x40aec9
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret
xor al, al
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x40aed0
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x532359], 0
jne 0x40af04
mov edx, ecx
lea ecx, [ebp - 0xc]
push esi
call fcn.004099d0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.00446498
add esp, 4
test esi, esi
pop esi
jmp 0x40af0d
push ecx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x40af15
mov al, 1
mov esp, ebp
pop ebp
ret
xor al, al
mov esp, ebp
pop ebp
ret

Function at 0x40af20
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x532359], 0
jne 0x40af56
mov edx, ecx
lea ecx, [ebp - 0xc]
push esi
call fcn.004099d0
push 0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.00446498
add esp, 4
test esi, esi
pop esi
jmp 0x40af61
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x40af69
mov al, 1
mov esp, ebp
pop ebp
ret
xor al, al
mov esp, ebp
pop ebp
ret

Function at 0x40af80
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x457ab8
mov eax, dword fs:[0]
push eax
sub esp, 0x44
push ebx
push esi
push edi
mov eax, dword [0x531014]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
cmp byte [0x532359], 0
jne 0x40afec
mov edx, edi
lea ecx, [ebp - 0x18]
call fcn.004099d0
push 0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push dword [ebp - 0x18]
mov esi, eax
call fcn.00446498
add esp, 4
test esi, esi
je 0x40b00d
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x40b00d
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x40b02e
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x50]
call fcn.0040bb70
lea ecx, [ebp - 0x28]
call fcn.00409180
push 0
push edi
lea ecx, [ebp - 0x50]
mov dword [ebp - 4], 0
call fcn.0040c070
test al, al
jne 0x40b058
xor bl, bl
jmp 0x40b061
mov ebx, dword [ebp - 0x30]
shr ebx, 4
and bl, 1
push dword [ebp - 0x28]
call fcn.00446498
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40b240
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, ecx
call fcn.0040c020
cmp eax, 0xffffffff
je 0x40b26d
mov edx, eax
and dl, 0x11
cmp dl, 1
jne 0x40b26d
and eax, 0xfffffffe
mov ecx, esi
mov edx, eax
call fcn.0040ae80
test al, al
je 0x40b2ab
cmp byte [0x532359], 0
jne 0x40b299
mov edx, esi
lea ecx, [ebp - 0xc]
call fcn.004099d0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.00446498
add esp, 4
test esi, esi
jmp 0x40b2a2
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x40b2ab
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret
xor al, al
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x40b530
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x532359], 0
jne 0x40b569
mov edx, ecx
lea ecx, [ebp - 0xc]
push esi
call fcn.004099d0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.00446498
add esp, 4
test esi, esi
setne al
pop esi
mov esp, ebp
pop ebp
ret
push ecx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
setne al
mov esp, ebp
pop ebp
ret

Function at 0x40b580
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x457b76
mov eax, dword fs:[0]
push eax
sub esp, 0x354
mov eax, dword [0x531014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi]
xor ecx, ecx
mov dword [edi + 4], 0
mov word [eax], cx
cmp byte [0x532359], cl
jne 0x40b62a
lea eax, [ebp - 0x128]
mov byte [ebp - 0x128], cl
push eax
push 0x114
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x40b6d9
cmp eax, 0x114
jae 0x40b6d9
lea edx, [ebp - 0x128]
mov byte [ebp - 0x14], 0
lea ecx, [ebp - 0x360]
call fcn.00409a40
mov dword [ebp - 4], 0
push eax
mov ecx, edi
call fcn.00409360
push dword [ebp - 0x360]
call fcn.00446498
add esp, 4
mov al, 1
jmp 0x40b6db
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
xor eax, eax
mov word [ebp - 0x354], ax
lea eax, [ebp - 0x354]
push eax
push 0x114
call ebx
mov esi, eax
test esi, esi
je 0x40b6d9
cmp esi, 0x114
jae 0x40b674
xor eax, eax
mov ecx, edi
mov word [ebp - 0x12c], ax
lea eax, [ebp - 0x354]
push eax
call fcn.004092f0
mov al, 1
jmp 0x40b6db
lea ecx, [ebp - 0x360]
call fcn.00409180
mov dword [ebp - 4], 1
cmp esi, dword [ebp - 0x358]
jbe 0x40b69a
push esi
lea ecx, [ebp - 0x360]
call fcn.00408f10
push dword [ebp - 0x360]
push esi
call ebx
mov ebx, eax
test ebx, ebx
je 0x40b6cb
push esi
lea ecx, [ebp - 0x360]
call fcn.0040adf0
cmp dword [ebp - 0x35c], ebx
jne 0x40b6cb
lea eax, [esi - 1]
cmp eax, ebx
jne 0x40b6cb
mov eax, ecx
jmp 0x40b60d
push dword [ebp - 0x360]
call fcn.00446498
add esp, 4
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00446487
mov esp, ebp
pop ebp
ret
Function at 0x40b750
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x457bab
mov eax, dword fs:[0]
push eax
sub esp, 0x354
mov eax, dword [0x531014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
cmp byte [0x532359], 0
jne 0x40b7da
lea eax, [ebp - 0x128]
mov byte [ebp - 0x128], 0
push eax
push 0x114
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea edx, [ebp - 0x128]
mov esi, eax
lea ecx, [ebp - 0x360]
call fcn.00409a40
push eax
mov ecx, edi
mov dword [ebp - 4], 0
call fcn.00409360
mov dword [ebp - 4], 0xffffffff
push dword [ebp - 0x360]
call fcn.00446498
add esp, 4
jmp 0x40b805
xor eax, eax
mov word [ebp - 0x354], ax
lea eax, [ebp - 0x354]
push eax
push 0x114
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov esi, eax
mov ecx, edi
lea eax, [ebp - 0x354]
push eax
call fcn.004092f0
mov ecx, edi
call fcn.0040cd70
test esi, esi
je 0x40b81c
cmp esi, 0x114
jae 0x40b81c
mov al, 1
jmp 0x40b81e
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00446487
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x532359], 0
jne 0x40c056
mov edx, ecx
lea ecx, [ebp - 0xc]
push esi
call fcn.004099d0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.00446498
add esp, 4
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
or ecx, 0xffffffff
cmp eax, 0xffffffff
cmovne ecx, eax
mov eax, ecx
mov esp, ebp
pop ebp
ret

Function at 0x40c850
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40c882
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x40c882
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp + 8]
xor ecx, ecx
mov edx, dword [ebp - 4]
add ecx, esi
pop esi
adc edx, 0
mov dword [eax], ecx
mov dword [eax + 4], edx
mov al, 1
mov esp, ebp
pop ebp
ret 4
Function at 0x412730
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, ecx
mov ecx, ebx
call fcn.0040d640
mov esi, dword [edi + 0xf0]
test esi, esi
je 0x4128a3
cmp dword [edi + 0xe8], 0
je 0x4128a3
mov eax, dword [ebp + 8]
mov ecx, dword [esi + eax*4]
mov esi, dword [esi + eax*4 + 4]
sub esi, ecx
mov dword [ebp + 0xc], ecx
cmp esi, 0x4000
jae 0x4128a3
lea edx, [esi - 1]
mov ecx, ebx
call fcn.0040d460
test eax, eax
jne 0x4128a5
mov eax, dword [edi + 0xe8]
xor edi, edi
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebx + 8]
lea ecx, [eax + ecx*2]
test esi, esi
je 0x4128a3
cmp esi, 0x10
jb 0x412872
lea eax, [ecx - 2]
lea eax, [eax + esi*2]
lea ebx, [edx - 2]
lea ebx, [ebx + esi*2]
cmp edx, eax
ja 0x4127c4
cmp ebx, ecx
jae 0x412872
movaps xmm5, xmmword [str._________]
mov eax, esi
movaps xmm6, xmmword [0x52c5b0]
and eax, 0xfffffff0
movaps xmm4, xmmword [0x52c590]
movaps xmm7, xmmword [0x52c5a0]
movups xmm0, xmmword [ecx]
add edi, 0x10
movaps xmm3, xmm5
pcmpeqw xmm3, xmm0
movaps xmm2, xmm3
pandn xmm2, xmm0
movaps xmm0, xmm3
pand xmm0, xmm4
pxor xmm3, xmm6
por xmm2, xmm0
movaps xmm1, xmm2
pcmpeqw xmm1, xmm4
pand xmm1, xmm3
movaps xmm3, xmm5
movaps xmm0, xmm1
pand xmm1, xmm7
pandn xmm0, xmm2
por xmm0, xmm1
movups xmmword [edx], xmm0
movups xmm0, xmmword [ecx + 0x10]
add ecx, 0x20
pcmpeqw xmm3, xmm0
movaps xmm2, xmm3
pandn xmm2, xmm0
movaps xmm0, xmm3
pand xmm0, xmm4
pxor xmm3, xmm6
por xmm2, xmm0
movaps xmm1, xmm2
pcmpeqw xmm1, xmm4
pand xmm1, xmm3
movaps xmm0, xmm1
pand xmm1, xmm7
pandn xmm0, xmm2
por xmm0, xmm1
movups xmmword [edx + 0x10], xmm0
add edx, 0x20
cmp edi, eax
jb 0x4127e5
cmp edi, esi
jae 0x4128a3
sub esi, edi
mov edi, 0xf05c
nop dword [eax]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
cmp eax, 0x2f
jne 0x412892
mov eax, 0x5c
jmp 0x412898
cmp eax, 0x5c
cmove eax, edi
mov word [edx], ax
add edx, 2
sub esi, 1
jne 0x412880
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x41dd40
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x458a87
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x531014]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi + 0x10], 0
mov dword [esi], 0x52bcfc
mov dword [esi + 4], 0x52bd10
mov dword [esi + 8], 0x52bd34
mov dword [esi + 0xc], 0x52bce8
mov byte [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [ebp - 4], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov byte [ebp - 4], 2
lea ecx, [esi + 0x44]
mov dword [esi + 0x3c], 0
mov dword [esi + 0x40], 0
call fcn.00409180
lea ecx, [esi + 0x50]
mov byte [ebp - 4], 3
call fcn.00409180
lea ecx, [esi + 0x60]
mov byte [ebp - 4], 4
mov dword [ebp - 0x14], ecx
call fcn.0040bb70
add ecx, 0x28
call fcn.00409180
lea ecx, [esi + 0x98]
call fcn.0041cc80
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x41df70
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x458b3b
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x531014]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [edi], 0
mov dword [ebp - 4], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov byte [ebp - 4], 3
lea ecx, [edi + 0x18]
mov dword [edi + 0x11], 0
mov word [edi + 0x15], 0
mov byte [edi + 0x17], 0
call fcn.00409180
lea ecx, [edi + 0x24]
mov byte [ebp - 4], 4
call fcn.00409180
lea ecx, [edi + 0x30]
mov byte [ebp - 4], 5
call fcn.00409180
mov byte [ebp - 4], 6
lea esi, [edi + 0x78]
xor eax, eax
mov dword [edi + 0x44], 0
mov dword [edi + 0x48], 0
lea ecx, [esi + 0x18]
mov dword [edi + 0x4c], eax
mov dword [ebp - 0x14], esi
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], 0xffffffff
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
call fcn.00409180
lea ecx, [esi + 0x24]
mov byte [ebp - 4], 7
call fcn.00409180
lea esi, [edi + 0xa8]
mov byte [ebp - 4], 8
mov dword [ebp - 0x14], esi
lea ecx, [esi + 0x18]
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0xffffffff
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
call fcn.00409180
lea ecx, [esi + 0x24]
mov byte [ebp - 4], 9
call fcn.00409180
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret