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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x450
push ebx
push esi
push edi
xor ebx, ebx
push 9
xor eax, eax
cmp dword [ebp + 0xc], ebx
mov word [ebp - 0x40], bx
pop ecx
lea edi, [ebp - 0x3e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
jne 0x10332de
lea eax, [ebp - 0x450]
push eax
push 0x208
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x450]
mov dword [ebp + 0xc], eax
push 0x5c
push dword [ebp + 0xc]
call sub.msvcrt.dll_wcsrchr
cmp eax, ebx
pop ecx
pop ecx
je 0x1033300
cmp word [eax + 2], bx
jne 0x1033300
push 1
push ebx
push eax
call sub.msvcrt.dll__wcsnset
add esp, 0xc
cmp dword [ebp + 0x14], ebx
jne 0x103330c
mov dword [ebp + 0x14], 0x1001ab0
cmp dword [ebp + 0x10], ebx
jne 0x1033318
mov dword [ebp + 0x10], 0x1001848
cmp dword [ebp + 8], ebx
je 0x1033335
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea eax, [ebp - 0x40]
push 0x1006f38
push eax
call sub.msvcrt.dll_swprintf
add esp, 0xc
mov dword [ebp + 8], ebx
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
test eax, eax
je 0x10333f5
mov esi, dword [ebp - 4]
push dword [ebp + 0x14]
mov eax, dword [ebp - 8]
xor edi, edi
shld edi, esi, 0x18
shr eax, 8
xor ecx, ecx
or edi, ecx
push edi
shl esi, 0x18
or esi, eax
push esi
lea eax, [ebp - 0x40]
push eax
push dword [ebp + 0x10]
mov eax, dword [ebp + 0x1c]
push dword [ebp + 0xc]
dec eax
push 0x1006f18
push eax
push dword [ebp + 0x18]
call sub.msvcrt.dll__snwprintf
add esp, 0x24
test eax, eax
jl 0x10333d9
push ebx
push 0x80
push 1
push ebx
push ebx
push 0x40000000
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x10333dd
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x10333c7
cmp eax, 0x50
jne 0x10333f5
inc dword [ebp + 8]
cmp dword [ebp + 8], 0x100
jb 0x1033338
jmp 0x10333e4
push 0x6f
jmp 0x10333ef
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp + 8], 0x100
jne 0x10333fb
push 4
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
xor edx, edx
jmp 0x10333ff
mov eax, esi
mov edx, edi
pop edi
pop esi
pop ebx
leave
ret 0x18
Function at 0x1033422
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x610
push ebx
push esi
push edi
xor ebx, ebx
push 0x7f
xor eax, eax
cmp dword [ebp + 8], ebx
mov word [ebp - 0x408], bx
pop ecx
lea edi, [ebp - 0x406]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
jne 0x103344f
push 0x57
jmp 0x10334bf
push 0x103
push dword [ebp + 8]
lea eax, [ebp - 0x208]
push eax
call sub.msvcrt.dll_wcsncpy
lea eax, [ebp - 0x208]
push 0x5c
push eax
mov word [ebp - 2], bx
call sub.msvcrt.dll_wcschr
add esp, 0x14
test eax, eax
je 0x10334ce
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10334bd
lea eax, [ebp - 0x208]
push eax
call fcn.01033edf
test eax, eax
je 0x10335d7
lea eax, [ebp - 0x610]
push eax
lea eax, [ebp - 0x208]
push eax
call fcn.01033dfa
test eax, eax
jne 0x10335b7
push 2
pop eax
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x10335d0
cmp dword [ebp + 0x10], ebx
je 0x1033502
mov eax, dword [ebp + 0xc]
cmp eax, ebx
je 0x10334ee
cmp word [eax], bx
je 0x10334ee
push 0x104
lea ecx, [ebp - 0x208]
push ecx
push eax
jmp 0x10334fb
push 0x104
lea eax, [ebp - 0x208]
push eax
push ebx
call fcn.01034082
jmp 0x1033513
push 0x104
lea eax, [ebp - 0x208]
push eax
call fcn.01033f79
test eax, eax
jne 0x1033521
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jne 0x10334bd
push dword [ebp + 8]
lea eax, [ebp - 0x208]
push eax
call fcn.01031cfa
lea eax, [ebp - 0x408]
push eax
push ebx
push ebx
lea eax, [ebp - 0x208]
push ebx
push eax
call sub.msvcrt.dll__wsplitpath
lea eax, [ebp - 0x408]
push eax
call sub.msvcrt.dll_wcslen
add esp, 0x18
test eax, eax
jne 0x103356c
lea eax, [ebp - 0x208]
push 0x1006f44
push eax
call sub.msvcrt.dll_wcscat
pop ecx
pop ecx
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
lea eax, [ebp - 0x208]
push eax
call esi
cmp eax, 0xffffffff
jne 0x103348e
lea eax, [ebp - 0x208]
push 0x2e
push eax
call sub.msvcrt.dll_wcschr
cmp eax, ebx
pop ecx
pop ecx
je 0x10334bd
push 0x1001bdc
push eax
call sub.msvcrt.dll_wcscpy
pop ecx
pop ecx
lea eax, [ebp - 0x208]
push eax
call esi
jmp 0x1033489
cmp dword [ebp + 0x14], ebx
je 0x10335cd
lea eax, [ebp - 0x610]
push eax
push dword [ebp + 0x14]
call sub.msvcrt.dll_wcscpy
pop ecx
pop ecx
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0x10
cmp dword [ebp + 0x14], ebx
je 0x10335cd
lea eax, [ebp - 0x208]
jmp 0x10335c2
Function at 0x1033812
Capabilities:
Enumerate services
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
push edi
push 6
pop ecx
xor ebx, ebx
push 0xf003f
push ebx
push dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x2c], ebx
lea edi, [ebp - 0x28]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], ebx
rep stosd dword es:[edi], eax
mov dword [ebp - 8], ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
cmp eax, ebx
mov dword [ebp - 0x10], eax
je 0x103397f
push 0x2c
push dword [ebp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x103397f
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x103397f
xor edi, edi
inc edi
cmp dword [ebp - 0x28], edi
jne 0x1033889
mov dword [ebp - 0xc], edi
jmp 0x103397f
cmp dword [ebp + 0x10], ebx
je 0x103391c
mov esi, dword [sym.imp.ADVAPI32.dll_EnumDependentServicesW]
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp + 0xc]
push eax
push ebx
push ebx
push edi
push dword [ebp - 4]
mov dword [ebp + 0x10], ebx
mov dword [ebp + 0xc], ebx
call esi
test eax, eax
jne 0x10338db
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x103397f
cmp dword [ebp + 0xc], ebx
je 0x103391c
push dword [ebp + 0xc]
call fcn.01031ae1
cmp eax, ebx
mov dword [ebp - 8], eax
je 0x103397f
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 0xc]
push dword [ebp - 8]
push edi
push dword [ebp - 4]
call esi
test eax, eax
je 0x103397f
xor edi, edi
cmp dword [ebp + 0x10], ebx
jbe 0x1033919
mov esi, dword [ebp - 8]
push ebx
push dword [esi]
push dword [ebp + 8]
call fcn.01033812
test eax, eax
je 0x103397f
inc edi
add esi, 0x24
cmp edi, dword [ebp + 0x10]
jb 0x1033901
xor edi, edi
inc edi
lea eax, [ebp - 0x2c]
push eax
push edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x103397f
xor edi, edi
mov esi, 0x3e8
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x103397f
cmp dword [ebp - 0x28], 3
jne 0x103395d
push esi
call dword [sym.imp.KERNEL32.dll_Sleep]
add edi, esi
cmp edi, 0x4e20
jb 0x1033935
xor eax, eax
inc eax
cmp dword [ebp - 0x28], eax
je 0x103397c
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x103397f
push 0x102
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x103397f
mov dword [ebp - 0xc], eax
push dword [ebp - 8]
call fcn.01031b59
cmp dword [ebp - 4], ebx
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
je 0x1033997
push dword [ebp - 4]
call esi
cmp dword [ebp - 0x10], ebx
je 0x10339a1
push dword [ebp - 0x10]
call esi
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x1033f79
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor ebx, ebx
mov edx, 0x82
xor eax, eax
cmp esi, ebx
mov ecx, edx
lea edi, [ebp - 0x212]
mov word [ebp - 0x214], bx
rep stosd dword es:[edi], eax
mov ecx, edx
lea edi, [ebp - 0x41e]
mov word [ebp - 0x420], bx
rep stosd dword es:[edi], eax
mov dword [ebp - 8], 0x20a
je 0x1034051
push 0xf003f
push 1
push 0x1004f98
push 0x80000001
mov word [esi], bx
call fcn.010329c3
mov edi, eax
cmp edi, ebx
je 0x1034051
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 4]
push eax
push ebx
push 0x1006fb4
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov dword [ebp + 8], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp + 8], ebx
jne 0x1034051
cmp dword [ebp - 4], 1
jne 0x1034051
lea eax, [ebp - 0x214]
push eax
push 5
call fcn.01033f29
test eax, eax
je 0x1034051
lea eax, [ebp - 0x420]
push eax
call sub.msvcrt.dll_wcslen
mov edi, eax
lea eax, [ebp - 0x214]
push eax
call sub.msvcrt.dll_wcslen
lea eax, [edi + eax + 1]
cmp eax, dword [ebp + 0xc]
pop ecx
pop ecx
jb 0x103405a
push 0x7a
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
lea eax, [ebp - 0x214]
push eax
push esi
call sub.msvcrt.dll_wcscpy
lea eax, [ebp - 0x420]
push eax
push esi
call sub.msvcrt.dll_wcscat
add esp, 0x10
push esi
call fcn.0103202c
xor eax, eax
inc eax
jmp 0x1034053

Function at 0x40100b
Capabilities:
Query or enumerate registry value

Disassembly:
call 0x40100b
push eax
call sub.KERNEL32.dll_ExitProcess
push ebp
mov ebp, esp
add esp, 0xfffffef0
jmp 0x40109c
lea eax, [ebp - 0x104]
push eax
call fcn.004011ec
push 0x401019
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
jne 0x401165
lea eax, [ebp - 0x10c]
push eax
push 0x20019
push 0
push 0x401038
push 0x80000001
call sub.ADVAPI32.dll_RegOpenKeyExA
cmp eax, 0
jne 0x4011a5
mov dword [ebp - 0x110], 0x103
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x104]
push eax
push 0
push 0
push 0x401052
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegQueryValueExA
push eax
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegCloseKey
pop eax
cmp eax, 0
jne 0x4011a5
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrlenA
lea ebx, [ebp - 0x104]
add ebx, eax
dec ebx
cmp byte [ebx], 0x5c
je 0x40114a
mov word [ebx], 0x5c
push 0x401023
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
je 0x4011a5
mov dword [ebp - 0x108], eax
push 0x40102d
push eax
call sub.KERNEL32.dll_GetProcAddress
test eax, eax
je 0x40119a
push 0x3e8
call eax
test eax, eax
je 0x40119a
call 0x40118a
add dword [esp], 0x1e76
call eax
push 0
call sub.KERNEL32.dll_ExitProcess
push dword [ebp - 0x108]
call sub.KERNEL32.dll_FreeLibrary
push 0x10
push 0x401096
push 0x401057
push 0
call sub.USER32.dll_MessageBoxA
mov eax, 0xffffffff
leave
ret
Function at 0x402790
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x4778e0]
xor eax, ebp
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp + 8]
push ecx
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x4027f4
mov dword [ebp - 0x114], 0
lea edx, [ebp - 0x114]
push edx
lea eax, [ebp - 4]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
mov ecx, dword [ebp + 8]
push ecx
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x4027f4
jmp 0x4028a8
push 0
push 0
push 1
push 0
push str.URL_Protocol
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 4]
push ecx
mov edx, dword [ebp + 0xc]
push edx
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x402863
mov dword [ebp - 0x118], 0
lea eax, [ebp - 0x118]
push eax
lea ecx, [ebp - 4]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
mov edx, dword [ebp + 0xc]
push edx
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x402863
jmp 0x4028a8
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
push str._s_s___1
lea edx, [ebp - 0x110]
push edx
call fcn.0043b2c9
add esp, 0x10
push 0x104
lea eax, [ebp - 0x110]
push eax
push 1
push 0
push 0x46273b
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0043ae10
mov esp, ebp
pop ebp
ret

Function at 0x4028c0
Capabilities:
Create process on windows
Self delete

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
push 0x4629ac
push 0x4629b0
call fcn.0043b8bb
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x402982
push str._echo_off__n
mov eax, dword [ebp - 4]
push eax
call fcn.0043b6db
add esp, 8
push str.:Repeat__n
mov ecx, dword [ebp - 4]
push ecx
call fcn.0043b6db
add esp, 8
mov edx, dword [ebp + 8]
push edx
push str.del__s_n
mov eax, dword [ebp - 4]
push eax
call fcn.0043b6db
add esp, 0xc
mov ecx, dword [ebp + 8]
push ecx
push str.if_exist___s__goto_Repeat__n
mov edx, dword [ebp - 4]
push edx
call fcn.0043b6db
add esp, 0xc
push str.del_a.bat__n
mov eax, dword [ebp - 4]
push eax
call fcn.0043b6db
add esp, 8
push str._echo_on__n
mov ecx, dword [ebp - 4]
push ecx
call fcn.0043b6db
add esp, 8
mov edx, dword [ebp - 4]
push edx
call fcn.0043b65f
add esp, 4
push 0
push 0
push 0x462a0c
push 0x462a10
push 0x462a18
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esp, ebp
pop ebp
ret 4
Function at 0x404090
Capabilities:
Create process on windows
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34c
mov eax, dword [0x4778e0]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x34c], ecx
mov eax, dword [ebp - 0x34c]
movzx ecx, byte [eax + 0xa5d]
test ecx, ecx
je 0x404132
mov edx, dword [ebp - 0x34c]
add edx, 0x7c
push edx
push str.2__s
push 0x100
lea eax, [ebp - 0x108]
push eax
call fcn.0043ba10
add esp, 0x10
push 1
push 0
lea ecx, [ebp - 0x108]
push ecx
mov edx, dword [ebp - 0x34c]
add edx, 0x284
push edx
push 0x4630f0
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
push 1
mov ecx, dword [ebp - 0x34c]
add ecx, 0x4b0
call fcn.004105b0
mov eax, dword [ebp - 0x34c]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x34c]
mov eax, dword [edx + 0x60]
call eax
jmp 0x40421f
mov ecx, dword [ebp - 0x34c]
add ecx, 0x7c
push ecx
mov ecx, dword [ebp - 0x34c]
add ecx, 0x4b0
call fcn.00404300
push eax
push str._d__s
push 0x100
lea edx, [ebp - 0x208]
push edx
call fcn.0043ba10
add esp, 0x14
lea eax, [ebp - 0x348]
push eax
push 0x463100
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x404191
mov ecx, dword [ebp - 0x34c]
add ecx, 0x180
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov edx, dword [ebp - 0x34c]
add edx, 0x180
push edx
push 0x463108
call dword [sym.imp.KERNEL32.dll_MoveFileA]
push 1
push 0
lea eax, [ebp - 0x208]
push eax
mov ecx, dword [ebp - 0x34c]
add ecx, 0x180
push ecx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov edx, dword [ebp - 0x34c]
mov eax, dword [edx + 0x394]
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x463118
mov ecx, dword [ebp - 0x34c]
add ecx, 0x180
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileA]
push 1
mov ecx, dword [ebp - 0x34c]
add ecx, 0x4b0
call fcn.004105b0
mov edx, dword [ebp - 0x34c]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x34c]
mov edx, dword [eax + 0x60]
call edx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043ae10
mov esp, ebp
pop ebp
ret
Function at 0x40d2d0
Capabilities:
Get common file path

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x40d2e8
push eax
push 0x474250
call fcn.0040dc10
add esp, 8
jmp 0x40d2f8
push 0x474250
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push 0x474250
call fcn.0040dbf0
add esp, 4
cmp byte [eax + 0x47424f], 0x5c
jne 0x40d315
mov byte [eax + 0x47424f], 0
push 0x474250
push str.RootPath___s
call fcn.0040dd10
add esp, 8
ret

Function at 0x40d780
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi]
cmp eax, 0xffffffff
jne 0x40d790
xor eax, eax
pop esi
ret 8
mov edx, dword [esp + 0xc]
push 0
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x10]
push edx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0xc]
add dword [esi + 8], eax
pop esi
ret 8

Function at 0x40d7c0
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi]
cmp eax, 0xffffffff
jne 0x40d7d0
xor eax, eax
pop esi
ret 8
mov edx, dword [esp + 0xc]
push 0
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x10]
push edx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 0xc]
add dword [esi + 8], eax
pop esi
ret 8

Function at 0x40d900
Capabilities:
Set file attributes

Disassembly:
sub esp, 0x108
mov eax, dword [0x4778e0]
xor eax, esp
mov dword [esp + 0x104], eax
push esi
mov esi, ecx
mov eax, dword [esi]
push edi
mov edi, dword [esp + 0x114]
cmp eax, 0xffffffff
je 0x40d941
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0xffffffff
mov dword [esi + 4], 0
mov dword [esi + 8], 0
lea eax, [esp + 8]
push edi
push eax
call fcn.0040d380
add esp, 8
push 0x80
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
lea edx, [esp + 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov dword [esi], eax
pop edi
pop esi
mov eax, ecx
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.0043ae10
add esp, 0x108
ret 4

Function at 0x40eec0
Capabilities:
Read file on windows

Disassembly:
mov eax, ecx
mov ecx, dword [eax + 0x804]
shl ecx, 6
add ecx, eax
jmp 0x40f120
add ecx, 8
jmp fcn.0040d780
Function at 0x412cc0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
add eax, 8
push eax
push 0
mov ecx, dword [ebp - 4]
push ecx
push 0x412c40
push 0
push 0
call fcn.0043e106
add esp, 0x18
mov edx, dword [ebp - 4]
mov dword [edx + 0xc], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 0xc], 0
je 0x412d04
mov ecx, dword [ebp - 4]
mov byte [ecx + 0x10], 0
mov edx, dword [ebp - 4]
mov byte [edx + 4], 0
jmp 0x412d12
mov eax, dword [ebp - 4]
mov byte [eax + 0x10], 1
mov ecx, dword [ebp - 4]
mov byte [ecx + 4], 1
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0xc]
mov esp, ebp
pop ebp
ret

Function at 0x412d20
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
movzx ecx, byte [eax + 4]
test ecx, ecx
jne 0x412d3b
mov edx, dword [ebp - 4]
cmp dword [edx + 0xc], 0
jne 0x412d3f
xor al, al
jmp 0x412d8e
movzx eax, byte [ebp + 8]
test eax, eax
je 0x412d5f
mov ecx, dword [ebp - 4]
mov byte [ecx + 0x10], 1
push 0xffffffffffffffff
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x412d75
push 0
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [ebp - 4]
mov byte [eax + 4], 1
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
mov dword [eax + 0xc], 0
mov al, 1
mov esp, ebp
pop ebp
ret 4

Function at 0x418810
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
cmp dword [eax + 0xc], 0
je 0x418834
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 8]
call fcn.00418cd0
jmp 0x418860
mov eax, dword [ebp - 8]
cmp dword [eax + 4], 0
jne 0x418841
xor eax, eax
jmp 0x418860
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 4]
push edx
mov eax, dword [ebp + 0xc]
push eax
push 1
mov ecx, dword [ebp + 8]
push ecx
call fcn.0043e456
add esp, 0x10
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 8

Function at 0x418870
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
cmp dword [eax + 0xc], 0
je 0x418894
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 8]
call fcn.00418d20
jmp 0x4188c0
mov eax, dword [ebp - 8]
cmp dword [eax + 4], 0
jne 0x4188a1
xor eax, eax
jmp 0x4188c0
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 4]
push edx
mov eax, dword [ebp + 0xc]
push eax
push 1
mov ecx, dword [ebp + 8]
push ecx
call fcn.0043e5d5
add esp, 0x10
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 8
Function at 0x4189e0
Capabilities:
Connect to http server
Create http request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x520
mov eax, dword [0x4778e0]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x520], ecx
mov ecx, dword [ebp - 0x520]
call fcn.00418b60
mov eax, dword [0x47e648]
add eax, 1
mov dword [0x47e648], eax
mov ecx, dword [0x47e648]
push ecx
push str.XII_Update_d
push 0x100
lea edx, [ebp - 0x108]
push edx
call fcn.0043ba10
add esp, 0x10
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.WININET.dll_InternetOpenA]
mov ecx, dword [ebp - 0x520]
mov dword [ecx + 0xc], eax
mov edx, dword [ebp - 0x520]
cmp dword [edx + 0xc], 0
jne 0x418a62
xor al, al
jmp 0x418b41
mov dword [ebp - 0x10c], 0
jmp 0x418a7d
mov eax, dword [ebp - 0x10c]
add eax, 1
mov dword [ebp - 0x10c], eax
mov ecx, dword [ebp - 0x520]
mov edx, dword [ebp - 0x10c]
cmp edx, dword [ecx + 8]
jge 0x418b3f
mov eax, dword [ebp - 0x520]
push eax
push 0x8000000
push 1
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0x10]
push edx
movzx eax, word [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x520]
mov eax, dword [edx + 0xc]
push eax
call dword [sym.imp.WININET.dll_InternetConnectA]
mov ecx, dword [ebp - 0x520]
mov dword [ecx + 0x10], eax
mov edx, dword [ebp - 0x520]
cmp dword [edx + 0x10], 0
je 0x418ada
mov al, 1
jmp 0x418b41
mov byte [ebp - 0x510], 0
push 0x3ff
push 0
lea eax, [ebp - 0x50f]
push eax
call fcn.0043a9b0
add esp, 0xc
mov dword [ebp - 0x51c], 0x400
lea ecx, [ebp - 0x51c]
push ecx
lea edx, [ebp - 0x510]
push edx
lea eax, [ebp - 0x518]
push eax
call dword [sym.imp.WININET.dll_InternetGetLastResponseInfoA]
mov dword [ebp - 0x514], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x518], eax
mov ecx, dword [ebp - 0x518]
mov dword [ebp - 0x518], ecx
jmp 0x418a6e
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043ae10
mov esp, ebp
pop ebp
ret 0x10

Function at 0x418cd0
Capabilities:
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
cmp dword [eax + 0x14], 0
jne 0x418ce6
xor eax, eax
jmp 0x418d11
lea ecx, [ebp - 4]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x14]
push edx
call dword [sym.imp.WININET.dll_InternetReadFile]
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x18]
add ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov dword [edx + 0x18], ecx
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 8

Function at 0x418d20
Capabilities:
Send data

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
cmp dword [eax + 0x14], 0
jne 0x418d36
xor eax, eax
jmp 0x418d61
lea ecx, [ebp - 4]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x14]
push edx
call dword [sym.imp.WININET.dll_InternetWriteFile]
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x18]
add ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov dword [edx + 0x18], ecx
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 8