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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x284
mov eax, dword [0x4d04a4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x10], 0
je 0x40a3e4
cmp byte [0x4d22c3], 0
je 0x40a3e4
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [ebp - 0x20c]
push 0x5c
push ecx
call fcn.00428b17
add esp, 8
test eax, eax
je 0x40a2ad
xor edx, edx
mov word [eax + 2], dx
push str.debug_message.exe
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.004295ef
add esp, 0xc
cmp dword [esi + 0x14], 0x10
jb 0x40a2d6
mov ecx, dword [esi]
mov dword [ebp - 0x230], ecx
jmp 0x40a2dc
mov dword [ebp - 0x230], esi
mov edx, dword [esi + 0x10]
lea eax, [ebp - 0x230]
push eax
lea ecx, [ebp - 0x228]
push ecx
mov dword [ebp - 0x22c], edx
call fcn.004125d0
add esp, 8
cmp dword [ebp - 0x218], 0
jne 0x40a31d
cmp dword [ebp - 0x214], 8
jb 0x40a3e4
mov edx, dword [ebp - 0x228]
push edx
jmp 0x40a3dc
push 0x44
lea eax, [ebp - 0x284]
push 0
push eax
call fcn.00426fc0
mov eax, dword [ebp - 0x228]
add esp, 0xc
cmp dword [ebp - 0x214], 8
mov dword [ebp - 0x284], 0x44
jae 0x40a34f
lea eax, [ebp - 0x228]
lea ecx, [ebp - 0x240]
push ecx
lea edx, [ebp - 0x284]
push edx
push 0
push 0
push 0
push 0
push 0
push 0
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x40a3a4
mov ecx, dword [ebp - 0x240]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [ebp - 0x23c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [ebp - 0x240]
push eax
call esi
jmp 0x40a3cc
cmp dword [ebp - 0x214], 8
mov eax, dword [ebp - 0x228]
jae 0x40a3b9
lea eax, [ebp - 0x228]
push 0x40010
push 0x48fc90
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp dword [ebp - 0x214], 8
jb 0x40a3e4
mov ecx, dword [ebp - 0x228]
push ecx
call fcn.00426825
add esp, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004271c4
mov esp, ebp
pop ebp
ret
Function at 0x40c550
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
jb 0x40c55e
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne al
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
jb 0x40c57e
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40c592
shr eax, 4
and eax, 1
pop ebp
ret
xor al, al
pop ebp
ret
Function at 0x40ca40
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4d04a4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x14], 8
push edi
mov dword [ebp - 0x24], 0
jb 0x40ca66
mov edi, dword [esi]
jmp 0x40ca68
mov edi, esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40ca89
shr al, 4
pop edi
and al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004271c4
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x20]
push eax
mov ecx, esi
call fcn.0040d390
cmp dword [esi + 0x14], 8
mov ecx, dword [esi + 0x10]
jb 0x40caa1
mov eax, dword [esi]
jmp 0x40caa3
mov eax, esi
push ecx
mov ecx, dword [ebp - 0x10]
push eax
push ecx
push 0
lea ecx, [ebp - 0x20]
call fcn.00404880
test eax, eax
jne 0x40cad1
lea ecx, [ebp - 0x20]
call fcn.00446200
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004271c4
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 0x20]
push edx
call fcn.0040ca40
add esp, 4
test al, al
je 0x40cab7
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40cb08
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40cab7
push esi
call fcn.0040c570
add esp, 4
test al, al
je 0x40cab7
lea ecx, [ebp - 0x20]
call fcn.00446200
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
mov al, 1
pop esi
call fcn.004271c4
mov esp, ebp
pop ebp
ret

Function at 0x40cb90
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x4d04a4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x210]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0x102
ja 0x40cc79
xor ecx, ecx
lea eax, [ebp - 0x210]
mov dword [ebp - 0x218], 7
mov dword [ebp - 0x21c], 0
mov word [ebp - 0x22c], cx
lea edx, [eax + 2]
jmp 0x40cbf0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40cbf0
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp - 0x210]
push edx
lea ecx, [ebp - 0x22c]
call fcn.00402280
lea eax, [ebp - 0x248]
push eax
lea ecx, [ebp - 0x22c]
push ecx
lea ecx, [ebp - 0x264]
call fcn.0040d270
mov ecx, eax
call fcn.0040d6a0
push eax
mov ecx, esi
call fcn.0040d370
lea ecx, [ebp - 0x248]
call fcn.00446200
lea ecx, [ebp - 0x264]
call fcn.00446200
cmp dword [ebp - 0x218], 8
jb 0x40cc68
mov edx, dword [ebp - 0x22c]
push edx
call fcn.00426825
add esp, 4
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004271c4
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor al, al
pop esi
call fcn.004271c4
mov esp, ebp
pop ebp
ret
Function at 0x40cc90
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x260
mov eax, dword [0x4d04a4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x20c]
push ecx
xor eax, eax
push 0x104
mov word [ebp - 0x20c], ax
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x40cd89
cmp eax, 0x104
ja 0x40cd89
xor edx, edx
lea eax, [ebp - 0x20c]
mov word [ebp - 0x228], dx
mov dword [ebp - 0x214], 7
mov dword [ebp - 0x218], 0
lea edx, [eax + 2]
jmp 0x40cd00
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40cd00
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x228]
call fcn.00402280
lea ecx, [ebp - 0x244]
push ecx
lea edx, [ebp - 0x228]
push edx
lea ecx, [ebp - 0x260]
call fcn.0040d270
mov ecx, eax
call fcn.0040d6a0
push eax
mov ecx, esi
call fcn.0040d370
lea ecx, [ebp - 0x244]
call fcn.00446200
lea ecx, [ebp - 0x260]
call fcn.00446200
cmp dword [ebp - 0x214], 8
jb 0x40cd78
mov eax, dword [ebp - 0x228]
push eax
call fcn.00426825
add esp, 4
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004271c4
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor al, al
pop esi
call fcn.004271c4
mov esp, ebp
pop ebp
ret

Function at 0x40cda0
Capabilities:
Check if file exists
Get file attributes
Move file

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov eax, 0x104
push edi
cmp dword [esi + 0x10], eax
jae 0x40ce39
mov edi, dword [ebp + 0xc]
cmp dword [edi + 0x10], eax
jae 0x40ce39
mov eax, 8
cmp dword [edi + 0x14], eax
jb 0x40cdcc
mov ecx, dword [edi]
jmp 0x40cdce
mov ecx, edi
cmp dword [esi + 0x14], eax
jb 0x40cdd7
mov eax, dword [esi]
jmp 0x40cdd9
mov eax, esi
push 3
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x40cded
pop edi
mov al, 1
pop esi
pop ebp
ret
push ebx
xor bl, bl
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [esi + 0x14], 8
mov dword [ebp + 8], eax
jb 0x40ce03
mov eax, dword [esi]
jmp 0x40ce05
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40ce28
shr eax, 4
and al, 1
je 0x40ce28
push edi
push esi
call fcn.0040cb30
mov bl, al
add esp, 8
test bl, bl
jne 0x40ce32
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov al, bl
pop ebx
pop edi
pop esi
pop ebp
ret
pop edi
xor al, al
pop esi
pop ebp
ret
Function at 0x410260
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4d04a4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
lea edx, [ebp - 0x20]
push edx
mov edi, ecx
xor esi, esi
mov dword [ebp - 0x24], esi
xor ecx, ecx
push 3
push eax
mov dword [ebp - 0xc], 7
mov dword [ebp - 0x10], esi
mov word [ebp - 0x20], cx
call fcn.00414db0
add esp, 0xc
cmp dword [ebp - 0x10], esi
je 0x4102cf
cmp dword [ebp - 0xc], 8
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x24], esi
jae 0x4102af
lea eax, [ebp - 0x20]
lea ecx, [ebp - 0x24]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov edx, dword [ebp - 0x24]
mov esi, eax
push esi
push edx
mov ecx, edi
call fcn.00410160
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 0xc], 8
jb 0x4102e1
mov eax, dword [ebp - 0x20]
push eax
call fcn.00426825
add esp, 4
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004271c4
mov esp, ebp
pop ebp
ret 4

Function at 0x410300
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x4d04a4]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x4d22e8], 0
je 0x410329
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004271c4
mov esp, ebp
pop ebp
ret
push 0x24
call fcn.00426f3b
add esp, 4
test eax, eax
je 0x410347
push 0
mov ecx, eax
call fcn.0040fc80
mov dword [0x4d22e8], eax
jmp 0x410351
mov dword [0x4d22e8], 0
push esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
xor ecx, ecx
mov word [ebp - 0x20], cx
mov ecx, eax
mov dword [ebp - 0xc], 7
mov dword [ebp - 0x10], 0
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x410371
sub ecx, esi
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x20]
call fcn.00402280
mov ecx, dword [0x4d22e8]
lea edx, [ebp - 0x20]
push edx
call fcn.00410260
cmp dword [ebp - 0xc], 8
pop esi
jb 0x4103ac
mov eax, dword [ebp - 0x20]
push eax
call fcn.00426825
add esp, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov al, 1
call fcn.004271c4
mov esp, ebp
pop ebp
ret
Function at 0x410f50
Capabilities:
Check os version
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1f8
mov eax, dword [0x4d04a4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x124], ebx
push edi
mov dword [esi], ebx
mov dword [esi + 0x18], 3
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push str.IsWow64Process
push str.kernel32.dll
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x410fc2
lea ecx, [ebp - 0x124]
push ecx
push edi
mov dword [ebp - 0x124], ebx
call eax
test eax, eax
jne 0x410fb7
mov eax, 2
jmp 0x410fc2
xor eax, eax
cmp dword [ebp - 0x124], eax
setne al
mov dword [esi + 0x24], eax
push 0x118
lea edx, [ebp - 0x11c]
push 0
mov dword [esi + 0x3c], 0xf
mov dword [esi + 0x38], ebx
mov byte [esi + 0x28], bl
push edx
mov dword [ebp - 0x120], 0x11c
call fcn.00426fc0
add esp, 0xc
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [ebp - 0x11c]
mov ecx, dword [ebp - 0x118]
mov edx, dword [ebp - 0x114]
mov dword [esi + 4], eax
mov dword [esi + 8], ecx
mov dword [esi + 0xc], edx
cmp eax, 5
jne 0x411037
test ecx, ecx
jle 0x4110fa
xor eax, eax
cmp ecx, 1
setne al
inc eax
mov dword [esi], eax
jmp 0x4110fa
cmp eax, 6
jne 0x4110a5
sub ecx, ebx
je 0x41109d
dec ecx
je 0x411095
cmp dword [0x4d22a8], 1
jne 0x41108d
call fcn.00409390
cmp eax, 3
jg 0x41108d
mov ecx, dword [esi + 8]
push str.version_number_.minor__2
push 2
push ecx
call fcn.00410f20
add esp, 0xc
test eax, eax
je 0x41108d
push eax
push 3
push 0x37
push str.winwindows_version.cc
lea ecx, [ebp - 0x1f8]
call fcn.0040b300
lea ecx, [ebp - 0x1f8]
call fcn.0040b9e0
mov dword [esi], 5
jmp 0x4110fa
mov dword [esi], 4
jmp 0x4110fa
mov dword [esi], 3
jmp 0x4110fa
jle 0x4110fa
cmp dword [0x4d22a8], 1
jne 0x4110e4
call fcn.00409390
cmp eax, 3
jg 0x4110e4
push 3
push 0x3d
push str.winwindows_version.cc
lea ecx, [ebp - 0x1f8]
mov ebx, 1
call fcn.0040b170
add eax, 8
push str.Check_failed:_false.
push eax
call fcn.00402810
add esp, 8
test bl, 1
je 0x4110f4
lea ecx, [ebp - 0x1f8]
call fcn.0040b9e0
mov dword [esi], 6
movzx eax, word [ebp - 0xa]
movzx edx, word [ebp - 0xc]
mov dword [esi + 0x14], eax
xor eax, eax
lea ecx, [ebp - 0x148]
xor edi, edi
push ecx
mov dword [esi + 0x10], edx
mov dword [ebp - 0x148], edi
mov dword [ebp - 0x144], eax
mov dword [ebp - 0x140], eax
mov dword [ebp - 0x13c], eax
mov dword [ebp - 0x138], eax
mov dword [ebp - 0x134], eax
mov dword [ebp - 0x130], eax
mov dword [ebp - 0x12c], eax
mov dword [ebp - 0x128], eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
movzx eax, word [ebp - 0x148]
cmp eax, edi
je 0x411176
cmp eax, 6
je 0x41116d
cmp eax, 9
jne 0x411179
mov dword [esi + 0x18], 1
jmp 0x411179
mov dword [esi + 0x18], 2
jmp 0x411179
mov dword [esi + 0x18], edi
mov eax, dword [ebp - 0x12c]
mov edx, dword [ebp - 0x134]
mov ecx, dword [ebp - 4]
mov dword [esi + 0x20], eax
pop edi
mov dword [esi + 0x1c], edx
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.004271c4
mov esp, ebp
pop ebp
ret
Function at 0x413a20
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4d04a4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0x44], ebx
je 0x413b5a
cmp byte [edi + 0x49], bl
je 0x413b5a
mov eax, dword [edi]
mov edx, dword [eax + 0xc]
push 0xffffffffffffffff
call edx
cmp eax, 0xffffffff
jne 0x413a68
pop edi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004271c4
mov esp, ebp
pop ebp
ret
mov ecx, 0xf
xor eax, eax
mov byte [ebp - 0x20], bl
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x10], 8
cmp ecx, 0x10
jae 0x413a8a
lea eax, [ebp - 0x20]
mov byte [eax + 8], bl
push esi
mov eax, dword [ebp - 0x20]
mov ebx, dword [ebp - 0xc]
mov edx, eax
cmp ebx, 0x10
jae 0x413aa0
lea edx, [ebp - 0x20]
mov eax, edx
add edx, dword [ebp - 0x10]
mov ecx, dword [edi + 0x44]
mov esi, dword [ecx]
lea ebx, [ebp - 0x24]
push ebx
push edx
push eax
lea eax, [edi + 0x4c]
push eax
mov eax, dword [esi + 0x18]
call eax
sub eax, 0
je 0x413adf
dec eax
je 0x413ae3
sub eax, 2
lea ecx, [ebp - 0x20]
je 0x413b42
call fcn.00401a50
pop esi
pop edi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004271c4
mov esp, ebp
pop ebp
ret
mov byte [edi + 0x49], 0
mov ebx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x20]
mov ecx, eax
cmp ebx, 0x10
jae 0x413af3
lea ecx, [ebp - 0x20]
mov esi, dword [ebp - 0x24]
sub esi, ecx
je 0x413b1c
cmp ebx, 0x10
jae 0x413b02
lea eax, [ebp - 0x20]
mov ecx, dword [edi + 0x54]
push ecx
push esi
push 1
push eax
call fcn.0042864a
add esp, 0x10
cmp esi, eax
jne 0x413b3a
mov ebx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x20]
cmp byte [edi + 0x49], 0
je 0x413b3f
test esi, esi
jne 0x413a94
push esi
push 8
lea ecx, [ebp - 0x20]
call fcn.00401ca0
jmp 0x413a8e
lea ecx, [ebp - 0x20]
jmp 0x413ac7
lea ecx, [ebp - 0x20]
call fcn.00401a50
pop esi
pop edi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004271c4
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
mov al, 1
pop ebx
call fcn.004271c4
mov esp, ebp
pop ebp
ret

Function at 0x413b70
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10004
call fcn.00429d00
mov eax, dword [0x4d04a4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0x4903d0
push eax
call fcn.0040ce40
mov esi, eax
add esp, 8
test esi, esi
jne 0x413bb5
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004271c4
mov esp, ebp
pop ebp
ret
push esi
push 0x10000
lea eax, [ebp - 0x10004]
push 1
push eax
call fcn.0042a99f
add esp, 0x10
test eax, eax
je 0x413bfe
test edi, edi
je 0x413be3
push eax
lea ecx, [ebp - 0x10004]
push ecx
mov ecx, edi
call fcn.004026f0
push esi
push 0x10000
lea edx, [ebp - 0x10004]
push 1
push edx
call fcn.0042a99f
add esp, 0x10
test eax, eax
jne 0x413bd0
push esi
call fcn.004288e2
mov ecx, dword [ebp - 4]
add esp, 4
pop edi
xor ecx, ebp
mov al, 1
pop esi
call fcn.004271c4
mov esp, ebp
pop ebp
ret
Function at 0x419000
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10c0
call fcn.00429d00
mov eax, dword [0x4d04a4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
xor ebx, ebx
push esi
mov dword [ebp - 0x1008], ebx
cmp dword [0x4d22a8], 1
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
mov dword [ebp - 0x100c], eax
jne 0x419078
call fcn.00409390
cmp eax, 3
jg 0x419078
cmp dword [ebp - 0x100c], ebx
jne 0x419078
push 3
push 0xb7
push str.win_registry.cc
lea ecx, [ebp - 0x10c0]
mov ebx, 1
call fcn.0040b170
add eax, 8
push str.Check_failed:_out_value.
push eax
call fcn.00402810
add esp, 8
test bl, 1
je 0x419088
lea ecx, [ebp - 0x10c0]
call fcn.0040b9e0
lea ecx, [ebp - 0x1008]
push ecx
mov ecx, dword [esi]
lea edx, [ebp - 0x804]
push edx
lea eax, [ebp - 0x1010]
push eax
push 0
push edi
push ecx
mov dword [ebp - 0x1010], 1
mov dword [ebp - 0x1008], 0x800
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
jne 0x4190f9
mov eax, dword [ebp - 0x1010]
cmp eax, 1
jne 0x41910e
lea eax, [ebp - 0x804]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4190d7
mov ecx, dword [ebp - 0x100c]
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp - 0x804]
push edx
call fcn.00402280
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004271c4
mov esp, ebp
pop ebp
ret 8
cmp eax, 2
jne 0x419169
push 0x400
lea eax, [ebp - 0x1004]
push eax
lea ecx, [ebp - 0x804]
push ecx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [ebp - 0x1008], eax
test eax, eax
je 0x419151
cmp eax, 0x400
ja 0x419151
mov ecx, dword [ebp - 0x100c]
lea edx, [ebp - 0x1004]
push edx
call fcn.00406800
jmp 0x4190f9
pop edi
pop esi
mov eax, 0xea
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004271c4
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov eax, 0x3f4
pop ebx
call fcn.004271c4
mov esp, ebp
pop ebp
ret 8
Function at 0x4192e0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24c
mov eax, dword [0x4d04a4]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [ebp + 8], 0
push esi
mov esi, dword [ebp + 0xc]
je 0x4193c1
xor eax, eax
lea ecx, [ebp - 0x20c]
push ecx
push eax
push 0xffffffffffffffff
push 0x1a
push eax
mov word [ebp - 0x20c], ax
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jns 0x419332
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004271c4
mov esp, ebp
pop ebp
ret
xor edx, edx
lea eax, [ebp - 0x20c]
mov word [ebp - 0x244], dx
mov dword [ebp - 0x230], 7
mov dword [ebp - 0x234], 0
lea edx, [eax + 2]
jmp 0x419360
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x419360
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x244]
call fcn.00402280
lea ecx, [ebp - 0x244]
push ecx
lea ecx, [ebp - 0x228]
call fcn.0040d270
push eax
mov ecx, esi
call fcn.0040d370
lea ecx, [ebp - 0x228]
call fcn.00446200
cmp dword [ebp - 0x230], 8
jb 0x4193d4
mov edx, dword [ebp - 0x244]
push edx
call fcn.00426825
add esp, 4
jmp 0x4193d4
push esi
push 0x6c
call fcn.00411c80
add esp, 8
test al, al
je 0x419321
lea eax, [ebp - 0x24c]
push eax
lea ecx, [ebp - 0x228]
push ecx
mov ecx, esi
mov dword [ebp - 0x24c], str.Microsoft
mov dword [ebp - 0x248], 9
call fcn.0040da40
push eax
mov ecx, esi
call fcn.0040d370
lea ecx, [ebp - 0x228]
call fcn.00446200
lea edx, [ebp - 0x24c]
push edx
lea eax, [ebp - 0x228]
push eax
mov ecx, esi
mov dword [ebp - 0x24c], str.Internet_Explorer
mov dword [ebp - 0x248], 0x11
call fcn.0040da40
push eax
mov ecx, esi
call fcn.0040d370
lea ecx, [ebp - 0x228]
call fcn.00446200
lea ecx, [ebp - 0x24c]
push ecx
lea edx, [ebp - 0x228]
push edx
mov ecx, esi
mov dword [ebp - 0x24c], str.Quick_Launch
mov dword [ebp - 0x248], 0xc
call fcn.0040da40
push eax
mov ecx, esi
call fcn.0040d370
lea ecx, [ebp - 0x228]
call fcn.00446200
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov al, 1
pop esi
call fcn.004271c4
mov esp, ebp
pop ebp
ret

Function at 0x41a4a0
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov dword [ebp + 8], 0xffffffff
cmp eax, 0xffffffff
jne 0x41a4f4
push str.slot_____DWORD_0xFFFFFFFF_
lea eax, [ebp + 8]
push eax
push ecx
call fcn.0040b8a0
add esp, 0xc
test eax, eax
je 0x41a4f4
push eax
push 0x12
push str.threading_thread_local_win.cc
lea ecx, [ebp - 0xb0]
call fcn.0040b210
lea ecx, [ebp - 0xb0]
call fcn.0040b9e0
mov esp, ebp
pop ebp
ret
Function at 0x41d550
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1b4
mov eax, dword [0x4d0044]
mov dword [ebp - 4], 0
cmp eax, 0xffffffff
je 0x41d65c
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
test ebx, ebx
je 0x41d65b
push esi
push edi
mov ecx, 0x40
mov esi, ebx
lea edi, [ebp - 0x104]
lea eax, [ebp - 0x104]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [0x4d0044]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push ebx
call fcn.0042703a
add esp, 4
mov ebx, 0x40
mov esi, dword [0x4d2fd0]
xor edi, edi
xor dl, dl
cmp esi, edi
jle 0x41d5eb
mov eax, dword [ebp + esi*4 - 0x104]
cmp eax, edi
je 0x41d5e6
mov ecx, dword [esi*4 + 0x4d2ed0]
cmp ecx, edi
je 0x41d5e6
push eax
mov dword [ebp + esi*4 - 0x104], edi
call ecx
add esp, 4
mov dl, 1
dec esi
cmp esi, edi
jg 0x41d5c1
dec ebx
cmp ebx, edi
jle 0x41d5f6
test dl, dl
jne 0x41d5b3
jmp 0x41d64b
cmp dword [0x4d22a8], 1
jne 0x41d638
call fcn.00409390
cmp eax, 3
jg 0x41d638
push 3
push 0x8d
push str.threading_thread_local_storage_win.cc
lea ecx, [ebp - 0x1b4]
mov ebx, 1
call fcn.0040b170
add eax, 8
push str.Check_failed:_false.
push eax
call fcn.00402810
add esp, 8
jmp 0x41d63b
mov bl, byte [ebp - 4]
test bl, 1
je 0x41d64b
lea ecx, [ebp - 0x1b4]
call fcn.0040b9e0
mov edx, dword [0x4d0044]
push edi
push edx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x421eb0
Capabilities:
Create pipe

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x78], 0
jne 0x421f4d
push 0
push 1
push 0
mov dword [esi + 0x78], 2
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi + 0x4c], eax
test eax, eax
je 0x421f4d
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x90], eax
test eax, eax
je 0x421f4d
push 4
push 0xffffffffffffffff
push esi
push 0x421ea0
push eax
lea eax, [esi + 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
test eax, eax
je 0x421f4d
cmp dword [esi + 0x38], 8
lea eax, [esi + 0x24]
jb 0x421f13
mov eax, dword [eax]
mov ecx, dword [esi + 0x40]
push ecx
push 0
push 0x40
push 0x40
push 1
push 6
push 0x40080003
push eax
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov dword [esi + 0x44], eax
cmp eax, 0xffffffff
je 0x421f4d
mov edx, dword [esi + 0x90]
push edx
call dword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
jne 0x421f51
mov dword [esi + 0x78], 1
xor al, al
pop esi
ret
mov al, 1
pop esi
ret