joyce8/EMBER2024-capa huggingface dataset:
Function at 0x108f4e8
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x46c
mov eax, dword [0x10b5894]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 8]
push ebx
push esi
mov eax, edx
push edi
mov dword [ebp - 0x464], edx
lea esi, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x108f50e
sub eax, esi
sar eax, 1
mov edi, eax
lea eax, [edi + 4]
mov esi, 0x104
cmp eax, esi
jb 0x108f541
mov ebx, 0x8007006f
push ebx
push 0x37f0197
mov dword [ebp - 0x460], ebx
push edx
jmp 0x108f659
push edx
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.01028f74
push 0x101b834
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.0102920e
inc edi
mov eax, esi
sub eax, edi
mov dword [ebp - 0x46c], eax
lea eax, [ebp - 0x45c]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x468], eax
jne 0x108f5aa
call fcn.010a4804
test eax, eax
mov dword [ebp - 0x460], eax
je 0x108f5aa
push eax
push 0x38b0197
call fcn.0107ae44
jmp 0x108f65e
and dword [ebp - 0x460], 0
mov ebx, 0x8007006f
test byte [ebp - 0x45c], 0x10
jne 0x108f61c
lea eax, [ebp - 0x430]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x108f5c8
sub eax, edx
sar eax, 1
add eax, edi
cmp eax, esi
jb 0x108f5f5
push ebx
push 0x3960197
push dword [ebp - 0x464]
mov dword [ebp - 0x460], ebx
call fcn.0107ae7f
jmp 0x108f61c
lea eax, [ebp - 0x430]
push eax
push dword [ebp - 0x46c]
lea eax, [ebp + edi*2 - 0x20c]
push eax
call fcn.01028f74
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x45c]
push eax
push dword [ebp - 0x468]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x108f5b6
push dword [ebp - 0x468]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 0x460], 0
je 0x108f65e
push dword [ebp - 0x460]
push 0x39e0197
push dword [ebp - 0x464]
call fcn.0107ae7f
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x460]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01068363
leave
ret 4
Function at 0x109719b
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0x14]
push ebx
push esi
xor esi, esi
mov dword [eax], esi
mov eax, dword [ebp + 0x18]
cmp eax, esi
push edi
mov dword [ebp - 4], esi
je 0x10971b9
mov dword [eax], esi
mov eax, dword [ebp + 0x10]
cmp eax, esi
je 0x10971c2
mov dword [eax], esi
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0xc]
push eax
push esi
lea eax, [ebp - 8]
push eax
push esi
jmp 0x1097218
test esi, esi
mov eax, dword [ebp - 0xc]
jne 0x1097238
cmp dword [ebp - 8], 7
je 0x10971e7
cmp dword [ebp - 8], 1
jne 0x10971f9
test al, 1
mov dword [ebp - 4], 4
je 0x10971f9
mov dword [ebp - 4], 5
mov ecx, dword [ebp - 4]
add eax, ecx
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
je 0x1097269
lea eax, [ebp - 0xc]
push eax
push esi
lea eax, [ebp - 8]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call ebx
mov edi, eax
test edi, edi
je 0x10971d4
push 2
push edi
push 0x1e101b5
push dword [ebp + 0xc]
call fcn.0107adc0
jmp 0x1097279
push dword [ebp - 4]
add eax, esi
push 0
push eax
call sub.msvcrt.dll_memset
mov eax, dword [ebp + 0x10]
add esp, 0xc
test eax, eax
je 0x1097254
mov ecx, dword [ebp - 8]
mov dword [eax], ecx
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x1097260
mov ecx, dword [ebp - 0xc]
mov dword [eax], ecx
mov eax, dword [ebp + 0x14]
mov dword [eax], esi
xor edi, edi
jmp 0x1097279
mov edi, 0x8007000e
push edi
push 0x1f801b5
call fcn.0107ae44
push edi
call fcn.010a47cf
pop edi
pop esi
pop ebx
leave
ret 0x14

Function at 0x1097496
Capabilities:
Delete registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x18], edi
mov dword [ebp - 8], edi
mov dword [ebp - 4], edi
jne 0x10974ce
lea eax, [ebp - 4]
push eax
push 1
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.01097376
mov esi, eax
cmp esi, edi
je 0x10974d3
push esi
push 0x7701b5
jmp 0x1097517
mov eax, dword [ebp + 8]
jmp 0x10974d6
mov eax, dword [ebp - 4]
lea ecx, [ebp - 8]
push ecx
push 0xf003f
push edi
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
cmp esi, edi
je 0x10974fa
push esi
push 0x8401b5
jmp 0x1097517
push dword [ebp + 0x14]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov esi, eax
cmp esi, 2
je 0x109751e
cmp esi, edi
je 0x109751e
push esi
push 0x8901b5
call fcn.0107ae44
jmp 0x1097520
xor esi, esi
cmp dword [ebp - 4], edi
je 0x109752e
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 8], edi
je 0x109753c
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call fcn.010a47cf
pop edi
pop esi
leave
ret 0x14
Function at 0x109756e
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
xor ebx, ebx
cmp dword [ebp + 0x2c], ebx
push esi
push edi
mov edi, dword [ebp + 0x28]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
jne 0x10975b2
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.01097376
mov esi, eax
cmp esi, ebx
je 0x10975b2
push esi
push 0x16001b5
jmp 0x109766b
cmp dword [ebp + 8], ebx
je 0x10975e2
lea eax, [ebp - 4]
push eax
push 0x80000002
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegConnectRegistryW]
mov esi, eax
cmp esi, ebx
je 0x10975e9
push esi
push 0x16601b5
push dword [ebp + 8]
call fcn.0107ae7f
jmp 0x1097674
mov dword [ebp - 4], 0x80000002
cmp dword [ebp + 0x2c], ebx
mov eax, dword [ebp + 0xc]
jne 0x10975f4
mov eax, dword [ebp - 8]
lea ecx, [ebp + 0x28]
push ecx
lea ecx, [ebp - 0xc]
push ecx
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, eax
cmp esi, ebx
je 0x109761d
push esi
push 0x17501b5
jmp 0x109766b
cmp dword [ebp + 0x1c], ebx
je 0x1097672
mov eax, dword [ebp + 0x24]
cmp eax, ebx
mov ecx, dword [ebp + 0x20]
je 0x1097630
cmp edi, ebx
jne 0x109764f
cmp ecx, ebx
jbe 0x109764f
cmp ecx, 2
jbe 0x1097647
cmp ecx, 7
jne 0x109764f
mov eax, 0x1018568
push 4
jmp 0x109764e
mov eax, 0x1001ea0
push 2
pop edi
push edi
push eax
push ecx
push ebx
push dword [ebp + 0x1c]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
cmp esi, ebx
je 0x1097672
push esi
push 0x18f01b5
call fcn.0107ae44
jmp 0x1097674
xor esi, esi
cmp dword [ebp - 4], ebx
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x109768d
cmp dword [ebp - 4], 0x80000002
je 0x109768d
push dword [ebp - 4]
call edi
cmp dword [ebp - 8], ebx
je 0x109769b
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 0xc], ebx
je 0x10976a5
push dword [ebp - 0xc]
call edi
push esi
call fcn.010a47cf
pop edi
pop esi
pop ebx
leave
ret 0x28
Function at 0x1099958
Capabilities:
Get user security identifier

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
lea eax, [ebp - 8]
xor ebx, ebx
push eax
push 2
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0x14], ebx
call fcn.0107baec
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x1099995
push eax
push 0x2180199
call fcn.0107ae44
jmp 0x1099a56
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
lea eax, [ebp - 0x18]
push eax
push ebx
push dword [ebp - 8]
push ebx
call edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x10999cb
call fcn.010a4804
push eax
push 0x2250199
jmp 0x1099a4d
mov eax, dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_LocalAlloc]
add eax, eax
push eax
push ebx
call esi
cmp eax, ebx
mov dword [ebp - 0xc], eax
jne 0x10999ee
mov eax, 0x8007000e
push eax
push 0x22e0199
jmp 0x1099a4d
push dword [ebp - 0x18]
push ebx
call esi
mov esi, eax
cmp esi, ebx
mov dword [ebp - 0x14], esi
jne 0x1099a0a
mov eax, 0x8007000e
push eax
push 0x2370199
jmp 0x1099a4d
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0xc]
lea eax, [ebp - 0x18]
push eax
push esi
push dword [ebp - 8]
push ebx
call edi
test eax, eax
jne 0x1099a31
call fcn.010a4804
push eax
push 0x2440199
jmp 0x1099a4d
mov eax, dword [ebp - 0x20]
add eax, 0x44
push eax
push esi
call fcn.01097150
test eax, eax
jne 0x1099a55
call fcn.010a4804
push eax
push 0x24c0199
mov dword [ebp - 4], eax
call fcn.0107ae44
pop edi
cmp dword [ebp - 8], ebx
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
je 0x1099a66
push dword [ebp - 8]
call esi
cmp dword [ebp - 0xc], ebx
je 0x1099a70
push dword [ebp - 0xc]
call esi
cmp dword [ebp - 0x14], ebx
je 0x1099a7a
push dword [ebp - 0x14]
call esi
mov eax, dword [ebp - 4]
pop esi
pop ebx
leave
ret
Function at 0x109e82f
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push edi
mov edi, dword [esi + 0x24]
mov dword [ebp - 0xc], edi
jmp 0x109e844
mov edi, dword [ebp - 0xc]
mov ecx, dword [esi + 0x64]
mov eax, dword [esi + 0x34]
mov edx, dword [esi + 0x6c]
sub eax, ecx
sub eax, edx
mov dword [ebp - 8], eax
jne 0x109e863
test ecx, ecx
jne 0x109e871
test edx, edx
jne 0x109e871
mov dword [ebp - 8], edi
jmp 0x109e8db
cmp eax, 0xffffffff
jne 0x109e871
mov dword [ebp - 8], 0xfffffffe
jmp 0x109e8db
mov eax, dword [esi + 0x24]
lea eax, [edi + eax - 0x106]
cmp ecx, eax
jb 0x109e8db
mov eax, dword [esi + 0x30]
push edi
lea ecx, [eax + edi]
push ecx
push eax
call sub.msvcrt.dll_memcpy
mov ecx, dword [esi + 0x44]
mov eax, dword [esi + 0x3c]
sub dword [esi + 0x68], edi
sub dword [esi + 0x64], edi
add esp, 0xc
sub dword [esi + 0x54], edi
lea eax, [eax + ecx*2]
dec eax
dec eax
movzx edx, word [eax]
mov ebx, edx
sub ebx, edi
cmp edx, edi
sbb edx, edx
not edx
and edx, ebx
dec ecx
mov word [eax], dx
jne 0x109e8a2
mov eax, dword [esi + 0x38]
mov edx, edi
lea eax, [eax + edi*2]
dec eax
dec eax
movzx ecx, word [eax]
mov ebx, ecx
sub ebx, edi
cmp ecx, edi
sbb ecx, ecx
not ecx
and ecx, ebx
dec edx
mov word [eax], cx
jne 0x109e8c1
add dword [ebp - 8], edi
mov edi, dword [esi]
cmp dword [edi + 4], 0
je 0x109e97e
mov ebx, dword [esi + 0x6c]
add ebx, dword [esi + 0x64]
mov eax, dword [edi + 4]
mov ecx, dword [ebp - 8]
add ebx, dword [esi + 0x30]
cmp eax, ecx
mov dword [ebp - 4], eax
jbe 0x109e900
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0
jne 0x109e90a
xor eax, eax
jmp 0x109e93f
sub eax, dword [ebp - 4]
mov dword [edi + 4], eax
mov eax, dword [edi + 0x1c]
cmp dword [eax + 0x18], 0
jne 0x109e929
push dword [ebp - 4]
push dword [edi]
push dword [edi + 0x30]
call fcn.0109f5ee
mov dword [edi + 0x30], eax
push dword [ebp - 4]
push dword [edi]
push ebx
call sub.msvcrt.dll_memcpy
mov eax, dword [ebp - 4]
add dword [edi], eax
add esp, 0xc
add dword [edi + 8], eax
add dword [esi + 0x6c], eax
mov edi, dword [esi + 0x6c]
cmp edi, 3
jb 0x109e96a
mov eax, dword [esi + 0x64]
mov ecx, dword [esi + 0x30]
lea edx, [eax + ecx]
movzx eax, byte [edx]
mov ecx, dword [esi + 0x50]
mov dword [esi + 0x40], eax
shl eax, cl
movzx ecx, byte [edx + 1]
xor eax, ecx
and eax, dword [esi + 0x4c]
mov dword [esi + 0x40], eax
cmp edi, 0x106
jae 0x109e97e
mov eax, dword [esi]
cmp dword [eax + 4], 0
jne 0x109e841
pop edi
pop ebx
leave
ret
Function at 0x10a4efc
Capabilities:
Parse url

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x670
mov eax, dword [0x10b5894]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
xor edi, edi
push 0x3c
lea eax, [ebp - 0x670]
push edi
push eax
mov dword [esi], edi
call sub.msvcrt.dll_memset
lea eax, [ebp - 0x18]
mov dword [ebp - 0x66c], eax
lea eax, [ebp - 0x630]
mov dword [ebp - 0x660], eax
mov eax, 0x104
add esp, 0xc
mov dword [ebp - 0x65c], eax
mov dword [ebp - 0x640], eax
mov dword [ebp - 0x638], eax
lea eax, [ebp - 0x670]
push eax
push 0x80000000
lea ecx, [ebp - 0x428]
mov dword [ebp - 0x644], ecx
push edi
lea ecx, [ebp - 0x220]
push ebx
mov dword [ebp - 0x670], 0x3c
mov dword [ebp - 0x668], 0xa
mov dword [ebp - 0x63c], ecx
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
jne 0x10a4fa9
call fcn.010a4804
mov ebx, eax
jmp 0x10a5013
xor ebx, ebx
mov dword [ebp - 0x634], ebx
lea eax, [ebp - 0x634]
push eax
push edi
push ebx
lea eax, [ebp - 0x670]
push eax
call dword [sym.imp.WININET.dll_InternetCreateUrlW]
test eax, eax
jne 0x10a4fde
call fcn.010a4804
mov ebx, eax
cmp ebx, 0x8007007a
jne 0x10a5008
test edi, edi
jne 0x10a500c
xor ebx, ebx
cmp edi, ebx
jne 0x10a4fff
push dword [ebp - 0x634]
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
cmp edi, ebx
je 0x10a5003
shr dword [ebp - 0x634], 1
jmp 0x10a4fb1
mov dword [esi], edi
jmp 0x10a5013
mov ebx, 0x8007000e
test edi, edi
je 0x10a5013
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.01068363
leave
ret 8

Function at 0x10a5ddf
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x10b5894]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x20
lea eax, [ebp - 0x44]
push eax
push 8
push 0x404
mov esi, 0xc04
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x10a5e33
push 3
lea eax, [ebp - 0x44]
push 0x1022a58
push eax
call sub.msvcrt.dll_wcsncmp
add esp, 0xc
mov esi, eax
neg esi
sbb esi, esi
and esi, 0xfffff800
add esi, 0xc04
mov ecx, dword [ebp - 4]
mov ax, si
xor ecx, ebp
pop esi
call fcn.01068363
leave
ret
Function at 0x10a5e59
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x10b5894]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, 0x11c
push esi
lea eax, [ebp - 0x120]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x120]
mov dword [ebp - 0x120], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
push eax
call esi
test eax, eax
jne 0x10a5eb2
lea eax, [ebp - 0x120]
push eax
mov dword [ebp - 0x120], 0x114
call esi
mov ecx, dword [ebp - 0x110]
mov edx, dword [ebp - 0x11c]
xor eax, eax
dec ecx
pop esi
je 0x10a5f06
dec ecx
jne 0x10a5f29
cmp edx, 5
jne 0x10a5efe
mov ecx, dword [ebp - 0x118]
sub ecx, eax
je 0x10a5efa
dec ecx
je 0x10a5eef
dec ecx
je 0x10a5ee0
push 0x14
jmp 0x10a5f51
cmp word [ebp - 0xc], 1
jb 0x10a5eea
push 0x10
pop eax
or eax, 4
jmp 0x10a5f29
cmp word [ebp - 0xc], 2
jb 0x10a5eea
push 8
jmp 0x10a5ee9
push 4
jmp 0x10a5f51
cmp edx, 4
ja 0x10a5f35
push 2
pop eax
cmp edx, 4
jne 0x10a5f29
cmp dword [ebp - 0x118], 0
je 0x10a5f26
cmp dword [ebp - 0x118], 0xa
je 0x10a5f26
cmp dword [ebp - 0x118], 0x5a
jne 0x10a5f29
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.01068363
leave
ret
cmp edx, 6
jne 0x10a5f54
cmp dword [ebp - 0x118], 0
jne 0x10a5f54
cmp dword [ebp - 0x114], 0x1554
jae 0x10a5f54
push 0x40
pop eax
jmp 0x10a5f29
push 0x20
jmp 0x10a5f51

Function at 0x10a6084
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x10b5894]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor esi, esi
cmp word [0x10b91f0], si
jne 0x10a611c
lea eax, [ebp - 0x10]
push eax
push 1
push esi
push 0x1022988
push 0x80000002
mov dword [ebp - 0x14], 6
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10a611c
push edi
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
push esi
push 0x1022a40
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x10]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, esi
pop edi
jne 0x10a611c
push 3
push dword [esi*8 + 0x10227d8]
lea eax, [ebp - 0xc]
push eax
call sub.msvcrt.dll__wcsnicmp
add esp, 0xc
test eax, eax
je 0x10a610e
inc esi
cmp esi, 0x1c
jb 0x10a60ed
jmp 0x10a611c
mov ax, word [esi*8 + 0x10227dc]
mov word [0x10b91f0], ax
mov ecx, dword [ebp - 4]
mov ax, word [0x10b91f0]
xor ecx, ebp
pop esi
call fcn.01068363
leave
ret
Function at 0x418120
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45165d
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x46e224]
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 eax, dword [ebp + 8]
xor ecx, ecx
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], cx
mov dword [ebp - 4], ecx
lea ecx, [ebp - 0x28]
push ecx
push 3
push eax
call fcn.0042a5a0
add esp, 0xc
cmp dword [ebp - 0x18], 0
je 0x4181ba
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x2c]
lea eax, [ebp - 0x28]
mov dword [ebp - 0x2c], 0
cmovae eax, dword [ebp - 0x28]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov esi, eax
mov dword [ebp - 4], 0
push esi
push dword [ebp - 0x2c]
mov ecx, edi
call fcn.00417db0
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x4181f0
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4181e6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41820d
push edx
push ecx
call fcn.00432145
add esp, 8
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.00432107
mov esp, ebp
pop ebp
ret 4
call fcn.00436c8f
int3

Function at 0x418c30
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
mov dword [ebp + 8], 0
push edi
test esi, esi
je 0x418c57
call fcn.0041e480
cmp eax, 1
jl 0x418c57
mov dword [ebp + 8], 0x10000
jmp 0x418c59
xor esi, esi
push 8
call fcn.00432115
mov ecx, dword [ebp + 0xc]
add esp, 4
mov edi, dword [ebp + 0x10]
mov ebx, eax
test edi, edi
push 0
push dword [ebp + 8]
mov dword [ebx], ecx
setne cl
push ebx
push 0x418f90
push esi
push 0
mov byte [ebx + 4], cl
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x418c9f
push 8
push ebx
call fcn.00432145
add esp, 8
xor al, al
pop edi
pop esi
pop ebx
pop ebp
ret
test edi, edi
je 0x418cac
mov dword [edi], eax
mov al, 1
pop edi
pop esi
pop ebx
pop ebp
ret
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov al, 1
pop ebx
pop ebp
ret
Function at 0x41b3e0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x451bdd
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x46e224]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov eax, dword [ebp + 8]
lea esi, [edi + 8]
mov dword [edi], eax
mov ecx, esi
mov dword [edi + 4], 0
mov dword [ebp + 8], esi
call fcn.0041aea0
push esi
lea ecx, [edi + 0x20]
mov dword [ebp - 4], 0
call fcn.0042b580
push esi
lea ecx, [edi + 0x24]
mov byte [ebp - 4], 1
call fcn.0042b580
push esi
lea ecx, [edi + 0x28]
mov byte [ebp - 4], 2
call fcn.0042b580
mov eax, dword [ebp + 0xc]
lea ecx, [edi + 0x30]
push dword [ebp + 0x10]
mov byte [ebp - 4], 3
mov dword [edi + 0x2c], eax
call fcn.00401f10
lea esi, [edi + 0x48]
mov byte [ebp - 4], 4
push 0x2c
mov dword [ebp + 8], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.00432115
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
lea esi, [edi + 0x50]
mov byte [ebp - 4], 5
push 0x1c
mov dword [ebp + 8], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.00432115
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
lea esi, [edi + 0x64]
mov byte [edi + 0x58], 0
mov dword [edi + 0x5c], 0
mov dword [edi + 0x60], 0
push 0x60
mov byte [ebp - 4], 6
mov dword [ebp + 8], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.00432115
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
lea esi, [edi + 0x7c]
mov dword [edi + 0x70], 0
mov dword [edi + 0x74], 0
mov dword [edi + 0x78], 0
mov byte [ebp - 4], 7
mov dword [ebp + 8], esi
mov dword [esi], 0
mov dword [esi + 4], 0
push 0x14
call fcn.00432115
add esp, 0x10
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
mov eax, dword [ebp + 0x14]
mov dword [edi + 0x8c], eax
mov eax, edi
mov dword [edi + 0x84], 0
mov byte [edi + 0x88], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
Function at 0x426540
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x452d8f
mov eax, dword fs:[0]
push eax
sub esp, 0x148
push esi
mov eax, dword [0x46e224]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov esi, dword [ebp + 8]
mov dword [esi], eax
cmp eax, 0xffffffff
jne 0x426639
push 1
lea ecx, [ebp - 0xa4]
call fcn.00408a40
push 0x46433c
push 0xffffffffffffffff
push str._vs.
push dword [esi]
lea eax, [ebp - 0xa4]
mov dword [ebp - 4], 0
push 0x464348
push str.slot_____DWORD_0xFFFFFFFF_
push eax
call fcn.00402200
add esp, 8
push eax
call fcn.00402200
add esp, 8
mov ecx, eax
call fcn.004091b0
push eax
call fcn.00402200
add esp, 8
mov ecx, eax
call fcn.004091b0
push eax
call fcn.00402200
push 0x18
call fcn.00432115
add esp, 0xc
mov dword [ebp + 8], eax
mov byte [ebp - 4], 1
test eax, eax
je 0x426603
push eax
lea ecx, [ebp - 0xa4]
call fcn.00408960
mov esi, eax
jmp 0x426605
xor esi, esi
lea ecx, [ebp - 0xa4]
mov dword [ebp - 4], 0xffffffff
call fcn.00406760
test esi, esi
je 0x426639
push esi
push 0x12
push str.D:360Work2.vpn_turbowin_turbo_base_threading_thread_local_win.cc
lea ecx, [ebp - 0x154]
call fcn.0040e580
lea ecx, [ebp - 0x154]
call fcn.0040e6b0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x426670
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x450111
mov eax, dword fs:[0]
push eax
sub esp, 0xb4
push ebx
mov eax, dword [0x46e224]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
push dword [ebp + 0xc]
mov dword [ebp - 0x10], ebx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x4266fa
call fcn.0040f710
cmp eax, 4
jg 0x4266ea
push 4
push 0x24
push str.D:360Work2.vpn_turbowin_turbo_base_threading_thread_local_win.cc
lea ecx, [ebp - 0xc0]
call fcn.0040e4f0
mov dword [ebp - 4], ebx
add eax, 8
push str.Failed_to_TlsSetValue__.
mov ebx, 1
push eax
mov dword [ebp - 0x10], ebx
call fcn.00402200
add esp, 8
test bl, 1
je 0x4266fa
lea ecx, [ebp - 0xc0]
call fcn.0040e6b0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov esp, ebp
pop ebp
ret