joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40891a
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2c
mov esi, dword [ebp + 0xc]
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
mov dword [0x4331c0], 0x55004e
mov dword [0x4331c4], 0x4c
test esi, esi
jne 0x408973
mov eax, dword [ebp + 8]
mov dword [esp + 8], 0x400
mov dword [esp + 4], 0x4329c0
mov dword [esp], eax
call ebx
sub esp, 0xc
test eax, eax
je 0x408b67
cmp eax, 0x400
jle 0x4089c4
jmp 0x408b67
mov dword [esp + 8], 1
mov dword [esp + 4], 0
mov dword [esp], esi
call fcn.00407f57
sub esp, 0xc
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
mov dword [esp + 8], 0x400
mov dword [esp + 4], 0x4331c0
mov dword [esp], esi
call ebx
sub esp, 0xc
test eax, eax
je 0x408b67
cmp eax, 0x400
jle 0x408944
jmp 0x408b67
mov dword [esp + 0xc], 0x4329c0
mov dword [esp + 8], 0x4331c0
mov dword [esp + 4], str._ls_ls_r_n
mov dword [esp], 0x4325c0
call dword [sym.imp.USER32.dll_wsprintfA]
mov dword [ebp - 0x1c], eax
mov eax, dword [0x417930]
mov eax, dword [eax + 0x128]
mov dword [esp], 0x4329c0
mov dword [esp + 4], eax
call fcn.0040860d
push edi
push edi
mov dword [esp + 8], 4
mov dword [esp + 4], 0xc0000000
mov dword [esp], 0x4329c0
call fcn.00407f57
sub esp, 0xc
mov edi, eax
cmp eax, 0xffffffff
je 0x408b67
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
mov eax, dword [ebp - 0x1c]
push ecx
push ecx
add eax, ebx
mov dword [ebp - 0x24], eax
add eax, 0xa
mov dword [esp + 4], eax
mov dword [esp], 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push esi
push esi
mov esi, eax
test eax, eax
je 0x408b5d
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov dword [esp], edi
call fcn.0040801d
sub esp, 0xc
test eax, eax
je 0x408b5d
mov dword [esp + 4], str._Rename__r_n
mov dword [esp], esi
call fcn.00407e2c
push edx
push edx
lea edx, [esi + ebx]
test eax, eax
jne 0x408abe
mov dword [esp + 4], str._Rename__r_n
add ebx, 0xa
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, ebx
push eax
push eax
jmp 0x408afd
add eax, 0xa
mov dword [esp + 4], 0x40c68b
mov dword [esp], eax
mov dword [ebp - 0x28], edx
call fcn.00407e2c
mov dword [ebp - 0x20], eax
push ecx
push ecx
mov ecx, ebx
test eax, eax
je 0x408afd
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x28]
add ecx, esi
cmp edx, dword [ebp - 0x20]
jbe 0x408af5
mov al, byte [edx]
dec edx
dec ecx
mov byte [ecx + 1], al
jmp 0x408ae7
mov eax, dword [ebp - 0x20]
sub eax, esi
lea ecx, [eax + 1]
mov eax, dword [ebp - 0x1c]
add ecx, esi
mov dword [esp + 4], 0x4325c0
mov dword [esp], ecx
mov dword [esp + 8], eax
call fcn.00407e97
add ebx, dword [ebp - 0x1c]
sub esp, 0xc
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
sub esp, 0x10
mov dword [esp + 8], ebx
mov dword [esp + 4], esi
mov dword [esp], edi
call fcn.00408063
sub esp, 0xc
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push edx
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x408bec
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x14
mov eax, dword [ebp + 8]
mov dword [esp], 0x4339c0
mov dword [esp + 4], eax
call fcn.00408468
push ebx
push ebx
mov dword [esp], 0x4339c0
call fcn.00407d98
push edx
test eax, eax
jne 0x408c1d
xor eax, eax
jmp 0x408c99
mov dword [esp], eax
mov ebx, eax
call fcn.00408530
push ecx
test byte [0x41792c], 0x80
je 0x408c3f
mov ax, word [ebx]
test ax, ax
je 0x408c19
cmp ax, 0x5c
je 0x408c19
sub ebx, 0x4339c0
sar ebx, 1
mov dword [esp], 0x4339c0
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push ecx
mov dword [esp], 0x4339c0
cmp ebx, eax
jge 0x408c7e
call fcn.00408bb4
push edx
test eax, eax
je 0x408c6f
test byte [eax], 0x10
je 0x408c19
mov dword [esp], 0x4339c0
call fcn.00407d26
push eax
jmp 0x408c47
call fcn.0040849c
push eax
mov dword [esp], 0x4339c0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
inc eax
push edx
setne al
movzx eax, al
mov ebx, dword [ebp - 4]
leave
ret 4
Function at 0x408f20
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
lea ebx, [ebp - 0x244]
sub esp, 0x254
mov dword [esp + 4], 0x104
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push edx
push edx
lea edx, [eax - 1]
cmp edx, 0x103
ja 0x408f5e
xor edx, edx
cmp word [ebp + eax*2 - 0x246], 0x5c
sete dl
jmp 0x408f65
xor eax, eax
mov edx, 1
mov ecx, dword [ebp + 8]
add edx, edx
add eax, eax
mov dword [esp + 4], str._s_S.dll
add edx, 0x40c660
add eax, ebx
mov dword [esp + 0xc], ecx
mov dword [esp + 8], edx
mov dword [esp], eax
call dword [sym.imp.USER32.dll_wsprintfW]
mov dword [esp], ebx
mov dword [esp + 8], 8
mov dword [esp + 4], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov ebx, dword [ebp - 4]
sub esp, 0xc
leave
ret 4

Function at 0x409104
Capabilities:
Hash data with crc32

Disassembly:
push ebp
cmp dword [0x434a24], 0
mov ebp, esp
push esi
mov edx, dword [ebp + 0xc]
push ebx
jne 0x409141
xor ecx, ecx
mov eax, ecx
mov ebx, 8
mov esi, eax
shr esi, 1
and eax, 1
je 0x40912c
mov eax, 0xedb88320
xor eax, esi
dec ebx
jne 0x40911e
mov dword [ecx*4 + 0x434a20], eax
inc ecx
cmp ecx, 0x100
jne 0x409117
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0x10]
not eax
add ebx, edx
cmp edx, ebx
je 0x409163
mov cl, byte [edx]
inc edx
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x434a20]
jmp 0x40914b
pop ebx
not eax
pop esi
pop ebp
ret 0xc
Function at 0x430001
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x408f6c
mov ecx, 0x4301036c
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
xor dword [eax], ecx
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x430024
nop
nop
mov eax, section..data
nop
mov ebx, 0x42e3d0
nop
mov ecx, 0x56b10ae7
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x430084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x40725c
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x412d6b
call fcn.00411fd0
push ecx
push ebx
push esi
mov esi, ecx
xor eax, eax
push edi
mov dword [ebp - 0x10], esi
mov dword [esi], eax
mov dword [ebp - 4], eax
mov dword [esi + 4], eax
mov ecx, dword [ebp + 8]
push 8
mov dword [esi + 8], ecx
mov ecx, dword [ebp + 0xc]
mov dword [esi + 0xc], ecx
lea ecx, [esi + 0x10]
pop edi
mov edx, 0x41441c
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
mov dword [ecx + 0x10], edi
mov dword [ecx], edx
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], edi
mov dword [esi + 0x24], edx
lea ebx, [esi + 0x38]
mov edx, 0x414238
mov dword [ebx + 4], eax
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], eax
mov dword [ebx + 0x10], 4
mov dword [ebx], edx
lea edi, [esi + 0x4c]
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], 4
mov dword [edi], edx
push dword [esi + 8]
mov byte [ebp - 4], 5
call fcn.0040b7a8
push dword [esi + 8]
mov ecx, ebx
call fcn.0040b7a8
push dword [esi + 0xc]
mov ecx, edi
call fcn.0040b7a8
push dword [esi + 0xc]
mov ecx, edi
call fcn.0040b7a8
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8

Function at 0x407806
Capabilities:
Create thread

Disassembly:
mov eax, 0x412f11
call fcn.00411fd0
push ecx
push ecx
push ebx
push esi
mov esi, ecx
push edi
xor edi, edi
mov dword [ebp - 0x14], esi
mov dword [esi], 0x414320
mov dword [esi + 4], 0x4144a8
lea ecx, [esi + 0xc]
mov dword [esi + 8], edi
call fcn.0040105a
push 4
lea ecx, [esi + 0x5c]
pop ebx
mov dword [ebp - 4], edi
push ebx
call fcn.004019d0
mov dword [esi + 0x5c], 0x4144a0
lea ecx, [esi + 0x70]
push ebx
mov byte [ebp - 4], 1
call fcn.004019d0
mov dword [esi + 0x70], 0x414498
lea eax, [esi + 0x84]
mov dword [eax + 4], edi
mov dword [eax + 8], edi
mov dword [eax + 0xc], edi
mov dword [eax + 0x10], ebx
mov dword [eax], 0x414490
mov dword [esi + 0x98], edi
push edi
push edi
push edi
lea ecx, [esi + 0x9c]
push edi
mov byte [ebp - 4], bl
call fcn.0040d86c
lea eax, [esi + 0xa0]
mov dword [eax + 4], edi
mov dword [eax + 8], edi
mov dword [eax + 0xc], edi
mov dword [eax + 0x10], ebx
mov dword [eax], 0x41434c
push edi
push edi
push edi
lea ecx, [esi + 0xb4]
push edi
mov byte [ebp - 4], 6
call fcn.0040d86c
push edi
push edi
push edi
lea ecx, [esi + 0xb8]
push 1
mov byte [ebp - 4], 7
call fcn.0040d86c
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 8
push eax
push edi
push esi
push 0x40795e
push edi
push edi
mov dword [esi], 0x41447c
mov dword [esi + 4], 0x414470
call dword [sym.imp.KERNEL32.DLL_CreateThread]
cmp eax, edi
mov dword [esi + 0x98], eax
jne 0x407910
lea eax, [ebp - 0x10]
push 0x414acc
push eax
mov dword [ebp - 0x10], 0x425d1
call sub.MSVCRT.dll__CxxThrowException
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x407b9a
Capabilities:
Create thread

Disassembly:
mov eax, 0x412fab
call fcn.00411fd0
sub esp, 0xcc
push ebx
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 0x78]
mov ecx, dword [edi + 0x18]
lea eax, [ecx + eax*8]
lea ecx, [ebp - 0xd8]
push dword [eax + 4]
push dword [eax]
call fcn.00407319
lea esi, [edi + 0x70]
lea eax, [ebp - 0xd8]
xor ebx, ebx
push eax
mov ecx, esi
mov dword [ebp - 4], ebx
call fcn.00408339
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0xc]
mov ecx, dword [ecx + eax*4 - 4]
call fcn.00407462
mov ecx, dword [esi + 8]
mov edx, dword [esi + 0xc]
mov eax, dword [edi + 0xb8]
mov ecx, dword [edx + ecx*4 - 4]
mov dword [ecx + 0x64], eax
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0xc]
mov eax, dword [ecx + eax*4 - 4]
lea ecx, [edi + 0xa0]
mov eax, dword [eax + 0x68]
push dword [eax]
call fcn.00402379
mov dword [ebp - 0x14], ebx
add edi, 0x84
push ebx
mov ecx, edi
mov byte [ebp - 4], 1
call fcn.004083e4
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0xc]
mov edx, dword [edi + 0xc]
mov eax, dword [ecx + eax*4 - 4]
mov ecx, dword [edi + 8]
lea esi, [edx + ecx*4 - 4]
lea ecx, [ebp - 0x10]
push ecx
push ebx
push eax
push 0x407c8f
push ebx
push ebx
call dword [sym.imp.KERNEL32.DLL_CreateThread]
mov dword [esi], eax
pop edi
cmp eax, ebx
pop esi
pop ebx
jne 0x407c74
lea eax, [ebp - 0x10]
push 0x414acc
push eax
mov dword [ebp - 0x10], 0x425d0
call sub.MSVCRT.dll__CxxThrowException
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xd8]
call fcn.004074d7
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret

Function at 0x40ae08
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [ecx]
mov edx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
test esi, esi
jbe 0x40ae33
push ebx
push edi
movzx edi, byte [edx]
movzx ebx, al
xor edi, ebx
shr eax, 8
mov edi, dword [edi*4 + 0x418788]
xor eax, edi
inc edx
dec esi
jne 0x40ae19
pop edi
pop ebx
mov dword [ecx], eax
pop esi
ret 8

Function at 0x40bfb2
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x418bb4], 0
je 0x40bfd5
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesW]
neg eax
sbb eax, eax
neg eax
jmp 0x40bfff
push esi
lea eax, [ebp - 0xc]
push dword [ebp + 8]
push eax
call fcn.0040c003
push dword [ebp + 0xc]
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesA]
push dword [ebp - 0xc]
mov esi, eax
call sub.MSVCRT.dll_free
test esi, esi
pop ecx
pop esi
setne al
leave
ret 8

Function at 0x40c055
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x418bb4], 0
je 0x40c075
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_RemoveDirectoryW]
neg eax
sbb eax, eax
neg eax
jmp 0x40c09b
push esi
lea eax, [ebp - 0xc]
push dword [ebp + 8]
push eax
call fcn.0040c003
push dword [eax]
call dword [sym.imp.KERNEL32.DLL_RemoveDirectoryA]
push dword [ebp - 0xc]
mov esi, eax
call sub.MSVCRT.dll_free
test esi, esi
pop ecx
pop esi
setne al
leave
ret 4
Function at 0x40c0b4
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x418bb4], 0
je 0x40c0d6
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
neg eax
sbb eax, eax
neg eax
jmp 0x40c0f8
push ebx
lea eax, [ebp - 0xc]
push dword [ebp + 8]
push eax
call fcn.0040c003
push dword [eax]
call fcn.0040c09f
push dword [ebp - 0xc]
mov bl, al
call sub.MSVCRT.dll_free
pop ecx
mov al, bl
pop ebx
leave
ret 4

Function at 0x40c2d4
Capabilities:
Delete file
Set file attributes

Disassembly:
push 0
push dword [esp + 8]
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesA]
test eax, eax
jne 0x40c2e8
xor al, al
jmp 0x40c2f8
push dword [esp + 4]
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
neg eax
sbb eax, eax
neg eax
ret 4

Function at 0x40c2fb
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x418bb4], 0
je 0x40c329
push 0
push dword [ebp + 8]
call fcn.0040bfb2
test al, al
je 0x40c34b
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
neg eax
sbb eax, eax
neg eax
jmp 0x40c34b
push ebx
lea eax, [ebp - 0xc]
push dword [ebp + 8]
push eax
call fcn.0040c003
push dword [eax]
call fcn.0040c2d4
push dword [ebp - 0xc]
mov bl, al
call sub.MSVCRT.dll_free
pop ecx
mov al, bl
pop ebx
leave
ret 4

Function at 0x40c34f
Capabilities:
Delete directory
Set file attributes

Disassembly:
mov eax, 0x413410
call fcn.00411fd0
sub esp, 0x6c
push esi
lea ecx, [ebp - 0x48]
call fcn.0040c9c4
mov esi, dword [ebp + 8]
and dword [ebp - 4], 0
push 0x5c
lea eax, [ebp - 0x18]
push esi
push eax
call fcn.0040cb28
lea eax, [ebp - 0x18]
push 0x2a
push eax
lea eax, [ebp - 0x24]
push eax
mov byte [ebp - 4], 1
call fcn.0040cb28
and byte [ebp - 0x34], 0
push eax
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 3
call fcn.0040b1a4
push dword [ebp - 0x24]
mov byte [ebp - 4], 5
call sub.MSVCRT.dll_free
pop ecx
jmp 0x40c3c9
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x18]
sub esp, 0xc
mov ecx, esp
mov dword [ebp + 8], esp
push eax
call fcn.0040b1a4
call fcn.0040c45d
test al, al
je 0x40c411
lea eax, [ebp - 0x78]
lea ecx, [ebp - 0x38]
push eax
call fcn.0040d000
test al, al
jne 0x40c3ab
push dword [ebp - 0x30]
mov byte [ebp - 4], 1
call sub.MSVCRT.dll_free
pop ecx
lea ecx, [ebp - 0x38]
call fcn.0040cbd9
mov eax, dword [esi]
push 0
push eax
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesA]
test eax, eax
jne 0x40c428
push dword [ebp - 0x18]
call sub.MSVCRT.dll_free
push dword [ebp - 0x48]
call sub.MSVCRT.dll_free
xor al, al
jmp 0x40c447
push dword [ebp - 0x30]
mov byte [ebp - 4], 1
call sub.MSVCRT.dll_free
pop ecx
lea ecx, [ebp - 0x38]
call fcn.0040cbd9
jmp 0x40c3fd
push dword [esi]
call dword [sym.imp.KERNEL32.DLL_RemoveDirectoryA]
push dword [ebp - 0x18]
mov esi, eax
call sub.MSVCRT.dll_free
push dword [ebp - 0x48]
call sub.MSVCRT.dll_free
test esi, esi
setne al
pop ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret 4
Function at 0x40c8c1
Capabilities:
Delete file

Disassembly:
mov eax, 0x413498
call fcn.00411fd0
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor ebx, ebx
lea ecx, [ebp - 0x1c]
call fcn.00411b03
push esi
lea ecx, [ebp - 0x1c]
push dword [ebp + 8]
mov dword [ebp - 4], ebx
call fcn.0040c812
test al, al
je 0x40c936
push dword [esi]
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
test eax, eax
je 0x40c959
push dword [esi]
call fcn.0040cf6d
test al, al
je 0x40c91e
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.0040c89d
push dword [ebp - 0x18]
call sub.MSVCRT.dll_free
pop ecx
jmp 0x40c8d5
push dword [esi]
call fcn.0040c09f
test al, al
jne 0x40c96d
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0xb7
je 0x40c907
lea ecx, [ebp - 0x1c]
call fcn.0040c89d
push dword [ebp - 0x18]
call sub.MSVCRT.dll_free
xor al, al
pop ecx
pop esi
mov ecx, dword [ebp - 0xc]
pop ebx
mov dword fs:[0], ecx
leave
ret 8
lea ecx, [ebp - 0x1c]
call fcn.0040c89d
push dword [ebp - 0x18]
call sub.MSVCRT.dll_free
mov al, bl
jmp 0x40c948
mov bl, 1
jmp 0x40c959

Function at 0x40cde3
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov eax, 0x413504
call fcn.00411fd0
sub esp, 0x18
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push 1
mov eax, dword [esi]
push 0
mov dword [edi], eax
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
mov eax, dword [esi + 8]
mov dword [edi + 8], eax
mov eax, dword [esi + 0xc]
mov dword [edi + 0xc], eax
mov eax, dword [esi + 0x10]
mov dword [edi + 0x10], eax
mov eax, dword [esi + 0x14]
mov dword [edi + 0x14], eax
mov eax, dword [esi + 0x18]
push 0
mov dword [edi + 0x18], eax
push dword [esi + 0x1c]
call fcn.00412190
mov ecx, dword [esi + 0x20]
xor ebx, ebx
add eax, ecx
lea ecx, [ebp - 0x18]
mov dword [edi + 0x20], eax
lea eax, [esi + 0x2c]
adc edx, ebx
push eax
mov dword [edi + 0x24], edx
call fcn.0040afb7
and dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.DLL_AreFileApisANSI]
neg eax
sbb eax, eax
inc eax
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.0040ce9c
push eax
lea ecx, [edi + 0x30]
mov byte [ebp - 4], 1
call fcn.0040aa3e
push dword [ebp - 0x24]
call sub.MSVCRT.dll_free
push dword [ebp - 0x18]
call sub.MSVCRT.dll_free
mov eax, dword [esi + 0x24]
pop ecx
pop ecx
mov dword [edi + 0x28], eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8

Function at 0x40d156
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push esi
push eax
push dword [ecx + 8]
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40d17d
call dword [sym.imp.KERNEL32.DLL_GetLastError]
test eax, eax
je 0x40d17d
xor al, al
jmp 0x40d19d
push 1
push 0
push 0
push dword [ebp - 4]
call fcn.00412190
mov ecx, eax
xor eax, eax
add ecx, esi
adc edx, eax
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov al, 1
pop esi
leave
ret 4
Function at 0x4108f9
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_CreateThread]
xor ecx, ecx
mov dword [esi], eax
test eax, eax
setne cl
mov al, cl
pop esi
pop ebp
ret 0x18

Function at 0x410927
Capabilities:
Hide graphical window

Disassembly:
mov eax, 0x413af0
call fcn.00411fd0
sub esp, 0xc
push esi
mov esi, ecx
push edi
push dword [ebp + 8]
lea edi, [esi + 0x68]
lea ecx, [edi + 0xc]
call fcn.0040aa3e
push 0
push 0x1f4
mov ecx, edi
call fcn.0040bba3
lea eax, [ebp - 0x18]
push 0x45
push eax
call fcn.0040d7a0
push dword [eax]
and dword [ebp - 4], 0
push dword [esi + 0x6c]
call fcn.0040d8ce
push dword [ebp - 0x18]
call sub.MSVCRT.dll_free
pop ecx
push 1
push dword [esi + 0x6c]
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [ebp - 0xc]
pop edi
xor eax, eax
pop esi
mov dword fs:[0], ecx
leave
ret 4

Function at 0x410aec
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x413b86
call fcn.00411fd0
push ecx
push esi
push edi
mov esi, ecx
xor edi, edi
mov dword [ebp - 0x10], esi
mov dword [esi + 4], edi
mov dword [esi], 0x4147cc
lea ecx, [esi + 0xc]
mov dword [esi + 8], edi
push 0xf
mov dword [ebp - 4], edi
mov dword [ecx], edi
mov dword [ecx + 4], edi
mov dword [ecx + 8], edi
call fcn.00407094
push edi
push edi
push edi
lea ecx, [esi + 0x38]
push 1
mov byte [ebp - 4], 1
mov dword [esi + 0x30], edi
call fcn.0040d86c
lea ecx, [esi + 0x40]
mov byte [ebp - 4], 2
call fcn.00410b7f
mov ecx, dword [ebp - 0xc]
mov dword [esi], 0x41479c
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x411b50
Capabilities:
Get file size
Read file via mapping

Disassembly:
mov eax, 0x413cac
call fcn.00411fd0
push ecx
push ecx
push ebx
push esi
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
push dword [ebp + 8]
mov dword [ebp - 4], ebx
mov byte [ebp - 0xd], bl
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x411be2
push edi
push ebx
push ebx
push ebx
push 2
push ebx
push esi
call dword [sym.imp.KERNEL32.DLL_CreateFileMappingA]
mov edi, eax
cmp edi, 0xffffffff
je 0x411bda
cmp edi, ebx
jne 0x411ba9
call dword [sym.imp.KERNEL32.DLL_GetLastError]
test eax, eax
jne 0x411bda
push ebx
push ebx
push ebx
push 4
push edi
call dword [sym.imp.KERNEL32.DLL_MapViewOfFile]
cmp eax, ebx
mov dword [ebp - 0x14], eax
je 0x411bd3
push ebx
push esi
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
push dword [ebp + 0x14]
push eax
push dword [ebp - 0x14]
call fcn.00411bfe
mov byte [ebp - 0xd], al
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop edi
push dword [ebp + 8]
call sub.MSVCRT.dll_free
mov al, byte [ebp - 0xd]
pop ecx
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x10
Function at 0x4028d0
Capabilities:
Terminate process

Disassembly:
call fcn.00401000
push 0x18
push 0x4029f8
call fcn.004032a6
xor esi, esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], esi
call dword [sym.imp.MSVCR120_CLR0400.dll___crtGetShowWindowMode]
movzx ebx, ax
mov dword [ebp - 4], esi
mov eax, dword fs:[0x18]
mov edx, dword [eax + 4]
mov edi, esi
mov esi, 0x4150e8
mov ecx, edx
xor eax, eax
lock cmpxchg dword [esi], ecx
test eax, eax
jne 0x404373
xor esi, esi
inc esi
cmp dword [0x4150ec], esi
je 0x404385
cmp dword [0x4150ec], 0
jne 0x402a1e
mov dword [0x4150ec], esi
push 0x4029f4
push 0x4029e4
call sub.MSVCR120_CLR0400.dll__initterm_e
pop ecx
pop ecx
test eax, eax
jne 0x404392
cmp dword [0x4150ec], esi
jne 0x402973
push 0x4029e0
push 0x4029cc
call 0x4a6000
pop ecx
pop ecx
mov dword [0x4150ec], 2
test edi, edi
jne 0x402980
xor eax, eax
mov ecx, 0x4150e8
xchg dword [ecx], eax
cmp dword [0x4150f8], 0
jne 0x4043a3
mov eax, dword [sym.imp.MSVCR120_CLR0400.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x20], esi
mov edi, dword [ebp - 0x24]
nop
nop
nop
nop
nop
nop
mov cl, byte [esi]
cmp cl, 0x20
jbe 0x402a14
cmp cl, 0x22
je 0x4043d1
movzx eax, cl
push eax
call dword [sym.imp.MSVCR120_CLR0400.dll__ismbblead]
pop ecx
test eax, eax
jne 0x4043e2
inc esi
mov dword [ebp - 0x20], esi
jmp 0x4029a0
test cl, cl
je 0x402a29
test edi, edi
je 0x402a29
jmp 0x4029a7
mov dword [0x415244], esi
jmp 0x402950
mov al, byte [esi]
test al, al
je 0x402a39
cmp al, 0x20
ja 0x402a39
inc esi
mov dword [ebp - 0x20], esi
jmp 0x402a29
push ebx
push esi
push 0
push 0x400000
call fcn.00403044
mov dword [0x415060], eax
cmp dword [0x415064], 0
jne 0x40441a
push eax
call dword [sym.imp.MSVCR120_CLR0400.dll_exit]
test ecx, ecx
je 0x402a82
push ecx
call fcn.0040117d
jmp 0x402a82
mov eax, esi
pop esi
pop ebp
ret 4
cmp eax, edx
jne 0x402905
xor esi, esi
inc esi
mov edi, esi
jmp 0x402918
push 0x1f
call sub.MSVCR120_CLR0400.dll__amsg_exit
pop ecx
jmp 0x402950
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x404435
push 0x4150f8
call fcn.0040fdd0
pop ecx
test eax, eax
je 0x40298d
push 0
push 2
push 0
mov esi, dword [0x4150f8]
mov ecx, esi
call dword [0x416268]
call esi
jmp 0x40298d
xor eax, eax
test edi, edi
sete al
mov edi, eax
mov dword [ebp - 0x24], edi
jmp 0x4029b0
inc esi
mov dword [ebp - 0x20], esi
jmp 0x4029c3
cmp dword [0x415244], 0
jne 0x40442e
call dword [sym.imp.MSVCR120_CLR0400.dll__cexit]
mov eax, dword [0x415060]
mov dword [ebp - 4], 0xfffffffe
call fcn.004032ee
ret