joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404e80
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cb788
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x50d4cc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x20], ecx
lea ecx, [ebp - 0x14]
push eax
mov dword [ebp - 0x14], 0
call fcn.00406580
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 0
call fcn.00407480
mov ecx, eax
call fcn.00406a50
mov ecx, eax
call fcn.004069f0
mov edi, dword [ebp - 0x14]
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
or ebx, 0xffffffff
call fcn.00402280
mov edx, eax
test esi, esi
je 0x404f14
mov edi, edi
movzx eax, byte [edi]
lea edi, [edi + 1]
movzx ecx, bl
xor ecx, eax
shr ebx, 8
xor ebx, dword [edx + ecx*4]
dec esi
jne 0x404f00
mov ecx, dword [ebp - 0x1c]
lea eax, [ebp - 0x18]
not ebx
add ecx, 4
push eax
mov dword [ebp - 0x18], ebx
call fcn.00407050
xor ecx, ecx
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x14]
test eax, eax
mov eax, dword [ebp - 0x20]
setne cl
add edx, 0xfffffff0
mov dword [eax], ecx
or ecx, 0xffffffff
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x404f58
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0048b090
mov esp, ebp
pop ebp
ret 8
Function at 0x405c50
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
movss dword [ebp - 0xc], xmm3
mov edi, edx
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, dword [ebp + 8]
lea eax, [ebp - 8]
movss xmm3, dword [ebp - 0xc]
mov edx, edi
push eax
push ebx
mov ecx, esi
call fcn.00406070
mov ecx, dword [ebp - 8]
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
mov edx, edi
push eax
push ebx
call fcn.00405e80
mov esi, dword [ebp - 0xc]
lea eax, [ebp - 0x10]
mov ecx, dword [ebp - 4]
add esp, 0x14
mov edx, esi
push eax
push ebx
push edi
call fcn.00405d90
xor ecx, ecx
add esp, 0xc
mov eax, edi
mul ebx
push 1
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0048b90c
add esp, 8
mov dword [ebp - 0x14], eax
test eax, eax
je 0x405d6a
mov edx, dword [ebp - 4]
push eax
push ebx
push edi
push esi
mov esi, dword [ebp - 0x10]
mov ecx, esi
call fcn.004057a0
xor ecx, ecx
mov eax, edi
mul ebx
push 1
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0048b90c
mov ecx, dword [ebp + 0x14]
add esp, 0x18
mov dword [ecx], eax
test eax, eax
jne 0x405d06
push str.Error_allocating_the_edge_image._n
jmp 0x405d6f
movss xmm0, dword [ebp + 0x10]
mov ecx, esi
push eax
sub esp, 8
movss dword [esp + 4], xmm0
movss xmm0, dword [ebp + 0xc]
movss dword [esp], xmm0
push ebx
push edi
mov edi, dword [ebp - 0x14]
mov edx, edi
call fcn.004055a0
add esp, 0x14
push dword [ebp - 8]
call fcn.0048b8d4
add esp, 4
push dword [ebp - 4]
call fcn.0048b8d4
add esp, 4
push dword [ebp - 0xc]
call fcn.0048b8d4
add esp, 4
push esi
call fcn.0048b8d4
add esp, 4
push edi
call fcn.0048b8d4
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.Error_allocating_the_nms_image._n
call fcn.0048b9e6
add eax, 0x40
push eax
call fcn.0048c2a1
add esp, 8
push 1
call fcn.0048ccdf
int3
Function at 0x405d90
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
mov ebx, dword [ebp + 8]
mov eax, ebx
mov dword [esp + 0x10], ecx
xor ecx, ecx
push esi
mov esi, edx
mul dword [ebp + 0xc]
push edi
push 2
seto cl
mov dword [esp + 0x18], esi
neg ecx
or ecx, eax
push ecx
call fcn.0048b90c
mov ecx, dword [ebp + 0x10]
add esp, 8
mov dword [esp + 0x1c], eax
mov dword [ecx], eax
test eax, eax
je 0x405e57
xor edi, edi
test ebx, ebx
jle 0x405e50
mov eax, dword [ebp + 0xc]
lea esp, [esp]
test eax, eax
jle 0x405e4a
mov ebx, dword [esp + 0x18]
lea esi, [esi + edi*2]
sub ebx, dword [esp + 0x14]
mov dword [esp + 0x10], eax
movsx ecx, word [ebx + esi]
movsx eax, word [esi]
imul eax, eax
imul ecx, ecx
movd xmm1, eax
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
cvtdq2ps xmm1, xmm1
addss xmm1, xmm0
cvtps2pd xmm0, xmm1
call fcn.004c9970
mov ecx, dword [esp + 0x1c]
add esi, 2
cvtsd2ss xmm0, xmm0
cvtss2sd xmm0, xmm0
addsd xmm0, qword [0x4e8a30]
cvttsd2si eax, xmm0
mov word [ecx + edi*2], ax
inc edi
dec dword [esp + 0x10]
jne 0x405df3
mov ebx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov esi, dword [esp + 0x14]
dec ebx
mov dword [ebp + 8], ebx
jne 0x405de0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.Error_allocating_the_magnitude_image._n
call fcn.0048b9e6
add eax, 0x40
push eax
call fcn.0048c2a1
add esp, 8
push 1
call fcn.0048ccdf
int3
Function at 0x405e80
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
mov ebx, dword [ebp + 8]
mov eax, edx
push esi
mov esi, ecx
mov dword [ebp - 8], eax
xor ecx, ecx
mov dword [ebp - 4], esi
mul ebx
push edi
push 2
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0048b90c
mov edi, eax
add esp, 8
mov eax, dword [ebp + 0xc]
mov dword [eax], edi
test edi, edi
je 0x406045
mov eax, dword [ebp - 8]
xor ecx, ecx
mul ebx
push 2
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0048b90c
mov ecx, dword [ebp + 0x10]
mov edx, eax
add esp, 8
mov dword [ebp + 0xc], edx
mov dword [ecx], edx
test edx, edx
je 0x406045
mov eax, dword [ebp - 8]
test eax, eax
jle 0x405f9c
mov ecx, dword [ebp - 4]
lea eax, [ebx + ebx]
mov dword [ebp - 0x20], eax
mov esi, 1
mov eax, 0xfffffffe
mov dword [ebp - 0xc], esi
sub eax, ecx
lea edx, [ecx + 2]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x14], ecx
jmp 0x405f20
mov cx, word [edx]
add eax, edx
sub cx, word [edx - 2]
mov word [eax + edi], cx
lea eax, [ebx - 1]
mov ecx, esi
cmp eax, 1
jle 0x405f6d
mov ebx, dword [ebp - 0x18]
lea esi, [eax - 1]
mov eax, dword [ebp - 0xc]
add edx, 2
add eax, esi
mov dword [ebp - 0x1c], eax
jmp 0x405f50
mov cx, word [edx]
lea eax, [ebx + edx]
sub cx, word [edx - 4]
lea edx, [edx + 2]
mov word [eax + edi], cx
dec esi
jne 0x405f50
mov edx, dword [ebp - 0x10]
mov esi, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 4]
mov ebx, dword [ebp - 4]
add edx, dword [ebp - 0x20]
mov dword [ebp - 0x10], edx
mov ax, word [eax + ecx*2]
sub ax, word [ebx + ecx*2 - 2]
mov ebx, dword [ebp + 8]
add esi, ebx
dec dword [ebp - 0x14]
mov word [edi + ecx*2], ax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0xc], esi
jne 0x405f20
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp - 4]
xor ecx, ecx
mov dword [ebp - 0x18], ecx
test ebx, ebx
jle 0x40603e
mov edi, dword [ebp - 4]
mov dword [ebp - 0x10], esi
lea eax, [edi + ebx*2]
lea edi, [edi + ebx*4]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], edi
jmp 0x405fc0
mov ax, word [eax]
sub ax, word [esi]
mov word [edx + ecx*2], ax
lea eax, [ecx + ebx]
mov ecx, dword [ebp - 8]
dec ecx
cmp ecx, 1
jle 0x405ffe
mov edx, edi
lea edi, [ecx - 1]
jmp 0x405fe0
mov cx, word [edx]
mov ebx, dword [ebp + 0xc]
sub cx, word [esi]
mov word [ebx + eax*2], cx
mov ebx, dword [ebp + 8]
add eax, ebx
lea esi, [esi + ebx*2]
lea edx, [edx + ebx*2]
dec edi
jne 0x405fe0
mov esi, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
lea edx, [eax + eax]
mov edi, dword [ebp - 4]
sub eax, ebx
add esi, 2
mov dword [ebp - 0x10], esi
mov cx, word [edx + ecx]
sub cx, word [edi + eax*2]
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp - 0xc]
add edi, 2
mov dword [ebp - 0xc], edi
mov word [edx + eax], cx
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
inc ecx
mov edx, dword [ebp + 0xc]
add eax, 2
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], eax
cmp ecx, ebx
jl 0x405fc0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.Error_allocating_the_delta_x_image._n
call fcn.0048b9e6
add eax, 0x40
push eax
call fcn.0048c2a1
add esp, 8
push 1
call fcn.0048ccdf
int3
Function at 0x4062d0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
sub esp, 0x34
movaps xmm1, xmm0
xorps xmm0, xmm0
movss dword [esp + 0x1c], xmm1
cvtss2sd xmm1, xmm1
push ebx
push esi
push edi
sub esp, 8
mov esi, edx
mov edi, ecx
movss dword [esp + 0x3c], xmm0
mulsd xmm1, qword [0x4e8a78]
movsd qword [esp + 0x40], xmm1
fld qword [esp + 0x40]
fstp qword [esp]
call fcn.004c9ce0
fstp qword [esp + 0x40]
movsd xmm0, qword [esp + 0x40]
mulsd xmm0, qword [0x4e8a70]
push 4
addsd xmm0, qword [0x4e8a50]
cvttsd2si ebx, xmm0
mov eax, ebx
mov dword [esi], ebx
cdq
sub eax, edx
sar eax, 1
push ebx
mov dword [esp + 0x34], eax
call fcn.0048b90c
mov esi, eax
add esp, 0x10
mov dword [edi], esi
test esi, esi
je 0x40642a
xor edi, edi
test ebx, ebx
jle 0x406401
movss xmm0, dword [esp + 0x28]
mulss xmm0, xmm0
movss dword [esp + 0x38], xmm0
movsd xmm0, qword [0x4e8aa0]
call fcn.004c9970
movss xmm1, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
cvtps2pd xmm1, xmm1
neg eax
mov dword [esp + 0x24], eax
mulsd xmm0, xmm1
movsd qword [esp + 0x28], xmm0
lea esp, [esp]
movd xmm2, eax
cvtdq2ps xmm2, xmm2
movsd xmm0, qword [0x4e8a88]
cvtps2pd xmm1, xmm2
cvtps2pd xmm2, xmm2
mulsd xmm1, qword [0x4e8ba0]
mulsd xmm1, xmm2
movss xmm2, dword [esp + 0x38]
cvtps2pd xmm2, xmm2
divsd xmm1, xmm2
call fcn.004c8e00
divsd xmm0, qword [esp + 0x28]
mov eax, dword [esp + 0x24]
inc eax
mov dword [esp + 0x24], eax
cvtsd2ss xmm0, xmm0
movss dword [esi + edi*4], xmm0
inc edi
addss xmm0, dword [esp + 0x34]
movaps xmm1, xmm0
movss dword [esp + 0x34], xmm1
cmp edi, ebx
jl 0x4063a0
jmp 0x406404
xorps xmm1, xmm1
xor eax, eax
test ebx, ebx
jle 0x406423
lea ebx, [ebx]
movss xmm0, dword [esi + eax*4]
divss xmm0, xmm1
movss dword [esi + eax*4], xmm0
inc eax
cmp eax, ebx
jl 0x406410
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.Error_callocing_the_gaussian_kernel_array._n
call fcn.0048b9e6
add eax, 0x40
push eax
call fcn.0048c2a1
add esp, 8
push 1
call fcn.0048ccdf
int3
Function at 0x40bb50
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4cbb48
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x50d4cc]
xor eax, esp
mov dword [esp + 0x28], eax
push esi
mov eax, dword [0x50d4cc]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
movsd xmm0, qword [0x5190c8]
xorps xmm1, xmm1
ucomisd xmm0, xmm1
movsd qword [esp + 0xc], xmm1
lahf
test ah, 0x44
jp 0x40bccb
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], 0
call fcn.0040e250
mov dword [esp + 0x40], 0
push dword [esp + 0x14]
push 0x104
push 0x518fc0
push 0x4df3d0
push str.scale
push 0x4dfd9c
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
xor edx, edx
mov dword [esp + 0x2c], 0xf
test eax, eax
mov dword [esp + 0x28], 0
mov ecx, 0x518fc0
mov byte [esp + 0x18], 0
cmove ecx, edx
mov edx, str.0.000
test ecx, ecx
cmovne edx, ecx
cmp byte [edx], 0
jne 0x40bc14
xor ecx, ecx
jmp 0x40bc29
mov ecx, edx
lea esi, [ecx + 1]
lea esp, [esp]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40bc20
sub ecx, esi
push ecx
push edx
lea ecx, [esp + 0x20]
call fcn.00407ba0
cmp dword [esp + 0x2c], 0x10
lea eax, [esp + 0x18]
cmovae eax, dword [esp + 0x18]
push eax
call fcn.0048d118
fstp qword [0x5190c8]
movsd xmm0, qword [0x5190c8]
add esp, 4
ucomisd xmm0, qword [esp + 0xc]
lahf
test ah, 0x44
jp 0x40bc75
movsd xmm0, qword [0x4e8a58]
movsd qword [0x5190c8], xmm0
cmp dword [esp + 0x2c], 0x10
jb 0x40bc88
push dword [esp + 0x18]
call fcn.0048b08b
add esp, 4
mov dword [esp + 0x40], 0xffffffff
or ecx, 0xffffffff
mov edx, dword [esp + 0x14]
add edx, 0xfffffff0
mov dword [esp + 0x2c], 0xf
mov dword [esp + 0x28], 0
mov byte [esp + 0x18], 0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40bcc3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
movsd xmm0, qword [0x5190c8]
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.0048b090
mov esp, ebp
pop ebp
ret
Function at 0x40f180
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x50d4cc]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
push 0
mov edi, ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x40f241
push ebx
push esi
mov ecx, edi
call fcn.00411c90
push 3
lea eax, [ebp - 0x108]
push 0
lea ecx, [ebp - 0x10c]
mov dword [ebp - 0x10c], eax
call fcn.0040f450
mov ebx, dword [ebp - 0x10c]
push 0x10
call dword [sym.imp.gdiplus.dll_GdipAlloc]
mov esi, eax
test esi, esi
je 0x40f208
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
xorps xmm0, xmm0
push eax
movdqu xmmword [esi], xmm0
push ebx
mov dword [esi], vtable.Gdiplus::Bitmap.0
call dword [sym.imp.gdiplus.dll_GdipCreateBitmapFromFile]
mov dword [esi + 8], eax
mov eax, dword [ebp - 8]
mov dword [esi + 4], eax
jmp 0x40f20a
xor esi, esi
mov eax, dword [ebp - 0x10c]
lea ecx, [ebp - 0x108]
mov dword [edi + 4], esi
pop esi
pop ebx
cmp eax, ecx
je 0x40f228
push eax
call fcn.0048b8d4
add esp, 4
xor eax, eax
cmp dword [edi + 4], eax
pop edi
setne al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048b090
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop edi
call fcn.0048b090
mov esp, ebp
pop ebp
ret 4

Function at 0x40fe00
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cbf28
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x50d4cc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 8]
push 0x519b84
mov dword [edi], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [edi + 4]
push 0x519b84
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test esi, esi
je 0x40fe68
push 0x519b84
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x519b84
mov dword [edi + 4], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea esi, [edi + 8]
mov dword [ebp - 0x10], esi
call fcn.00401910
mov ecx, eax
xor eax, eax
test ecx, ecx
setne al
test eax, eax
jne 0x40fe8a
push 0x80004005
call fcn.00401330
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi], eax
mov ecx, esi
mov dword [ebp - 4], 0
call fcn.0040fd50
mov dword [ebp - 4], 0xffffffff
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0x100
mov byte [edi + 0x28], 0xf
mov dword [edi + 0x2c], 0xff000000
call fcn.00401910
mov ecx, eax
test ecx, ecx
jne 0x40fee5
push 0x80004005
call fcn.00401330
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi + 0x30], eax
mov eax, edi
mov dword [edi + 0x34], 0xff000000
mov dword [edi + 0x38], 0xff000000
mov dword [edi + 0x34], 0xffc0c0c0
mov dword [edi + 0x38], 0xff212121
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x41dbb0
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cc5d8
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x50d4cc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 3
push 0x4e0e28
mov dword [esi + 0x30], 0
call fcn.00407ba0
push 3
push 0x4e0e2c
lea ecx, [esi + 0x18]
call fcn.00407ba0
push 0xf
push str.deli__datetime_
lea ecx, [esi + 0x44]
mov word [esi + 0x34], 0
mov byte [esi + 0x36], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 0
mov dword [esi + 0x40], 0
call fcn.00407ba0
push 1
lea ecx, [ebp - 0x10]
call fcn.00421c60
add esp, 4
mov dword [ebp - 4], 0
mov edx, dword [eax]
cmp byte [edx], 0
jne 0x41dc46
xor ecx, ecx
jmp 0x41dc59
mov ecx, edx
lea edi, [ecx + 1]
jmp 0x41dc50
mov al, byte [ecx]
inc ecx
test al, al
jne 0x41dc50
sub ecx, edi
push ecx
push edx
lea ecx, [esi + 0x5c]
call fcn.00407ba0
mov dword [ebp - 4], 0xffffffff
or ecx, 0xffffffff
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41dc87
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0
push 0x4df3d0
lea ecx, [esi + 0x74]
call fcn.00407ba0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x420860
Capabilities:
Check if file exists
Delete file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x50d4cc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, ecx
mov ebx, edx
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x420889
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
push 0
push 2
push 0
push 0
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4208c9
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x420900
pop edi
movzx eax, ax
pop esi
or eax, 0x80070000
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048b090
mov esp, ebp
pop ebp
ret
xor esi, esi
lea eax, [ebp - 8]
push esi
push eax
push dword [ebp + 8]
mov dword [ebp - 8], esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4208f7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x4208f7
movzx esi, si
or esi, 0x80070000
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0048b090
mov esp, ebp
pop ebp
ret
Function at 0x420920
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x50d4cc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, edx
test edi, edi
jne 0x420954
test ebx, ebx
jne 0x420954
pop edi
mov eax, 0x80004003
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048b090
mov esp, ebp
pop ebp
ret
push esi
xor esi, esi
mov byte [ebp - 9], 0
push esi
push esi
push 3
push esi
push 1
push SysReAllocString
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x10], eax
cmp eax, 0xffffffff
jne 0x4209a2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x420a49
movzx esi, si
or esi, 0x80070000
mov eax, esi
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048b090
mov esp, ebp
pop ebp
ret
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x14], eax
test edi, edi
jne 0x4209bd
test ebx, ebx
je 0x4209bd
mov dword [ebx], eax
jmp 0x420a40
cmp dword [edi], esi
jne 0x4209ec
xor ecx, ecx
add eax, 1
push 1
setb cl
neg ecx
or ecx, eax
push ecx
call fcn.0048b90c
add esp, 8
mov dword [edi], eax
test eax, eax
jne 0x4209e5
mov esi, 0x8007000e
jmp 0x420a40
mov eax, dword [ebp - 0x14]
mov byte [ebp - 9], 1
push 0
lea ecx, [ebp - 8]
mov dword [ebp - 8], esi
push ecx
push eax
push dword [edi]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x420a37
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x420a1a
movzx esi, si
or esi, 0x80070000
cmp byte [ebp - 9], 0
je 0x420a40
mov eax, dword [edi]
test eax, eax
je 0x420a40
push eax
call fcn.0048b8d4
add esp, 4
mov dword [edi], 0
jmp 0x420a40
test ebx, ebx
je 0x420a40
mov ecx, dword [ebp - 8]
mov dword [ebx], ecx
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
pop edi
xor ecx, ebp
pop ebx
call fcn.0048b090
mov esp, ebp
pop ebp
ret

Function at 0x420bb0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x50d4cc]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x103
lea eax, [ebp - 0x107]
mov dword [ebp - 0x10c], 0
push 0
push eax
mov esi, ecx
mov byte [ebp - 0x108], 0
call fcn.0048f5e0
add esp, 0xc
lea eax, [ebp - 0x108]
push 0x104
push eax
push str._ALLUSERSPROFILE_JHSoft
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
mov ecx, eax
lea eax, [ecx - 1]
cmp eax, 0x101
ja 0x420c22
lea eax, [ecx + 1]
cmp eax, 0x104
jae 0x420c79
mov byte [ebp + eax - 0x108], 0
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
mov byte [esi], 0
cmp byte [ebp - 0x108], 0
jne 0x420c40
xor ecx, ecx
jmp 0x420c59
lea ecx, [ebp - 0x108]
lea edx, [ecx + 1]
lea esp, [esp]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x420c50
sub ecx, edx
push ecx
lea eax, [ebp - 0x108]
mov ecx, esi
push eax
call fcn.00407ba0
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0048b090
mov esp, ebp
pop ebp
ret
call fcn.0048d845
int3
Function at 0x4217f0
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x310
mov eax, dword [0x50d4cc]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
test esi, esi
jne 0x42181b
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048b090
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x42183c
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048b090
mov esp, ebp
pop ebp
ret
push 0x103
lea eax, [ebp - 0x107]
mov byte [ebp - 0x108], 0
push 0
push eax
call fcn.0048f5e0
add esp, 0xc
push 0x4e1018
push esi
call dword [sym.imp.SHLWAPI.dll_StrStrIA]
test eax, eax
jne 0x42188f
lea ecx, [ebp - 0x310]
call fcn.00421750
test eax, eax
je 0x4218a2
push esi
lea eax, [ebp - 0x310]
push eax
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineA]
jmp 0x4218a2
push 0x104
push esi
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
push edi
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
cmp byte [ebp + edi - 0x108], 0x5c
je 0x4218cf
push 0x4df41c
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
inc edi
push 0x103
lea eax, [ebp - 0x20b]
mov byte [ebp - 0x20c], 0
push 0
push eax
call fcn.0048f5e0
add esp, 0xc
test edi, edi
je 0x42197c
push ebx
jle 0x421953
mov esi, 2
lea ebx, [ebp - 0x108]
cmp byte [ebx + esi - 2], 0x5c
jne 0x42194b
push esi
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
lea eax, [ebp - 0x20c]
je 0x42193e
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
jmp 0x421947
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x421969
inc esi
lea eax, [esi - 2]
cmp eax, edi
jl 0x421902
pop ebx
pop edi
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048b090
mov esp, ebp
pop ebp
ret
pop ebx
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048b090
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.0048b090
mov esp, ebp
pop ebp
ret