joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100cada0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x194
mov eax, dword [0x101d2014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push str.NSPR_FD_CACHE_SIZE_LOW
call sym.nss3.dll_PR_GetEnv
add esp, 4
mov ebx, eax
push str.NSPR_FD_CACHE_SIZE_HIGH
call sym.nss3.dll_PR_GetEnv
add esp, 4
xor edi, edi
test ebx, ebx
mov esi, 0
mov dword [0x101d4d10], edi
mov dword [0x101d4d14], edi
jne 0x100caf2e
test eax, eax
jne 0x100caf49
test esi, esi
js 0x100caf5f
cmp esi, 0x41
jge 0x100caf63
cmp edi, 0x40
mov eax, 0x40
cmovle eax, edi
jg 0x100cae17
cmp eax, esi
jge 0x100cae21
cmp eax, esi
cmovl eax, esi
mov dword [0x101d4d14], eax
call sym.nss3.dll_PR_NewLock
mov dword [0x101d4d00], eax
call sym.nss3.dll_PR_NewLock
mov dword [0x101d4b64], eax
push eax
call sym.nss3.dll_PR_NewCondVar
add esp, 4
mov dword [0x101d4b68], eax
push 0xfffffffffffffff6
call dword [sym.imp.kernel32.dll_GetStdHandle]
mov edi, eax
call fcn.100ca570
mov esi, eax
test eax, eax
je 0x100caf73
mov dword [esi], 0x101d378c
mov eax, dword [esi + 4]
mov dword [eax], 0xaaaaaaaa
mov eax, dword [esi + 4]
mov dword [eax + 0x18], edi
mov dword [0x101d4dbc], esi
push 0xfffffffffffffff5
call dword [sym.imp.kernel32.dll_GetStdHandle]
mov edi, eax
call fcn.100ca570
mov esi, eax
test eax, eax
je 0x100caf87
mov dword [esi], 0x101d378c
mov eax, dword [esi + 4]
mov dword [eax], 0xaaaaaaaa
mov eax, dword [esi + 4]
mov dword [eax + 0x18], edi
mov dword [0x101d4dc0], esi
push 0xfffffffffffffff4
call dword [sym.imp.kernel32.dll_GetStdHandle]
mov edi, eax
call fcn.100ca570
mov esi, eax
test eax, eax
je 0x100caf9b
mov dword [esi], 0x101d378c
mov eax, dword [esi + 4]
mov dword [eax], 0xaaaaaaaa
mov eax, dword [esi + 4]
mov dword [eax + 0x18], edi
mov eax, dword [0x101d4dbc]
mov dword [0x101d4dc4], esi
xor ecx, ecx
dec ecx
mov eax, dword [eax + 4]
mov dword [eax + 8], ecx
mov eax, dword [0x101d4dc0]
mov eax, dword [eax + 4]
mov dword [eax + 8], ecx
mov eax, dword [esi + 4]
mov dword [eax + 8], ecx
lea eax, [ebp - 0x1a0]
push eax
push 0x101
call sub.wsock32.dll_WSAStartup
call fcn.100d4840
call fcn.100c9720
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10192ef0
add esp, 0x194
pop esi
pop edi
pop ebx
pop ebp
ret
push ebx
mov ebx, eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
add esp, 4
mov esi, eax
mov eax, ebx
mov dword [0x101d4d10], esi
jmp 0x100caded
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
add esp, 4
mov edi, eax
mov dword [0x101d4d14], eax
jmp 0x100cadf5
xor esi, esi
jmp 0x100caf68
mov esi, 0x40
mov dword [0x101d4d10], esi
jmp 0x100cae06
push 0
push 0xffffe890
call sym.nss3.dll_PR_SetError
add esp, 8
jmp 0x100cae71
push 0
push 0xffffe890
call sym.nss3.dll_PR_SetError
add esp, 8
jmp 0x100caea5
push 0
push 0xffffe890
call sym.nss3.dll_PR_SetError
add esp, 8
jmp 0x100caed9

Function at 0x100cb090
Capabilities:
Get socket status
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.100c9020
Function at 0x100cb160
Capabilities:
Get thread local storage value
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 8
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
mov ecx, dword [eax + 8]
cmp ecx, 0x100d2d00
jne 0x100cb222
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
push dword [0x101d4d30]
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x100cb231
mov ecx, dword [eax + 0xe0]
mov edx, ecx
and edx, 0x1002
cmp edx, 2
je 0x100cb245
cmp dword [eax + 0xf4], 0
jne 0x100cb257
mov eax, dword [0x101d4d9c]
cmp dword [eax + 4], 4
jge 0x100cb26b
mov eax, dword [ebx + 4]
mov edi, dword [eax + 0x18]
push 0
push dword [ebp - 0x14]
push dword [ebp - 0x10]
push edi
call sub.wsock32.dll_recv
mov esi, eax
cmp eax, 0xffffffff
jne 0x100cb20d
call sub.wsock32.dll_WSAGetLastError
cmp eax, 0x2733
jne 0x100cb204
mov ecx, dword [ebx + 4]
cmp dword [ecx + 4], 0
je 0x100cb2ad
push eax
call fcn.100d41f0
add esp, 4
mov eax, dword [0x101d4d9c]
cmp dword [eax + 4], 4
jge 0x100cb28c
mov eax, esi
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret
call dword [section..00cfg]
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
jmp ecx
xor eax, eax
push eax
push eax
push 1
push eax
call fcn.100e2c70
add esp, 0x10
jmp 0x100cb19d
and ecx, 0xfffffffd
mov dword [eax + 0xe0], ecx
push 0
push 0xffffe897
jmp 0x100cb25e
push 0
push 0xffffe89b
call sym.nss3.dll_PR_SetError
add esp, 8
xor esi, esi
dec esi
jmp 0x100cb218
mov eax, dword [ebx + 4]
push 0
push dword [ebp - 0x14]
push dword [ebp - 0x10]
push dword [eax + 0x18]
push ebx
push str.recv:_fd_p_osfd_ld_buf_p_amount_d_flags_d
call sym.nss3.dll_PR_LogPrint
add esp, 0x18
jmp 0x100cb1d0
call sym.nss3.dll_PR_GetOSError
mov edi, eax
call sym.nss3.dll_PR_GetError
push edi
push eax
push esi
push str.recv_____d__error___d__os_error___d
call sym.nss3.dll_PR_LogPrint
add esp, 0x10
jmp 0x100cb218
xor edx, edx
mov ecx, edi
inc edx
push 0xffffffffffffffff
call fcn.100c9980
add esp, 4
test eax, eax
jns 0x100cb1d6
jmp 0x100cb20d

Function at 0x100cb9d0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.100d4680
Function at 0x100cbfd0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xc
mov esi, dword [ebp + 8]
cmp dword [0x101d4d40], 0
je 0x100cc136
test esi, esi
mov dword [ebp - 0x14], 0
je 0x100cc01d
push esi
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
inc eax
push eax
call dword [sym.imp.mozglue.dll_malloc]
add esp, 4
test eax, eax
je 0x100cc152
push esi
mov dword [ebp - 0x14], eax
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strcpy
add esp, 8
mov edi, dword [sym.imp.kernel32.dll_TlsGetValue]
mov ebx, dword [sym.imp.mozglue.dll_calloc]
mov eax, dword [0x101d4cac]
mov esi, dword [0x101d4ca8]
inc eax
cmp eax, esi
jge 0x100cc095
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x10], 0
mov esi, dword [0x101d4ca0]
push dword [0x101d4d30]
call edi
mov ebx, eax
test eax, eax
je 0x100cc120
lea eax, [esi + 0x1c]
push eax
mov eax, dword [sym.imp.kernel32.dll_EnterCriticalSection]
call eax
mov dword [esi + 8], ebx
xor esi, esi
mov edi, dword [0x101d4cac]
mov eax, dword [0x101d4ca8]
lea ebx, [edi + 1]
cmp ebx, eax
jl 0x100cc0b7
cmp ebx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x10]
jge 0x100cc184
test esi, esi
jne 0x100cc0f8
jmp 0x100cc184
lea eax, [esi*4 + 0x40]
push eax
push 1
call ebx
add esp, 8
test eax, eax
je 0x100cc140
add esi, 0x10
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x18], esi
jmp 0x100cc043
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x100cc0c7
mov eax, dword [0x101d4ca4]
mov dword [eax + edi*4 + 4], ecx
mov dword [0x101d4cac], ebx
push dword [0x101d4ca0]
call sym.nss3.dll_PR_Unlock
add esp, 4
test esi, esi
jne 0x100cc166
mov eax, dword [ebp - 0x10]
test eax, eax
jne 0x100cc175
mov eax, ebx
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret
test eax, eax
jne 0x100cc1b7
mov esi, dword [0x101d4ca4]
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x10], 0
mov dword [0x101d4ca4], eax
mov dword [0x101d4ca8], edx
jmp 0x100cc0ba
xor eax, eax
push eax
push eax
push 1
push eax
call fcn.100e2c70
add esp, 0x10
mov ebx, eax
jmp 0x100cc05b
call sym.nss3.dll_PR_Init
jmp 0x100cbfe9
cmp dword [ebp - 0x14], 0
je 0x100cc152
push dword [ebp - 0x14]
call dword [sym.imp.mozglue.dll_free]
add esp, 4
push 0
push 0xffffe890
call sym.nss3.dll_PR_SetError
add esp, 8
xor ebx, ebx
dec ebx
jmp 0x100cc0ee
push esi
call dword [sym.imp.mozglue.dll_free]
add esp, 4
jmp 0x100cc0e3
push eax
call dword [sym.imp.mozglue.dll_free]
add esp, 4
jmp 0x100cc0ee
push dword [0x101d4ca0]
call sym.nss3.dll_PR_Unlock
add esp, 4
mov edi, dword [sym.imp.kernel32.dll_TlsGetValue]
mov ebx, dword [sym.imp.mozglue.dll_calloc]
test esi, esi
je 0x100cc029
push dword [ebp - 0x10]
call dword [sym.imp.mozglue.dll_free]
add esp, 4
jmp 0x100cc029
mov esi, dword [0x101d4ca4]
shl eax, 2
push eax
push esi
push dword [ebp - 0x10]
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [ebp - 0x14]
add esp, 0xc
jmp 0x100cc106
Function at 0x100cc7b0
Capabilities:
Print debug messages
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
cmp dword [0x101d4cc4], 0
je 0x100cc82a
cmp dword [0x101d4cc0], 0
je 0x100cc82a
mov eax, dword [0x101d4cb0]
add eax, 0x1c
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov ecx, dword [0x101d4cc8]
mov eax, dword [0x101d4cc4]
mov edx, ecx
sub edx, eax
jbe 0x100cc819
mov esi, dword [0x101d4cc0]
cmp esi, 0xfffffffe
je 0x100cc82e
push esi
push edx
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
push dword [0x101d4cc0]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
add esp, 4
mov eax, dword [0x101d4cc4]
mov dword [0x101d4cc8], eax
mov eax, dword [0x101d4cb0]
add eax, 0x1c
push eax
call sym.nss3.dll__PR_MD_UNLOCK
add esp, 4
pop esi
pop ebx
pop ebp
ret
mov bl, byte [ecx]
mov byte [ecx], 0
push eax
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
mov eax, dword [0x101d4cc8]
mov byte [eax], bl
jmp 0x100cc80f
Function at 0x100d0cb0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push esi
cmp dword [0x101d4d40], 0
jne 0x100d0cc2
call sym.nss3.dll_PR_Init
push dword [0x101d4cdc]
call sym.nss3.dll_PR_EnterMonitor
add esp, 4
mov eax, dword [0x101d4ce8]
test eax, eax
je 0x100d0cf9
push eax
call dword [sym.imp.mozglue.dll_strdup]
add esp, 4
mov esi, eax
push dword [0x101d4cdc]
call sym.nss3.dll_PR_ExitMonitor
add esp, 4
test esi, esi
jne 0x100d0d43
jmp 0x100d0d32
push str.LD_LIBRARY_PATH
call dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
add esp, 4
test eax, eax
mov ecx, str.._lib
cmovne ecx, eax
push ecx
call dword [sym.imp.mozglue.dll_strdup]
add esp, 4
test eax, eax
mov dword [0x101d4ce8], eax
jne 0x100d0cd9
push dword [0x101d4cdc]
call sym.nss3.dll_PR_ExitMonitor
add esp, 4
push 0
push 0xffffe890
call sym.nss3.dll_PR_SetError
add esp, 8
xor esi, esi
mov eax, esi
pop esi
pop ebp
ret

Function at 0x100d1750
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
push eax
push dword [0x101d4d30]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov esi, eax
test eax, eax
je 0x100d17f4
mov eax, dword [esi + 0xe0]
mov ecx, eax
and ecx, 0x1002
cmp ecx, 2
je 0x100d180a
cmp dword [esi + 0xf4], 0
jne 0x100d182b
mov edi, dword [ebp + 8]
mov eax, dword [edi + 4]
cmp dword [eax + 0x14], 0
jne 0x100d1842
mov ebx, dword [ebp + 0x10]
xor esi, esi
test ebx, ebx
jg 0x100d17c3
mov eax, dword [0x101d4d9c]
cmp dword [eax + 4], 4
jge 0x100d1866
mov eax, esi
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, dword [ebp + 0xc]
xor esi, esi
push ebx
mov dword [ebp - 0x10], ecx
push ecx
push edi
call fcn.100d5b60
add esp, 0xc
test eax, eax
js 0x100d1879
mov ecx, dword [edi + 4]
add esi, eax
cmp dword [ecx + 4], 0
jne 0x100d17aa
mov ecx, dword [ebp - 0x10]
add ecx, eax
sub ebx, eax
jle 0x100d17aa
jmp 0x100d17c8
xor eax, eax
push eax
push eax
push 1
push eax
call fcn.100e2c70
add esp, 0x10
mov esi, eax
jmp 0x100d176d
and eax, 0xfffffffd
mov dword [esi + 0xe0], eax
push 0
push 0xffffe897
call sym.nss3.dll_PR_SetError
add esp, 8
cmp dword [esi + 0xf4], 0
je 0x100d183a
push 0
push 0xffffe89b
call sym.nss3.dll_PR_SetError
add esp, 8
xor esi, esi
dec esi
jmp 0x100d17b9
mov eax, dword [edi]
mov ecx, dword [eax + 0x20]
call dword [section..00cfg]
xor eax, eax
push 2
push eax
push eax
push edi
call ecx
add esp, 0x10
and edx, eax
cmp edx, 0xffffffff
jne 0x100d17a1
jmp 0x100d183a
push esi
push str.write_____d
call sym.nss3.dll_PR_LogPrint
add esp, 8
jmp 0x100d17b9
xor esi, esi
dec esi
jmp 0x100d17aa
Function at 0x100d3410
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 8
push dword [0x101d4d30]
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x100d34c2
mov ecx, dword [eax + 0xe0]
mov edx, ecx
and edx, 0x1002
cmp edx, 2
je 0x100d34d6
cmp dword [eax + 0xf4], 0
jne 0x100d34e8
mov eax, dword [ebp + 0x10]
test eax, eax
mov dword [ebp - 0x14], eax
jle 0x100d34fc
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x18]
mov edx, dword [ebp + 0x14]
xor esi, esi
mov dword [ebp - 0x10], eax
mov eax, dword [0x101d4d9c]
cmp dword [eax + 4], 4
jge 0x100d3500
push ebx
mov edi, edx
push edx
push dword [ebp - 0x14]
push dword [ebp - 0x10]
mov ebx, dword [ebp + 8]
push ebx
call fcn.100c9ee0
add esp, 0x14
test eax, eax
js 0x100d3526
mov ecx, dword [ebx + 4]
add esi, eax
cmp dword [ecx + 4], 0
je 0x100d352e
mov eax, dword [0x101d4d9c]
cmp dword [eax + 4], 4
jge 0x100d3544
mov eax, esi
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret
xor eax, eax
push eax
push eax
push 1
push eax
call fcn.100e2c70
add esp, 0x10
jmp 0x100d342d
and ecx, 0xfffffffd
mov dword [eax + 0xe0], ecx
push 0
push 0xffffe897
jmp 0x100d34ef
push 0
push 0xffffe89b
call sym.nss3.dll_PR_SetError
add esp, 8
xor esi, esi
dec esi
jmp 0x100d34b8
xor esi, esi
jmp 0x100d34a9
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 4]
push dword [ebp - 0x14]
push dword [ebp - 0x10]
push dword [eax + 0x18]
push ecx
push str.send:_fd_p_osfd_ld_buf_p_amount_d
mov edi, edx
call sym.nss3.dll_PR_LogPrint
mov edx, edi
add esp, 0x14
jmp 0x100d347c
xor esi, esi
dec esi
jmp 0x100d34a9
add dword [ebp - 0x10], eax
sub dword [ebp - 0x14], eax
mov ebx, dword [ebp + 0x18]
mov edx, edi
jg 0x100d346d
jmp 0x100d34a9
push esi
push str.send_____d
call sym.nss3.dll_PR_LogPrint
add esp, 8
jmp 0x100d34b8

Function at 0x100d38d0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0x28
mov eax, dword [0x101d2014]
xor eax, ebp
mov dword [ebp - 8], eax
cmp dword [0x101d4d18], 0
je 0x100d3902
mov esi, dword [0x101d4d1c]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.10192ef0
mov eax, esi
add esp, 0x28
pop esi
pop ebp
ret
lea esi, [ebp - 0x2c]
push esi
call dword [sym.imp.kernel32.dll_GetSystemInfo]
mov eax, dword [esi + 4]
xor esi, esi
lea ecx, [eax - 1]
mov dword [0x101d4d18], eax
bsr ecx, ecx
xor ecx, 0xffffffe0
add ecx, 0x21
cmp eax, 2
cmovae esi, ecx
mov dword [0x101d4d1c], esi
jmp 0x100d38f0

Function at 0x100d3930
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0x28
mov eax, dword [0x101d2014]
xor eax, ebp
mov dword [ebp - 8], eax
mov esi, dword [0x101d4d18]
test esi, esi
jne 0x100d3978
lea esi, [ebp - 0x2c]
push esi
call dword [sym.imp.kernel32.dll_GetSystemInfo]
mov esi, dword [esi + 4]
xor ecx, ecx
lea eax, [esi - 1]
mov dword [0x101d4d18], esi
bsr eax, eax
xor eax, 0xffffffe0
add eax, 0x21
cmp esi, 2
cmovae ecx, eax
mov dword [0x101d4d1c], ecx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.10192ef0
mov eax, esi
add esp, 0x28
pop esi
pop ebp
ret
Function at 0x100d4070
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call sub.wsock32.dll_gethostname
test eax, eax
je 0x100d4095
call sub.wsock32.dll_WSAGetLastError
push eax
call fcn.100d41f0
add esp, 4
xor eax, eax
dec eax
pop ebp
ret
xor eax, eax
jmp 0x100d4093

Function at 0x100d40a0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0x98
mov eax, dword [0x101d2014]
lea esi, [ebp - 0x98]
xor eax, ebp
mov dword [ebp - 8], eax
push 0x90
push 0
push esi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x9c]
mov dword [esi - 4], 0x94
push eax
call dword [sym.imp.kernel32.dll_GetVersionExA]
test eax, eax
je 0x100d4135
mov esi, dword [ebp - 0x8c]
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
cmp esi, 2
jne 0x100d4149
xor esi, esi
cmp edx, 5
je 0x100d416f
cmp edx, 2
jne 0x100d411f
push dword [ebp - 0x94]
push dword [ebp - 0x98]
push 0x101b36eb
push ecx
push eax
call sym.nss3.dll_PR_snprintf
add esp, 0x14
jmp 0x100d4184
cmp edx, 1
jne 0x100d4184
push str.Windows_NT
push ecx
push eax
call sym.nss3.dll_PR_snprintf
add esp, 0xc
jmp 0x100d4184
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
call fcn.100d41f0
add esp, 4
xor esi, esi
dec esi
jmp 0x100d4184
cmp esi, 1
jne 0x100d4199
xor esi, esi
cmp edx, 5
je 0x100d416f
cmp edx, 2
je 0x100d4102
cmp edx, 1
jne 0x100d4184
cmp dword [ebp - 0x98], 4
jbe 0x100d41cf
push str.Windows_98
jmp 0x100d4129
push dword [ebp - 0x90]
push 0x101b3c2e
push ecx
push eax
call sym.nss3.dll_PR_snprintf
add esp, 0x10
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.10192ef0
mov eax, esi
add esp, 0x98
pop esi
pop ebp
ret
cmp edx, 2
je 0x100d41b6
cmp edx, 1
jne 0x100d41bf
push str.Windows_Unknown
push ecx
push eax
call sym.nss3.dll_PR_snprintf
add esp, 0xc
xor esi, esi
jmp 0x100d4184
xor esi, esi
push esi
push esi
jmp 0x100d410e
xor esi, esi
cmp edx, 5
jne 0x100d4184
test ecx, ecx
je 0x100d4184
mov byte [eax], 0
jmp 0x100d4184
jne 0x100d41da
cmp dword [ebp - 0x94], 0
jne 0x100d4168
push str.Windows_95
jmp 0x100d4129
Function at 0x100d4680
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0x28
mov eax, dword [0x101d2014]
lea esi, [ebp - 0x2c]
xor eax, ebp
mov dword [ebp - 8], eax
push esi
call dword [sym.imp.kernel32.dll_GetSystemInfo]
mov esi, dword [esi + 0x1c]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.10192ef0
mov eax, esi
add esp, 0x28
pop esi
pop ebp
ret

Function at 0x100d4df0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.100d41f0

Function at 0x100d5100
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov edi, dword [ebp + 0x10]
push dword [0x101d4d30]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov esi, eax
test eax, eax
je 0x100d5202
mov ecx, dword [ebp + 0xc]
cmp edi, 0xffffffff
je 0x100d51e9
push edi
mov edi, ecx
call sym.nss3.dll_PR_IntervalToMilliseconds
mov ecx, edi
add esp, 4
mov ebx, eax
mov edx, dword [ebp + 8]
cmp dword [ecx + 0x18], 0
jne 0x100d51f1
inc dword [edx + 0xc]
mov dword [esi + 0x104], 1
mov dword [esi + 0x13c], 0
mov eax, dword [edx + 8]
mov dword [esi + 0x138], eax
cmp dword [edx + 4], 0
jne 0x100d5218
lea eax, [edx + 4]
mov dword [eax], esi
mov dword [edx + 8], esi
push ecx
mov edi, ecx
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
push ebx
push dword [esi + 0x100]
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
mov ebx, eax
push edi
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
cmp ebx, 0x102
jne 0x100d51e4
cmp dword [esi + 0x104], 0
je 0x100d5225
mov ecx, dword [ebp + 8]
dec dword [ecx + 0xc]
mov dword [esi + 0x104], 0
cmp dword [ecx + 4], esi
mov eax, dword [esi + 0x13c]
jne 0x100d5235
test eax, eax
mov dword [ecx + 4], eax
jne 0x100d525e
mov dword [ecx + 8], 0
xor eax, eax
mov dword [esi + 0x138], eax
mov dword [esi + 0x13c], eax
pop esi
pop edi
pop ebx
pop ebp
ret
xor ebx, ebx
dec ebx
jmp 0x100d513a
mov eax, edx
mov edi, ecx
mov edx, esi
push eax
call fcn.100d52b0
add esp, 4
jmp 0x100d5182
xor eax, eax
push eax
push eax
push 1
push eax
call fcn.100e2c70
add esp, 0x10
mov esi, eax
jmp 0x100d511f
mov eax, 0x13c
add eax, dword [edx + 8]
jmp 0x100d5174
push 0xffffffffffffffff
push dword [esi + 0x100]
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
jmp 0x100d51e4
mov edx, ecx
mov ecx, dword [esi + 0x138]
mov dword [ecx + 0x13c], eax
mov ecx, dword [esi + 0x13c]
mov eax, dword [esi + 0x138]
test ecx, ecx
je 0x100d526d
mov dword [ecx + 0x138], eax
jmp 0x100d51d6
mov dword [eax + 0x138], 0
jmp 0x100d51d6
mov dword [edx + 8], eax
jmp 0x100d51d6

Function at 0x100d5280
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push dword [0x101d4d30]
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x100d5295
pop ebp
ret
xor eax, eax
push eax
push eax
push 1
push eax
call fcn.100e2c70
add esp, 0x10
jmp 0x100d5293
Function at 0x100d5af0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 8
mov esi, dword [0x101d2014]
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
xor esi, ebp
mov dword [ebp - 8], esi
lea esi, [ebp - 0xc]
mov edx, dword [edx + 4]
push 0
push esi
push ecx
push eax
push dword [edx + 0x18]
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
je 0x100d5b38
mov esi, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.10192ef0
mov eax, esi
add esp, 8
pop esi
pop ebp
ret
call dword [sym.imp.kernel32.dll_GetLastError]
xor esi, esi
cmp eax, 0x6d
je 0x100d5b26
push eax
call fcn.100d41f0
add esp, 4
xor esi, esi
dec esi
jmp 0x100d5b26

Function at 0x100d5b60
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 8
mov esi, dword [0x101d2014]
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
xor esi, ebp
mov dword [ebp - 8], esi
lea esi, [ebp - 0xc]
mov edx, dword [edx + 4]
push 0
push esi
push ecx
push eax
push dword [edx + 0x18]
call dword [sym.imp.kernel32.dll_WriteFile]
test eax, eax
je 0x100d5ba8
mov esi, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.10192ef0
mov eax, esi
add esp, 8
pop esi
pop ebp
ret
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
call fcn.100d41f0
add esp, 4
xor esi, esi
dec esi
jmp 0x100d5b96

Function at 0x100d5f60
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_DeleteFileA]
mov ecx, eax
xor eax, eax
test ecx, ecx
jne 0x100d5f86
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
call fcn.100d41f0
add esp, 4
xor eax, eax
dec eax
pop ebp
ret

Function at 0x100d62b0
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_MoveFileA]
mov ecx, eax
xor eax, eax
test ecx, ecx
jne 0x100d62d9
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
call fcn.100d41f0
add esp, 4
xor eax, eax
dec eax
pop ebp
ret

Function at 0x100d6370
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
mov ecx, eax
xor eax, eax
test ecx, ecx
jne 0x100d6398
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
call fcn.100d41f0
add esp, 4
xor eax, eax
dec eax
pop ebp
ret