joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4141c0
Capabilities:
Create thread

Disassembly:
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateThread]
push 0
push 0
push 0
push 0x4140c0
push 0
push 0
call esi
push 0
push 0
push 0
push 0x414110
push 0
push 0
call esi
push 0
push 0
push 0
push 0x414160
push 0
push 0
call esi
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x7530
call esi
jmp 0x4141b0
push ebp
mov ebp, esp
and esp, 0xfffffff8
call fcn.00409990
call fcn.00407380
mov ecx, 1
call fcn.004095a0
mov ecx, 1
call fcn.00409090
sub esp, 0x18
mov ecx, esp
call fcn.00405af0
call fcn.00409eb0
add esp, 0x18
call fcn.00411790
jmp 0x414170
Function at 0x401ed0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov edx, ecx
mov ecx, dword [ebp + 8]
mov dword [ebp - 4], edx
push ebx
test ecx, ecx
je 0x401f3f
mov ebx, dword [ebp + 0xc]
test ebx, ebx
je 0x401f3f
push esi
xor esi, esi
push edi
test ebx, ebx
je 0x401f29
mov eax, ebx
mov edi, 0x400000
sub eax, esi
cmp eax, edi
push 0
cmovb edi, eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [esi + ecx]
push eax
push dword [edx + 0xc]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x401f29
mov eax, dword [ebp + 0xc]
cmp edi, eax
jne 0x401f34
mov ecx, dword [ebp + 8]
add esi, edi
mov edx, dword [ebp - 4]
cmp esi, ebx
jb 0x401ef0
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
pop edi
add eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x401f50
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov edx, ecx
mov ecx, dword [ebp + 8]
mov dword [ebp - 4], edx
push ebx
test ecx, ecx
je 0x401fbf
mov ebx, dword [ebp + 0xc]
test ebx, ebx
je 0x401fbf
push esi
xor esi, esi
push edi
test ebx, ebx
je 0x401fa9
mov eax, ebx
mov edi, 0x400000
sub eax, esi
cmp eax, edi
push 0
cmovb edi, eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [esi + ecx]
push eax
push dword [edx + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x401fa9
mov eax, dword [ebp + 0xc]
cmp edi, eax
jne 0x401fb4
mov ecx, dword [ebp + 8]
add esi, edi
mov edx, dword [ebp - 4]
cmp esi, ebx
jb 0x401f70
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
pop edi
add eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x402120
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
lea eax, [ebp - 4]
push eax
push dword [ecx + 0xc]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
jne 0x402150
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x40214d
xor eax, eax
xor edx, edx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x100110b0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x98
call fcn.100338e0
mov eax, dword [esp + 0xa0]
push ebx
push ebp
mov ebp, dword [esp + 0xac]
mov ebx, dword [eax + 4]
push esi
mov esi, dword [esp + 0xb4]
mov dword [esp + 0x10], ebx
sub ebx, ebp
cmp esi, ebp
push edi
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x10], 0
jae 0x10011103
push str.orig_len___md_size
push 0x101
push str.._ssl_s3_cbc.c
call sub.LIBEAY32.dll_Ordinal_3244
add esp, 0xc
cmp ebp, 0x40
jbe 0x1001111f
push str.md_size___EVP_MAX_MD_SIZE
push 0x102
push str.._ssl_s3_cbc.c
call sub.LIBEAY32.dll_Ordinal_3244
add esp, 0xc
lea ecx, [esp + 0x28]
lea edx, [ebp + 0x100]
neg ecx
and ecx, 0x3f
cmp esi, edx
lea edi, [esp + ecx + 0x28]
mov dword [esp + 0x18], edi
jbe 0x10011147
mov eax, esi
sub eax, ebp
sub eax, 0x100
mov dword [esp + 0x10], eax
mov edx, dword [esp + 0x10]
mov eax, ebp
and al, 0xfe
mov ecx, ebp
shl eax, 0x17
sub eax, edx
xor edx, edx
add eax, ebx
mov esi, ecx
div ebp
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, esi
xor esi, esi
and ecx, 3
rep stosb byte es:[edi], al
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0xb8]
cmp edi, eax
mov dword [esp + 0x20], edx
jae 0x10011217
mov ecx, dword [esp + 0x14]
mov eax, ebx
shr eax, 0x1f
shr ecx, 0x1f
mov dword [esp + 0x10], eax
mov dword [esp + 0x24], ecx
jmp 0x100111a3
mov eax, dword [esp + 0x10]
mov ebx, dword [esp + 0x1c]
mov ecx, edi
mov edx, edi
sub ecx, ebx
mov ebx, dword [esp + 0x14]
shr ecx, 0x1f
shr edx, 0x1f
xor cl, al
xor al, dl
or cl, al
mov eax, edi
sub eax, ebx
mov bl, byte [esp + 0x24]
shr eax, 0x1f
xor al, bl
xor bl, dl
or al, bl
xor cl, dl
xor al, dl
mov edx, dword [esp + 0xb0]
dec cl
dec al
mov edx, dword [edx + 0xc]
not al
mov dl, byte [edi + edx]
and al, dl
and al, cl
mov ecx, dword [esp + 0x18]
mov bl, byte [esi + ecx]
or bl, al
mov byte [esi + ecx], bl
inc esi
mov eax, esi
mov ecx, esi
sub eax, ebp
xor ecx, ebp
xor eax, ebp
or eax, ecx
xor eax, esi
shr eax, 0x1f
neg eax
and esi, eax
mov eax, dword [esp + 0xb8]
inc edi
cmp edi, eax
jb 0x1001119b
mov edx, dword [esp + 0x20]
xor eax, eax
test ebp, ebp
jbe 0x10011251
mov edi, dword [esp + 0xac]
mov esi, dword [esp + 0x18]
mov ecx, edx
xor ecx, 0x20
mov cl, byte [ecx + esi]
mov cl, byte [edx + esi]
inc edx
mov byte [eax + edi], cl
mov ecx, edx
mov esi, edx
sub ecx, ebp
xor esi, ebp
xor ecx, ebp
or ecx, esi
xor ecx, edx
shr ecx, 0x1f
neg ecx
and edx, ecx
inc eax
cmp eax, ebp
jb 0x10011224
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x98
ret
Function at 0x10035d8e
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x1004b2f0
cmp edx, dword [eax]
je 0x10035db0
add eax, 8
inc ecx
cmp eax, 0x1004b380
jl 0x10035da1
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x1004b2f0]
jne 0x10035ede
mov eax, dword [0x1004bdf8]
cmp eax, 1
je 0x10035eb8
test eax, eax
jne 0x10035de1
cmp dword [0x1004bdfc], 1
je 0x10035eb8
cmp edx, 0xfc
je 0x10035ede
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x10035e18
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.10037220
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.10037370
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x10035e5b
lea eax, [ebp - 0x1a4]
push eax
call fcn.10037370
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x10043c50
push edi
call fcn.10033910
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.10037220
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.10037230
lea eax, [ebp - 0xa0]
push 0x10043c30
push eax
call fcn.10037230
push dword [esi + 0x1004b2f4]
lea eax, [ebp - 0xa0]
push eax
call fcn.10037230
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.10038865
add esp, 0x2c
pop edi
jmp 0x10035ede
lea eax, [ebp + 8]
lea esi, [esi + 0x1004b2f4]
push 0
push eax
push dword [esi]
call fcn.10037370
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x4010b5
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40110e
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4010ff
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [ebp + 8]
lea ecx, [esi + eax]
and edx, 0xf
jbe 0x4010fb
cmp esi, ecx
jae 0x4010ff
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
dec edx
jne 0x4010eb
cmp esi, ecx
jb 0x401103
xor eax, eax
jmp 0x40110d
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x401d06
Capabilities:
Create directory
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
push ebx
mov dword [ebp - 4], ecx
push dword [edi]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x401d34
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x401d34
xor al, al
jmp 0x401db2
call fcn.00401279
push eax
lea ecx, [ebp + 8]
call fcn.00402a67
or dword [ebp - 8], 0xffffffff
lea eax, [ebp + 8]
push 0x104
mov ecx, eax
mov dword [ebp - 0x10], eax
call fcn.00402cac
push eax
push ebx
push 0x4188d4
push dword [edi]
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea ecx, [ebp - 0x10]
mov edi, eax
call fcn.0040293d
test edi, edi
je 0x401da5
cmp edi, 0x6f
je 0x401da5
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x401da5
mov ecx, dword [ebp - 4]
lea eax, [ebp + 8]
push eax
add ecx, 0x1c
call fcn.004027d4
mov bl, 1
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.0040125d
mov al, bl
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x401dba
Capabilities:
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push edi
mov edi, ecx
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
test eax, eax
jne 0x401dd1
xor al, al
jmp 0x401e42
push ebx
push esi
call fcn.00401279
push eax
lea ecx, [ebp - 4]
call fcn.00402a67
or dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
push 0x104
mov ecx, eax
mov dword [ebp - 0x10], eax
call fcn.00402cac
push eax
xor ebx, ebx
mov dword [ebp - 0xc], eax
push ebx
push ebx
push 0x26
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea ecx, [ebp - 0x10]
mov esi, eax
call fcn.0040293d
test esi, esi
js 0x401e33
lea eax, [ebp - 4]
mov ecx, edi
push eax
call fcn.00401d06
test al, al
je 0x401e33
lea eax, [ebp - 4]
push eax
lea ecx, [edi + 0x20]
call fcn.004027d4
mov bl, 1
mov ecx, dword [ebp - 4]
add ecx, 0xfffffff0
call fcn.0040125d
pop esi
mov al, bl
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x401e47
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov esi, ecx
call fcn.00401279
push eax
lea ecx, [ebp - 4]
call fcn.00402a67
or dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov ebx, 0x104
mov dword [ebp - 0x10], eax
push ebx
mov ecx, eax
call fcn.00402cac
push eax
push ebx
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea ecx, [ebp - 0x10]
mov edi, eax
call fcn.0040293d
test edi, edi
je 0x401eb3
cmp edi, ebx
jae 0x401eb3
lea eax, [ebp - 4]
mov ecx, esi
push eax
call fcn.00401d06
test al, al
je 0x401eb3
lea eax, [ebp - 4]
push eax
lea ecx, [esi + 0x20]
call fcn.004027d4
mov bl, 1
jmp 0x401eb5
xor bl, bl
mov ecx, dword [ebp - 4]
add ecx, 0xfffffff0
call fcn.0040125d
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x401ec9
Capabilities:
Extract resource via kernel32 functions
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x41ace0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
xor ebx, ebx
push 0x206
mov word [ebp - 0x210], ax
mov edi, ecx
lea eax, [ebp - 0x20e]
or esi, 0xffffffff
push ebx
push eax
call fcn.00409490
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
push ebx
push 0x4188dc
push dword [edi + 0x20]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x401fd2
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x214]
call fcn.0040275f
lea eax, [ebp - 0x214]
push eax
lea ecx, [edi + 0x10]
call fcn.00402857
mov ecx, dword [ebp - 0x214]
lea ecx, [ecx - 0x10]
call fcn.0040125d
push 0x4187e4
push 0x66
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x401fd2
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x401fd2
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x401fd2
xor eax, eax
push eax
push eax
push 4
push eax
push eax
push 0xc0000000
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x401fd2
push esi
push ebx
xor ebx, ebx
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, eax
mov ecx, edi
call fcn.0040229d
pop ecx
test eax, eax
jne 0x401fc8
push ebx
push ebx
push ebx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x401fd2
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or esi, 0xffffffff
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00408990
mov esp, ebp
pop ebp
ret
Function at 0x401fe5
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov edi, ecx
call fcn.00401279
push eax
lea ecx, [ebp - 8]
call fcn.00402a67
or dword [ebp - 0xc], 0xffffffff
lea eax, [ebp - 8]
mov ebx, 0x104
mov dword [ebp - 0x14], eax
push ebx
mov ecx, eax
call fcn.00402cac
push ebx
push eax
xor ebx, ebx
mov dword [ebp - 0x10], eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [ebp - 0x14]
mov esi, eax
call fcn.0040293d
test esi, esi
je 0x402099
cmp esi, 0x104
jae 0x402099
push dword [edi + 0x1c]
lea ecx, [ebp - 4]
call fcn.0040275f
push 0x104
lea ecx, [ebp - 4]
call fcn.00402cac
push 0x418804
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov esi, dword [ebp - 4]
push dword [esi - 8]
push esi
call fcn.0040a4cd
pop ecx
pop ecx
push eax
lea ecx, [ebp - 4]
call fcn.00402ce4
push ebx
push esi
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x402091
lea eax, [ebp - 4]
push eax
lea ecx, [edi + 0x10]
call fcn.00402857
mov bl, 1
lea ecx, [esi - 0x10]
call fcn.0040125d
mov ecx, dword [ebp - 8]
add ecx, 0xfffffff0
call fcn.0040125d
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40246b
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x41ace0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, 0x11c
lea eax, [ebp - 0x120]
push esi
xor ebx, ebx
push ebx
push eax
call fcn.00409490
add esp, 0xc
mov dword [ebp - 0x120], esi
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4024d1
cmp dword [ebp - 0x11c], 5
jb 0x4024d1
jbe 0x4024be
mov bl, 1
jmp 0x4024d1
cmp dword [ebp - 0x118], 1
jae 0x4024ba
cmp word [ebp - 0xc], 4
sbb al, al
lea ebx, [eax + 1]
xor ecx, ecx
mov eax, 0x80040703
test bl, bl
pop esi
cmovne eax, ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00408990
mov esp, ebp
pop ebp
ret
Function at 0x403403
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov ecx, dword [ecx]
push ebx
push esi
push edi
sub ecx, 0x10
mov dword [ebp - 8], edx
call fcn.00402e6c
push 0x44
xor ebx, ebx
push ebx
lea esi, [eax + 0x10]
lea eax, [ebp - 0x5c]
mov dword [ebp - 4], esi
push eax
call fcn.00409490
xor eax, eax
lea edi, [ebp - 0x18]
stosd dword es:[edi], eax
add esp, 0xc
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
or dword [ebp - 0x30], 0x81
xor eax, eax
inc eax
mov word [ebp - 0x2c], ax
cmp dword [esi - 4], eax
jle 0x403464
push dword [esi - 0xc]
lea ecx, [ebp - 4]
call fcn.00402fcf
mov esi, dword [ebp - 4]
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x5c]
push eax
push ebx
push ebx
push 0x400
push ebx
push ebx
push ebx
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x40348f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 8]
mov dword [ecx], eax
jmp 0x4034c5
push 0xffffffffffffffff
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [ebp - 8]
test eax, eax
je 0x4034b2
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
setne bl
jmp 0x4034b5
xor ebx, ebx
inc ebx
push dword [ebp - 0x18]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push dword [ebp - 0x14]
call edi
lea ecx, [esi - 0x10]
call fcn.0040125d
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4034fb
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
push edi
mov esi, ecx
call fcn.00403598
xor edi, edi
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 4], eax
cmp eax, 0xffffffff
je 0x40358e
push edi
push edi
push edi
push 2
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [esi + 8], eax
test eax, eax
je 0x403587
push edi
push edi
push edi
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edx, eax
mov dword [esi + 0xc], edx
test edx, edx
je 0x40357e
push 6
pop ecx
mov dword [ebp - 0x1c], edi
xor eax, eax
lea edi, [ebp - 0x18]
rep stosd dword es:[edi], eax
push 0x1c
lea ecx, [ebp - 0x1c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40357e
mov ecx, dword [ebp - 0x10]
mov al, 1
mov dword [esi + 0x10], ecx
jmp 0x403590
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, esi
call fcn.00403598
xor al, al
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x40372d
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ecx + 0x10]
cmp esi, 0x40
jae 0x40373d
xor eax, eax
jmp 0x403792
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x403739
mov edx, dword [ecx + 0x3c]
lea eax, [edx + 0xf8]
cmp esi, eax
jb 0x403739
cmp dword [edx + ecx], 0x4550
jne 0x403739
movzx eax, word [edx + ecx + 4]
push edi
mov edi, 0x14c
cmp ax, di
je 0x40377a
mov edi, 0x8664
cmp ax, di
je 0x40378f
lea eax, [ecx + 0x98]
add eax, edx
mov ecx, dword [eax]
test ecx, ecx
je 0x40378f
add ecx, 0xc
cmp esi, ecx
jae 0x403791
xor eax, eax
pop edi
pop esi
pop ebp
ret 4
Function at 0x407c28
Capabilities:
Inspect section memory permissions

Disassembly:
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
cmp eax, ebx
je 0x407c50
aaa
test eax, 0x80000000
lea ecx, [eax + esi]
je 0x407c2b
and eax, 0xffff
push eax
jmp 0x407c2f
add ecx, 2
push ecx
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004075df
add esp, 0xc
cmp edi, ebx
mov dword [edi], eax
je 0x407e09
add edi, 4
add dword [ebp + 0x10], 4
jmp 0x407c10
add dword [ebp - 0x44], 0x14
mov edi, dword [ebp - 0x88]

Function at 0x407c66
Capabilities:
Inspect section memory permissions

Disassembly:
dec dword [ecx]
loopne 0x407ce7
sub cl, byte [ebx + 0xa087]
add byte [ebx], bh
ret
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x407cf1
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
push dword [ebx]
leave
mov edi, 0x60000000
jmp 0x407d0f
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x407d6d
mov edx, edi
mov dword [ebp + 8], edi
jge 0x407d3a
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x407d54
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x407d5d
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x407d67
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x407d49
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x407cd3
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x407dba
dec eax
je 0x407db1
sub eax, 3
je 0x407da8
mov dword [ebp - 4], 0x40
jmp 0x407dd7
mov dword [ebp - 4], 4
jmp 0x407dbd
mov dword [ebp - 4], 0x20
jmp 0x407dbd
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push dword [ebp + 8]
call dword [ebp - 0xbc]
test eax, eax
je 0x407e09
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x407d89
mov eax, dword [ebp - 0x88]
mov edi, dword [eax + 0x28]
add edi, esi
call fcn.0040761a
test ecx, ebx
int3

Function at 0x407c9a
Capabilities:
Inspect section memory permissions

Disassembly:
mov ecx, dword [ebp + 8]
movzx ecx, word [ecx]
mov edx, ecx
and edx, 0xf000
cmp edx, 0x3000
add byte [eax], dh
add byte [eax], al
add byte [eax], dh
add byte [eax], al
jne 0x407cb3
and ecx, 0xfff
mov edx, esi
sub edx, dword [edi + 0x34]
add ecx, esi
add ecx, dword [eax]
add dword [ecx], edx
jmp 0x407cbb
cmp edx, ebx
jne 0x407e09
mov ecx, dword [eax + 4]
add dword [ebp + 8], 2
add ecx, eax
cmp dword [ebp + 8], ecx
jb 0x407c8a
add eax, dword [eax + 4]
jmp 0x407c77
push 0x8000
push ebx
push esi
call dword [ebp - 8]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4081f0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
cwde
mov byte [ebp - 0x51a], 0x8f
mov byte [ebp - 0x519], 0x8f
mov byte [ebp - 0x518], 0xea
lea eax, [ebp - 0x524]
push eax
call fcn.0040762a
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.004075df
add esp, 0xc
mov dword [ebp - 0x39c], eax
call fcn.0040761a
rol dword [ebx + 0xf], 0x31
and byte [ebp - 0x514], 0
and byte [ebp - 0x513], 0
mov byte [ebp - 0x512], 0xe3
and byte [ebp - 0x511], 0
mov byte [ebp - 0x510], 0x5b
mov byte [ebp - 0x50f], 0x79
mov byte [ebp - 0x50e], 0x68
mov byte [ebp - 0x50d], 0x5a
mov byte [ebp - 0x50c], 0x75
mov byte [ebp - 0x50b], 0x70
mov byte [ebp - 0x50a], 0x79
mov byte [ebp - 0x509], 0x4f
mov byte [ebp - 0x508], 0x75
mov byte [ebp - 0x507], 0x66
mov byte [ebp - 0x506], 0x79
mov byte [ebp - 0x505], 0x1c
lea eax, [ebp - 0x514]
push eax
call fcn.0040762a
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.004075df
add esp, 0xc
mov dword [ebp - 0x33c], eax
call fcn.0040761a
scasd eax, dword es:[edi]
ljmp 1