joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10012ff0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
cmp dword [0x1018ca00], 0
je 0x10013004
push 0x10197980
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push esi
mov esi, dword [0x1018ca04]
test esi, esi
je 0x10013040
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push edi
push dword [esi + 4]
call ebx
mov edi, eax
test edi, edi
je 0x10013037
cmp dword [esi], 0
je 0x10013037
push 0
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [esi]
push edi
call eax
mov esi, dword [esi + 0xc]
test esi, esi
jne 0x10013017
pop edi
pop ebx
cmp dword [0x1018ca00], 0
pop esi
je 0x10013055
push 0x10197980
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
ret

Function at 0x100155a0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
xor ebx, ebx
push edi
mov dword [ebp - 8], ebx
call fcn.10013e50
test eax, eax
jne 0x100156eb
cmp dword [ebp - 4], ebx
jne 0x100155db
push dword [ebp - 8]
call fcn.10009af0
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 4
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x1001567e
cmp dword [ebp - 4], 0x4000
jae 0x1001560c
push edi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push dword [ebp - 8]
call fcn.10009af0
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 8]
push eax
push 0x4000
push 1
call fcn.10009820
test eax, eax
jne 0x100156eb
mov eax, dword [ebp - 4]
nop word [eax + eax]
mov esi, 0x3fff
cmp eax, esi
cmovb esi, eax
push esi
push edi
push dword [ebp - 8]
push 1
call fcn.10009a80
test eax, eax
jne 0x100156eb
mov eax, dword [ebp - 8]
mov byte [esi + eax], bl
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [ebp - 4]
add edi, esi
sub eax, esi
mov dword [ebp - 4], eax
test eax, eax
jne 0x10015630
push dword [ebp - 8]
call fcn.10009af0
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
test eax, eax
je 0x100156ed
push 0
cmp eax, 0xffffffff
jne 0x100156a3
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.100091d0
jmp 0x100156eb
lea ecx, [ebp + 8]
push ecx
push dword [ebp - 4]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_WriteConsoleA]
test eax, eax
jne 0x100156d4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 6
je 0x100156ed
cmp eax, 1
je 0x100156ed
push 0
push 0
push 0
push eax
call fcn.100091d0
jmp 0x100156eb
mov eax, dword [ebp + 8]
cmp eax, dword [ebp - 4]
je 0x100156ed
push 0
push 0
push 0
push 0
push 0xffffffffffffff9c
call sym.NBUidai.dll_NBErrorsSetLastA
mov ebx, eax
push dword [ebp - 8]
call fcn.10009af0
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x10016f90
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
jne 0x10016fac
push eax
push eax
push eax
push eax
push 0xffffff37
call sym.NBUidai.dll_NBErrorsSetLastA
pop ebp
ret 8
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
jne 0x10016fc7
push esi
push esi
push esi
push esi
push 0xffffff37
call sym.NBUidai.dll_NBErrorsSetLastA
pop esi
pop ebp
ret 8
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x10016fe5
test al, 0x10
je 0x10016fe5
mov eax, 1
mov dword [esi], eax
xor eax, eax
pop esi
pop ebp
ret 8
xor eax, eax
mov dword [esi], eax
pop esi
pop ebp
ret 8
Function at 0x10018480
Capabilities:
Encrypt or decrypt data via bcrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
push edi
mov edi, dword [ebp + 0xc]
xor esi, esi
dec edi
mov dword [ebp - 0x10], esi
neg edi
mov dword [ebp - 4], esi
mov dword [ebp - 0xc], esi
sbb edi, edi
mov dword [ebp - 0x14], esi
add edi, 2
call fcn.1001a1e0
test eax, eax
je 0x100184b1
mov esi, eax
jmp 0x10018654
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
jne 0x100184cb
push 0
push 0
push 0
push 0
push 0xffffff37
jmp 0x1001864c
cmp dword [ebp + 0xc], 1
ja 0x1001863f
cmp dword [ebp + 0x10], esi
je 0x100184b9
cmp dword [ebp + 0x14], esi
jbe 0x100184b9
cmp dword [ebp + 0x18], esi
jne 0x100184f6
push 0
push 0
push 0
push 0
push 0xffffff37
jmp 0x1001864c
cmp dword [ebp + 0x1c], esi
jne 0x1001850d
push 0
push 0
push 0
push 0
push 0xffffff37
jmp 0x1001864c
lea eax, [ebp - 0x20]
push eax
push ebx
call fcn.10013e50
test eax, eax
jne 0x10018651
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x20]
push ebx
call fcn.10010060
test eax, eax
jne 0x10018651
mov ebx, dword [sym.imp.CRYPT32.dll_CryptDecodeObjectEx]
lea eax, [ebp - 0x18]
push eax
push 0
push 0
push 0
push dword [ebp - 0x1c]
push dword [ebp - 0x10]
push 8
push 0x10001
call ebx
test eax, eax
jne 0x10018572
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.100091d0
jmp 0x10018651
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x18]
call fcn.100097c0
test eax, eax
jne 0x10018651
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x14]
push 0
push 0
push dword [ebp - 0x1c]
push dword [ebp - 0x10]
push 8
push 0x10001
call ebx
test eax, eax
je 0x1001855b
lea eax, [ebp - 0xc]
push eax
push 0
push 0
push dword [ebp - 0x14]
push 1
call dword [sym.imp.CRYPT32.dll_CryptImportPublicKeyInfoEx2]
test eax, eax
je 0x1001855b
mov ebx, dword [ebp + 0x10]
lea eax, [ebp - 8]
push edi
push eax
push 0
push 0
push 0
push 0
push 0
push dword [ebp + 0x14]
push ebx
push dword [ebp - 0xc]
call sub.bcrypt.dll_BCryptEncrypt
test eax, eax
jns 0x100185eb
push 0
push 0
push 0
push eax
call fcn.100091d0
jmp 0x10018651
lea eax, [ebp - 4]
push eax
push dword [ebp - 8]
call fcn.100097c0
test eax, eax
jne 0x10018651
push edi
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push dword [ebp - 4]
push 0
push 0
push 0
push dword [ebp + 0x14]
push ebx
push dword [ebp - 0xc]
call sub.bcrypt.dll_BCryptEncrypt
test eax, eax
jns 0x1001862a
push 0
push 0
push 0
push eax
call fcn.100091d0
jmp 0x10018651
mov ecx, dword [ebp + 0x18]
mov eax, dword [ebp - 4]
mov dword [ebp - 4], esi
mov dword [ecx], eax
mov ecx, dword [ebp + 0x1c]
mov eax, dword [ebp - 8]
mov dword [ecx], eax
jmp 0x10018653
push 0
push 0
push 0
push 0
push 0xffffff35
call sym.NBUidai.dll_NBErrorsSetLastA
mov esi, eax
pop ebx
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x10018661
push eax
call sub.bcrypt.dll_BCryptDestroyKey
push dword [ebp - 0x10]
call fcn.10009af0
push dword [ebp - 4]
call fcn.10009af0
push dword [ebp - 0x14]
call fcn.10009af0
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 0x18
Function at 0x100186e0
Capabilities:
Encrypt or decrypt data via bcrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
xor ebx, ebx
dec edi
mov dword [ebp - 0x10], ebx
xor esi, esi
mov dword [ebp - 4], ebx
neg edi
mov dword [ebp - 0xc], ebx
sbb edi, edi
add edi, 2
call fcn.1001a1e0
test eax, eax
jne 0x1001888f
mov eax, dword [ebp + 8]
test eax, eax
jne 0x10018727
push 0
push 0
push 0
push 0
push 0xffffff37
jmp 0x1001888a
cmp dword [ebp + 0xc], 1
ja 0x1001887d
cmp dword [ebp + 0x10], ebx
je 0x10018715
cmp dword [ebp + 0x14], ebx
jbe 0x10018715
cmp dword [ebp + 0x18], ebx
jne 0x10018752
push 0
push 0
push 0
push 0
push 0xffffff37
jmp 0x1001888a
cmp dword [ebp + 0x1c], ebx
jne 0x10018769
push 0
push 0
push 0
push 0
push 0xffffff37
jmp 0x1001888a
lea ecx, [ebp - 0x14]
push ecx
push eax
call fcn.10013e50
test eax, eax
jne 0x1001888f
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x14]
push dword [ebp + 8]
call fcn.10010060
test eax, eax
jne 0x1001888f
push dword [ebp - 0x18]
push dword [ebp - 0x10]
push 0x10001
call dword [sym.imp.CRYPT32.dll_CertCreateCertificateContext]
mov ebx, eax
test ebx, ebx
jne 0x100187c9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
push ebx
push ebx
cmp eax, 0x8009310b
jne 0x100187ed
push str.Invalid_certificate
push 0xffffffffffffff9c
jmp 0x1001888a
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebx + 0xc]
push 0
push 0
add eax, 0x38
push eax
push 1
call dword [sym.imp.CRYPT32.dll_CryptImportPublicKeyInfoEx2]
test eax, eax
jne 0x100187f8
push eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.100091d0
jmp 0x1001888f
push edi
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0
push 0
push 0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp - 0xc]
call sub.bcrypt.dll_BCryptEncrypt
test eax, eax
jns 0x10018827
push 0
push 0
push 0
push eax
call fcn.100091d0
jmp 0x1001888f
lea eax, [ebp - 4]
push eax
push dword [ebp - 8]
call fcn.100097c0
test eax, eax
jne 0x1001888f
push edi
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push dword [ebp - 4]
push 0
push 0
push 0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp - 0xc]
call sub.bcrypt.dll_BCryptEncrypt
test eax, eax
jns 0x10018868
push 0
push 0
push 0
push eax
call fcn.100091d0
jmp 0x1001888f
mov ecx, dword [ebp + 0x18]
mov eax, dword [ebp - 4]
mov dword [ebp - 4], esi
mov dword [ecx], eax
mov ecx, dword [ebp + 0x1c]
mov eax, dword [ebp - 8]
mov dword [ecx], eax
jmp 0x10018891
push 0
push 0
push 0
push 0
push 0xffffff35
call sym.NBUidai.dll_NBErrorsSetLastA
mov esi, eax
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x1001889e
push eax
call sub.bcrypt.dll_BCryptDestroyKey
test ebx, ebx
je 0x100188a9
push ebx
call dword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
push dword [ebp - 0x10]
call fcn.10009af0
push dword [ebp - 4]
call fcn.10009af0
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
Function at 0x1001a390
Capabilities:
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
call fcn.1001a1e0
test eax, eax
jne 0x1001a3d8
mov eax, dword [ebp + 8]
test eax, eax
jne 0x1001a3b5
push eax
push eax
push eax
push eax
push 0xffffff37
call sym.NBUidai.dll_NBErrorsSetLastA
pop ebp
ret 8
push 2
push dword [ebp + 0xc]
push eax
push 0
call sub.bcrypt.dll_BCryptGenRandom
test eax, eax
jns 0x1001a3d6
push 0
push 0
push 0
push eax
call fcn.100091d0
pop ebp
ret 8
xor eax, eax
pop ebp
ret 8

Function at 0x1001a3e0
Capabilities:
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
mov dword [ebp - 4], esi
call fcn.1001a1e0
test eax, eax
je 0x1001a406
push dword [ebp - 4]
mov esi, eax
call fcn.10009af0
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 8
push edi
mov edi, dword [ebp + 0xc]
test edi, edi
jne 0x1001a430
push edi
push edi
push edi
push edi
push 0xffffff37
call sym.NBUidai.dll_NBErrorsSetLastA
pop edi
push dword [ebp - 4]
mov esi, eax
call fcn.10009af0
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 8
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
call fcn.100097c0
test eax, eax
jne 0x1001a41c
push ebx
mov ebx, dword [ebp - 4]
call fcn.1001a1e0
test eax, eax
jne 0x1001a482
test ebx, ebx
jne 0x1001a461
push ebx
push ebx
push ebx
push ebx
push 0xffffff37
call sym.NBUidai.dll_NBErrorsSetLastA
jmp 0x1001a47e
push 2
push dword [ebp + 8]
push ebx
push 0
call sub.bcrypt.dll_BCryptGenRandom
test eax, eax
jns 0x1001a497
push 0
push 0
push 0
push eax
call fcn.100091d0
test eax, eax
je 0x1001a497
pop ebx
pop edi
push dword [ebp - 4]
mov esi, eax
call fcn.10009af0
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp - 4]
pop ebx
mov dword [edi], eax
mov dword [ebp - 4], esi
pop edi
push esi
call fcn.10009af0
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x1001b420
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
test edi, edi
jne 0x1001b45d
push 0
push 0
push 0
push 0
push 0xffffff37
call sym.NBUidai.dll_NBErrorsSetLastA
mov esi, eax
jmp 0x1001b5a6
cmp dword [ebp + 0x14], 0
je 0x1001b444
lea eax, [ebp - 4]
push eax
push dword [edi]
call fcn.1001ee60
mov esi, eax
test esi, esi
jne 0x1001b5a6
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.1001f890
mov esi, eax
test esi, esi
jne 0x1001b5a6
mov eax, dword [ebp - 0x14]
mov ecx, dword [edi + 0x1c]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x18], eax
mov dword [ebp + 0x10], ecx
push ebx
test ecx, ecx
je 0x1001b576
mov esi, dword [ecx + 0x20]
xor ebx, ebx
mov edx, dword [ecx + 0x24]
mov eax, esi
or eax, edx
je 0x1001b4d2
lea eax, [ebp - 0x1c]
push eax
push edx
push esi
call fcn.1001f890
mov esi, eax
test esi, esi
jne 0x1001b5a5
mov ecx, dword [ebp + 0x10]
mov eax, dword [ecx + 0x14]
cmp eax, 5
ja case.default.0x1001b4da
jmp dword [eax*4 + 0x1001b5d4]
mov ebx, str._RDM_DeviceConnected
jmp 0x1001b529
mov ebx, str._RDM_CommandCompleted
jmp 0x1001b529
mov ebx, str._RDM_QualityMetrics
jmp 0x1001b529
mov ebx, str._RDM_upTime
jmp 0x1001b529
mov ebx, str._RDM_BatteryLevel
jmp 0x1001b529
mov ebx, str._RDM_DeviceError
jmp 0x1001b529
push 0
push 0
push 0
push str.Specified_event_type_is_invalid
push 0xffffff35
call sym.NBUidai.dll_NBErrorsSetLastA
mov esi, eax
test esi, esi
jne 0x1001b5a5
mov ecx, dword [ebp + 0x10]
cmp dword [ecx], 0
mov edx, 0x1010dbf8
mov eax, 0x1010b5f4
cmovne eax, edx
push eax
push dword [edi + 0xc]
lea eax, [ebp - 8]
push dword [ebp - 4]
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push dword [ecx + 0x28]
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
push dword [ecx + 0x18]
push ebx
push dword [ecx + 0x10]
push dword [ecx + 0xc]
push dword [ecx + 4]
push dword [ecx + 8]
push str._modelId__:___hs___deviceCode__:___hs___eventId__:___u___eventSouce__:___hs___eventType__:___s___eventData__:___hs___eventTimestamp__:__lld__geolocation__:___hs___signature__:_____timestamp__:__lld__tenantPublicKeyId__:___hs___rdServiceVersion__:___hs___complianceLevel__:___s_
push eax
call fcn.1000ee00
mov esi, eax
add esp, 0x40
test esi, esi
jne 0x1001b5a5
push dword [edi + 0x14]
push dword [edi + 0x10]
push dword [ebp - 4]
push dword [edi + 0xc]
push dword [edi + 8]
push dword [edi + 4]
push dword [ebp - 8]
push dword [edi + 0x18]
push str._inProcessServerCommandIds__:_____hs_____deviceEvents__:____hs____hostId__:___hs___rdServiceId__:___hs___rdServiceVersion__:___hs___tenantPublicKeyId__:___hs___platform__:___hs___platformVersion__:___hs_
push dword [ebp + 0x14]
call fcn.1000ee00
xor esi, esi
add esp, 0x28
test eax, eax
cmovne esi, eax
pop ebx
lea eax, [ebp - 4]
push eax
push 0
call fcn.1000a210
lea eax, [ebp - 0xc]
push eax
push 0
call fcn.1000a210
lea eax, [ebp - 8]
push eax
push 0
call fcn.1000a210
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 0x10
Function at 0x1001e4d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x10188068]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x28], 0
push ebx
mov ebx, dword [ebp + 0x14]
push esi
test eax, eax
jne 0x1001e521
push 0
push 0
push 0
push 0
push 0xffffff37
call sym.NBUidai.dll_NBErrorsSetLastA
mov esi, eax
jmp 0x1001e662
test ebx, ebx
je 0x1001e508
push edi
mov edi, dword [ebp + 0x10]
lea ecx, [ebp - 0x28]
push ecx
push edi
push eax
push 1
call fcn.10009980
mov esi, eax
test esi, esi
jne 0x1001e661
cmp dword [ebp + 8], 2
mov edx, 0xa
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x24]
mov dword [ebp - 0x20], 0x221f1f1b
push eax
mov eax, 0xd
mov dword [ebp - 0x1c], 0x1b1d1e20
cmove eax, edx
mov dword [ebp - 0x18], 0x1a1a1a1a
push eax
lea edx, [ebp - 0x20]
mov byte [ebp - 0x14], 0x1a
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0x1a221f1b
cmovne eax, edx
mov dword [ebp - 0xc], 0x221c1c1d
push eax
mov word [ebp - 8], 0x1a1b
call fcn.1001e3a0
mov ecx, dword [ebp - 0x24]
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x1001e5da
mov eax, dword [ebp - 0x34]
cmp eax, 0x7fffffff
jbe 0x1001e5c5
push 0
push 0
push 0
push 0
push 0xffffff36
call sym.NBUidai.dll_NBErrorsSetLastA
mov esi, eax
jmp 0x1001e5d7
lea edx, [ebp - 0x2c]
push edx
push eax
push ecx
call fcn.1000c5b0
xor esi, esi
test eax, eax
cmovne esi, eax
mov ecx, dword [ebp - 0x24]
push ecx
call fcn.10009af0
test esi, esi
jne 0x1001e661
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x38]
push eax
push dword [ebp - 0x2c]
call fcn.1000cac0
mov esi, eax
test esi, esi
jne 0x1001e661
test edi, edi
je 0x1001e61a
nop
mov eax, esi
mov ecx, dword [ebp - 0x28]
xor edx, edx
div dword [ebp - 0x3c]
mov eax, dword [ebp - 0x38]
mov al, byte [edx + eax]
not al
xor byte [ecx + esi], al
inc esi
cmp esi, edi
jb 0x1001e600
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x30]
push eax
push edi
push dword [ebp - 0x28]
call fcn.1001e3a0
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x1001e661
mov eax, dword [ebp - 0x34]
cmp eax, 0x7fffffff
jbe 0x1001e650
push esi
push esi
push esi
push esi
push 0xffffff36
call sym.NBUidai.dll_NBErrorsSetLastA
mov esi, eax
jmp 0x1001e661
push ebx
push eax
push dword [ebp - 0x30]
call fcn.1000c5b0
xor esi, esi
test eax, eax
cmovne esi, eax
pop edi
lea eax, [ebp - 0x2c]
push eax
push 0
call fcn.1000a210
push dword [ebp - 0x28]
call fcn.10009af0
push dword [ebp - 0x30]
call fcn.10009af0
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.10029ae5
mov esp, ebp
pop ebp
ret
Function at 0x1003e5a1
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1003e23b

Function at 0x10043f0c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10043d89
Function at 0x100484ce
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1004844a

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

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
lea eax, [ebp - 4]
push esi
push eax
push dword [ebp + 8]
mov dword [ebp - 4], esi
call fcn.1000cac0
test eax, eax
jne 0x10048ae3
mov eax, dword [ebp - 4]
push edi
test eax, eax
je 0x10048ac9
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x10048ac9
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x10048abb
test al, 0x10
jne 0x10048abb
mov eax, 1
mov dword [edi], eax
mov eax, esi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
xor eax, eax
mov dword [edi], eax
mov eax, esi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
push 0
push 0
push 0
push 0
push 0xffffff37
call sym.NBUidai.dll_NBErrorsSetLastA
test eax, eax
pop edi
cmovne esi, eax
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 8

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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
jne 0x10048b0c
push eax
push eax
push eax
push eax
push 0xffffff37
call sym.NBUidai.dll_NBErrorsSetLastA
pop ebp
ret 8
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
jne 0x10048b27
push esi
push esi
push esi
push esi
push 0xffffff37
call sym.NBUidai.dll_NBErrorsSetLastA
pop esi
pop ebp
ret 8
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x10048b45
test al, 0x10
jne 0x10048b45
mov eax, 1
mov dword [esi], eax
xor eax, eax
pop esi
pop ebp
ret 8
xor eax, eax
mov dword [esi], eax
pop esi
pop ebp
ret 8
Function at 0x10048b50
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x10188068]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
push esi
push edi
xor esi, esi
mov dword [ebp - 0x30], eax
xor edi, edi
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x2c], esi
test eax, eax
jne 0x10048b94
push edi
push edi
push edi
push edi
push 0xffffff37
call sym.NBUidai.dll_NBErrorsSetLastA
mov esi, eax
jmp 0x10048caa
test ecx, ecx
jne 0x10048bad
push ecx
push ecx
push ecx
push ecx
push 0xffffff37
call sym.NBUidai.dll_NBErrorsSetLastA
mov esi, eax
jmp 0x10048caa
test edx, edx
jne 0x10048bc6
push edx
push edx
push edx
push edx
push 0xffffff37
call sym.NBUidai.dll_NBErrorsSetLastA
mov esi, eax
jmp 0x10048caa
lea ecx, [ebp - 0x28]
push ecx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExA]
test eax, eax
jne 0x10048bed
push eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.100091d0
mov esi, eax
jmp 0x10048caa
cmp dword [ebp - 0xc], esi
je 0x10048c0b
push 0
push 0
push 0
push 0
push 0xfffffda7
call sym.NBUidai.dll_NBErrorsSetLastA
mov esi, eax
jmp 0x10048caa
push ebx
mov ebx, dword [ebp - 8]
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x10048c47
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.100091d0
mov esi, eax
jmp 0x10048ca9
lea eax, [ebp - 0x2c]
push eax
push ebx
call fcn.100097c0
test eax, eax
je 0x10048c59
mov esi, eax
jmp 0x10048ca9
push 0
lea eax, [ebp - 0x34]
push eax
push ebx
push dword [ebp - 0x2c]
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x10048c81
push eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.100091d0
mov esi, eax
jmp 0x10048ca9
cmp ebx, dword [ebp - 0x34]
je 0x10048c99
push 0
push 0
push 0
push 0
push 0xffffffffffffff9c
call sym.NBUidai.dll_NBErrorsSetLastA
mov esi, eax
jmp 0x10048ca9
mov ecx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x2c], esi
mov dword [ecx], eax
mov eax, dword [ebp - 0x3c]
mov dword [eax], ebx
pop ebx
push dword [ebp - 0x2c]
call fcn.10009af0
test edi, edi
je 0x10048cbd
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.10029ae5
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10048d70
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
jne 0x10048d8c
push eax
push eax
push eax
push eax
push 0xffffff37
call sym.NBUidai.dll_NBErrorsSetLastA
pop ebp
ret 0xc
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0xc]
test edi, edi
jne 0x10048db4
test esi, esi
je 0x10048dd8
push 0
push 0
push 0
push 0
push 0xffffff37
call sym.NBUidai.dll_NBErrorsSetLastA
pop edi
pop esi
pop ebp
ret 0xc
test esi, esi
je 0x10048dd8
cmp esi, 0xffff
jbe 0x10048dd8
push 0
push 0
push 0
push 0
push 0xffffff36
call sym.NBUidai.dll_NBErrorsSetLastA
pop edi
pop esi
pop ebp
ret 0xc
push ebx
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x10048e1d
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.100091d0
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop edi
mov eax, esi
pop esi
pop ebp
ret 0xc
test edi, edi
je 0x10048e45
test esi, esi
je 0x10048e45
push 0
lea eax, [ebp + 8]
push eax
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10048e6e
mov eax, dword [ebp + 8]
test eax, eax
je 0x10048e5b
add edi, eax
sub esi, eax
jne 0x10048e25
xor esi, esi
test ebx, ebx
je 0x10048e52
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop edi
mov eax, esi
pop esi
pop ebp
ret 0xc
push 0
push 0
push 0
push 0
push 0xffffffffffffff9c
call sym.NBUidai.dll_NBErrorsSetLastA
mov esi, eax
jmp 0x10048e47
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.100091d0
mov esi, eax
jmp 0x10048e47