joyce8/EMBER2024-capa huggingface dataset:
Function at 0x51cfc0
Capabilities:
Query service status
Start service

Disassembly:
sub esp, 0x20
mov eax, dword [0x5d0074]
xor eax, esp
mov dword [esp + 0x1c], eax
push edi
push 1
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
jne 0x51cff7
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.005214e1
add esp, 0x20
ret
push esi
push 0x14
push 0x595570
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
call edi
test esi, esi
je 0x51d054
lea eax, [esp + 8]
mov dword [esp + 0x20], 0
xorps xmm0, xmm0
push eax
push esi
movups xmmword [esp + 0x10], xmm0
movq qword [esp + 0x20], xmm0
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x51d051
cmp dword [esp + 0xc], 4
je 0x51d06b
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x51d06b
push esi
call edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop esi
pop edi
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.005214e1
add esp, 0x20
ret
push esi
call edi
mov ecx, dword [esp + 0x24]
xor eax, eax
pop esi
pop edi
xor ecx, esp
call fcn.005214e1
add esp, 0x20
ret

Function at 0x520634
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x5d0074]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
mov eax, 0xffff
push edi
mov edi, ecx
cmp ax, bx
jne 0x520659
xor eax, eax
jmp 0x5206b5
mov eax, dword [edi + 0x20]
push esi
mov ecx, dword [eax]
test ecx, ecx
je 0x520686
mov edx, dword [edi + 0x30]
mov esi, dword [edx]
lea eax, [ecx + esi*2]
cmp ecx, eax
jae 0x520686
lea ecx, [esi - 1]
mov dword [edx], ecx
mov edx, dword [edi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 2]
mov dword [edx], ecx
mov word [esi], bx
jmp 0x52073a
cmp dword [edi + 0x4c], 0
je 0x5206af
mov ecx, edi
call fcn.0052024a
mov eax, dword [edi + 0x38]
mov dword [ebp - 0x2c], eax
test eax, eax
jne 0x5206c5
push dword [edi + 0x4c]
push ebx
call fcn.0051fe84
pop ecx
test al, al
movzx eax, bx
pop ecx
jne 0x5206b4
mov eax, 0xffff
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.005214e1
leave
ret 4
mov word [ebp - 0x28], bx
mov eax, dword [eax]
mov esi, dword [eax + 0x1c]
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 4]
mov ecx, esi
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x26]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [edi + 0x40]
push eax
call dword [0x57129c]
mov ecx, dword [ebp - 0x2c]
call esi
test eax, eax
js 0x5206af
cmp eax, 1
jle 0x52070d
cmp eax, 3
jne 0x5206af
push dword [edi + 0x4c]
push dword [ebp - 0x28]
jmp 0x5206a1
mov esi, dword [ebp - 0x30]
lea eax, [ebp - 0x24]
sub esi, eax
je 0x52072a
push dword [edi + 0x4c]
push esi
push 1
push eax
call fcn.0052f1b6
add esp, 0x10
cmp esi, eax
jne 0x5206af
lea eax, [ebp - 0x28]
mov byte [edi + 0x3e], 1
cmp dword [ebp - 0x34], eax
je 0x5206af
mov ax, bx
jmp 0x5206b4

Function at 0x5387cb
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0053848e
Function at 0x5387d6
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0053860f
Function at 0x408410
Capabilities:
Encode data using xor

Disassembly:
test al, 0xe4
add dword [eax], eax
xchg edx, eax
in al, 1
add byte [esp + 1], bh
add byte [eax - 0x1c], ch
add dword [eax], eax
push esp
in al, 1
add byte [eax], bh
in al, 1
add byte [eax], cl
in eax, 1
add byte [eax], al
add byte [eax], al
add byte [esi - 0x4bfffe28], dl
fadd dword [ecx]
add dl, dl
fadd dword [ecx]
add dh, dh
fadd dword [ecx]
add byte [eax], bl
fld dword [ecx]
add byte [eax], dh
fld dword [ecx]
add byte [eax - 0x27], al
add dword [eax], eax
push eax
fld dword [ecx]
add byte [eax - 0x27], dh
add dword [eax], eax
jp 0x40842f
add dword [eax], eax
mov ds, ecx
add dword [eax], eax
mov al, byte [0xac0001d9]
fld dword [ecx]
add ah, al
fld dword [ecx]
add ah, bl
fld dword [ecx]
add dh, ah
fld dword [ecx]
add al, dh
fld dword [ecx]
add byte [edx + ebx*8], al
add dword [eax], eax
push ds
fiadd dword [ecx]
add byte [edx], dh
fiadd dword [ecx]
add byte [edx - 0x26], dl
add dword [eax], eax
insb byte es:[edi], dx
fiadd dword [ecx]
add byte [eax - 0x61fffe26], cl
fiadd dword [ecx]
add byte [esi - 0x2dfffe26], bh
fiadd dword [ecx]
add al, ch
fiadd dword [ecx]
add al, bh
fiadd dword [ecx]
add byte [ebx + ebx*8], cl
add dword [eax], eax
sub bl, bl
add dword [eax], eax
dec edx
fild dword [ecx]
add byte [eax - 0x25], bl
add dword [eax], eax
je 0x40848d
add dword [eax], eax
mov ebx, ds
add dword [eax], eax
sahf
fild dword [ecx]
add byte [edx - 0x4bfffe25], ch
fild dword [ecx]
add ah, cl
fild dword [ecx]
add al, ch
fild dword [ecx]
add byte [esp + ebx*8], al
add dword [eax], eax
sbb al, 0xdc
add dword [eax], eax
cmp ah, bl
add dword [eax], eax
inc esi
fadd qword [ecx]
add byte [esp + ebx*8 + 1], ah
add byte [edx - 0x6dfffe24], al
fadd qword [ecx]
add byte [eax - 0x47fffe24], ch
fadd qword [ecx]
add dl, cl
fadd qword [ecx]
add al, bl
fadd qword [ecx]
add ah, dh
fadd qword [ecx]
add byte [eax], cl
fld qword [ecx]
add byte [ebx*8 - 0x22d9ffff], dl
add dword [eax], eax
cmp ch, bl
add dword [eax], eax
inc esi
fld qword [ecx]
add byte [eax - 0x23], bl
add dword [eax], eax
jbe 0x4084f3
add dword [eax], eax
mov ch, bl
add dword [eax], eax
pushfd
fld qword [ecx]
add byte [eax - 0x3dfffe23], ch
fld qword [ecx]
add dl, dl
fld qword [ecx]
add dl, ah
fld qword [ecx]
add byte [esi + ebx*8], al
add al, 0xde

Function at 0x6880f4
Capabilities:
Execute anti-debugging instructions

Disassembly:
jmp 0x976135
jmp 0x976248
push ebx
mov ebx, esp
add ebx, 4
sub ebx, 4
xchg dword [esp], ebx
pop esp
mov dword [esp], ebp
mov dword [esp], edx
mov dword [esp], ecx
mov dword [esp], ebp
jmp 0x97626c
jmp fcn.0097b669
Function at 0x406a06
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
lea eax, [ebp - 0x23c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x406a2a
xor eax, eax
test eax, eax
je 0x406a3d
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x406a3d
xor ecx, ecx
jmp 0x406a40
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x40a014]
lea eax, [ebp + eax*2 - 0x23c]
push ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

Function at 0x406b63
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x4275ec], 0
push esi
jne 0x406b9a
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406b74
mov dword [ecx*4 + 0x4275e8], eax
inc ecx
cmp ecx, 0x100
jl 0x406b6f
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406bcb
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x4275e8]
xor eax, esi
inc ecx
dec edx
jne 0x406bad
pop edi
not eax
pop esi
ret 0xc

Function at 0x493260
Capabilities:
Encode data using xor
Resolve function by parsing pe exports

Disassembly:
pushal
mov ebx, dword [esp + 0x24]
mov ecx, ebx
add ebx, dword [ebx + 0x3c]
mov ebx, dword [ebx + 0x78]
add ebx, ecx
mov edi, dword [ebx + 0x20]
add edi, ecx
xor esi, esi
lea edx, [edi + esi*4]
mov edx, dword [edx]
add edx, ecx
xor eax, eax
rol eax, 7
xor al, byte [edx]
inc edx
cmp byte [edx], 0
jne 0x49327f
cmp eax, dword [esp + 0x28]
je 0x493296
inc esi
cmp esi, dword [ebx + 0x18]
jb 0x493276
lea edx, [edi + esi*4]
mov edx, dword [edx]
add edx, ecx
mov dword [esp + 0x1c], edx
popal
ret 8
Function at 0x572c80
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
push ecx
push edx
push eax
call sub.ws2_32.dll_connect
mov esp, ebp
pop ebp
ret

Function at 0x419760
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x40f015
lea edi, [esi - 0xe015]
push edi
or ebp, 0xffffffff
jmp 0x419782
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x419789
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x419778
nop
push 1
nop
pop eax
add ebx, ebx
jne 0x41979b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x419790
jne 0x4197ac
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x419790
sub ecx, ecx
sub eax, 3
jb 0x4197c0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x419832
mov ebp, eax
add ebx, ebx
jne 0x4197cb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x4197d8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x4197fc
inc ecx
add ebx, ebx
jne 0x4197e8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4197dd
jne 0x4197f9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4197dd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x41981c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x41980d
jmp 0x41977e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x41981c
add edi, ecx
jmp 0x41977e
pop esi
push esi
pop edi
mov ecx, 0x2b3
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x41983a
cmp byte [edi], 5
jne 0x41983a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x41983f
lea edi, [esi + 0x17000]
mov eax, dword [edi]
or eax, eax
je 0x4198b7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x19000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1908c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x41986c
push edi
pop ecx
jns 0x41989b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x19090]
or eax, eax
je 0x4198b1
mov dword [ebx], eax
add ebx, 4
jmp 0x419889
call dword [esi + 0x190a0]
mov ebp, dword [esi + 0x19094]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4198eb
sub esp, 0xffffff80
jmp 0x404c20
Function at 0x401000
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
push edi
mov ecx, 0x5ea00d
call fcn.00403138
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x40102a
xor eax, eax
jmp 0x401030
mov eax, dword [ebp - 4]
and eax, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x401040
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
push ebx
push esi
push edi
mov ecx, 0x5ea00d
call fcn.00403138
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
movzx eax, word [ebp - 0x24]
cmp eax, 9
je 0x401078
movzx ecx, word [ebp - 0x24]
cmp ecx, 6
je 0x401078
mov dword [ebp - 0x68], 0
jmp 0x40107f
mov dword [ebp - 0x68], 1
mov eax, dword [ebp - 0x68]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x401090
Capabilities:
Create thread
Delete file
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
push ebx
push esi
push edi
mov ecx, 0x5ea00d
call fcn.00403138
mov dword [ebp - 0x20], 0x5e95a0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.00401e40
add esp, 8
push 0x5e8d70
call fcn.00401900
add esp, 4
push 0x5e8d7c
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
push 0
mov eax, dword [ebp - 0x20]
push eax
push 0x401830
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0
push 0
mov eax, dword [ebp - 0x20]
push eax
push 0x402140
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx + 8]
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.USER32.dll_UpdateWindow]
push 0
push 0
push 0
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
je 0x401148
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x40111e
mov eax, dword [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4013a0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
push ebx
push esi
push edi
mov ecx, 0x5ea00d
call fcn.00403138
xor eax, eax
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], eax
push 0x44
push 0
lea eax, [ebp - 0x44]
push eax
call fcn.00403ce0
add esp, 0xc
mov dword [ebp - 0x44], 0x44
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0x44]
push ecx
push 0
push 0
push 0x8000020
push 1
push 0
push 0
mov edx, dword [ebp + 8]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x401414
push str.Create_the_child_process_failed._n
call fcn.00401160
add esp, 4
or eax, 0xffffffff
jmp 0x401436
push 0xffffffffffffffff
mov eax, dword [ebp - 0x54]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [ebp - 0x54]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4014e0
Capabilities:
Create service
Persist via windows service
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x294
mov eax, dword [0x5e84a8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov ecx, 0x5ea00d
call fcn.00403138
mov eax, dword [str.Auto_eject]
mov dword [ebp - 0x108], eax
mov ecx, dword [0x419424]
mov dword [ebp - 0x104], ecx
mov dx, word [0x419428]
mov word [ebp - 0x100], dx
mov al, byte [0x41942a]
mov byte [ebp - 0xfe], al
push 0xf9
push 0
lea eax, [ebp - 0xfd]
push eax
call fcn.00403ce0
add esp, 0xc
push 0x104
push 0
lea eax, [ebp - 0x214]
push eax
call fcn.00403ce0
add esp, 0xc
mov eax, dword [ebp + 8]
add eax, 0x318
push eax
lea ecx, [ebp - 0x214]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x41942c
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov dword [ebp - 0x110], eax
cmp dword [ebp - 0x110], 0
jne 0x4015b7
push str.Open_sc_manager_failed_n
call fcn.00401160
add esp, 4
or eax, 0xffffffff
jmp 0x40164d
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x214]
push eax
push 1
push 2
push 0x10
push 0x10
push str.ZTOPMICRO_9101DV20_auto_eject
lea ecx, [ebp - 0x108]
push ecx
mov edx, dword [ebp - 0x110]
push edx
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov dword [ebp - 0x10c], eax
cmp dword [ebp - 0x10c], 0
jne 0x40160a
push str.Create_sc_service_failed_n
call fcn.00401160
add esp, 4
or eax, 0xffffffff
jmp 0x40164d
push 0
push 0
mov eax, dword [ebp - 0x10c]
push eax
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
jne 0x401631
push str.Service_start_failed__n
call fcn.00401160
add esp, 4
or eax, 0xffffffff
jmp 0x40164d
mov eax, dword [ebp - 0x10c]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 0x110]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040316a
mov esp, ebp
pop ebp
ret
Function at 0x401660
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3d8
mov eax, dword [0x5e84a8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov ecx, 0x5ea00d
call fcn.00403138
mov dword [ebp - 8], 0x419284
push 0x104
push 0
lea eax, [ebp - 0x10c]
push eax
call fcn.00403ce0
add esp, 0xc
push 0x104
push 0
lea eax, [ebp - 0x210]
push eax
call fcn.00403ce0
add esp, 0xc
mov dword [ebp - 0x358], 0
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x10c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x419288
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x350]
push eax
lea ecx, [ebp - 0x10c]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x354], eax
cmp dword [ebp - 0x354], 0xffffffff
jne 0x401715
push str.No_files_found._n
call fcn.00401160
add esp, 4
jmp 0x40181b
cmp dword [ebp - 0x358], 0
jne 0x4017e8
mov eax, 1
imul ecx, eax, 0
movsx edx, byte [ebp + ecx - 0x324]
mov eax, 1
imul ecx, eax, 0
mov eax, dword [ebp - 8]
movsx ecx, byte [eax + ecx]
cmp edx, ecx
je 0x4017a5
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x4192a4
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x324]
push eax
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov eax, dword [ebp - 0x350]
and eax, 0x10
je 0x401798
lea eax, [ebp - 0x210]
push eax
call fcn.00401660
add esp, 4
jmp 0x4017a5
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x350]
push eax
mov ecx, dword [ebp - 0x354]
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4017e3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
jne 0x4017d4
mov dword [ebp - 0x358], 1
jmp 0x4017e3
push str.Couldnt_find_next_file._n
call fcn.00401160
add esp, 4
jmp 0x40181b
jmp 0x401715
mov eax, dword [ebp - 0x354]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x40181b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [ebp + 8]
push eax
push str.delete_directory_path_s_error_d_n
call fcn.00401160
add esp, 0xc
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040316a
mov esp, ebp
pop ebp
ret
Function at 0x4022b0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2a8
mov eax, dword [0x5e84a8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov ecx, 0x5ea029
call fcn.00403138
mov dword [ebp - 8], str.version
mov dword [ebp - 0xc], str.usbwifi_ndis
mov dword [ebp - 0x10], str.inf_
push 0x100
push 0
lea eax, [ebp - 0x110]
push eax
call fcn.00403ce0
add esp, 0xc
xor eax, eax
mov dword [ebp - 0x120], eax
mov dword [ebp - 0x11c], eax
mov dword [ebp - 0x118], eax
mov word [ebp - 0x114], ax
mov byte [ebp - 0x112], al
push 0x100
push 0
lea eax, [ebp - 0x220]
push eax
call fcn.00403ce0
add esp, 0xc
mov dword [ebp - 0x228], 0
push 0x104
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov eax, dword [ebp - 0x10]
push eax
lea ecx, [ebp - 0x110]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov dword [ebp - 0x224], 0
jmp 0x40237a
mov eax, dword [ebp - 0x224]
add eax, 1
mov dword [ebp - 0x224], eax
cmp dword [ebp - 0x224], 0x258
jge 0x402437
mov eax, dword [ebp - 0x224]
push eax
push str.oem_d.inf
lea ecx, [ebp - 0x120]
push ecx
call fcn.00401490
add esp, 0xc
lea eax, [ebp - 0x110]
push eax
lea ecx, [ebp - 0x220]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x120]
push eax
lea ecx, [ebp - 0x220]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x220]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 8]
push edx
call fcn.00402640
add esp, 0xc
mov dword [ebp - 0x228], eax
cmp dword [ebp - 0x228], 0
jne 0x402432
push 0
push 1
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.SETUPAPI.dll_SetupUninstallOEMInfA]
test eax, eax
je 0x40241e
mov eax, dword [ebp - 0x224]
push eax
push str.Uninstall:_d_n
call fcn.00401160
add esp, 8
jmp 0x402432
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Delete_failed__error:_d_n
call fcn.00401160
add esp, 8
jmp 0x40236b
push str.Previous_version_are_deleted_n
call fcn.00401160
add esp, 4
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040316a
mov esp, ebp
pop ebp
ret
Function at 0x4027e0
Capabilities:
Check os version
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x5e84a8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov ecx, 0x5ea029
call fcn.00403138
push 0x9c
push 0
lea eax, [ebp - 0xa0]
push eax
call fcn.00403ce0
add esp, 0xc
xor eax, eax
mov dword [ebp - 0xc4], eax
mov dword [ebp - 0xc0], eax
mov dword [ebp - 0xbc], eax
mov dword [ebp - 0xb8], eax
mov dword [ebp - 0xb4], eax
mov dword [ebp - 0xb0], eax
mov dword [ebp - 0xac], eax
mov dword [ebp - 0xa8], eax
mov dword [ebp - 0xa4], eax
mov dword [ebp - 0xc8], 0
mov dword [ebp - 0xa0], 0x9c
lea eax, [ebp - 0xa0]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x402887
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.get_system_version_failed__error_x_n
call fcn.00401160
add esp, 8
lea eax, [ebp - 0xc4]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
movzx eax, word [ebp - 0xc4]
push eax
mov ecx, dword [ebp - 0x98]
push ecx
mov edx, dword [ebp - 0x9c]
push edx
push str.major_x__minor_x__arch_d_n
call fcn.00401160
add esp, 0x10
cmp dword [ebp - 0x9c], 6
jbe 0x4028ff
movzx eax, word [ebp - 0xc4]
cmp eax, 9
je 0x4028e4
movzx eax, word [ebp - 0xc4]
cmp eax, 6
je 0x4028e4
movzx eax, word [ebp - 0xc4]
cmp eax, 7
jne 0x4028f0
mov eax, 6
jmp 0x4029de
mov eax, 5
jmp 0x4029de
cmp dword [ebp - 0x9c], 6
jne 0x402981
cmp dword [ebp - 0x98], 1
jbe 0x40294b
movzx eax, word [ebp - 0xc4]
cmp eax, 9
je 0x402935
movzx eax, word [ebp - 0xc4]
cmp eax, 6
je 0x402935
movzx eax, word [ebp - 0xc4]
cmp eax, 7
jne 0x402941
mov eax, 4
jmp 0x4029de
mov eax, 3
jmp 0x4029de
movzx eax, word [ebp - 0xc4]
cmp eax, 9
je 0x40296f
movzx eax, word [ebp - 0xc4]
cmp eax, 6
je 0x40296f
movzx eax, word [ebp - 0xc4]
cmp eax, 7
jne 0x402978
mov eax, 4
jmp 0x4029de
mov eax, 3
jmp 0x4029de
cmp dword [ebp - 0x9c], 5
jne 0x4029c0
movzx eax, word [ebp - 0xc4]
cmp eax, 9
je 0x4029ae
movzx eax, word [ebp - 0xc4]
cmp eax, 6
je 0x4029ae
movzx eax, word [ebp - 0xc4]
cmp eax, 7
jne 0x4029b7
mov eax, 2
jmp 0x4029de
mov eax, 1
jmp 0x4029de
mov eax, dword [ebp - 0x98]
push eax
mov ecx, dword [ebp - 0x9c]
push ecx
push str.system_version_is_not_support__ver_d._d
call fcn.00401160
add esp, 0xc
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040316a
mov esp, ebp
pop ebp
ret