joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4061e0
Capabilities:
Terminate thread
Write file on windows

Disassembly:
sub esp, 0x14
push ebx
push edi
xor edi, edi
mov eax, dword [0x445b0c]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, edi
je 0x406260
push esi
push edi
push edi
push 3
push edi
push edi
push 0x40000000
push edi
push 0x445a04
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], 0x1f40
mov dword [esp + 0x3c], edi
call fcn.00406450
add esp, 8
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x40624d
lea eax, [esp + 0xc]
push edi
push eax
lea ecx, [esp + 0x18]
push 0x10
push ecx
push esi
mov dword [esp + 0x20], edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call ebx
push 0x3e8
mov edx, dword [0x445b0c]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
pop esi
mov eax, dword [0x445b08]
cmp eax, edi
je 0x406281
mov eax, dword [0x445b08]
cmp eax, 0xffffffff
je 0x406281
mov eax, dword [0x445b08]
push eax
call ebx
mov dword [0x445b08], edi
mov eax, dword [0x445b0c]
cmp eax, edi
je 0x4062a9
mov eax, dword [0x445b0c]
cmp eax, 0xffffffff
je 0x4062a9
push 0xffffffffffffffff
mov ecx, dword [0x445b0c]
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov dword [0x445b0c], edi
call fcn.004063b0
mov dword [0x445b14], edi
pop edi
pop ebx
add esp, 0x14
ret

Function at 0x4038fa
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
mov ecx, ebp
push ebp
mov ebp, esp
add ecx, 4
mov dword [0x4040fa], ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x404658], eax
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
mov dword [0x4045ec], eax
mov dword [0x4040f2], eax
mov dword [0x4045d8], 0x30
mov dword [0x4045dc], 2
jmp 0x40393f
mov dword [0x4045e0], 0x403153
mov dword [0x4045e4], 0
mov dword [0x4045e8], 0
mov dword [0x404600], 0x40454e
mov dword [0x4045f8], 0xf
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadIconA]
mov dword [0x4045f0], eax
mov dword [0x404604], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
mov dword [0x4045f4], eax
push 0x4045d8
fadd dword [ebp + 0x40]
add bh, bh
adc eax, sym.imp.user32.dll_RegisterClassExA
push 0
push dword [0x4040f2]
push 0
push 0
push 0x1e5
push 0x203
push 0xfffff98e
push 0xfffff9c0
push 0xcf0000
push str.asdlkjalsdj_ai8
push 0x40454e
push 0
call dword [sym.imp.user32.dll_CreateWindowExA]
mov dword [0x404650], eax
push 5
push dword [0x404650]
call dword [sym.imp.user32.dll_ShowWindow]
push dword [0x404650]
call dword [sym.imp.user32.dll_UpdateWindow]
xor edi, edi
lea ebx, [0x404608]
jmp 0x403a13
push ebx
call dword [sym.imp.user32.dll_TranslateMessage]
push ebx
call dword [sym.imp.user32.dll_DispatchMessageA]
push edi
push edi
push edi
push ebx
call dword [sym.imp.user32.dll_GetMessageA]
test al, al
jne 0x403a05
mov eax, dword [0x404610]
jmp 0x403a2e
call 0x402bd5
ret
Function at 0x10001d09
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x54
mov eax, dword [ebp + 8]
mov dword [0x100141a4], 0x1234
mov dword [0x100141a8], 0x118d
mov dword [ebp - 0x10], eax
call fcn.10002049
xor ecx, ecx
mov edx, eax
mov esi, dword [0x100141a8]
mov edi, dword [eax + 0x3c]
mov ebx, edx
add ebx, edi
mov edi, dword [eax + edi]
cmp edi, 0x4550
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], ebx
je 0x10001d62
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0x78]
mov ecx, dword [ebp - 0x20]
add ecx, 0x21fc
mov dword [0x100141a8], ecx
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + eax + 0x20]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], edx
xor eax, eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x2c]
add ecx, edx
mov esi, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x28]
mov ebx, dword [esi + edi + 0x24]
mov dword [0x100141a4], 0x62
mov edx, dword [esi + edi + 0x18]
cmp edx, 0
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x3c], eax
je 0x10001eb3
xor eax, eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x30]
add ecx, edx
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x44], ecx
jmp 0x10001e04
mov eax, dword [ebp - 0x48]
movzx ecx, word [eax]
mov dword [0x100141a8], 0x185c
mov edx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x28]
add edx, dword [edx + esi + 0x1c]
mov ecx, dword [edx + ecx*4]
mov dword [0x100141a4], 0x6ff
mov edx, dword [ebp - 0x1c]
add edx, ecx
mov dword [ebp - 0x3c], edx
jmp 0x10001eb3
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x40]
xor edx, edx
mov esi, dword [ebp - 0x38]
mov edi, dword [esi + ecx*4]
mov dword [0x100141a4], 0x1234
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x54], edx
mov eax, dword [ebp - 0x54]
mov ecx, eax
mov edx, dword [ebp - 0x50]
add ecx, edx
mov esi, dword [ebp - 0x1c]
mov bl, byte [esi + ecx]
mov ecx, dword [ebp - 0x10]
mov bh, byte [ecx + eax]
cmp bl, bh
sete cl
cmp bl, 0
mov dword [ebp - 0x58], eax
mov byte [ebp - 0x59], bh
mov byte [ebp - 0x5a], cl
je 0x10001e79
mov eax, dword [ebp - 0x58]
add eax, 1
mov cl, byte [ebp - 0x59]
cmp cl, 0
setne dl
mov ch, byte [ebp - 0x5a]
and ch, dl
cmp eax, 0x20
setb dl
and ch, dl
test ch, 1
mov dword [ebp - 0x54], eax
jne 0x10001e28
mov al, byte [ebp - 0x5a]
test al, 1
jne 0x10001dd0
jmp 0x10001e86
mov eax, dword [ebp - 0x48]
add eax, 2
mov dword [ebp - 0x60], eax
xor eax, eax
mov ecx, dword [ebp - 0x4c]
add ecx, 1
mov edx, dword [ebp - 0x34]
cmp ecx, edx
mov esi, dword [ebp - 0x60]
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x3c], eax
jb 0x10001e04
mov eax, dword [ebp - 0x3c]
add esp, 0x54
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x10002287
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [0x100141a4], 0x107
mov dword [ebp - 4], 0
mov eax, dword fs:[0x30]
mov dword [ebp - 4], eax
xor ecx, ecx
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x10]
mov edx, dword [edx + 0x3c]
mov dword [0x100141a8], 0xa4
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], ecx
jmp 0x100022e8
mov eax, dword [ebp - 0x14]
mov dword [0x100141a4], 0xffffff39
mov ecx, dword [ebp - 0xc]
cmp word [ecx + eax*2 - 0x1a], 0x6c
mov dword [ebp - 0x18], eax
je 0x10002321
jmp 0x10002397
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
cmp word [ecx + eax*2], 0
mov edx, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x14], edx
je 0x100022c7
mov eax, dword [ebp - 0x1c]
add eax, 1
mov dword [0x100141a8], 0x1707
cmp eax, 0x104
mov ecx, eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], eax
jl 0x100022e8
jmp 0x100022c7
mov dword [0x100141a4], 0x8c4
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x18]
cmp word [eax + ecx*2 - 0x18], 0x6f
jne 0x10002397
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x18]
cmp word [eax + ecx*2 - 0x16], 0x61
jne 0x10002397
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x18]
cmp word [eax + ecx*2 - 0x14], 0x64
jne 0x10002397
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x18]
cmp word [eax + ecx*2 - 0x12], 0x64
jne 0x10002397
mov dword [0x100141a8], 0xffffe667
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x18]
cmp word [eax + ecx*2 - 0x10], 0x6c
jne 0x10002397
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x18]
cmp word [ecx + edx*2 - 0xe], 0x6c
mov dword [ebp - 0x20], eax
je 0x100023a8
mov dword [0x100141a4], 0x1c0f
xor eax, eax
mov dword [ebp - 0x20], eax
jmp 0x100023a8
mov eax, dword [ebp - 0x20]
add esp, 0x20
pop ebp
ret
Function at 0x10002525
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0x50
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
xor edx, edx
mov dword [0x100141a8], 0x1c22
mov esi, dword [0x100141a4]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x34], edx
mov eax, dword [ebp - 0x34]
mov cl, byte [eax + 0x10005262]
mov dl, byte [eax + 0x10005233]
sub dl, cl
mov byte [ebp + eax - 0x24], dl
add eax, 1
cmp eax, 0xe
mov dword [ebp - 0x34], eax
jne 0x10002550
lea eax, [ebp - 0x24]
mov ecx, dword [ebp - 0x30]
add ecx, 0x38a
mov dword [0x100141a8], ecx
mov dword [0x100141a4], 0x2676
mov dword [ebp - 0x38], eax
call fcn.10002d9d
mov dword [esp], eax
mov eax, dword [ebp - 0x38]
mov dword [esp + 4], eax
call fcn.10001ebe
xor ecx, ecx
cmp eax, 0
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x40], ecx
je 0x10002668
mov eax, dword [ebp - 0x3c]
mov dword [0x100141a8], 0xdf2
mov ecx, esp
mov dword [ecx + 0xc], 0x40
mov dword [ecx + 8], 0x1000
mov dword [ecx + 4], 0x6000
mov dword [ecx], 0
call eax
sub esp, 0x10
mov dword [0x100141a8], 0x23a4
mov dword [esp], eax
mov ecx, dword [ebp - 0x28]
mov dword [esp + 4], ecx
mov dword [ebp - 0x44], eax
call fcn.100030eb
xor eax, eax
mov ecx, dword [ebp - 0x44]
mov word [ecx], 0x5a4d
mov dword [ecx + 0x3c], 0xc0
mov dword [ecx + 0xc0], 0x4550
add ecx, 0xffc00000
mov edx, dword [ebp - 0x2c]
mov dword [edx + 0x18], ecx
mov dword [0x100141a4], 0x2677
mov ecx, dword [ebp - 0x44]
mov dword [edx + 0x24], ecx
mov dword [0x100141a8], 0x680
cmp ecx, 0
mov dword [ebp - 0x40], eax
je 0x10002668
mov dword [0x100141a4], 0x1906
mov eax, dword [ebp - 0x44]
add eax, 0x2406
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x40]
add esp, 0x50
pop esi
pop ebp
ret
Function at 0x100029bb
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push esi
and esp, 0xfffffff8
sub esp, 0x98
call fcn.1000109a
xor ecx, ecx
cmp eax, 0
mov dword [esp + 0x24], ecx
je 0x10002a63
jmp 0x10002b35
mov eax, dword [esp + 0x20]
cmp word [eax], 0x5a4d
mov dword [esp + 0x1c], eax
je 0x10002a90
jmp 0x10002aad
lea eax, [esp + 0x28]
mov dword [esp], eax
call fcn.10002671
lea ecx, [0x100024cc]
mov edx, dword [esp + 0x28]
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], 0x133e00
mov edx, dword [0x10014190]
mov dword [esp + 0x6c], edx
mov edx, dword [0x10014194]
mov dword [esp + 0x64], edx
mov edx, dword [0x10014198]
mov dword [esp + 0x4c], edx
mov edx, dword [0x1001419c]
mov dword [esp + 0x74], edx
mov edx, dword [0x100141a0]
mov dword [esp + 0x60], edx
mov dword [0x100141a4], 0xca7
mov dword [esp + 0x18], eax
mov dword [esp + 0x20], ecx
jmp 0x100029e3
lea eax, [esp + 0x38]
mov dword [0x100141a4], 0x142d
mov dword [esp + 0x14], eax
call fcn.10002287
xor ecx, ecx
cmp eax, 0
mov dword [esp + 0x10], ecx
je 0x100029fb
jmp 0x10002b2d
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + 0x3c]
mov edx, dword [eax + ecx]
mov dword [esp + 0xc], ecx
mov dword [esp + 8], edx
mov eax, dword [esp + 8]
cmp eax, 0x4550
je 0x10002ace
mov eax, dword [esp + 0x1c]
add eax, 0xfffff000
and eax, 0xfffff000
mov dword [0x100141a8], 0xfffff8b4
mov dword [esp + 0x20], eax
jmp 0x100029e3
lea eax, [esp + 0x38]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x38], ecx
mov edx, dword [esp + 0xc]
mov esi, dword [ecx + edx + 0x50]
mov dword [esp + 0x84], esi
mov dword [0x100141a4], 0x2489
mov dword [0x100141a8], 0xae5
mov esi, dword [esp + 0x30]
mov dword [esp], eax
mov dword [esp + 4], esi
call fcn.10002525
mov dword [0x100141a8], 0x74c
mov ecx, esp
lea edx, [esp + 0x38]
mov dword [ecx], edx
call eax
sub esp, 4
mov eax, 1
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x24]
lea esp, [ebp - 4]
pop esi
pop ebp
ret
Function at 0x10002b3f
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x2c
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
xor edi, edi
mov dword [0x100141ac], 0
mov dword [0x100141b0], 0
mov dword [0x100141bc], 0
mov ebx, dword [0x100141a8]
add ebx, 0xffffeb05
mov dword [0x100141a4], ebx
cmp eax, 0
mov ebx, edi
mov dword [ebp - 0x10], eax
mov eax, edi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x28], edi
je 0x10002cd2
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x24]
mov esi, 0x100
mov dword [0x100141a4], 0x1641
add edx, 1
mov edi, ecx
add edi, 1
mov dword [0x100141a8], 0xf08
mov dword [ebp - 0x2c], eax
mov eax, edx
cdq
idiv esi
mov dword [0x100141ac], edx
mov ebx, dword [ebp - 0x20]
movzx ebx, byte [ebx + edx]
mov dword [ebp - 0x30], ecx
mov ecx, dword [ebp - 0x2c]
add ebx, ecx
mov eax, ebx
mov dword [ebp - 0x34], edx
cdq
idiv esi
mov dword [0x100141b0], edx
mov dword [0x100141a4], 0x160e
mov ecx, dword [ebp - 0x20]
mov esi, dword [ebp - 0x34]
mov cl, byte [ecx + esi]
mov byte [0x100141b4], cl
mov ebx, dword [ebp - 0x20]
mov cl, byte [ebx + edx]
mov byte [ebx + esi], cl
mov cl, byte [0x100141b4]
mov edx, dword [0x100141b0]
mov byte [ebx + edx], cl
mov edx, dword [0x100141ac]
movzx edx, byte [ebx + edx]
mov ecx, dword [0x100141b0]
movzx ecx, byte [ebx + ecx]
add ecx, edx
and ecx, 0xff
mov dword [0x100141bc], ecx
mov dword [0x100141a4], 0x2a72
mov cl, byte [ebx + ecx]
mov edx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x30]
mov ch, byte [edx + esi]
mov edx, dword [0x100141a8]
add edx, 0xfffff0cb
mov dword [0x100141a8], edx
mov dl, cl
add dl, byte [0x100141c1]
mov byte [0x100141c0], dl
mov byte [0x100141c1], ch
mov byte [0x100141c2], cl
xor ch, cl
mov edx, dword [ebp - 0x1c]
mov byte [edx + esi], ch
mov dword [0x100141a4], 0x138b
mov edx, dword [ebp - 0x10]
cmp edi, edx
mov dword [ebp - 0x38], edi
je 0x10002cd2
mov eax, dword [0x100141ac]
mov ecx, dword [0x100141b0]
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], ecx
jmp 0x10002baa
mov dword [0x100141a8], 0x232
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x10002eee
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
xor esi, esi
mov dword [0x100141a8], 0x2446
mov dword [0x100141b0], 0
mov byte [0x100141b4], 0
mov dword [0x100141ac], 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
jmp 0x1000300f
mov eax, dword [ebp - 0x20]
mov ecx, 0x100
mov dword [0x100141b8], 0
mov dword [0x100141a8], 0x1a8e
mov edx, dword [0x100141b0]
mov esi, dword [ebp - 0x18]
movzx edi, byte [esi + eax]
add edi, edx
mov dword [ebp - 0x24], eax
xor edx, edx
mov ebx, dword [ebp - 0x10]
div ebx
mov esi, dword [ebp - 0x14]
movzx edx, byte [esi + edx]
add edi, edx
mov dword [0x100141b8], edi
mov dword [0x100141a4], 0x1721
mov eax, edi
cdq
idiv ecx
mov dword [0x100141b0], edx
mov ecx, dword [ebp - 0x18]
mov edi, dword [ebp - 0x24]
mov cl, byte [ecx + edi]
mov byte [0x100141b4], cl
mov dword [0x100141a4], 0x1c4e
mov ecx, dword [ebp - 0x18]
mov cl, byte [ecx + edx]
mov edx, dword [ebp - 0x18]
mov byte [edx + edi], cl
mov cl, byte [0x100141b4]
mov edx, dword [0x100141b0]
mov esi, dword [ebp - 0x18]
mov byte [esi + edx], cl
mov dword [0x100141a8], 0x257f
mov edx, dword [0x100141ac]
add edx, 1
mov dword [0x100141ac], edx
cmp edx, 0x100
mov dword [ebp - 0x20], edx
jl 0x10002f38
mov dword [0x100141a4], 0x1a3f
mov dword [0x100141a8], 0x213
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ebp - 0x1c]
mov ecx, eax
mov dl, cl
mov ecx, dword [ebp - 0x18]
mov byte [ecx + eax], dl
mov eax, dword [0x100141a4]
add eax, 0xcff
mov dword [0x100141a8], eax
mov eax, dword [0x100141ac]
add eax, 1
mov dword [0x100141ac], eax
cmp eax, 0x100
mov dword [ebp - 0x1c], eax
jl 0x1000300f
mov dword [0x100141a4], 0x1e5b
xor eax, eax
mov dword [0x100141ac], 0
mov dword [ebp - 0x20], eax
jmp 0x10002f38
Function at 0x401807
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
call sub.mfc140u.dll_CDialog::OnInitDialog
push 0x4d3d4c
push str.agreement.txt
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__wfopen]
mov edi, eax
lea eax, [ebx + 0x128]
mov dword [ebp - 4], edi
pop ecx
pop ecx
test edi, edi
je 0x40189f
mov esi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
push 2
push 0
push edi
call esi
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
push 0
push 0
push dword [ebp - 4]
mov edi, eax
shr edi, 1
call esi
add esp, 0x1c
lea ecx, [edi + 1]
push ecx
lea ecx, [ebx + 0x128]
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::GetBufferSetLength]
push dword [ebp - 4]
mov esi, eax
push edi
push 2
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
lea ecx, [ebx + 0x128]
xor eax, eax
mov word [esi + edi*2], ax
push edi
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::ReleaseBuffer]
push dword [ebp - 4]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
pop ecx
lea eax, [ebx + 0x128]
push dword [eax]
lea esi, [ebx + 0xa8]
mov ecx, esi
call sub.mfc140u.dll_CWnd::SetWindowTextW
xor edi, edi
mov ecx, ebx
push edi
call sub.mfc140u.dll_CWnd::UpdateData
push edi
push edi
push 0xffffffffffffffff
mov ecx, esi
call fcn.004018ea
push 0x41
push edi
push edi
push 4
push 4
push dword [sym.imp.mfc140u.dll_CWnd::wndTop]
mov ecx, ebx
call sub.mfc140u.dll_CWnd::SetWindowPos
push edi
mov ecx, ebx
call sub.mfc140u.dll_CWnd::UpdateData
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret

Function at 0x4024f9
Capabilities:
Delete file
Move file
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x8008
call fcn.00418820
mov eax, dword [0x5116c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push 4
push 0
push eax
mov dword [ebp - 0x8008], eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x4025b7
push ebx
push edi
push str.WININIT.INI
mov word [ebp - 0x8004], ax
lea eax, [ebp - 0x8004]
push 0x4000
push eax
push str.rename
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionW]
mov ebx, eax
lea edi, [ebp - 0x8004]
push str.NUL
lea edi, [edi + ebx*2]
push edi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat]
push dword [ebp - 0x8008]
push edi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat]
push dword [ebp - 0x8008]
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcslen]
add eax, ebx
add esp, 0x14
lea eax, [eax*2 + 0xa]
pop edi
pop ebx
cmp eax, 0x8000
jae 0x4025c3
xor ecx, ecx
mov word [ebp + eax - 0x8004], cx
lea eax, [ebp - 0x8004]
push str.WININIT.INI
push eax
push str.rename
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileSectionW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00418035
leave
ret
call fcn.00418623
int3
Function at 0x4027f1
Capabilities:
Execute command

Disassembly:
push 8
mov eax, 0x4bbc48
call fcn.00418075
and dword [ebp - 4], 0
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x14]
push 0x4d45b8
push eax
call fcn.00402461
push 0x4d45b4
push eax
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 1
push eax
call fcn.00401a36
add esp, 0x18
lea ecx, [ebp - 0x14]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
push dword [ebp - 0x10]
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wsystem]
pop ecx
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
lea ecx, [ebp + 8]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
call fcn.00418043
ret

Function at 0x402854
Capabilities:
Copy file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x620
mov eax, dword [0x5116c0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
lea eax, [ebp - 0x620]
mov ebx, 0x104
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x418]
xor edi, edi
push eax
push edi
push 0x4d4bd0
lea eax, [ebp - 0x620]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push ebx
lea eax, [ebp - 0x210]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push edi
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
lea eax, [ebp - 0x418]
push 0x4d4bd8
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcspbrk]
pop ecx
test eax, eax
lea eax, [ebp - 0x418]
pop ecx
push eax
lea eax, [ebp - 0x620]
je 0x4028f2
push str.__s_
push ebx
push eax
call fcn.00404890
add esp, 0x10
jmp 0x4028fb
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy]
pop ecx
pop ecx
lea eax, [ebp - 0x210]
push 0x4d4bd8
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcspbrk]
pop ecx
pop ecx
test eax, eax
je 0x40295a
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcslen]
lea eax, [eax*2 + 2]
push eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x20e]
push eax
call sub.VCRUNTIME140.dll_memmove
push 0x22
pop eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x210]
push 0x4d45b4
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat]
add esp, 0x18
xor ecx, ecx
mov eax, 0x4d4bec
cmp dword [0x511070], ecx
push edi
cmove eax, ecx
push eax
lea eax, [ebp - 0x210]
push eax
push str._delself
lea eax, [ebp - 0x620]
push eax
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.api_ms_win_crt_process_l1_1_0.dll__wexecl]
mov ecx, dword [ebp - 4]
add esp, 0x18
xor ecx, ebp
pop edi
pop ebx
call fcn.00418035
leave
ret
Function at 0x4040f0
Capabilities:
Delete directory
Delete file

Disassembly:
push 0x40c
mov eax, 0x4bc048
call fcn.004180a8
mov eax, dword [ebp + 8]
push 0x4d4890
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__wfopen]
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x4042db
mov edi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fgetws]
lea eax, [ebp - 0x410]
push esi
push 0x200
push eax
call edi
mov ebx, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcslen]
jmp 0x4041bb
xor eax, eax
mov word [ebp - 0x12], ax
lea eax, [ebp - 0x410]
push eax
call ebx
pop ecx
lea ecx, [ebp - 0x410]
lea eax, [ecx + eax*2]
cmp eax, ecx
jbe 0x404177
push 0x20
pop edi
cmp word [eax], di
ja 0x404171
xor ecx, ecx
mov word [eax], cx
sub eax, 2
lea ecx, [ebp - 0x410]
cmp eax, ecx
ja 0x40415a
mov edi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fgetws]
lea eax, [ebp - 0x410]
push str.Shell_Link:
push eax
call sub.VCRUNTIME140.dll_wcsstr
pop ecx
pop ecx
lea ecx, [ebp - 0x410]
cmp eax, ecx
jne 0x4041ac
push str.Shell_Link:
call ebx
pop ecx
lea ecx, [ebp - 0x410]
lea eax, [ecx + eax*2]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push esi
lea eax, [ebp - 0x410]
push 0x200
push eax
call edi
add esp, 0xc
test eax, eax
jne 0x40413a
push eax
push eax
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
push esi
lea eax, [ebp - 0x410]
push 0x200
push eax
call edi
add esp, 0x18
jmp 0x4042cb
xor eax, eax
mov word [ebp - 0x12], ax
lea eax, [ebp - 0x410]
push eax
call ebx
pop ecx
lea ecx, [ebp - 0x410]
lea eax, [ecx + eax*2]
cmp eax, ecx
jbe 0x404223
push 0x20
pop edi
cmp word [eax], di
ja 0x40421d
xor ecx, ecx
mov word [eax], cx
sub eax, 2
lea ecx, [ebp - 0x410]
cmp eax, ecx
ja 0x404206
mov edi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fgetws]
lea eax, [ebp - 0x410]
push 0x4d4878
push eax
call sub.VCRUNTIME140.dll_wcsstr
pop ecx
pop ecx
lea ecx, [ebp - 0x410]
cmp eax, ecx
jne 0x4042b9
push 0x4d4878
call ebx
pop ecx
lea ecx, [ebp - 0x410]
lea eax, [ecx + eax*2]
push eax
lea ecx, [ebp - 0x414]
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__28]
and dword [ebp - 4], 0
jmp 0x404299
push dword [ebp - 0x414]
lea eax, [ebp - 0x418]
push eax
call fcn.00406f5a
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x414]
mov byte [ebp - 4], 1
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__26]
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 0
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
push dword [ebp - 0x414]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x404264
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x414]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
push esi
lea eax, [ebp - 0x410]
push 0x200
push eax
call edi
add esp, 0xc
test eax, eax
jne 0x4041e6
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
pop ecx
call fcn.00418057
ret