joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10466c4
Capabilities:
Get file version info

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
cmp dword [ecx + 0xc], 0
mov dword [ebp - 0x14], ecx
je 0x104675a
and dword [ebp - 4], 0
push esi
push edi
lea eax, [ebp - 4]
push eax
mov esi, 0x1005fc8
push esi
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
test edi, edi
je 0x1046758
push edi
call dword [sym.imp.msvcrt.dll_malloc]
test eax, eax
pop ecx
mov dword [ebp - 0xc], eax
je 0x1046758
and dword [ebp - 0x10], 0
and dword [ebp - 8], 0
push eax
push edi
push dword [ebp - 4]
push esi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x104674e
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
push 0x1002e78
push dword [ebp - 0xc]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x104674e
mov eax, dword [ebp - 8]
test eax, eax
je 0x104674e
push dword [eax + 0xc]
push dword [eax + 8]
mov eax, dword [ebp - 0x14]
push dword [eax + 0x10]
mov ecx, dword [eax + 0xc]
call fcn.010461d1
push dword [ebp - 0xc]
call dword [sym.imp.msvcrt.dll_free]
pop ecx
pop edi
pop esi
leave
ret
Function at 0x10469b0
Capabilities:
Get cpu information
Get memory capacity
Identify system language via api
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x38
push ebx
push esi
lea eax, [ebp - 4]
xor ebx, ebx
push eax
mov esi, ecx
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
call fcn.01067600
test eax, eax
jl 0x10469dd
push dword [ebp - 4]
mov ecx, esi
push 4
call fcn.0104669f
lea eax, [ebp - 4]
push eax
call fcn.0106763a
test eax, eax
jl 0x10469f6
push dword [ebp - 4]
mov ecx, esi
push 5
call fcn.0104669f
lea eax, [ebp - 4]
push eax
call fcn.01067a33
test eax, eax
jl 0x1046a0f
push dword [ebp - 4]
mov ecx, esi
push 2
call fcn.0104669f
lea eax, [ebp - 4]
push eax
call fcn.010679f8
test eax, eax
jl 0x1046a28
push dword [ebp - 4]
mov ecx, esi
push 3
call fcn.0104669f
lea eax, [ebp - 4]
push eax
call fcn.01067949
test eax, eax
jl 0x1046a41
push dword [ebp - 4]
mov ecx, esi
push 6
call fcn.0104669f
lea eax, [ebp - 4]
push eax
call fcn.01067984
test eax, eax
jl 0x1046a5a
push dword [ebp - 4]
mov ecx, esi
push 7
call fcn.0104669f
lea eax, [ebp - 4]
push eax
call fcn.01067674
test eax, eax
jl 0x1046a73
push dword [ebp - 4]
mov ecx, esi
push 0x19
call fcn.0104669f
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push 0x100606c
call fcn.010660f5
test eax, eax
jl 0x1046a95
push dword [ebp - 4]
mov ecx, esi
push 0x1b
call fcn.0104669f
lea eax, [ebp - 4]
push eax
call fcn.010679bf
test eax, eax
jl 0x1046aae
push dword [ebp - 4]
mov ecx, esi
push 0x27
call fcn.0104669f
lea eax, [ebp - 4]
push eax
call fcn.01067910
test eax, eax
jl 0x1046ac7
push dword [ebp - 4]
mov ecx, esi
push 0x1d
call fcn.0104669f
push edi
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
movzx eax, ax
push eax
push 0x1a
mov ecx, esi
call fcn.0104669f
push ebx
call dword [sym.imp.USER32.dll_GetSystemMetrics]
push eax
push 0x2b
mov ecx, esi
call fcn.0104669f
push ebx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
cmp edi, ebx
je 0x1046b14
push 0xc
push edi
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
push eax
push 0x2c
mov ecx, esi
call fcn.0104669f
push edi
push ebx
call dword [sym.imp.USER32.dll_ReleaseDC]
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
push 0x1006060
push 0x1006000
push 0x80000002
mov dword [ebp - 0x10], 4
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
pop edi
jne 0x1046b4d
push dword [ebp - 0x14]
mov ecx, esi
push 0x29
call fcn.0104669f
lea eax, [ebp - 0x38]
push eax
mov dword [ebp - 0x38], 0x20
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov eax, dword [ebp - 0x30]
add eax, 0x80000
shr eax, 0x14
push eax
push 0x2a
mov ecx, esi
call fcn.0104669f
call fcn.010675e5
test eax, eax
mov ecx, esi
jne 0x1046b82
push 1
jmp 0x1046b83
push ebx
push 0x32
call fcn.0104669f
lea eax, [ebp - 8]
push eax
push 0x1005fe0
mov dword [ebp - 8], ebx
call fcn.0106777a
test eax, eax
jl 0x1046bad
movzx eax, word [ebp - 8]
push eax
push 0x1c
mov ecx, esi
call fcn.0104669f
mov ecx, esi
call fcn.010466c4
pop esi
pop ebx
leave
ret
Function at 0x10481df
Capabilities:
Hide graphical window

Disassembly:
mov edi, edi
push esi
mov esi, ecx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x10481fe
push 0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
ret
xor eax, eax
pop esi
ret

Function at 0x10499c7
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x1049a21
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x10499ee
xor eax, eax
jmp 0x1049a20
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x1049a12
cmp esi, eax
jae 0x10499ea
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x1049a04
cmp esi, eax
jae 0x10499ea
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop ebp
ret 0xc

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x111121c]
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], eax
push 0x104
lea eax, [ebp - 0x20c]
xor esi, esi
push eax
mov word [ebp - 0x20c], si
call fcn.010e2d09
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x104a5f0
push esi
push esi
push 0x40
push 0x9c7f
push edi
call fcn.01062c09
jmp 0x104a606
push 1
push esi
push esi
lea eax, [ebp - 0x20c]
push eax
push 0x10083cc
push esi
call fcn.01060869
mov ecx, dword [ebp - 4]
pop edi
pop esi
call fcn.0105eca9
leave
ret 4
Function at 0x104a6ab
Capabilities:
Delete file
Get common file path
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x65c
mov eax, dword [0x111121c]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 4], eax
mov dword [ebp - 0x654], ecx
xor ebx, ebx
xor eax, eax
cmp esi, ebx
mov word [ebp - 0x440], bx
mov ecx, 0x103
lea edi, [ebp - 0x43e]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x658], esi
mov dword [ebp - 0x650], 0x80004005
stosw word es:[edi], ax
je 0x104a8c6
push 0x208
lea eax, [ebp - 0x440]
push eax
push 0x9d42
push dword [0x1112f58]
call dword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
je 0x104a8c6
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
add esi, 0x209
lea eax, [esi + esi]
push eax
call fcn.0105f04e
cmp eax, ebx
pop ecx
mov dword [ebp - 0x64c], eax
je 0x104a8c6
mov ecx, dword [ebp - 0x658]
mov dword [ebp - 0x65c], ecx
lea ecx, [ebp - 0x65c]
push ecx
push esi
push eax
push ebx
push ebx
lea eax, [ebp - 0x440]
push eax
push 0x2400
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
cmp dword [ebp + 0xc], ebx
jne 0x104a7cb
push 0xa
pop ecx
mov esi, 0x1008400
lea edi, [ebp - 0x30]
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x64c]
movsw word es:[edi], word [esi]
mov edi, dword [sym.imp.SHLWAPI.dll_StrStrW]
call edi
mov esi, eax
cmp esi, ebx
je 0x104a7cb
push 0x1004414
add esi, 0x28
push esi
call edi
cmp eax, ebx
je 0x104a7cb
sub eax, esi
sar eax, 1
cmp eax, ebx
jle 0x104a7cb
mov ecx, dword [ebp - 0x64c]
sub esi, ecx
mov edx, esi
sar edx, 1
inc esi
inc esi
dec eax
mov word [ecx + edx*2], 0x30
jne 0x104a7bc
mov eax, dword [ebp - 0x658]
cmp word [eax], bx
je 0x104a85a
mov esi, dword [ebp - 0x654]
add esi, 0x3b8
cmp word [esi], bx
jne 0x104a85a
lea eax, [ebp - 0x648]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x104a85a
push esi
push ebx
push 0x10083f8
lea eax, [ebp - 0x648]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edi, dword [sym.imp.SHLWAPI.dll_StrStrIW]
push 0x10083ec
push esi
call edi
cmp eax, ebx
jne 0x104a836
push 0x10083e8
push esi
call edi
mov ecx, eax
sub ecx, dword [ebp - 0x654]
mov edx, 0x104
sub ecx, 0x3b8
sar ecx, 1
sub edx, ecx
push edx
push 0x10083dc
push eax
call dword [sym.imp.SHLWAPI.dll_StrCpyNW]
mov eax, dword [ebp - 0x654]
add eax, 0x3b8
cmp eax, ebx
je 0x104a8ba
cmp word [eax], bx
je 0x104a8ba
push ebx
push 0x102
push 2
push ebx
push ebx
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x104a8ba
push ebx
lea eax, [ebp - 0x650]
push eax
push dword [ebp - 0x64c]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
push dword [ebp - 0x64c]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x650], ebx
push dword [ebp - 0x64c]
call fcn.0105eff6
pop ecx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x650]
pop edi
pop esi
pop ebx
call fcn.0105eca9
leave
ret 8
Function at 0x104bd32
Capabilities:
Create process on windows
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xe8c
mov eax, dword [0x111121c]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0xe88], eax
mov esi, 0x104
push esi
lea eax, [ebp - 0x61c]
push eax
call fcn.0103f0fb
test eax, eax
jl 0x104bef8
push ebx
push edi
push esi
lea eax, [ebp - 0x824]
push eax
push 0x9d47
push dword [0x1112f58]
call dword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
je 0x104be19
lea eax, [ebp - 0xe8c]
push eax
push 1
lea eax, [ebp - 0x824]
push eax
call dword [sym.imp.SHLWAPI.dll_StrToIntExW]
call fcn.010668e4
test eax, eax
mov ebx, 0x1007dac
mov eax, 0x1007dc4
jne 0x104bdb7
mov eax, ebx
mov edi, dword [sym.imp.SHLWAPI.dll_wnsprintfW]
push eax
push dword [ebp - 0xe8c]
lea eax, [ebp - 0xa2c]
push 0x1008594
push esi
push eax
call edi
add esp, 0x14
push esi
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0xa2c]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x104be08
lea eax, [ebp - 0xe84]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
jne 0x104be4c
call fcn.010668e4
test eax, eax
je 0x104be16
mov ebx, 0x1007dc4
push ebx
jmp 0x104be33
call fcn.010668e4
test eax, eax
mov eax, 0x1007dc4
jne 0x104be2c
mov eax, 0x1007dac
mov edi, dword [sym.imp.SHLWAPI.dll_wnsprintfW]
push eax
lea eax, [ebp - 0x61c]
push eax
push 0x1004d0c
lea eax, [ebp - 0x20c]
push esi
push eax
call edi
add esp, 0x14
push esi
lea eax, [ebp - 0xc34]
push eax
push dword [ebp + 0xc]
push dword [0x1112f44]
call dword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
je 0x104be89
lea eax, [ebp - 0xc34]
push eax
lea eax, [ebp - 0x20c]
push eax
push 0x1008584
lea eax, [ebp - 0x414]
push esi
push eax
call edi
add esp, 0x14
jmp 0x104bea2
lea eax, [ebp - 0x20c]
push eax
push 0x100857c
lea eax, [ebp - 0x414]
push esi
push eax
call edi
add esp, 0x10
push 1
xor esi, esi
push esi
lea eax, [ebp - 0x414]
push eax
push 0x100856c
push 0x1008560
push dword [ebp - 0xe88]
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea eax, [ebp - 0xe88]
push eax
push esi
mov dword [ebp - 0xe88], esi
call fcn.01046916
test eax, eax
pop edi
pop ebx
jne 0x104bef8
mov ecx, dword [ebp - 0xe88]
push 1
push 0x21
call fcn.01046786
mov eax, dword [ebp - 0xe88]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [ebp - 4]
pop esi
call fcn.0105eca9
leave
ret 8
Function at 0x104cfaf
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x250
mov eax, dword [0x111121c]
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
cmp eax, ebx
push esi
push edi
je 0x104d023
push eax
mov esi, 0x1004d0c
lea edi, [ebp - 0x10]
movsd dword es:[edi], dword [esi]
push 0x1007208
lea eax, [ebp - 0x10]
push eax
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x218]
push 0x104
push eax
movsw word es:[edi], word [esi]
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
add esp, 0x14
test eax, eax
je 0x104d023
mov ecx, dword [0x1113528]
push 1
push ebx
push ebx
lea eax, [ebp - 0x218]
push eax
push ebx
call fcn.0104b05e
push eax
call fcn.01060869
cmp eax, 0x20
ja 0x104d12e
mov ebx, 0x20019
push ebx
push 0
mov edi, 0x80000002
push edi
push 0x10072fc
lea ecx, [ebp - 0x250]
call fcn.01064103
mov esi, 0x1001bc8
push esi
lea ecx, [ebp - 0x250]
call fcn.01064159
push eax
push 0x1007328
lea eax, [ebp - 0x218]
push 0x104
push eax
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
add esp, 0x10
push ebx
xor ebx, ebx
push ebx
push edi
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x234]
call fcn.01064103
push esi
lea ecx, [ebp - 0x234]
call fcn.01064159
cmp dword [ebp - 0x230], ebx
mov edi, eax
jne 0x104d118
cmp word [edi], 0x22
jne 0x104d0bb
inc edi
inc edi
push 0x22
lea eax, [edi + 2]
push eax
call dword [sym.imp.SHLWAPI.dll_StrChrW]
mov esi, eax
cmp esi, ebx
je 0x104d0c6
mov word [esi], bx
inc esi
inc esi
jmp 0x104d0c6
push 0x20
push edi
call dword [sym.imp.SHLWAPI.dll_StrChrW]
mov esi, eax
push 0x410
call fcn.0105f04e
mov ebx, eax
test ebx, ebx
pop ecx
je 0x104d0f8
and word [ebx], 0
test esi, esi
je 0x104d0f8
cmp word [esi], 0x20
jne 0x104d0eb
and word [esi], 0
inc esi
inc esi
push 0x208
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov ecx, dword [0x1113528]
push 1
push 0
push ebx
push edi
push 0
call fcn.0104b05e
push eax
call fcn.01060869
push ebx
call fcn.0105eff6
pop ecx
lea ecx, [ebp - 0x234]
call fcn.0106413d
lea ecx, [ebp - 0x250]
call fcn.0106413d
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0105eca9
leave
ret 4
Function at 0x104d4cd
Capabilities:
Delete file

Disassembly:
mov edi, edi
push ebx
push esi
push edi
mov esi, ecx
call fcn.010b7777
call fcn.010da6d0
xor ebx, ebx
inc ebx
xor edi, edi
mov dword [0x111355c], ebx
cmp dword [esi + 0x10], edi
je 0x104d4f7
push ebx
push edi
mov ecx, esi
call fcn.0104cdad
call fcn.010bf7c3
test eax, eax
je 0x104d505
call fcn.010bf7d8
mov ecx, dword [esi + 0x2c]
push ebx
call fcn.010471df
mov dword [esi + 0xe4], edi
mov eax, dword [0x1113528]
add eax, 0x3b8
cmp word [eax], di
je 0x104d536
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [0x1113528]
mov word [eax + 0x3b8], di
call fcn.010d86a3
mov eax, dword [esi + 0x24]
cmp eax, edi
je 0x104d555
push edi
lea ecx, [eax + 0x24]
call fcn.01076963
mov ecx, dword [esi + 0x24]
call fcn.01043827
jmp 0x104d5a4
call fcn.01042302
mov ebx, eax
cmp ebx, edi
je 0x104d56d
mov ecx, ebx
call fcn.0104231c
mov eax, dword [ebx]
push ebx
call dword [eax + 8]
call fcn.01049f0c
cmp dword [esi + 0xd8], edi
je 0x104d5a4
lea ebx, [esi + 0xd4]
push dword [ebx + 4]
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 4]
mov edi, eax
push dword [edi + 0x28]
call dword [sym.imp.USER32.dll_DestroyWindow]
mov eax, dword [edi]
push edi
call dword [eax + 8]
cmp dword [esi + 0xd8], 0
jne 0x104d580
push 1
call fcn.0103f311
pop edi
pop esi
pop ebx
ret
Function at 0x1050111
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x478
mov eax, dword [0x111121c]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x41c], eax
mov esi, 0x104
push esi
lea eax, [ebp - 0x414]
push eax
mov dword [ebp - 0x420], edi
call fcn.010e2d09
test eax, eax
jne 0x1050173
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1050173
push 0
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push esi
lea eax, [ebp - 0x20c]
push eax
push edi
lea eax, [ebp - 0x414]
push eax
call fcn.0104b980
xor edi, edi
push edi
push 0x80
push 2
push edi
push 2
push 0x40000000
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x10501d4
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp + 0x14]
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x41c]
call dword [sym.imp.SHLWAPI.dll_StrCpyNW]
mov dword [ebp - 0x418], edi
jmp 0x1050286
push edi
push edi
push 0x31
push 0x9d7d
push ebx
mov dword [ebp - 0x418], 0x80004005
call fcn.01062c09
cmp eax, 1
jne 0x1050286
push 0x16
pop ecx
xor eax, eax
push esi
push dword [ebp - 0x420]
lea edi, [ebp - 0x478]
rep stosd dword es:[edi], eax
mov edi, dword [sym.imp.SHLWAPI.dll_StrCpyNW]
lea eax, [ebp - 0x20c]
push eax
call edi
call fcn.01066951
neg eax
sbb eax, eax
and eax, 0xc
add eax, 0x4c
mov dword [ebp - 0x478], eax
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x45c], eax
lea eax, [ebp - 0x414]
mov dword [ebp - 0x44c], eax
lea eax, [ebp - 0x478]
push eax
mov dword [ebp - 0x474], ebx
mov dword [ebp - 0x458], esi
mov dword [ebp - 0x444], 0x8802
call dword [sym.imp.comdlg32.dll_GetSaveFileNameW]
test eax, eax
je 0x1050286
push dword [ebp + 0x14]
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x41c]
call edi
and dword [ebp - 0x418], 0
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x418]
pop edi
pop esi
pop ebx
call fcn.0105eca9
leave
ret 0x10

Function at 0x1050799
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
xor eax, eax
lea edx, [ebp - 4]
push edx
push eax
push ecx
push 0x105074c
push eax
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
leave
ret
Function at 0x1054948
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c0
mov eax, dword [0x111121c]
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push edi
xor edi, edi
dec eax
mov esi, ecx
mov dword [0x1113558], edi
je 0x10549c4
dec eax
je 0x10549af
dec eax
je 0x1054993
xor bl, bl
dec eax
je 0x1054987
mov byte [ebp - 0x299], bl
mov byte [ebp - 0x29a], bl
jmp 0x10549d4
mov dword [0x1113558], 1
jmp 0x10549c6
mov byte [ebp - 0x299], 0
mov byte [ebp - 0x29a], 0
mov bl, 1
mov dword [0x1113558], 1
jmp 0x10549d4
mov byte [ebp - 0x299], 0
xor bl, bl
mov dword [0x1113558], 2
jmp 0x10549cd
mov bl, 1
mov byte [ebp - 0x299], 1
mov byte [ebp - 0x29a], 1
call fcn.0107325f
test eax, eax
je 0x1054a01
test bl, bl
mov dword [esi + 0xa0], edi
jne 0x10549f0
test byte [0x1113525], 4
jne 0x1054a01
cmp dword [ebp + 8], 2
jne 0x1054a0b
mov ecx, esi
call fcn.01049d6f
test eax, eax
jne 0x1054a0b
mov edi, 0x80004005
jmp 0x1054b24
call fcn.010d8663
test eax, eax
je 0x1054a1e
mov edi, 0x81000315
jmp 0x1054b24
push edi
call fcn.010729b1
mov eax, dword [esi + 0x10]
mov ecx, dword [eax]
lea edx, [ebp - 0x2a0]
push edx
push eax
call dword [ecx + 0x38]
mov edi, eax
test edi, edi
jl 0x1054b24
test byte [ebp - 0x2a0], 2
je 0x1054a51
mov edi, 0x81000304
jmp 0x1054b24
lea ecx, [ebp - 0x2c0]
call fcn.0104a002
cmp byte [ebp - 0x299], 0
movzx ebx, byte [ebp - 0x299]
jne 0x1054ad8
cmp byte [ebp - 0x29a], 0
jne 0x1054a84
lea ecx, [ebp - 0x2c0]
call fcn.0106a48b
test eax, eax
jne 0x1054ad8
lea eax, [ebp - 0x298]
push eax
push 0x101
call sub.WSOCK32.dll_WSAStartup
test eax, eax
jne 0x1054ad8
push 0x104
lea eax, [ebp - 0x108]
push eax
call sub.WSOCK32.dll_gethostname
test eax, eax
jne 0x1054ad3
lea eax, [ebp - 0x108]
push eax
call sub.WSOCK32.dll_gethostbyname
test eax, eax
je 0x1054ad3
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
push dword [eax]
mov ecx, esi
call fcn.01037713
test eax, eax
je 0x1054ad3
xor ebx, ebx
inc ebx
call sub.WSOCK32.dll_WSACleanup
test ebx, ebx
jne 0x1054ae3
mov edi, 0x80004005
jmp 0x1054b0f
cmp byte [ebp - 0x299], 0
jne 0x1054af8
mov dword [esi + 0x94], 0x400
jmp 0x1054b02
mov dword [esi + 0x94], 0x200
push dword [esi + 0x94]
mov ecx, esi
call fcn.01054113
cmp dword [ebp - 0x2c0], 0
je 0x1054b24
push dword [ebp - 0x2c0]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
pop ebx
call fcn.0105eca9
leave
ret 4
Function at 0x1060690
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x111121c]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor ebx, ebx
cmp byte [ebp + 0xc], bl
push 0x1a
mov dword [ebp - 4], eax
pop eax
je 0x10606b8
mov eax, 0x801a
lea ecx, [ebp - 0x20c]
push ecx
push ebx
push ebx
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov edi, eax
cmp edi, ebx
jl 0x10606f6
lea eax, [ebp - 0x20c]
push eax
mov ecx, esi
call fcn.010565d8
push 0x100a37c
mov ecx, esi
call fcn.01060528
cmp byte [ebp + 0xc], bl
je 0x10606f6
push esi
call fcn.01066757
mov edi, eax
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
pop ebx
call fcn.0105eca9
leave
ret 8

Function at 0x1060869
Capabilities:
Create process on windows
Get common file path
Set current directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x450
mov eax, dword [0x111121c]
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 0x18]
push edi
xor edi, edi
cmp esi, edi
mov dword [ebp - 4], eax
jne 0x10608d7
lea eax, [ebp - 0x414]
push eax
mov esi, 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
jne 0x10608a9
mov word [ebp - 0x414], di
push esi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
jne 0x10608c2
mov word [ebp - 0x20c], di
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
lea esi, [ebp - 0x20c]
jmp 0x10608de
mov word [ebp - 0x414], di
xor eax, eax
push 0xf
pop ecx
lea edi, [ebp - 0x450]
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x448], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x440], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x434], eax
lea eax, [ebp - 0x450]
push eax
mov dword [ebp - 0x450], 0x3c
mov dword [ebp - 0x44c], 0x600
mov dword [ebp - 0x438], esi
mov dword [ebp - 0x43c], ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
lea eax, [ebp - 0x20c]
pop edi
cmp esi, eax
pop esi
pop ebx
jne 0x1060957
cmp word [ebp - 0x414], 0
je 0x1060957
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x430]
call fcn.0105eca9
leave
ret 0x18
Function at 0x1060b0c
Capabilities:
Set socket configuration

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
mov edi, dword [ebp + 0xc]
or dword [edi], 0xffffffff
lea eax, [ebp - 4]
xor esi, esi
push eax
push esi
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
call sub.iphlpapi.dll_GetAdaptersInfo
cmp eax, 0x6f
jne 0x1060c31
push ebx
push dword [ebp - 4]
call fcn.0105f04e
mov ebx, eax
cmp ebx, esi
pop ecx
mov dword [ebp - 0xc], ebx
je 0x1060c30
lea eax, [ebp - 4]
push eax
push ebx
call sub.iphlpapi.dll_GetAdaptersInfo
test eax, eax
jne 0x1060c27
lea esi, [ebx + 0x1ac]
test esi, esi
je 0x1060b93
lea edi, [esi + 4]
cmp byte [edi], 0
je 0x1060b8a
push edi
call sub.WSOCK32.dll_inet_addr
test eax, eax
je 0x1060b8a
inc dword [ebp - 8]
push edi
call sub.WSOCK32.dll_inet_addr
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov esi, dword [esi]
test esi, esi
jne 0x1060b6a
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebx]
test ebx, ebx
jne 0x1060b60
cmp dword [ebp - 8], 1
jle 0x1060c27
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
lea edx, [ebp + 8]
push edx
push eax
call dword [ecx + 0x34]
test eax, eax
jl 0x1060c27
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov ebx, dword [ebp - 0xc]
lea edx, [ebp + 0xc]
push edx
push 0x1009d38
push eax
call dword [ecx]
test eax, eax
jl 0x1060c1e
mov eax, dword [ebp + 0xc]
and dword [edi], 0
mov ecx, dword [eax]
lea edx, [ebp - 8]
push edx
push eax
call dword [ecx + 0x80]
test eax, eax
jne 0x1060c15
lea esi, [ebx + 0x1ac]
jmp 0x1060c02
lea eax, [esi + 4]
cmp byte [eax], 0
je 0x1060c00
push eax
call sub.WSOCK32.dll_inet_addr
mov ecx, dword [ebp - 8]
cmp ecx, eax
je 0x1060c08
mov esi, dword [esi]
test esi, esi
jne 0x1060beb
jmp 0x1060c0a
mov dword [edi], ecx
cmp dword [edi], 0
jne 0x1060c15
mov ebx, dword [ebx]
test ebx, ebx
jne 0x1060be3
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push dword [ebp - 0xc]
call fcn.0105eff6
pop ecx
pop ebx
cmp dword [edi], 0xffffffff
pop edi
pop esi
jne 0x1060c3f
mov eax, 0x80004005
jmp 0x1060c41
xor eax, eax
leave
ret 8