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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x7c86b848
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0x114
push ebx
push esi
push edi
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x10], esp
mov edi, 1
call fcn.7c85a480
push 0
mov dword [ebp - 4], 0
push 0x7c871d38
mov byte [ebp - 4], 1
call dword [sym.imp.USER32.dll_FindWindowA]
test eax, eax
jne 0x7c854ba3
lea eax, [ebp - 0x124]
lea ecx, [ebp - 0x20]
push eax
push str.LgMntr.exe
call fcn.7c85a590
lea ecx, [ebp - 0x124]
push 5
push ecx
call dword [0x7c87b274]
cmp eax, 0x20
jae 0x7c854ba3
lea edx, [ebp - 0x124]
push edx
push eax
push str.FAIL___uWinExec__s__SW_SHOW_
push 0
call dword [0x7c8725a0]
add esp, 0x10
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0x18
push 0x7c86d980
push eax
call fcn.7c85fe70
lea ecx, [ebp - 0x124]
push ecx
push str.LgDvRc.dll
lea ecx, [ebp - 0x20]
call fcn.7c85a590
lea edx, [ebp - 0x124]
push edx
call dword [0x7c87b234]
test eax, eax
mov dword [0x7c878710], eax
jne 0x7c854c06
push str.Cannot_find_Driver_resource_DLL
push eax
call dword [0x7c8725a0]
add esp, 8
push 0x20021290
call dword [0x7c87b230]
lea eax, [ebp - 0x14]
push 0x7c86d980
push eax
mov dword [0x7c878710], 0
mov dword [ebp - 0x14], 0x18
call fcn.7c85fe70
push 0x6e
push 0
push 5
push str.Load_Scanner_Driver_version:__d._d._d
push 3
call dword [0x7c8725a0]
mov ax, word [0x7c878714]
add esp, 0x14
mov cx, ax
inc ax
test cx, cx
mov word [0x7c878714], ax
jne 0x7c854c63
call fcn.7c853f40
jmp 0x7c854c63
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], 0xffffffff
call fcn.7c85a570
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x7c8555a0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x7c86b888
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0x110
push ebx
push esi
push edi
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x14], 1
call fcn.7c85a480
mov eax, dword [0x7c878720]
xor ebx, ebx
xor edi, edi
mov ecx, eax
inc eax
mov dword [ebp - 4], ebx
test ecx, ecx
mov byte [ebp - 4], 1
mov dword [0x7c878720], eax
jne 0x7c85565c
lea edx, [ebp - 0x120]
lea ecx, [ebp - 0x1c]
push edx
push str.LgInstSc.dll
call fcn.7c85a590
lea eax, [ebp - 0x120]
push eax
push str.Loading__s
push 0xa
call dword [0x7c8725a0]
add esp, 0xc
lea ecx, [ebp - 0x120]
push ecx
call dword [0x7c87b234]
cmp eax, ebx
mov dword [0x7c87871c], eax
jne 0x7c85567f
lea edx, [ebp - 0x120]
push edx
push str.LoadLibrary_on__s_failed
push 0xa
call dword [0x7c8725a0]
add esp, 0xc
mov dword [0x7c87871c], ebx
mov dword [ebp - 0x14], ebx
push 0x20023ed0
call dword [0x7c87b230]
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], 0xffffffff
call fcn.7c85a570
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [0x7c87b22c]
push str.SetUpBldCalibDevice
push eax
call esi
cmp eax, ebx
mov dword [0x7c878724], eax
jne 0x7c85569b
mov edi, 1
mov eax, dword [0x7c87871c]
push str.InstallDevice
push eax
call esi
cmp eax, ebx
mov dword [0x7c878728], eax
jne 0x7c8556b2
inc edi
mov ecx, dword [0x7c87871c]
push str.UnInstallDevice
push ecx
call esi
cmp eax, ebx
mov dword [0x7c87872c], eax
jne 0x7c8556ca
inc edi
mov edx, dword [0x7c87871c]
push str.SetRegisterDeviceNotification
push edx
call esi
cmp eax, ebx
mov dword [0x7c878730], eax
jne 0x7c8556e2
inc edi
mov eax, dword [0x7c87871c]
push str.GetRegisterDeviceNotification
push eax
call esi
cmp eax, ebx
mov dword [0x7c878734], eax
jne 0x7c8556f9
inc edi
mov ecx, dword [0x7c87871c]
push str.UnRegisterDeviceNotification
push ecx
call esi
cmp eax, ebx
mov dword [0x7c878738], eax
jne 0x7c855711
inc edi
mov edx, dword [0x7c87871c]
push str.DisplayUserDialog
push edx
call esi
cmp eax, ebx
mov dword [0x7c87873c], eax
jne 0x7c855729
inc edi
cmp edi, ebx
je 0x7c85565c
push edi
push str.FAIL_load_function_LgInstSc.dll___d_failures_
push ebx
call dword [0x7c8725a0]
add esp, 0xc
mov dword [ebp - 0x14], ebx
push 0x20023ed1
call dword [0x7c87b230]
jmp 0x7c85565c
Function at 0x7c8588e0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x7c86ba28
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0x11c
push ebx
push esi
push edi
mov esi, ecx
xor edi, edi
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x18], edi
call fcn.7c85a480
lea eax, [ebp - 0x12c]
lea ebx, [esi + 0x3c]
push eax
mov dword [ebp - 4], edi
push str.LgPusb.clb
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 1
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [ebx], edi
mov dword [esi + 0x40], edi
call fcn.7c85a590
mov ecx, dword [esi + 0x54]
mov edx, dword [esi + 0x58]
mov eax, dword [esi + 0xe4]
push ecx
mov ecx, dword [esi + 0xe0]
push edx
push eax
mov eax, dword [esi + 0x10]
lea edx, [ebp - 0x12c]
push ecx
mov ecx, dword [esi + 0xc]
push edx
mov edx, dword [esi + 0xe8]
push eax
mov eax, dword [esi + 0xbc]
push ecx
mov ecx, dword [esi + 0xcc]
push edx
mov edx, dword [esi + 0xd4]
push eax
mov eax, dword [esi + 0xc4]
push ecx
mov ecx, dword [esi + 0xc8]
push edx
mov edx, dword [esi + 0x6c]
push eax
push ecx
push edx
push ebx
call fcn.7c853e80
mov ebx, eax
cmp ebx, edi
mov dword [ebp - 0x18], ebx
je 0x7c8589b9
lea eax, [ebp - 0x1c]
push 0x7c86d980
push eax
mov dword [ebp - 0x1c], ebx
call fcn.7c85fe70
call fcn.7c853ef0
mov dword [esi + 0x40], eax
jmp 0x7c858a07
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], 0xffffffff
call fcn.7c85a570
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, ebx
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x7c85ae50
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x7c86bae8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0x110
push ebx
push esi
push edi
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x10], esp
call fcn.7c85a480
lea eax, [ebp - 0x120]
xor ebx, ebx
push eax
mov dword [ebp - 4], ebx
push str.LgPrgres.dll
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x14], 1
xor edi, edi
mov byte [ebp - 4], 1
call fcn.7c85a590
lea ecx, [ebp - 0x120]
push ecx
push str.Loading__s
push 3
call dword [0x7c8725a0]
add esp, 0xc
lea edx, [ebp - 0x120]
push edx
call dword [0x7c87b234]
cmp eax, ebx
mov dword [0x7c8788ac], eax
jne 0x7c85af1e
lea eax, [ebp - 0x120]
push eax
push str.LoadLibrary_on__s_failed
push 0xa
call dword [0x7c8725a0]
add esp, 0xc
mov dword [0x7c8788ac], ebx
mov dword [ebp - 0x14], ebx
push 0x200212b0
call dword [0x7c87b230]
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], 0xffffffff
call fcn.7c85a570
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [0x7c87b22c]
push str._PICreate_8
push eax
call esi
cmp eax, ebx
mov dword [0x7c8788b0], eax
jne 0x7c85af3a
mov edi, 1
mov ecx, dword [0x7c8788ac]
push str._PIDestroy_0
push ecx
call esi
cmp eax, ebx
mov dword [0x7c8788b4], eax
jne 0x7c85af52
inc edi
mov edx, dword [0x7c8788ac]
push str._PISetText_4
push edx
call esi
cmp eax, ebx
mov dword [0x7c8788b8], eax
jne 0x7c85af6a
inc edi
mov eax, dword [0x7c8788ac]
push str._PISetPos_8
push eax
call esi
cmp eax, ebx
mov dword [0x7c8788bc], eax
jne 0x7c85af81
inc edi
mov ecx, dword [0x7c8788ac]
push str._PISetRange_8
push ecx
call esi
cmp eax, ebx
mov dword [0x7c8788c0], eax
jne 0x7c85af99
inc edi
mov edx, dword [0x7c8788ac]
push str._PIAlwaysShow_4
push edx
call esi
cmp eax, ebx
mov dword [0x7c8788c4], eax
jne 0x7c85afb1
inc edi
cmp edi, ebx
je 0x7c85aefb
push edi
push str.FAIL_load_function_ProgressInd.dll___d_failures_
push ebx
call dword [0x7c8725a0]
add esp, 0xc
mov dword [ebp - 0x14], ebx
push 0x200212b1
call dword [0x7c87b230]
jmp 0x7c85aefb
Function at 0x7c85b170
Capabilities:
Set registry value

Disassembly:
sub esp, 0x118
mov ax, word [0x7c8786c4]
push esi
push edi
mov word [esp + 0x1c], ax
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x1e]
mov dx, word [0x7c873b04]
rep stosd dword es:[edi], eax
mov ecx, dword [str.class]
mov word [esp + 0x10], dx
mov dword [esp + 0xc], ecx
xor ecx, ecx
stosw word es:[edi], ax
mov al, byte [0x7c873b06]
mov word [esp + 0x13], cx
mov byte [esp + 0x12], al
mov eax, dword [esp + 0x128]
lea edx, [esp + 0x1c]
mov byte [esp + 0x15], cl
mov ecx, dword [esp + 0x124]
push edx
xor esi, esi
push eax
push ecx
mov dword [esp + 0x14], esi
call fcn.7c85b340
add esp, 0xc
lea edx, [esp + 0x18]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push edx
push eax
push esi
push 0xf003f
push esi
push ecx
lea edx, [esp + 0x34]
push esi
push edx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov ecx, dword [esp + 8]
cmp ecx, esi
je 0x7c85b23b
cmp eax, esi
jne 0x7c85b23b
mov edx, dword [esp + 0x12c]
lea eax, [esp + 0x130]
push 4
push eax
push 4
push esi
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
cmp eax, esi
jne 0x7c85b237
mov esi, 1
mov ecx, dword [esp + 8]
cmp ecx, 0xffffffff
je 0x7c85b247
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
add esp, 0x118
ret

Function at 0x7c85b260
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x114
mov ax, word [0x7c8786c4]
push esi
push edi
mov word [esp + 0x18], ax
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x1a]
mov edx, dword [esp + 0x124]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, 4
lea ecx, [esp + 0x18]
mov dword [esp + 0xc], eax
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x120]
push ecx
xor esi, esi
push edx
push eax
mov dword [esp + 0x14], esi
call fcn.7c85b340
add esp, 0xc
lea ecx, [esp + 8]
lea edx, [esp + 0x18]
push ecx
push 0xf003f
push esi
push edx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ecx, dword [esp + 8]
mov edi, dword [esp + 0x12c]
test ecx, ecx
je 0x7c85b312
test eax, eax
jne 0x7c85b312
lea eax, [esp + 0x14]
lea edx, [esp + 0x10]
push eax
lea eax, [esp + 0x10]
push edx
mov edx, dword [esp + 0x130]
push eax
push esi
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x7c85b30e
mov eax, dword [esp + 0x10]
mov esi, 1
mov dword [edi], eax
mov ecx, dword [esp + 8]
test esi, esi
jne 0x7c85b31f
mov edx, dword [esp + 0x130]
mov dword [edi], edx
test ecx, ecx
je 0x7c85b32a
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
add esp, 0x114
ret

Function at 0x7c85e200
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
mov edi, dword [0x7c87b2a4]
xor esi, esi
call edi
mov ebx, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
sub eax, dword [ebx]
cmp eax, ecx
jbe 0x7c85e224
mov esi, 1
call edi
mov dword [ebx], eax
mov eax, esi
pop edi
pop esi
pop ebx
ret
Function at 0x7c860310
Capabilities:
Create thread

Disassembly:
push esi
push edi
push 0x74
push 1
xor edi, edi
call fcn.7c863ff0
mov esi, eax
add esp, 8
test esi, esi
je 0x7c860370
push esi
call fcn.7c863ce0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x1c]
add esp, 4
mov dword [esi + 0x48], eax
mov eax, dword [esp + 0x1c]
push edx
mov edx, dword [esp + 0x10]
mov dword [esi + 0x4c], ecx
mov ecx, dword [esp + 0x14]
push eax
push esi
push 0x7c860390
push ecx
push edx
mov dword [esi + 4], 0xffffffff
call dword [0x7c87b2b4]
test eax, eax
jne 0x7c860388
call dword [0x7c87b254]
mov edi, eax
push esi
call fcn.7c862330
add esp, 4
test edi, edi
je 0x7c860386
push edi
call fcn.7c863f50
add esp, 4
xor eax, eax
pop edi
pop esi
ret

Function at 0x7c860ad0
Capabilities:
Accept command line arguments

Disassembly:
mov eax, dword [esp + 8]
cmp eax, 1
jne 0x7c860bdc
call dword [0x7c87b220]
mov ecx, dword [0x7c878a34]
mov dword [0x7c878aa8], eax
test ecx, ecx
jne 0x7c860b30
cmp al, 3
jne 0x7c860b07
test eax, 0x80000000
je 0x7c860b07
push 2
call fcn.7c8669e0
add esp, 4
push str.kernel32.dll
call dword [0x7c87b218]
test eax, eax
je 0x7c860b30
push 0x7c86ca3c
push eax
call dword [0x7c87b22c]
test eax, eax
je 0x7c860b30
push 1
call fcn.7c8669e0
add esp, 4
call fcn.7c866960
test eax, eax
jne 0x7c860b3c
ret 0xc
mov ecx, dword [0x7c878aa8]
xor edx, edx
mov eax, ecx
mov dl, ch
and eax, 0xff
mov dword [0x7c878ab4], edx
mov dword [0x7c878ab0], eax
shl eax, 8
add eax, edx
shr ecx, 0x10
mov dword [0x7c878aac], eax
mov dword [0x7c878aa8], ecx
call fcn.7c863c50
test eax, eax
jne 0x7c860b7e
call fcn.7c8669a0
xor eax, eax
ret 0xc
call dword [0x7c87b2c4]
mov dword [0x7c87a004], eax
call fcn.7c866800
mov ecx, dword [0x7c87a004]
mov dword [0x7c878a28], eax
test ecx, ecx
je 0x7c860bcd
test eax, eax
je 0x7c860bcd
call fcn.7c861470
call fcn.7c8667f0
call fcn.7c866240
call fcn.7c866150
call fcn.7c8642f0
mov eax, dword [0x7c878a24]
inc eax
mov dword [0x7c878a24], eax
mov eax, 1
ret 0xc
call fcn.7c863cb0
call fcn.7c8669a0
xor eax, eax
ret 0xc
test eax, eax
jne 0x7c860c1c
mov eax, dword [0x7c878a24]
test eax, eax
jle 0x7c860c17
mov ecx, eax
mov eax, dword [0x7c878ae0]
dec ecx
test eax, eax
mov dword [0x7c878a24], ecx
jne 0x7c860c00
call fcn.7c864340
call fcn.7c861680
call fcn.7c863cb0
call fcn.7c8669a0
mov eax, 1
ret 0xc
xor eax, eax
ret 0xc
cmp eax, 3
jne 0x7c860c2b
push 0
call fcn.7c863d80
add esp, 4
mov eax, 1
ret 0xc
Function at 0x7c860eb0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x41c
push ebx
mov ebx, dword [esp + 0x42c]
push ebp
xor ebp, ebp
push esi
cmp ebx, ebp
push edi
mov dword [esp + 0x10], ebp
mov dword [esp + 0x20], ebp
jne 0x7c860edc
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov ecx, dword [esp + 0x430]
mov eax, ecx
sar eax, 5
lea edi, [eax*4 + 0x7c879f00]
mov eax, ecx
and eax, 0x1f
mov dword [esp + 0x24], edi
mov edx, dword [edi]
lea esi, [eax + eax*8]
shl esi, 2
mov dword [esp + 0x14], esi
test byte [esi + edx + 4], 0x20
je 0x7c860f17
push 2
push ebp
push ecx
call fcn.7c8613f0
add esp, 0xc
mov eax, dword [edi]
add eax, esi
test byte [eax + 4], 0x80
je 0x7c861079
mov ebp, dword [esp + 0x434]
mov dword [esp + 0x18], 0
test ebx, ebx
mov edi, ebp
jbe 0x7c860fc1
lea eax, [esp + 0x28]
mov ecx, edi
sub ecx, ebp
cmp ecx, ebx
jae 0x7c860f72
mov cl, byte [edi]
inc edi
cmp cl, 0xa
jne 0x7c860f5f
mov esi, dword [esp + 0x20]
mov byte [eax], 0xd
inc esi
inc eax
mov dword [esp + 0x20], esi
mov byte [eax], cl
inc eax
mov edx, eax
lea ecx, [esp + 0x28]
sub edx, ecx
cmp edx, 0x400
jl 0x7c860f42
mov esi, eax
lea edx, [esp + 0x28]
lea eax, [esp + 0x1c]
sub esi, edx
mov edx, dword [esp + 0x24]
push 0
push eax
lea ecx, [esp + 0x30]
mov eax, dword [edx]
push esi
push ecx
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx + eax]
push edx
call dword [0x7c87b224]
test eax, eax
je 0x7c86106a
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
add edx, eax
cmp eax, esi
mov dword [esp + 0x10], edx
jl 0x7c860fbd
mov eax, edi
sub eax, ebp
cmp eax, ebx
jb 0x7c860f3e
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x7c861059
mov eax, dword [esp + 0x18]
test eax, eax
je 0x7c861015
cmp eax, 5
jne 0x7c860ffe
call fcn.7c863fd0
mov dword [eax], 9
call fcn.7c863fe0
mov dword [eax], 5
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
push eax
call fcn.7c863f50
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx]
test byte [esi + edx + 4], 0x40
je 0x7c861035
cmp byte [ebp], 0x1a
jne 0x7c861035
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
call fcn.7c863fd0
mov dword [eax], 0x1c
call fcn.7c863fe0
mov dword [eax], 0
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
sub eax, ecx
pop ebx
add esp, 0x41c
ret
call dword [0x7c87b254]
mov dword [esp + 0x18], eax
jmp 0x7c860fbd
mov edx, dword [eax]
lea ecx, [esp + 0x1c]
push ebp
mov ebp, dword [esp + 0x438]
push ecx
push ebx
push ebp
push edx
call dword [0x7c87b224]
test eax, eax
je 0x7c8610aa
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], eax
jmp 0x7c860fc1
call dword [0x7c87b254]
mov dword [esp + 0x18], eax
jmp 0x7c860fc1
Function at 0x7c863c50
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
push esi
call fcn.7c862100
call dword [0x7c87b2f4]
cmp eax, 0xffffffff
mov dword [0x7c875230], eax
je 0x7c863ca8
push 0x74
push 1
call fcn.7c863ff0
mov esi, eax
add esp, 8
test esi, esi
je 0x7c863ca8
mov eax, dword [0x7c875230]
push esi
push eax
call dword [0x7c87b2bc]
test eax, eax
je 0x7c863ca8
push esi
call fcn.7c863ce0
add esp, 4
call dword [0x7c87b2b8]
mov dword [esi], eax
mov dword [esi + 4], 0xffffffff
mov eax, 1
pop esi
ret
xor eax, eax
pop esi
ret

Function at 0x7c863d00
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push esi
push edi
call dword [0x7c87b254]
mov edi, eax
mov eax, dword [0x7c875230]
push eax
call dword [0x7c87b2fc]
mov esi, eax
test esi, esi
jne 0x7c863d6e
push 0x74
push 1
call fcn.7c863ff0
mov esi, eax
add esp, 8
test esi, esi
je 0x7c863d64
mov ecx, dword [0x7c875230]
push esi
push ecx
call dword [0x7c87b2bc]
test eax, eax
je 0x7c863d64
push esi
call fcn.7c863ce0
add esp, 4
call dword [0x7c87b2b8]
push edi
mov dword [esi], eax
mov dword [esi + 4], 0xffffffff
call dword [0x7c87b230]
mov eax, esi
pop edi
pop esi
ret
push 0x10
call fcn.7c860cf0
add esp, 4
push edi
call dword [0x7c87b230]
mov eax, esi
pop edi
pop esi
ret

Function at 0x7c863d80
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov eax, dword [0x7c875230]
cmp eax, 0xffffffff
je 0x7c863e1c
push esi
mov esi, dword [esp + 8]
test esi, esi
jne 0x7c863da4
push eax
call dword [0x7c87b2fc]
mov esi, eax
test esi, esi
je 0x7c863e0d
mov eax, dword [esi + 0x24]
test eax, eax
je 0x7c863db4
push eax
call fcn.7c862330
add esp, 4
mov eax, dword [esi + 0x28]
test eax, eax
je 0x7c863dc4
push eax
call fcn.7c862330
add esp, 4
mov eax, dword [esi + 0x30]
test eax, eax
je 0x7c863dd4
push eax
call fcn.7c862330
add esp, 4
mov eax, dword [esi + 0x38]
test eax, eax
je 0x7c863de4
push eax
call fcn.7c862330
add esp, 4
mov eax, dword [esi + 0x40]
test eax, eax
je 0x7c863df4
push eax
call fcn.7c862330
add esp, 4
mov eax, dword [esi + 0x44]
test eax, eax
je 0x7c863e04
push eax
call fcn.7c862330
add esp, 4
push esi
call fcn.7c862330
add esp, 4
mov eax, dword [0x7c875230]
push 0
push eax
call dword [0x7c87b2bc]
pop esi
ret
Function at 0x7c864350
Capabilities:
Terminate process

Disassembly:
push ebx
push ebp
push esi
call fcn.7c864410
mov eax, dword [0x7c878ae4]
mov ebp, dword [esp + 0x10]
cmp eax, 1
jne 0x7c864374
push ebp
call dword [0x7c87b308]
push eax
call dword [0x7c87b304]
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
test eax, eax
mov dword [0x7c878ae0], 1
mov byte [0x7c878adc], bl
jne 0x7c8643ce
mov ecx, dword [0x7c878ec4]
test ecx, ecx
je 0x7c8643bc
mov esi, dword [0x7c878ec0]
sub esi, 4
cmp esi, ecx
jb 0x7c8643bc
mov eax, dword [esi]
test eax, eax
je 0x7c8643b5
call eax
mov ecx, dword [0x7c878ec4]
sub esi, 4
cmp esi, ecx
jae 0x7c8643a7
push 0x7c871028
push 0x7c871020
call fcn.7c864430
add esp, 8
push 0x7c871030
push 0x7c87102c
call fcn.7c864430
add esp, 8
test ebx, ebx
je 0x7c8643ed
call fcn.7c864420
pop esi
pop ebp
pop ebx
ret
push ebp
mov dword [0x7c878ae4], 1
call dword [0x7c87b2e4]
pop esi
pop ebp
pop ebx
ret

Function at 0x7c866800
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [0x7c878d4c]
push ebx
push ebp
mov ebp, dword [0x7c87b338]
push esi
xor esi, esi
xor ebx, ebx
push edi
mov edi, dword [0x7c87b33c]
test eax, eax
jne 0x7c866842
call edi
mov esi, eax
test esi, esi
je 0x7c86682c
mov eax, 1
jmp 0x7c86683d
call ebp
mov ebx, eax
test ebx, ebx
je 0x7c86694f
mov eax, 2
mov dword [0x7c878d4c], eax
cmp eax, 1
jne 0x7c8668e2
test esi, esi
jne 0x7c86685b
call edi
mov esi, eax
test esi, esi
je 0x7c86694f
cmp word [esi], 0
mov eax, esi
je 0x7c866875
add eax, 2
cmp word [eax], 0
jne 0x7c866863
add eax, 2
cmp word [eax], 0
jne 0x7c866863
sub eax, esi
push 0
sar eax, 1
inc eax
push 0
mov ebp, eax
push 0
push 0
push ebp
push esi
push 0
push 0
call dword [0x7c87b310]
mov edi, eax
test edi, edi
je 0x7c8668d4
push edi
call fcn.7c862f90
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x7c8668d4
push 0
push 0
push edi
push ebx
push ebp
push esi
push 0
push 0
call dword [0x7c87b310]
test eax, eax
jne 0x7c8668c6
push ebx
call fcn.7c862330
add esp, 4
xor ebx, ebx
push esi
call dword [0x7c87b334]
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
call dword [0x7c87b334]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
cmp eax, 2
jne 0x7c86694f
test ebx, ebx
jne 0x7c8668f3
call ebp
mov ebx, eax
test ebx, ebx
je 0x7c86694f
mov cl, byte [ebx]
mov eax, ebx
test cl, cl
je 0x7c86690b
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x7c8668fb
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x7c8668fb
sub eax, ebx
inc eax
mov esi, eax
push esi
call fcn.7c862f90
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x7c86692d
push ebx
call dword [0x7c87b330]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, esi
mov esi, ebx
mov eax, ecx
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [0x7c87b330]
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
Function at 0x7c866a30
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x1a8
mov eax, 0x7c8758c8
push ebx
push ebp
push esi
push edi
xor ebp, ebp
cmp ecx, dword [eax]
je 0x7c866a54
add eax, 8
inc ebp
cmp eax, 0x7c875958
jb 0x7c866a45
cmp ecx, dword [ebp*8 + 0x7c8758c8]
jne 0x7c866bfb
mov eax, dword [0x7c878a30]
cmp eax, 1
je 0x7c866bbd
test eax, eax
jne 0x7c866a80
cmp dword [0x7c878a34], 1
je 0x7c866bbd
cmp ecx, 0xfc
je 0x7c866bfb
lea eax, [esp + 0xb4]
push 0x104
push eax
push 0
call dword [0x7c87b294]
test eax, eax
jne 0x7c866abb
mov ecx, 5
mov esi, str._program_name_unknown_
lea edi, [esp + 0xb4]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
xor eax, eax
lea ebx, [esp + 0xb4]
repne scasb al, byte es:[edi]
not ecx
cmp ecx, 0x3c
jbe 0x7c866b04
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 3
mov ebx, ecx
lea ecx, [esp + 0xb8]
sub ecx, 0x3b
push 0x7c86cea4
add ebx, ecx
push ebx
call fcn.7c8696c0
add esp, 0xc
mov ecx, 6
mov esi, str.Runtime_Error__n_nProgram:
lea edi, [esp + 0x14]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
or ecx, 0xffffffff
mov edi, ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x14]
mov ebx, ecx
mov esi, edi
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x14]
and ecx, 3
push 0x12010
rep movsb byte es:[edi], byte [esi]
mov edi, 0x7c86ce84
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push str.Microsoft_Visual_C_Runtime_Library
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x1c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp*8 + str.4_b]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x1c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.7c869ea0
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
mov eax, dword [0x7c879f00]
test eax, eax
je 0x7c866bce
mov esi, dword [eax + 0x48]
cmp esi, 0xffffffff
jne 0x7c866bd8
push 0xfffffffffffffff4
call dword [0x7c87b2d8]
mov esi, eax
mov edx, dword [ebp*8 + str.4_b]
lea ecx, [esp + 0x10]
push 0
push ecx
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push esi
call dword [0x7c87b224]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret