joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10e2c60
Capabilities:
Create directory
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x111121c]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 0xf003f
xor edi, edi
push edi
push reloc.WSOCK32.dll_accept
push 0x1024250
lea ecx, [ebp - 0x234]
mov dword [ebp - 4], eax
mov dword [ebp - 0x210], edi
mov word [esi], di
call fcn.01064063
lea eax, [ebp - 0x214]
push eax
push 0x1024468
lea ecx, [ebp - 0x234]
call fcn.010641fd
cmp dword [ebp - 0x214], edi
mov ebx, dword [sym.imp.SHLWAPI.dll_StrCpyNW]
je 0x10e2cd0
push dword [ebp + 0xc]
push dword [ebp - 0x214]
push esi
call ebx
cmp word [esi], di
jne 0x10e2da2
push esi
push edi
push edi
push 5
push edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
cmp eax, edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
mov dword [ebp - 0x210], eax
jne 0x10e2d0c
push esi
call edi
mov ecx, dword [ebp + 0xc]
sub ecx, eax
push ecx
push 0x10245b4
push esi
call edi
lea eax, [esi + eax*2]
push eax
jmp 0x10e2d32
push 0x104
lea eax, [ebp - 0x20c]
push eax
call fcn.0103f05b
test eax, eax
mov dword [ebp - 0x210], eax
jl 0x10e2d34
push dword [ebp + 0xc]
lea eax, [ebp - 0x20c]
push eax
push esi
call ebx
cmp dword [ebp - 0x210], 0
jne 0x10e2da2
push 0xa256
lea ecx, [ebp - 0x208]
call fcn.0103d0ec
push esi
call edi
mov dword [ebp - 0x218], eax
lea eax, [ebp - 0x208]
push eax
call edi
mov ecx, dword [ebp - 0x218]
mov edx, eax
mov eax, dword [ebp + 0xc]
add edx, ecx
cmp edx, eax
jge 0x10e2d80
sub eax, ecx
push eax
lea eax, [ebp - 0x208]
push eax
lea eax, [esi + ecx*2]
push eax
call ebx
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push esi
call edi
lea eax, [eax + eax + 2]
push eax
push esi
push 0x1024468
lea ecx, [ebp - 0x234]
call fcn.01063dab
lea ecx, [ebp - 0x234]
call fcn.0106409d
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x210]
pop edi
pop esi
pop ebx
call fcn.0105ec09
leave
ret 8
Function at 0x10e6d5b
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x174
mov eax, dword [0x111121c]
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
push edi
push 2
push 0xffffffffffffffff
push 0x100c
push dword [ebp + 8]
mov edi, ecx
push dword [edi + 0x18]
mov dword [ebp - 4], eax
call esi
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
push eax
call ebx
cmp eax, 0xffffffff
mov dword [ebp - 0x10c], eax
je 0x10e6ef0
and dword [ebp - 0x138], 0
mov dword [ebp - 0x13c], eax
lea eax, [ebp - 0x140]
push eax
push 0
push 0x104b
push dword [ebp + 8]
lea ecx, [ebp - 0x108]
push dword [edi + 0x18]
mov dword [ebp - 0x140], 0xd
mov dword [ebp - 0x12c], ecx
mov dword [ebp - 0x128], 0x82
mov dword [ebp - 0x130], 3
call esi
push eax
call ebx
test eax, eax
je 0x10e6ef0
and dword [ebp - 0x134], 0
push 0
push dword [ebp - 0x10c]
push 0x1008
push dword [ebp + 8]
push dword [edi + 0x18]
call esi
push eax
call ebx
lea eax, [ebp - 0x140]
push eax
push dword [ebp + 0xc]
push dword [edi + 0x18]
call esi
push eax
mov ecx, edi
call fcn.010e6c94
test eax, eax
mov eax, dword [ebp - 0x120]
jne 0x10e6e4c
cmp eax, 0x64
jl 0x10e6e44
cmp eax, 0x67
jbe 0x10e6e69
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x10e6e69
cmp eax, 0x64
jl 0x10e6e69
cmp eax, 0x67
ja 0x10e6e69
xor ecx, ecx
cmp dword [ebp + 0xc], 0x9da7
setne cl
mov dword [edi + eax*4 - 0x13c], ecx
push 0
push 0
push 0x1004
push dword [ebp + 8]
push dword [edi + 0x18]
call esi
push eax
call ebx
cmp dword [ebp - 0x10c], eax
jl 0x10e6e8c
dec eax
mov dword [ebp - 0x10c], eax
cmp dword [ebp - 0x10c], 0xffffffff
je 0x10e6ee1
push 3
pop eax
mov dword [ebp - 0x164], eax
mov dword [ebp - 0x168], eax
lea eax, [ebp - 0x174]
push eax
push dword [ebp - 0x10c]
push 0x102b
push dword [ebp + 8]
push dword [edi + 0x18]
call esi
push eax
call ebx
push 0x9daa
push dword [edi + 0x18]
call esi
mov ebx, dword [sym.imp.USER32.dll_SetFocus]
push eax
call ebx
push dword [ebp + 8]
push dword [edi + 0x18]
call esi
push eax
call ebx
jmp 0x10e6ef0
push dword [ebp + 0xc]
push dword [edi + 0x18]
call esi
push eax
call dword [sym.imp.USER32.dll_SetFocus]
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0105ec09
leave
ret 8
Function at 0x10e9c1a
Capabilities:
Set socket configuration

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x111121c]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], eax
mov esi, 0x104
push esi
lea eax, [ebp - 0x20c]
push eax
mov dword [ebp - 0x210], ecx
push 0x1026910
mov ecx, edi
call fcn.010652ab
or ebx, 0xffffffff
cmp eax, ebx
je 0x10e9c6a
lea eax, [ebp - 0x20c]
push eax
call fcn.01065ce5
mov dword [0x1114858], eax
push esi
lea eax, [ebp - 0x20c]
push eax
push 0x1026928
mov ecx, edi
call fcn.010652ab
cmp eax, ebx
je 0x10e9c93
lea eax, [ebp - 0x20c]
push eax
call fcn.01065ce5
mov dword [0x1114860], eax
push esi
lea eax, [ebp - 0x20c]
push eax
push 0x1026934
mov ecx, edi
call fcn.010652ab
cmp eax, ebx
je 0x10e9cbc
lea eax, [ebp - 0x20c]
push eax
call fcn.01065ce5
mov dword [0x1114864], eax
push esi
lea eax, [ebp - 0x20c]
push eax
push 0x102693c
mov ecx, edi
call fcn.010652ab
cmp eax, ebx
je 0x10e9d05
push esi
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x21c]
call fcn.01064439
mov ecx, eax
call fcn.01064509
push eax
push 0x1114868
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
lea ecx, [ebp - 0x21c]
call fcn.01064479
push esi
lea eax, [ebp - 0x20c]
push eax
push 0x1026950
mov ecx, edi
call fcn.010652ab
cmp eax, ebx
je 0x10e9d53
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x21c]
call fcn.01064439
mov ecx, eax
call fcn.01064509
push eax
call sub.WSOCK32.dll_inet_addr
mov ecx, dword [ebp - 0x210]
mov dword [ecx + 0x3c0], eax
lea ecx, [ebp - 0x21c]
call fcn.01064479
push esi
lea eax, [ebp - 0x20c]
push eax
push 0x1026964
mov ecx, edi
call fcn.010652ab
pop edi
pop esi
cmp eax, ebx
pop ebx
je 0x10e9d86
lea eax, [ebp - 0x20c]
push eax
call fcn.01065ce5
mov ecx, dword [ebp - 0x210]
mov dword [ecx + 0x3bc], eax
mov ecx, dword [ebp - 4]
call fcn.0105ec09
leave
ret 4

Function at 0x10f563a
Capabilities:
Delete file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
mov dword [ecx + 0x100], esi
push 0x1113620
lea ecx, [ebp - 4]
call fcn.010fc800
lea eax, [ebp - 4]
push eax
push esi
call fcn.010f491c
cmp eax, esi
jl 0x10f568d
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x10f568f
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x10f5681
call esi
jmp 0x10f568d
call esi
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
mov ecx, dword [ebp - 4]
add ecx, 0xfffffff0
call fcn.01049fdf
mov eax, esi
pop esi
leave
ret
Function at 0x10f5a19
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xbc
mov eax, dword [0x111121c]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 4], eax
push 0xb
lea eax, [ebp - 0x3c]
push eax
push 0x1027490
mov ecx, esi
call fcn.010652ab
cmp eax, 0xffffffff
je 0x10f5a59
lea eax, [ebp - 0x3c]
push eax
call fcn.01065ce5
test eax, eax
je 0x10f5a59
mov dword [0x1114ae8], eax
push ebx
push edi
push 3
lea eax, [ebp - 0xc]
push eax
push 0x10274b4
mov ecx, esi
call fcn.010652ab
cmp eax, 0xffffffff
push 0x20
pop edi
je 0x10f5a93
cmp word [ebp - 0xc], 0
je 0x10f5a93
cmp word [ebp - 0xc], di
je 0x10f5a93
push 3
lea eax, [ebp - 0xc]
push eax
push 0x1114ae0
call dword [sym.imp.SHLWAPI.dll_StrCpyNW]
push edi
push 0x1114a90
push 0x10274c8
push esi
call fcn.010f59c2
push 2
push 0x1114ad0
push 0x10274e0
push esi
call fcn.010f59c2
push edi
lea eax, [ebp - 0x7c]
push eax
push 0x1027508
push esi
call fcn.010f59c2
push edi
lea eax, [ebp - 0xbc]
push eax
push 0x1027524
push esi
call fcn.010f59c2
push 4
push 0x1114ad8
push 0x10274f0
push esi
call fcn.010f59c2
push 2
push 0x1114ad4
push 0x10274fc
push esi
call fcn.010f59c2
mov edi, dword [sym.imp.SHLWAPI.dll_StrTrimW]
mov ebx, 0x100ac98
push ebx
lea eax, [ebp - 0x7c]
push eax
call edi
push ebx
lea eax, [ebp - 0xbc]
push eax
call edi
cmp word [ebp - 0x7c], 0x2d
pop edi
pop ebx
jne 0x10f5b30
lea eax, [ebp - 0x7a]
push eax
call fcn.01065ce5
not eax
inc eax
jmp 0x10f5b39
lea eax, [ebp - 0x7c]
push eax
call fcn.01065ce5
cmp word [ebp - 0xbc], 0x2d
mov dword [0x1114a88], eax
jne 0x10f5b59
lea eax, [ebp - 0xba]
push eax
call fcn.01065ce5
not eax
inc eax
jmp 0x10f5b65
lea eax, [ebp - 0xbc]
push eax
call fcn.01065ce5
mov dword [0x1114a84], eax
push 0xb
lea eax, [ebp - 0x24]
push eax
push 0x1027540
mov ecx, esi
call fcn.010652ab
cmp eax, 0xffffffff
pop esi
je 0x10f5b90
lea eax, [ebp - 0x24]
push eax
call fcn.01065ce5
mov dword [0x1114a80], eax
mov ecx, dword [ebp - 4]
call fcn.0105ec09
leave
ret 4

Function at 0x10fd7bd
Capabilities:
Initialize winsock library

Disassembly:
mov dword [ecx + 0xef4], 1
jmp fcn.0106e53f

Function at 0x10fe430
Capabilities:
Resolve dns
Set socket configuration

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
cmp dword [0x1114c38], 1
push esi
push edi
mov esi, ecx
jne 0x10fe447
call fcn.010fe2c3
push 0x104
push dword [ebp + 8]
lea edi, [esi + 0x62d4]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
cmp dword [esi + 0xef8], 0
mov eax, dword [ebp + 0xc]
mov word [esi + 0x63dc], ax
jne 0x10fe47c
push eax
push dword [ebp + 8]
mov ecx, esi
call fcn.0106eb57
jmp 0x10fe4ab
push edi
call sub.WSOCK32.dll_inet_addr
cmp eax, 0xffffffff
mov dword [esi + 0x63d8], eax
jne 0x10fe4a4
push edi
call sub.WSOCK32.dll_gethostbyname
test eax, eax
je 0x10fe4a4
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [esi + 0x63d8], eax
mov ecx, esi
call fcn.010fdff5
pop edi
pop esi
pop ebp
ret 8
Function at 0x1100de4
Capabilities:
Check if file exists

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x830
mov eax, dword [0x111121c]
push ebx
mov ebx, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push 0x10285c4
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
mov dword [ebp - 0x82c], eax
je 0x1100e81
push esi
mov esi, 0x824
push esi
push edi
lea eax, [ebp - 0x828]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
and dword [ebp - 0x830], 0
jmp 0x1100e67
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x1100e7e
cmp dword [ebp - 0x830], 0
jne 0x1100e7e
push esi
push 0x10285a8
lea eax, [ebp - 0x828]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCatBuffA]
mov dword [ebp - 0x830], 1
push dword [ebp + 0x14]
lea eax, [ebp - 0x828]
push ebx
push eax
call dword [ebp - 0x82c]
mov edi, eax
test edi, edi
je 0x1100e36
mov eax, edi
pop esi
mov ecx, dword [ebp - 4]
pop edi
pop ebx
call fcn.0105ec09
leave
ret 0x10

Function at 0x11010be
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push edi
mov edi, dword [ebp + 0x20]
xor ebx, ebx
cmp edi, ebx
jne 0x11010f4
mov eax, dword [ebp + 0x1c]
dec eax
je 0x11010e2
sub eax, 3
je 0x11010dd
xor eax, eax
jmp 0x1101154
push 4
pop edi
jmp 0x11010f4
mov eax, dword [ebp + 0x18]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x11010e8
sub eax, edx
lea edi, [eax + 1]
push esi
mov esi, dword [ebp + 0xc]
cmp dword [esi], ebx
mov dword [ebp + 0x20], ebx
jne 0x1101128
lea eax, [ebp + 0x20]
push eax
push esi
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push dword [ebp + 0x10]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x1101121
xor eax, eax
jmp 0x1101153
mov dword [ebp + 0x20], 1
push edi
push dword [ebp + 0x18]
push dword [ebp + 0x1c]
push ebx
push dword [ebp + 0x14]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x1101150
cmp dword [ebp + 0x20], ebx
je 0x110111d
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esi], ebx
jmp 0x110111d
xor eax, eax
inc eax
pop esi
pop edi
pop ebx
pop ebp
ret 0x1c
Function at 0x110195e
Capabilities:
Get file size
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
push edi
xor esi, esi
push esi
push dword [ebp + 8]
mov dword [ebp - 0x1c], ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x1101985
xor eax, eax
jmp 0x1101a7a
push ebx
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebx]
cmp edi, eax
jbe 0x1101a77
push esi
push esi
push eax
push dword [ebp + 8]
sub edi, eax
mov dword [ebp - 0x18], edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x1101a77
mov eax, 0x10000
cmp edi, eax
mov dword [ebp + 0xc], edi
jb 0x11019bc
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 0xc]
inc eax
push eax
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
cmp eax, esi
pop ecx
mov dword [ebp - 0xc], eax
je 0x1101a77
or dword [ebp - 0x10], 0xffffffff
and dword [ebp - 0x14], 0
and dword [ebp - 8], 0
sub edi, dword [ebp - 8]
and dword [ebp - 4], 0
cmp edi, dword [ebp + 0xc]
jbe 0x11019ed
mov edi, dword [ebp + 0xc]
push 0
lea eax, [ebp - 4]
push eax
push edi
push dword [ebp - 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1101a43
mov eax, dword [ebp - 4]
cmp eax, edi
jne 0x1101a43
mov ecx, dword [ebp - 0xc]
push dword [ebp + 0x10]
mov byte [eax + ecx], 0
push dword [ebp - 4]
push ecx
mov ecx, dword [ebp - 0x1c]
call fcn.01101907
cmp eax, 0xffffffff
mov dword [ebp - 0x10], eax
jne 0x1101a43
mov eax, dword [ebp - 0x14]
add eax, dword [ebp - 4]
cmp eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
jae 0x1101a43
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp - 0x18]
inc esi
add dword [ebp - 8], eax
jmp 0x11019de
push dword [ebp - 0xc]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
cmp dword [ebp - 0x10], 0xffffffff
pop ecx
je 0x1101a77
imul esi, dword [ebp + 0xc]
add esi, dword [ebp - 0x10]
push 0
add dword [ebx], esi
mov ebx, dword [ebx]
push 0
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
jmp 0x1101a79
xor eax, eax
pop ebx
pop edi
pop esi
leave
ret 0xc
Function at 0x1101b10
Capabilities:
Get file size
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push edi
xor ebx, ebx
push ebx
push ebx
push 3
push ebx
push 3
push accept
push dword [ebp + 8]
xor edi, edi
mov dword [ebp - 8], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x1101b92
push esi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
je 0x1101b83
lea eax, [esi + 1]
push eax
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
mov edi, eax
cmp edi, ebx
pop ecx
je 0x1101b83
push ebx
lea eax, [ebp + 8]
push eax
push esi
push edi
push dword [ebp - 4]
mov dword [ebp + 8], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1101b83
cmp dword [ebp + 8], esi
jne 0x1101b83
mov byte [esi + edi], bl
mov dword [ebp - 8], 1
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 8], ebx
pop esi
jne 0x1101b9b
push edi
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
xor edi, edi
mov eax, edi
pop edi
pop ebx
leave
ret 4

Function at 0x110236b
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x111121c]
push esi
push edi
push 0x10284c8
mov esi, reloc.WSOCK32.dll_accept
push esi
mov dword [ebp - 4], eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
lea eax, [ebp - 0x110]
push eax
push 0xf003f
xor edi, edi
push edi
push 0x1028538
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp dword [ebp - 0x110], edi
je 0x110240d
push ebx
mov ebx, 0x105
push ebx
lea eax, [ebp - 0x10c]
push eax
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
jmp 0x11023e8
lea eax, [ebp - 0x10c]
push eax
push dword [ebp - 0x110]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
push ebx
lea eax, [ebp - 0x10c]
push eax
push 0
push dword [ebp - 0x110]
call edi
test eax, eax
je 0x11023cb
push dword [ebp - 0x110]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x1028538
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
pop ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
call fcn.0105ec09
leave
ret
Function at 0x110249a
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov eax, dword [esi + 0x28]
xor ebx, ebx
test al, 4
push edi
mov dword [ebp - 4], ebx
mov edi, accept
jne 0x11024c1
test edi, eax
je 0x110258b
lea eax, [ebp - 0xc]
push eax
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
call fcn.01100c49
mov eax, dword [esi + 0x28]
test al, 4
je 0x1102506
test eax, 0x20000000
je 0x1102506
mov ecx, dword [ebp - 0xc]
sub ecx, dword [esi + 0x30]
mov eax, dword [ebp - 8]
sbb eax, dword [esi + 0x34]
cmp eax, 0xc9
jl 0x1102590
jg 0x110258b
cmp ecx, 0x2a69c000
jmp 0x1102589
test edi, eax
je 0x1102511
test eax, 0x40000000
jmp 0x110256c
mov eax, dword [esi + 0x2c]
cmp eax, ebx
je 0x1102536
cmp dword [esi], ebx
je 0x1102536
push eax
push dword [ebp + 8]
call fcn.01100e94
test eax, eax
jne 0x1102536
test byte [esi + 0x28], 0x40
je 0x1102590
mov dword [ebp - 4], 1
mov eax, dword [ebp + 0x10]
cmp eax, ebx
je 0x1102568
mov ecx, dword [esi + 0x3c]
cmp ecx, ebx
je 0x110258b
mov edi, dword [ebp + 0x14]
cmp edi, dword [esi + 0x38]
jne 0x110258b
cmp dword [ebp - 4], ebx
jne 0x1102590
xor edx, edx
cmp edi, ebx
jbe 0x1102568
sub ecx, eax
mov ebx, dword [eax]
cmp ebx, dword [ecx + eax]
jne 0x110258b
inc edx
add eax, 4
cmp edx, edi
jb 0x1102559
test byte [esi + 0x2b], 0x40
je 0x1102590
mov ecx, dword [ebp - 0xc]
sub ecx, dword [esi + 0x30]
mov eax, dword [ebp - 8]
sbb eax, dword [esi + 0x34]
cmp eax, 0x580
jl 0x1102590
jg 0x110258b
cmp ecx, 0x28e44000
jbe 0x1102590
xor eax, eax
inc eax
jmp 0x1102592
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0x10

Function at 0x110259e
Capabilities:
Resolve dns

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push ebx
xor ebx, ebx
push edi
mov edi, dword [ebp + 8]
mov dword [eax], ebx
mov eax, dword [edi]
cmp eax, ebx
je 0x11025be
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [edi], ebx
push ebx
call sub.WSOCK32.dll_gethostbyname
cmp eax, ebx
mov dword [ebp + 8], eax
jne 0x11025cf
xor eax, eax
jmp 0x1102621
mov eax, dword [eax + 0xc]
push esi
xor esi, esi
cmp dword [eax], ebx
je 0x110261e
add eax, 4
inc esi
cmp dword [eax], ebx
jne 0x11025d9
cmp esi, ebx
je 0x110261e
mov eax, esi
shl eax, 2
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
cmp eax, ebx
mov dword [edi], eax
jne 0x11025fe
push 8
pop eax
jmp 0x1102620
mov eax, dword [ebp + 0xc]
mov dword [eax], esi
xor eax, eax
cmp esi, ebx
jbe 0x110261e
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 0xc]
mov ecx, dword [ecx + eax*4]
mov edx, dword [edi]
mov ecx, dword [ecx]
mov dword [edx + eax*4], ecx
inc eax
cmp eax, esi
jb 0x1102609
xor eax, eax
pop esi
pop edi
pop ebx
pop ebp
ret 8
Function at 0x1102667
Capabilities:
Get file version info

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x834
mov eax, dword [0x111121c]
push ebx
push esi
mov esi, dword [ebp + 0xc]
lea ecx, [ebp - 0x82c]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ecx
push eax
mov dword [ebp - 0x830], eax
mov dword [ebp - 0x834], esi
call sub.VERSION.dll_GetFileVersionInfoSizeA
xor ebx, ebx
cmp eax, ebx
mov dword [ebp - 0x820], eax
je 0x11026be
lea eax, [ebp - 0x82c]
push eax
push esi
call sub.VERSION.dll_GetFileVersionInfoSizeA
cmp eax, ebx
mov dword [ebp - 0x81c], eax
jne 0x11026c5
xor eax, eax
jmp 0x1102869
lea eax, [ebp - 0x804]
mov dword [ebp - 0x810], eax
mov esi, 0x400
cmp dword [ebp - 0x820], esi
lea eax, [ebp - 0x404]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0x808], eax
mov dword [ebp - 0x824], ebx
mov dword [ebp - 0x828], ebx
mov dword [ebp - 0x80c], ebx
jbe 0x1102713
push dword [ebp - 0x820]
push 0x40
call edi
mov dword [ebp - 0x810], eax
cmp dword [ebp - 0x81c], esi
jbe 0x110272b
push dword [ebp - 0x81c]
push 0x40
call edi
mov dword [ebp - 0x808], eax
cmp dword [ebp - 0x810], ebx
je 0x1102840
cmp dword [ebp - 0x808], ebx
je 0x1102826
push dword [ebp - 0x810]
push dword [ebp - 0x820]
push ebx
push dword [ebp - 0x830]
call sub.VERSION.dll_GetFileVersionInfoA
cmp eax, ebx
mov dword [ebp - 0x80c], eax
je 0x1102826
push dword [ebp - 0x808]
push dword [ebp - 0x81c]
push ebx
push dword [ebp - 0x834]
call sub.VERSION.dll_GetFileVersionInfoA
cmp eax, ebx
mov dword [ebp - 0x80c], eax
je 0x1102826
lea eax, [ebp - 0x818]
push eax
lea eax, [ebp - 0x824]
push eax
mov esi, 0x100ae84
push esi
push dword [ebp - 0x810]
mov dword [ebp - 0x818], ebx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x1102820
cmp dword [ebp - 0x818], ebx
je 0x1102820
lea eax, [ebp - 0x814]
push eax
lea eax, [ebp - 0x828]
push eax
push esi
push dword [ebp - 0x808]
mov dword [ebp - 0x814], ebx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x1102820
cmp dword [ebp - 0x814], ebx
je 0x1102820
mov ecx, dword [ebp - 0x818]
cmp dword [ebp - 0x814], ecx
jne 0x1102820
mov edi, dword [ebp - 0x828]
mov esi, dword [ebp - 0x824]
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x1102811
sbb eax, eax
sbb eax, 0xffffffff
xor ecx, ecx
cmp eax, ebx
sete cl
mov dword [ebp - 0x80c], ecx
jmp 0x1102826
mov dword [ebp - 0x80c], ebx
lea eax, [ebp - 0x804]
cmp eax, dword [ebp - 0x810]
je 0x1102840
push dword [ebp - 0x810]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
cmp dword [ebp - 0x808], ebx
pop edi
je 0x1102863
lea eax, [ebp - 0x404]
cmp eax, dword [ebp - 0x808]
je 0x1102863
push dword [ebp - 0x808]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 0x80c]
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.0105ec09
leave
ret 8
Function at 0x110287c
Capabilities:
Check if file exists
Copy file
Get common file path
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x324
mov eax, dword [0x111121c]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpynA]
push esi
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov esi, 0x105
push esi
push eax
lea eax, [ebp - 0x10c]
push eax
mov dword [ebp - 0x324], ecx
call ebx
push 0x2e
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.SHLWAPI.dll_StrChrA]
test eax, eax
jne 0x11028da
push esi
push 0x102882c
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCatBuffA]
lea ecx, [ebp - 0x320]
push ecx
lea ecx, [ebp - 0x214]
push ecx
xor eax, eax
mov esi, 0x104
push esi
push eax
lea ecx, [ebp - 0x10c]
push ecx
push eax
mov dword [ebp - 0x320], eax
call dword [sym.imp.KERNEL32.dll_SearchPathA]
test eax, eax
je 0x11029d7
cmp eax, esi
ja 0x11029d7
mov eax, dword [ebp - 0x320]
mov byte [eax - 1], 0
lea eax, [ebp - 0x31c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x1102957
cmp eax, esi
ja 0x1102957
lea eax, [ebp - 0x31c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1102957
test al, 0x10
je 0x1102957
test ax, 0x1007
lea eax, [ebp - 0x31c]
je 0x110295c
mov eax, 0x1028828
push dword [ebp - 0x320]
push eax
push 0x1026a08
push dword [ebp + 0x10]
push edi
call dword [sym.imp.SHLWAPI.dll_wnsprintfA]
mov eax, dword [ebp - 0x320]
add esp, 0x14
push 0x2e
push 0
push edi
mov byte [eax - 1], 0x5c
call dword [sym.imp.SHLWAPI.dll_StrRChrA]
test eax, eax
jne 0x110299f
push dword [ebp + 0x10]
push 0x1028820
push edi
call dword [sym.imp.SHLWAPI.dll_StrCatBuffA]
jmp 0x11029af
mov ecx, edi
sub ecx, eax
add ecx, dword [ebp + 0x10]
push ecx
push 0x1028820
push eax
call ebx
mov ecx, dword [ebp - 0x324]
push edi
lea eax, [ebp - 0x214]
push eax
call fcn.01102667
test eax, eax
jne 0x11029d9
push eax
push edi
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
jmp 0x11029d9
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0105ec09
leave
ret 0xc