joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1004b1b0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x90c
mov eax, dword [0x101fd178]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x104]
push esi
push edi
push 0x80
push 0
push eax
mov dword [ebp - 0x908], ebx
call fcn.10087820
push 0x80
lea eax, [ebp - 0x84]
push 0
push eax
call fcn.10087820
mov esi, dword [ebx + 0x134]
mov edi, dword [ebx + 0xc]
mov dword [ebp - 0x90c], edi
mov eax, dword [esi + 0x1eb8]
sub eax, dword [esi + 0x1eb4]
add eax, 2
push eax
lea eax, [esi + 0x1cb4]
push eax
push 0x3c
push ebx
call fcn.1004a720
mov eax, dword [esi + 0x1eb4]
add esp, 0x28
mov cl, byte [eax]
inc eax
mov dword [esi + 0x1eb4], eax
cmp cl, 0x18
je 0x1004b398
cmp cl, 0x23
je 0x1004b372
cmp cl, 0x27
jne 0x1004b426
push 0
push 0x27
push 0xfa
push 0xff
push str._c_c_c_c
lea eax, [ebp - 0x904]
push 0x800
push eax
call fcn.10028640
mov esi, dword [esi + 0x1cb0]
add esp, 0x1c
mov edi, 4
mov eax, 0x800
test esi, esi
je 0x1004b311
nop
mov edx, dword [esi]
mov ecx, edx
lea ebx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1004b297
sub ecx, ebx
lea ebx, [edi + 1]
add ebx, ecx
cmp ebx, 0x7fa
jae 0x1004b2ff
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x104]
push eax
push str._127_____127s
push edx
call fcn.1001b110
add esp, 0x10
test eax, eax
je 0x1004b2ff
lea eax, [ebp - 0x84]
push eax
push 1
lea eax, [ebp - 0x104]
push eax
push 0
mov eax, 0x800
sub eax, edi
push str._c_s_c_s
push eax
lea eax, [ebp - 0x904]
add eax, edi
push eax
call fcn.10028640
add esp, 0x1c
mov edi, ebx
mov esi, dword [esi + 4]
test esi, esi
jne 0x1004b290
mov ebx, dword [ebp - 0x908]
mov eax, 0x800
push 0xf0
push 0xff
sub eax, edi
push str._c_c
push eax
lea eax, [ebp - 0x904]
add eax, edi
push eax
call fcn.10028640
add esp, 0x14
lea eax, [edi + 2]
push 0
push eax
lea eax, [ebp - 0x904]
push eax
mov eax, dword [ebp - 0x90c]
push dword [eax + 0x148]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x1004b36c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push ebx
call fcn.10024d60
add esp, 0xc
push edi
jmp 0x1004b414
lea edx, [esi + 0x1c28]
mov ecx, edx
lea esi, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1004b380
push 0xf0
push 0xff
push edx
push 0
push 0x23
jmp 0x1004b3b9
lea edx, [esi + 0x1c08]
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1004b3a3
push 0xf0
push 0xff
push edx
push 0
push 0x18
push 0xfa
push 0xff
push str._c_c_c_c_s_c_c
sub ecx, esi
lea eax, [ebp - 0x904]
push 0x800
push eax
lea esi, [ecx + 6]
call fcn.10028640
add esp, 0x28
lea eax, [ebp - 0x904]
push 0
push esi
push eax
push dword [edi + 0x148]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x1004b410
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push ebx
call fcn.10024d60
add esp, 0xc
lea eax, [esi - 2]
push eax
lea eax, [ebp - 0x902]
push eax
push 0x3e
push ebx
call fcn.1004a720
add esp, 0x10
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1006e62b
mov esp, ebp
pop ebp
ret
Function at 0x1004c0f0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
mov eax, dword [0x101fd178]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov eax, dword [ebx + 0xc]
mov edi, dword [eax + 0x300]
lea eax, [ebp - 0x88]
push eax
mov dword [ebp - 0x88], 0x80
lea eax, [ebp - 0x84]
push eax
mov eax, dword [edi + 0x13c]
lea esi, [edi + 0x148]
push 0
add eax, 4
push eax
push dword [esi]
push dword [edi + 0x14]
call dword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [edi + 0x130], 0
mov dword [edi + 0x134], eax
jne 0x1004c17e
push dword [ebp - 0x88]
lea eax, [ebp - 0x84]
push eax
lea eax, [edi + 0xb0]
push eax
call fcn.10085d10
mov eax, dword [ebp - 0x88]
add esp, 0xc
mov dword [edi + 0x130], eax
mov edx, dword [edi + 0x134]
cmp edx, 4
jge 0x1004c1b1
push str.Received_too_short_packet
push ebx
call fcn.10024d60
add esp, 8
mov dword [edi + 0xc], 7
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1006e62b
mov esp, ebp
pop ebp
ret
push esi
call fcn.1004bce0
movzx eax, ax
add esp, 4
mov dword [edi + 0xc], eax
add eax, 0xfffffffd
cmp eax, 3
ja case.default.0x1004c1cc
jmp dword [eax*4 + 0x1004c30c]
cmp edx, 4
jle case.0x1004c1cc.4
push esi
call fcn.1004bcc0
movzx ecx, word [edi + 0x144]
add esp, 4
inc ecx
cmp cx, ax
jne case.0x1004c1cc.4
lea eax, [edx - 4]
push eax
mov eax, dword [esi]
add eax, 4
push eax
push 1
push ebx
call fcn.10024ca0
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1004c22f
push 5
push edi
call fcn.1004cb50
add esp, 8
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1006e62b
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0x134]
sub eax, 4
cdq
add dword [ebx + 0x90], eax
adc dword [ebx + 0x94], edx
push dword [ebx + 0x94]
push dword [ebx + 0x90]
push ebx
call fcn.10032570
jmp 0x1004c2d7
mov eax, dword [esi]
lea esi, [edx - 4]
add eax, 4
mov dword [ebp - 0x8c], eax
lea eax, [edi + 0x148]
push eax
call fcn.1004bcc0
push esi
push dword [ebp - 0x8c]
movzx eax, ax
mov dword [edi + 8], eax
call fcn.1004cc80
add esp, 0xc
cmp eax, esi
jae case.0x1004c1cc.4
push dword [ebp - 0x8c]
push str.TFTP_error:__s_n
push ebx
call fcn.10024e20
jmp 0x1004c2d7
lea eax, [edx - 2]
push eax
mov eax, dword [esi]
add eax, 2
push eax
push edi
call fcn.1004bea0
add esp, 0xc
test eax, eax
je case.0x1004c1cc.4
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1006e62b
mov esp, ebp
pop ebp
ret
push str.Internal_error:_Unexpected_packet
push 0x1018cdf0
push ebx
call fcn.10024d60
add esp, 0xc
push ebx
call fcn.10032850
add esp, 4
test eax, eax
je 0x1004c19e
push 5
push edi
call fcn.1004cb50
mov ecx, dword [ebp - 4]
add esp, 8
xor ecx, ebp
mov eax, 0x2a
pop edi
pop esi
pop ebx
call fcn.1006e62b
mov esp, ebp
pop ebp
ret
Function at 0x1004cb50
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov edx, dword [eax]
mov ecx, dword [eax + 0x10]
cmp edx, 3
ja case.default.0x1004cb60
jmp dword [edx*4 + 0x1004cbb4]
mov dword [ebp + 8], eax
pop ebp
jmp fcn.1004c600
mov dword [ebp + 8], eax
pop ebp
jmp fcn.1004c320
mov dword [ebp + 8], eax
pop ebp
jmp fcn.1004cdb0
push str.TFTP_finished
push 0x101879f8
push ecx
call fcn.10024e20
add esp, 0xc
xor eax, eax
pop ebp
ret
push str.Internal_state_machine_error
push 0x1018cdf0
push ecx
call fcn.10024d60
add esp, 0xc
mov eax, 0x47
pop ebp
ret
Function at 0x100564a0
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
push esi
push edi
mov byte [edi], 0
call dword [sym.imp.WS2_32.dll_gethostname]
mov byte [edi + esi - 1], 0
test eax, eax
jne 0x100564d3
push 0x2e
push edi
call fcn.10087ab0
add esp, 8
test eax, eax
je 0x100564d1
mov byte [eax], 0
xor eax, eax
pop edi
pop esi
pop ebp
ret

Function at 0x10057e20
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, dword [ebp + 8]
push edi
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x14]
lea eax, [eax + ecx*2]
add eax, 0xc
push eax
call dword [section..data]
mov edi, eax
add esp, 4
test edi, edi
jne 0x10057e4d
pop edi
pop esi
mov esp, ebp
pop ebp
ret
lea ecx, [edi + 0xc]
mov dword [edi], esi
mov dword [edi + 4], ecx
mov eax, dword [esi + 0xc]
add eax, ecx
push ebx
mov ebx, dword [ebp + 0x10]
mov dword [edi + 8], eax
cmp ebx, dword [esi + 0x10]
jbe 0x10057e97
mov eax, dword [esi]
push ecx
call eax
mov eax, dword [esi + 4]
push ebx
push dword [ebp + 0xc]
push dword [edi + 4]
call eax
mov eax, dword [edi + 8]
add eax, dword [esi + 0xc]
push dword [edi + 4]
mov dword [ebp - 4], eax
push eax
mov eax, dword [esi + 8]
call eax
mov ebx, dword [esi + 0x14]
add esp, 0x18
mov ecx, dword [edi + 4]
mov dword [ebp + 0x10], ebx
jmp 0x10057e9d
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov eax, dword [esi]
push ecx
call eax
push dword [edi + 8]
mov eax, dword [esi]
call eax
mov eax, dword [ebp + 0x10]
add esp, 8
xor ebx, ebx
test eax, eax
je 0x10057efb
mov ebx, dword [ebp - 4]
mov dword [ebp - 8], eax
nop dword [eax + eax]
movzx eax, byte [ebx]
xor al, 0x36
mov byte [ebp + 0xb], al
lea eax, [ebp + 0xb]
push 1
push eax
push dword [edi + 4]
mov eax, dword [esi + 4]
call eax
movzx eax, byte [ebx]
lea ebx, [ebx + 1]
xor al, 0x5c
mov byte [ebp + 0xb], al
lea eax, [ebp + 0xb]
push 1
push eax
push dword [edi + 8]
mov eax, dword [esi + 4]
call eax
add esp, 0x18
sub dword [ebp + 0x10], 1
jne 0x10057ec0
mov ebx, dword [ebp - 8]
cmp ebx, dword [esi + 0x10]
jae 0x10057f27
mov eax, dword [esi + 4]
push 1
push 0x10190e54
push dword [edi + 4]
call eax
mov eax, dword [esi + 4]
push 1
push 0x10190e55
push dword [edi + 8]
call eax
inc ebx
add esp, 0x18
cmp ebx, dword [esi + 0x10]
jb 0x10057f00
pop ebx
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1005c9f6
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0xc4
mov eax, 0x101827f2
call fcn.1006effa
mov dword [ebp - 0xd0], ecx
mov esi, dword [ebp + 8]
movzx eax, word [ebp + 0x24]
xor ebx, ebx
push 0xa
push eax
push esi
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x1005cb38
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x1005cb38
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push edi
push esi
mov dword [ebp - 0xc8], eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
cmp dword [ebp - 0xc8], ebx
jne 0x1005ca62
test edi, edi
je 0x1005cb38
cmp dword [ebp + 0x1c], ebx
jbe 0x1005cafc
lea eax, [ebp + 0xc]
mov dword [ebp - 0x30], ebx
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x2c], ebx
call fcn.10004230
lea ecx, [ebp - 0xc4]
mov byte [ebp - 4], 1
call fcn.10061441
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0xc4]
call fcn.10061dbd
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0xc4]
call fcn.1006162d
lea esi, [edi + 1]
mov byte [ebp - 4], 2
push esi
call fcn.1008bf10
push esi
push ebx
push eax
mov dword [ebp - 0xcc], eax
call fcn.10087820
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
mov esi, dword [ebp - 0xcc]
cmovae eax, dword [ebp - 0x28]
push eax
push edi
push esi
push dword [ebp - 0xc8]
call fcn.1006a657
add esp, 0x20
lea ecx, [ebp - 0x28]
call fcn.100046a0
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], bl
call fcn.100046a0
jmp 0x1005cafe
mov esi, ebx
sub esp, 0x18
mov ecx, esp
push esi
call fcn.10003fd0
lea eax, [ebp - 0x58]
push eax
call fcn.100594cc
add esp, 0x1c
mov esi, dword [ebp - 0xd0]
lea eax, [ebp - 0x58]
push eax
mov ecx, esi
mov byte [ebp - 4], 3
call fcn.1005e1e7
cmp dword [esi + 4], ebx
lea ecx, [ebp - 0x58]
seta bl
call fcn.100046a0
lea ecx, [ebp + 0xc]
call fcn.100046a0
mov al, bl
call fcn.1006efa4
ret 0x20
Function at 0x1005ffd8
Capabilities:
Get common file path
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x3100
call fcn.1006f400
mov eax, dword [0x101fd178]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, 0x104
lea eax, [ebp - 0x108]
push esi
xor ebx, ebx
mov edi, ecx
push ebx
push eax
mov dword [ebp - 0x3100], edi
call fcn.10087820
push esi
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.10087820
add esp, 0x18
lea eax, [ebp - 0x108]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
movsx eax, byte [ebp - 0x108]
push eax
push str.._c:
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.10059f74
add esp, 0x10
lea eax, [ebp - 0x20c]
push ebx
push ebx
push 3
push ebx
push 3
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x1006006e
mov al, 1
jmp 0x10060177
push 0x2710
lea eax, [ebp - 0x30ec]
mov dword [ebp - 0x30fc], ebx
push ebx
push eax
call fcn.10087820
push 0x3e8
lea eax, [ebp - 0x9dc]
push ebx
push eax
call fcn.10087820
push 0x3e8
lea eax, [ebp - 0x5f4]
push ebx
push eax
call fcn.10087820
add esp, 0x24
mov dword [ebp - 0x30f0], ebx
lea eax, [ebp - 0x30fc]
mov dword [ebp - 0x30f8], ebx
mov dword [ebp - 0x30f4], ebx
push ebx
push eax
push 0x2710
lea eax, [ebp - 0x30ec]
push eax
push 0xc
lea eax, [ebp - 0x30f8]
push eax
push 0x2d1400
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x100600f0
mov bl, 2
jmp 0x1006016e
lea eax, [ebp - 0x5f4]
push eax
push ebx
push dword [ebp - 0x30dc]
lea eax, [ebp - 0x30ec]
push eax
call fcn.10060186
lea eax, [ebp - 0x9dc]
push eax
push 1
push dword [ebp - 0x30d4]
lea eax, [ebp - 0x30ec]
push eax
call fcn.10060186
lea ecx, [ebp - 0x5f4]
add esp, 0x20
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10060131
sub ecx, edx
lea eax, [ebp - 0x5f4]
push ecx
push eax
mov ecx, edi
call fcn.10061dd9
lea edx, [ebp - 0x9dc]
lea edi, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x10060152
mov ecx, dword [ebp - 0x3100]
lea eax, [ebp - 0x9dc]
sub edx, edi
push edx
push eax
call fcn.10061dd9
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1006e62b
leave
ret
Function at 0x10060337
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x101fd178]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push 0x118
xor ebx, ebx
mov dword [ebp - 0x120], 0x11c
lea eax, [ebp - 0x11c]
push ebx
push eax
call fcn.10087820
add esp, 0xc
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x11c]
push eax
call fcn.100602ec
mov eax, dword [ebp - 0x11c]
add esp, 0xc
cmp eax, 5
jne 0x100603b6
cmp dword [ebp - 0x118], ebx
jbe 0x100603fc
cmp dword [ebp - 0x118], 1
setne bl
inc ebx
jmp 0x100603fc
cmp eax, 6
jne 0x100603e1
cmp byte [ebp - 6], 1
jne 0x100603dc
mov eax, dword [ebp - 0x118]
sub eax, ebx
je 0x100603d8
sub eax, 1
je 0x100603d4
push 7
jmp 0x100603de
push 5
jmp 0x100603de
push 3
jmp 0x100603de
push 4
pop ebx
jmp 0x100603fc
push 0xa
pop ecx
cmp eax, ecx
jne 0x100603f9
cmp dword [ebp - 0x114], 0x55f0
sbb ebx, ebx
add ebx, 9
jmp 0x100603fc
cmova ebx, ecx
mov ecx, dword [ebp - 4]
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.1006e62b
leave
ret
Function at 0x10060d9f
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor edx, edx
push 2
pop ebx
lea ecx, [edi + 2]
mov ax, word [edi]
add edi, ebx
cmp ax, dx
jne 0x10060db1
sub edi, ecx
xor ecx, ecx
sar edi, 1
lea esi, [edi + 1]
mov eax, esi
mul ebx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1006ee75
lea ecx, [edi*2 + 2]
mov ebx, eax
push ecx
push 0
push ebx
call fcn.10087820
push dword [ebp + 8]
push esi
push ebx
call fcn.1008a925
add esp, 0x1c
mov byte [ebp - 1], 1
xor esi, esi
test edi, edi
js 0x10060e36
push 0x5c
pop eax
cmp word [ebx + esi*2], ax
jne 0x10060e2b
xor eax, eax
push ebx
mov word [ebx + esi*2], ax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10060e24
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x10060e32
push 0x5c
pop eax
mov word [ebx + esi*2], ax
inc esi
cmp esi, edi
jle 0x10060e01
jmp 0x10060e36
mov byte [ebp - 1], 0
push ebx
call fcn.1006ee7e
mov al, byte [ebp - 1]
pop ecx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10060e45
Capabilities:
Get disk information

Disassembly:
push 0x3c
mov eax, 0x10182e34
call fcn.1006effa
mov edi, dword [ebp + 8]
xor ebx, ebx
push 7
pop ecx
xor eax, eax
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ecx
mov word [ebp - 0x28], ax
mov dword [ebp - 4], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ecx
mov word [ebp - 0x40], ax
mov eax, dword [ebp + 0xc]
mov byte [ebp - 4], 1
test eax, eax
je 0x10060f2c
movzx eax, word [eax]
lea ecx, [ebp - 0x40]
push eax
call fcn.10060d78
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov dword [ebp - 0x48], eax
test eax, eax
je 0x10060f2c
lea esi, [eax + 1]
xor ecx, ecx
push 2
pop edx
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1006ee75
push esi
mov ebx, eax
push 0
push ebx
call fcn.1000d8b0
add esp, 0x10
push ebx
push dword [ebp - 0x48]
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
je 0x10060f25
xor eax, eax
mov esi, ebx
mov word [ebp - 0x42], ax
movzx eax, word [ebx]
cmp dword [ebp - 0x2c], 8
mov word [ebp - 0x44], ax
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push 2
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.1009b9d8
add esp, 0xc
test eax, eax
je 0x10060f1a
movzx eax, word [esi]
add esi, 2
test ax, ax
jne 0x10060f05
movzx eax, word [esi]
test ax, ax
je 0x10060f25
jmp 0x10060ee3
push dword [ebp - 0x44]
lea ecx, [ebp - 0x28]
call fcn.10060d78
push ebx
call fcn.1006ee7e
pop ecx
lea eax, [ebp - 0x28]
mov ecx, edi
push eax
call fcn.10005750
lea ecx, [ebp - 0x40]
call fcn.10004750
lea ecx, [ebp - 0x28]
call fcn.10004750
mov eax, edi
call fcn.1006efa4
ret
Function at 0x10060f4f
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x101fd178]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push edi
push 0x208
xor edi, edi
mov dword [ebp - 0x210], esi
push edi
push eax
call fcn.10087820
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x20c]
add esp, 0xc
or ecx, 0x8000
cmp byte [ebp + 0x10], 0
cmove ecx, dword [ebp + 0xc]
push eax
push edi
push edi
push ecx
push edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov ecx, esi
test eax, eax
je 0x10060faf
push edi
jmp 0x10060fb6
lea eax, [ebp - 0x20c]
push eax
call fcn.10003bd0
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.1006e62b
leave
ret

Function at 0x1006101e
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x18
push ebx
xor ebx, ebx
push edi
mov edi, ebx
cmp dword [eax + 0x10], ebx
je 0x1006112f
push esi
mov esi, dword [ebp + 0xc]
cmp dword [esi + 0x10], ebx
je 0x1006112e
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x1006104d
mov eax, dword [esi]
lea ecx, [ebp - 0xc]
push ecx
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov dword [ebp - 8], eax
test eax, eax
je 0x1006112e
push 0x101960f2
push eax
call fcn.1006f982
mov dword [ebp - 4], eax
pop ecx
pop ecx
test eax, eax
je 0x1006112e
cmp dword [esi + 0x14], 0x10
jb 0x10061082
mov esi, dword [esi]
push eax
push dword [ebp - 8]
push dword [ebp - 0xc]
push esi
call sub.VERSION.dll_GetFileVersionInfoA
mov esi, dword [ebp - 4]
test eax, eax
je 0x1006111c
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push str.VarFileInfoTranslation
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x1006111c
mov eax, dword [ebp - 0x10]
push 0x101960f2
push 0x80
movzx ecx, word [eax]
movzx eax, word [eax + 2]
shl ecx, 0x10
or ecx, eax
mov dword [ebp - 8], ecx
call fcn.1006f982
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x1006111c
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 0x10
jb 0x100610e5
mov eax, dword [eax]
push eax
push dword [ebp - 8]
push str.StringFileInfo_08lx_s
push 0x80
push edi
call fcn.10059f74
add esp, 0x14
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
push edi
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x1006111a
push dword [ebp - 0x18]
mov ecx, dword [ebp + 0x10]
call fcn.10003e90
mov bl, 1
push esi
call fcn.1006ee7e
pop ecx
test edi, edi
je 0x1006112e
push edi
call fcn.1006ee7e
pop ecx
pop esi
pop edi
mov al, bl
pop ebx
leave
ret

Function at 0x10061606
Capabilities:
Hash data with md5

Disassembly:
xor eax, eax
mov byte [ecx + 0x68], al
mov dword [ecx + 0x14], eax
mov dword [ecx + 0x10], eax
mov dword [ecx], 0x67452301
mov dword [ecx + 4], 0xefcdab89
mov dword [ecx + 8], 0x98badcfe
mov dword [ecx + 0xc], 0x10325476
ret
Function at 0x100627e3
Capabilities:
Check if file exists
Get system information on windows

Disassembly:
push 0x74
mov eax, 0x101830b7
call fcn.1006effa
mov esi, dword [ebp + 8]
mov dword [ebp - 0x5c], esi
and dword [ebp - 4], 0
xor eax, eax
and dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
push str.SoftwareMicrosoftWindowsCurrentVersionUninstall_
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.10003970
push 8
pop ebx
cmp dword [ebp + 0x20], ebx
lea eax, [ebp + 0xc]
push dword [ebp + 0x1c]
cmovae eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x28]
push eax
call fcn.10003900
cmp dword [ebp - 0x14], ebx
lea eax, [ebp - 0x28]
push str.DisplayIcon
cmovae eax, dword [ebp - 0x28]
push eax
lea eax, [ebp - 0x40]
push reloc.WS2_32.dll_accept
push eax
call fcn.1006aa69
add esp, 0x10
cmp dword [ebp - 0x2c], ebx
lea eax, [ebp - 0x40]
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmovae eax, dword [ebp - 0x40]
push eax
mov byte [ebp - 4], 2
call edi
test eax, eax
jne 0x1006298a
cmp dword [ebp - 0x14], ebx
lea eax, [ebp - 0x28]
push str.DisplayIcon
cmovae eax, dword [ebp - 0x28]
push eax
lea eax, [ebp - 0x58]
push reloc.WS2_32.dll_bind
push eax
call fcn.1006aa69
add esp, 0x10
lea ecx, [ebp - 0x40]
push eax
call fcn.10003c20
lea ecx, [ebp - 0x58]
call fcn.10004750
cmp dword [ebp - 0x2c], ebx
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
call edi
test eax, eax
jne 0x1006298a
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
cmp dword [ebp - 0x68], 0x21d8
jne 0x1006298a
and dword [ebp - 0x18], 0
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], ebx
push str.softwareWow6432nodemicrosoftwindowscurrentversionuninstall_
cmovae eax, dword [ebp - 0x28]
xor ecx, ecx
mov word [eax], cx
lea ecx, [ebp - 0x28]
call fcn.10003970
cmp dword [ebp + 0x20], ebx
lea eax, [ebp + 0xc]
push dword [ebp + 0x1c]
cmovae eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x28]
push eax
call fcn.10003900
cmp dword [ebp - 0x14], ebx
lea eax, [ebp - 0x28]
push str.DisplayIcon
cmovae eax, dword [ebp - 0x28]
push eax
lea eax, [ebp - 0x58]
push reloc.WS2_32.dll_accept
push eax
call fcn.1006aa69
add esp, 0x10
lea ecx, [ebp - 0x40]
push eax
call fcn.10003c20
lea ecx, [ebp - 0x58]
call fcn.10004750
cmp dword [ebp - 0x2c], ebx
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
call edi
test eax, eax
jne 0x1006298a
cmp dword [ebp - 0x14], ebx
lea eax, [ebp - 0x28]
push str.DisplayIcon
cmovae eax, dword [ebp - 0x28]
push eax
lea eax, [ebp - 0x58]
push reloc.WS2_32.dll_bind
push eax
call fcn.1006aa69
add esp, 0x10
lea ecx, [ebp - 0x40]
push eax
call fcn.10003c20
lea ecx, [ebp - 0x58]
call fcn.10004750
cmp dword [ebp - 0x2c], ebx
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
call edi
lea eax, [ebp - 0x40]
mov ecx, esi
push eax
call fcn.10005750
lea ecx, [ebp - 0x40]
call fcn.10004750
lea ecx, [ebp - 0x28]
call fcn.10004750
lea ecx, [ebp + 0xc]
call fcn.10004750
mov eax, esi
call fcn.1006efa4
ret 0x1c