joyce8/EMBER2024-capa huggingface dataset:
Function at 0x70b74ec0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x14
mov ecx, dword [str._p_p]
push ebx
push ebp
push esi
lea eax, [esp + 0xc]
push edi
xor ebx, ebx
push eax
push 0xf003f
push ebx
push ecx
push 0x80000001
mov dword [esp + 0x24], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x28], 4
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x70b75091
mov edi, dword [esp + 0x28]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea edx, [esp + 0x14]
lea ecx, [esp + 0x1c]
lea eax, [edi + 4]
push edx
mov edx, dword [str.AccessKey]
push eax
mov eax, dword [esp + 0x18]
push ecx
push ebx
push edx
push eax
call esi
cmp eax, ebx
jne 0x70b75091
lea ecx, [esp + 0x14]
lea edx, [esp + 0x18]
push ecx
mov ecx, dword [str.EnabledAccessKey]
lea eax, [esp + 0x20]
push edx
mov edx, dword [esp + 0x18]
push eax
push ebx
push ecx
push edx
call esi
cmp eax, ebx
jne 0x70b75091
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x70b74f64
cmp eax, 1
jne 0x70b75091
mov dword [edi + 0x14], eax
mov edx, dword [str.MinViewportWidth]
lea eax, [esp + 0x14]
lea ebp, [edi + 8]
push eax
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x20]
push ebp
push ecx
push ebx
push edx
push eax
call esi
cmp eax, ebx
jne 0x70b75091
mov eax, dword [str.MinViewportHeight]
lea ecx, [esp + 0x14]
lea ebx, [edi + 0xc]
push ecx
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x20]
push ebx
push edx
push 0
push eax
push ecx
call esi
test eax, eax
jne 0x70b75091
mov ebp, dword [ebp]
test ebp, ebp
jne 0x70b74fbf
cmp dword [ebx], 0
je 0x70b74fe7
test ebp, ebp
jbe 0x70b75091
mov ebx, dword [ebx]
test ebx, ebx
jbe 0x70b75091
cmp ebp, dword [0x70bc21d0]
ja 0x70b75091
cmp ebx, dword [0x70bc21d4]
ja 0x70b75091
lea edx, [esp + 0x14]
lea eax, [esp + 0x18]
push edx
mov edx, dword [str.Transparency]
lea ecx, [esp + 0x20]
push eax
mov eax, dword [esp + 0x18]
push ecx
push 0
push edx
push eax
call esi
test eax, eax
jne 0x70b75091
mov eax, dword [esp + 0x18]
cmp eax, 5
je 0x70b75021
cmp eax, 4
je 0x70b75021
cmp eax, 1
jne 0x70b75091
lea ecx, [esp + 0x14]
mov dword [edi + 0x10], eax
lea edx, [esp + 0x18]
push ecx
mov ecx, dword [str.QuickCompress]
lea eax, [esp + 0x20]
push edx
mov edx, dword [esp + 0x18]
push eax
push 0
push ecx
push edx
call esi
test eax, eax
jne 0x70b75091
mov eax, dword [esp + 0x18]
test eax, eax
je 0x70b75054
cmp eax, 1
jne 0x70b75091
mov dword [edi + 0x1c], eax
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push eax
mov eax, dword [str.Scalability]
lea edx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x18]
push edx
push 0
push eax
push ecx
call esi
test eax, eax
jne 0x70b75091
mov eax, dword [esp + 0x18]
test eax, eax
je 0x70b75086
cmp eax, 1
jne 0x70b75091
mov dword [edi + 0x18], eax
mov dword [esp + 0x20], 1
mov eax, dword [esp + 0x10]
test eax, eax
je 0x70b750a0
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x70b765d0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x30
push esi
push str.ir50_lcs.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x70b7668a
push str.SetRTEKey
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x70b76683
mov edx, dword [esp + 0x38]
lea ecx, [esp + 4]
push ecx
push 0x80719708
mov ecx, dword [edx + 0x60]
mov edx, dword [ecx + 0xf0]
mov ecx, dword [edx + 0x104]
push ecx
call eax
cmp dword [esp + 4], 0x80423718
jne 0x70b76683
mov edx, dword [str.capivi5]
mov eax, dword [0x70bcdc74]
mov dword [esp + 0xc], edx
lea ecx, [esp + 8]
lea edx, [esp + 0xc]
push ecx
push edx
push 0x80000000
mov dword [esp + 0x44], 0x1f
mov dword [esp + 0x1c], eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x70b76683
mov edx, dword [esp + 8]
lea eax, [esp + 0x38]
lea ecx, [esp + 0x14]
push eax
push ecx
push 0
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
test eax, eax
jne 0x70b76683
mov ecx, dword [esp + 0x38]
mov eax, 1
cmp ecx, eax
jge 0x70b7668c
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
pop esi
add esp, 0x30
ret
Function at 0x70b7a3c0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x70badccb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
push esi
mov esi, ecx
mov ecx, dword [esp + 0x1c]
push edi
lea edi, [esi + 4]
push eax
push ecx
push edx
mov ecx, edi
mov dword [esp + 0x14], esi
mov dword [esi], fcn.70baa980
call fcn.70ba55a1
xor eax, eax
lea ecx, [esi + 0x80]
mov dword [esp + 0x14], eax
mov dword [esi + 0x10], eax
call fcn.70b7a050
mov ecx, dword [esp + 0xc]
mov dword [edi], 0x70bc2880
mov dword [esi], 0x70bc27d0
mov dword [esi + 0x28], 0x58
mov dword [esi + 0x2c], 0x30355649
mov dword [esi + 0x30], 0x10005
mov dword [esi + 0x38], 2
mov dword [esi + 0x3c], 0x8000004f
mov dword [esi + 0x34], 6
mov eax, esi
pop edi
mov dword fs:[0], ecx
pop esi
add esp, 0x10
ret 0xc
Function at 0x70b7c2c0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x104
mov ecx, dword [0x70bd8d90]
push ebx
mov ebx, dword [esp + 0x110]
push ebp
mov ebp, dword [esp + 0x110]
mov eax, dword [ebx]
push esi
push edi
push eax
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
mov dword [ebx], eax
je 0x70b7c38e
lea edx, [esp + 0x10]
push 0x104
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jbe 0x70b7c3cb
lea edi, [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp byte [esp + ecx + 0xf], 0x5c
je 0x70b7c34e
mov edi, 0x70bce0f8
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x70bce0ec
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push ebp
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x14]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.70ba7060
add esp, 8
test eax, eax
jne 0x70b7c3cb
mov edi, 0x70bce0ec
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
mov dword [ebx], ecx
mov edi, 0x70bce0ec
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x104
ret 8
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x104
ret 8
Function at 0x70ba6247
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jne 0x70ba6267
mov eax, 0x80004005
jmp 0x70ba62f5
lea eax, [ebp - 4]
push esi
push eax
xor esi, esi
push 0x2000000
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, esi
jne 0x70ba62f2
lea eax, [ebp - 0x10]
push edi
push eax
push esi
push esi
lea eax, [ebp - 8]
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push esi
push eax
lea eax, [ebp - 0x114]
push eax
push esi
push dword [ebp - 4]
mov dword [ebp - 8], 0x104
call edi
cmp eax, esi
jne 0x70ba62dc
lea eax, [ebp - 0x114]
push eax
push dword [ebp - 4]
call 0x70bf7eb9
lea eax, [ebp - 0x10]
mov dword [ebp - 8], 0x104
push eax
push esi
push esi
lea eax, [ebp - 8]
push esi
push eax
lea eax, [ebp - 0x114]
push eax
push esi
push dword [ebp - 4]
jmp 0x70ba62a8
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
pop edi
xor eax, eax
pop esi
leave
ret 8
Function at 0x70ba62f9
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x15c
push ebx
push esi
push edi
lea eax, [ebp - 0x15c]
push 0x27
push eax
lea eax, [ebp + 8]
push eax
call dword [sym.imp.ole32.dll_StringFromGUID2]
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp - 0x15c]
push eax
lea eax, [ebp - 0x10c]
push str.CLSID_ls
push eax
call esi
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
add esp, 0xc
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10c]
push eax
push 0x80000000
call ebx
test eax, eax
jne 0x70ba6418
push dword [ebp + 0x18]
mov edi, 0x70bc3370
lea eax, [ebp - 0x10c]
push edi
push eax
call esi
add esp, 0xc
lea eax, [ebp - 0x10c]
push 0x104
push eax
push 1
push 0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueA]
test eax, eax
mov dword [ebp + 0x18], eax
je 0x70ba6396
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x70ba6415
push dword [ebp + 0x24]
lea eax, [ebp - 0x10c]
push edi
push eax
call esi
add esp, 0xc
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10c]
push eax
push dword [ebp - 4]
call ebx
mov ebx, eax
test ebx, ebx
je 0x70ba63c9
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x70ba6418
push dword [ebp + 0x1c]
lea eax, [ebp - 0x10c]
push edi
push eax
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
add esp, 0xc
lea eax, [ebp - 0x10c]
push eax
call ebx
inc eax
push eax
lea eax, [ebp - 0x10c]
push eax
push 1
push 0
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueA]
test eax, eax
mov dword [ebp + 0x18], eax
je 0x70ba6424
push dword [ebp - 4]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 8]
call esi
mov eax, dword [ebp + 0x18]
and eax, 0xffff
or eax, 0x80070000
jmp 0x70ba647e
push dword [ebp + 0x20]
lea eax, [ebp - 0x10c]
push edi
push eax
call esi
add esp, 0xc
lea eax, [ebp - 0x10c]
push eax
call ebx
inc eax
push eax
lea eax, [ebp - 0x10c]
push eax
push 1
push 0
push 0x70bc3360
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, eax
call edi
push dword [ebp - 8]
call edi
mov eax, esi
and esi, 0xffff
or esi, 0x80070000
neg eax
sbb eax, eax
and eax, esi
pop edi
pop esi
pop ebx
leave
ret 0x20
Function at 0x70ba7230
Capabilities:
Accept command line arguments

Disassembly:
mov eax, dword [esp + 8]
cmp eax, 1
jne 0x70ba72f4
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov dword [0x70bd5be0], eax
call fcn.70baa0f0
test eax, eax
jne 0x70ba7254
ret 0xc
mov ecx, dword [0x70bd5be0]
xor edx, edx
mov eax, ecx
mov dl, ch
and eax, 0xff
mov dword [0x70bd5bec], edx
mov dword [0x70bd5be8], eax
shl eax, 8
add eax, edx
shr ecx, 0x10
mov dword [0x70bd5be4], eax
mov dword [0x70bd5be0], ecx
call fcn.70ba8080
test eax, eax
jne 0x70ba7296
call fcn.70baa130
xor eax, eax
ret 0xc
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x70bd9ed8], eax
call fcn.70ba9f90
mov ecx, dword [0x70bd9ed8]
mov dword [0x70bd5b3c], eax
test ecx, ecx
je 0x70ba72e5
test eax, eax
je 0x70ba72e5
call fcn.70ba9470
call fcn.70ba9f80
call fcn.70ba97d0
call fcn.70ba96e0
call fcn.70ba9310
mov eax, dword [0x70bd5b38]
inc eax
mov dword [0x70bd5b38], eax
mov eax, 1
ret 0xc
call fcn.70ba80e0
call fcn.70baa130
xor eax, eax
ret 0xc
test eax, eax
jne 0x70ba7334
mov eax, dword [0x70bd5b38]
test eax, eax
jle 0x70ba732f
mov ecx, eax
mov eax, dword [0x70bd5c18]
dec ecx
test eax, eax
mov dword [0x70bd5b38], ecx
jne 0x70ba7318
call fcn.70ba9360
call fcn.70ba9680
call fcn.70ba80e0
call fcn.70baa130
mov eax, 1
ret 0xc
xor eax, eax
ret 0xc
cmp eax, 3
jne 0x70ba7343
push 0
call fcn.70ba81b0
add esp, 4
mov eax, 1
ret 0xc

Function at 0x70ba8080
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
push esi
call fcn.70ba8ee0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [0x70bce4a0], eax
je 0x70ba80d8
push 0x74
push 1
call fcn.70baa810
mov esi, eax
add esp, 8
test esi, esi
je 0x70ba80d8
mov eax, dword [0x70bce4a0]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x70ba80d8
push esi
call fcn.70ba8110
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esi], eax
mov dword [esi + 4], 0xffffffff
mov eax, 1
pop esi
ret
xor eax, eax
pop esi
ret

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

Disassembly:
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [0x70bce4a0]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x70ba819e
push 0x74
push 1
call fcn.70baa810
mov esi, eax
add esp, 8
test esi, esi
je 0x70ba8194
mov ecx, dword [0x70bce4a0]
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x70ba8194
push esi
call fcn.70ba8110
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push edi
mov dword [esi], eax
mov dword [esi + 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
pop edi
pop esi
ret
push 0x10
call fcn.70ba7400
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
pop edi
pop esi
ret
Function at 0x70ba81b0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov eax, dword [0x70bce4a0]
cmp eax, 0xffffffff
je 0x70ba825f
push esi
mov esi, dword [esp + 8]
test esi, esi
jne 0x70ba81d4
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
je 0x70ba8250
mov eax, dword [esi + 0x24]
test eax, eax
je 0x70ba81e4
push eax
call fcn.70ba9110
add esp, 4
mov eax, dword [esi + 0x28]
test eax, eax
je 0x70ba81f4
push eax
call fcn.70ba9110
add esp, 4
mov eax, dword [esi + 0x30]
test eax, eax
je 0x70ba8204
push eax
call fcn.70ba9110
add esp, 4
mov eax, dword [esi + 0x38]
test eax, eax
je 0x70ba8214
push eax
call fcn.70ba9110
add esp, 4
mov eax, dword [esi + 0x40]
test eax, eax
je 0x70ba8224
push eax
call fcn.70ba9110
add esp, 4
mov eax, dword [esi + 0x44]
test eax, eax
je 0x70ba8234
push eax
call fcn.70ba9110
add esp, 4
mov eax, dword [esi + 0x50]
cmp eax, 0x70bce9a0
je 0x70ba8247
push eax
call fcn.70ba9110
add esp, 4
push esi
call fcn.70ba9110
add esp, 4
mov eax, dword [0x70bce4a0]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop esi
ret

Function at 0x70ba9370
Capabilities:
Terminate process

Disassembly:
push ebx
push ebp
push esi
call fcn.70ba9430
mov eax, dword [0x70bd5c1c]
mov ebp, dword [esp + 0x10]
cmp eax, 1
jne 0x70ba9394
push ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
test eax, eax
mov dword [0x70bd5c18], 1
mov byte [0x70bd5c14], bl
jne 0x70ba93ee
mov ecx, dword [0x70bd9ec8]
test ecx, ecx
je 0x70ba93dc
mov esi, dword [0x70bd9ec4]
sub esi, 4
cmp esi, ecx
jb 0x70ba93dc
mov eax, dword [esi]
test eax, eax
je 0x70ba93d5
call eax
mov ecx, dword [0x70bd9ec8]
sub esi, 4
cmp esi, ecx
jae 0x70ba93c7
push 0x70bc6020
push 0x70bc6018
call fcn.70ba9450
add esp, 8
push 0x70bc602c
push 0x70bc6024
call fcn.70ba9450
add esp, 8
test ebx, ebx
je 0x70ba940d
call fcn.70ba9440
pop esi
pop ebp
pop ebx
ret
push ebp
mov dword [0x70bd5c1c], 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x70ba9f90
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [0x70bd5f4c]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
push esi
xor esi, esi
xor ebx, ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test eax, eax
jne 0x70ba9fd2
call edi
mov esi, eax
test esi, esi
je 0x70ba9fbc
mov eax, 1
jmp 0x70ba9fcd
call ebp
mov ebx, eax
test ebx, ebx
je 0x70baa0df
mov eax, 2
mov dword [0x70bd5f4c], eax
cmp eax, 1
jne 0x70baa072
test esi, esi
jne 0x70ba9feb
call edi
mov esi, eax
test esi, esi
je 0x70baa0df
cmp word [esi], 0
mov eax, esi
je 0x70baa005
add eax, 2
cmp word [eax], 0
jne 0x70ba9ff3
add eax, 2
cmp word [eax], 0
jne 0x70ba9ff3
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 [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
je 0x70baa064
push edi
call fcn.70baa990
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x70baa064
push 0
push 0
push edi
push ebx
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x70baa056
push ebx
call fcn.70ba9110
add esp, 4
xor ebx, ebx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
cmp eax, 2
jne 0x70baa0df
test ebx, ebx
jne 0x70baa083
call ebp
mov ebx, eax
test ebx, ebx
je 0x70baa0df
mov cl, byte [ebx]
mov eax, ebx
test cl, cl
je 0x70baa09b
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x70baa08b
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x70baa08b
sub eax, ebx
inc eax
mov esi, eax
push esi
call fcn.70baa990
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x70baa0bd
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
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 [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
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 0x70baa1b0
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x1a8
mov eax, 0x70bce910
push ebx
push ebp
push esi
push edi
xor ebp, ebp
cmp ecx, dword [eax]
je 0x70baa1d4
add eax, 8
inc ebp
cmp eax, 0x70bce9a0
jb 0x70baa1c5
cmp ecx, dword [ebp*8 + 0x70bce910]
jne 0x70baa37b
mov eax, dword [0x70bd5b44]
cmp eax, 1
je 0x70baa33d
test eax, eax
jne 0x70baa200
cmp dword [0x70bd5b48], 1
je 0x70baa33d
cmp ecx, 0xfc
je 0x70baa37b
lea eax, [esp + 0xb4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x70baa23b
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 0x70baa284
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 0x70bc3bb0
add ebx, ecx
push ebx
call fcn.70bac180
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, 0x70bc3b90
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 + 0x70bce914]
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.70bac910
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
mov eax, dword [0x70bd9dc0]
test eax, eax
je 0x70baa34e
mov esi, dword [eax + 0x48]
cmp esi, 0xffffffff
jne 0x70baa358
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
mov edx, dword [ebp*8 + 0x70bce914]
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 [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
Function at 0x70bad2c0
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 0x70bad2ec
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 + 0x70bd9dc0]
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 0x70bad327
push 2
push ebp
push ecx
call fcn.70bada10
add esp, 0xc
mov eax, dword [edi]
add eax, esi
test byte [eax + 4], 0x80
je 0x70bad489
mov ebp, dword [esp + 0x434]
mov dword [esp + 0x18], 0
test ebx, ebx
mov edi, ebp
jbe 0x70bad3d1
lea eax, [esp + 0x28]
mov ecx, edi
sub ecx, ebp
cmp ecx, ebx
jae 0x70bad382
mov cl, byte [edi]
inc edi
cmp cl, 0xa
jne 0x70bad36f
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 0x70bad352
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 [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x70bad47a
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
add edx, eax
cmp eax, esi
mov dword [esp + 0x10], edx
jl 0x70bad3cd
mov eax, edi
sub eax, ebp
cmp eax, ebx
jb 0x70bad34e
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x70bad469
mov eax, dword [esp + 0x18]
test eax, eax
je 0x70bad425
cmp eax, 5
jne 0x70bad40e
call fcn.70baa960
mov dword [eax], 9
call fcn.70baa970
mov dword [eax], 5
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
push eax
call fcn.70baa8e0
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 0x70bad445
cmp byte [ebp], 0x1a
jne 0x70bad445
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
call fcn.70baa960
mov dword [eax], 0x1c
call fcn.70baa970
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 [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x18], eax
jmp 0x70bad3cd
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 [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x70bad4ba
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], eax
jmp 0x70bad3d1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x18], eax
jmp 0x70bad3d1