joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4067a1
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x426d40]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
xor eax, eax
push 0x208
push eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push eax
call fcn.0040b790
mov eax, edi
add esp, 0xc
lea ecx, [eax + 2]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x4067df
sub eax, ecx
sar eax, 1
mov ecx, 0x104
cmp eax, ecx
jbe 0x4067fb
xor eax, eax
jmp 0x406833
push ecx
lea eax, [ebp - 0x210]
push edi
push eax
call fcn.0040cb6f
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathStripToRootW]
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
sub eax, 3
neg eax
sbb eax, eax
inc eax
mov dword [esi], eax
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0040b774
leave
ret
Function at 0x406d1b
Capabilities:
Start service

Disassembly:
push ecx
push esi
push 5
mov esi, 0x41f0a4
push esi
call fcn.004065c5
pop ecx
pop ecx
cmp eax, 1
je 0x406d38
add eax, 0x4e20
jmp 0x406d53
push ebx
push 5
xor ebx, ebx
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov dword [esp + 8], eax
cmp eax, ebx
jne 0x406d56
mov eax, 0x4269
pop ebx
pop esi
pop ecx
ret
push ebp
push edi
push 0x10
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebp, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edi, eax
cmp edi, ebx
jne 0x406d7f
mov esi, 0x426a
push dword [esp + 0x10]
call ebp
pop edi
mov eax, esi
pop ebp
jmp 0x406d52
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push edi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x406daf
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x64
mov esi, eax
call dword [sym.imp.KERNEL32.dll_Sleep]
add ebx, 0x64
cmp ebx, 0x1388
jb 0x406d7f
jmp 0x406db1
xor esi, esi
push edi
call ebp
jmp 0x406d73
Function at 0x406e1a
Capabilities:
Copy file
Create process on windows

Disassembly:
push ebp
lea ebp, [esp - 0x480]
sub esp, 0x500
mov eax, dword [0x426d40]
xor eax, ebp
mov dword [ebp + 0x47c], eax
mov eax, dword [ebp + 0x488]
push ebx
push esi
push 0xf003f
xor ebx, ebx
push ebx
push ebx
mov dword [ebp - 0x28], eax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, eax
cmp esi, ebx
jne 0x406e5c
xor eax, eax
jmp 0x406f19
push edi
push 0xf01ff
push 0x41f0a4
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
mov dword [ebp - 0x20], edi
push esi
cmp edi, ebx
jne 0x406e83
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x406f16
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
lea eax, [ebp - 0x24]
push eax
push ebx
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
test eax, eax
jne 0x406eac
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x406eac
push edi
call esi
jmp 0x406f16
push dword [ebp - 0x24]
call fcn.0040d60d
pop ecx
mov edi, eax
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x24]
mov dword [ebp - 0x2c], edi
push edi
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
push dword [ebp - 0x20]
test eax, eax
jne 0x406ed6
call esi
jmp 0x406f0f
call esi
push dword [edi + 0xc]
call dword [sym.imp.SHLWAPI.dll_PathUnquoteSpacesW]
xor eax, eax
mov esi, 0x208
push esi
mov word [ebp - 0x1c], ax
lea eax, [ebp - 0x1a]
push ebx
push eax
call fcn.0040b790
push 0x420698
push dword [edi + 0xc]
lea eax, [ebp - 0x1c]
push eax
call fcn.004068fa
add esp, 0x18
test eax, eax
jne 0x406f30
push edi
call fcn.0040ca8d
pop ecx
xor eax, eax
pop edi
mov ecx, dword [ebp + 0x47c]
pop esi
xor ecx, ebp
pop ebx
call fcn.0040b774
add ebp, 0x480
leave
ret
xor eax, eax
push esi
mov word [ebp + 0x1f0], ax
lea eax, [ebp + 0x1f2]
push ebx
push eax
call fcn.0040b790
push 0x104
push dword [ebp - 0x28]
lea eax, [ebp + 0x1f0]
push eax
call fcn.0040cb6f
lea eax, [ebp + 0x1f0]
push 0x420668
push eax
call fcn.004064ab
add esp, 0x20
push ebx
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp + 0x1f0]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x406f90
push edi
call fcn.0040ca8d
pop ecx
mov eax, ebx
jmp 0x406f18
push 0x40
lea eax, [ebp - 0x7c]
push ebx
push eax
call fcn.0040b790
xor eax, eax
mov dword [ebp - 0x3c], ebx
lea edi, [ebp - 0x38]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
push 0x7e
mov word [ebp + 0x3fc], ax
lea eax, [ebp + 0x3fe]
push ebx
push eax
mov dword [ebp - 0x80], 0x44
mov dword [ebp - 0x78], 0x41e324
call fcn.0040b790
push 0x3f
lea eax, [ebp + 0x3fc]
push 0x420638
push eax
call fcn.0040cb6f
add esp, 0x24
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x80]
push eax
push dword [ebp - 0x28]
lea eax, [ebp + 0x3fc]
push ebx
push ebx
push ebx
push ebx
push ebx
push eax
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov edi, eax
cmp edi, ebx
je 0x40701a
push dword [ebp - 0x3c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x38]
call esi
mov ebx, edi
mov edi, dword [ebp - 0x2c]
jmp 0x406f85
Function at 0x407258
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push dword [edi]
xor ebx, ebx
inc ebx
push ebx
lea eax, [ebp - 0x14]
push 4
push eax
call fcn.0040c241
add esp, 0x10
cmp eax, ebx
je 0x40727f
or eax, 0xffffffff
jmp 0x407342
mov ecx, dword [ebp - 0x14]
mov eax, 0x4206f4
cmp ecx, dword [eax]
jne 0x407277
push dword [edi]
lea eax, [ebp - 0xc]
push ebx
push 4
push eax
call fcn.0040c241
add esp, 0x10
cmp eax, ebx
jne 0x407277
push esi
push dword [ebp - 0xc]
mov esi, dword [sym.imp.WSOCK32.dll_ntohl]
call esi
push 0
push eax
push dword [edi]
mov dword [ebp - 0xc], eax
call fcn.0040d1d4
add esp, 0xc
test eax, eax
jne 0x407306
push dword [edi]
lea eax, [ebp - 4]
push ebx
push 4
push eax
call fcn.0040c241
add esp, 0x10
cmp eax, ebx
jne 0x407306
push dword [ebp - 4]
call esi
push eax
mov dword [ebp - 4], eax
call fcn.0040ba14
mov ebx, eax
pop ecx
test ebx, ebx
je 0x407306
push dword [edi]
push 1
push dword [ebp - 4]
push ebx
call fcn.0040c241
add esp, 0x10
cmp eax, 1
je 0x40730b
push ebx
call fcn.0040b54d
pop ecx
or eax, 0xffffffff
jmp 0x407341
mov eax, dword [ebp - 4]
add eax, ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
cmp dword [ebp - 8], eax
jae 0x40732e
push eax
push edi
lea esi, [ebp - 8]
call fcn.004071d3
pop ecx
pop ecx
test eax, eax
je 0x407316
push ebx
call fcn.0040b54d
pop ecx
mov ecx, dword [ebp - 0x10]
xor eax, eax
cmp dword [ebp - 8], ecx
sete al
dec eax
pop esi
pop ebx
leave
ret
Function at 0x407386
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
xor eax, eax
sub esp, 0x10
cmp dword [ebp + 0xc], eax
jne 0x40739d
cmp dword [ebp + 0x14], eax
jne 0x40739d
or eax, 0xffffffff
leave
ret
push eax
push 4
push dword [ebp + 8]
call fcn.0040d1d4
add esp, 0xc
test eax, eax
jne 0x407398
push edi
push dword [ebp + 8]
xor edi, edi
inc edi
push edi
lea eax, [ebp - 8]
push 4
push eax
call fcn.0040c241
add esp, 0x10
cmp eax, edi
je 0x4073d1
or eax, 0xffffffff
jmp 0x407579
push ebx
push esi
push dword [ebp - 8]
mov esi, dword [sym.imp.WSOCK32.dll_ntohl]
call esi
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 8], eax
test ebx, ebx
je 0x40741b
push edi
push 8
push dword [ebp + 8]
call fcn.0040d1d4
add esp, 0xc
test eax, eax
jne 0x407544
push dword [ebp + 8]
push edi
push 4
push ebx
call fcn.0040c241
add esp, 0x10
cmp eax, edi
jne 0x407544
push dword [ebx]
call esi
mov dword [ebx], eax
mov ebx, dword [ebp + 8]
push 0
push dword [ebp - 8]
push ebx
call fcn.0040d1d4
add esp, 0xc
test eax, eax
jne 0x407544
push edi
push 4
push ebx
call fcn.0040d1d4
add esp, 0xc
test eax, eax
jne 0x407544
push ebx
push edi
lea eax, [ebp - 4]
push 4
push eax
call fcn.0040c241
add esp, 0x10
cmp eax, edi
jne 0x407544
push dword [ebp - 4]
call esi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x40747a
xor ecx, ecx
cmp dword [ebp - 4], 8
setne cl
mov dword [eax], ecx
xor eax, eax
cmp dword [ebp + 0x14], eax
je 0x407575
push eax
push eax
push 0x10
push ebx
call fcn.0040ec7e
add esp, 0x10
test eax, eax
jne 0x407544
push ebx
push edi
lea eax, [ebp - 0xc]
push 4
push eax
call fcn.0040c241
add esp, 0x10
cmp eax, edi
jne 0x407544
push dword [ebp - 0xc]
call esi
mov dword [ebp - 0xc], eax
cmp eax, 8
ja 0x407544
and dword [ebp + 0xc], 0
test eax, eax
je 0x407511
push edi
push 4
push ebx
call fcn.0040d1d4
add esp, 0xc
test eax, eax
jne 0x407544
push ebx
push edi
lea eax, [ebp - 0x10]
push 4
push eax
call fcn.0040c241
add esp, 0x10
cmp eax, edi
jne 0x407544
push dword [ebp - 0x10]
call esi
push edi
push eax
push ebx
mov dword [ebp - 0x10], eax
call fcn.0040d1d4
add esp, 0xc
test eax, eax
jne 0x407544
inc dword [ebp + 0xc]
mov eax, dword [ebp + 0xc]
cmp eax, dword [ebp - 0xc]
jb 0x4074cb
push ebx
call fcn.0040df1e
pop ecx
cmp eax, dword [ebp - 4]
jne 0x407525
mov eax, dword [ebp + 0x14]
and dword [eax], 0
jmp 0x407575
mov ebx, dword [ebp + 0x1c]
test ebx, ebx
je 0x407560
push dword [ebp + 8]
mov eax, dword [ebp + 0x14]
push edi
push 4
push ebx
mov dword [eax], edi
call fcn.0040c241
add esp, 0x10
cmp eax, edi
je 0x407549
or eax, 0xffffffff
jmp 0x407577
push dword [ebx]
call esi
mov esi, dword [ebp + 0x18]
mov dword [ebx], eax
test esi, esi
je 0x407575
push dword [ebp + 8]
call fcn.0040df1e
jmp 0x407572
mov esi, dword [ebp + 0x18]
test esi, esi
je 0x407575
push dword [ebp + 8]
call fcn.0040df1e
add eax, 4
mov dword [esi], eax
pop ecx
xor eax, eax
pop esi
pop ebx
pop edi
leave
ret
Function at 0x40757c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c
mov eax, dword [0x426d40]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push 0x60
xor ebx, ebx
lea eax, [ebp - 0x67]
push ebx
push eax
mov byte [ebp - 0x68], 0
call fcn.0040b790
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x7c]
push eax
push ebx
push ebx
push dword [esi]
call fcn.00407386
add esp, 0x24
mov dword [ebp - 0x70], ebx
cmp dword [ebp - 0x78], ebx
jbe 0x407631
mov ebx, dword [sym.imp.WSOCK32.dll_ntohl]
push dword [esi]
lea eax, [ebp - 0x6c]
push 1
push 4
push eax
call fcn.0040c241
add esp, 0x10
cmp eax, 1
jne 0x407631
push dword [ebp - 0x6c]
call ebx
push dword [esi]
sub eax, 8
push 1
mov dword [ebp - 0x6c], eax
lea eax, [ebp - 0x74]
push 4
push eax
call fcn.0040c241
add esp, 0x10
cmp eax, 1
jne 0x407631
push dword [ebp - 0x74]
call ebx
mov dword [ebp - 0x74], eax
cmp eax, 1
je 0x407643
push 1
push dword [ebp - 0x6c]
push dword [esi]
call fcn.0040d1d4
add esp, 0xc
test eax, eax
jne 0x407631
inc dword [ebp - 0x70]
mov eax, dword [ebp - 0x70]
cmp eax, dword [ebp - 0x78]
jb 0x4075cd
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040b774
leave
ret
cmp dword [ebp - 0x6c], 0x60
ja 0x407631
push dword [esi]
lea eax, [ebp - 0x68]
push 1
push dword [ebp - 0x6c]
push eax
call fcn.0040c241
add esp, 0x10
cmp eax, 1
jne 0x407631
lea eax, [ebp - 0x68]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x407667
sub eax, edx
lea ecx, [ebp - 0x68]
mov dword [edi], ecx
lea ecx, [ebp + eax - 0x67]
cmp eax, 0x40
jl 0x407683
and dword [edi], 0
jmp 0x407631
mov eax, ecx
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x407688
sub eax, esi
mov dword [edi + 4], ecx
cmp eax, 0x20
jl 0x4076a2
and dword [edi], 0
and dword [edi + 4], 0
jmp 0x407631
lea eax, [ebp - 0x68]
push eax
call fcn.0041b14d
push dword [edi + 4]
mov dword [edi], eax
call fcn.0041b14d
pop ecx
mov dword [edi + 4], eax
pop ecx
xor eax, eax
jmp 0x407634

Function at 0x40772a
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx + 8]
mov edx, dword [ebp + 0x10]
cmp edx, eax
jne 0x40773e
xor eax, eax
pop ebp
ret
jle 0x407745
or eax, 0xffffffff
pop ebp
ret
sub eax, edx
push edi
mov edi, eax
cmp edi, dword [ebp + 0x18]
jle 0x407752
mov edi, dword [ebp + 0x18]
mov eax, dword [ecx + 4]
push esi
mov esi, dword [ebp + 8]
push 0
add eax, edx
push eax
push dword [esi]
call fcn.0040d1d4
add esp, 0xc
test eax, eax
je 0x407771
or eax, 0xffffffff
jmp 0x407781
push dword [esi]
push edi
push 1
push dword [ebp + 0x14]
call fcn.0040c241
add esp, 0x10
pop esi
pop edi
pop ebp
ret

Function at 0x40a569
Capabilities:
Hash data using sha1
Initialize hashing via wincrypt

Disassembly:
xor ecx, ecx
cmp dword [esp + 4], ecx
je 0x40a595
mov eax, dword [esp + 8]
cmp eax, ecx
je 0x40a595
push eax
push ecx
push ecx
push 0x8004
push dword [esp + 0x14]
mov dword [eax], ecx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
neg eax
sbb eax, eax
neg eax
dec eax
ret
or eax, 0xffffffff
ret
Function at 0x40a5c6
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
xor edi, edi
cmp dword [ebp + 8], edi
je 0x40a67c
cmp dword [ebp + 0xc], edi
je 0x40a67c
mov esi, dword [ebp + 0x14]
cmp esi, edi
je 0x40a67c
cmp dword [ebp + 0x18], edi
je 0x40a67c
cmp dword [ebp + 0x1c], edi
je 0x40a67c
cmp dword [ebp + 0x10], edi
jne 0x40a608
xor eax, eax
jmp 0x40a694
push dword [ebp + 8]
push 1
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.0040c241
add esp, 0x10
cmp eax, 1
je 0x40a63b
push dword [ebp + 0x1c]
push 0x420ea0
call fcn.0040d8b0
add eax, 0x40
push eax
call fcn.0040d7a4
add esp, 0xc
jmp 0x40a691
cmp dword [ebp + 0x18], edi
jbe 0x40a601
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call fcn.0040a599
add esp, 0xc
test eax, eax
jne 0x40a65e
inc edi
add esi, 4
cmp edi, dword [ebp + 0x18]
jb 0x40a640
jmp 0x40a601
push dword [ebp + 0x1c]
push 0x420e70
call fcn.0040d8b0
add eax, 0x40
push eax
call fcn.0040d7a4
add esp, 0xc
push 0xfffffffffffffffe
pop eax
jmp 0x40a694
push 0x420e48
call fcn.0040d8b0
add eax, 0x40
push eax
call fcn.0040d7a4
pop ecx
pop ecx
or eax, 0xffffffff
pop edi
pop esi
pop ebp
ret
Function at 0x40b774
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x426d40]
jne 0x40b77e
repz ret
jmp fcn.0041119e

Function at 0x40c4a3
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
jne 0x40c4cb
call fcn.0040cfe8
and dword [eax], 0
call fcn.0040cfd5
mov dword [eax], 0x16
call fcn.00410f99
or eax, 0xffffffff
pop ebp
ret
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40c4e8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0040cffb
pop ecx
jmp 0x40c4c6
test byte [ebp + 0xc], 0x80
je 0x40c4f3
and eax, 0xfffffffe
jmp 0x40c4f6
or eax, 1
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x40c4d9
xor eax, eax
pop ebp
ret

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x40d0da
call fcn.0040cfe8
mov dword [eax], esi
call fcn.0040cfd5
push 0x16
pop esi
mov dword [eax], esi
call fcn.00410f99
mov eax, esi
jmp 0x40d12f
test dword [ebp + 0xc], 0xfffffff9
jne 0x40d0c0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40d107
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0040cffb
pop ecx
call fcn.0040cfd5
mov eax, dword [eax]
jmp 0x40d12f
test al, 0x10
jne 0x40d12d
test al, 1
je 0x40d12d
test byte [ebp + 0xc], 2
je 0x40d12d
call fcn.0040cfe8
mov dword [eax], 5
call fcn.0040cfd5
mov dword [eax], 0xd
jmp 0x40d0fe
xor eax, eax
pop esi
pop ebp
ret
Function at 0x41851c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x426d40]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0040fb6c
and dword [ebp - 0x14], 0
cmp dword [0x429c1c], 0
mov dword [ebp - 0x18], eax
jne 0x4185cf
push 0x4227c8
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x418677
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4227bc
push ebx
call edi
test eax, eax
je 0x418677
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x4227ac
push ebx
mov dword [0x429c1c], eax
call edi
push eax
call esi
push 0x422798
push ebx
mov dword [0x429c20], eax
call edi
push eax
call esi
push 0x42277c
push ebx
mov dword [0x429c24], eax
call edi
push eax
call esi
mov dword [0x429c2c], eax
test eax, eax
je 0x4185cf
push 0x422764
push ebx
call edi
push eax
call esi
mov dword [0x429c28], eax
mov eax, dword [0x429c28]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x418628
cmp dword [0x429c2c], ecx
je 0x418628
push eax
call esi
push dword [0x429c2c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x418628
test ebx, ebx
je 0x418628
call edi
test eax, eax
je 0x41861f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x41861f
test byte [ebp - 8], 1
jne 0x418628
or dword [ebp + 0x10], 0x200000
jmp 0x41865b
mov eax, dword [0x429c20]
cmp eax, dword [ebp - 0x18]
je 0x41865b
push eax
call esi
test eax, eax
je 0x41865b
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x41865b
mov eax, dword [0x429c24]
cmp eax, dword [ebp - 0x18]
je 0x41865b
push eax
call esi
test eax, eax
je 0x41865b
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x429c1c]
call esi
test eax, eax
je 0x418677
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x418679
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040b774
leave
ret
Function at 0x405e83
Capabilities:
Contain obfuscated stackstrings

Disassembly:
test dword [ebx - 0x69000008], ebx
mov eax, dword [ebp - 0x6fc]
inc eax
mov dword [ebp - 0x6fc], eax
and dword [ebp - 0x37c], 0
call fcn.00403e16
sub dword [esi], ebp
dec esi
jp 0x405dab
push dword [ebp - 0x3a0]
call dword [ebp - 0x704]
mov dword [ebp - 0x3a4], eax
cmp dword [ebp - 0x3a4], 0
je 0x405df9
mov ch, 0x60
cld
invalid
lea eax, [ebp - 0x714]
push eax
call fcn.00403e26
pop ecx
push eax
push dword [ebp - 0x3a4]
push dword [ebp + 0x14]
call fcn.00403ddb
add esp, 0xc
mov dword [ebp - 0x37c], eax
cmp dword [ebp - 0x37c], 0
jne 0x405df9
jmp fcn.004057b8
cmp dword [ebp - 0x37c], 0
je 0x405e07
jmp 0x405ebc
push 0
push 0
push 2
push 0
push 2
push 0x40000000
push dword [ebp - 0x3a0]
call dword [ebp - 0x3c8]
mov dword [ebp - 0x380], eax
cmp dword [ebp - 0x380], 0xffffffff
je 0x405e60
push 0
lea eax, [ebp - 0x6c4]
push eax
push dword [ebp - 0x38c]
push dword [ebp - 0x748]
push dword [ebp - 0x380]
call dword [ebp - 0x730]
push dword [ebp - 0x380]
cmp ah, 0xff
invalid
call dword [ebp - 0x680]
jmp 0x405e65
jmp fcn.004057b8
and dword [ebp - 0x37c], 0
push dword [ebp - 0x3a0]
call dword [ebp - 0x704]
mov dword [ebp - 0x3a4], eax
cmp dword [ebp - 0x3a4], 0
inc dword [eax]
je 0x405eac
lea eax, [ebp - 0x714]
push eax
call fcn.00403e26
pop ecx
push eax
push dword [ebp - 0x3a4]
push dword [ebp + 0x14]
call fcn.00403ddb
add esp, 0xc
mov dword [ebp - 0x37c], eax
invalid
invalid
invalid
Function at 0x4061c5
Capabilities:
Get file size
Read file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
push 0x408a7c
mov ebx, 0x42f5a0
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov edi, dword [esp + 0x1c]
xor ebp, ebp
cmp edi, ebp
mov esi, 0x400
je 0x406213
push 1
push ebp
push edi
call fcn.00405781
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
cmp eax, ebp
je 0x40638a
cmp eax, esi
jg 0x40638a
push esi
mov edi, 0x4313f0
push edi
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
cmp eax, ebp
je 0x40638a
cmp eax, esi
jg 0x40638a
push ebp
push ebp
push esi
push 0x42fda0
push 0xffffffffffffffff
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push ebp
push ebp
call ebx
test eax, eax
je 0x40638a
push ebp
push ebp
push esi
mov esi, 0x4303f0
push esi
push 0xffffffffffffffff
push edi
push ebp
push ebp
call ebx
test eax, eax
je 0x40638a
push esi
push 0x42fda0
push str._s_s_r_n
push 0x4307f0
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov ebx, eax
mov eax, dword [0x4351ec]
push dword [eax + 0x128]
push edi
call fcn.00405f37
push 4
push 0xc0000000
push edi
call fcn.00405781
cmp eax, 0xffffffff
mov dword [esp + 0x1c], eax
je 0x40638a
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
cmp esi, ebp
je 0x406380
push ebp
lea eax, [esp + 0x14]
push eax
push edi
push esi
push dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x406380
cmp edi, dword [esp + 0x10]
jne 0x406380
push str._Rename__r_n
push esi
call fcn.004056e7
cmp eax, ebp
jne 0x406317
push str._Rename__r_n
lea eax, [esi + edi]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add edi, 0xa
jmp 0x406348
push 0x408a70
add eax, 0xa
push eax
call fcn.004056e7
mov ebp, eax
test ebp, ebp
je 0x406346
lea ecx, [esi + edi]
lea eax, [ecx + ebx]
jmp 0x406339
mov dl, byte [ecx]
mov byte [eax], dl
dec eax
dec ecx
cmp ecx, ebp
ja 0x406333
sub ebp, esi
inc ebp
mov eax, ebp
xor ebp, ebp
jmp 0x40634a
xor ebp, ebp
mov eax, edi
push ebx
push 0x4307f0
add eax, esi
push eax
call fcn.0040573d
push ebp
push ebp
push ebp
push dword [esp + 0x28]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebp
lea eax, [esp + 0x14]
push eax
add edi, ebx
push edi
push esi
push dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x4023f0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x12c
mov eax, dword [0x436038]
xor eax, esp
mov dword [esp + 0x128], eax
push esi
push 0x110
lea eax, [esp + 0x18]
mov esi, ecx
push 0
push eax
call fcn.00418400
add esp, 0xc
mov dword [esp + 0x10], 0x114
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x40246e
cmp dword [esp + 0x14], 6
jb 0x40246e
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0x207
push eax
push esi
push str.Progid
mov edx, str.SoftwareMicrosoftWindowsShellAssociationsUrlAssociationshttpUserChoice
mov ecx, 0x80000001
call fcn.00402200
add esp, 0xc
test al, al
je 0x40246e
cmp word [esi], 0
jne 0x4024c6
lea eax, [esp + 8]
mov dword [esp + 8], 0x207
push eax
push esi
push 0
mov edx, str.http_shellopencommand
mov ecx, 0x80000000
call fcn.00402200
add esp, 0xc
test al, al
je 0x40249a
cmp word [esi], 0
jne 0x4024c6
lea eax, [esp + 8]
mov dword [esp + 8], 0x207
push eax
push esi
push 0
mov edx, str.SoftwareClasses.html
mov ecx, 0x80000001
call fcn.00402200
add esp, 0xc
test al, al
je 0x4024db
cmp word [esi], 0
je 0x4024db
mov al, 1
pop esi
mov ecx, dword [esp + 0x128]
xor ecx, esp
call fcn.00416b58
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x12c]
xor al, al
pop esi
xor ecx, esp
call fcn.00416b58
mov esp, ebp
pop ebp
ret
Function at 0x4042e0
Capabilities:
Check os version

Disassembly:
sub esp, 0x120
mov eax, dword [0x436038]
xor eax, esp
mov dword [esp + 0x11c], eax
push esi
push 1
mov esi, ecx
call fcn.00416b69
mov dword [esi], eax
push 0x118
push 0
mov byte [eax], 0
lea eax, [esp + 0x14]
push eax
call fcn.00418400
add esp, 0x10
mov dword [esp + 4], 0x11c
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
mov eax, esi
je 0x40433c
cmp dword [esp + 8], 6
mov ecx, dword [esi]
setae dl
mov byte [ecx], dl
mov ecx, dword [esp + 0x120]
pop esi
xor ecx, esp
call fcn.00416b58
add esp, 0x120
ret