joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001bad0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10035060
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x10046f20]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [0x10046a68]
mov edx, dword [eax + 0xc]
mov ecx, 0x10046a68
call edx
add eax, 0x10
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
xor esi, esi
push eax
mov ecx, edi
mov dword [ebp - 4], esi
mov dword [ebp - 0x18], esi
call fcn.1001ba10
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.100080e0
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1001bb52
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebx, dword [ebp - 0x10]
push esi
push 0x80
push 4
push esi
push 1
push 0x40000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push 2
push 0
mov esi, eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [edi]
mov ecx, dword [eax - 0xc]
push 0
lea edx, [ebp - 0x18]
push edx
add ecx, ecx
push ecx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebx - 0x10]
mov dword [ebp - 4], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x1001bbbb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1001bbd0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10035090
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x10046f20]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
lea eax, [ebp - 0x14]
push eax
call fcn.1001ba10
mov ecx, dword [ebp - 0x14]
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push ecx
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ecx, esi
mov ebx, eax
call fcn.10007e00
cmp ebx, 0xffffffff
je 0x1001bcfa
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x10], eax
xor ecx, ecx
inc eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.100200ee
mov ecx, dword [ebp - 0x10]
add esp, 4
push 0
mov edi, eax
lea eax, [ebp - 0x18]
push eax
push ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [ebp - 0x10]
xor edx, edx
mov word [edi + ebx*2], dx
test edi, edi
jne 0x1001bc8a
xor eax, eax
jmp 0x1001bc9f
mov eax, edi
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1001bc90
sub eax, edx
sar eax, 1
push eax
push edi
mov ecx, esi
call fcn.10008250
mov eax, ebx
cdq
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x10]
push eax
mov ecx, esi
call fcn.10007c40
push eax
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.100080e0
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1001bcea
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, esi
call fcn.10019fa0
push edi
call fcn.1002089d
add esp, 4
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1001bd20
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1001be10
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100350c0
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x10046f20]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [ebp - 0x20], ebx
mov edi, dword [ebp + 0xc]
mov eax, dword [edi]
lea ecx, [ebp - 0x10]
push ecx
push eax
mov dword [ebp - 0x10], ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [ebp - 0x10], eax
cmp eax, ebx
jbe 0x1001bf93
push eax
call fcn.100200ee
mov esi, eax
add esp, 4
mov dword [ebp - 0x24], esi
mov edx, dword [ebp - 0x10]
mov eax, dword [edi]
push esi
push edx
push ebx
push eax
mov dword [ebp - 4], ebx
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x1001bf83
mov eax, dword [0x10046a68]
mov edx, dword [eax + 0xc]
mov ecx, 0x10046a68
mov dword [ebp + 0xc], ebx
call edx
lea edi, [eax + 0x10]
mov dword [ebp - 0x14], edi
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp + 0xc]
push ecx
push str.VarFileInfoTranslation
push esi
mov byte [ebp - 4], 1
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
jne 0x1001bf07
mov ecx, dword [ebp + 8]
push 0x1003e050
call fcn.10007b20
lea eax, [edi - 0x10]
mov byte [ebp - 4], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x1001bee9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push esi
call fcn.10020202
mov eax, dword [ebp + 8]
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
movzx ecx, word [eax + 2]
push edx
movzx edx, word [eax]
push ecx
push edx
lea eax, [ebp - 0x14]
push str.StringFileInfo_04x_04x_s
push eax
call fcn.1001a940
mov edi, dword [ebp - 0x14]
add esp, 0x14
lea ecx, [ebp - 0x20]
push ecx
lea edx, [ebp - 0x18]
push edx
push edi
push esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x1001bf64
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp + 8]
push eax
call fcn.10007b20
lea eax, [edi - 0x10]
mov byte [ebp - 4], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x1001bedd
lea eax, [edi - 0x10]
mov byte [ebp - 4], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1001bf83
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push esi
mov dword [ebp - 4], 0xffffffff
call fcn.10020202
add esp, 4
mov esi, dword [ebp + 8]
push 0x1003e050
mov ecx, esi
call fcn.10007b20
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1001c190
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10035166
mov eax, dword fs:[0]
push eax
sub esp, 0x240
mov eax, dword [0x10046f20]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
xor ebx, ebx
push ebx
push 2
mov dword [ebp - 0x240], ebx
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
push esi
lea ecx, [ebp - 0x248]
call fcn.1001d4e0
mov eax, dword [edi]
sub eax, 0x10
push eax
mov dword [ebp - 4], ebx
call fcn.10008360
add esp, 4
lea edi, [eax + 0x10]
lea eax, [ebp - 0x23c]
push eax
mov ebx, 0x22c
push esi
mov dword [ebp - 0x23c], ebx
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x1001c247
mov byte [ebp - 4], al
lea eax, [edi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1001c22e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x248]
mov dword [ebp - 4], 0xffffffff
call fcn.1001d500
xor eax, eax
jmp 0x1001c2d1
lea ecx, [ebp - 0x23c]
push ecx
push esi
mov dword [ebp - 0x23c], ebx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
je 0x1001c299
mov edi, edi
lea edx, [ebp - 0x218]
push edi
push edx
call fcn.100225bd
add esp, 8
test eax, eax
je 0x1001c28d
lea eax, [ebp - 0x23c]
push eax
push esi
mov dword [ebp - 0x23c], ebx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x1001c260
jmp 0x1001c299
mov ecx, dword [ebp - 0x234]
mov dword [ebp - 0x240], ecx
lea eax, [edi - 0x10]
mov byte [ebp - 4], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x1001c2b9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x248]
mov dword [ebp - 4], 0xffffffff
call fcn.1001d500
mov eax, dword [ebp - 0x240]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1002020d
mov esp, ebp
pop ebp
ret
Function at 0x1001c310
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100351c8
mov eax, dword fs:[0]
push eax
sub esp, 0x244
mov eax, dword [0x10046f20]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
push 0
push 2
mov dword [ebp - 0x250], ebx
mov dword [ebp - 0x240], 0
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
push esi
lea ecx, [ebp - 0x24c]
call fcn.1001d4e0
mov eax, dword [0x10046a68]
mov edx, dword [eax + 0xc]
mov ecx, 0x10046a68
mov dword [ebp - 4], 1
call edx
lea edi, [eax + 0x10]
mov dword [ebp - 0x244], edi
lea eax, [ebp - 0x23c]
push eax
push esi
mov byte [ebp - 4], 2
mov dword [ebp - 0x23c], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x1001c3de
push 0x1003e050
mov ecx, ebx
call fcn.10007b20
lea eax, [edi - 0x10]
mov dword [ebp - 0x240], 1
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1001c491
mov ecx, dword [eax]
push eax
jmp 0x1001c48a
lea ecx, [ebp - 0x23c]
push ecx
push esi
mov dword [ebp - 0x23c], 0x22c
call sub.KERNEL32.dll_Process32NextW
test eax, eax
je 0x1001c459
lea esp, [esp]
mov edx, dword [ebp + 0xc]
cmp edx, dword [ebp - 0x234]
je 0x1001c428
lea eax, [ebp - 0x23c]
push eax
push esi
mov dword [ebp - 0x23c], 0x22c
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x1001c400
jmp 0x1001c459
lea eax, [ebp - 0x218]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1001c431
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0x218]
push ecx
lea ecx, [ebp - 0x244]
call fcn.10008250
mov edi, dword [ebp - 0x244]
lea esi, [edi - 0x10]
push esi
call fcn.10008360
add eax, 0x10
mov dword [ebx], eax
add esp, 4
mov dword [ebp - 0x240], 1
mov byte [ebp - 4], 1
lea edx, [esi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x1001c491
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x24c]
mov byte [ebp - 4], 0
call fcn.1001d500
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1002020d
mov esp, ebp
pop ebp
ret

Function at 0x1001c4e0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x14]
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
mov edx, dword [ebp + 0x10]
add ecx, ecx
push ecx
mov ecx, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push 1
push edx
push eax
push ecx
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
pop ebp
ret
Function at 0x1001c510
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x10046f20]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
xor ecx, ecx
push 0x208
push ecx
lea edx, [ebp - 0x20e]
push edx
mov dword [ebp - 0x218], eax
mov word [ebp - 0x210], cx
call fcn.10022440
add esp, 0xc
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x210]
push ecx
lea edx, [ebp - 0x214]
push edx
push ebx
push edi
push esi
mov dword [ebp - 0x21c], 0x104
mov dword [ebp - 0x214], 1
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
mov esi, eax
lea eax, [ebp - 0x210]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1001c593
mov ecx, dword [ebp - 0x218]
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.10008250
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.1002020d
mov esp, ebp
pop ebp
ret

Function at 0x1001c8b0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10035208
mov eax, dword fs:[0]
push eax
sub esp, 0x74
mov eax, dword [0x10046f20]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x80], ecx
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
push 0
push 0x1003cacf
mov ecx, edi
mov dword [ebp - 4], 0
call fcn.10004da0
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1001c932
lea eax, [ebp - 0x30]
push esi
push eax
call fcn.1001f970
add esp, 8
cmp dword [ebp - 0x20], 0
mov byte [ebp - 4], 1
jne 0x1001c952
cmp dword [ebp - 0x1c], 0x10
jb 0x1001c932
mov ecx, dword [ebp - 0x30]
push ecx
call fcn.10020202
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1002020d
mov esp, ebp
pop ebp
ret 8
lea edx, [ebp - 0x30]
push edx
lea eax, [ebp - 0x5c]
push eax
lea ecx, [ebp - 0x79]
call fcn.1001f590
lea ecx, [ebp - 0x5c]
push ecx
lea edx, [ebp - 0x78]
mov bl, 2
push edx
lea ecx, [ebp - 0x79]
mov byte [ebp - 4], bl
call fcn.1001f710
push eax
mov ecx, edi
mov byte [ebp - 4], 3
call fcn.10005330
mov byte [ebp - 4], bl
mov ebx, 0x10
cmp dword [ebp - 0x64], ebx
jb 0x1001c99c
mov eax, dword [ebp - 0x78]
push eax
call fcn.10020202
add esp, 4
mov esi, dword [ebp - 0x80]
lea ecx, [ebp - 0x5a]
push ecx
lea edx, [ebp - 0x5c]
push edx
mov ecx, esi
call fcn.1001c750
test eax, eax
je 0x1001c9d5
mov eax, dword [ebp - 0x20]
cmp dword [ebp - 0x56], eax
jne 0x1001c9d5
test eax, eax
je 0x1001c9d5
push edi
lea eax, [ebp - 0x4f]
push eax
mov ecx, esi
call fcn.1001c7e0
test eax, eax
je 0x1001c9d5
mov esi, 1
jmp 0x1001c9d7
xor esi, esi
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 1
call fcn.1001f560
cmp dword [ebp - 0x1c], ebx
jb 0x1001c9f4
mov ecx, dword [ebp - 0x30]
push ecx
call fcn.10020202
add esp, 4
mov eax, esi
jmp 0x1001c934
Function at 0x1001ca10
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10035858
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x10046f20]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x30], ecx
mov edi, dword [ebp + 0xc]
mov eax, dword [edi]
mov esi, dword [ebp + 8]
xor ebx, ebx
push eax
mov dword [ebp - 0x34], ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1001ca71
push ebx
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
push 0x1003cacf
mov ecx, esi
mov byte [esi], bl
call fcn.10004da0
jmp 0x1001cad4
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
mov ecx, dword [ebp - 0x30]
lea eax, [ebp - 0x2c]
push eax
push edi
mov dword [ebp - 4], ebx
call fcn.1001c8b0
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
mov byte [esi], bl
test eax, eax
je 0x1001cab5
lea ecx, [ebp - 0x2c]
push ecx
mov ecx, esi
call fcn.10005330
cmp dword [ebp - 0x18], 0x10
jb 0x1001cad4
mov edx, dword [ebp - 0x2c]
push edx
jmp 0x1001cacc
push ebx
push 0x1003cacf
mov ecx, esi
call fcn.10004da0
cmp dword [ebp - 0x18], 0x10
jb 0x1001cad4
mov eax, dword [ebp - 0x2c]
push eax
call fcn.10020202
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1002020d
mov esp, ebp
pop ebp
ret 8

Function at 0x1001cb00
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10035238
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x10046f20]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebp + 8]
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1001cb72
xor eax, eax
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x2c], al
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
push esi
mov ecx, edi
call fcn.1001c8b0
cmp dword [ebp - 0x18], 0x10
mov esi, eax
jb 0x1001cb6e
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.10020202
add esp, 4
mov eax, esi
jmp 0x1001cb74
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1002020d
mov esp, ebp
pop ebp
ret 4
Function at 0x1001cc40
Capabilities:
Check internet connectivity via wininet
Create http request

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push esi
mov esi, ecx
push esi
push eax
mov dword [ebp - 4], 0
call fcn.1001ab60
add esp, 8
test al, al
je 0x1001cca4
mov ecx, dword [ebp + 0xc]
push 0
lea edx, [ebp - 4]
push edx
mov dword [esi + 0x5c], ecx
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
mov eax, dword [ebp - 4]
and al, 4
sub al, 4
movzx eax, al
push 0
neg eax
push 0
sbb eax, eax
push 0
and eax, 4
push eax
push str.Mozilla_4.0__compatible__MSIE_7.0__Windows_NT_5.2__.NET_CLR_1.1.4322__.NET_CLR_2.0.50727_
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [esi + 0x54], eax
test eax, eax
jne 0x1001ccad
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x68], eax
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 8
mov ecx, esi
call fcn.1001cba0
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x1001d120
Capabilities:
Reference cloudflare dns server

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100352b1
mov eax, dword fs:[0]
push eax
sub esp, 0x414
mov eax, dword [0x10046f20]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x10046a68]
mov edx, dword [eax + 0xc]
mov edi, dword [ebp + 8]
xor ebx, ebx
mov ecx, 0x10046a68
mov dword [ebp - 0x41c], ebx
call edx
lea esi, [eax + 0x10]
mov dword [ebp - 0x414], esi
push 0x3ff
lea eax, [ebp - 0x40f]
push ebx
push eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0x420], ebx
mov byte [ebp - 0x410], bl
call fcn.10022440
add esp, 0xc
push ebx
lea ecx, [ebp - 0x420]
push ecx
push 0x3ff
lea edx, [ebp - 0x410]
push edx
push 0x10000001
call sub.urlmon.dll_UrlMkGetSessionOption
cmp eax, 0x8007000e
je 0x1001d1c2
cmp eax, ebx
jne 0x1001d2b2
mov eax, dword [0x10046a68]
mov edx, dword [eax + 0xc]
mov ecx, 0x10046a68
call edx
lea esi, [eax + 0x10]
mov dword [ebp - 0x418], esi
lea eax, [ebp - 0x410]
mov byte [ebp - 4], 1
test eax, 0xffff0000
jne 0x1001d219
mov ecx, eax
movzx eax, cx
push ebx
push eax
mov dword [ebp - 0x41c], eax
call fcn.10008630
add esp, 8
cmp eax, ebx
je 0x1001d231
mov edx, dword [ebp - 0x41c]
push edx
push eax
lea ecx, [ebp - 0x418]
call fcn.10008040
jmp 0x1001d22b
lea eax, [ebp - 0x410]
push eax
lea ecx, [ebp - 0x418]
call fcn.1000b7c0
mov esi, dword [ebp - 0x418]
push 0xb
push str.User_Agent:
lea ecx, [ebp - 0x414]
mov byte [ebp - 4], 2
call fcn.10008250
mov eax, dword [esi - 0xc]
push eax
push esi
lea ecx, [ebp - 0x414]
call fcn.100083d0
push 0xa
push str._Funshion_
lea ecx, [ebp - 0x414]
call fcn.100083d0
push 7
push str.1.0.0.1
lea ecx, [ebp - 0x414]
call fcn.100083d0
push 2
push 0x10039754
lea ecx, [ebp - 0x414]
call fcn.100083d0
lea eax, [esi - 0x10]
mov byte [ebp - 4], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1001d2ac
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [ebp - 0x414]
xor ecx, ecx
mov eax, esi
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], ebx
mov word [edi], cx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x1001d2c6
sub eax, edx
sar eax, 1
push eax
push esi
mov ecx, edi
call fcn.1000d7e0
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea edx, [esi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x1001d301
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1002020d
mov esp, ebp
pop ebp
ret
Function at 0x1001f920
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov eax, dword [eax]
push esi
push edi
xor edi, edi
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x1001f96a
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
push edi
lea ecx, [ebp + 8]
push ecx
push edx
push eax
push esi
mov dword [ebp + 8], edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ebp
ret

Function at 0x1002020d
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10046f20]
jne 0x10020217
repz ret
jmp fcn.100243da

Function at 0x10021fc5
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x10021fec
call fcn.10024248
mov dword [eax], esi
call fcn.10024235
push 0x16
pop esi
mov dword [eax], esi
call fcn.10024972
mov eax, esi
jmp 0x10022041
test dword [ebp + 0xc], 0xfffffff9
jne 0x10021fd2
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x10022019
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.1002425b
pop ecx
call fcn.10024235
mov eax, dword [eax]
jmp 0x10022041
test al, 0x10
jne 0x1002203f
test al, 1
je 0x1002203f
test byte [ebp + 0xc], 2
je 0x1002203f
call fcn.10024248
mov dword [eax], 5
call fcn.10024235
mov dword [eax], 0xd
jmp 0x10022010
xor eax, eax
pop esi
pop ebp
ret