joyce8/EMBER2024-capa huggingface dataset:
Function at 0x101a0c80
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x10250150]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
mov dword [esi + 0x218], 0
cmp dword [0x10259c04], 0
je 0x101a0e3a
cmp dword [0x1025a35c], 0
je 0x101a0e3a
mov eax, dword [0x1025a378]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_TlsSetValue]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 0xffffffff
je 0x101a0d15
cmp dword [0x1025a37c], 0xffffffff
je 0x101a0d15
push eax
mov dword [ebp - 0x210], 0
call edi
test eax, eax
jne 0x101a0d15
mov eax, dword [0x1025a380]
test eax, eax
je 0x101a0d15
lea ecx, [ebp - 0x210]
push ecx
call eax
push eax
push dword [0x1025a378]
call ebx
push dword [ebp - 0x210]
push dword [0x1025a37c]
call ebx
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.102134e7
add esp, 0xc
call fcn.100e9430
test eax, eax
je 0x101a0d5e
push 0x20019
push 0x208
lea eax, [ebp - 0x20c]
push eax
push 2
push str.52A4F021_7B75_48A9_9F6B_4B87A210BC8F
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerUser_Shell_Folders
push SysReAllocString
call fcn.10187690
add esp, 0x1c
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jne 0x101a0da3
lea eax, [ebp - 0x20c]
push eax
push 0x1a
call fcn.1000aa60
add esp, 8
test eax, eax
je 0x101a0da3
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x80]
push str.MicrosoftInternet_ExplorerQuick_Launch_
mov byte [eax], 0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov eax, dword [esi]
lea ecx, [ebp - 0x20c]
push 0
push dword [0x10259c14]
push ecx
mov ecx, esi
call dword [eax + 0x5c]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x84]
call fcn.100e9610
test eax, eax
je 0x101a0de4
push 0
push 0
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
call fcn.101a0e50
mov dword [esi + 0x218], eax
mov eax, dword [0x1025a378]
cmp eax, 0xffffffff
je 0x101a0e24
cmp dword [0x1025a37c], 0xffffffff
je 0x101a0e24
push eax
call edi
test eax, eax
je 0x101a0e24
cmp dword [0x1025a384], 0
je 0x101a0e24
push dword [0x1025a37c]
call edi
push eax
call dword [0x1025a384]
neg eax
sbb eax, eax
inc eax
push eax
push dword [0x1025a378]
call ebx
pop edi
pop ebx
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10212f74
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.10212f74
mov esp, ebp
pop ebp
ret
Function at 0x101a22c0
Capabilities:
Check os version
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x10250150]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x10259fa8
mov dword [0x10259fa8], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x101a2388
push 0x40
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.102134e7
add esp, 0xc
mov dword [ebp - 0x4c], 1
lea eax, [ebp - 0x48]
mov dword [ebp - 0x48], 0x40
push eax
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x4c]
push eax
push str.CurrentVersion
push str.SOFTWAREMicrosoftWindows_NTCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x101a235b
movsx eax, byte [ebp - 0x44]
sub eax, 0x30
mov dword [0x10259fb8], 2
mov dword [0x10259fac], eax
lea eax, [ebp - 0x42]
push eax
call fcn.1021369d
mov ecx, eax
add esp, 4
mov dword [0x10259fb0], ecx
jmp 0x101a238e
push ebx
call dword [sym.imp.KERNEL32.dll_GetVersion]
movzx ecx, ax
mov bl, 4
shr ecx, 8
cmp bl, al
movzx edx, al
sbb eax, eax
mov dword [0x10259fac], edx
neg eax
mov dword [0x10259fb0], ecx
inc eax
mov dword [0x10259fb8], eax
pop ebx
jmp 0x101a2394
mov ecx, dword [0x10259fb0]
mov edx, dword [0x10259fac]
cmp edx, 6
ja 0x101a23a0
jne 0x101a23c2
cmp ecx, 2
jb 0x101a23c2
push str.RtlGetVersion
push 0x1021b650
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x101a23c2
push 0x10259fa8
call eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10212f74
mov esp, ebp
pop ebp
ret
Function at 0x101c7d20
Capabilities:
Check if file exists
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x250
mov eax, dword [0x10250150]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
push 0x208
mov dword [ebp - 0x214], eax
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.102134e7
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push str...360DeskAna64.exe
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea eax, [ebp - 0x20c]
push eax
call edi
test eax, eax
je 0x101c7f38
mov eax, dword [ebp + 8]
cmp eax, 0x80000000
jne 0x101c7da6
mov esi, str.HKCR
jmp 0x101c7dd2
cmp eax, 0x80000001
jne 0x101c7db4
mov esi, 0x10226584
jmp 0x101c7dd2
cmp eax, reloc.OLEAUT32.dll_SysReAllocString
jne 0x101c7dc2
mov esi, str.HKLM
jmp 0x101c7dd2
cmp eax, 0x80000003
jne 0x101c7f38
mov esi, 0x1022659c
call fcn.10003980
mov ecx, eax
test ecx, ecx
je 0x101c7f4d
mov eax, dword [ecx]
call dword [eax + 0xc]
push dword [ebp - 0x214]
add eax, 0x10
push ebx
push esi
mov dword [ebp - 0x210], eax
lea eax, [ebp - 0x210]
push str.setowner_reg__s___s____s_
push eax
call fcn.10004de0
mov esi, dword [ebp - 0x210]
lea eax, [ebp - 0x20c]
push eax
mov dword [ebp - 0x248], 0
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x230], 0
mov dword [ebp - 0x22c], 0
mov dword [ebp - 0x228], 0
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0
mov dword [ebp - 0x218], 0
mov dword [ebp - 0x250], 0x3c
mov dword [ebp - 0x24c], 0x40
mov dword [ebp - 0x244], str.open
mov dword [ebp - 0x240], eax
mov dword [ebp - 0x23c], esi
mov dword [ebp - 0x234], 0
call fcn.1001d810
add esp, 0x18
test eax, eax
jne 0x101c7ed6
lea eax, [ebp - 0x20c]
push eax
call edi
test eax, eax
je 0x101c7ef1
push 1
lea eax, [ebp - 0x20c]
push 0x1024d040
push eax
call fcn.10035520
add esp, 0xc
xor edi, edi
jmp 0x101c7f0b
or dword [ebp - 0x24c], 0x1000
lea eax, [ebp - 0x250]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x101c7ef5
xor edi, edi
jmp 0x101c7f0b
push 0x1f4
push dword [ebp - 0x218]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edi, 1
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x101c7f23
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10212f74
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10212f74
mov esp, ebp
pop ebp
ret 0xc
push 0x80004005
call fcn.100030c0
int3
Function at 0x101ca840
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [0x1024e5ec]
test ecx, ecx
je 0x101ca8aa
cmp ecx, 2
ja 0x101ca8aa
mov eax, dword [ebp + 8]
test eax, eax
je 0x101ca8aa
mov edx, dword [ebp + 0xc]
test edx, edx
je 0x101ca8aa
cmp ecx, 2
jne 0x101ca886
test edx, edx
jle 0x101ca8aa
lea esp, [esp]
movzx ecx, byte [eax]
lea eax, [eax + 1]
mov cl, byte [ecx + 0x1024e4e8]
mov byte [eax - 1], cl
sub edx, 1
jne 0x101ca870
pop ebp
ret
cmp ecx, 1
jne 0x101ca8aa
push ebx
mov bl, byte [ebp + 0x10]
test edx, edx
jle 0x101ca8a9
movzx ecx, byte [eax]
lea eax, [eax + 1]
mov cl, byte [ecx + 0x1024e4e8]
xor cl, bl
mov byte [eax - 1], cl
sub edx, 1
jne 0x101ca893
pop ebx
pop ebp
ret

Function at 0x101cbad0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x101cbc29
mov ebx, dword [ebp + 0x10]
test ebx, ebx
je 0x101cbc29
cmp dword [ebp + 0x14], 0
je 0x101cbc29
push 0x10219d7c
lea ecx, [ebp - 8]
call fcn.10004700
push 0x1025abd4
push 0x20a
mov dword [ebp + 0xc], 0x104
mov dword [ebp - 4], 1
call fcn.101e2340
mov esi, eax
add esp, 8
test esi, esi
je 0x101cbbf4
mov ecx, dword [ebp + 0xc]
lea ecx, [ecx*2 + 2]
push ecx
push 0
push esi
call fcn.102134e7
mov eax, dword [ebp + 0xc]
add esp, 0xc
add eax, eax
mov dword [ebp + 0xc], eax
lea eax, [ebp + 0xc]
push eax
push esi
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x14]
push ebx
push edi
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
cmp eax, 0xea
jne 0x101cbbc9
push esi
call fcn.10213517
mov eax, dword [ebp + 0xc]
xor ecx, ecx
inc eax
mov edx, 2
mul edx
push 0x1025abd4
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.101e2340
mov esi, eax
add esp, 0xc
test esi, esi
je 0x101cbbf4
mov eax, dword [ebp + 0xc]
lea eax, [eax*2 + 2]
push eax
push 0
push esi
call fcn.102134e7
mov eax, dword [ebp + 0xc]
add esp, 0xc
add eax, eax
mov dword [ebp + 0xc], eax
lea eax, [ebp + 0xc]
push eax
push esi
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x14]
push ebx
push edi
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x101cbbeb
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x101cbbd2
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 8]
call fcn.10004050
push esi
call fcn.10213517
add esp, 4
mov edi, dword [ebp - 8]
add edi, 0xfffffff0
push edi
call fcn.10004ba0
mov esi, dword [ebp + 8]
add eax, 0x10
add esp, 4
mov dword [esi], eax
or eax, 0xffffffff
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x101cbc5f
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.10003980
mov ecx, eax
test ecx, ecx
je 0x101cbc68
mov eax, dword [ecx]
call dword [eax + 0xc]
mov esi, dword [ebp + 8]
add eax, 0x10
push 0x10219d7c
mov ecx, esi
mov dword [esi], eax
call fcn.10004a70
test al, al
jne 0x101cbc5f
push 0
push 0x10219d7c
mov ecx, esi
call fcn.10004050
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.100030c0
int3
Function at 0x101cbc80
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1058
call fcn.10212f90
mov eax, dword [0x10250150]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 0x1054], 0
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x1014], eax
mov dword [ebp - 0x1010], eax
mov dword [ebp - 0x100c], eax
mov dword [ebp - 0x1008], eax
lea eax, [ebp - 0x1058]
push eax
mov dword [ebp - 0x1050], 0
mov dword [ebp - 0x104c], 0
mov dword [ebp - 0x1048], 0
mov dword [ebp - 0x1044], 0
mov dword [ebp - 0x1040], 0
mov dword [ebp - 0x103c], 0
mov dword [ebp - 0x1038], 0
mov dword [ebp - 0x1034], 0
mov dword [ebp - 0x1030], 0
mov dword [ebp - 0x102c], 0
mov dword [ebp - 0x1028], 0
mov dword [ebp - 0x1024], 0
mov dword [ebp - 0x1020], 0
mov dword [ebp - 0x101c], 0
mov dword [ebp - 0x1018], 0
mov dword [ebp - 0x1058], 0x44
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov ax, word [ebp + 0x10]
push 0x1000
mov word [ebp - 0x1028], ax
lea eax, [ebp - 0x1004]
push 0
push eax
mov dword [ebp - 0x102c], 1
call fcn.102134e7
push esi
lea eax, [ebp - 0x1004]
push str.__s_
push eax
call fcn.101cafe0
add esp, 0x18
test edi, edi
je 0x101cbdc6
push edi
lea eax, [ebp - 0x1004]
push 0x800
push eax
call fcn.10201280
add esp, 0xc
lea eax, [ebp - 0x1014]
push eax
lea eax, [ebp - 0x1058]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x1004]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x101cbe4b
mov eax, dword [ebp + 0x14]
cmp eax, 1
jne 0x101cbe0c
push dword [ebp + 0x18]
push dword [ebp - 0x1014]
call dword [sym.imp.USER32.dll_WaitForInputIdle]
jmp 0x101cbe20
cmp eax, 2
jne 0x101cbe20
push dword [ebp + 0x18]
push dword [ebp - 0x1014]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x1010]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x1014]
call esi
pop edi
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10212f74
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.10212f74
mov esp, ebp
pop ebp
ret

Function at 0x101cbe60
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 8], 0
je 0x101cbec4
cmp dword [ebp + 0xc], 0
je 0x101cbec4
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x101cbec4
cmp dword [ebp + 0x10], 0
je 0x101cbec4
push esi
push eax
lea ecx, [ebp - 4]
call fcn.10004700
mov esi, dword [ebp - 4]
mov eax, dword [esi - 0xc]
test eax, eax
je 0x101cbeab
lea eax, [eax*2 + 2]
push eax
push esi
push 1
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x101cbec3
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x101cd810
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov esi, dword [ebp + 8]
cmp eax, esi
jne 0x101cd82d
lea eax, [edi + 1]
pop edi
pop esi
pop ebp
ret 4
call fcn.10185f60
push esi
push 0
test eax, eax
je 0x101cd83d
push 1
jmp 0x101cd842
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x101cd860
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ebp
ret 4

Function at 0x101cf110
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
lea eax, [ebp - 4]
mov ebx, ecx
push str.360DiagnoseScan.exe
push eax
call fcn.100e6750
add esp, 4
push eax
lea eax, [ebp - 8]
push eax
call fcn.100233d0
mov edx, dword [ebp - 4]
add esp, 0xc
add edx, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x101cf154
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 8]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x101cf166
xor edi, edi
jmp 0x101cf1c3
mov ecx, dword [ebx + 0xd0]
mov eax, dword [ecx]
call dword [eax + 8]
mov ecx, dword [ebx + 0xd0]
mov eax, dword [ecx]
call dword [eax + 0x10]
xor edi, edi
mov dword [ebp - 4], eax
test eax, eax
jle 0x101cf1be
mov esi, eax
jmp 0x101cf190
mov ecx, dword [ebx + 0xd0]
lea edx, [ebp - 4]
mov dword [ebp - 4], 0
push edx
push edi
mov eax, dword [ecx]
call dword [eax + 0x14]
mov eax, dword [ebp - 4]
test eax, eax
je 0x101cf1b6
push eax
mov ecx, ebx
call fcn.101ce4c0
inc edi
cmp edi, esi
jl 0x101cf190
mov esi, dword [ebp - 8]
mov edi, 1
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x101cf1db
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x101d12e0
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x10250150]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x1025ab48
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x208
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.102134e7
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.102134e7
push str.360note.dat
push 0x104
lea eax, [ebp - 0x414]
push eax
push dword [0x10256b30]
call fcn.100e53d0
add esp, 0x28
lea eax, [ebp - 0x20c]
push 1
push 0x1a
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push str.360safe_antiadwa
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x101d139c
lea eax, [ebp - 0x20c]
push eax
call esi
test eax, eax
jne 0x101d139c
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
push str.360note.dat
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x414]
push eax
call esi
test eax, eax
je 0x101d142f
lea eax, [ebp - 0x20c]
push eax
call esi
test eax, eax
jne 0x101d141c
call fcn.10003ae0
cmp dword [eax + 0x140], 2
jne 0x101d1406
call fcn.10003ae0
cmp dword [eax + 0x140], 2
jne 0x101d13ec
mov eax, dword [eax + 0xac]
jmp 0x101d13ee
xor eax, eax
test eax, eax
je 0x101d1406
push 1
lea ecx, [ebp - 0x20c]
push ecx
lea ecx, [ebp - 0x414]
push ecx
call eax
jmp 0x101d141c
push 1
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
push 1
lea eax, [ebp - 0x414]
push 1
push eax
call fcn.100e4770
add esp, 0xc
push ecx
mov esi, esp
call fcn.10003980
mov ecx, eax
test ecx, ecx
je 0x101d14a4
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov ecx, esi
mov dword [esi], eax
lea eax, [ebp - 0x20c]
push eax
call fcn.10004a70
test al, al
jne 0x101d1480
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x101d1462
sub ecx, edx
lea eax, [ebp - 0x20c]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.10004050
mov ecx, 0x1025aae8
call fcn.101d28c0
push 0x1025ab48
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.10212f74
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.100030c0
int3
Function at 0x101d47c0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, ecx
push esi
push edi
push 0x74
mov dword [ebx], vtable.UrlQuery.0
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
call fcn.10213511
push 0x2c
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [ebx + 8], eax
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 0
call fcn.10213511
mov esi, dword [ebp + 8]
lea ecx, [ebx + 0x24]
add esp, 8
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [ebx + 0x10], eax
push esi
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x1c], 0
mov dword [ebx + 0x20], 0
call fcn.1000cc60
lea eax, [esi + 0x18]
push eax
lea ecx, [ebx + 0x3c]
call fcn.1000cc60
lea eax, [esi + 0x30]
push eax
lea ecx, [ebx + 0x54]
call fcn.1000cc60
mov eax, dword [esi + 0x48]
xor ecx, ecx
mov dword [ebx + 0x6c], eax
lea eax, [ebx + 0x78]
mov dword [ebx + 0x70], 0
mov byte [ebx + 0x74], 0
mov byte [ebx + 0x75], 0
mov byte [ebx + 0x76], 0
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
push ecx
mov dword [eax + 0x10], ecx
push eax
mov dword [eax + 0x14], ecx
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
test eax, eax
jne 0x101d48a7
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x101d48a5
movzx eax, ax
or eax, 0x80070000
test eax, eax
js 0x101d48ba
pop edi
pop esi
mov dword [ebx + 0x90], 0
mov eax, ebx
pop ebx
pop ebp
ret 4
push eax
call fcn.100030c0
int3
Function at 0x101dde4a
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
xor edi, edi
push edi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x101dde76
mov eax, 0x10237878
push eax
push eax
push edi
push edi
call fcn.101dd556
jmp 0x101ddea2
mov esi, dword [ebp + 0x18]
lea eax, [ebp + 0x10]
push edi
push eax
push esi
push dword [ebp + 0x14]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x101dde66
cmp esi, dword [ebp + 0x10]
je 0x101ddea9
push 0x10237878
push 1
push edi
push edi
call fcn.101dd509
add esp, 0x10
xor eax, eax
jmp 0x101ddeac
xor eax, eax
inc eax
pop edi
pop esi
pop ebp
ret
Function at 0x101df098
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x101df0c2
mov eax, 0x10237878
push eax
push eax
push 0
push 0
call fcn.101dd556
add esp, 0x10
xor eax, eax
pop ebp
ret
xor eax, eax
inc eax
pop ebp
ret

Function at 0x101dfe11
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
and dword [eax + 0x14], 0
and dword [eax + 0x10], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
pop ebp
ret

Function at 0x101e0354
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
and dword [eax + 0x20], 0
and dword [eax + 0x24], 0
mov dword [eax], 0x6a09e667
mov dword [eax + 4], 0xbb67ae85
mov dword [eax + 8], 0x3c6ef372
mov dword [eax + 0xc], 0xa54ff53a
mov dword [eax + 0x10], 0x510e527f
mov dword [eax + 0x14], 0x9b05688c
mov dword [eax + 0x18], 0x1f83d9ab
mov dword [eax + 0x1c], 0x5be0cd19
pop ebp
ret

Function at 0x101e076d
Capabilities:
Allocate thread local storage

Disassembly:
push 4
mov eax, 0x102156a6
call fcn.101e2ed0
mov esi, ecx
mov dword [ebp - 0x10], esi
and dword [esi], 0
lea ecx, [esi + 8]
or dword [esi + 4], 0xffffffff
call fcn.101e05e4
and dword [ebp - 4], 0
and dword [esi + 0x5bc], 0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [esi + 4], eax
cmp eax, 0xffffffff
je 0x101e07b5
mov eax, dword [ebp + 8]
mov dword [esi], eax
mov eax, esi
call fcn.101e2e90
ret 4
push 0x1024810c
lea eax, [ebp + 8]
mov dword [ebp + 8], 2
push eax
call fcn.10213529
int3

Function at 0x101e08b2
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [ebx]
add ecx, 8
mov dword [ebp - 4], eax
mov eax, dword [ecx + 0x5a8]
mov dword [ecx + 0x5b0], eax
call fcn.101e0a36
mov edi, eax
test edi, edi
je 0x101e093d
mov eax, dword [ebp - 4]
cmp eax, dword [edi]
jne 0x101e08ed
mov esi, edi
jmp 0x101e0929
push dword [edi]
push 1
push 0x40
call dword [sym.imp.KERNEL32.dll_OpenThread]
test eax, eax
jne 0x101e0922
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x101e0915
mov ecx, dword [ebx]
push edi
add ecx, 8
call fcn.101e09d1
jmp 0x101e0929
push str.
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x101e0929
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebx]
add ecx, 8
call fcn.101e0a36
mov edi, eax
test edi, edi
jne 0x101e08e2
test esi, esi
jne 0x101e0952
mov ecx, dword [ebx]
add ecx, 8
call fcn.101e0baf
mov esi, eax
test esi, esi
je 0x101e0952
mov eax, dword [ebp - 4]
mov dword [esi], eax
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret