joyce8/EMBER2024-capa huggingface dataset:
Function at 0x532260
Capabilities:
Terminate process

Disassembly:
sub esp, 0x14
mov eax, dword [0x57c870]
mov dword [esp + 0x10], eax
xor eax, eax
mov dword [esp], eax
push ebx
mov ebx, eax
mov dword [esp + 0xc], eax
push eax
mov dword [esp + 0x14], eax
call fcn.00546830
add esp, 4
call fcn.0053a7bd
mov eax, dword [esp + 0x1c]
sub eax, 0xa
je 0x53231c
dec eax
jne 0x532323
mov ebx, 0xd2
push ebp
push esi
mov esi, dword [esp + 0x28]
inc ebx
test esi, esi
je 0x5323b9
mov ebp, dword [esp + 0x2c]
test ebp, ebp
je 0x5323b9
xor edx, edx
mov eax, esi
mov ecx, 7
div ecx
test edx, edx
jne 0x5323b9
test esi, 0x300
jne 0x5323b9
mov eax, esi
div ebp
mov eax, edx
xor edx, edx
div ebx
test edx, edx
jne 0x5323b9
push edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x54da8c
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
jne 0x53233d
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x10]
add esp, 0x14
jmp fcn.00532783
mov ebx, 0xd8
jmp 0x5322a3
test ebx, ebx
jne 0x5322a3
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x10]
add esp, 0x14
jmp fcn.00532783
push 0x54da80
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
mov dword [0x602b44], eax
je 0x532307
xor edx, edx
mov ecx, 0x137bf157
mov eax, esi
div ecx
mov eax, 0x137bf157
push ebx
mov ecx, edx
xor edx, edx
div edi
add ecx, 0x81
xor ecx, 0x137bf157
mov eax, ecx
mov ebx, edx
xor edx, edx
add ebx, 0xb3
div ebx
push edx
push edi
push esi
push 9
push 0
call fcn.00546830
add esp, 4
mov edi, eax
call fcn.0053a7bd
xor edi, eax
push edi
call dword [0x602b44]
add esp, 0x18
xor eax, ebp
pop edi
or eax, esi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x10]
add esp, 0x14
jmp fcn.00532783
mov ecx, dword [esp + 0x1c]
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x14
jmp fcn.00532783

Function at 0x532783
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x57c870]
jne 0x53278d
repz ret
jmp fcn.0053ebd1
Function at 0x546e95
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0053ef9d
and dword [ebp - 4], 0
cmp dword [0x6035b8], 0
mov ebx, eax
jne 0x546f46
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x546ff7
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x54f574
push edi
call esi
test eax, eax
je 0x546ff7
push eax
call fcn.0053ef2b
mov dword [esp], 0x54f564
push edi
mov dword [0x6035b8], eax
call esi
push eax
call fcn.0053ef2b
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x6035bc], eax
call esi
push eax
call fcn.0053ef2b
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x6035c0], eax
call esi
push eax
call fcn.0053ef2b
pop ecx
mov dword [0x6035c8], eax
test eax, eax
je 0x546f46
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0053ef2b
pop ecx
mov dword [0x6035c4], eax
mov eax, dword [0x6035c4]
cmp eax, ebx
je 0x546f9e
cmp dword [0x6035c8], ebx
je 0x546f9e
push eax
call fcn.0053efa6
push dword [0x6035c8]
mov esi, eax
call fcn.0053efa6
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x546f9e
test edi, edi
je 0x546f9e
call esi
test eax, eax
je 0x546f95
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x546f95
test byte [ebp - 0xc], 1
jne 0x546f9e
or dword [ebp + 0x10], 0x200000
jmp 0x546fd7
mov eax, dword [0x6035bc]
cmp eax, ebx
je 0x546fd7
push eax
call fcn.0053efa6
pop ecx
test eax, eax
je 0x546fd7
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x546fd7
mov eax, dword [0x6035c0]
cmp eax, ebx
je 0x546fd7
push eax
call fcn.0053efa6
pop ecx
test eax, eax
je 0x546fd7
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x6035b8]
call fcn.0053efa6
pop ecx
test eax, eax
je 0x546ff7
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x546ff9
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1564a92
Capabilities:
Packed with generic packer

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee4
pushal
call fcn.01564aa1

Function at 0x1565262
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
pushal
call fcn.0156526e

Function at 0x15658e7
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffffc
pushal
mov dword [ebp - 4], 0
call fcn.015658fa

Function at 0x1565961
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
pushal
mov dword [ebp - 4], 0
call fcn.01565974
Function at 0x52b7c0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xd7000]
push edi
jmp 0x52b7da
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x52b7e1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x52b7d0
mov eax, 1
add ebx, ebx
jne 0x52b7f3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x52b804
jne 0x52b823
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x52b823
dec eax
add ebx, ebx
jne 0x52b810
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x52b7e8
add ebx, ebx
jne 0x52b81f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x52b875
xor ecx, ecx
sub eax, 3
jb 0x52b83b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x52b8aa
sar eax, 1
mov ebp, eax
jmp 0x52b846
add ebx, ebx
jne 0x52b846
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x52b814
inc ecx
add ebx, ebx
jne 0x52b854
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x52b814
add ebx, ebx
jne 0x52b861
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x52b856
jne 0x52b872
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x52b856
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x52b894
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x52b886
jmp 0x52b7d6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x52b894
add edi, ecx
jmp 0x52b7d6
pop esi
mov edi, esi
mov ecx, 0x3ed9
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x52b8b2
cmp byte [edi], 0x11
jne 0x52b8b2
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x52b8b7
lea edi, [esi + 0x124000]
mov eax, dword [edi]
or eax, eax
je 0x52b92f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1803bc]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x180538]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x52b8e4
mov ecx, edi
jns 0x52b913
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x18053c]
or eax, eax
je 0x52b929
mov dword [ebx], eax
add ebx, 4
jmp 0x52b901
call dword [esi + 0x18054c]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x52b960
cmp al, 0xef
ja 0x52b953
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x52b935
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x52b942
mov ebp, dword [esi + 0x180540]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x227]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x52b994
sub esp, 0xffffff80
jmp 0x425f74
Function at 0x40105e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0xc]
mov esi, eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4010b5
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x4010a7
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, edi
and esi, 0xf
jbe 0x4010a3
cmp edi, eax
jae 0x4010a7
dec esi
movzx ecx, word [edi]
lea edi, [edi + ecx*2 + 2]
jne 0x401095
cmp edi, eax
jb 0x4010ab
xor eax, eax
jmp 0x4010b4
movzx eax, word [edi]
neg eax
sbb eax, eax
and eax, edi
pop edi
pop esi
pop ebp
ret

Function at 0x4014c2
Capabilities:
Delete directory
Delete file

Disassembly:
cmp dword [edi + 0xc], 0x8004ffff
push esi
je 0x401506
xor esi, esi
cmp dword [edi + 0x14], esi
je 0x4014ee
test esi, esi
js 0x40153b
cmp esi, dword [edi + 0x14]
jge 0x40153b
mov eax, dword [edi + 0x10]
push dword [eax + esi*4]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
inc esi
cmp esi, dword [edi + 0x14]
jne 0x4014d3
lea esi, [edi + 0x10]
call fcn.004027dd
lea esi, [edi + 0x1c]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
call fcn.00402725
mov eax, dword [edi + 0x20]
sub eax, 0x10
call fcn.00401153
mov eax, dword [edi + 0x1c]
sub eax, 0x10
call fcn.00401153
lea esi, [edi + 0x10]
call fcn.004027dd
mov eax, dword [edi + 8]
sub eax, 0x10
call fcn.00401153
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 0x401950
Capabilities:
Create directory
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push edi
mov edi, eax
mov eax, dword [edi]
push 0
push eax
call ebx
test eax, eax
jne 0x40197d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x40197d
xor al, al
jmp 0x401a02
mov eax, dword [0x413b20]
push esi
mov ecx, 0x413b20
call dword [eax + 0xc]
add eax, 0x10
push 0x104
lea esi, [ebp - 4]
mov dword [ebp - 4], eax
call fcn.00402b4a
mov edi, dword [edi]
push eax
push 0
push 0x411380
push edi
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov edi, eax
or eax, 0xffffffff
call fcn.00402b7f
test edi, edi
je 0x4019f4
cmp edi, 0x6f
je 0x4019f4
mov esi, dword [ebp - 4]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push esi
call ebx
test eax, eax
jne 0x4019da
lea eax, [esi - 0x10]
jmp 0x4019fa
mov edi, dword [ebp + 8]
add edi, 0x1c
lea eax, [ebp - 4]
call fcn.0040266a
lea eax, [esi - 0x10]
call fcn.00401153
mov al, 1
jmp 0x401a01
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.00401153
xor al, al
pop esi
pop edi
pop ebx
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.004086e0
mov eax, dword [ebx + 0x20]
add esp, 0xc
lea ecx, [ebp - 0x210]
push ecx
push edi
push 0x411388
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.00407526
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.00407469
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.00404eef
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.004099ff
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.00404da5
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.0040b022
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.004099ff
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.00404f5c
add esp, 0x24
test eax, eax
je 0x4020c8
push dword [ebp - 0x7c]
call fcn.0040b022
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.0040b022
pop ecx
push dword [ebp - 0x84]
call fcn.0040b022
pop ecx
xor eax, eax
jmp 0x402121
push dword [ebp - 0x7c]
call fcn.0040b022
pop ecx
push dword [ebp - 0x84]
call fcn.0040b022
pop ecx
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00407526
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.004086e0
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.00407526
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.004086e0
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 0x403461
Capabilities:
Parse pe header

Disassembly:
mov edx, dword [eax + 0x10]
cmp edx, 0x40
jae 0x40346c
xor eax, eax
ret
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x403469
mov eax, dword [ecx + 0x3c]
push esi
lea esi, [eax + 0xf8]
cmp edx, esi
jb 0x4034b8
add eax, ecx
cmp dword [eax], 0x4550
jne 0x4034b8
movzx ecx, word [eax + 4]
mov esi, 0x14c
cmp cx, si
je 0x4034a6
mov esi, 0x8664
cmp cx, si
je 0x4034b8
add eax, 0x98
mov ecx, dword [eax]
test ecx, ecx
je 0x4034b8
add ecx, 0xc
cmp edx, ecx
jae 0x4034ba
xor eax, eax
pop esi
ret

Function at 0x4034bc
Capabilities:
Delete file

Disassembly:
push esi
xor esi, esi
cmp dword [edi + 0x10], esi
je 0x4034df
test esi, esi
js 0x4034f3
cmp esi, dword [edi + 0x10]
jge 0x4034f3
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 0x4034c4
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 0x403505
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4022c
call fcn.00409640
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 0x40360c
cmp dword [ebp - 0x40224], esi
jne 0x40360c
push 4
lea eax, [ebp - 0x4010b]
push 0x411300
push eax
call fcn.00409a0a
add esp, 0xc
test eax, eax
jne 0x40358b
mov eax, dword [ebp - 0x40220]
mov byte [eax], 1
mov al, 1
jmp 0x40360e
push 5
lea eax, [ebp - 0x4010b]
push str.ustar
push eax
call fcn.00409a0a
add esp, 0xc
test eax, eax
jne 0x40360c
mov eax, dword [edi + 4]
sub eax, 0x10
call fcn.00402d14
add eax, 0x10
mov dword [ebp - 0x40214], eax
push 0x4113b0
lea eax, [ebp - 0x40214]
push eax
call fcn.00403745
lea eax, [ebp - 0x4020c]
push eax
lea eax, [ebp - 0x40214]
push eax
call fcn.00403745
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 0x40361e
lea eax, [esi - 0x10]
call fcn.00401153
xor al, al
mov ecx, dword [ebp - 8]
pop esi
xor ecx, ebp
pop ebx
call fcn.00407526
leave
ret 4
push 8
lea eax, [ebp - 0x40190]
push ebx
push eax
call fcn.0040b3f9
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 0x4036d9
mov ecx, dword [ebp - 0x40218]
mov eax, 0x40000
mov dword [ebp - 0x4021c], eax
cmp ecx, eax
jae 0x40367d
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 0x4036d3
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 0x4036d3
mov eax, dword [ebp - 0x4021c]
sub dword [ebp - 0x40218], eax
jne 0x403662
jmp 0x4036d9
mov byte [ebp - 0x4020d], bl
push dword [ebp - 0x40220]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [ebp - 0x4020d], bl
je 0x40371c
cmp byte [edi + 8], bl
je 0x403708
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 0x40371c
push dword [ebp - 0x40214]
push dword [edi + 0x1c]
call eax
pop ecx
pop ecx
cmp esi, 0xffffffff
je 0x40372c
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 0x40360e