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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1020
call fcn.004efd70
mov eax, dword [0x97ffc0]
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.00503516
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4ff03f
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4ff1b6
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.004ef8b0
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1014], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x983bd0]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00507dbd
mov ecx, dword [esi*4 + 0x983bd0]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x1020], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x4ff1af
cmp eax, dword [edi + ecx + 0x24]
jne 0x4ff1af
xor esi, esi
lea eax, [ebp - 0x101c]
push esi
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 0x4ff1af
push dword [ebp - 0x100c]
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00507dbd
add esp, 0x14
cmp edx, esi
jl 0x4ff1af
jg 0x4ff10a
cmp eax, esi
jb 0x4ff1af
mov ebx, dword [ebp - 0x1014]
mov eax, dword [ebp - 0x101c]
cmp ebx, esi
jg 0x4ff1af
jl 0x4ff12c
cmp dword [ebp - 0x1008], eax
ja 0x4ff1af
lea edi, [ebp - 0x1004]
xorps xmm0, xmm0
add edi, eax
movlpd qword [ebp - 0x1018], xmm0
lea ecx, [ebp - 0x1004]
cmp dword [ebp - 0x1008], esi
jne 0x4ff151
cmp ebx, esi
je 0x4ff196
mov edx, dword [ebp - 0x1014]
mov esi, dword [ebp - 0x1018]
cmp ecx, edi
jae 0x4ff196
mov al, byte [ecx]
cmp al, 0xd
jne 0x4ff177
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4ff183
cmp byte [ecx + 1], 0xa
jne 0x4ff183
inc ecx
jmp 0x4ff183
movzx eax, al
movsx eax, byte [eax + 0x980120]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x4ff15d
cmp edx, ebx
jne 0x4ff15d
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x1020]
jmp 0x4ff1b4
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004eee65
leave
ret
Function at 0x504403
Capabilities:
Get file size

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x18
mov eax, dword [eax + 0xc]
nop
shr eax, 3
test al, 1
je 0x50441d
mov al, 1
leave
ret
mov eax, dword [ebp + 8]
push ebx
push esi
mov eax, dword [eax + 0xc]
nop
test al, 0xc0
mov eax, dword [ebp + 8]
je 0x504434
mov ecx, dword [eax]
cmp ecx, dword [eax + 4]
je 0x50448c
mov eax, dword [eax + 0x10]
nop
push eax
call fcn.00507b15
mov esi, eax
pop ecx
cmp esi, 0xffffffff
je 0x50448c
xor ebx, ebx
lea eax, [ebp - 0x10]
inc ebx
xorps xmm0, xmm0
push ebx
push eax
movlpd qword [ebp - 8], xmm0
push dword [ebp - 4]
push dword [ebp - 8]
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x50448c
lea eax, [ebp - 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x50448c
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x18]
jne 0x504486
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x14]
je 0x504488
xor bl, bl
mov al, bl
jmp 0x50448e
xor al, al
pop esi
pop ebx
leave
ret
Function at 0x507ebd
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]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.00507e39
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x50802c
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x50802c
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x507fe1
jg 0x507f19
test eax, eax
je 0x507fd7
push 1
push 0x1000
call fcn.00502cb0
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x507f3c
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x507fce
push 0x8000
push ebx
call fcn.0050102a
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x507f65
jg 0x507f60
cmp ecx, 0x1000
jb 0x507f65
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.0050401f
add esp, 0x10
cmp eax, 0xffffffff
je 0x507faa
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 0x507f60
jl 0x507f91
test ecx, ecx
jne 0x507f52
push dword [ebp - 0xc]
push ebx
call fcn.0050102a
push esi
call fcn.00502d10
add esp, 0xc
xor ebx, ebx
jmp 0x50803a
cmp byte [edi + 0x24], 0
je 0x507fc1
cmp dword [edi + 0x20], 5
jne 0x507fc1
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x507fcc
mov ebx, dword [edi + 0x18]
jmp 0x507fce
xor ebx, ebx
push esi
call fcn.00502d10
pop ecx
jmp 0x50803a
test ecx, ecx
jg 0x507fa3
jl 0x507fe1
test eax, eax
jae 0x507fa3
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00507ddb
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x508001
cmp byte [edi + 0x1c], 0
je 0x507fa3
jmp 0x508032
push ebx
call fcn.00507b15
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x507fa3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x50803a
cmp byte [edi + 0x1c], 0
je 0x508037
mov ebx, dword [edi + 0x18]
jmp 0x50803a
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.00507ddb
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x509a6b
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 0x509b08
push ebx
push esi
call fcn.00509a34
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.005099ca
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x509ab5
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x509b07
push edi
push eax
call fcn.005045d0
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x509ad5
call fcn.00502d10
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x509b06
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.005099ca
add esp, 0x20
test eax, eax
jne 0x509af4
push edi
call fcn.00502d10
jmp 0x509afc
push ebx
call fcn.00502d10
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 0x509b0b
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x509b1c
pop esi
ret
push ebx
push edi
push esi
call fcn.00509a34
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.005045d0
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x509b44
push ebx
push esi
push edi
call fcn.004f0720
add esp, 0xc
push 0
call fcn.00502d10
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x50a29b
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00509db7

Function at 0x5106a0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x5106cd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x5106cd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x100657d0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
xor eax, eax
push edi
jmp 0x100657e0
movzx edi, byte [eax + 0x100aef50]
mov ecx, edi
movzx ebx, byte [eax + 0x100af050]
and ecx, 1
mov esi, edi
shr esi, 1
xor esi, dword [ecx*4 + 0x100ac160]
mov ecx, esi
mov edx, esi
and ecx, 1
shr edx, 1
xor edx, dword [ecx*4 + 0x100ac160]
mov ecx, edi
shl ecx, 8
xor edx, edi
or ecx, edx
xor esi, edx
shl ecx, 8
or ecx, esi
shl ecx, 8
or ecx, esi
mov dword [eax*4 + 0x100af550], ecx
mov ecx, edx
shl ecx, 8
or ecx, esi
shl ecx, 8
or ecx, edi
mov edi, ebx
shl ecx, 8
or ecx, edx
shr edi, 1
mov dword [eax*4 + 0x100afd50], ecx
mov ecx, ebx
and ecx, 1
xor edi, dword [ecx*4 + 0x100ac160]
mov ecx, edi
mov esi, edi
and ecx, 1
shr esi, 1
xor esi, dword [ecx*4 + 0x100ac160]
xor esi, ebx
xor edi, esi
mov edx, edi
shl edx, 8
mov ecx, edx
or edx, ebx
or ecx, edi
shl edx, 8
shl ecx, 8
or edx, edi
or ecx, esi
shl edx, 8
shl ecx, 8
or edx, esi
or ecx, ebx
mov dword [eax*4 + 0x100af950], edx
mov dword [eax*4 + 0x100af150], ecx
inc eax
cmp eax, 0x100
jl 0x100657e0
pop edi
pop esi
pop ebx
ret

Function at 0x100658b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor edi, edi
jmp 0x100658c0
mov edx, edi
mov esi, edi
and edx, 0xf
sar esi, 4
mov ecx, edx
mov eax, edx
and ecx, 1
sar eax, 1
shl ecx, 3
xor edx, esi
or ecx, eax
mov eax, esi
and eax, 1
shl eax, 3
xor ecx, eax
xor ecx, esi
movzx esi, byte [edx + ebx]
movzx edx, byte [ebx + ecx + 0x10]
mov ecx, edx
mov eax, edx
and ecx, 1
sar eax, 1
shl ecx, 3
xor edx, esi
or ecx, eax
mov eax, esi
and eax, 1
shl eax, 3
xor ecx, eax
xor ecx, esi
mov al, byte [ecx + ebx + 0x30]
mov ecx, dword [ebp + 0xc]
shl al, 4
or al, byte [edx + ebx + 0x20]
mov byte [edi + ecx], al
inc edi
cmp edi, 0x100
jl 0x100658c0
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x10066500
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
push ebx
push esi
push edi
je 0x10066677
cmp dword [ebp + 0xc], 0
je 0x10066677
cmp dword [ebp + 0x10], 0
je 0x10066677
cmp dword [ebp + 0x14], 0
je 0x10066677
mov edx, dword [ebp - 0x75]
in al, dx
dec dword [esi - 0x74356c6b]
jge 0x10066687
mov esi, dword [edi + 0x3c]
add esi, edi
mov ebx, dword [esi + 0x78]
call fcn.100665be
jle 0x100666ce
in eax, dx
cmp eax, 0x67e85356
invalid
jge 0x10066725
push edi
mov eax, dword [esi + 0x20]
add eax, edi
mov edi, dword [esi + 0x1c]
add edi, dword [ebp + 8]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
shr eax, 0x10
test ax, ax
je 0x10066760
and dword [ebp - 4], 0
mov eax, dword [edi]
mov dword [ebp - 0x10], eax
call fcn.100665be
rcl ch, 6
xor al, byte [ebx + 0x7400f07d]
inc ebx
mov eax, dword [ebp - 0x14]
and dword [ebp - 0x10], 0
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
movzx eax, word [eax]
cmp eax, dword [ebp - 4]
jne 0x10066731
mov eax, dword [ebp - 0xc]
push dword [ebp + 0xc]
mov eax, dword [eax]
add eax, dword [ebp + 8]
push eax
call fcn.10066554
pop ecx
test eax, eax
pop ecx
je 0x10066758
mov eax, dword [esi + 0x18]
inc dword [ebp - 0x10]
add dword [ebp - 8], 2
add dword [ebp - 0xc], 4
dec eax
cmp dword [ebp - 0x10], eax
jbe 0x1006670f
mov eax, dword [esi + 0x14]
inc dword [ebp - 4]
dec eax
cmp dword [ebp - 4], eax
jbe 0x100666ee
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov eax, dword [ebp - 4]
mov eax, dword [edi + eax*4]
jmp 0x10066795
xor ebx, ebx
mov dword [ebp - 0x10], edi
mov eax, dword [esi + 0x10]
add eax, ebx
cmp dword [ebp + 0xc], eax
jne 0x10066780
call fcn.100665be
push ss
xchg edx, eax
cmp eax, edi
mov eax, dword [ebp - 0x10]
cmp dword [eax], 0
jne 0x1006678f
mov eax, dword [esi + 0x14]
add dword [ebp - 0x10], 4
inc ebx
dec eax
cmp ebx, eax
jbe 0x10066765
jmp 0x10066751
mov eax, dword [edi + ebx*4]
shl eax, 6
add eax, dword [ebp + 8]
jmp 0x10066753

Function at 0x10067a30
Capabilities:
Contain obfuscated stackstrings

Disassembly:
inc edx
and byte [ebp - 0x729], 0
mov byte [ebp - 0x728], 0x6b
mov byte [ebp - 0x727], 0x54
mov byte [ebp - 0x726], 0x4f
mov byte [ebp - 0x725], 0x49
mov byte [ebp - 0x724], 0x48
mov byte [ebp - 0x723], 0x5c
mov byte [ebp - 0x722], 0x51
mov byte [ebp - 0x721], 0x6d
mov byte [ebp - 0x720], 0x4f
mov byte [ebp - 0x71f], 0x52
mov byte [ebp - 0x71e], 0x49
mov byte [ebp - 0x71d], 0x58
mov byte [ebp - 0x71c], 0x5e
mov byte [ebp - 0x71b], 0x49
mov byte [ebp - 0x71a], 0x3d
call fcn.100665be
or byte [ebx - 2], al
push ecx
lea eax, [ebp - 0x72c]
push eax
call fcn.100665ce
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.10066583
add esp, 0xc
mov dword [ebp - 0x6e4], eax
call fcn.100665be
sbb eax, 0x8d00a940
test eax, ebp
clc
invalid

Function at 0x10067d90
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov eax, dword [ebp - 0x700]
inc eax
mov dword [ebp - 0x700], eax
movsx eax, byte [eax]
movsx ecx, byte [ebp - 8]
xor eax, ecx
mov ecx, dword [ebp - 0x6f8]
invalid
Function at 0x4016e0
Capabilities:
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.kernel32_GetFileAttributesA]
and eax, 1
test eax, eax
je 0x401703
push 0x80
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.kernel32_SetFileAttributesA]
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.kernel32_DeleteFileA]
pop ebp
ret
Function at 0x401ea0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp - 8]
sub eax, 1
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.kernel32_GetTempPathA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 3
jb 0x401edb
mov eax, dword [ebp + 0xc]
push eax
call fcn.00402d90
add esp, 4
and eax, 0xff
test eax, eax
jne 0x401ee9
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.kernel32_GetCurrentDirectoryA]
mov eax, dword [ebp + 0xc]
push eax
call fcn.00403210
add esp, 4
push 0x42ea28
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.00401880
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x401f29
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
push 0x5c
mov eax, dword [ebp - 4]
push eax
call fcn.00401650
add esp, 8
mov byte [eax], 0
mov esp, ebp
pop ebp
ret

Function at 0x401f30
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
push 1
push 1
call dword [sym.imp.kernel32_SleepEx]
push 1
push 1
call dword [sym.imp.kernel32_SleepEx]
mov eax, dword [0x406064]
mov dword [ebp - 0xc], eax
mov ecx, dword [0x406064]
mov dl, byte [ecx + 0xf]
mov byte [ebp - 4], dl
jmp 0x401fc3
call fcn.00401f63
mov dword [ebp - 8], 0x5f8
jmp 0x401f83
mov eax, dword [ebp - 8]
sub eax, 1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jle 0x401faa
mov ecx, dword [ebp - 0xc]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp - 4]
and eax, 0xff
xor edx, eax
mov ecx, dword [ebp - 0xc]
mov byte [ecx], dl
mov edx, dword [ebp - 0xc]
add edx, 1
mov dword [ebp - 0xc], edx
jmp 0x401f7a
push 0x5f8
mov eax, dword [0x406064]
push eax
mov ecx, dword [ebp + 8]
push ecx
call sub.MSVCRT_memmove
add esp, 0xc
jmp 0x401fc5
jmp 0x401f6c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x402600
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 8], 0
jmp 0x402618
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0x100
jge 0x402672
mov ecx, dword [ebp - 8]
mov dword [ebp - 4], ecx
mov dword [ebp - 0xc], 0
jmp 0x402639
mov edx, dword [ebp - 0xc]
add edx, 1
mov dword [ebp - 0xc], edx
cmp dword [ebp - 0xc], 8
jge 0x402663
mov eax, dword [ebp - 4]
and eax, 1
test eax, eax
je 0x402659
mov ecx, dword [ebp - 4]
shr ecx, 1
xor ecx, 0xedb88320
mov dword [ebp - 4], ecx
jmp 0x402661
mov edx, dword [ebp - 4]
shr edx, 1
mov dword [ebp - 4], edx
jmp 0x402630
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
mov dword [eax*4 + 0x42ecfc], ecx
jmp 0x40260f
mov esp, ebp
pop ebp
ret

Function at 0x402680
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x404e30
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0x3d8
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x18], 0x10
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x3e4]
push ecx
call fcn.00401e80
add esp, 8
lea edx, [ebp - 0x3e4]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x14]
movsx ecx, byte [eax + 1]
cmp ecx, 0x3a
jne 0x40270b
mov edx, dword [ebp - 0x14]
add edx, 1
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
movsx edx, byte [ecx]
test edx, edx
je 0x40270b
mov eax, dword [ebp - 0x14]
movsx ecx, byte [eax]
cmp ecx, 0x5c
jne 0x40270b
mov edx, dword [ebp - 0x14]
add edx, 1
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x14]
movsx ecx, byte [eax]
test ecx, ecx
je 0x40277d
mov edx, dword [ebp - 0x14]
movsx eax, byte [edx]
cmp eax, 0x5c
jne 0x402772
mov ecx, dword [ebp - 0x14]
mov byte [ecx], 0
lea edx, [ebp - 0x3e4]
push edx
call dword [sym.imp.SHLWAPI_PathFileExistsA]
test eax, eax
jne 0x40275d
push 0
lea eax, [ebp - 0x3e4]
push eax
call dword [sym.imp.kernel32_CreateDirectoryA]
test eax, eax
jne 0x40275b
call dword [sym.imp.kernel32_GetLastError]
cmp eax, 0xb7
je 0x40275b
xor al, al
jmp 0x40279d
jmp 0x40276c
mov ecx, dword [ebp - 0x18]
and ecx, 0x10
cmp ecx, 0x10
je 0x40276c
xor al, al
jmp 0x40279d
mov edx, dword [ebp - 0x14]
mov byte [edx], 0x5c
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [ebp - 0x14], eax
jmp 0x40270b
jmp 0x402794
mov dword [ebp - 4], 0xffffffff
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x402b90
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x401188
push 0x404b6e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x68
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
xor ebx, ebx
mov dword [ebp - 4], ebx
dec edx
add bh, bh
adc eax, sym.imp.MSVCRT___set_app_type
pop ecx
or dword [0x42f988], 0xffffffff
or dword [0x42f98c], 0xffffffff
call dword [sym.imp.MSVCRT___p__fmode]
mov ecx, dword [0x42f978]
mov dword [eax], ecx
call dword [sym.imp.MSVCRT___p__commode]
mov ecx, dword [0x42f974]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCRT__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x42f990], eax
call fcn.00402d8c
cmp dword [0x42ec38], ebx
jne 0x402c13
push 0x4019c0
call dword [sym.imp.MSVCRT___setusermatherr]
pop ecx
call fcn.00401e19
push 0x406048
push 0x406044
call sub.MSVCRT__initterm
mov eax, dword [0x42f970]
mov dword [ebp - 0x6c], eax
lea eax, [ebp - 0x6c]
push eax
push dword [0x42f96c]
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x60]
push eax
call dword [sym.imp.MSVCRT___getmainargs]
push 0x406040
push section..data
call sub.MSVCRT__initterm
add esp, 0x24
mov eax, dword [sym.imp.MSVCRT__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x74], esi
cmp byte [esi], 0x22
jne 0x402ca6
inc esi
mov dword [ebp - 0x74], esi
mov al, byte [esi]
cmp al, bl
je 0x402c7a
cmp al, 0x22
jne 0x402c6c
cmp byte [esi], 0x22
jne 0x402c83
inc esi
mov dword [ebp - 0x74], esi
mov al, byte [esi]
cmp al, bl
je 0x402c8d
cmp al, 0x20
jbe 0x402c7f
mov dword [ebp - 0x30], ebx
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.kernel32_GetStartupInfoA]
test byte [ebp - 0x30], 1
je 0x402cb1
movzx eax, word [ebp - 0x2c]
jmp 0x402cb4
cmp byte [esi], 0x20
jbe 0x402c83
inc esi
mov dword [ebp - 0x74], esi
jmp 0x402ca6
push 0xa
pop eax
push eax
push esi
push ebx
push ebx
call dword [sym.imp.kernel32_GetModuleHandleA]
push eax
call main
mov dword [ebp - 0x68], eax
push eax
call dword [sym.imp.MSVCRT_exit]
mov dword [ebp - 0x78], ecx
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov eax, dword [ebp - 0x14]
push eax
push ecx
call sub.MSVCRT__XcptFilter
pop ecx
pop ecx
ret

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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.kernel32_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov al, cl
pop ebp
ret
Function at 0x402dd0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0xc], 0
push 0
push 2
call sub.kernel32_CreateToolhelp32Snapshot
mov dword [ebp - 8], eax
push 0x128
call fcn.004031f0
add esp, 4
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov dword [ecx], 0x128
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 8]
push eax
call sub.kernel32_Process32First
test eax, eax
je 0x402e90
cmp dword [ebp + 0xc], 0
je 0x402e59
push 0
mov ecx, dword [ebp - 4]
add ecx, 0x24
push ecx
call fcn.00401840
add esp, 4
push eax
mov edx, dword [ebp - 4]
add edx, 0x24
push edx
call fcn.00403210
add esp, 4
push eax
call fcn.00402800
add esp, 0xc
cmp eax, dword [ebp + 0xc]
jne 0x402e59
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 8]
mov dword [ebp - 0xc], ecx
jmp 0x402e90
cmp dword [ebp + 8], 0
je 0x402e7f
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 4]
add eax, 0x24
push eax
call dword [sym.imp.kernel32_lstrcmpi]
test eax, eax
jne 0x402e7f
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 8]
mov dword [ebp - 0xc], edx
jmp 0x402e90
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 8]
push ecx
call sub.kernel32_Process32Next
test eax, eax
jne 0x402e19
mov edx, dword [ebp - 4]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x14]
push eax
call fcn.00401d80
add esp, 4
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.kernel32_CloseHandle]
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret

Function at 0x403040
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push edi
mov byte [ebp - 0x104], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x103]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x104]
push ecx
call fcn.00401e80
add esp, 8
lea edx, [ebp - 0x104]
push edx
call fcn.00402f50
add esp, 4
push 0x104
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.kernel32_GetSystemDirectoryA]
push 0x42e930
call fcn.00401840
add esp, 4
add eax, 1
push eax
push 0x42e930
mov ecx, dword [ebp + 8]
push ecx
call fcn.00401840
add esp, 4
mov edx, dword [ebp + 8]
add edx, eax
push edx
call fcn.00402100
add esp, 0xc
lea eax, [ebp - 0x104]
push eax
call fcn.00401840
add esp, 4
add eax, 1
push eax
lea ecx, [ebp - 0x104]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00401840
add esp, 4
mov ecx, dword [ebp + 8]
add ecx, eax
push ecx
call fcn.00402100
add esp, 0xc
mov edx, dword [ebp + 0xc]
push edx
call fcn.00401840
add esp, 4
add eax, 1
push eax
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00401840
add esp, 4
mov edx, dword [ebp + 8]
add edx, eax
push edx
call fcn.00402100
add esp, 0xc
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x4034e0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
push edi
mov ecx, 5
mov esi, 0x42e9dc
lea edi, [ebp - 0x14]
rep movsd dword es:[edi], dword [esi]
mov byte [ebp - 0x14], 0x52
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [0x42f100]
push ecx
call dword [sym.imp.kernel32_GetProcAddress]
mov dword [0x42f118], eax
push 0x42e9cc
call fcn.00403250
add esp, 4
push eax
mov edx, dword [0x42f100]
push edx
call dword [sym.imp.kernel32_GetProcAddress]
mov dword [0x42f10c], eax
mov dword [ebp - 0x20], 0
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x20], 0x4e72454b
mov dword [ebp - 0x1c], 0x32336c65
lea ecx, [ebp - 0x20]
push ecx
call dword [sym.imp.kernel32_GetModuleHandleA]
pop edi
pop esi
mov esp, ebp
pop ebp
ret