joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10269a0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xbd1000]
push edi
jmp 0x10269ba
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x10269c1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x10269b0
mov eax, 1
add ebx, ebx
jne 0x10269d3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x10269e4
jne 0x1026a03
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1026a03
dec eax
add ebx, ebx
jne 0x10269f0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x10269c8
add ebx, ebx
jne 0x10269ff
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x1026a55
xor ecx, ecx
sub eax, 3
jb 0x1026a1b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x1026a8a
sar eax, 1
mov ebp, eax
jmp 0x1026a26
add ebx, ebx
jne 0x1026a26
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x10269f4
inc ecx
add ebx, ebx
jne 0x1026a34
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x10269f4
add ebx, ebx
jne 0x1026a41
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x1026a36
jne 0x1026a52
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x1026a36
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x1026a74
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x1026a66
jmp 0x10269b6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x1026a74
add edi, ecx
jmp 0x10269b6
pop esi
mov edi, esi
mov ecx, 0x3ed9
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x1026a92
cmp byte [edi], 0x11
jne 0x1026a92
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 0x1026a97
lea edi, [esi + 0xc1f000]
mov eax, dword [edi]
or eax, eax
je 0x1026b0f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1776db4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1776f30]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x1026ac4
mov ecx, edi
jns 0x1026af3
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 + 0x1776f34]
or eax, eax
je 0x1026b09
mov dword [ebx], eax
add ebx, 4
jmp 0x1026ae1
call dword [esi + 0x1776f44]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x1026b40
cmp al, 0xef
ja 0x1026b33
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x1026b15
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x1026b22
mov ebp, dword [esi + 0x1776f38]
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 0x1026b74
sub esp, 0xffffff80
jmp 0x425f74
Function at 0x430005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
mov eax, section..text
nop
nop
nop
push 4
nop
nop
nop
nop
nop
pop edi
nop
nop
cmp eax, 0
nop
nop
nop
je 0x430072
nop
nop
nop
nop
nop
mov ebx, 0x408f6c
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x36d059f
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x430060
nop
nop
nop
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
je 0x4300d2
nop
nop
nop
nop
nop
mov ebx, 0x42e3d0
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x400a5ae4
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x4300c0
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x1000be60
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
jne 0x1000be69
ret
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x24]
push edx
mov edx, dword [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x24]
push edx
mov edx, dword [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x24]
push edx
mov edx, dword [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x24]
push edx
push ecx
push eax
call dword [sym.imp.kernel32.dll_CreateProcessA]
ret

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

Disassembly:
cmp dword [0x10024140], 0
push esi
push edi
jne 0x1000c594
call fcn.1000c500
test eax, eax
je 0x1000c5d9
mov eax, dword [0x10024140]
cmp eax, 1
jne 0x1000c5b5
push 0xd
push 0
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
test eax, eax
je 0x1000c5d9
jmp 0x1000c61b
mov edi, dword [sym.imp.kernel32.dll_InterlockedPopEntrySList]
push eax
call edi
test eax, eax
jne 0x1000c61b
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.kernel32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x1000c5dd
xor eax, eax
jmp 0x1000c61b
mov eax, dword [esi]
push dword [0x10024140]
call edi
mov edi, eax
test edi, edi
je 0x1000c5ff
push 0x8000
push 0
push esi
call dword [sym.imp.kernel32.dll_VirtualFree]
mov eax, edi
jmp 0x1000c61b
lea edi, [esi + 0xff0]
push esi
push dword [0x10024140]
call dword [sym.imp.kernel32.dll_InterlockedPushEntrySList]
add esi, 0x10
cmp esi, edi
jb 0x1000c605
mov eax, esi
pop edi
pop esi
ret
jmp 0x1000c580

Function at 0x1000cc2a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10022cac]
jne 0x1000cc34
repz ret
jmp fcn.10010608

Function at 0x1000ef81
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
pushal
call 0x1000ef90
pop dword [ebp - 0xc]
mov eax, 0x44b80d07
sub eax, 0x34b71d77
sub dword [ebp - 0xc], eax
push 0x40
push 0x1000
push 0x38c13
push 0
mov eax, 0x1e2c13c3
sub eax, 0xe2a6213
add eax, dword [ebp - 0xc]
call dword [eax]
mov ecx, 0x67d03f29
add ecx, 0x9830046f
xor edi, edi
add edi, eax
mov ebx, 0x1002b200
add ebx, dword [ebp - 0xc]
mov edx, 0x2d3707c2
sub edx, 0x199711b9
xor dword [ebp - 4], edi
mov esi, dword [ebx]
sub dword [ebp - 8], edi
sub esi, edx
mov dword [edi], esi
xor dword [ebp - 4], 0xc76c361b
add edi, 4
add ebx, 0x8646b8f5
add ebx, 0x79b9470f
loop 0x1000efeb
add eax, 0x9e432e49
sub eax, 0x9e422d16
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0xa4437a85
add ecx, 0x6bbc857b
add ecx, dword [ebp - 0xc]
call ebx
leave
ret
Function at 0x401ab5
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x431090]
jne 0x401abf
repz ret
jmp fcn.00403038

Function at 0x40b293
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.0040431b
and dword [ebp - 4], 0
cmp dword [0x435640], 0
mov ebx, eax
jne 0x40b344
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40b3f5
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40b3f5
push eax
call fcn.004042a9
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x435640], eax
call esi
push eax
call fcn.004042a9
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x435644], eax
call esi
push eax
call fcn.004042a9
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x435648], eax
call esi
push eax
call fcn.004042a9
pop ecx
mov dword [0x435650], eax
test eax, eax
je 0x40b344
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004042a9
pop ecx
mov dword [0x43564c], eax
mov eax, dword [0x43564c]
cmp eax, ebx
je 0x40b39c
cmp dword [0x435650], ebx
je 0x40b39c
push eax
call fcn.00404324
push dword [0x435650]
mov esi, eax
call fcn.00404324
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40b39c
test edi, edi
je 0x40b39c
call esi
test eax, eax
je 0x40b393
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40b393
test byte [ebp - 0xc], 1
jne 0x40b39c
or dword [ebp + 0x10], 0x200000
jmp 0x40b3d5
mov eax, dword [0x435644]
cmp eax, ebx
je 0x40b3d5
push eax
call fcn.00404324
pop ecx
test eax, eax
je 0x40b3d5
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40b3d5
mov eax, dword [0x435648]
cmp eax, ebx
je 0x40b3d5
push eax
call fcn.00404324
pop ecx
test eax, eax
je 0x40b3d5
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x435640]
call fcn.00404324
pop ecx
test eax, eax
je 0x40b3f5
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40b3f7
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4014e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor esi, esi
push ebp
mov eax, dword [0x446774]
push 9
push 0x226
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, esi
mov edi, eax
je 0x401572
push edi
mov eax, dword [0x446774]
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
test ebx, ebx
je 0x401572
push edi
mov eax, dword [0x446774]
push eax
mov ebp, dword [sym.imp.KERNEL32.dll_LoadResource]
call ebp
cmp eax, esi
mov edi, eax
je 0x401572
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
cmp eax, esi
mov ebp, eax
je 0x40156b
push 0x444fb4
push ebx
call fcn.0040fda0
add esp, 8
test eax, eax
je 0x40156b
push ebx
mov eax, dword [0x444fb4]
push ebp
mov esi, 1
push eax
call fcn.004252b0
add esp, 0xc
test byte [ebp], 0x80
jne 0x40156b
add ebp, 8
inc esi
test byte [ebp], 0x80
je 0x401561
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
lea eax, [esi*8]
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x4019d0
Capabilities:
Log keystrokes

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
mov word [esi], 0
mov edi, dword [esp + 0x14]
cmp edi, 0x60
jl 0x401a1f
cmp edi, 0x69
jg 0x401a1f
push 0x40
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
push 0x3f
push ebx
mov eax, dword [0x446774]
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadStringA]
lea ecx, [edi - 0x60]
push ecx
push ebx
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x401a72
cmp edi, 0x70
jl 0x401a41
cmp edi, 0x87
jg 0x401a41
lea eax, [edi - 0x6f]
push eax
push 0x441100
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
jmp 0x401a72
xor eax, eax
mov ecx, str._bf_tg_fh_ri
cmp dword [ecx], edi
je 0x401a5a
add ecx, 8
inc eax
cmp ecx, 0x441100
jb 0x401a48
jmp 0x401a72
push 0x3f
mov eax, dword [eax*8 + 0x441064]
push esi
mov ecx, dword [0x446774]
push eax
push ecx
call dword [sym.imp.USER32.dll_LoadStringA]
cmp byte [esi], 0
jne 0x401a82
push 2
push edi
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
mov byte [esi], al
pop edi
pop esi
pop ebx
ret

Function at 0x401ca0
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
push edi
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
mov edi, dword [esp + 0x10]
push ebp
push 0
push 0x78
push edi
call esi
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
xor ebp, ebp
push 0x79
push edi
call esi
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ebx, dword [esp + 0x18]
movsx eax, word [ebx + 0xe]
cmp eax, ebp
jne 0x401ce3
push ebp
push ebx
push edi
call fcn.00401c50
add esp, 0xc
lea eax, [ebp + 0x6e]
push 1
push eax
inc ebp
push edi
call esi
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
cmp ebp, 6
jl 0x401cd0
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x403630
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
mov dword [0x446774], eax
push edi
xor esi, esi
mov dword [0x4464b8], eax
call fcn.0040bc40
test eax, eax
je 0x403654
xor eax, eax
pop edi
pop esi
pop ebx
ret 0x10
mov eax, dword [esp + 0x18]
xor ebx, ebx
push eax
xor edi, edi
call fcn.0040bfa0
add esp, 4
cmp dword [0x4412ce], ebx
jne 0x403677
mov edi, dword [0x446760]
cmp edi, ebx
je 0x4036de
call fcn.0040bd30
mov ebx, eax
test ebx, ebx
jne 0x4036e0
call fcn.00415fc0
mov ebx, eax
test ebx, ebx
jne 0x4036e0
call fcn.00403780
mov ebx, eax
test ebx, ebx
jne 0x4036e0
call fcn.00411ad0
test eax, eax
je 0x4036de
push 4
push 0x42000000
push 0
push 0
push edi
call fcn.00403e10
add esp, 0x14
mov esi, eax
test esi, esi
je 0x4036de
push esi
call fcn.00404d20
add esp, 4
test eax, eax
je 0x4036de
push esi
call fcn.00404de0
add esp, 4
test eax, eax
jne 0x4036c8
push esi
call fcn.00404f50
add esp, 4
test ebx, ebx
jle 0x4036fc
test byte [0x446772], 1
je 0x4036fc
push 0x40
mov eax, dword [0x4464c8]
push ebx
push eax
call fcn.0040cf60
add esp, 0xc
test esi, esi
je 0x403709
push esi
call fcn.00404ad0
add esp, 4
call fcn.0040d280
cmp word [0x44676c], 0
je 0x40376b
push 0x104
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
je 0x40376b
push 0x104
mov eax, dword [0x4464b8]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x5c
push esi
call fcn.00410050
add esp, 8
test eax, eax
je 0x403764
push str.Uninst32.exe__Q
inc eax
push eax
call fcn.0040ff50
add esp, 8
push 1
push esi
call dword [sym.imp.KERNEL32.dll_WinExec]
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor eax, eax
pop edi
pop esi
pop ebx
ret 0x10
Function at 0x404ad0
Capabilities:
Delete directory

Disassembly:
cmp dword [esp + 4], 0
push esi
push edi
je 0x404c43
mov eax, dword [esp + 0xc]
push eax
call fcn.004039b0
add esp, 4
mov esi, eax
cmp dword [0x444f30], 0
je 0x404b0d
mov eax, dword [0x444f30]
push eax
call fcn.00411040
mov dword [0x444f30], 0xffffffff
add esp, 4
push 0x444f24
call fcn.0040fe50
add esp, 4
push 0x444f28
call fcn.0040fe50
add esp, 4
push 0x444fa8
call fcn.0040fe50
add esp, 4
push 0x444fa4
call fcn.0040fe50
add esp, 4
push 0x444f9c
call fcn.0040fe50
add esp, 4
push 0x444fa0
call fcn.0040fe50
add esp, 4
push 0x444fc0
call fcn.0040fe50
add esp, 4
push 0x444fc4
call fcn.0040fe50
add esp, 4
push 0x444fc8
call fcn.0040fe50
add esp, 4
call fcn.00401580
call fcn.0040b850
call fcn.00407e30
call fcn.00415ff0
call fcn.00411930
call fcn.00417560
call fcn.0040d250
mov dword [0x445098], 0
mov eax, dword [esp + 0xc]
mov dword [0x44509c], 0
mov eax, dword [eax + 0x8c]
test eax, eax
je 0x404bdc
push eax
call dword [sym.imp.USER32.dll_DestroyIcon]
mov eax, dword [esp + 0xc]
mov dword [eax + 0x8c], 0
mov eax, dword [esp + 0xc]
push eax
call fcn.00404c70
add esp, 4
cmp dword [0x444f2c], 0
je 0x404c0b
mov eax, dword [0x444f2c]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push 0x444f2c
call fcn.0040fe50
add esp, 4
cmp dword [0x445074], 0
jne 0x404c22
cmp dword [0x446480], 0
je 0x404c22
call fcn.00401290
call fcn.00404c50
cmp dword [esp + 0xc], esi
je 0x404c36
push esi
call fcn.004039b0
add esp, 4
lea eax, [esp + 0xc]
push eax
call fcn.0040fe50
add esp, 4
pop edi
pop esi
ret
Function at 0x40bce0
Capabilities:
Get common file path

Disassembly:
push esi
push edi
xor edi, edi
push 0x104
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
cmp eax, edi
mov esi, eax
je 0x40bd22
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
push eax
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, edi
pop edi
pop esi
ret

Function at 0x40bf40
Capabilities:
Delete directory

Disassembly:
cmp dword [0x4464ac], 0
je 0x40bf6b
cmp dword [0x4464b4], 0
je 0x40bf5e
mov eax, dword [0x4464ac]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push 0x4464ac
call fcn.0040fe50
add esp, 4
mov eax, dword [0x4464a8]
test eax, eax
je 0x40bf85
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [0x4464a8], 0
mov eax, dword [0x4464a0]
test eax, eax
je 0x40bf95
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
ret

Function at 0x40c6c0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x58
push ebx
push esi
push edi
push ebp
push 0x208
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
jne 0x40c6e7
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x58
ret
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x6c]
push eax
push ecx
push str._s__s
xor ebx, ebx
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
mov edi, dword [esp + 0x84]
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
add esp, 0x10
mov dword [edi + 4], ebx
mov dword [edi], ebx
mov word [esp + 0x56], bx
mov dword [esp + 0x30], ebx
lea eax, [esp + 0x14]
lea ecx, [esp + 0x24]
mov dword [esp + 0x50], ebx
push eax
mov dword [esp + 0x5c], ebx
push ecx
mov dword [esp + 0x2c], 0x44
push ebx
push ebx
push 0x20
mov ebp, dword [sym.imp.KERNEL32.dll_CreateProcessA]
push 1
push ebx
push ebx
push esi
push ebx
call ebp
mov ebp, eax
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
test ebp, ebp
jne 0x40c765
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x58
ret
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x10]
mov edx, dword [esp + 0x20]
push ecx
push 0x40c6b0
mov dword [edi], eax
mov dword [esp + 0x18], 0
push edx
call dword [sym.imp.USER32.dll_EnumThreadWindows]
cmp dword [esp + 0x10], 0
je 0x40c796
mov eax, dword [esp + 0x10]
mov dword [edi + 4], eax
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x58
ret
Function at 0x40c7e0
Capabilities:
Create process on windows
Query or enumerate registry value

Disassembly:
sub esp, 8
push ebx
push esi
push edi
push ebp
mov edi, dword [esp + 0x20]
test edi, edi
je 0x40c9cb
push 0x104
mov ebp, dword [sym.imp.KERNEL32.dll_LocalAlloc]
push 0x40
call ebp
mov esi, eax
push edi
push esi
call fcn.0040ff50
add esp, 8
push 0x2e
push esi
call fcn.00410050
add esp, 8
mov edi, eax
test edi, edi
je 0x40c9c4
push str..hlp
push edi
call fcn.00410090
add esp, 8
test eax, eax
jne 0x40c84a
mov eax, dword [esp + 0x1c]
push 0
push 3
push esi
push eax
call dword [sym.imp.USER32.dll_WinHelpA]
jmp 0x40c9c4
push 0x446490
call fcn.0040c7a0
add esp, 4
test eax, eax
je 0x40c86c
mov eax, dword [0x446494]
push eax
call dword [sym.imp.USER32.dll_SetForegroundWindow]
jmp 0x40c9c4
push str..txt
push edi
call fcn.00410090
add esp, 8
test eax, eax
jne 0x40c896
push 0x446490
push esi
push str.Notepad.exe
call fcn.0040c6c0
add esp, 0xc
jmp 0x40c9c4
push str..doc
push edi
call fcn.00410090
add esp, 8
test eax, eax
jne 0x40c8dd
cmp word [0x446780], 0x35f
push 0x446490
push esi
jae 0x40c8cb
push str.Write.exe
call fcn.0040c6c0
add esp, 0xc
jmp 0x40c9c4
push str.Wordpad.exe
call fcn.0040c6c0
add esp, 0xc
jmp 0x40c9c4
push str..wri
push edi
call fcn.00410090
add esp, 8
test eax, eax
jne 0x40c9ad
xor ebx, ebx
push 0x118
push 0x40
call ebp
cmp eax, ebx
mov edi, eax
je 0x40c994
lea eax, [esp + 0x10]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
push eax
push str.wrifile_shellopen
push Ordinal_3
call ebp
test eax, eax
jne 0x40c94e
lea eax, [esp + 0x14]
mov ecx, dword [esp + 0x10]
push eax
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov dword [esp + 0x18], 0x118
push edi
push str.command
push ecx
call ebp
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [edi], 0
je 0x40c98d
push 0x5c
push edi
call fcn.00410050
add esp, 8
test eax, eax
je 0x40c98d
push 0x20
push eax
call fcn.00410070
add esp, 8
test eax, eax
je 0x40c98d
push 0x446490
mov byte [eax], 0
push esi
push edi
call fcn.0040c6c0
add esp, 0xc
cmp eax, 0xffffffff
je 0x40c98d
mov ebx, 1
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
test ebx, ebx
jne 0x40c9c4
push 0x446490
push esi
push str.Write.exe
call fcn.0040c6c0
add esp, 0xc
jmp 0x40c9c4
push 1
push 0x441114
push 0
push esi
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop ebp
pop edi
pop esi
pop ebx
add esp, 8
ret
Function at 0x40d020
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x1c
mov eax, dword [0x4464c8]
push ebx
push esi
push edi
push ebp
push eax
call dword [sym.imp.USER32.dll_IsWindowVisible]
mov esi, eax
test esi, esi
je 0x40d047
push 0
mov eax, dword [0x4464c8]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0x304
push 0
push 0
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
mov ebx, dword [sym.imp.USER32.dll_RedrawWindow]
call ebx
push 0
mov eax, dword [0x4464c8]
push eax
mov ebp, dword [sym.imp.USER32.dll_GetWindow]
call ebp
mov edi, eax
test edi, edi
je 0x40d08c
push 0x100
push 0
push 0
push edi
call ebx
push 2
push edi
call ebp
mov edi, eax
test edi, edi
jne 0x40d075
lea eax, [esp + 0x10]
push 1
push 0
mov ebp, dword [sym.imp.USER32.dll_PeekMessageA]
push 0
push 0
push eax
call ebp
test eax, eax
je 0x40d0d2
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageA]
lea eax, [esp + 0x10]
push eax
call edi
lea eax, [esp + 0x10]
push eax
call ebx
lea eax, [esp + 0x10]
push 1
push 0
push 0
push 0
push eax
call ebp
test eax, eax
jne 0x40d0b1
mov eax, dword [0x4464c4]
push eax
call sub.CNCS232.dll_Ordinal_48
test esi, esi
je 0x40d0ef
push 5
mov eax, dword [0x4464c8]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1c
ret

Function at 0x4107c0
Capabilities:
Create directory

Disassembly:
push ebx
push esi
push edi
xor ebx, ebx
push ebp
push 0x104
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
cmp eax, ebx
mov ebp, eax
je 0x410881
push ebp
push ebx
push 0x441270
call fcn.0040bce0
add esp, 0xc
cmp byte [ebp], bl
je 0x410875
push ebp
mov edi, ebp
call fcn.00410180
add esp, 4
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
cmp byte [ecx + ebp - 2], 0x5c
je 0x410842
mov edi, 0x44120c
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov ecx, 0xffffffff
mov edi, ebp
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x14]
mov edi, ebp
push esi
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
inc ecx
push ecx
call fcn.0040fda0
add esp, 8
mov eax, dword [esi]
push ebp
push eax
call fcn.0040ff50
add esp, 8
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
jmp 0x41087a
mov ebx, 0xe
push ebp
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x410c30
Capabilities:
Get common file path
Set current directory

Disassembly:
push esi
push 0x104
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
je 0x410c6d
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push 0x4413d8
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push esi
call fcn.00426a50
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop esi
ret
push 0x4413d8
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
pop esi
ret

Function at 0x410e40
Capabilities:
Read file on windows

Disassembly:
sub esp, 4
lea eax, [esp]
push esi
mov esi, dword [esp + 0x14]
push 0
mov ecx, dword [esp + 0x14]
push eax
mov eax, dword [esp + 0x14]
push esi
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x410e74
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, 5
pop esi
add esp, 4
ret
mov eax, dword [esp + 4]
sub eax, esi
pop esi
cmp eax, 1
mov eax, 0
adc eax, 0xffffffff
add esp, 4
and eax, 5
ret

Function at 0x410e90
Capabilities:
Write file on windows

Disassembly:
sub esp, 4
lea eax, [esp]
push esi
mov esi, dword [esp + 0x14]
push 0
mov ecx, dword [esp + 0x14]
push eax
mov eax, dword [esp + 0x14]
push esi
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x410ec4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, 6
pop esi
add esp, 4
ret
mov eax, dword [esp + 4]
sub eax, esi
pop esi
cmp eax, 1
mov eax, 0
adc eax, 0xffffffff
add esp, 4
and eax, 0xe
ret