joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406c81
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x460114], 0
jne 0x406cbf
xor ecx, ecx
push esi
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
movzx edx, dl
neg edx
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406c95
mov dword [ecx*4 + 0x460110], eax
inc ecx
cmp ecx, 0x100
jl 0x406c90
pop esi
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp + 8]
not eax
jbe 0x406cec
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
dec dword [ebp + 0x10]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x460110]
inc ecx
cmp dword [ebp + 0x10], 0
ja 0x406ccd
not eax
pop ebp
ret 0xc

Function at 0x4282a0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x17000]
push edi
jmp 0x4282ba
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4282c1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4282b0
mov eax, 1
add ebx, ebx
jne 0x4282d3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4282c8
jne 0x4282e4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4282c8
xor ecx, ecx
sub eax, 3
jb 0x4282f8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x42836a
mov ebp, eax
add ebx, ebx
jne 0x428303
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x428310
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x428334
inc ecx
add ebx, ebx
jne 0x428320
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x428315
jne 0x428331
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x428315
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x428354
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x428345
jmp 0x4282b6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x428354
add edi, ecx
jmp 0x4282b6
pop esi
mov edi, esi
mov ecx, 0x115
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x428372
cmp byte [edi], 3
jne 0x428372
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 0x428377
lea edi, [esi + 0x26000]
mov eax, dword [edi]
or eax, eax
je 0x4283e6
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x28000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x280c4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4283a4
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x280cc]
or eax, eax
je 0x4283e0
mov dword [ebx], eax
add ebx, 4
jmp 0x4283c1
call dword [esi + 0x280c8]
mov ebp, dword [esi + 0x280d0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1ef]
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 0x42841a
sub esp, 0xffffff80
jmp 0x409ac0
Function at 0x407180
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x4071be
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x4071b6
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x4071c0
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x4071a6
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4072a0
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
je 0x4072b6
xor eax, eax
pop ebp
ret
mov ecx, dword [eax + 0x3c]
add ecx, eax
xor eax, eax
cmp dword [ecx], 0x4550
jne 0x4072d1
mov edx, 0x10b
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x408ecc
nop
mov ecx, 0x7bdb122d
nop
nop
nop
test eax, eax
nop
je 0x43004e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x430024
nop
nop
mov eax, section..rdata
nop
nop
mov ebx, 0x42e1d0
mov ecx, 0x35fc6265
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x430084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43006c
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x405d97
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push edi
push esi
push ebx
mov dword [ebp - 4], eax
mov eax, 0x13
cmp cl, 0
jne 0x405d6b
mov eax, dword [ebp + 0xc]
cmp eax, 2
jge 0x405d61
mov eax, 2
cmp eax, 0x12
jle 0x405d6b
mov eax, 0x12
mov dword [ebp + 0xc], eax
push eax
mov eax, 0x270f
cmp byte [ebp + 0x10], 2
jb 0x405d7d
invalid
mov eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0x1c]
call fcn.004062da
mov edi, dword [ebp - 4]
movzx eax, word [ebp - 0x1c]
sub eax, 0x7fff
cmp eax, 2
jae 0x405da7
push 0x3300a45c
mov edi, 0x167186c4
pop ecx
xor edi, ecx
mov esi, 0x22aaf89c
xor edi, esi
xor edi, 0x5a20aa01
push 0x75928c1b
mov ecx, 0x35161c7f
pop esi
xor ecx, esi
push ecx
stosb byte es:[edi], al
and dh, byte [ecx]
test dword [ecx + 0x20aa01f7], 0x8c1b685a
xchg edx, eax
jne 0x405d70
jg 0x405dd5
push ss
xor eax, 0x51f1315e
mov edx, 0x8312000
mov ecx, 0x150e1109
xor edx, ecx
pop ebx
xor edx, ebx
xor edx, edi
add esp, 0xfffffffc
mov ecx, esp
mov dword [ecx], edx
pop esi
sub esi, 0xfffffff2
mov eax, dword [esi - 0xe]
mov ebx, 2
add ebx, 0xfffffffe
push ebx
mov ecx, 0x17864408
mov ebx, 0x17864408
xor ebx, ecx
xor ebx, esp
mov ecx, 4
sub esp, ecx
mov dword [esp], ebx
push 0x827bfe4
mov esi, 0x827bfa4
pop ecx
xor esi, ecx
push esi
mov edx, 0x1e00
mov ebx, 0x8000
xor edx, ebx
push edx
mov edi, 0x7b931125
xor edi, 0x7bd30125
push edi
call eax
pop edi
push 0x67376302
mov edi, 0xa66635a
pop esi
xor edi, esi
push 0x6b9a255f
mov ecx, 0x6b107d7d
pop edx
xor ecx, edx
xor edi, ecx
mov ecx, 0x462b4180
mov eax, 0x1880000c
xor ecx, eax
push ecx
mov ebx, 0x10001a40
mov ecx, 0x23700093
xor ebx, ecx
pop edx
xor ebx, edx
xor ebx, edi
mov edi, 0x5f333d30
xor edi, 0x2d0a672d
push edi
mov edx, 0x20208b
mov edi, 0x9c9c340
xor edx, edi
mov ecx, 0x7b90f315
xor edx, ecx
pop esi
xor edx, esi
push 0x74f7e01e
mov eax, 0xe2d5ee8
pop edi
xor eax, edi
mov esi, eax
xor esi, 0xffffffff
and esi, 0x7adab2d6
and eax, 0x85254d29
or eax, esi
mov ecx, 0x76c50419
xor ecx, 0x76c504d9
mov esi, 0x8004
mov edi, 0x400000
xor esi, edi
xor ecx, esi
xor eax, ecx
xor ecx, ecx
add ecx, ebx
mov esi, 4
sub esp, esi
mov dword [esp], ecx
mov edi, eax
mov esi, 4
sub esp, esi
xor ecx, ecx
add ecx, esp
mov dword [ecx], edi
xor ebx, ebx
mov bl, byte [edx]
add eax, ebx
mov bl, byte [eax]
mov ecx, 0x50104581
mov edi, 0x24068002
xor ecx, edi
mov edi, 0x703ed58f
xor ecx, edi
mov edi, 0x5a9aeeaf
mov esi, 0xd0dfeced
xor esi, edi
xor ecx, esi
xor esi, esi
add esi, eax
sub esi, 0
je 0x405ec3
pop eax
mov byte [edx], bl
dec edx
pop ebx
dec ebx
xor ecx, ecx
add ecx, ebx
and ecx, 0xffffffff
jne 0x405ec3
mov esi, 0x46839caa
xor esi, 0x4418384d
push 0x62954d48
mov ebx, 0x3837398e
pop edi
xor ebx, edi
xor ebx, esi
push 0x768eca80
mov eax, 0x769e4c22
pop ecx
xor eax, ecx
push 0x2403cc78
mov esi, 0x7c6add64
pop edx
xor esi, edx
xor eax, esi
xor eax, ebx
call eax
pop ebx
pop ebx
ret
Function at 0x408fbc
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
mov esi, edx
mov ebx, eax
lea edx, [ebp - 0xc]
mov eax, ebx
call fcn.00408f70
test al, al
jne 0x408fdd
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x409029
xor eax, eax
push ebp
push 0x409019
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.00403414
push eax
call sub.kernel32.dll_DeleteFileA
mov dword [ebp - 4], eax
call sub.kernel32.dll_GetLastError_1
mov dword [ebp - 0x10], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409020
lea eax, [ebp - 0xc]
call fcn.00408fac
ret
mov eax, dword [ebp - 4]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x409330
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
push edi
mov esi, eax
xor eax, eax
push ebp
push 0x40941f
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
call fcn.00406cf4
mov edx, dword [ebp - 8]
mov ecx, 0x409438
xor eax, eax
call fcn.00409224
push 0
mov eax, dword [ebp - 4]
call fcn.00403414
push eax
call sub.kernel32.dll_CreateDirectoryA
test eax, eax
jne 0x4093ed
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
cmp ebx, 0xb7
je 0x409350
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x18]
mov edx, dword [ebp - 4]
mov al, 0x36
call int.00408dd8
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
lea edx, [ebp - 0x1c]
mov eax, ebx
call fcn.00404c94
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x10], eax
lea edx, [ebp - 0x20]
mov eax, ebx
call fcn.00407284
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0xc], eax
lea edx, [ebp - 0x14]
mov ecx, 2
mov al, 0x68
call fcn.00408da8
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, 0x404660
call fcn.00405890
call fcn.00402eb4
jmp 0x409350
mov eax, esi
mov edx, dword [ebp - 4]
call fcn.0040322c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409426
lea eax, [ebp - 0x20]
mov edx, 3
call fcn.004031b8
lea eax, [ebp - 8]
mov edx, 2
call fcn.004031b8
ret

Function at 0x409448
Capabilities:
Shutdown system

Disassembly:
add esp, 0xffffffec
cmp dword [0x40b07c], 2
jne 0x4094af
push esp
push 0x28
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
test eax, eax
jne 0x40946a
xor eax, eax
jmp 0x4094be
lea eax, [esp + 8]
push eax
push 0x4094c4
push 0
call sub.advapi32.dll_LookupPrivilegeValueA
mov dword [esp + 4], 1
mov dword [esp + 0x10], 2
push 0
push 0
push 0
lea eax, [esp + 0x10]
push eax
push 0
mov eax, dword [esp + 0x14]
push eax
call sub.advapi32.dll_AdjustTokenPrivileges
call sub.kernel32.dll_GetLastError_1
test eax, eax
je 0x4094af
xor eax, eax
jmp 0x4094be
push 0
push 2
call sub.user32.dll_ExitWindowsEx
neg eax
sbb eax, eax
neg eax
add esp, 0x14
ret
Function at 0x402ef0
Capabilities:
Create mailslot

Disassembly:
push ecx
cmp dword [0x2b8167c], 3
jne 0x402f12
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMailslotA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [esp], 0
mov eax, dword [esp + 0x10]
mov dword [esp], eax
mov eax, dword [esp + 0xc]
xor dword [esp], eax
mov eax, dword [esp]
mov ecx, dword [esp + 8]
mov dword [ecx], eax
pop ecx
ret 0xc

Function at 0x403120
Capabilities:
Enumerate gui resources
Get disk information

Disassembly:
mov eax, dword [0x2b8167c]
mov ecx, dword [0x2b7e588]
shr eax, 3
sub esp, 0x808
test eax, eax
jbe 0x4031f1
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WriteProfileSectionW]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_FindNextVolumeW]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], eax
cmp dword [0x2b8167c], 0x959
jne 0x4031d3
call esi
push 0
lea eax, [esp + 0x1c]
push eax
push 0
call edi
push 0
push 0
call ebx
push 0
call ebp
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumCalendarInfoExA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumSystemLocalesA]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_AddConsoleAliasA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteProfileSectionA]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumResourceTypesA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_BeginUpdateResourceA]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenEventA]
mov ecx, dword [esp + 0x10]
push ecx
call fcn.00402f60
add dword [esp + 0x10], 8
sub dword [esp + 0x14], 1
jne 0x403160
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x808
ret
Function at 0x408c70
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42ac30]
jne 0x408c7a
repz ret
jmp fcn.0040b78c

Function at 0x40af57
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.00405107
and dword [ebp - 4], 0
cmp dword [0x42bfc4], 0
mov ebx, eax
jne 0x40b008
push 0x402ac4
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40b0b9
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x402ab8
push edi
call esi
test eax, eax
je 0x40b0b9
push eax
call fcn.00405095
mov dword [esp], 0x402aa8
push edi
mov dword [0x42bfc4], eax
call esi
push eax
call fcn.00405095
mov dword [esp], 0x402a94
push edi
mov dword [0x42bfc8], eax
call esi
push eax
call fcn.00405095
mov dword [esp], 0x402a78
push edi
mov dword [0x42bfcc], eax
call esi
push eax
call fcn.00405095
pop ecx
mov dword [0x42bfd4], eax
test eax, eax
je 0x40b008
push 0x402a60
push edi
call esi
push eax
call fcn.00405095
pop ecx
mov dword [0x42bfd0], eax
mov eax, dword [0x42bfd0]
cmp eax, ebx
je 0x40b060
cmp dword [0x42bfd4], ebx
je 0x40b060
push eax
call fcn.00405110
push dword [0x42bfd4]
mov esi, eax
call fcn.00405110
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40b060
test edi, edi
je 0x40b060
call esi
test eax, eax
je 0x40b057
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40b057
test byte [ebp - 0xc], 1
jne 0x40b060
or dword [ebp + 0x10], 0x200000
jmp 0x40b099
mov eax, dword [0x42bfc8]
cmp eax, ebx
je 0x40b099
push eax
call fcn.00405110
pop ecx
test eax, eax
je 0x40b099
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40b099
mov eax, dword [0x42bfcc]
cmp eax, ebx
je 0x40b099
push eax
call fcn.00405110
pop ecx
test eax, eax
je 0x40b099
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x42bfc4]
call fcn.00405110
pop ecx
test eax, eax
je 0x40b0b9
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40b0bb
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401040
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
mov eax, dword [0x4110a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x408], eax
call fcn.004014d0
cmp eax, 0xa
je 0x4011f1
cmp eax, 0xb
je 0x4011f1
push ebx
push 4
lea ecx, [ebp - 0x404]
push 0x411f24
xor ebx, ebx
push ecx
mov dword [ebp - 0x404], ebx
call fcn.00404670
push 4
lea edx, [ebp - 0x204]
push 0x411f24
push edx
mov byte [ebp - 0x404], bl
mov dword [ebp - 0x204], ebx
call fcn.00404670
push ebx
mov byte [ebp - 0x204], bl
call fcn.00401360
add esp, 0x1c
mov ecx, eax
nop
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x4010c0
push esi
push edi
lea edi, [ebp - 0x404]
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
cmp cl, bl
jne 0x4010d4
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
push 1
rep movsb byte es:[edi], byte [esi]
call fcn.00401360
add esp, 4
mov ecx, eax
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x4010f6
lea edi, [ebp - 0x204]
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
cmp cl, bl
jne 0x401108
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [ebp - 0x204]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.0040d25a
mov edi, dword [ebp - 0x408]
push edi
mov esi, eax
call fcn.0040d25a
add esp, 8
jmp 0x401140
mov cl, byte [eax]
cmp cl, byte [esi]
jne 0x401160
cmp cl, bl
je 0x40115c
mov cl, byte [eax + 1]
cmp cl, byte [esi + 1]
jne 0x401160
add eax, 2
add esi, 2
cmp cl, bl
jne 0x401140
xor eax, eax
jmp 0x401165
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x4011ee
push ebx
push 0x20000000
push 3
push ebx
push 1
push ebx
lea ecx, [ebp - 0x204]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
je 0x4011a3
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00404660
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
lea edx, [ebp - 0x404]
push edx
call esi
cmp eax, 0xffffffff
jne 0x4011c5
push ebx
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea ecx, [ebp - 0x404]
push ecx
call esi
cmp eax, 0xffffffff
je 0x4011ee
push edi
lea ecx, [ebp - 0x204]
call fcn.00401660
lea edx, [ebp - 0x204]
push edx
call fcn.00401710
add esp, 8
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00404660
mov esp, ebp
pop ebp
ret
Function at 0x401200
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x458
mov eax, dword [0x4110a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [str.cmd.exe__c]
mov ecx, dword [0x4100e8]
mov edx, dword [0x4100ec]
push 0x1f4
mov dword [ebp - 0x404], eax
lea eax, [ebp - 0x3f8]
push 0
push eax
mov dword [ebp - 0x400], ecx
mov dword [ebp - 0x3fc], edx
call fcn.00407980
push 4
lea ecx, [ebp - 0x204]
push 0x411f24
push ecx
mov dword [ebp - 0x204], 0
call fcn.00404670
push 0x412190
mov byte [ebp - 0x204], 0
call fcn.00401900
add esp, 0x1c
mov ecx, eax
lea esp, [esp]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x401280
push esi
push edi
lea edi, [ebp - 0x204]
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x401294
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
mov eax, ebx
rep movsb byte es:[edi], byte [esi]
mov ecx, eax
mov edi, edi
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4012b0
lea edi, [ebp - 0x204]
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4012c2
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [ebp - 0x204]
rep movsb byte es:[edi], byte [esi]
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4012e0
lea edi, [ebp - 0x404]
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4012f2
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea edx, [ebp - 0x414]
push edx
lea eax, [ebp - 0x458]
push eax
push 0
push 0
push 0
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 0
push 0
mov ecx, 0x11
mov esi, 0x411f28
lea edi, [ebp - 0x458]
rep movsd dword es:[edi], dword [esi]
push 0
lea ecx, [ebp - 0x404]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00404660
mov esp, ebp
pop ebp
ret

Function at 0x401460
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push esi
push 0x3c
xor esi, esi
lea eax, [ebp - 0x3c]
push esi
push eax
call fcn.00407980
push 0x411fc4
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x34], esi
call fcn.00401900
mov ecx, dword [ebp + 8]
add esp, 0x10
lea edx, [ebp - 0x3c]
push edx
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x38], 0x40
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
je 0x4014c1
mov eax, dword [ebp - 4]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [esi + 1]
pop esi
mov esp, ebp
pop ebp
ret
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x401660
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x204
mov eax, dword [0x4110a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push edi
mov edi, ecx
cmp eax, 0x411f24
je 0x4016fb
cmp edi, 0x411f24
je 0x4016fb
push esi
push 0x4100f4
push eax
call fcn.00404a8d
push 0x4100f8
push edi
mov esi, eax
call fcn.00404a8d
push esi
push 0x200
mov edi, eax
lea eax, [ebp - 0x204]
push 1
push eax
call fcn.00404cee
add esp, 0x20
test eax, eax
je 0x4016eb
mov edi, edi
push edi
push eax
lea ecx, [ebp - 0x204]
push 1
push ecx
call fcn.00404f43
push esi
push 0x200
lea edx, [ebp - 0x204]
push 1
push edx
call fcn.00404cee
add esp, 0x20
test eax, eax
jne 0x4016c0
push esi
call fcn.00404d78
push edi
call fcn.00404d78
add esp, 8
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.00404660
mov esp, ebp
pop ebp
ret

Function at 0x401710
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push 4
push 0x411f24
push 0x413110
mov dword [0x413110], 0
call fcn.00404670
mov eax, dword [ebp + 8]
add esp, 0xc
mov byte [0x413110], 0
mov dword [ebp - 4], 0xc8
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x401745
push esi
push edi
mov edi, 0x413110
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x401758
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
push 0x41221c
rep movsb byte es:[edi], byte [esi]
call fcn.00401900
add esp, 4
mov ecx, eax
lea ecx, [ecx]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x401780
mov edi, 0x413110
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x401791
mov ecx, eax
shr ecx, 2
push 0
rep movsd dword es:[edi], dword [esi]
push 0x10000080
push 2
push 0
push 0
mov ecx, eax
push 0x40000000
and ecx, 3
push 0x413110
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
mov esi, eax
lea eax, [ebp - 4]
push eax
push 0
push 0x411f24
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4017f0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push esi
push edi
mov ecx, 0x11
mov esi, 0x411f28
lea edi, [ebp - 0x58]
lea eax, [ebp - 0x10]
push eax
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebp - 0x58]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
neg eax
sbb eax, eax
pop edi
neg eax
pop esi
mov esp, ebp
pop ebp
ret