joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1009c540
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100b5ac8
mov eax, dword fs:[0]
push eax
sub esp, 0xbc
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
movzx eax, byte [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
call fcn.10005190
push eax
mov ecx, dword [ebp + 8]
call fcn.10005190
push eax
push 0x100bf618
push 0xed
push 0x100bf688
call fcn.10095c20
add esp, 0x18
mov ecx, dword [ebp + 8]
push ecx
push 0x100bf614
lea edx, [ebp - 0x58]
push edx
call fcn.1009cfa0
add esp, 0xc
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x64], eax
mov dword [ebp - 4], 0
push 0x100bf610
mov edx, dword [ebp - 0x64]
lea ecx, [ebp - 0x28]
call fcn.1003f750
add esp, 4
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x58]
call fcn.10004eb0
mov ecx, dword [ebp + 0xc]
call fcn.10019740
movzx ecx, al
test ecx, ecx
jne 0x1009c626
mov edx, dword [ebp + 0xc]
push edx
push 0x100bf70c
lea eax, [ebp - 0x40]
push eax
call fcn.1009cfa0
add esp, 0xc
mov dword [ebp - 0x6c], eax
mov ecx, dword [ebp - 0x6c]
mov dword [ebp - 0x80], ecx
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x80]
push edx
lea ecx, [ebp - 0x28]
call fcn.100120a0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x40]
call fcn.10004eb0
mov dword [ebp - 0xc8], 0
push 0x40
push 0
lea eax, [ebp - 0xc4]
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
mov dword [ebp - 0xc8], 0x44
mov dword [ebp - 0xc4], 0
mov dword [ebp - 0xc0], 0
mov dword [ebp - 0xbc], 0
mov dword [ebp - 0x9c], 1
movzx ecx, byte [ebp + 0x10]
test ecx, ecx
je 0x1009c686
mov dword [ebp - 0x5c], 5
jmp 0x1009c68d
mov dword [ebp - 0x5c], 0
mov dx, word [ebp - 0x5c]
mov word [ebp - 0x98], dx
xor eax, eax
mov word [ebp - 0x96], ax
mov dword [ebp - 0x94], 0
mov dword [ebp - 0x7c], 0
xor ecx, ecx
mov dword [ebp - 0x78], ecx
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0x70], ecx
lea edx, [ebp - 0x7c]
push edx
lea eax, [ebp - 0xc8]
push eax
push 0
push 0
push 0x10
push 0
push 0
push 0
lea ecx, [ebp - 0x28]
call fcn.10005190
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x1009c722
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x100bf710
push 0x100
push str.utility::process::create
call fcn.10095c20
add esp, 0x10
mov dword [ebp - 0x60], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.10004eb0
mov eax, dword [ebp - 0x60]
jmp 0x1009c758
mov ecx, dword [ebp - 0x78]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp + 0x14], 0
je 0x1009c73a
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp - 0x74]
mov dword [edx], eax
mov ecx, dword [ebp - 0x7c]
mov dword [ebp - 0x84], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.10004eb0
mov eax, dword [ebp - 0x84]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100ab974
mov esp, ebp
pop ebp
ret
Function at 0x1009c780
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
push eax
push 0
push 0x100001
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x1009c7c6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, dword [ebp + 8]
push ecx
push str.kill32_h_is_null_pid___d_error___d
push 0x10f
push str.utility::process::kill32
call fcn.10095c20
add esp, 0x14
xor al, al
jmp 0x1009c81a
push 0xffffffffffffffff
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x1009c7fd
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [ebp + 8]
push eax
push str.kill32_progress_failed_pid___d_lasterror___d
push 0x115
push 0x100bf760
call fcn.10095c20
add esp, 0x14
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0xc], 0
je 0x1009c813
mov byte [ebp - 1], 1
jmp 0x1009c817
mov byte [ebp - 1], 0
mov al, byte [ebp - 1]
mov esp, ebp
pop ebp
ret

Function at 0x1009c820
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
push eax
push 0
push 0x100001
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x1009c869
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, dword [ebp + 8]
push ecx
push str.killEx_h_is_null_pid___d_error___d
push 0x120
push 0x100bf884
call fcn.10095c20
add esp, 0x14
xor al, al
jmp 0x1009c92e
push 0xffffffffffffffff
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x1009c8a2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [ebp + 8]
push eax
push str.killEx_progress_failed_pid___d_lasterror___d
push 0x126
push 0x100bf7e4
call fcn.10095c20
add esp, 0x14
jmp 0x1009c911
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x102
je 0x1009c8cc
cmp dword [ebp - 0x10], 0xffffffff
je 0x1009c8ec
jmp 0x1009c911
push str.killEx_timeout___
push 0x133
push str.utility::process::killEx
call fcn.10095c20
add esp, 0xc
mov dword [ebp - 0xc], 0
jmp 0x1009c911
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.killEx_failed____lastError___d
push 0x137
push 0x100bf900
call fcn.10095c20
add esp, 0x10
mov dword [ebp - 0xc], 0
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0xc], 0
je 0x1009c927
mov byte [ebp - 1], 1
jmp 0x1009c92b
mov byte [ebp - 1], 0
mov al, byte [ebp - 1]
mov esp, ebp
pop ebp
ret
Function at 0x1009cb20
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100b5b48
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea ecx, [ebp - 0x58]
call fcn.1009d090
mov dword [ebp - 4], 0
push str.tskill.exe
lea ecx, [ebp - 0x28]
call fcn.10004da0
mov byte [ebp - 4], 1
mov edx, dword [ebp + 8]
lea ecx, [ebp - 0x40]
call fcn.1008c4b0
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x48], eax
mov byte [ebp - 4], 2
mov ecx, dword [ebp + 0xc]
push ecx
push 0
mov edx, dword [ebp - 0x48]
push edx
lea eax, [ebp - 0x28]
push eax
call fcn.1009c430
add esp, 0x10
mov byte [ebp - 0x41], al
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.10004eb0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.10004eb0
movzx ecx, byte [ebp - 0x41]
test ecx, ecx
jne 0x1009cc0e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.tskill.exe_error_lastError___d
push 0x198
push str.utility::process::kill
call fcn.10095c20
add esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x1009cc0e
cmp dword [ebp + 0xc], 0xffffffff
jne 0x1009cbf5
push 0x2710
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1009cbff
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp + 8]
push eax
call fcn.1009c780
add esp, 4
mov byte [ebp - 0x41], al
mov cl, byte [ebp - 0x41]
mov byte [ebp - 0x42], cl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
call fcn.1009d060
mov al, byte [ebp - 0x42]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100ab974
mov esp, ebp
pop ebp
ret
Function at 0x1009cc40
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100b5b78
mov eax, dword fs:[0]
push eax
sub esp, 0x258
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov dword [ebp - 0x25c], eax
cmp dword [ebp - 0x25c], 0xffffffff
jne 0x1009ccb3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x264], eax
mov eax, dword [ebp - 0x264]
push eax
push str.create_tool_help_snapshot_failed__err___d
push 0x200
push 0x100bfeac
call fcn.10095c20
add esp, 0x10
jmp 0x1009cd75
mov dword [ebp - 0x258], 0x22c
lea ecx, [ebp - 0x258]
push ecx
mov edx, dword [ebp - 0x25c]
push edx
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x1009cd0e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x260], eax
mov eax, dword [ebp - 0x260]
push eax
push str.process32First_failed__err___d
push 0x20d
push str.utility::process::enumProcess
call fcn.10095c20
add esp, 0x10
mov ecx, dword [ebp - 0x25c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1009cd75
lea ecx, [ebp - 0x2c]
call fcn.1009cd90
mov dword [ebp - 4], 0
lea edx, [ebp - 0x234]
push edx
lea ecx, [ebp - 0x2c]
call fcn.10004ee0
mov eax, dword [ebp - 0x250]
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x2c]
push ecx
mov ecx, dword [ebp + 8]
call fcn.100804f0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.10004eb0
lea edx, [ebp - 0x258]
push edx
mov eax, dword [ebp - 0x25c]
push eax
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x1009cd0e
mov ecx, dword [ebp - 0x25c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100ab974
mov esp, ebp
pop ebp
ret
Function at 0x1009d090
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov dword [eax], 0
mov ecx, dword [ebp - 4]
mov dword [ecx + 4], 0
mov edx, dword [ebp - 4]
mov dword [edx + 8], 0
push str.GetNativeSystemInfo
push str.kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x1009d0df
lea eax, [ebp - 0x2c]
push eax
call dword [ebp - 8]
jmp 0x1009d0e9
lea ecx, [ebp - 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
movzx edx, word [ebp - 0x2c]
cmp edx, 9
je 0x1009d0fb
movzx eax, word [ebp - 0x2c]
cmp eax, 6
jne 0x1009d14a
push str.Wow64DisableWow64FsRedirection
push str.kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 4]
mov dword [ecx + 4], eax
push str.Wow64RevertWow64FsRedirection
push str.kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, dword [ebp - 4]
mov dword [edx + 8], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
je 0x1009d14a
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x1009d3c0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov dword [eax + 0xc], ecx
mov edx, dword [ebp - 4]
cmp dword [edx + 8], 0
jne 0x1009d3fd
mov eax, dword [ebp - 4]
add eax, 4
push eax
push 0
mov ecx, dword [ebp - 4]
push ecx
push 0x1009d5a0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edx, dword [ebp - 4]
mov dword [edx + 8], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 8], 0
je 0x1009d40f
mov dword [ebp - 8], 1
jmp 0x1009d416
mov dword [ebp - 8], 0
mov al, byte [ebp - 8]
mov esp, ebp
pop ebp
ret 4
Function at 0x100a1410
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100b60f0
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x44], ecx
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp + 0x10]
mov dword [eax + 0x54], ecx
push 0
push 0
push 0
push 0
push 0x100c07dc
call dword [sym.imp.WININET.dll_InternetOpenW]
mov edx, dword [ebp - 0x44]
mov dword [edx], eax
mov eax, dword [ebp - 0x44]
cmp dword [eax], 0
jne 0x100a1475
push 0
mov ecx, dword [ebp - 0x44]
call fcn.100a17a0
xor al, al
jmp 0x100a155b
lea ecx, [ebp - 0x28]
call fcn.10009300
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.10009300
mov byte [ebp - 4], 1
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x40]
push edx
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x28]
push ecx
call fcn.100a1b00
add esp, 0x10
movzx edx, al
test edx, edx
jne 0x100a14dd
push 1
mov ecx, dword [ebp - 0x44]
call fcn.100a17a0
mov byte [ebp - 0x45], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.10004eb0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.10004eb0
mov al, byte [ebp - 0x45]
jmp 0x100a155b
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0x44]
add ecx, 4
call fcn.1000fdf0
mov ecx, dword [ebp - 0x44]
mov dx, word [ebp - 0x4c]
mov word [ecx + 0x1c], dx
lea eax, [ebp - 0x40]
push eax
mov ecx, dword [ebp - 0x44]
add ecx, 0x20
call fcn.1000fdf0
mov ecx, dword [ebp + 0xc]
push ecx
mov ecx, dword [ebp - 0x44]
add ecx, 0x38
call fcn.1000fdf0
push 8
push str.https:__
mov ecx, dword [ebp + 8]
call fcn.10005190
push eax
call dword [sym.imp.MSVCR120.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x100a1539
mov edx, dword [ebp - 0x44]
mov byte [edx + 0x50], 1
mov byte [ebp - 0x46], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.10004eb0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.10004eb0
mov al, byte [ebp - 0x46]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100ab974
mov esp, ebp
pop ebp
ret 0xc

Function at 0x100a1920
Capabilities:
Connect to http server

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], ecx
mov dword [ebp - 8], 1
mov eax, dword [ebp - 8]
push eax
push 0
push 3
push 0
push 0
movzx ecx, word [ebp + 0x10]
push ecx
mov ecx, dword [ebp + 0xc]
call fcn.10005190
push eax
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.WININET.dll_InternetConnectW]
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
mov edx, dword [ebp - 4]
cmp dword [edx], 0
jne 0x100a1965
xor al, al
jmp 0x100a1967
mov al, 1
mov esp, ebp
pop ebp
ret 0xc
Function at 0x100a1a20
Capabilities:
Get http content length

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], 0
mov dword [ebp - 8], 4
push 0
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 4]
push ecx
push 0x20000013
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
jne 0x100a1a5b
xor al, al
jmp 0x100a1aa4
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 4]
mov dword [ecx], edx
mov dword [ebp - 4], 0
mov dword [ebp - 8], 4
mov eax, dword [ebp + 0xc]
mov dword [eax], 0xffffffff
push 0
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 4]
push edx
push 0x20000005
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x100a1aa2
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
mov dword [edx], eax
mov al, 1
mov esp, ebp
pop ebp
ret 8

Function at 0x100a1b00
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x240
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
mov word [ebp - 0x204], ax
push 0x1fe
push 0
lea ecx, [ebp - 0x202]
push ecx
call sub.MSVCR120.dll_memset
add esp, 0xc
mov dword [ebp - 0x240], 0
push 0x38
push 0
lea edx, [ebp - 0x23c]
push edx
call sub.MSVCR120.dll_memset
add esp, 0xc
mov dword [ebp - 0x240], 0x3c
lea eax, [ebp - 0x204]
mov dword [ebp - 0x230], eax
mov dword [ebp - 0x22c], 0xff
mov dword [ebp - 0x210], 1
lea ecx, [ebp - 0x240]
push ecx
push 0
mov ecx, dword [ebp + 0x14]
call fcn.10003650
push eax
mov ecx, dword [ebp + 0x14]
call fcn.10005190
push eax
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
jne 0x100a1ba2
xor al, al
jmp 0x100a1bcf
mov edx, dword [ebp - 0x230]
push edx
mov ecx, dword [ebp + 8]
call fcn.10004ee0
mov eax, dword [ebp + 0xc]
mov cx, word [ebp - 0x228]
mov word [eax], cx
mov edx, dword [ebp - 0x214]
push edx
mov ecx, dword [ebp + 0x10]
call fcn.10004ee0
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100ab974
mov esp, ebp
pop ebp
ret
Function at 0x100a21f0
Capabilities:
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100b6256
mov eax, dword fs:[0]
push eax
sub esp, 0x22c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
mov dword [ebp - 0x238], 0
push 0x206
push eax
mov word [ebp - 0x21c], ax
lea eax, [ebp - 0x21a]
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
lea eax, [ebp - 0x21c]
push eax
push 0
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
xor eax, eax
mov dword [ebp - 0x220], 7
mov dword [ebp - 0x224], 0
mov word [ebp - 0x234], ax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x21c]
cmp word [ebp - 0x21c], 0
je 0x100a2299
jmp 0x100a2290
add eax, 2
cmp word [eax], 0
jne 0x100a2290
push eax
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x234]
call fcn.1001acc0
push 0x100bbe90
lea edx, [ebp - 0x234]
mov dword [ebp - 4], 1
mov ecx, 0x1010eec0
call fcn.100723f0
add esp, 4
cmp dword [ebp - 0x220], 8
jb 0x100a22e3
push dword [ebp - 0x234]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov eax, 0x1010eec0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.100ab974
mov esp, ebp
pop ebp
ret 4

Function at 0x100a23b0
Capabilities:
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100b62bb
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
mov dword [ebp - 0x224], 0
push 0x206
push eax
mov word [ebp - 0x21c], ax
lea eax, [ebp - 0x21a]
push eax
mov dword [ebp - 0x220], 0x1010eedc
call sub.MSVCR120.dll_memset
add esp, 0xc
lea eax, [ebp - 0x21c]
push eax
push 0
push 0
push 5
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
xor eax, eax
mov dword [0x1010eef0], 7
mov dword [0x1010eeec], 0
mov word [0x1010eedc], ax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x21c]
cmp word [ebp - 0x21c], 0
je 0x100a245a
add eax, 2
cmp word [eax], 0
jne 0x100a2451
push eax
lea eax, [ebp - 0x21c]
mov ecx, 0x1010eedc
push eax
call fcn.1001acc0
mov eax, 0x1010eedc
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.100ab974
mov esp, ebp
pop ebp
ret 4
Function at 0x100a2e30
Capabilities:
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100b6467
mov eax, dword fs:[0]
push eax
sub esp, 0x24c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x21c], ax
lea eax, [ebp - 0x21a]
push eax
mov dword [ebp - 0x250], 0
call sub.MSVCR120.dll_memset
add esp, 0xc
lea eax, [ebp - 0x21c]
push eax
push 0
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
xor eax, eax
mov dword [ebp - 0x220], 7
mov dword [ebp - 0x224], 0
mov word [ebp - 0x234], ax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x21c]
cmp word [ebp - 0x21c], 0
je 0x100a2ed9
lea ecx, [ecx]
add eax, 2
cmp word [eax], 0
jne 0x100a2ed0
push eax
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x234]
call fcn.1001acc0
push str.lddownloader_
lea edx, [ebp - 0x234]
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x24c]
call fcn.100723f0
add esp, 4
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.100a29d0
cmp dword [ebp - 0x238], 8
mov esi, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
jb 0x100a2f31
push dword [ebp - 0x24c]
call esi
add esp, 4
xor eax, eax
mov dword [ebp - 0x238], 7
cmp dword [ebp - 0x220], 8
mov dword [ebp - 0x23c], 0
mov word [ebp - 0x24c], ax
jb 0x100a2f62
push dword [ebp - 0x234]
call esi
add esp, 4
xor eax, eax
mov dword [ebp - 0x220], 7
mov dword [ebp - 0x224], 0
mov word [ebp - 0x234], ax
mov dword [ebp - 4], 3
lea eax, [ebp - 0x21c]
cmp word [ebp - 0x21c], 0
je 0x100a2f9f
add eax, 2
cmp word [eax], 0
jne 0x100a2f96
push eax
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x234]
call fcn.1001acc0
sub esp, 0x18
mov dword [ebp - 4], 4
mov ecx, esp
lea edx, [ebp - 0x234]
push str.lddownloaderlddownloader.log
call fcn.100723f0
add esp, 4
mov ecx, edi
call fcn.100a2a70
add esp, 0x18
cmp dword [ebp - 0x220], 8
jb 0x100a2fef
push dword [ebp - 0x234]
call esi
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.100ab974
mov esp, ebp
pop ebp
ret 4
Function at 0x100a44d0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100b6823
mov eax, dword fs:[0]
push eax
push ecx
push edi
mov eax, dword [section..data]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [edi], 0
mov dword [edi + 4], 0
call fcn.10067ff0
mov dword [edi], eax
push 0
mov dword [ebp - 4], 0
push 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
call fcn.1001a900
mov dword [edi + 8], eax
push 0
mov byte [ebp - 4], 1
push 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
call fcn.1001a900
mov dword [edi + 0x10], eax
lea eax, [edi + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea eax, [edi + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [edi + 0x5c], 7
xor eax, eax
mov dword [edi + 0x58], 0
mov word [edi + 0x48], ax
mov dword [edi + 0x70], eax
mov dword [edi + 0x74], 7
mov word [edi + 0x60], ax
mov dword [edi + 0x88], eax
mov dword [edi + 0x8c], 7
mov word [edi + 0x78], ax
mov dword [edi + 0xa4], eax
mov dword [edi + 0xa8], 7
mov word [edi + 0x94], ax
mov dword [edi + 0xac], eax
mov dword [edi + 0xb0], 0xffffffff
mov dword [edi + 0xb4], eax
mov eax, edi
mov dword [edi + 0xb8], 2
mov dword [edi + 0xbc], 2
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x402fb0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x464020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403048
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403028
xor eax, eax
push ebp
push 0x403021
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x403064
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403028
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x464020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x464020], ax
mov esp, ebp
pop ebp
ret

Function at 0x403d0c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x466048], 0
je 0x403d6d
cmp word [0x46621c], 0xd7b2
jne 0x403d35
cmp dword [0x466224], 0
jbe 0x403d35
mov eax, 0x466218
call dword [0x466234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x46406c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x403d94
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x464030], 0
jne 0x403d89
push 0
push 0x464064
push 0x46406c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret