joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403838
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40387a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, 0xb7
cmp eax, esi
je 0x403865
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x40387d
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40387a
test al, 0x10
jne 0x40387a
push esi
jmp 0x40385b
xor eax, eax
inc eax
pop esi
pop ebp
ret

Function at 0x40417f
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
mov dword [ebp - 8], eax
push ebx
lea eax, [ebp - 0x1c]
push eax
call fcn.00401784
push 0
lea eax, [ebp - 0x1c]
call fcn.00403465
mov edi, eax
movzx eax, word [ebx + esi*2 - 2]
cmp eax, 0x5c
je 0x4041bc
cmp eax, 0x2f
jne 0x4041ea
xor eax, eax
mov word [edi + esi*2 - 2], ax
dec esi
mov dword [ebp - 8], esi
jmp 0x4041ea
movzx eax, word [edi + esi*2]
cmp eax, 0x2f
je 0x4041dc
cmp eax, 0x5c
je 0x4041dc
dec esi
test esi, esi
jg 0x4041c9
test esi, esi
je 0x40428d
xor eax, eax
mov word [edi + esi*2], ax
push edi
call fcn.00403838
pop ecx
test eax, eax
je 0x4041d8
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
jne 0x404221
lea eax, [ebp - 0x10]
push eax
mov eax, edi
call fcn.004037ca
pop ecx
test eax, eax
je 0x404221
xor esi, esi
jmp 0x4042b0
push edi
call fcn.00403838
pop ecx
test eax, eax
jne 0x40427b
push edi
push 0xc
push 1
call fcn.00409e54
add esp, 0xc
jmp 0x40421a
mov eax, dword [ebp - 8]
sub eax, esi
inc eax
push eax
mov eax, dword [ebp + 8]
lea eax, [eax + esi*2]
push eax
lea ebx, [edi + esi*2]
push ebx
call fcn.0041d510
xor ecx, ecx
add esp, 0xc
cmp word [ebx], cx
je 0x40426d
jmp 0x40426c
movzx eax, word [edi + esi*2]
cmp eax, 0x5c
je 0x404273
cmp eax, 0x2f
je 0x404273
inc esi
cmp word [edi + esi*2], cx
jne 0x40425e
xor eax, eax
mov word [edi + esi*2], ax
jmp 0x404221
cmp esi, dword [ebp - 8]
jl 0x40423b
lea eax, [ebp - 0x1c]
call fcn.0040177f
xor eax, eax
inc eax
jmp 0x4042d3
cmp dword [ebp - 8], 2
jne 0x4042bc
mov ax, word [ebx]
or ax, 0x20
cmp ax, 0x61
jb 0x4042bc
cmp ax, 0x7a
ja 0x4042bc
cmp word [ebx + 2], 0x3a
jne 0x4042bc
xor esi, esi
inc esi
lea eax, [ebp - 0x1c]
call fcn.0040177f
mov eax, esi
jmp 0x4042d3
push ebx
push 0xc
push 1
call fcn.00409e54
add esp, 0xc
lea eax, [ebp - 0x1c]
call fcn.0040177f
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4042d8
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set current directory
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x268
push ebx
push esi
push edi
push dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call fcn.00401784
push 0x427af8
lea esi, [ebp - 0x10]
call fcn.00412695
lea eax, [ebp - 0x264]
push eax
mov eax, esi
call fcn.0040bba5
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov dword [ebp - 0x14], eax
cmp eax, 0xffffffff
je 0x4043c7
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpW]
push dword [ebp + 8]
lea eax, [ebp - 0x10]
call fcn.0040100c
push 0x5c
lea esi, [ebp - 0x10]
call fcn.00401cb6
lea eax, [ebp - 0x238]
push eax
call fcn.00412695
test byte [ebp - 0x264], 0x10
je 0x404388
push 0x427b00
lea eax, [ebp - 0x238]
push eax
call ebx
test eax, eax
je 0x4043a6
push 0x427b04
lea eax, [ebp - 0x238]
push eax
call ebx
test eax, eax
je 0x4043a6
mov eax, esi
call fcn.0040bba5
push eax
call fcn.004042d8
pop ecx
jmp 0x4043a2
lea eax, [ebp - 0x10]
call fcn.0040bba5
mov esi, eax
push 0
push esi
call edi
test eax, eax
je 0x4043fd
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x4043fd
lea eax, [ebp - 0x264]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40432a
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, 0x4302f8
call fcn.0040bba5
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push 0
push dword [ebp + 8]
call edi
test eax, eax
je 0x4043fd
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x4043fd
lea eax, [ebp - 0x10]
call fcn.0040177f
xor eax, eax
inc eax
jmp 0x404407
lea eax, [ebp - 0x10]
call fcn.0040177f
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40440c
Capabilities:
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x250
cmp dword [0x4302c8], 0
je 0x404426
xor eax, eax
inc eax
jmp 0x404464
lea eax, [esp]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x404421
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
test byte [esp], 0x10
jne 0x40445d
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x404459
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x404464
xor eax, eax
jmp 0x404464
push esi
call fcn.004042d8
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x404e17
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
push edi
push 1
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call esi
mov edi, eax
mov eax, ebx
call fcn.00401000
lea eax, [edi + 2]
mov dword [ebp - 4], eax
push eax
mov eax, ebx
call fcn.00403465
inc edi
push edi
push dword [ebp - 4]
mov eax, ebx
call fcn.00403465
push eax
push dword [ebp + 8]
call esi
push ebx
call fcn.00403447
pop edi
mov eax, ebx
pop esi
leave
ret

Function at 0x404e64
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
movzx ecx, word [0x430280]
mov esi, dword [sym.imp.KERNEL32.dll_FindResourceExA]
push ecx
push dword [ebp + 0xc]
mov dword [ebp - 4], eax
push dword [ebp + 8]
push eax
call esi
mov edi, eax
mov ebx, 0x409
test edi, edi
jne 0x404eac
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call esi
mov edi, eax
test edi, edi
je 0x404ed6
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x404ebf
push edi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [esi], eax
push edi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x404ed6
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
jmp 0x404f40
cmp dword [0x430444], 0
jne 0x404f3e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.SetProcessPreferredUILanguages
push dword [0x42dee8]
mov dword [0x430444], 1
call esi
push 0
mov edi, eax
movzx eax, word [0x430280]
push ebx
push 0
push eax
lea eax, [ebp - 0x44]
push str._04X_c_04X_c
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x18
test edi, edi
jne 0x404f34
push str.SetThreadPreferredUILanguages
push dword [0x42dee8]
call esi
mov edi, eax
test edi, edi
je 0x404f3e
push 0
lea eax, [ebp - 0x44]
push eax
push 4
call edi
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x405235
Capabilities:
Get geographical location
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa4
push ebx
push esi
xor ebx, ebx
xor esi, esi
cmp dword [0x42cdd0], ebx
je 0x405268
mov eax, 0x42cdd0
mov ecx, dword [ebp + 8]
cmp dword [eax], ecx
je 0x405268
inc esi
mov eax, esi
shl eax, 4
lea eax, [eax + 0x42cdd0]
cmp dword [eax], ebx
jne 0x405251
shl esi, 4
cmp dword [esi + 0x42cdd0], ebx
jne 0x40527d
mov eax, 0x427944
jmp 0x4053ef
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
push dword [ebp + 8]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x64]
push str.SfxString_d
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push ebx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea eax, [ebp - 0x64]
push eax
call ebx
mov dword [ebp - 4], eax
call edi
test eax, eax
jne 0x40532d
mov eax, dword [ebp - 4]
xor ecx, ecx
push 2
add eax, 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041d28e
pop ecx
mov ecx, dword [ebp - 4]
inc ecx
push ecx
push eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0x64]
push eax
call ebx
cmp eax, dword [ebp - 4]
ja 0x405324
call edi
test eax, eax
jne 0x405324
mov eax, dword [esi + 0x42cddc]
test eax, eax
je 0x405319
mov edi, dword [ebp - 8]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x405316
push dword [esi + 0x42cddc]
call fcn.0041bce0
mov dword [esi + 0x42cddc], edi
jmp 0x40532c
push edi
jmp 0x405327
mov eax, dword [ebp - 8]
mov dword [esi + 0x42cddc], eax
jmp 0x40532d
push dword [ebp - 8]
call fcn.0041bce0
pop ecx
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esi + 0x42cddc]
test eax, eax
jne 0x4053ee
mov ebx, dword [esi + 0x42cdd4]
cmp dword [esi + 0x42cdd8], eax
je 0x405364
call fcn.004051db
cmp eax, 0x419
jne 0x405364
mov ebx, dword [esi + 0x42cdd8]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea edi, [eax + 1]
xor ecx, ecx
push 2
pop edx
lea eax, [edi + 2]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041d28e
cmp dword [0x42d0d8], 0xffffffff
pop ecx
mov dword [esi + 0x42cddc], eax
jne 0x4053ce
and dword [0x42d0d8], 0
push 0x1f
lea eax, [ebp - 0xa4]
push eax
movzx eax, word [0x430280]
push 0x1004
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jle 0x4053ce
lea eax, [ebp - 0xa4]
push eax
call fcn.0041d472
pop ecx
mov dword [0x42d0d8], eax
lea eax, [edi + 1]
push eax
push dword [esi + 0x42cddc]
push edi
push ebx
push 0
push dword [0x42d0d8]
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [esi + 0x42cddc]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4054a7
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
lea eax, [ebp - 4]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], ebx
mov word [ebp - 0xc], 0x500
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x4054fa
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [ebp - 8]
pop ebx
leave
ret

Function at 0x405b94
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x274
push ebx
push esi
push edi
push str.kernel32
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [0x42dee8], eax
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
call fcn.0040a531
call fcn.004051db
push 3
call fcn.00405235
pop ecx
push 0x28
mov dword [0x42df10], eax
call fcn.00405235
pop ecx
push 2
mov dword [0x42df0c], eax
call fcn.00405235
pop ecx
push 5
mov dword [0x42df08], eax
call fcn.00405235
pop ecx
push 0x15
mov dword [0x42df04], eax
call fcn.00405235
pop ecx
push 0x16
mov dword [0x42df00], eax
call fcn.00405235
pop ecx
push 0x17
mov dword [0x42defc], eax
call fcn.00405235
xor ebx, ebx
pop ecx
mov dword [0x42def8], eax
mov dword [0x42def0], ebx
mov dword [0x42def4], ebx
xor edi, edi
push ebx
push edi
lea eax, [ebp - 0x270]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x405c8f
push edi
lea eax, [ebp - 0x60]
push str.SfxFolder_02d
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push 1
lea eax, [ebp - 0x270]
push eax
lea eax, [ebp - 0x60]
push eax
call fcn.00403543
add esp, 0xc
xor esi, esi
cmp dword [esi + 0x42cda8], edi
jne 0x405c87
push ebx
lea eax, [ebp - 0x270]
push eax
push dword [esi + 0x42cdac]
call fcn.00403543
add esp, 0xc
add esi, 8
cmp esi, 0x28
jb 0x405c69
inc edi
cmp edi, 0x40
jl 0x405c2b
pop edi
pop esi
pop ebx
leave
ret

Function at 0x405cd4
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, 0x4303f4
push edi
mov eax, esi
xor edi, edi
call fcn.00414fb8
test eax, eax
jle 0x405d3f
push ebx
mov ecx, edi
mov eax, esi
call fcn.00410791
lea ebx, [eax + 0xc]
lea eax, [ebp - 0xc]
push eax
call fcn.004025fb
lea eax, [ebp - 0xc]
call fcn.00405cbc
lea eax, [ebp - 0xc]
call fcn.0040bba5
push eax
mov ecx, edi
mov eax, esi
call fcn.00410791
call fcn.0040bba5
push eax
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
lea eax, [ebp - 0xc]
call fcn.0040177f
mov eax, esi
inc edi
call fcn.00414fb8
cmp edi, eax
jl 0x405cef
pop ebx
pop edi
pop esi
leave
ret
Function at 0x407564
Capabilities:
Create process on windows
Get disk information
Self delete
Set file attributes
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
push esi
push edi
lea eax, [ebp + 8]
call fcn.0040bba5
cmp word [eax + 2], 0x3a
jne 0x4076e7
movzx ecx, word [eax + 4]
cmp ecx, 0x5c
je 0x407592
cmp ecx, 0x2f
jne 0x4076e7
mov ax, word [eax]
push 0x3a
mov word [ebp - 0x18], ax
pop eax
mov word [ebp - 0x16], ax
push 0x5c
pop eax
mov word [ebp - 0x14], ax
xor eax, eax
mov word [ebp - 0x12], ax
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x4076e7
push str.7ZSfx_03x.cmd
lea esi, [ebp - 0x30]
call fcn.004035ba
pop ecx
mov eax, esi
call fcn.0040bba5
mov dword [ebp - 8], eax
xor eax, eax
push eax
push 0x80
push 2
push eax
push eax
push 0x40000000
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0xc], eax
cmp eax, 0xffffffff
je 0x4076df
lea eax, [ebp - 0x24]
call fcn.00401000
push str.:Repeat_r_n
lea eax, [ebp - 0x24]
call fcn.0040100c
push str.del__
lea esi, [ebp - 0x24]
call fcn.00412695
lea edi, [ebp + 8]
call fcn.004126cc
mov ebx, 0x42900c
push ebx
call fcn.00412695
push str.if_exist__
call fcn.00412695
call fcn.004126cc
push str.__goto_Repeat_r_n
call fcn.00412695
push str.del__
call fcn.00412695
lea edi, [ebp - 0x30]
call fcn.004126cc
push ebx
call fcn.00412695
mov eax, esi
call fcn.0040ba95
mov edi, eax
push 0
lea eax, [ebp - 0x10]
push eax
push edi
push 1
lea ebx, [ebp - 0x3c]
call fcn.00403748
pop ecx
call fcn.004033c5
push eax
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov esi, eax
mov eax, ebx
call fcn.0040177f
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebx, ebx
cmp esi, ebx
je 0x4076cf
cmp dword [ebp - 0x10], edi
jne 0x4076cf
push ebx
lea eax, [ebp + 8]
call fcn.0040bba5
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push ebx
push ebx
push ebx
push dword [ebp - 8]
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
jmp 0x4076d7
mov esi, dword [ebp - 8]
call fcn.0040440c
lea eax, [ebp - 0x24]
call fcn.0040177f
lea eax, [ebp - 0x30]
call fcn.0040177f
lea eax, [ebp + 8]
call fcn.0040177f
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4077b5
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
xor eax, eax
push eax
push dword [ebp + 0xc]
push 0x41342c
push eax
push eax
call fcn.0041e196
mov ecx, dword [ebp + 8]
push eax
mov dword [ecx], eax
call fcn.00407777
add esp, 0x1c
leave
ret

Function at 0x40784f
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.0040783b
Function at 0x407b28
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
push edi
mov eax, 0x4302f8
call fcn.0040bba5
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov edi, dword [ebp + 8]
add edi, 4
mov ecx, edi
call fcn.004059b8
test al, al
jne 0x407b69
push edi
call fcn.00407cfa
pop ecx
test al, al
je 0x407b69
push esi
mov eax, edi
call fcn.0040bba5
mov esi, eax
call fcn.0040440c
pop esi
mov eax, edi
call fcn.004025ef
mov al, 1
pop edi
pop ebp
ret 4
Function at 0x408f91
Capabilities:
Get common file path
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4d8
push esi
push edi
lea eax, [ebp - 0x10]
push eax
mov esi, ecx
mov edi, 0x4b6
push edi
mov eax, esi
call fcn.00408820
mov eax, dword [ebp - 4]
sub eax, dword [ebp - 0xc]
xor ecx, ecx
add eax, 2
mov dword [esi + 0x58], eax
push edi
inc ecx
mov eax, esi
call fcn.004088c0
xor ecx, ecx
inc edi
push edi
inc ecx
mov eax, esi
call fcn.004088c0
and dword [ebp - 0x2c8], 0
push 0x2b0
lea eax, [ebp - 0x2c4]
push 0
push eax
call fcn.0041d490
add esp, 0xc
push 0x104
lea eax, [ebp - 0x4d8]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x103
push 0x2b4
lea eax, [ebp - 0x2c8]
push eax
push 0
lea eax, [ebp - 0x4d8]
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov eax, dword [ebp - 0x2c8]
push 0x40916b
push 0xfffffffffffffffc
mov dword [esi + 0x50], eax
push edi
mov eax, esi
call fcn.00407dac
push eax
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov ecx, esi
mov dword [esi + 0x54], eax
call fcn.00408543
push esi
mov edi, eax
call fcn.00409249
mov eax, edi
pop edi
pop esi
leave
ret

Function at 0x40a110
Capabilities:
Create thread

Disassembly:
push esi
call fcn.00407d7f
test eax, eax
jne 0x40a12b
push eax
push eax
push esi
push 0x40a0d0
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
ret
push dword [0x42df08]
mov eax, esi
call fcn.0040ba95
push eax
call fcn.00408804
push 0x2d
call fcn.00405235
pop ecx
push eax
push 0x4b2
mov eax, esi
call fcn.00407ddb
ret

Function at 0x40a531
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push esi
xor ecx, ecx
push 8
mov eax, ecx
pop edx
mov esi, eax
and esi, 1
dec esi
not esi
and esi, 0xedb88320
shr eax, 1
xor eax, esi
dec edx
jne 0x40a539
mov dword [ecx*4 + 0x4305a0], eax
inc ecx
cmp ecx, 0x100
jb 0x40a534
mov edx, 0x800
jmp 0x40a586
mov eax, dword [ecx*4 + 0x4301a0]
mov esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x4305a0]
inc ecx
mov dword [ecx*4 + 0x43059c], eax
cmp ecx, edx
jb 0x40a565
mov eax, 0x424000
mov esi, 0x423f20
mov dword [0x430588], eax
mov dword [0x4325a0], eax
mov dword [0x430584], esi
call fcn.0041096c
test eax, eax
jne 0x40a5b3
mov dword [0x4325a0], esi
pop esi
ret
Function at 0x410bbf
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push edi
lea eax, [ebp + 8]
push eax
mov eax, dword [ebp + 8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x410be7
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x410be7
xor al, al
jmp 0x410bf9
mov ecx, dword [ebp + 8]
xor eax, eax
xor edx, edx
add eax, edi
adc ecx, edx
mov dword [esi], eax
mov dword [esi + 4], ecx
mov al, 1
pop edi
pop ebp
ret 4

Function at 0x413fb5
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
xor eax, eax
movzx ecx, byte [eax + str.cw]
mov byte [ecx + 0x42e058], al
inc eax
cmp eax, 0x100
jb 0x413fbd
and dword [ebp - 4], 0
push ebx
push esi
push edi
mov ecx, dword [ebp - 4]
movzx esi, byte [ecx + str.cw]
mov eax, esi
and al, 0x80
movzx eax, al
neg eax
sbb eax, eax
and eax, 0x1b
lea edx, [esi + esi]
xor eax, edx
mov edi, 0xff
and eax, edi
mov edx, eax
xor edx, esi
mov dword [ebp - 8], edx
shl edx, 8
or edx, esi
shl edx, 8
or edx, esi
shl edx, 8
or edx, eax
mov dword [ecx*4 + 0x42f160], edx
mov edx, esi
shl edx, 8
mov ebx, edx
or edx, eax
or ebx, esi
shl edx, 8
or edx, dword [ebp - 8]
shl ebx, 8
or ebx, eax
shl eax, 8
or eax, dword [ebp - 8]
shl ebx, 8
or ebx, dword [ebp - 8]
shl edx, 8
shl eax, 8
mov dword [ecx*4 + 0x42f560], ebx
mov ebx, ecx
movzx esi, byte [ebx + str.cw]
or edx, esi
or eax, esi
mov dword [ecx*4 + 0x42f960], edx
movzx edx, byte [ebx + 0x42e058]
shl eax, 8
or eax, esi
mov dword [ecx*4 + 0x42fd60], eax
mov eax, edx
and al, 0x80
mov dword [ebp - 8], edx
movzx eax, al
neg eax
sbb eax, eax
add edx, edx
and eax, 0x1b
xor eax, edx
and eax, edi
mov edx, eax
and dl, 0x80
movzx esi, dl
neg esi
sbb esi, esi
and esi, 0x1b
lea edx, [eax + eax]
xor esi, edx
and esi, edi
mov edx, esi
and dl, 0x80
movzx edx, dl
neg edx
sbb edx, edx
and edx, 0x1b
lea ebx, [esi + esi]
xor edx, ebx
and edx, edi
mov edi, edx
xor edi, dword [ebp - 8]
mov dword [ebp - 0xc], edi
mov edi, edx
xor edi, eax
xor edi, dword [ebp - 8]
xor edx, esi
xor eax, edx
mov esi, edx
xor esi, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
mov ebx, edi
shl ebx, 8
or ebx, esi
shl ebx, 8
or ebx, edx
shl ebx, 8
or ebx, eax
mov dword [ecx*4 + 0x42e158], ebx
mov ebx, esi
shl ebx, 8
or ebx, edx
shl ebx, 8
or ebx, eax
shl ebx, 8
or ebx, edi
mov dword [ecx*4 + 0x42e558], ebx
mov ebx, edx
shl ebx, 8
or ebx, eax
shl eax, 8
or eax, edi
shl ebx, 8
shl eax, 8
or ebx, edi
or eax, esi
shl ebx, 8
shl eax, 8
or ebx, esi
or eax, edx
inc dword [ebp - 4]
cmp dword [ebp - 4], 0x100
mov dword [ecx*4 + 0x42e958], ebx
mov dword [ecx*4 + 0x42ed58], eax
jb 0x413fd9
mov dword [0x430160], 0x414ba2
mov dword [0x42f15c], 0x414bfe
mov dword [0x42f158], 0x414c82
call fcn.00410a3a
pop edi
pop esi
pop ebx
test eax, eax
je 0x414184
mov dword [0x430160], 0x424230
mov dword [0x42f15c], 0x4240e0
mov dword [0x42f158], 0x4242a0
leave
ret
Function at 0x414186
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
lea edi, [eax + 0x1c]
shr eax, 2
mov esi, eax
shr esi, 1
add esi, 3
mov dword [ecx], esi
xor esi, esi
mov dword [ebp - 0xc], edi
mov dword [ebp + 8], eax
test eax, eax
je 0x4141bb
mov ebx, dword [edx]
mov dword [ecx + esi*4 + 0x10], ebx
inc esi
add edx, 4
cmp esi, eax
jb 0x4141ad
cmp esi, edi
jae 0x41429c
mov edx, esi
sub edx, eax
lea eax, [ecx + edx*4 + 0x10]
mov dword [ebp - 4], eax
xor edx, edx
mov eax, esi
div dword [ebp + 8]
mov edi, dword [ecx + esi*4 + 0xc]
mov dword [ebp - 8], eax
test edx, edx
jne 0x414233
mov eax, edi
mov ebx, edi
mov edx, 0xff
and eax, edx
movzx eax, byte [eax + str.cw]
shr ebx, 0x18
movzx ebx, byte [ebx + str.cw]
shl eax, 8
or eax, ebx
mov ebx, edi
shr edi, 8
and edi, edx
shr ebx, 0x10
and ebx, edx
movzx edx, byte [edi + str.cw]
movzx ebx, byte [ebx + str.cw]
mov edi, dword [ebp - 8]
movzx edi, byte [edi + 0x428a24]
shl eax, 8
or eax, ebx
shl eax, 8
xor edi, edx
or edi, eax
jmp 0x414283
cmp dword [ebp + 8], 6
jbe 0x414283
cmp edx, 4
jne 0x414283
mov edx, edi
shr edx, 0x10
mov ebx, edi
shr ebx, 0x18
movzx ebx, byte [ebx + str.cw]
mov eax, 0xff
and edx, eax
movzx edx, byte [edx + str.cw]
shl ebx, 8
or edx, ebx
mov ebx, edi
shr ebx, 8
and ebx, eax
movzx ebx, byte [ebx + str.cw]
shl edx, 8
and edi, eax
movzx edi, byte [edi + str.cw]
or edx, ebx
shl edx, 8
or edi, edx
mov eax, dword [ebp - 4]
mov eax, dword [eax]
add dword [ebp - 4], 4
xor eax, edi
mov dword [ecx + esi*4 + 0x10], eax
inc esi
cmp esi, dword [ebp - 0xc]
jb 0x4141ce
pop edi
pop esi
pop ebx
leave
ret 4