joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40183e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
pushal
std
mov esi, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
lea edi, [esi + ecx + 7]
push esi
push ecx
lea esi, [esi + ecx]
dec esi
rep movsb byte es:[edi], byte [esi]
pop ecx
pop esi
lea eax, [ecx + 8]
mov dword [ebp - 4], eax
mov edi, esi
xor eax, eax
test cl, 3
je 0x40186a
inc eax
shr ecx, 2
add ecx, eax
shl ecx, 2
call fcn.00401950
cld
stosd dword es:[edi], eax
mov edx, eax
lea eax, [ecx + 8]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
stosd dword es:[edi], eax
shr ecx, 2
mov esi, edi
lodsd eax, dword [esi]
xor eax, edx
stosd dword es:[edi], eax
mov edx, eax
loop 0x40188a
popal
mov eax, dword [ebp - 8]
leave
ret 8

Function at 0x4020f6
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
pushal
lea esi, [ebp - 0x54]
lea edi, [ebp - 0x10]
push 0
push 0x44
push esi
call fcn.00401721
push 0
push 0x10
push edi
call fcn.00401721
mov dword [ebp - 0x54], 0x44
mov dword [ebp - 0x28], 1
mov word [ebp - 0x24], 0
mov eax, dword [ebp + 8]
cmp dword [ebp + 0xc], 0
je 0x402174
push dword [ebp + 8]
lea edx, [ebp - 0x25c]
push edx
call fcn.004015ee
lea edx, [ebp - 0x25c]
push edx
call fcn.0040176e
lea ecx, [ebp - 0x25c]
mov dword [eax + ecx], 0x20
push dword [ebp + 0xc]
lea edx, [ebp - 0x25c]
push edx
call fcn.00401702
lea eax, [ebp - 0x25c]
push edi
push esi
push 0
push 0
push 0
push 0
push 0
push 0
push eax
push 0
call dword [sym.imp.kernel32.dll_CreateProcessA]
popal
leave
ret 8

Function at 0x402190
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov dword [ebp - 0x10c], 0
pushal
mov edi, dword [ebp + 8]
cld
rdtsc
xor eax, edx
and eax, 0xf0f0f
add eax, 0x616161
mov dword [ebp - 4], eax
push edi
push 0x104
call dword [sym.imp.kernel32.dll_GetTempPathA]
test eax, eax
je 0x4021fd
lea edx, [ebp - 0x108]
push edx
push 0
lea edx, [ebp - 4]
push edx
push edi
call dword [sym.imp.kernel32.dll_GetTempFileNameA]
test eax, eax
je 0x4021fd
push 0x104
lea edx, [ebp - 0x108]
push edx
push edi
call fcn.00401736
mov dword [ebp - 0x10c], 1
popal
mov eax, dword [ebp - 0x10c]
leave
ret 4

Function at 0x40226e
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
pushal
mov dword [ebp - 8], 0
cmp dword [ebp + 0x14], 1
jne 0x402289
mov dword [ebp + 0x14], 3
push 0
push pe_nt_image_headers32
push 2
push 0
push dword [ebp + 0x14]
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_CreateFileA]
mov ebx, eax
inc eax
je 0x4022d2
lea eax, [ebp - 4]
push 0
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.kernel32.dll_WriteFile]
mov dword [ebp - 8], eax
push ebx
call dword [sym.imp.kernel32.dll_CloseHandle]
test eax, eax
jne 0x4022d2
mov dword [ebp - 8], 0
popal
mov eax, dword [ebp - 8]
leave
ret 0x10
Function at 0x40233c
Capabilities:
Get file attributes
Get file size
Read file on windows
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
pushal
mov dword [ebp - 0x10], 0
mov dword [ebp - 8], 0x64
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
mov dword [ebp - 4], eax
push pe_nt_image_headers32
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_SetFileAttributesA]
push 0
push pe_nt_image_headers32
push 3
push 0
push 0
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_CreateFileA]
mov ebx, eax
inc eax
je 0x4023fd
push 0
push ebx
call dword [sym.imp.kernel32.dll_GetFileSize]
mov ecx, dword [ebp + 0x14]
jecxz 0x40239b
mov dword [ecx], eax
mov ecx, dword [ebp + 0x10]
jecxz 0x4023a2
mov eax, ecx
mov dword [ebp + 0x10], eax
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x4023c1
cmp dword [ebp + 0x10], 0
je 0x402421
push dword [ebp + 0x10]
push 0x40
call dword [sym.imp.kernel32.dll_LocalAlloc]
test eax, eax
je 0x402421
mov esi, eax
mov edi, esi
lea eax, [ebp - 0xc]
push 0
push eax
push dword [ebp + 0x10]
push esi
push ebx
call dword [sym.imp.kernel32.dll_ReadFile]
mov eax, dword [ebp - 0xc]
sub dword [ebp + 0x10], eax
je 0x4023f8
test eax, eax
je 0x4023f8
add esi, eax
dec dword [ebp - 8]
jne 0x4023c5
cmp dword [ebp + 0xc], 0
je 0x402421
push edi
call dword [sym.imp.kernel32.dll_LocalFree]
xor edi, edi
mov dword [ebp - 0x10], edi
jmp 0x402421
push 0
push pe_nt_image_headers32
push 3
push 0
push 1
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_CreateFileA]
mov ebx, eax
inc eax
jne 0x40238b
push ebx
call dword [sym.imp.kernel32.dll_CloseHandle]
push dword [ebp - 4]
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_SetFileAttributesA]
popal
mov eax, dword [ebp - 0x10]
leave
ret 0x10

Function at 0x4024f4
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
pushal
call 0x40252d
push ebx
dec edi
inc esi
push esp
push edi
inc ecx
push edx
inc ebp
pop esp
dec ebp
imul esp, dword [ebx + 0x72], 0x666f736f
je 0x402572
push edi
imul ebp, dword [esi + 0x64], 0x5c73776f
inc ebx
jne 0x402593
jb 0x402588
outsb dx, byte [esi]
je 0x40257c
jb 0x40259c
imul ebp, dword [edi + 0x6e], 0x85c75e00
invalid
mov dword [ebp - 4], 0x186a0
add dword [eax], eax
push 0
push 0
push 0
push 0
lea edx, [ebp - 4]
push edx
lea edx, [ebp - 0x104]
push edx
push dword [ebp - 0x108]
push dword [ebp - 0x10c]
mov ch, 0xf8
invalid
call dword [sym.imp.advapi32.dll_RegEnumKeyExA]
cmp eax, 0x103
add byte [eax], al
je 0x402604
lea edx, [ebp - 0x104]
push edx
call fcn.00402489
cmp eax, 1
je 0x4025b9
inc dword [ebp - 0x108]
jmp 0x40256d
cmp dword [ebp + 8], 0
je 0x4025fa
lea edx, [ebp - 0x104]
push edx
push esi
call fcn.004017de
push dword [ebp + 8]
push eax
call fcn.004015ee
cmp dword [ebp + 0xc], 0
je 0x4025fa
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 0
push 8
push 0
push 0
push dword [ebp - 0x10c]
call dword [sym.imp.advapi32.dll_RegGetValueA]
cmp eax, 0
jne 0x402604
mov dword [ebp - 0x110], 1
push dword [ebp - 0x10c]
call dword [sym.imp.advapi32.dll_RegCloseKey]
popal
mov eax, dword [ebp - 0x110]
leave
ret 0xc
Function at 0x40252d
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
pushal
call 0x40252d
push ebx
dec edi
inc esi
push esp
push edi
inc ecx
push edx
inc ebp
pop esp
dec ebp
imul esp, dword [ebx + 0x72], 0x666f736f
je 0x402572
push edi
imul ebp, dword [esi + 0x64], 0x5c73776f
inc ebx
jne 0x402593
jb 0x402588
outsb dx, byte [esi]
je 0x40257c
jb 0x40259c
imul ebp, dword [edi + 0x6e], 0x85c75e00
invalid
mov dword [ebp - 4], 0x186a0
add dword [eax], eax
push 0
push 0
push 0
push 0
lea edx, [ebp - 4]
push edx
lea edx, [ebp - 0x104]
push edx
push dword [ebp - 0x108]
push dword [ebp - 0x10c]
mov ch, 0xf8
invalid
call dword [sym.imp.advapi32.dll_RegEnumKeyExA]
cmp eax, 0x103
add byte [eax], al
je 0x402604
lea edx, [ebp - 0x104]
push edx
call fcn.00402489
cmp eax, 1
je 0x4025b9
inc dword [ebp - 0x108]
jmp 0x40256d
cmp dword [ebp + 8], 0
je 0x4025fa
lea edx, [ebp - 0x104]
push edx
push esi
call fcn.004017de
push dword [ebp + 8]
push eax
call fcn.004015ee
cmp dword [ebp + 0xc], 0
je 0x4025fa
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 0
push 8
push 0
push 0
push dword [ebp - 0x10c]
call dword [sym.imp.advapi32.dll_RegGetValueA]
cmp eax, 0
jne 0x402604
mov dword [ebp - 0x110], 1
push dword [ebp - 0x10c]
call dword [sym.imp.advapi32.dll_RegCloseKey]
popal
mov eax, dword [ebp - 0x110]
leave
ret 0xc

Function at 0x402f98
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x310
pushal
lea edx, [ebp - 0x30c]
push edx
push 0x104
call dword [sym.imp.kernel32.dll_GetTempPathA]
push 0x40601c
lea edx, [ebp - 0x30c]
push edx
call fcn.00401702
lea edx, [ebp - 0x208]
push edx
call fcn.00402190
push 0x406214
lea edx, [ebp - 0x208]
push edx
call fcn.00401702
push 0
push 0x1db
push 0x406039
lea edx, [ebp - 0x30c]
push edx
call fcn.0040226e
push 0
push 0x278
push 0x40622d
lea edx, [ebp - 0x208]
push edx
call fcn.0040226e
push 0x406219
lea edx, [ebp - 0x208]
push edx
call fcn.00401702
cmp eax, 0
je 0x40305e
lea edx, [ebp - 0x208]
push edx
push 0x406010
call fcn.004020f6
push 0x1f4
call dword [sym.imp.kernel32.dll_Sleep]
lea edx, [ebp - 0x208]
push edx
call dword [sym.imp.kernel32.dll_DeleteFileA]
lea edx, [ebp - 0x30c]
push edx
call dword [sym.imp.kernel32.dll_DeleteFileA]
popal
leave
ret
Function at 0x4030b1
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
pushal
mov edi, 0x415108
push 0
push 0xa
push edi
call fcn.004018eb
push edi
call fcn.0040176e
add edi, eax
lea edx, [eax + 1]
inc edi
push edi
mov esi, 0x40a4b3
mov ecx, 0x14
rep movsb byte es:[edi], byte [esi]
mov esi, 0x40a44f
mov ecx, 0x64
rep movsb byte es:[edi], byte [esi]
mov esi, 0x40a4c7
mov ecx, 0x4388
rep movsb byte es:[edi], byte [esi]
pop edi
lea eax, [edx + 0x4400]
push eax
push 0x415108
call fcn.0040183e
mov edi, eax
push section..bss
call fcn.00403061
push 0
push section..bss
push 0x40eb02
call fcn.00402691
push 1
push 0
push 0
push 0
call fcn.0040317f
push section..bss
push 0x40e8e5
call fcn.004017de
push 0
lea edx, [ebp - 4]
push edx
push 0
push 0x20006
push 0
push 0
push 0
push eax
push 0x80000002
call dword [sym.imp.advapi32.dll_RegCreateKeyExA]
cmp eax, 0
jne 0x40317c
push edi
push 0x415108
push 3
push 0
push 0
push dword [ebp - 4]
call dword [sym.imp.advapi32.dll_RegSetValueExA]
popal
leave
ret

Function at 0x403551
Capabilities:
Get common file path
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov word [ebp - 0x24], 1
pushal
mov dword [ebp - 0x28], 0
mov edi, 0x40ed0b
cld
mov eax, 0x402d5f
stosd dword es:[edi], eax
mov eax, 0x402bc6
stosd dword es:[edi], eax
mov eax, 0x402ca9
stosd dword es:[edi], eax
mov eax, 0x402d07
stosd dword es:[edi], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.00403434
cmp eax, 1
je 0x40360a
push 0x3e8
push 0x42dbd0
call dword [sym.imp.kernel32.dll_GetWindowsDirectoryA]
mov al, byte [0x42dbd0]
mov byte [0x42dcd4], al
lea edx, [ebp - 0x24]
push edx
call dword [sym.imp.kernel32.dll_GetNativeSystemInfo]
push dword [ebp - 0x24]
pop dword [0x42d938]
push 0x42d93c
push 0x40eb8c
call fcn.004022da
mov dword [0x42d954], eax
test eax, eax
jne 0x4035ef
push 0x42d93c
push 0x40ebd0
call fcn.004022da
test eax, eax
je 0x40360a
mov dword [0x42d954], eax
push 0x42d95c
push 0x40ec11
call fcn.004022da
mov dword [0x42d958], eax
test eax, eax
je 0x40360a
mov dword [ebp - 0x28], eax
popal
mov eax, dword [ebp - 0x28]
leave
ret

Function at 0x40426c
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
pushal
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
xor ebx, ebx
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040568d
mov esi, eax
mov edi, dword [ebp + 0xc]
push 0
push 0x2c
lea edx, [ebp - 0x38]
push edx
call fcn.00401721
mov ecx, esi
lea edx, [ebp - 0x38]
call fcn.004026fd
test eax, eax
je 0x404301
cmp byte [ebp - 0x25], 0xcc
jne 0x4042c2
inc dword [ebp - 0xc]
jmp 0x4042f1
mov ecx, dword [ebp - 0xc]
jecxz 0x4042f1
cmp ecx, dword [ebp + 0x14]
jb 0x4042ea
mov eax, edi
sub eax, ecx
push ecx
push eax
push dword [ebp + 0x18]
call fcn.004041f9
cmp eax, 1
jne 0x404301
add dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 0x28]
jae 0x404301
mov dword [ebp - 0xc], 0
xor eax, eax
mov al, byte [ebp - 0x38]
add esi, eax
add edi, eax
add ebx, eax
cmp ebx, dword [ebp + 0x10]
jb 0x4042a9
popal
mov eax, dword [ebp - 8]
leave
ret 0x24
Function at 0x404309
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
pushal
mov dword [ebp - 7], 0
mov dword [ebp - 0xf], 0
mov dword [ebp - 0xb], 0
xor ebx, ebx
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040568d
mov esi, eax
mov edi, dword [ebp + 0xc]
push 0
push 0x39
lea edx, [ebp - 0x48]
push edx
call fcn.00401721
mov ecx, esi
lea edx, [ebp - 0x48]
call fcn.00401985
test eax, eax
je 0x40439e
cmp byte [ebp - 0x30], 0xcc
jne 0x40435f
inc dword [ebp - 0xf]
jmp 0x40438e
mov ecx, dword [ebp - 0xf]
jecxz 0x40438e
cmp ecx, dword [ebp + 0x14]
jb 0x404387
mov eax, edi
sub eax, ecx
push ecx
push eax
push dword [ebp + 0x18]
call fcn.004041f9
cmp eax, 1
jne 0x40439e
add dword [ebp - 0xb], ecx
mov eax, dword [ebp - 0xb]
cmp eax, dword [ebp + 0x28]
jae 0x40439e
mov dword [ebp - 0xf], 0
xor eax, eax
mov al, byte [ebp - 0x48]
add esi, eax
add edi, eax
add ebx, eax
cmp ebx, dword [ebp + 0x10]
jb 0x404346
popal
mov eax, dword [ebp - 0xb]
leave
ret 0x24

Function at 0x4043a6
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
pushal
mov dword [ebp - 7], 0
mov dword [ebp - 0xf], 0
mov dword [ebp - 0xb], 0
xor ebx, ebx
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040568d
mov esi, eax
mov edi, dword [ebp + 0xc]
push 0
push 0x39
lea edx, [ebp - 0x48]
push edx
call fcn.00401721
mov ecx, esi
lea edx, [ebp - 0x48]
call fcn.00401985
test eax, eax
jne 0x404416
mov edx, dword [ebp + 0xc]
add edx, ebx
push edx
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x24]
push dword [ebp + 8]
call fcn.004055c9
mov ecx, dword [ebp + 0xc]
add ecx, dword [ebp + 0x10]
cmp ecx, eax
jbe 0x404460
sub eax, edx
jmp 0x404455
cmp byte [ebp - 0x30], 0xcc
jne 0x404421
inc dword [ebp - 0xf]
jmp 0x404450
mov ecx, dword [ebp - 0xf]
jecxz 0x404450
cmp ecx, dword [ebp + 0x14]
jb 0x404449
mov eax, edi
sub eax, ecx
push ecx
push eax
push dword [ebp + 0x18]
call fcn.004041f9
cmp eax, 1
jne 0x404460
add dword [ebp - 0xb], ecx
mov eax, dword [ebp - 0xb]
cmp eax, dword [ebp + 0x28]
jae 0x404460
mov dword [ebp - 0xf], 0
xor eax, eax
mov al, byte [ebp - 0x48]
add esi, eax
add edi, eax
add ebx, eax
cmp ebx, dword [ebp + 0x10]
jb 0x4043e3
popal
mov eax, dword [ebp - 0xb]
leave
ret 0x24
Function at 0x40471d
Capabilities:
Copy file
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0
pushal
mov dword [ebp - 0xa0], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x20], 0
push 0x41123a
push 0x41112c
push dword [ebp + 8]
call fcn.004038b1
cmp eax, 0
je 0x404975
push dword [ebp + 8]
call fcn.0040467b
mov dword [ebp - 4], eax
push eax
call fcn.004046f6
push 0
push 0x41112c
push 0x40671a
call fcn.00402691
push 0
push 0x41123a
push 0x406710
call fcn.00402691
lea edx, [ebp - 0x88]
push edx
push 0
push 0
push dword [ebp + 8]
call fcn.0040233c
test eax, eax
je 0x404975
mov dword [ebp - 0x8c], eax
push 0x10000
call fcn.00402071
test eax, eax
je 0x404975
mov dword [ebp - 0x18], eax
lea edx, [ebp - 0x60]
push edx
lea edx, [ebp - 0x7c]
push edx
lea edx, [ebp - 0x80]
push edx
lea edx, [ebp - 0x84]
push edx
lea edx, [ebp - 0x6c]
push edx
lea edx, [ebp - 0x78]
push edx
push dword [ebp - 0x8c]
call fcn.00403838
cmp dword [ebp - 0x84], 0
je 0x404975
push dword [ebp - 4]
lea edx, [ebp - 0x20]
push edx
lea edx, [ebp - 0xc]
push edx
lea edx, [ebp - 0x10]
push edx
push 0xa6
push dword [ebp - 0x7c]
push dword [ebp - 0x80]
push dword [ebp - 0x6c]
push dword [ebp - 0x84]
push dword [ebp - 0x8c]
call fcn.00403f9b
push dword [ebp - 0xc]
push 0x40eb0b
call fcn.00404468
push dword [ebp - 0x10]
push 0x40eb29
call fcn.00404468
mov dword [ebp - 0x14], eax
push dword [ebp - 0x10]
push dword [ebp - 0x18]
push dword [ebp - 0x7c]
push dword [ebp - 0x80]
push dword [ebp - 0x84]
push dword [ebp - 0x8c]
call fcn.0040448c
push eax
push 0x40eb3d
call fcn.00404468
cmp eax, dword [ebp - 0xc]
jae 0x40487a
jmp 0x404975
push dword [ebp - 0x7c]
push dword [ebp - 0x80]
push dword [ebp - 0x84]
push dword [ebp - 0x8c]
call fcn.0040453a
test eax, eax
je 0x404975
mov byte [0x42efe1], 0
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push 0xa6
push 0x40efbf
push dword [ebp - 0x18]
push dword [ebp - 0x14]
push dword [ebp - 0x8c]
call fcn.00403d73
push eax
push 0x40eb4f
call fcn.00404468
cmp eax, 0
je 0x404975
push dword [ebp + 8]
push 0x40e85d
call fcn.0040202e
push 0x41112c
push 0x40e86d
call fcn.0040202e
push dword [ebp - 0x14]
call fcn.0040208e
push dword [ebp - 0x18]
call fcn.0040208e
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
push 0x41112c
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_MoveFileA]
push 0
push dword [ebp + 8]
push 0x41112c
call dword [sym.imp.kernel32.dll_CopyFileA]
push 0
push 0x42efe1
push dword [ebp + 8]
push 0x41112c
call fcn.0040317f
push 0
push dword [ebp - 0x88]
push dword [ebp - 0x8c]
push dword [ebp + 8]
call fcn.0040226e
test eax, eax
je 0x404975
push dword [ebp - 0x84]
push 0x41123a
call fcn.00405024
mov dword [ebp - 0xa0], 1
cmp dword [ebp - 0x14], 0
je 0x404983
push dword [ebp - 0x14]
call fcn.0040208e
cmp dword [ebp - 0x18], 0
je 0x404991
push dword [ebp - 0x18]
call fcn.0040208e
popal
mov eax, dword [ebp - 0xa0]
leave
ret 4
Function at 0x4049e0
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
pushal
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
push dword [ebp + 0x10]
push 1
push 6
call dword [sym.imp.kernel32.dll_OpenFileMappingA]
test eax, eax
jne 0x404a1c
push 0xc8
call dword [sym.imp.kernel32.dll_Sleep]
inc dword [ebp - 4]
cmp dword [ebp - 4], 0x14
jb 0x4049f5
jmp 0x404a8f
mov ebx, eax
mov dword [ebp - 4], 0
push dword [ebp + 0xc]
push 0
push 0
push 6
push ebx
call dword [sym.imp.kernel32.dll_MapViewOfFile]
test eax, eax
jne 0x404a4f
push 0xc8
call dword [sym.imp.kernel32.dll_Sleep]
inc dword [ebp - 4]
cmp dword [ebp - 4], 0x14
jb 0x404a25
jmp 0x404a88
mov esi, eax
mov edi, dword [ebp + 8]
push 0xc8
call dword [sym.imp.kernel32.dll_Sleep]
push dword [ebp + 0xc]
push esi
push edi
call fcn.00401736
mov dword [esi], 0x21444e45
push 0xc8
call dword [sym.imp.kernel32.dll_Sleep]
push esi
call dword [sym.imp.kernel32.dll_UnmapViewOfFile]
mov dword [ebp - 8], 1
push ebx
call dword [sym.imp.kernel32.dll_CloseHandle]
popal
mov eax, dword [ebp - 8]
leave
ret 0xc

Function at 0x404f60
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x260
mov dword [ebp - 0x58], 1
mov dword [ebp - 0x14], 1
pushal
mov dword [ebp - 4], 0
lea esi, [ebp - 0x58]
lea edi, [ebp - 0x14]
push 0
push 0x44
push esi
call fcn.00401721
push 0
push 0x10
push edi
call fcn.00401721
mov dword [ebp - 0x58], 0x44
mov dword [ebp - 0x58], 0x44
mov dword [ebp - 0x2c], 1
mov word [ebp - 0x28], 0
mov eax, dword [ebp + 8]
cmp dword [ebp + 0xc], 0
je 0x404ffa
push dword [ebp + 8]
lea edx, [ebp - 0x260]
push edx
call fcn.004015ee
lea edx, [ebp - 0x260]
push edx
call fcn.0040176e
lea ecx, [ebp - 0x260]
mov dword [eax + ecx], 0x20
push dword [ebp + 0xc]
lea edx, [ebp - 0x260]
push edx
call fcn.00401702
lea eax, [ebp - 0x260]
push edi
push esi
push 0
push 0
push 0
push 0
push 0
push 0
push eax
push 0
call dword [sym.imp.kernel32.dll_CreateProcessA]
test eax, eax
je 0x40501c
mov dword [ebp - 4], 1
popal
mov eax, dword [ebp - 4]
leave
ret 8
Function at 0x40506c
Capabilities:
Get file attributes
Get file size
Read file on windows
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
pushal
mov dword [ebp - 0x1c], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x18], pe_nt_image_headers32
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
inc eax
je 0x4050ad
dec eax
mov dword [ebp - 0x18], eax
push pe_nt_image_headers32
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_SetFileAttributesA]
push 0
push pe_nt_image_headers32
push 4
push 0
push 0
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_CreateFileA]
mov dword [ebp - 0x14], eax
inc eax
je 0x4051dd
push 0
push dword [ebp - 0x14]
call dword [sym.imp.kernel32.dll_GetFileSize]
mov esi, eax
mov dword [ebp - 0x10], eax
cmp eax, dword [ebp + 0x14]
jae 0x4050f1
mov dword [ebp + 0x14], eax
mov dword [ebp - 8], 1
test eax, eax
je 0x40515f
push eax
push 0x40
call dword [sym.imp.kernel32.dll_LocalAlloc]
test eax, eax
je 0x4051cb
mov edi, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 4]
push 0
push eax
push esi
push edi
push dword [ebp - 0x14]
call dword [sym.imp.kernel32.dll_ReadFile]
dec eax
jne 0x4051bc
add edi, dword [ebp - 4]
sub esi, dword [ebp - 4]
jne 0x40510b
push 0
push 0
push 0
push dword [ebp - 0x14]
call dword [sym.imp.kernel32.dll_SetFilePointer]
inc eax
je 0x4051bc
mov edi, dword [ebp - 0xc]
mov esi, dword [ebp + 0x14]
lea eax, [ebp - 4]
push 0
push eax
push esi
push edi
push dword [ebp - 0x14]
call dword [sym.imp.kernel32.dll_WriteFile]
dec eax
jne 0x4051bc
add edi, dword [ebp - 4]
sub esi, dword [ebp - 4]
jne 0x405143
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
lea eax, [ebp - 4]
push 0
push eax
push esi
push edi
push dword [ebp - 0x14]
call dword [sym.imp.kernel32.dll_WriteFile]
dec eax
jne 0x4051bc
add edi, dword [ebp - 4]
sub esi, dword [ebp - 4]
jne 0x405165
cmp dword [ebp - 8], 1
je 0x4051bc
cmp dword [ebp - 0xc], 0
je 0x4051cb
mov edi, dword [ebp - 0xc]
add edi, dword [ebp + 0x14]
mov esi, dword [ebp - 0x10]
sub esi, dword [ebp + 0x14]
lea eax, [ebp - 4]
push 0
push eax
push esi
push edi
push dword [ebp - 0x14]
call dword [sym.imp.kernel32.dll_WriteFile]
dec eax
jne 0x4051bc
add edi, dword [ebp - 4]
sub esi, dword [ebp - 4]
jne 0x405199
mov dword [ebp - 0x1c], 1
cmp dword [ebp - 0xc], 0
je 0x4051cb
push dword [ebp - 0xc]
call dword [sym.imp.kernel32.dll_LocalFree]
push dword [ebp - 0x14]
call dword [sym.imp.kernel32.dll_CloseHandle]
cmp dword [ebp - 0x1c], 0
je 0x4051dd
mov dword [ebp - 0x1c], eax
push dword [ebp - 0x18]
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_SetFileAttributesA]
popal
mov eax, dword [ebp - 0x1c]
leave
ret 0x10
Function at 0x4012a0
Capabilities:
Create thread

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
mov esi, dword [esp + 0x1c]
lea eax, [esp + 0x10]
push edi
lea ecx, [esp + 0x10]
push eax
lea edx, [esp + 0x24]
push ecx
push edx
or edi, 0xffffffff
push str._08x__08x__08x
push esi
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
mov dword [0x40e030], edi
mov dword [0x40f510], edi
call fcn.00401699
mov eax, dword [esp + 0x34]
add esp, 0x14
add esi, 0x1b
push eax
push 0
push 0x1f0fff
mov dword [0x40f514], esi
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
cmp esi, edi
je 0x4013bb
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 2
push 0
push 0
push 0x40e030
call edi
mov ecx, dword [esp + 0x20]
mov ebx, dword [sym.imp.KERNEL32.dll_DuplicateHandle]
push eax
push ecx
push esi
call ebx
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x4013b8
cmp dword [0x40e030], 0xffffffff
je 0x4013b8
push 2
push 0
push 0
push 0x40e034
call edi
mov edx, dword [esp + 0x24]
push eax
push edx
push esi
call ebx
test eax, eax
je 0x4013b0
cmp dword [0x40e034], 0xffffffff
je 0x4013b0
mov ecx, dword [0x40e030]
lea eax, [esp + 0x18]
push eax
push 0
push ecx
push 0x4013d0
push 0
push 0
call fcn.00401560
add esp, 0x18
mov dword [0x40f510], eax
push esi
call ebp
mov eax, dword [0x40f510]
test eax, eax
je 0x4013a7
cmp eax, 0xffffffff
je 0x4013a7
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4013a7
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0xc
ret
mov edx, dword [0x40e034]
push edx
call ebp
mov eax, dword [0x40e030]
push eax
call ebp
push esi
call ebp
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0xc
ret