joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1045df0
Capabilities:
Create directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0
push dword [ebp + 8]
mov esi, 0x80004005
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x1045e17
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1045e19
xor esi, esi
mov eax, esi
pop esi
pop ebp
ret 4

Function at 0x1045f30
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
xor ebx, ebx
xor esi, esi
cmp byte [0x1113510], bl
jne 0x1045fb7
push 0x20019
push ebx
push reloc.WSOCK32.dll_accept
push 0x1005df8
lea ecx, [ebp - 0x1c]
call fcn.01064063
mov eax, dword [ebp - 0x18]
cmp eax, ebx
jle 0x1045f6f
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
cmp esi, ebx
jl 0x1045f8d
push ebx
push 0x1005e40
lea ecx, [ebp - 0x1c]
call fcn.01063ebe
cmp eax, 1
jne 0x1045f8d
mov byte [0x1113505], al
push 0x11132a0
push ebx
push ebx
push 0x1a
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jge 0x1045fa8
mov word [0x11132a0], bx
lea ecx, [ebp - 0x1c]
mov byte [0x1113510], 1
call fcn.0106409d
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x10463cc
Capabilities:
Link many functions at runtime

Disassembly:
cmp byte [0x1113505], 0
push edi
mov edi, 0x80070057
jne 0x10465ab
xor edi, edi
cmp dword [0x11134fc], edi
jne 0x10465ab
push esi
push 0x1005fb8
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
mov dword [0x11134fc], eax
je 0x10465a0
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 2
push eax
call esi
test eax, eax
mov dword [0x11134b0], eax
je 0x10465a0
push 3
push dword [0x11134fc]
call esi
test eax, eax
mov dword [0x11134b4], eax
je 0x10465a0
push 4
push dword [0x11134fc]
call esi
test eax, eax
mov dword [0x11134b8], eax
je 0x10465a0
push 5
push dword [0x11134fc]
call esi
test eax, eax
mov dword [0x11134bc], eax
je 0x10465a0
push 8
push dword [0x11134fc]
call esi
test eax, eax
mov dword [0x11134c4], eax
je 0x10465a0
push 9
push dword [0x11134fc]
call esi
test eax, eax
mov dword [0x11134c8], eax
je 0x10465a0
push 0xa
push dword [0x11134fc]
call esi
test eax, eax
mov dword [0x11134cc], eax
je 0x10465a0
push 0xb
push dword [0x11134fc]
call esi
test eax, eax
mov dword [0x11134d0], eax
je 0x10465a0
push 0xc
push dword [0x11134fc]
call esi
test eax, eax
mov dword [0x11134d4], eax
je 0x10465a0
push 0x12
push dword [0x11134fc]
call esi
test eax, eax
mov dword [0x11134d8], eax
je 0x10465a0
push 0x13
push dword [0x11134fc]
call esi
test eax, eax
mov dword [0x11134dc], eax
je 0x10465a0
push 0x16
push dword [0x11134fc]
call esi
test eax, eax
mov dword [0x11134c0], eax
je 0x10465a0
push 0x1d
push dword [0x11134fc]
call esi
test eax, eax
mov dword [0x11134e0], eax
je 0x10465a0
push 0x1e
push dword [0x11134fc]
call esi
test eax, eax
mov dword [0x11134e4], eax
je 0x10465a0
push 0x1f
push dword [0x11134fc]
call esi
test eax, eax
mov dword [0x11134e8], eax
je 0x10465a0
push 0x20
push dword [0x11134fc]
call esi
test eax, eax
mov dword [0x11134ec], eax
je 0x10465a0
push 0x21
push dword [0x11134fc]
call esi
test eax, eax
mov dword [0x11134f0], eax
je 0x10465a0
push 0x2e
push dword [0x11134fc]
call esi
test eax, eax
mov dword [0x11134f4], eax
je 0x10465a0
push 0x2f
push dword [0x11134fc]
call esi
test eax, eax
mov dword [0x11134f8], eax
jne 0x10465aa
mov edi, 0x80004005
call fcn.01046338
pop esi
mov eax, edi
pop edi
ret
Function at 0x1046624
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 0x10466ba
and dword [ebp - 4], 0
push esi
push edi
lea eax, [ebp - 4]
push eax
mov esi, 0x1005fd0
push esi
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
test edi, edi
je 0x10466b8
push edi
call dword [sym.imp.msvcrt.dll_malloc]
test eax, eax
pop ecx
mov dword [ebp - 0xc], eax
je 0x10466b8
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 0x10466ae
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
push 0x1002e70
push dword [ebp - 0xc]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x10466ae
mov eax, dword [ebp - 8]
test eax, eax
je 0x10466ae
push dword [eax + 0xc]
push dword [eax + 8]
mov eax, dword [ebp - 0x14]
push dword [eax + 0x10]
mov ecx, dword [eax + 0xc]
call fcn.01046131
push dword [ebp - 0xc]
call dword [sym.imp.msvcrt.dll_free]
pop ecx
pop edi
pop esi
leave
ret
Function at 0x1046910
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.01067560
test eax, eax
jl 0x104693d
push dword [ebp - 4]
mov ecx, esi
push 4
call fcn.010465ff
lea eax, [ebp - 4]
push eax
call fcn.0106759a
test eax, eax
jl 0x1046956
push dword [ebp - 4]
mov ecx, esi
push 5
call fcn.010465ff
lea eax, [ebp - 4]
push eax
call fcn.01067993
test eax, eax
jl 0x104696f
push dword [ebp - 4]
mov ecx, esi
push 2
call fcn.010465ff
lea eax, [ebp - 4]
push eax
call fcn.01067958
test eax, eax
jl 0x1046988
push dword [ebp - 4]
mov ecx, esi
push 3
call fcn.010465ff
lea eax, [ebp - 4]
push eax
call fcn.010678a9
test eax, eax
jl 0x10469a1
push dword [ebp - 4]
mov ecx, esi
push 6
call fcn.010465ff
lea eax, [ebp - 4]
push eax
call fcn.010678e4
test eax, eax
jl 0x10469ba
push dword [ebp - 4]
mov ecx, esi
push 7
call fcn.010465ff
lea eax, [ebp - 4]
push eax
call fcn.010675d4
test eax, eax
jl 0x10469d3
push dword [ebp - 4]
mov ecx, esi
push 0x19
call fcn.010465ff
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push 0x1006074
call fcn.01066055
test eax, eax
jl 0x10469f5
push dword [ebp - 4]
mov ecx, esi
push 0x1b
call fcn.010465ff
lea eax, [ebp - 4]
push eax
call fcn.0106791f
test eax, eax
jl 0x1046a0e
push dword [ebp - 4]
mov ecx, esi
push 0x27
call fcn.010465ff
lea eax, [ebp - 4]
push eax
call fcn.01067870
test eax, eax
jl 0x1046a27
push dword [ebp - 4]
mov ecx, esi
push 0x1d
call fcn.010465ff
push edi
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
movzx eax, ax
push eax
push 0x1a
mov ecx, esi
call fcn.010465ff
push ebx
call dword [sym.imp.USER32.dll_GetSystemMetrics]
push eax
push 0x2b
mov ecx, esi
call fcn.010465ff
push ebx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
cmp edi, ebx
je 0x1046a74
push 0xc
push edi
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
push eax
push 0x2c
mov ecx, esi
call fcn.010465ff
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 0x1006068
push 0x1006008
push reloc.WSOCK32.dll_bind
mov dword [ebp - 0x10], 4
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
pop edi
jne 0x1046aad
push dword [ebp - 0x14]
mov ecx, esi
push 0x29
call fcn.010465ff
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.010465ff
call fcn.01067545
test eax, eax
mov ecx, esi
jne 0x1046ae2
push 1
jmp 0x1046ae3
push ebx
push 0x32
call fcn.010465ff
lea eax, [ebp - 8]
push eax
push 0x1005fe8
mov dword [ebp - 8], ebx
call fcn.010676da
test eax, eax
jl 0x1046b0d
movzx eax, word [ebp - 8]
push eax
push 0x1c
mov ecx, esi
call fcn.010465ff
mov ecx, esi
call fcn.01046624
pop esi
pop ebx
leave
ret
Function at 0x104813f
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 0x104815e
push 0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
ret
xor eax, eax
pop esi
ret

Function at 0x1049927
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 0x1049981
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x104994e
xor eax, eax
jmp 0x1049980
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 0x1049972
cmp esi, eax
jae 0x104994a
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x1049964
cmp esi, eax
jae 0x104994a
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop ebp
ret 0xc

Function at 0x104a4fb
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.010e2c60
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x104a550
push esi
push esi
push 0x40
push 0x9c7f
push edi
call fcn.01062b69
jmp 0x104a566
push 1
push esi
push esi
lea eax, [ebp - 0x20c]
push eax
push 0x10083d8
push esi
call fcn.010607c9
mov ecx, dword [ebp - 4]
pop edi
pop esi
call fcn.0105ec09
leave
ret 4
Function at 0x104a60b
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 0x104a826
push 0x208
lea eax, [ebp - 0x440]
push eax
push 0x9d42
push dword [0x1112f58]
call dword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
je 0x104a826
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
add esi, 0x209
lea eax, [esi + esi]
push eax
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
cmp eax, ebx
pop ecx
mov dword [ebp - 0x64c], eax
je 0x104a826
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 0x104a72b
push 0xa
pop ecx
mov esi, 0x100840c
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 0x104a72b
push 0x100440c
add esi, 0x28
push esi
call edi
cmp eax, ebx
je 0x104a72b
sub eax, esi
sar eax, 1
cmp eax, ebx
jle 0x104a72b
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 0x104a71c
mov eax, dword [ebp - 0x658]
cmp word [eax], bx
je 0x104a7ba
mov esi, dword [ebp - 0x654]
add esi, 0x3b8
cmp word [esi], bx
jne 0x104a7ba
lea eax, [ebp - 0x648]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x104a7ba
push esi
push ebx
push 0x1008404
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 0x10083f8
push esi
call edi
cmp eax, ebx
jne 0x104a796
push 0x10083f4
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 0x10083e8
push eax
call dword [sym.imp.SHLWAPI.dll_StrCpyNW]
mov eax, dword [ebp - 0x654]
add eax, 0x3b8
cmp eax, ebx
je 0x104a81a
cmp word [eax], bx
je 0x104a81a
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 0x104a81a
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 sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x650]
pop edi
pop esi
pop ebx
call fcn.0105ec09
leave
ret 8
Function at 0x104bc92
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.0103f05b
test eax, eax
jl 0x104be58
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 0x104bd79
lea eax, [ebp - 0xe8c]
push eax
push 1
lea eax, [ebp - 0x824]
push eax
call dword [sym.imp.SHLWAPI.dll_StrToIntExW]
call fcn.01066844
test eax, eax
mov ebx, 0x1007db4
mov eax, 0x1007dcc
jne 0x104bd17
mov eax, ebx
mov edi, dword [sym.imp.SHLWAPI.dll_wnsprintfW]
push eax
push dword [ebp - 0xe8c]
lea eax, [ebp - 0xa2c]
push 0x100859c
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 0x104bd68
lea eax, [ebp - 0xe84]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
jne 0x104bdac
call fcn.01066844
test eax, eax
je 0x104bd76
mov ebx, 0x1007dcc
push ebx
jmp 0x104bd93
call fcn.01066844
test eax, eax
mov eax, 0x1007dcc
jne 0x104bd8c
mov eax, 0x1007db4
mov edi, dword [sym.imp.SHLWAPI.dll_wnsprintfW]
push eax
lea eax, [ebp - 0x61c]
push eax
push 0x1004d04
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 0x104bde9
lea eax, [ebp - 0xc34]
push eax
lea eax, [ebp - 0x20c]
push eax
push 0x100858c
lea eax, [ebp - 0x414]
push esi
push eax
call edi
add esp, 0x14
jmp 0x104be02
lea eax, [ebp - 0x20c]
push eax
push 0x1008584
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 0x1008574
push 0x1008568
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.01046876
test eax, eax
pop edi
pop ebx
jne 0x104be58
mov ecx, dword [ebp - 0xe88]
push 1
push 0x21
call fcn.010466e6
mov eax, dword [ebp - 0xe88]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [ebp - 4]
pop esi
call fcn.0105ec09
leave
ret 8
Function at 0x104cf0f
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 0x104cf83
push eax
mov esi, 0x1004d04
lea edi, [ebp - 0x10]
movsd dword es:[edi], dword [esi]
push 0x1007210
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 0x104cf83
mov ecx, dword [0x1113528]
push 1
push ebx
push ebx
lea eax, [ebp - 0x218]
push eax
push ebx
call fcn.0104afbe
push eax
call fcn.010607c9
cmp eax, 0x20
ja 0x104d08e
mov ebx, 0x20019
push ebx
push 0
mov edi, reloc.WSOCK32.dll_bind
push edi
push 0x1007304
lea ecx, [ebp - 0x250]
call fcn.01064063
mov esi, 0x1001bc8
push esi
lea ecx, [ebp - 0x250]
call fcn.010640b9
push eax
push 0x1007330
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.01064063
push esi
lea ecx, [ebp - 0x234]
call fcn.010640b9
cmp dword [ebp - 0x230], ebx
mov edi, eax
jne 0x104d078
cmp word [edi], 0x22
jne 0x104d01b
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 0x104d026
mov word [esi], bx
inc esi
inc esi
jmp 0x104d026
push 0x20
push edi
call dword [sym.imp.SHLWAPI.dll_StrChrW]
mov esi, eax
push 0x410
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
mov ebx, eax
test ebx, ebx
pop ecx
je 0x104d058
and word [ebx], 0
test esi, esi
je 0x104d058
cmp word [esi], 0x20
jne 0x104d04b
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.0104afbe
push eax
call fcn.010607c9
push ebx
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
lea ecx, [ebp - 0x234]
call fcn.0106409d
lea ecx, [ebp - 0x250]
call fcn.0106409d
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0105ec09
leave
ret 4
Function at 0x104d42d
Capabilities:
Delete file

Disassembly:
mov edi, edi
push ebx
push esi
push edi
mov esi, ecx
call fcn.010b76ce
call fcn.010da627
xor ebx, ebx
inc ebx
xor edi, edi
mov dword [0x111355c], ebx
cmp dword [esi + 0x10], edi
je 0x104d457
push ebx
push edi
mov ecx, esi
call fcn.0104cd0d
call fcn.010bf71a
test eax, eax
je 0x104d465
call fcn.010bf72f
mov ecx, dword [esi + 0x2c]
push ebx
call fcn.0104713f
mov dword [esi + 0xe4], edi
mov eax, dword [0x1113528]
add eax, 0x3b8
cmp word [eax], di
je 0x104d496
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [0x1113528]
mov word [eax + 0x3b8], di
call fcn.010d85fa
mov eax, dword [esi + 0x24]
cmp eax, edi
je 0x104d4b5
push edi
lea ecx, [eax + 0x24]
call fcn.010768c3
mov ecx, dword [esi + 0x24]
call fcn.01043787
jmp 0x104d504
call fcn.01042262
mov ebx, eax
cmp ebx, edi
je 0x104d4cd
mov ecx, ebx
call fcn.0104227c
mov eax, dword [ebx]
push ebx
call dword [eax + 8]
call fcn.01049e6c
cmp dword [esi + 0xd8], edi
je 0x104d504
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 0x104d4e0
push 1
call fcn.0103f271
pop edi
pop esi
pop ebx
ret
Function at 0x1050071
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.010e2c60
test eax, eax
jne 0x10500d3
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x10500d3
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.0104b8e0
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 0x1050134
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 0x10501e6
push edi
push edi
push 0x31
push 0x9d7d
push ebx
mov dword [ebp - 0x418], 0x80004005
call fcn.01062b69
cmp eax, 1
jne 0x10501e6
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.010668b1
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 0x10501e6
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.0105ec09
leave
ret 0x10

Function at 0x10506f9
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 0x10506ac
push eax
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
leave
ret
Function at 0x10548a8
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 0x1054924
dec eax
je 0x105490f
dec eax
je 0x10548f3
xor bl, bl
dec eax
je 0x10548e7
mov byte [ebp - 0x299], bl
mov byte [ebp - 0x29a], bl
jmp 0x1054934
mov dword [0x1113558], 1
jmp 0x1054926
mov byte [ebp - 0x299], 0
mov byte [ebp - 0x29a], 0
mov bl, 1
mov dword [0x1113558], 1
jmp 0x1054934
mov byte [ebp - 0x299], 0
xor bl, bl
mov dword [0x1113558], 2
jmp 0x105492d
mov bl, 1
mov byte [ebp - 0x299], 1
mov byte [ebp - 0x29a], 1
call fcn.010731bf
test eax, eax
je 0x1054961
test bl, bl
mov dword [esi + 0xa0], edi
jne 0x1054950
test byte [0x1113525], 4
jne 0x1054961
cmp dword [ebp + 8], 2
jne 0x105496b
mov ecx, esi
call fcn.01049ccf
test eax, eax
jne 0x105496b
mov edi, 0x80004005
jmp 0x1054a84
call fcn.010d85ba
test eax, eax
je 0x105497e
mov edi, 0x81000315
jmp 0x1054a84
push edi
call fcn.01072911
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 0x1054a84
test byte [ebp - 0x2a0], 2
je 0x10549b1
mov edi, 0x81000304
jmp 0x1054a84
lea ecx, [ebp - 0x2c0]
call fcn.01049f62
cmp byte [ebp - 0x299], 0
movzx ebx, byte [ebp - 0x299]
jne 0x1054a38
cmp byte [ebp - 0x29a], 0
jne 0x10549e4
lea ecx, [ebp - 0x2c0]
call fcn.0106a3eb
test eax, eax
jne 0x1054a38
lea eax, [ebp - 0x298]
push eax
push 0x101
call sub.WSOCK32.dll_WSAStartup
test eax, eax
jne 0x1054a38
push 0x104
lea eax, [ebp - 0x108]
push eax
call sub.WSOCK32.dll_gethostname
test eax, eax
jne 0x1054a33
lea eax, [ebp - 0x108]
push eax
call sub.WSOCK32.dll_gethostbyname
test eax, eax
je 0x1054a33
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
push dword [eax]
mov ecx, esi
call fcn.01037673
test eax, eax
je 0x1054a33
xor ebx, ebx
inc ebx
call sub.WSOCK32.dll_WSACleanup
test ebx, ebx
jne 0x1054a43
mov edi, 0x80004005
jmp 0x1054a6f
cmp byte [ebp - 0x299], 0
jne 0x1054a58
mov dword [esi + 0x94], 0x400
jmp 0x1054a62
mov dword [esi + 0x94], 0x200
push dword [esi + 0x94]
mov ecx, esi
call fcn.01054073
cmp dword [ebp - 0x2c0], 0
je 0x1054a84
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.0105ec09
leave
ret 4