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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push 0x38
lea eax, [ebp - 0x38]
push 0
push eax
call fcn.100639b0
mov eax, dword [ebp + 8]
add esp, 0xc
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x38], 0x40
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x1000f16a
mov eax, dword [ebp - 4]
test eax, eax
je 0x1000f16a
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esp, ebp
pop ebp
ret 8

Function at 0x100104a0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor eax, eax
mov esi, edx
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.100639b0
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push 0
push 0
push 0
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
je 0x100104fe
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005d006
mov esp, ebp
pop ebp
ret
cmp word [ebp - 0x20c], 0
jne 0x1001050c
xor ecx, ecx
jmp 0x10010524
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10010515
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
call fcn.100067c0
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.1005d006
mov esp, ebp
pop ebp
ret
Function at 0x10010840
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10104af8
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [section..data]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x10135c90
push 0xc8
push dword [0x101698d0]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x1001089a
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push esi
push dword [0x101698d0]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
mov dword [ebp - 0x18], edi
test edi, edi
je 0x10010884
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push dword [0x101698d0]
mov dword [ebp - 0x1c], eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.100300b0
push 0x80
push 2
push 0
push 0x40000000
push dword [ebp + 8]
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 0
call fcn.10030160
mov byte [ebp + 0xb], al
test al, al
je 0x1001098a
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
push ebx
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x10]
call fcn.100302f0
cmp byte [ebp + 0xc], 0
mov esi, dword [ebp - 0x10]
je 0x1001096e
and ebx, 0x1ff
mov edi, 0x400
push 0
sub edi, ebx
call fcn.1005dcd2
push eax
call fcn.1005d9e6
shr edi, 2
add esp, 8
test edi, edi
je 0x1001096b
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
call fcn.1005d9c5
mov dword [ebp - 0x20], eax
test esi, esi
je 0x10010968
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x10010968
push 0
lea ecx, [ebp - 0x14]
push ecx
push 4
lea ecx, [ebp - 0x20]
push ecx
push eax
call ebx
dec edi
jne 0x10010946
mov edi, dword [ebp - 0x18]
test esi, esi
je 0x1001098a
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x1001098a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x1001098a
mov dword [esi], 0xffffffff
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 0xffffffff
call fcn.10030120
mov al, byte [ebp + 0xb]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x10011760
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10104cf0
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
lea edx, [ebp - 0x2c]
mov dword [ebp - 4], eax
call fcn.100104a0
test al, al
je 0x10011886
push 0x10135b34
lea ecx, [ebp - 0x5c]
call fcn.10008b50
lea eax, [ebp - 0x5c]
mov byte [ebp - 4], 1
push eax
lea edx, [ebp - 0x2c]
lea ecx, [ebp - 0x44]
call fcn.10025f50
mov esi, eax
add esp, 4
lea eax, [ebp - 0x2c]
cmp eax, esi
je 0x1001180b
cmp dword [ebp - 0x18], 8
jb 0x100117ee
push dword [ebp - 0x2c]
call fcn.1005d7c6
add esp, 4
xor eax, eax
mov dword [ebp - 0x18], 7
push esi
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
call fcn.100061e0
cmp dword [ebp - 0x30], 8
jb 0x1001181c
push dword [ebp - 0x44]
call fcn.1005d7c6
add esp, 4
xor eax, eax
mov dword [ebp - 0x30], 7
mov byte [ebp - 4], al
cmp dword [ebp - 0x48], 8
mov dword [ebp - 0x34], 0
mov word [ebp - 0x44], ax
jb 0x10011844
push dword [ebp - 0x5c]
call fcn.1005d7c6
add esp, 4
push 4
push str..lnk
lea ecx, [ebp - 0x2c]
call fcn.100066e0
lea ecx, [ebp - 0x2c]
call fcn.1002d5c0
test al, al
je 0x10011886
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
push 0
cmovae eax, dword [ebp - 0x2c]
push 0
push 0
push eax
push str.taskbarpin
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
setg bl
jmp 0x10011888
xor bl, bl
cmp dword [ebp - 0x18], 8
jb 0x10011899
push dword [ebp - 0x2c]
call fcn.1005d7c6
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1005d006
mov esp, ebp
pop ebp
ret 4

Function at 0x10012c90
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 8], eax
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x214], ax
lea eax, [ebp - 0x212]
push eax
call fcn.100639b0
add esp, 0xc
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
je 0x10012cf1
xor al, al
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.1005d006
mov esp, ebp
pop ebp
ret 4
cmp word [ebp - 0x214], 0
jne 0x10012cff
xor eax, eax
jmp 0x10012d1f
lea eax, [ebp - 0x214]
lea edx, [eax + 2]
jmp 0x10012d10
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10012d10
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x214]
mov ecx, esi
push eax
call fcn.100067c0
mov edx, 0x10
mov ecx, esi
call fcn.10025dd0
push 6
push str.HaoZip
mov ecx, esi
call fcn.100066e0
mov edx, 0x10
mov ecx, esi
call fcn.10025dd0
mov ecx, esi
call fcn.1002de00
push 0x14
push str.HaoZipInstaller.data
mov ecx, esi
call fcn.100066e0
mov ecx, dword [ebp - 8]
mov al, 1
xor ecx, ebp
pop esi
call fcn.1005d006
mov esp, ebp
pop ebp
ret 4
Function at 0x10016150
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push 0x105
push ecx
push 0x1016a050
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
call fcn.10015f70
mov esi, eax
test esi, esi
jne 0x10016171
xor al, al
pop esi
ret
mov ecx, esi
call fcn.10015ff0
movzx eax, word [esi]
test ax, ax
je 0x1001616d
cmp eax, 0x5c
je 0x1001616d
push ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
sub esi, 0x1016a050
push 0x1016a050
sar esi, 1
call edi
cmp eax, esi
jle 0x100161e1
mov ebx, dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x100161b0
push 0x1016a260
push 0x1016a050
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x100161d1
push eax
call ebx
test byte [0x1016a260], 0x10
je 0x10016226
call fcn.10016110
push 0x1016a050
call edi
cmp eax, esi
jg 0x100161b0
push 0x1016a050
call edi
lea eax, [eax*2 + 0x1016a050]
push eax
push 0x1016a050
call dword [sym.imp.USER32.dll_CharPrevW]
cmp word [eax], 0x5c
je 0x10016211
push 0x10135758
push 0x1016a050
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x1016a050
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
pop edi
cmp eax, 0xffffffff
pop ebx
setne al
pop esi
ret
pop edi
pop ebx
xor al, al
pop esi
ret
Function at 0x10016ce0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x101056e1
mov eax, dword fs:[0]
push eax
sub esp, 0x470
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x468], eax
push esi
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0x478]
mov dword fs:[0], eax
mov esi, ecx
lea ecx, [esp + 0x44]
call fcn.10028c00
mov dword [esp + 0x480], 0
lea ecx, [esp + 0x14]
push 6
xor eax, eax
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
push str.HaoZip
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], 0
mov word [esp + 0x1c], ax
call fcn.100067c0
push 0xffffffffffffffff
push 0
lea eax, [esp + 0x1c]
mov byte [esp + 0x488], 1
push eax
lea ecx, [esp + 0x50]
call fcn.10006240
mov byte [esp + 0x480], 0
cmp dword [esp + 0x28], 8
jb 0x10016da0
push dword [esp + 0x14]
call fcn.1005d7c6
add esp, 4
xor eax, eax
mov dword [esp + 0x28], 7
mov dword [esp + 0x24], 0
mov word [esp + 0x14], ax
test esi, esi
jne 0x10016dc9
lea ecx, [esp + 0x44]
call fcn.1002c9e0
jmp 0x10016ed6
cmp esi, 1
jne 0x10016ddc
lea ecx, [esp + 0x44]
call fcn.1002cda0
jmp 0x10016ed6
cmp esi, 2
jne 0x10016ed6
xor eax, eax
push 0x40e
push eax
mov word [esp + 0x64], ax
lea eax, [esp + 0x66]
push eax
call fcn.100639b0
add esp, 0xc
lea eax, [esp + 0x5c]
push 0x207
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [esp + 0x5c]
push eax
lea ecx, [esp + 0x30]
call fcn.10008b50
push 0x10136468
lea ecx, [esp + 0x30]
mov byte [esp + 0x484], 2
call fcn.10006060
cmp dword [esp + 0x40], 8
lea eax, [esp + 0x2c]
push 0
cmovae eax, dword [esp + 0x30]
push 0x80
push 3
push 0
push 1
push SysReAllocStringLen
push eax
mov dword [esp + 0x28], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x10016e97
push 0
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0
push eax
push 4
lea eax, [esp + 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
neg eax
push esi
sbb eax, eax
and dword [esp + 0x10], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [esp + 0xc]
lea ecx, [esp + 0x48]
call fcn.1002d0b0
mov byte [esp + 0x480], 0
cmp dword [esp + 0x40], 8
jb 0x10016ebf
push dword [esp + 0x2c]
call fcn.1005d7c6
add esp, 4
xor eax, eax
mov dword [esp + 0x40], 7
mov dword [esp + 0x3c], 0
mov word [esp + 0x2c], ax
lea ecx, [esp + 0x44]
mov dword [esp + 0x480], 0xffffffff
call fcn.100276b0
mov ecx, dword [esp + 0x478]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x468]
xor ecx, esp
call fcn.1005d006
mov esp, ebp
pop ebp
ret
Function at 0x10018350
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x101059d0
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x50], eax
push ebx
push esi
push edi
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0x68]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [edi + 0x9c]
cmp esi, 0x64
ja 0x100183aa
push 0
push esi
push 0x7e8
lea ecx, [edi + 4]
call fcn.10074d90
inc esi
cmp esi, 0x64
jbe 0x10018394
mov ecx, edi
call fcn.100188c0
push 0x1f8
lea ecx, [edi + 0x20]
call fcn.10071480
lea eax, [edi + 0x80]
push eax
push 0x16
lea ecx, [edi + 0x20]
call fcn.10072e80
mov ecx, edi
call fcn.10018a70
mov ecx, edi
call fcn.100189b0
push 1
push 0x65
lea ecx, [edi + 0x20]
call fcn.10070fd0
mov ebx, dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov byte [esp + 0x10], 0
call ebx
mov edx, eax
mov dword [esp + 0x5c], 7
xor eax, eax
mov dword [esp + 0x58], 0
mov word [esp + 0x48], ax
cmp word [edx], ax
jne 0x10018418
xor ecx, ecx
jmp 0x1001842f
mov ecx, edx
lea esi, [ecx + 2]
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10018420
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [esp + 0x50]
call fcn.100067c0
lea eax, [esp + 0x14]
mov dword [esp + 0x70], 0
push eax
mov dword [esp + 0x18], 0
call ebx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov ebx, eax
test ebx, ebx
je 0x1001857c
cmp dword [esp + 0x14], 2
jl 0x1001854c
mov edx, dword [ebx + 4]
xor eax, eax
mov dword [esp + 0x44], 7
mov dword [esp + 0x40], 0
mov word [esp + 0x30], ax
cmp word [edx], ax
jne 0x10018490
xor ecx, ecx
jmp 0x100184a4
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10018495
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [esp + 0x38]
call fcn.100067c0
mov byte [esp + 0x70], 1
lea ecx, [esp + 0x18]
push 3
xor eax, eax
mov dword [esp + 0x30], 7
push 0x101366f8
mov dword [esp + 0x30], 0
mov word [esp + 0x20], ax
call fcn.100067c0
push dword [esp + 0x28]
cmp dword [esp + 0x30], 8
lea eax, [esp + 0x1c]
push 0
cmovae eax, dword [esp + 0x20]
lea ecx, [esp + 0x38]
push eax
call fcn.10008ee0
mov ecx, dword [esp + 0x10]
cmp eax, 0xffffffff
movzx ecx, cl
mov edx, 1
cmovne ecx, edx
cmp dword [esp + 0x2c], 8
mov dword [esp + 0x10], ecx
jb 0x10018522
push dword [esp + 0x18]
call fcn.1005d7c6
add esp, 4
xor eax, eax
mov dword [esp + 0x2c], 7
cmp dword [esp + 0x44], 8
mov dword [esp + 0x28], 0
mov word [esp + 0x18], ax
jb 0x1001854c
push dword [esp + 0x30]
call fcn.1005d7c6
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp byte [esp + 0x10], 0
je 0x1001857c
push 0xbd0
push dword [edi + 4]
mov dword [edi + 0x14c], 0xffffffff
mov dword [edi + 0xd0], 2
call dword [sym.imp.USER32.dll_EndDialog]
cmp dword [esp + 0x5c], 8
jb 0x1001858f
push dword [esp + 0x48]
call fcn.1005d7c6
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.1005d006
mov esp, ebp
pop ebp
ret 0x10
Function at 0x1001e640
Capabilities:
Check os version

Disassembly:
sub esp, 0x10
push esi
push 0x11c
mov esi, ecx
push 0
push esi
call fcn.100639b0
add esp, 0xc
mov dword [esi], 0x11c
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x1001e6d1
mov eax, dword [esi + 4]
cmp eax, 6
ja 0x1001e677
jne 0x1001e6ca
cmp dword [esi + 8], 2
jb 0x1001e6ca
lea eax, [esp + 0x10]
mov dword [esp + 4], 0
push eax
lea eax, [esp + 0x10]
mov dword [esp + 0xc], 0
push eax
lea edx, [esp + 0x10]
mov dword [esp + 0x14], 0
lea ecx, [esp + 0xc]
mov dword [esp + 0x18], 0
call fcn.1001e780
add esp, 8
test al, al
je 0x1001e6ca
mov eax, dword [esp + 4]
mov dword [esi + 4], eax
mov eax, dword [esp + 8]
mov dword [esi + 8], eax
mov eax, dword [esp + 0xc]
mov dword [esi + 0xc], eax
mov al, 1
pop esi
add esp, 0x10
ret
xor al, al
pop esi
add esp, 0x10
ret

Function at 0x1001e780
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x28
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x30]
push ebx
push ebp
mov ebp, dword [esp + 0x34]
mov ebx, edx
push esi
push edi
push str.kernel32.dll
mov edi, ecx
mov dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov esi, eax
test esi, esi
je 0x1001e84a
push 0x10
push 1
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x1001e84a
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x1001e84a
movdqu xmm0, xmmword [str.VS_VERSION_INFO]
push eax
movdqu xmmword [esp + 0x18], xmm0
movdqu xmm0, xmmword [0x10136bc8]
movdqu xmmword [esp + 0x28], xmm0
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x1001e84a
lea eax, [esp + 0x14]
push eax
lea ecx, [esi + 6]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x1001e84a
cmp word [esi + 2], ax
jbe 0x1001e84a
movzx eax, word [esi + 0x32]
mov ecx, dword [esp + 0x10]
mov dword [edi], eax
movzx eax, word [esi + 0x30]
mov dword [ebx], eax
movzx eax, word [esi + 0x36]
mov dword [ebp], eax
movzx eax, word [esi + 0x34]
pop edi
pop esi
pop ebp
mov dword [ecx], eax
mov al, 1
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.1005d006
add esp, 0x28
ret
mov ecx, dword [esp + 0x34]
xor al, al
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1005d006
add esp, 0x28
ret
Function at 0x1001ef70
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x10106569
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push esi
push edi
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0x10], edi
push 0x18
call fcn.1005d83c
add esp, 4
mov dword [edi + 0x20], eax
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [esp + 0x38], 0
lea esi, [edi + 0x24]
mov dword [esi], 0
xor eax, eax
mov byte [esi + 4], 0
mov dword [esi + 0x1c], 7
mov dword [esi + 0x18], 0
mov dword [esp + 0x14], esi
mov word [esi + 8], ax
mov byte [esp + 0x38], 2
lea ecx, [esp + 0x18]
push eax
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [edi + 0x10], 0xffffffff
mov dword [edi + 0x14], 0xffffffff
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
push 0x10134d9c
mov byte [edi + 8], al
mov dword [edi + 0x18], eax
mov dword [edi + 0xc], eax
mov dword [edi + 0x1c], eax
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], eax
mov word [esp + 0x20], ax
call fcn.100067c0
mov byte [esp + 0x38], 3
mov eax, dword [esi]
test eax, eax
je 0x1001f03a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x28], 0
mov dword [esi], 0
jne 0x1001f04b
xor eax, eax
jmp 0x1001f059
cmp dword [esp + 0x2c], 8
lea eax, [esp + 0x18]
cmovae eax, dword [esp + 0x18]
push eax
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
lea ecx, [esi + 8]
sete al
mov byte [esi + 4], al
lea eax, [esp + 0x18]
cmp ecx, eax
je 0x1001f08e
push 0xffffffffffffffff
push 0
push eax
call fcn.10006240
mov byte [esp + 0x38], 2
cmp dword [esp + 0x2c], 8
jb 0x1001f0a6
push dword [esp + 0x18]
call fcn.1005d7c6
add esp, 4
xor eax, eax
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], 0
mov word [esp + 0x18], ax
mov dword [esp + 0x38], 0xffffffff
mov eax, edi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x30
ret
Function at 0x1001f530
Capabilities:
Create thread
Resume thread

Disassembly:
push 0xffffffffffffffff
push 0x10106678
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 8]
test eax, eax
jne 0x1001f572
xor al, al
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret
add eax, 0x20
mov dword [esp + 0x10], 0
push eax
lea ecx, [esp + 0x14]
call fcn.1000d430
mov dword [esp + 0x1c], 0
mov eax, dword [esi + 8]
cmp dword [eax + 4], 0
je 0x1001f5e7
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
lea edi, [esi + 4]
push 1
push edi
call ebx
mov eax, dword [esi + 8]
add eax, 0xc
push eax
push 4
push esi
push 0x1001f0e0
push 0
push 0
call fcn.100dd3d9
mov ecx, dword [esi + 8]
add esp, 0x18
mov dword [ecx + 0x10], eax
mov eax, dword [esi + 8]
cmp dword [eax + 0x10], 0
jne 0x1001f60f
push 0xffffffffffffffff
push edi
call ebx
dec eax
jne 0x1001f5df
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov ecx, dword [esi + 8]
call fcn.1001f270
xor bl, bl
mov dword [esp + 0x1c], 0xffffffff
lea ecx, [esp + 0x10]
call fcn.1000d460
mov al, bl
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret
mov byte [eax + 8], 1
mov eax, dword [esi + 8]
mov eax, dword [eax + 0x24]
test eax, eax
je 0x1001f624
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, dword [esi + 8]
push dword [eax + 0x10]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
je 0x1001f5d0
mov bl, 1
jmp 0x1001f5e9

Function at 0x1001f900
Capabilities:
Check os version

Disassembly:
sub esp, 0x120
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x11c], eax
push esi
push 1
mov esi, ecx
call fcn.1005d83c
mov dword [esi], eax
push 0x11c
push 0
mov byte [eax], 0
lea eax, [esp + 0x10]
push eax
call fcn.100639b0
add esp, 0x10
mov dword [esp + 4], 0x11c
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
mov eax, esi
je 0x1001f95c
cmp dword [esp + 8], 6
mov ecx, dword [esi]
setae dl
mov byte [ecx], dl
mov ecx, dword [esp + 0x120]
pop esi
xor ecx, esp
call fcn.1005d006
add esp, 0x120
ret
Function at 0x10023150
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x10106ec8
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x18], eax
push ebx
push esi
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov eax, dword [esp + 0x38]
xor ecx, ecx
mov esi, dword [esp + 0x3c]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x20], 7
mov dword [esp + 0x1c], 0
mov word [esp + 0xc], cx
mov dword [esp + 0x30], 1
lea ecx, [esp + 0xc]
cmp ecx, eax
je 0x100231c9
push 0xffffffffffffffff
push 0
push eax
call fcn.10006240
push esi
lea ecx, [esp + 0x10]
call fcn.10039b50
mov bl, al
mov dword [esp + 0x30], 0xffffffff
cmp dword [esp + 0x20], 8
jb 0x100231f0
push dword [esp + 0xc]
call fcn.1005d7c6
add esp, 4
xor eax, eax
mov dword [esp + 0x20], 7
mov word [esp + 0xc], ax
mov al, bl
mov dword [esp + 0x1c], 0
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.1005d006
add esp, 0x28
ret 8

Function at 0x100233c0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x10106f91
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
call fcn.10037ca0
mov dword [esp + 0x18], 0
xor eax, eax
mov dword [esi + 0x24], 7
mov dword [esi + 0x20], 0
mov word [esi + 0x10], ax
mov byte [esp + 0x18], 1
lea eax, [esi + 0x30]
xor ecx, ecx
mov dword [eax + 0x14], 7
mov dword [eax + 0x10], 0
mov dword [esp + 0xc], eax
mov word [eax], cx
mov byte [esp + 0x18], 2
mov dword [eax + 0x2c], 7
mov dword [eax + 0x28], ecx
mov word [eax + 0x18], cx
mov byte [esp + 0x18], 3
mov dword [eax + 0x30], ecx
mov dword [eax + 0x34], ecx
mov dword [eax + 0x38], ecx
mov dword [eax + 0x3c], ecx
mov dword [eax + 0x40], ecx
mov byte [eax + 0x44], cl
mov dword [esp + 0x18], 0xffffffff
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x14
ret
Function at 0x10023c50
Capabilities:
Check os version

Disassembly:
sub esp, 0x128
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x124], eax
push esi
push 0x110
lea eax, [esp + 0x14]
mov esi, ecx
push 0
push eax
call fcn.100639b0
add esp, 0xc
mov dword [esp + 0xc], 0x114
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x10023ce0
cmp dword [esp + 0x10], 6
jb 0x10023ce0
lea eax, [esp + 8]
mov dword [esp + 8], 0x207
push eax
push esi
push str.Progid
mov edx, str.SoftwareMicrosoftWindowsShellAssociationsUrlAssociationshttpUserChoice
mov ecx, reloc.gdiplus.dll_Ordinal_1
call fcn.10023a30
add esp, 0xc
test al, al
je 0x10023ce0
cmp word [esi], 0
je 0x10023ce0
mov al, 1
pop esi
mov ecx, dword [esp + 0x124]
xor ecx, esp
call fcn.1005d006
add esp, 0x128
ret
lea eax, [esp + 4]
mov dword [esp + 4], 0x207
push eax
push esi
push 0
mov edx, str.http_shellopencommand
mov ecx, SysReAllocStringLen
call fcn.10023a30
add esp, 0xc
test al, al
je 0x10023d0c
cmp word [esi], 0
jne 0x10023cc8
lea eax, [esp + 4]
mov dword [esp + 4], 0x207
push eax
push esi
push 0
mov edx, str.SoftwareClasses.html
mov ecx, reloc.gdiplus.dll_Ordinal_1
call fcn.10023a30
add esp, 0xc
test al, al
je 0x10023d38
cmp word [esi], 0
jne 0x10023cc8
mov ecx, dword [esp + 0x128]
xor al, al
pop esi
xor ecx, esp
call fcn.1005d006
add esp, 0x128
ret