joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404a20
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
lea ecx, [ebp - 0x1c]
call fcn.00401310
push 2
lea ecx, [ebp - 0x1c]
call fcn.00405190
push eax
push 1
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov dword [ebp - 8], eax
push 0
lea ecx, [ebp - 0x1c]
call fcn.004020d0
cmp dword [ebp - 8], 0
jbe 0x404a79
mov eax, dword [ebp - 8]
add eax, 1
push eax
lea ecx, [ebp - 0x1c]
call fcn.00405190
push eax
mov ecx, dword [ebp - 8]
add ecx, 1
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea ecx, [ebp - 0x1c]
call fcn.00406660
lea ecx, [ebp - 0x1c]
call fcn.004027b0
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], 0
jmp 0x404a96
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0xfff
jge 0x404aec
mov eax, dword [ebp - 0xc]
add eax, 0xf
push eax
lea ecx, [ebp - 0x1c]
call fcn.00405190
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
lea edx, [ecx + eax*2]
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea ecx, [ebp - 0x1c]
call fcn.00406660
lea ecx, [ebp - 0x1c]
call fcn.004013a0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x404aea
jmp 0x404aec
jmp 0x404a8d
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ebp + 8]
call fcn.00402b40
lea ecx, [ebp - 0x1c]
call fcn.00401880
mov eax, dword [ebp + 8]
mov esp, ebp
pop ebp
ret
Function at 0x404ba0
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, 0x270
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0xc]
call fcn.00401830
push 0x4308e4
lea ecx, [ebp - 0xc]
call fcn.0041aed0
lea ecx, [ebp - 0x270]
push ecx
lea ecx, [ebp - 0xc]
call fcn.004013a0
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
je 0x404cce
mov edx, dword [ebp + 8]
push edx
lea ecx, [ebp - 0xc]
call fcn.004021b0
push 0x5c
lea ecx, [ebp - 0xc]
call fcn.004018a0
lea eax, [ebp - 0x244]
push eax
lea ecx, [ebp - 0xc]
call fcn.0041aed0
mov ecx, dword [ebp - 0x270]
and ecx, 0x10
je 0x404c6f
push 0x4308ec
lea edx, [ebp - 0x244]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x404c6d
push 0x4308f0
lea eax, [ebp - 0x244]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x404c6d
lea ecx, [ebp - 0xc]
call fcn.004013a0
push eax
call fcn.00404ba0
add esp, 4
test eax, eax
jne 0x404c6d
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 0xc]
call fcn.00401880
mov eax, dword [ebp - 0x14]
jmp 0x404d23
jmp 0x404cab
push 0
lea ecx, [ebp - 0xc]
call fcn.004013a0
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x404c97
lea ecx, [ebp - 0xc]
call fcn.004013a0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x404cab
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0xc]
call fcn.00401880
mov eax, dword [ebp - 0x18]
jmp 0x404d23
lea ecx, [ebp - 0x270]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x404be5
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, 0x43555c
call fcn.004013a0
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push 0
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x404cfd
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x404d11
mov dword [ebp - 0x1c], 0
lea ecx, [ebp - 0xc]
call fcn.00401880
mov eax, dword [ebp - 0x1c]
jmp 0x404d23
mov dword [ebp - 0x20], 1
lea ecx, [ebp - 0xc]
call fcn.00401880
mov eax, dword [ebp - 0x20]
mov esp, ebp
pop ebp
ret

Function at 0x404d30
Capabilities:
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x254
lea eax, [ebp - 0x254]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x404d5a
mov eax, 1
jmp 0x404d9b
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x254]
and eax, 0x10
jne 0x404d8f
push 0
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x404d8b
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x404d9b
xor eax, eax
jmp 0x404d9b
mov eax, dword [ebp + 8]
push eax
call fcn.00404ba0
add esp, 4
mov esp, ebp
pop ebp
ret
Function at 0x404e90
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
lea ecx, [ebp - 0x20]
call fcn.00401310
push 1
lea ecx, [ebp - 0x20]
call fcn.00405190
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 8]
call fcn.004013a0
mov dword [ebp - 0xc], eax
push 1
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x404ed9
lea ecx, [ebp - 0x20]
call fcn.00401880
jmp 0x404f27
mov edx, dword [ebp - 4]
add edx, 1
push edx
lea ecx, [ebp - 0x20]
call fcn.00405190
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp + 8]
call fcn.004013a0
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 4]
add eax, 1
push eax
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea ecx, [ebp - 0x20]
call fcn.00406660
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp + 8]
call fcn.00402190
lea ecx, [ebp - 0x20]
call fcn.00401880
mov esp, ebp
pop ebp
ret
Function at 0x405e50
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea ecx, [ebp - 0x10]
call fcn.00401310
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jle 0x405e9e
mov ecx, dword [ebp - 4]
add ecx, 1
push ecx
mov edx, dword [ebp - 4]
add edx, 1
push edx
lea ecx, [ebp - 0x10]
call fcn.00405190
push eax
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp - 4]
push ecx
lea ecx, [ebp - 0x10]
call fcn.004020d0
lea edx, [ebp - 0x10]
push edx
mov ecx, dword [ebp + 8]
call fcn.00402b40
lea ecx, [ebp - 0x10]
call fcn.00401880
mov eax, dword [ebp + 8]
mov esp, ebp
pop ebp
ret

Function at 0x406280
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push 1
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov dword [ebp - 4], eax
lea ecx, [ebp - 0x14]
call fcn.00401310
mov edx, dword [ebp - 4]
add edx, 2
push edx
lea ecx, [ebp - 0x14]
call fcn.00405190
mov eax, dword [ebp - 4]
add eax, 1
push eax
mov ecx, dword [ebp - 4]
add ecx, 2
push ecx
lea ecx, [ebp - 0x14]
call fcn.00405190
push eax
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea ecx, [ebp - 0x14]
call fcn.00406660
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp + 8]
call fcn.00402b40
lea ecx, [ebp - 0x14]
call fcn.00401880
mov eax, dword [ebp + 8]
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x406d8f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xb7
je 0x406d66
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x406d94
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
je 0x406d8f
mov eax, dword [ebp - 8]
and eax, 0x10
jne 0x406d8f
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x406d94
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x408bd0
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 4], 0
jmp 0x408be8
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
mov ecx, 0x4355d0
call fcn.00406ee0
cmp dword [ebp - 4], eax
jge 0x408c58
mov ecx, dword [ebp - 4]
push ecx
mov ecx, 0x4355d0
call fcn.00403e00
add eax, 0xc
push eax
lea ecx, [ebp - 0x18]
call fcn.00402b40
lea edx, [ebp - 0x18]
push edx
call fcn.00408760
add esp, 4
lea ecx, [ebp - 0x18]
call fcn.004013a0
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
push eax
mov ecx, 0x4355d0
call fcn.00403e00
mov ecx, eax
call fcn.004013a0
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
lea ecx, [ebp - 0x18]
call fcn.00401880
jmp 0x408bdf
mov esp, ebp
pop ebp
ret

Function at 0x408c90
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x270
push 0x431494
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [0x43554c], eax
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
call fcn.0040ccf0
push 3
call fcn.00405480
add esp, 4
mov dword [0x43551c], eax
push 2
call fcn.00405480
add esp, 4
mov dword [0x435518], eax
push 5
call fcn.00405480
add esp, 4
mov dword [0x435524], eax
push 0x15
call fcn.00405480
add esp, 4
mov dword [0x435528], eax
push 0x16
call fcn.00405480
add esp, 4
mov dword [0x43552c], eax
push 0x17
call fcn.00405480
add esp, 4
mov dword [0x435534], eax
mov dword [0x435530], 0
mov eax, dword [0x435530]
mov dword [0x435520], eax
mov dword [ebp - 4], 0
jmp 0x408d34
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0x40
jge 0x408dcc
push 0
mov edx, dword [ebp - 4]
push edx
lea eax, [ebp - 0x270]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x408dc7
mov ecx, dword [ebp - 4]
push ecx
push str.SfxFolder_02d
lea edx, [ebp - 0x64]
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push 1
lea eax, [ebp - 0x270]
push eax
lea ecx, [ebp - 0x64]
push ecx
call fcn.00406cb0
add esp, 0xc
mov dword [ebp - 8], 0
jmp 0x408d94
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
cmp dword [ebp - 8], 5
jae 0x408dc7
mov eax, dword [ebp - 8]
mov ecx, dword [eax*8 + 0x431360]
cmp ecx, dword [ebp - 4]
jne 0x408dc5
push 0
lea edx, [ebp - 0x270]
push edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax*8 + 0x431364]
push ecx
call fcn.00406cb0
add esp, 0xc
jmp 0x408d8b
jmp 0x408d2b
mov esp, ebp
pop ebp
ret
Function at 0x40b680
Capabilities:
Get common file path
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4d8
mov dword [ebp - 4], ecx
lea eax, [ebp - 0x18]
push eax
push 0x4b6
mov ecx, dword [ebp - 4]
call fcn.0040ad50
mov ecx, dword [ebp - 0xc]
sub ecx, dword [ebp - 0x14]
add ecx, 2
mov edx, dword [ebp - 4]
mov dword [edx + 0x58], ecx
push 1
push 0x4b6
mov ecx, dword [ebp - 4]
call fcn.0040c9d0
push 1
push 0x4b7
mov ecx, dword [ebp - 4]
call fcn.0040c9d0
push 0x2b4
push 0
lea eax, [ebp - 0x2cc]
push eax
call fcn.0042b2e0
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x4d8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x103
push 0x2b4
lea edx, [ebp - 0x2cc]
push edx
push 0
lea eax, [ebp - 0x4d8]
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x2cc]
mov dword [ecx + 0x50], edx
push 0x40a3b0
push 0xfffffffffffffffc
push 0x4b7
mov ecx, dword [ebp - 4]
call fcn.0040ad30
push eax
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x54], eax
mov ecx, dword [ebp - 4]
call fcn.0040b050
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
call fcn.0040c3b0
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret

Function at 0x40ccf0
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], 0
jmp 0x40cd08
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x100
jae 0x40cd5b
mov ecx, dword [ebp - 4]
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], 0
jmp 0x40cd29
mov edx, dword [ebp - 0xc]
add edx, 1
mov dword [ebp - 0xc], edx
cmp dword [ebp - 0xc], 8
jae 0x40cd4c
mov eax, dword [ebp - 8]
shr eax, 1
mov ecx, dword [ebp - 8]
and ecx, 1
sub ecx, 1
not ecx
and ecx, 0xedb88320
xor eax, ecx
mov dword [ebp - 8], eax
jmp 0x40cd20
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
mov dword [edx*4 + 0x435d00], eax
jmp 0x40ccff
jmp 0x40cd66
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0x800
jae 0x40cd9e
mov edx, dword [ebp - 4]
mov eax, dword [edx*4 + 0x435900]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
and ecx, 0xff
mov edx, dword [ebp - 0x10]
shr edx, 8
xor edx, dword [ecx*4 + 0x435d00]
mov eax, dword [ebp - 4]
mov dword [eax*4 + 0x435d00], edx
jmp 0x40cd5d
mov dword [0x437d08], 0x42f130
mov dword [0x437d00], 0x42f130
mov dword [0x437d04], 0x42f050
call fcn.00417ed0
test eax, eax
jne 0x40cdcf
mov dword [0x437d00], 0x42f050
mov esp, ebp
pop ebp
ret

Function at 0x418500
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 8], ecx
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x418530
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x418530
xor al, al
jmp 0x41854d
xor edx, edx
mov eax, dword [ebp - 0xc]
mov cl, 0x20
call fcn.0042e330
xor ecx, ecx
add eax, dword [ebp - 4]
adc edx, ecx
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov dword [ecx + 4], edx
mov al, 1
mov esp, ebp
pop ebp
ret 4
Function at 0x418670
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], 0
push 0
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push eax
call fcn.004183d0
add esp, 4
mov byte [ebp - 1], al
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp - 8]
mov dword [edx], eax
movzx eax, byte [ebp - 1]
mov esp, ebp
pop ebp
ret 0xc

Function at 0x418850
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push eax
call fcn.004183d0
add esp, 4
mov esp, ebp
pop ebp
ret

Function at 0x418980
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp + 0xc]
cmp eax, dword [0x435324]
jbe 0x41899d
mov ecx, dword [0x435324]
mov dword [ebp + 0xc], ecx
mov dword [ebp - 8], 0
push 0
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [edx]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
push eax
call fcn.004183d0
add esp, 4
mov byte [ebp - 1], al
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 8]
mov dword [ecx], edx
movzx eax, byte [ebp - 1]
mov esp, ebp
pop ebp
ret 0xc

Function at 0x41cad0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 0
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
push 0
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
add esp, 0x18
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
call fcn.0041c8f0
add esp, 4
mov esp, ebp
pop ebp
ret
Function at 0x42e990
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42e9bd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42e9bd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x42eba8
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x42ebe7
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42ebe7
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42ebe7
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x42ebe7
cmp dword [ecx + 0x74], 0xe
jbe 0x42ebe7
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x411d9d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
pushal
call 0x411dac
pop dword [ebp - 0x2c]
mov eax, 0x411dac
sub dword [ebp - 0x2c], eax
push 0x40
push 0x1000
push 0x3e722
push 0
mov eax, 0xe080b20c
add eax, 0x1fc1a00c
add eax, dword [ebp - 0x2c]
call dword [eax]
mov ecx, 0xf7b5eef1
add ecx, 0x84a5958
xor esi, esi
add esi, eax
mov edx, 0x435400
add edx, dword [ebp - 0x2c]
mov edi, 0xf0bf3389
add edi, 0xea6547ea
mov dword [ebp - 0x18], 0xae1cf10a
mov ebx, dword [edx]
add dword [ebp - 8], edx
xor ebx, edi
add dword [ebp - 0x18], ecx
mov dword [esi], ebx
xor dword [ebp - 4], 0x503910e2
add esi, 0x9270b11e
add esi, 0x6d8f4ee6
add edx, 0xf991ef74
sub edx, 0xf991ef70
loop 0x411e02
add eax, 0x113f7
mov ebx, eax
add eax, 0x4011b842
add eax, 0xbfee47c3
mov ecx, 0xf4fd93bf
sub ecx, 0xf4bd93bf
add ecx, dword [ebp - 0x2c]
call ebx
leave
ret
Function at 0x4014c0
Capabilities:
Write file on windows

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
cmp esi, 0x100000
jge 0x4014d6
mov esi, 0x100000
jmp 0x4014e2
add esi, 0xffff
and esi, 0xffff0000
mov dword [ebx + 4], esi
push 1
push 0x2000
push esi
push 0
call sub.KERNEL32.DLL_WriteFile
mov edi, eax
mov dword [ebx], edi
test edi, edi
je 0x40151f
mov edx, ebx
mov eax, 0x4145e4
call fcn.00401374
test al, al
jne 0x40151f
push 0x8000
push 0
mov eax, dword [ebx]
push eax
call sub.KERNEL32.DLL_GetModuleHandleA
xor eax, eax
mov dword [ebx], eax
pop edi
pop esi
pop ebx
ret

Function at 0x401524
Capabilities:
Write file on windows

Disassembly:
push ebx
push esi
push edi
push ebp
mov ebx, ecx
mov esi, edx
mov ebp, eax
mov dword [ebx + 4], 0x100000
push 4
push 0x2000
push 0x100000
push ebp
call sub.KERNEL32.DLL_WriteFile
mov edi, eax
mov dword [ebx], edi
test edi, edi
jne 0x40156e
add esi, 0xffff
and esi, 0xffff0000
mov dword [ebx + 4], esi
push 4
push 0x2000
push esi
push ebp
call sub.KERNEL32.DLL_WriteFile
mov dword [ebx], eax
cmp dword [ebx], 0
je 0x401596
mov edx, ebx
mov eax, 0x4145e4
call fcn.00401374
test al, al
jne 0x401596
push 0x8000
push 0
mov eax, dword [ebx]
push eax
call sub.KERNEL32.DLL_GetModuleHandleA
xor eax, eax
mov dword [ebx], eax
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x401654
Capabilities:
Write file on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff4
mov dword [esp + 4], ecx
mov dword [esp], edx
mov edx, eax
mov ebp, edx
and ebp, 0xfffff000
add edx, dword [esp]
add edx, 0xfff
and edx, 0xfffff000
mov dword [esp + 8], edx
mov eax, dword [esp + 4]
mov dword [eax], ebp
mov eax, dword [esp + 8]
sub eax, ebp
mov edx, dword [esp + 4]
mov dword [edx + 4], eax
mov esi, dword [0x4145e4]
jmp 0x4016d6
mov ebx, dword [esi + 8]
mov edi, dword [esi + 0xc]
add edi, ebx
cmp ebp, ebx
jbe 0x4016a8
mov ebx, ebp
cmp edi, dword [esp + 8]
jbe 0x4016b2
mov edi, dword [esp + 8]
cmp edi, ebx
jbe 0x4016d4
push 4
push 0x1000
sub edi, ebx
push edi
push ebx
call sub.KERNEL32.DLL_WriteFile
test eax, eax
jne 0x4016d4
mov eax, dword [esp + 4]
xor edx, edx
mov dword [eax], edx
jmp 0x4016de
mov esi, dword [esi]
cmp esi, 0x4145e4
jne 0x40169a
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x401a6c
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
cmp byte [0x4145bc], 0
je 0x401b49
xor edx, edx
push ebp
push 0x401b42
push dword fs:[edx]
mov dword fs:[edx], esp
cmp byte [0x414045], 0
je 0x401a9e
push 0x4145c4
call sub.KERNEL32.DLL_TlsGetValue
mov byte [0x4145bc], 0
mov eax, dword [0x41461c]
push eax
call sub.KERNEL32.DLL_WaitForSingleObject
xor eax, eax
mov dword [0x41461c], eax
mov ebx, dword [0x4145e4]
jmp 0x401ad1
push 0x8000
push 0
mov eax, dword [ebx + 8]
push eax
call sub.KERNEL32.DLL_GetModuleHandleA
mov ebx, dword [ebx]
cmp ebx, 0x4145e4
jne 0x401abf
mov eax, 0x4145e4
call fcn.0040136c
mov eax, 0x4145f4
call fcn.0040136c
mov eax, 0x414620
call fcn.0040136c
mov eax, dword [0x4145dc]
test eax, eax
je 0x401b17
mov edx, dword [eax]
mov dword [0x4145dc], edx
push eax
call sub.KERNEL32.DLL_WaitForSingleObject
mov eax, dword [0x4145dc]
test eax, eax
jne 0x401b00
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x401b49
cmp byte [0x414045], 0
je 0x401b37
push 0x4145c4
call sub.KERNEL32.DLL_TlsSetValue
push 0x4145c4
call sub.KERNEL32.DLL_Sleep
ret
pop ebx
pop ebp
ret
Function at 0x402094
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov ebx, eax
cmp byte [0x4145bc], 0
jne 0x4020b1
call fcn.004019a8
test al, al
je 0x4020b9
cmp ebx, 0x7ffffff8
jle 0x4020c3
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x402217
xor ecx, ecx
push ebp
push 0x402210
push dword fs:[ecx]
mov dword fs:[ecx], esp
cmp byte [0x414045], 0
je 0x4020e4
push 0x4145c4
call sub.KERNEL32.DLL_TlsGetValue
add ebx, 7
and ebx, 0xfffffffc
cmp ebx, 0xc
jge 0x4020f4
mov ebx, 0xc
cmp ebx, 0x1000
jg 0x402193
mov eax, ebx
test eax, eax
jns 0x402109
add eax, 3
sar eax, 2
mov edx, dword [0x41461c]
mov edx, dword [edx + eax*4 - 0xc]
test edx, edx
je 0x402193
mov esi, edx
mov eax, esi
add eax, ebx
and dword [eax], 0xfffffffe
mov eax, dword [edx + 4]
cmp edx, eax
jne 0x402144
mov eax, ebx
test eax, eax
jns 0x402133
add eax, 3
sar eax, 2
mov ecx, dword [0x41461c]
xor edi, edi
mov dword [ecx + eax*4 - 0xc], edi
jmp 0x40216a
mov ecx, ebx
test ecx, ecx
jns 0x40214d
add ecx, 3
sar ecx, 2
mov edi, dword [0x41461c]
mov dword [edi + ecx*4 - 0xc], eax
mov ecx, dword [edx]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 8]
mov dword [ecx + 4], eax
mov ecx, dword [ebp - 8]
mov dword [eax], ecx
mov eax, esi
mov edx, dword [edx + 8]
or edx, 2
mov dword [eax], edx
add eax, 4
mov dword [ebp - 4], eax
inc dword [0x4145ac]
sub ebx, 4
add dword [0x4145b0], ebx
call fcn.004038d8
jmp 0x402217
cmp ebx, dword [0x414614]
jg 0x4021e5
sub dword [0x414614], ebx
cmp dword [0x414614], 0xc
jge 0x4021b7
add ebx, dword [0x414614]
xor eax, eax
mov dword [0x414614], eax
mov eax, dword [0x414618]
add dword [0x414618], ebx
mov edx, ebx
or edx, 2
mov dword [eax], edx
add eax, 4
mov dword [ebp - 4], eax
inc dword [0x4145ac]
sub ebx, 4
add dword [0x4145b0], ebx
call fcn.004038d8
jmp 0x402217
mov eax, ebx
call fcn.00401fa0
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402217
cmp byte [0x414045], 0
je 0x40220f
push 0x4145c4
call sub.KERNEL32.DLL_TlsSetValue
ret
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret