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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00438ca9

Function at 0x439019
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00438e38

Function at 0x43946f
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0041fc00
mov eax, dword [0x455100]
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.0042df82
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4394b1
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x43960d
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00443460
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 + 0x457e00]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00439895
mov ecx, dword [esi*4 + 0x457e00]
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 0x439606
cmp eax, dword [edi + ecx + 0x24]
jne 0x439606
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 0x439606
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00439895
add esp, 0x14
test edx, edx
jl 0x439606
jg 0x43957c
test eax, eax
jb 0x439606
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x439606
jl 0x439596
cmp dword [ebp - 0x1008], eax
ja 0x439606
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x4395b4
test ebx, ebx
je 0x4395ed
cmp ecx, edi
jae 0x4395ed
mov al, byte [ecx]
cmp al, 0xd
jne 0x4395ce
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4395da
cmp byte [ecx + 1], 0xa
jne 0x4395da
inc ecx
jmp 0x4395da
movzx eax, al
movsx eax, byte [eax + 0x455a80]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x4395b4
cmp edx, ebx
jne 0x4395b4
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x43960b
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0041fbeb
leave
ret
Function at 0x43ace7
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x43ad84
push ebx
push esi
call fcn.0043acb0
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.00439c0e
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x43ad31
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x43ad83
push edi
push eax
call fcn.00434e49
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x43ad51
call fcn.004341d0
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x43ad82
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00439c0e
add esp, 0x20
test eax, eax
jne 0x43ad70
push edi
call fcn.004341d0
jmp 0x43ad78
push ebx
call fcn.004341d0
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x43faf3
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 + 0x457e00]
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 0x43fb33
cmp byte [ebx], 0xa
jne 0x43fb33
or byte [eax + edi + 0x28], 4
jmp 0x43fb38
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x43fc36
mov al, byte [edx]
cmp al, 0x1a
je 0x43fc18
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x43fb67
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x43fb8c
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x43fb96
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 0x43fb49
jmp 0x43fc36
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 0x43fc13
cmp dword [ebp - 0xc], 0
je 0x43fc13
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x457e00]
test byte [eax + edi + 0x28], 0x48
je 0x43fbed
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x43fbd8
mov byte [esi], dl
jmp 0x43fbe9
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x457e00]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x43fc36
cmp byte [ebp - 1], 0xa
jne 0x43fbfc
cmp esi, ebx
jne 0x43fbfc
mov byte [esi], 0xa
jmp 0x43fc35
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004398b3
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x43fc36
mov byte [esi], 0xd
jmp 0x43fc35
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x457e00]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x43fc32
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x43fc36
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x43fc3f
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 + 0x457e00]
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 0x43fc82
cmp word [esi], dx
jne 0x43fc82
or byte [edi + eax + 0x28], 4
jmp 0x43fc87
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 0x43fdc0
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 0x43fda0
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x43fcc9
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x43fcff
cmp eax, edx
jae 0x43fd0b
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 0x43fca1
jmp 0x43fdc0
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 0x43fd9c
cmp dword [ebp - 0x14], 0
je 0x43fd9c
mov eax, dword [ebx*4 + 0x457e00]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x43fd74
mov cx, word [ebp - 4]
pop eax
cmp cx, ax
je 0x43fdba
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x457e00]
push 0xa
mov byte [edi + eax + 0x2a], cl
mov eax, dword [ebx*4 + 0x457e00]
shr cx, 8
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x457e00]
pop ecx
mov byte [edi + eax + 0x2c], cl
jmp 0x43fdbd
pop ebx
cmp word [ebp - 4], bx
jne 0x43fd85
cmp esi, dword [ebp + 0xc]
jne 0x43fd85
mov word [esi], bx
jmp 0x43fdbd
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004398b3
add esp, 0x10
cmp word [ebp - 4], bx
je 0x43fdc0
push 0xd
jmp 0x43fdb9
mov ecx, dword [ebx*4 + 0x457e00]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x43fdb7
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x43fdc0
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 0x441fe5
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.00441f61
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x44215d
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x44215d
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x44210c
jg 0x44203e
test eax, eax
je 0x442102
push 1
push 0x1000
call fcn.004342dc
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x442064
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x4420f9
push 0x8000
push ebx
call fcn.0042e6e1
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 0x442090
jg 0x44208b
cmp ecx, 0x1000
jb 0x442090
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.00436bac
add esp, 0x10
cmp eax, 0xffffffff
je 0x4420d5
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 0x44208b
jl 0x4420bc
test ecx, ecx
jne 0x44207d
push dword [ebp - 0xc]
push ebx
call fcn.0042e6e1
push esi
call fcn.004341d0
add esp, 0xc
xor edi, edi
jmp 0x44216e
cmp byte [edi + 0x24], 0
je 0x4420ec
cmp dword [edi + 0x20], 5
jne 0x4420ec
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x4420f7
mov edi, dword [edi + 0x18]
jmp 0x4420f9
xor edi, edi
push esi
call fcn.004341d0
pop ecx
jmp 0x44216e
test ecx, ecx
jg 0x4420ce
jl 0x44210c
test eax, eax
jae 0x4420ce
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004398b3
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x44212f
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x4420ce
jmp 0x442166
push ebx
call fcn.004379e8
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x4420ce
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 0x44216e
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x44216b
mov edi, dword [edi + 0x18]
jmp 0x44216e
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.004398b3
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x443260
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x44328d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x44328d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x401400
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x4a2300]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, ecx
xor edx, edx
xor ecx, ecx
call fcn.0040f220
mov esi, eax
test esi, esi
je 0x401479
xorps xmm0, xmm0
mov dword [ebp - 0xa], 0
mov eax, 2
movq qword [ebp - 0x12], xmm0
push 0xfff2
mov word [ebp - 6], 0
mov word [ebp - 0x14], ax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x12], ax
lea eax, [ebp - 0x14]
push 0x10
push eax
push esi
mov dword [ebp - 0x10], edi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x40148b
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x40148b
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045094b
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.0045094b
mov esp, ebp
pop ebp
ret
Function at 0x402460
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xdc
mov eax, dword [0x4a2300]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0
push 0x80
push 4
push 0
push 1
push SysReAllocString
push ecx
mov dword [ebp - 0xdc], edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4024af
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045094b
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0xd8]
mov dword [ebp - 0xd8], 0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0x40000000
ja 0x40249c
xor ecx, ecx
add eax, 1
setb cl
neg ecx
or ecx, eax
push ecx
call fcn.00451e73
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x40249c
push 0
lea eax, [ebp - 0xd4]
mov dword [ebp - 0xd4], 0
push eax
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40249c
xor eax, eax
cmp dword [ebp - 0xd4], esi
jne 0x40257a
push 0xc6
push eax
mov word [ebp - 0xd0], ax
lea eax, [ebp - 0xce]
push eax
call fcn.00451650
lea eax, [ebp - 0xd0]
mov edx, esi
push eax
mov ecx, ebx
call fcn.0040ecd0
mov esi, dword [ebp - 0xdc]
push 0x64
push 0
push esi
call fcn.00451650
lea eax, [ebp - 0xd0]
push eax
push 0x48072c
push esi
call fcn.0045671f
push ebx
call fcn.0045302d
add esp, 0x2c
test edi, edi
je 0x402575
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0045094b
mov esp, ebp
pop ebp
ret

Function at 0x402590
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
mov eax, dword [0x4a2300]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push esi
test eax, eax
je 0x40261c
lea ecx, [ebp + 0xc]
push ecx
push eax
call fcn.00456ac7
add esp, 8
lea esi, [eax + 1]
cmp esi, 0x200
jg 0x40261c
push 0x3ff
lea eax, [ebp - 0x40b]
mov byte [ebp - 0x40c], 0
push 0
push eax
call fcn.00451650
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x40c]
push esi
push esi
push eax
call fcn.0045686d
add esp, 0x20
lea eax, [ebp - 0x40c]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea eax, [ebp - 0x40c]
push eax
call fcn.0045738c
add esp, 4
lea ecx, [ebp - 0x40c]
call fcn.0040c010
mov ecx, dword [ebp - 8]
xor ecx, ebp
pop esi
call fcn.0045094b
mov esp, ebp
pop ebp
ret
Function at 0x4026c0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
mov eax, dword [0x4a2300]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
call fcn.0040ee00
mov esi, edx
mov ebx, eax
mov dword [ebp - 0x74], esi
call fcn.0040ee00
sub eax, ebx
sbb edx, esi
test edx, edx
jg 0x402738
jl 0x4026fa
cmp eax, 0x7530
ja 0x402738
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0x480738
call esi
push 0x480738
call fcn.0045738c
add esp, 4
mov ecx, edi
call fcn.0040b950
cmp eax, 1
je 0x40274b
call fcn.0040ee00
sub eax, ebx
sbb edx, dword [ebp - 0x74]
mov dword [ebp - 0x7c], edx
js 0x402700
jg 0x402738
cmp eax, 0x7530
jbe 0x402700
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045094b
mov esp, ebp
pop ebp
ret
push 0x63
lea eax, [ebp - 0x6f]
mov byte [ebp - 0x70], 0
push 0
push eax
call fcn.00451650
add esp, 0xc
call fcn.0040ee00
sub eax, ebx
sbb edx, dword [ebp - 0x74]
push edx
push eax
lea eax, [ebp - 0x70]
push 0x480754
push eax
call fcn.0045671f
add esp, 0x10
lea eax, [ebp - 0x70]
push eax
call esi
lea eax, [ebp - 0x70]
push eax
call fcn.0045738c
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
mov eax, 1
pop edi
pop esi
pop ebx
call fcn.0045094b
mov esp, ebp
pop ebp
ret

Function at 0x402bb0
Capabilities:
Check mutex on windows

Disassembly:
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x402bf0
push edx
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [esi], eax
test eax, eax
je 0x402bec
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x402bf0
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0
xor eax, eax
pop esi
ret
mov eax, 1
pop esi
ret

Function at 0x402c00
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x4a2300]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
xor esi, esi
mov edi, eax
cmp dword [ebp - 8], esi
jbe 0x402c4d
push 0x4808d0
push dword [edi + esi*4]
call fcn.00452a71
add esp, 8
test eax, eax
je 0x402c5f
inc esi
cmp esi, dword [ebp - 8]
jb 0x402c33
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045094b
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
xor ecx, ebp
pop esi
call fcn.0045094b
mov esp, ebp
pop ebp
ret
Function at 0x402c80
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x4a2300]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
xor esi, esi
mov edi, eax
cmp dword [ebp - 8], esi
jbe 0x402ccd
push str.__SDK
push dword [edi + esi*4]
call fcn.00452a71
add esp, 8
test eax, eax
je 0x402cdf
inc esi
cmp esi, dword [ebp - 8]
jb 0x402cb3
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045094b
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
xor ecx, ebp
pop esi
call fcn.0045094b
mov esp, ebp
pop ebp
ret

Function at 0x402d00
Capabilities:
Accept command line arguments
Check if file exists
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x4a2300]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
cmp dword [ebp - 8], 0
mov ebx, eax
mov dword [ebp - 0xc], ebx
jbe 0x402d65
mov esi, 1
mov edi, ebx
lea ecx, [ecx]
push str.__DEL
push dword [edi]
call fcn.00452a71
mov ecx, dword [ebp - 8]
add esp, 8
test eax, eax
jne 0x402d5a
cmp esi, ecx
jb 0x402d7d
inc esi
add edi, 4
lea eax, [esi - 1]
cmp eax, ecx
jb 0x402d40
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0045094b
mov esp, ebp
pop ebp
ret
mov esi, dword [ebx + esi*4]
test esi, esi
je 0x402d65
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor edi, edi
lea esp, [esp]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x402dc3
push esi
call ebx
test eax, eax
jne 0x402dbd
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
call ebx
test eax, eax
jne 0x402dbd
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
inc edi
cmp edi, 0x1e
jl 0x402d90
push 0
push 0
push 0
push 0x8000000
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
push dword [ebp - 0xc]
jmp 0x402d66
Function at 0x402de0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c0
mov eax, dword [0x4a2300]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x263]
push esi
push edi
push 0x257
push 0
push eax
mov dword [ebp - 0x2c0], ecx
mov byte [ebp - 0x264], 0
call fcn.00451650
lea edi, [ebp - 0x264]
add esp, 0xc
dec edi
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x402e23
mov ax, word [0x4808f4]
mov esi, ebx
mov word [edi], ax
mov cl, byte [ebx]
inc ebx
test cl, cl
jne 0x402e38
lea edi, [ebp - 0x264]
sub ebx, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x402e48
mov ecx, ebx
lea edx, [ebp - 0x264]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
dec edx
rep movsb byte es:[edi], byte [esi]
mov cl, byte [edx + 1]
lea edx, [edx + 1]
test cl, cl
jne 0x402e65
mov ecx, dword [str.____UP___DEL__]
mov dword [edx], ecx
mov ecx, dword [0x4808fc]
mov dword [edx + 4], ecx
mov ecx, dword [0x480900]
mov dword [edx + 8], ecx
mov cx, word [0x480904]
mov word [edx + 0xc], cx
mov cl, byte [0x480906]
mov byte [edx + 0xe], cl
mov edx, dword [ebp - 0x2c0]
mov esi, edx
mov cl, byte [edx]
inc edx
test cl, cl
jne 0x402ea5
lea edi, [ebp - 0x264]
sub edx, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x402eb5
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]
lea edi, [ebp - 0x264]
dec edi
mov cl, byte [edi + 1]
lea edi, [edi + 1]
test cl, cl
jne 0x402ed2
push 0x40
mov word [edi], ax
lea eax, [ebp - 0x2a8]
push 0
push eax
call fcn.00451650
add esp, 0xc
mov dword [ebp - 0x2ac], 0x44
lea eax, [ebp - 0x2bc]
mov dword [ebp - 0x280], 0
xorps xmm0, xmm0
mov edi, 1
mov word [ebp - 0x27c], di
push eax
lea eax, [ebp - 0x2ac]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x264]
push eax
push 0
movdqu xmmword [ebp - 0x2bc], xmm0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
cmp eax, edi
jne 0x402f60
push dword [ebp - 0x2b8]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x2bc]
call esi
mov ecx, dword [ebp - 8]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0045094b
mov esp, ebp
pop ebp
ret
Function at 0x402f90
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4b4
mov eax, dword [0x4a2300]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x257
lea eax, [ebp - 0x25b]
mov byte [ebp - 0x25c], 0
push 0
push eax
mov edi, ecx
call fcn.00451650
add esp, 0xc
lea eax, [ebp - 0x25c]
push 0x258
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x25c]
push 0x5c
push eax
call fcn.00456990
add esp, 8
test eax, eax
je 0x403001
lea eax, [ebp - 0x25c]
push 0x5c
push eax
call fcn.00456990
add esp, 8
mov byte [eax], 0
mov esi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
lea eax, [ebp - 0x25c]
push 0x4a6890
push eax
push str.Start
push str.PATH
call esi
push 0x257
lea eax, [ebp - 0x4b3]
mov byte [ebp - 0x4b4], 0
push 0
push eax
call fcn.00451650
add esp, 0xc
lea eax, [ebp - 0x4b4]
push 0
push 0x10
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea eax, [ebp - 0x25c]
push eax
lea eax, [ebp - 0x4b4]
push eax
call fcn.00456643
add esp, 8
push 0x4a6890
test eax, eax
jne 0x403071
push edi
jmp 0x403078
lea eax, [ebp - 0x25c]
push eax
push str.Start
push str.PATH
call esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0045094b
mov esp, ebp
pop ebp
ret