joyce8/EMBER2024-capa huggingface dataset:
Function at 0x623189
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x6e2c90]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x6231c9
cmp byte [ebx], 0xa
jne 0x6231c9
or byte [eax + edi + 0x28], 4
jmp 0x6231ce
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x6232cc
mov al, byte [edx]
cmp al, 0x1a
je 0x6232ae
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x6231fd
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x623222
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x62322c
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x6231df
jmp 0x6232cc
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x6232a9
cmp dword [ebp - 0xc], 0
je 0x6232a9
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x6e2c90]
test byte [eax + edi + 0x28], 0x48
je 0x623283
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x62326e
mov byte [esi], dl
jmp 0x62327f
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x6e2c90]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x6232cc
cmp byte [ebp - 1], 0xa
jne 0x623292
cmp esi, ebx
jne 0x623292
mov byte [esi], 0xa
jmp 0x6232cb
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0062312b
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x6232cc
mov byte [esi], 0xd
jmp 0x6232cb
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x6e2c90]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x6232c8
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x6232cc
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x6232d5
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x6e2c90]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x623318
cmp word [esi], dx
jne 0x623318
or byte [edi + eax + 0x28], 4
jmp 0x62331d
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x623470
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x623450
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x62335f
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x623395
cmp eax, edx
jae 0x6233a1
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x623337
jmp 0x623470
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x62344c
cmp dword [ebp - 0x14], 0
je 0x62344c
mov eax, dword [ebx*4 + 0x6e2c90]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x623424
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x6233ed
mov word [esi], cx
jmp 0x623420
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x6e2c90]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x6e2c90]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x6e2c90]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x623470
pop ebx
cmp word [ebp - 4], bx
jne 0x623435
cmp esi, dword [ebp + 0xc]
jne 0x623435
mov word [esi], bx
jmp 0x62346d
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0062312b
add esp, 0x10
cmp word [ebp - 4], bx
je 0x623470
push 0xd
jmp 0x623469
mov ecx, dword [ebx*4 + 0x6e2c90]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x623467
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x623470
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x629d22
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x685660
push 0x685658
push str.FlsAlloc
push 0x1e
call fcn.00629acf
mov esi, eax
add esp, 0x10
test esi, esi
je 0x629d56
push dword [ebp + 8]
mov ecx, esi
call dword [0x659730]
call esi
jmp 0x629d5c
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x629da0
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x685670
push 0x685668
push str.FlsGetValue
push 0x20
call fcn.00629acf
mov esi, eax
add esp, 0x10
test esi, esi
je 0x629dd7
push dword [ebp + 8]
mov ecx, esi
call dword [0x659730]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x62cde8
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0062ca8a

Function at 0x62cdf3
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0062cc19
Function at 0x62e019
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00609180
mov eax, dword [0x6d3438]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.0062b4a4
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x62e05b
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x62e1b7
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.006088b0
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x6e2c90]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0062310d
mov ecx, dword [esi*4 + 0x6e2c90]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x62e1b0
cmp eax, dword [edi + ecx + 0x24]
jne 0x62e1b0
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x62e1b0
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0062310d
add esp, 0x14
test edx, edx
jl 0x62e1b0
jg 0x62e126
test eax, eax
jb 0x62e1b0
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x62e1b0
jl 0x62e140
cmp dword [ebp - 0x1008], eax
ja 0x62e1b0
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x62e15e
test ebx, ebx
je 0x62e197
cmp ecx, edi
jae 0x62e197
mov al, byte [ecx]
cmp al, 0xd
jne 0x62e178
lea eax, [edi - 1]
cmp ecx, eax
jae 0x62e184
cmp byte [ecx + 1], 0xa
jne 0x62e184
inc ecx
jmp 0x62e184
movzx eax, al
movsx eax, byte [eax + 0x6d35b0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x62e15e
cmp edx, ebx
jne 0x62e15e
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x62e1b5
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00608185
leave
ret

Function at 0x62ff1c
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0062fe9e
Function at 0x63074a
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.006306c6
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x6308c2
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x6308c2
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x630871
jg 0x6307a3
test eax, eax
je 0x630867
push 1
push 0x1000
call fcn.0062a4da
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x6307c9
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x63085e
push 0x8000
push ebx
call fcn.006270ef
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x6307f5
jg 0x6307f0
cmp ecx, 0x1000
jb 0x6307f5
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.006243ef
add esp, 0x10
cmp eax, 0xffffffff
je 0x63083a
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x6307f0
jl 0x630821
test ecx, ecx
jne 0x6307e2
push dword [ebp - 0xc]
push ebx
call fcn.006270ef
push esi
call fcn.0062a3a6
add esp, 0xc
xor edi, edi
jmp 0x6308d3
cmp byte [edi + 0x24], 0
je 0x630851
cmp dword [edi + 0x20], 5
jne 0x630851
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x63085c
mov edi, dword [edi + 0x18]
jmp 0x63085e
xor edi, edi
push esi
call fcn.0062a3a6
pop ecx
jmp 0x6308d3
test ecx, ecx
jg 0x630833
jl 0x630871
test eax, eax
jae 0x630833
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0062312b
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x630894
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x630833
jmp 0x6308cb
push ebx
call fcn.0062bfd8
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x630833
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x6308d3
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x6308d0
mov edi, dword [edi + 0x18]
jmp 0x6308d3
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.0062312b
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x6328d3
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x6d3438]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x63291e
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.00632a72
test al, al
jne 0x632918
sub edx, 2
cmp edx, edi
jne 0x6328fe
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x632940
lea eax, [edi + 2]
cmp edx, eax
je 0x632940
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0063281f
add esp, 0x10
jmp 0x632a3a
push esi
lea ecx, [ebp - 0x255]
call fcn.00632a72
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x632983
push dword [ebp - 0x25c]
jmp 0x632930
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x6329c0
cmp word [ebp - 0x226], 0
je 0x6329e1
cmp word [ebp - 0x226], ax
jne 0x6329c0
cmp word [ebp - 0x224], 0
je 0x6329e1
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0063281f
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x632a2d
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x63299a
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x632a15
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x632a3a
push 0x63264f
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00638e10
add esp, 0x10
jmp 0x632a0a
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00608185
leave
ret

Function at 0x63335e
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x63336f
pop esi
ret
push ebx
push edi
push esi
call fcn.00633327
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0062a358
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x633397
push ebx
push esi
push edi
call fcn.0060a360
add esp, 0xc
push 0
call fcn.0062a3a6
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x63375b
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.006333ac
Function at 0x4355c0
Capabilities:
Connect pipe
Create pipe
Read pipe
Write pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc2c
cmp dword [0x4dfbe4], 0x60b
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [eax]
push edi
mov edi, dword [eax + 4]
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [ebp - 0x24], ecx
mov ecx, dword [eax + 8]
mov dword [ebp - 0x1c], edx
mov edx, dword [eax + 0xc]
mov dword [ebp - 4], esi
mov dword [ebp - 0xc], 0xc6ef3720
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x18], edx
jne 0x43565c
push 0
lea eax, [ebp - 0x14]
push eax
push 0
lea ecx, [ebp - 0x42c]
push ecx
push 0
push 0
push 0x401380
call dword [sym.imp.KERNEL32.dll_CallNamedPipeW]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0x4013f0
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
push 0
lea edx, [ebp - 0x82c]
push edx
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 0x28]
push edx
lea eax, [ebp - 0x2c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetNamedPipeHandleStateA]
mov dword [ebp - 0x14], 0x20
jmp 0x435668
mov esi, dword [ebp - 4]
mov ecx, esi
shl ecx, 4
cmp dword [0x4dfbe4], 0xe
mov dword [ebp - 0x10], ecx
jne 0x435683
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [ebp - 0x20]
push edx
lea eax, [ebp - 0x10]
push eax
call fcn.00435560
mov eax, dword [ebp - 4]
mov ebx, dword [ebp - 0xc]
add eax, ebx
mov dword [ebp + 0xc], eax
push esi
push 0x23c912
lea ecx, [ebp - 8]
push ecx
call fcn.00435590
cmp dword [0x4dfbe4], 0x1b
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x18]
lea esi, [edx + eax - 0x23c912]
mov dword [0x4dc1e8], 0xffcf03fc
jne 0x4356d9
push 0
lea ecx, [ebp - 0xc2c]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeW]
xor esi, dword [ebp + 0xc]
mov dword [0x4dc1e8], 0
xor esi, dword [ebp - 0x10]
mov dword [ebp - 8], esi
mov eax, dword [ebp - 8]
add dword [0x4dc1e8], eax
mov edx, dword [ebp - 0xc]
sub edi, esi
mov ecx, edi
mov eax, edi
shl eax, 4
add eax, dword [ebp - 0x24]
shr ecx, 5
add ecx, dword [ebp - 0x1c]
add edx, edi
xor eax, ecx
xor eax, edx
sub dword [ebp - 4], eax
push 0x9e3779b9
lea eax, [ebp - 0xc]
push eax
mov dword [ebp + 0xc], edx
mov dword [0x4dc1f0], 0xcbd702b4
mov dword [0x4dc1f4], 0xffffffff
mov dword [ebp - 8], ecx
call fcn.004352a0
dec dword [ebp - 0x14]
jne 0x435665
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
mov dword [eax + 4], edi
pop edi
pop esi
mov dword [eax], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x435760
Capabilities:
Copy file
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x930
cmp dword [0x4dfbe4], 0x516
jne 0x435785
push 0
lea eax, [ebp - 0x930]
push eax
push 0
call sub.KERNEL32.dll_VerLanguageNameW
mov eax, dword [ebp + 0xc]
shr eax, 3
test eax, eax
je 0x435821
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_VerifyVersionInfoA]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetConsoleCP]
mov dword [ebp + 0xc], eax
jmp 0x4357b0
cmp dword [0x4dfbe4], 0x29
jne 0x4357d1
push 0
push 0
push 0
push 0
push 0x401454
push 0x4014a8
call dword [sym.imp.KERNEL32.dll_CopyFileExW]
cmp dword [0x4dfbe4], 0x1c
jne 0x43580c
push 0
call edi
push 0
push 0
push 0
lea ecx, [ebp - 0x9c]
push ecx
call ebx
lea edx, [ebp - 0x130]
push edx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
push 0
call dword [sym.imp.KERNEL32.dll_FatalExit]
mov eax, dword [ebp + 0x10]
push eax
push esi
call fcn.004355c0
add esi, 8
dec dword [ebp + 0xc]
jne 0x4357b0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x435830
Capabilities:
Copy file
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xebc
cmp dword [0x4dfbe4], 0x37
jne 0x435967
xor eax, eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x58]
push ecx
push 0x4014ec
mov dword [ebp - 0x38], 0
call dword [sym.imp.KERNEL32.dll_BuildCommDCBAndTimeoutsW]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetNamedPipeHandleStateA]
lea edx, [ebp - 0x3c]
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessShutdownParameters]
xor eax, eax
xor ecx, ecx
lea edx, [ebp - 0x14]
mov word [ebp - 0x24], ax
mov dword [ebp - 0x22], eax
mov dword [ebp - 0x1e], eax
mov dword [ebp - 0x1a], eax
mov word [ebp - 0x16], ax
mov dword [ebp - 0x12], eax
mov dword [ebp - 0xe], eax
mov dword [ebp - 0xa], eax
mov word [ebp - 6], ax
push edx
lea eax, [ebp - 0x24]
mov word [ebp - 0x14], cx
push eax
lea ecx, [ebp - 0x1a0]
push ecx
call dword [sym.imp.KERNEL32.dll_SystemTimeToTzSpecificLocalTime]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleCursorInfo]
push 0
push 0
push 0
lea edx, [ebp - 0x2bc]
push edx
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
push 0
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push 0
lea eax, [ebp - 0xebc]
push eax
push 0x401500
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetVolumeMountPointA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetProcessPriorityBoost]
push 0
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
push 0
push 0
push 0
lea ecx, [ebp - 0xf4]
push ecx
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoA]
mov edx, dword [ebp + 8]
mov ecx, dword [ebp + 8]
push 0
push 0
push edx
lea eax, [ebp - 0x6bc]
push eax
push ecx
push 0x401548
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov dword [ebp - 4], 0
mov eax, dword [0x4dfbe8]
add dword [ebp - 4], eax
mov eax, 0x12336
add dword [ebp - 4], eax
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
mov cl, byte [edx + eax]
mov edx, dword [0x4dc1e4]
mov byte [edx + eax], cl
mov esp, ebp
pop ebp
ret 4
Function at 0x435aa0
Capabilities:
Create pipe
Get common file path
Get disk size
Manipulate console buffer
Read .ini file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x170c
call fcn.00436620
mov dword [ebp - 4], 0
jmp 0x435abf
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x332beaf6
jge 0x435bd3
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp dword [0x4dfbe4], 0x16
jne 0x435b07
lea ecx, [ebp - 0x45c]
push ecx
push 0
lea edx, [ebp - 0x458]
push edx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCalendarInfoA]
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetProfileStringW]
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp dword [0x4dfbe4], 0x9e
jne 0x435bc3
push 0
lea eax, [ebp - 0x868]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemWow64DirectoryA]
push 0
lea ecx, [ebp - 0xc70]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea edx, [ebp - 0xee8]
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCPInfoExW]
lea eax, [ebp - 0x468]
push eax
lea ecx, [ebp - 0xef0]
push ecx
lea edx, [ebp - 0xcc8]
push edx
push 0x401590
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
lea eax, [ebp - 0xcc0]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
xor ecx, ecx
mov word [ebp - 0xef8], cx
xor edx, edx
mov word [ebp - 0xef6], dx
xor eax, eax
mov word [ebp - 0xc74], ax
xor ecx, ecx
mov word [ebp - 0xc72], cx
lea edx, [ebp - 0x870]
push edx
mov eax, dword [ebp - 0xc74]
push eax
mov ecx, dword [ebp - 0xef8]
push ecx
lea edx, [ebp - 0xef4]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleOutputW]
cmp dword [ebp - 4], 0x3775ee
jle 0x435bce
jmp 0x435bd3
jmp 0x435ab6
push section..data
mov eax, dword [0x4dfbe4]
push eax
mov ecx, dword [0x4dc1e4]
push ecx
call fcn.00435760
mov dword [ebp - 0xefc], 0
jmp 0x435c05
mov edx, dword [ebp - 0xefc]
add edx, 1
mov dword [ebp - 0xefc], edx
cmp dword [ebp - 0xefc], 0x3e79e
jge 0x435c46
cmp dword [0x4dfbe4], 0x10
jne 0x435c33
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0x4013c4
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
cmp dword [ebp - 0xefc], 0x1e673
jne 0x435c44
call fcn.004359b0
jmp 0x435bf6
mov dword [ebp - 0xf00], 0
jmp 0x435c61
mov eax, dword [ebp - 0xf00]
add eax, 1
mov dword [ebp - 0xf00], eax
cmp dword [ebp - 0xf00], 0xdd9a7
jge 0x435ca8
cmp dword [0x4dfbe4], 0xc01
jne 0x435ca6
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_HeapValidate]
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push 0
push 0x4015f8
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
jmp 0x435c52
jmp dword [0x4dc1e4]
Function at 0x43fd30
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x462518]
jne 0x43fd3a
repz ret
jmp fcn.004481c0
Function at 0x453af0
Capabilities:
Delete file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x453b0f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jmp 0x453b16
mov dword [ebp - 4], 0
cmp dword [ebp - 4], 0
je 0x453b2d
mov ecx, dword [ebp - 4]
push ecx
call fcn.0043f5a0
add esp, 4
or eax, 0xffffffff
jmp 0x453b2f
xor eax, eax
mov esp, ebp
pop ebp
ret