joyce8/EMBER2024-capa huggingface dataset:
Function at 0x686028f0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [ebp + 8]
mov dword [ebp - 8], esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 4], edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0xc], ebx
test eax, eax
je 0x68602973
mov edx, dword [eax + 0x28]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x686029a0
mov ebx, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], eax
mov eax, str._s:_d:
mov dword [esp + 0xc], edx
mov dword [esp + 4], eax
add ebx, 0x40
mov dword [esp], ebx
call sym.__g_gnulib_fprintf
test edi, edi
jne 0x68602960
mov dword [ebp + 0x10], esi
mov edi, dword [ebp - 4]
mov dword [ebp + 8], ebx
mov esi, dword [ebp - 8]
mov dword [ebp + 0xc], 0x68663889
mov ebx, dword [ebp - 0xc]
mov esp, ebp
pop ebp
jmp sym.__g_gnulib_fprintf
mov edi, str.error:
mov dword [esp + 4], edi
mov dword [esp], ebx
call sym.__g_gnulib_fprintf
jmp 0x68602940
mov dword [ebp + 0x10], str.scanner___NULL
mov ebx, dword [ebp - 0xc]
mov dword [ebp + 0xc], str.g_scanner_msg_handler
mov esi, dword [ebp - 8]
mov dword [ebp + 8], 0x6866385c
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
jmp sym.libglib_2.0_0.dll_g_return_if_fail_warning
mov eax, str._memory_
jmp 0x6860291a

Function at 0x68603840
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, ecx
push esi
mov esi, edx
push ebx
mov ebx, eax
sub esp, 0x2c
mov edx, dword [eax + 0x50]
cmp edx, dword [eax + 0x54]
jae 0x68603874
movzx eax, byte [edx]
inc edx
mov dword [ebx + 0x50], edx
cmp al, 0xa
je 0x68603910
test al, al
je 0x6860386c
inc dword [edi]
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret
mov edx, dword [eax + 0x4c]
xor eax, eax
test edx, edx
js 0x6860386c
mov eax, dword [ebx + 0x58]
mov dword [ebp - 0x1c], eax
jmp 0x68603892
call sym.__errno
cmp dword [eax], 4
jne 0x686038f0
mov edx, dword [ebx + 0x4c]
mov eax, 0xfa0
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp], edx
mov dword [esp + 4], eax
call sym._read
cmp eax, 0xffffffff
je 0x68603885
test eax, eax
jle 0x68603900
mov edx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x1c]
inc edx
mov dword [ebx + 0x50], edx
mov edx, dword [ebp - 0x1c]
add eax, ecx
mov dword [ebx + 0x54], eax
movzx eax, byte [edx]
test al, al
jne 0x6860385e
mov byte [ebp - 0x20], al
mov dword [esp], ebx
call sym.libglib_2.0_0.dll_g_scanner_sync_file_offset
mov edx, dword [ebx + 0x50]
mov dword [ebx + 0x4c], 0xffffffff
movzx eax, byte [ebp - 0x20]
mov dword [ebx + 0x54], edx
jmp 0x6860386c
call sym.__errno
cmp dword [eax], 0xb
je 0x6860388f
lea esi, [esi]
mov dword [ebx + 0x4c], 0xffffffff
xor eax, eax
jmp 0x6860386c
mov dword [edi], 0
inc dword [esi]
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x68608190
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ecx, 0x15
mov ebp, esp
mov edx, 1
push esi
push ebx
sub esp, 0x10
mov ebx, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
mov dword [esp], str._nMEMORY_ERROR:
add ebx, 0x40
mov dword [esp + 0xc], ebx
call sym._fwrite
call sym.libglib_2.0_0.dll_g_get_prgname
mov esi, eax
call sym._getpid
test esi, esi
je 0x68608220
mov dword [esp + 0xc], eax
mov eax, str._s__ld_:_GSlice:
mov dword [esp + 8], esi
mov dword [esp + 4], eax
mov dword [esp], ebx
call sym._fprintf
lea eax, [ebp + 0xc]
mov dword [esp + 8], eax
mov eax, dword [ebp + 8]
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._vfprintf
mov dword [esp + 4], ebx
mov dword [esp], 0xa
call sym._fputc
call sym._abort
mov esi, esi
lea edi, [edi]
mov esi, 0x68664758
jmp 0x686081d3
Function at 0x68608b90
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x686a4264]
test eax, eax
je 0x68608bb4
mov ecx, str.sys_page_size__0
mov dword [esp + 4], ecx
mov dword [esp], str.assertion_failed:__s
call sym._mem_error
lea eax, [ebp - 0x34]
mov dword [esp], eax
call sym._GetSystemInfo_4
mov eax, dword [ebp - 0x30]
mov dword [0x686a4264], eax
sub esp, 4
cmp eax, 0x1ff
ja 0x68608beb
mov edx, str.sys_page_size___2__LARGEALIGNMENT
mov dword [esp + 4], edx
mov dword [esp], str.assertion_failed:__s
call sym._mem_error
mov eax, dword [0x686a4264]
lea edx, [eax - 1]
test edx, eax
je 0x68608c07
mov eax, str._sys_page_size___sys_page_size___1____0
mov dword [esp + 4], eax
mov dword [esp], str.assertion_failed:__s
call sym._mem_error
mov eax, 0x686a4228
call sym._slice_config_init
mov ecx, dword [0x686a4228]
mov eax, dword [0x686a4264]
test ecx, ecx
mov dword [0x686a4220], eax
mov dword [0x686a4224], eax
je 0x68608ce0
xor edx, edx
xor eax, eax
xor ecx, ecx
mov dword [0x686a4248], edx
mov dword [0x686a4244], eax
mov dword [0x686a425c], ecx
xor eax, eax
xor ecx, ecx
mov dword [0x686a4240], eax
mov edx, 7
xor eax, eax
mov dword [0x686a424c], ecx
xor ecx, ecx
mov dword [0x686a4250], edx
xor edx, edx
mov dword [0x686a4254], eax
lea eax, [ebp - 0x10]
mov dword [0x686a4258], ecx
mov dword [0x686a4260], edx
mov dword [esp], eax
call sym.libglib_2.0_0.dll_g_get_current_time
mov ecx, dword [ebp - 0xc]
mov edx, 0x10624dd3
mov eax, ecx
imul edx
imul eax, dword [ebp - 0x10], 0x3e8
sar ecx, 0x1f
sar edx, 6
sub edx, ecx
mov ecx, dword [0x686a4228]
add edx, eax
xor eax, eax
mov dword [0x686a4250], eax
mov eax, dword [0x686a4224]
mov dword [0x686a4254], edx
sub eax, 0x18
shr eax, 3
test ecx, ecx
mov dword [0x686a423c], eax
jne 0x68608ccf
mov edx, dword [0x686a422c]
test edx, edx
je 0x68608cd6
xor eax, eax
mov dword [0x686a423c], eax
leave
ret
sub eax, 0x18
mov edx, 4
shr eax, 6
mov dword [esp + 4], edx
mov dword [esp], eax
call sym.libglib_2.0_0.dll_g_malloc0_n
mov ecx, 4
mov dword [esp + 4], ecx
mov dword [0x686a4248], eax
mov eax, dword [0x686a4224]
sub eax, 0x18
shr eax, 6
mov dword [esp], eax
call sym.libglib_2.0_0.dll_g_malloc0_n
mov edx, 4
mov dword [esp + 4], edx
mov dword [0x686a4244], eax
mov eax, dword [0x686a4224]
sub eax, 0x18
shr eax, 6
mov dword [esp], eax
call sym.libglib_2.0_0.dll_g_malloc0_n
mov dword [0x686a425c], eax
jmp 0x68608c45
Function at 0x6860b140
Capabilities:
Move file

Disassembly:
push ebp
xor eax, eax
mov ebp, esp
xor ecx, ecx
push edi
xor edx, edx
push esi
mov edi, 0xffffffff
push ebx
sub esp, 0x3c
mov dword [esp + 8], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], edx
mov dword [esp + 4], edi
mov dword [esp], eax
call sym.libglib_2.0_0.dll_g_utf8_to_utf16
test eax, eax
mov ebx, eax
je 0x6860b299
mov eax, 0xffffffff
xor esi, esi
mov dword [esp + 4], eax
mov eax, dword [ebp + 0xc]
xor ecx, ecx
xor edx, edx
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], ecx
mov dword [esp + 8], edx
mov dword [esp], eax
call sym.libglib_2.0_0.dll_g_utf8_to_utf16
test eax, eax
mov esi, eax
je 0x6860b291
mov edi, 1
mov dword [esp + 8], edi
mov dword [esp + 4], eax
mov dword [esp], ebx
call sym._MoveFileExW_12
sub esp, 0xc
test eax, eax
je 0x6860b1f2
mov dword [ebp - 0x1c], 0
xor edi, edi
mov dword [esp], ebx
call sym.libglib_2.0_0.dll_g_free
mov dword [esp], esi
call sym.libglib_2.0_0.dll_g_free
call sym.__errno
mov edx, dword [ebp - 0x1c]
mov dword [eax], edx
lea esp, [ebp - 0xc]
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret
call sym._GetLastError_0
cmp eax, 0x11
je 0x6860b280
jbe 0x6860b220
cmp eax, 0x50
je 0x6860b23a
ja 0x6860b233
sub eax, 0x20
cmp eax, 1
nop
ja 0x6860b225
mov dword [ebp - 0x1c], 0xd
mov edi, 0xffffffff
jmp 0x6860b1ce
cmp eax, 2
jae 0x6860b250
mov dword [ebp - 0x1c], 5
mov edi, 0xffffffff
jmp 0x6860b1ce
cmp eax, 0xb7
jne 0x6860b225
mov dword [ebp - 0x1c], 0x11
mov edi, 0xffffffff
jmp 0x6860b1ce
cmp eax, 3
ja 0x6860b270
mov dword [ebp - 0x1c], 2
mov edi, 0xffffffff
jmp 0x6860b1ce
cmp eax, 5
jne 0x6860b225
jmp 0x6860b212
mov dword [ebp - 0x1c], 0x12
mov edi, 0xffffffff
jmp 0x6860b1ce
mov dword [esp], ebx
call sym.libglib_2.0_0.dll_g_free
call sym.__errno
mov edi, 0xffffffff
mov dword [eax], 0x16
jmp 0x6860b1e8

Function at 0x6860b2b0
Capabilities:
Create directory

Disassembly:
push ebp
xor eax, eax
mov ebp, esp
sub esp, 0x38
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], ebx
mov ebx, 0xffffffff
mov dword [ebp - 8], esi
xor esi, esi
mov dword [ebp - 4], edi
xor edi, edi
mov dword [esp + 4], ebx
mov dword [esp + 0xc], edi
mov dword [esp + 8], esi
mov dword [esp], eax
call sym.libglib_2.0_0.dll_g_utf8_to_utf16
test eax, eax
mov ebx, eax
je 0x6860b31a
mov dword [esp], eax
call sym.__wmkdir
mov esi, eax
call sym.__errno
mov edi, dword [eax]
mov dword [esp], ebx
call sym.libglib_2.0_0.dll_g_free
call sym.__errno
mov dword [eax], edi
mov eax, esi
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
call sym.__errno
mov esi, 0xffffffff
mov dword [eax], 0x16
jmp 0x6860b30b
Function at 0x6860b530
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ecx, 0xffffffff
mov ebp, esp
sub esp, 0x38
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], ebx
xor ebx, ebx
mov dword [ebp - 8], esi
xor esi, esi
mov dword [ebp - 4], edi
xor edi, edi
mov dword [esp + 8], ebx
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], esi
mov dword [esp + 4], ecx
mov dword [esp], eax
call sym.libglib_2.0_0.dll_g_utf8_to_utf16
test eax, eax
mov ebx, eax
je 0x6860b5ac
mov dword [esp], eax
call sym.__wremove
cmp eax, 0xffffffff
mov esi, eax
je 0x6860b5a0
call sym.__errno
mov edi, dword [eax]
mov dword [esp], ebx
call sym.libglib_2.0_0.dll_g_free
call sym.__errno
mov dword [eax], edi
mov eax, esi
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov dword [esp], ebx
call sym.__wrmdir
mov esi, eax
jmp 0x6860b57a
call sym.__errno
mov esi, 0xffffffff
mov dword [eax], 0x16
jmp 0x6860b590

Function at 0x6860b5c0
Capabilities:
Delete directory

Disassembly:
push ebp
mov eax, 0xffffffff
mov ebp, esp
sub esp, 0x38
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
xor ecx, ecx
xor edx, edx
mov dword [ebp - 0xc], ebx
xor ebx, ebx
mov dword [esp + 0x10], ebx
mov dword [ebp - 8], esi
mov dword [ebp - 4], edi
mov dword [esp + 0xc], ecx
mov dword [esp + 8], edx
mov dword [esp], eax
call sym.libglib_2.0_0.dll_g_utf8_to_utf16
test eax, eax
mov ebx, eax
je 0x6860b62a
mov dword [esp], eax
call sym.__wrmdir
mov esi, eax
call sym.__errno
mov edi, dword [eax]
mov dword [esp], ebx
call sym.libglib_2.0_0.dll_g_free
call sym.__errno
mov dword [eax], edi
mov eax, esi
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
call sym.__errno
mov esi, 0xffffffff
mov dword [eax], 0x16
jmp 0x6860b61b
Function at 0x6861a540
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2c
mov edi, dword [ebp + 8]
mov dword [esp], 0x686a438c
call sym.libglib_2.0_0.dll_g_static_private_get
test eax, eax
mov ebx, eax
je 0x6861a660
call sym.__g_locale_charset_raw
mov esi, dword [ebx + 4]
test esi, esi
mov dword [ebp - 0x1c], eax
je 0x6861a594
mov dword [esp + 4], eax
mov dword [esp], esi
call sym._strcmp
test eax, eax
jne 0x6861a594
test edi, edi
je 0x6861a58a
mov eax, dword [ebx + 8]
mov dword [edi], eax
mov eax, dword [ebx]
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], esi
call sym.libglib_2.0_0.dll_g_free
mov eax, dword [ebx + 8]
mov dword [esp], eax
call sym.libglib_2.0_0.dll_g_free
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call sym.libglib_2.0_0.dll_g_strdup
mov dword [ebx + 4], eax
mov dword [esp], str.CHARSET
call sym._getenv
test eax, eax
mov esi, eax
je 0x6861a5cc
cmp byte [eax], 0
jne 0x6861a622
mov esi, dword [sym.libglib_2.0_0.dll_g_threads_got_initialized]
test esi, esi
je 0x6861a5ee
mov eax, dword [0x686a4390]
mov esi, dword [0x686576c4]
test eax, eax
je 0x6861a6b0
mov dword [esp], eax
call esi
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call sym.__g_locale_charset_unalias
mov ecx, dword [sym.libglib_2.0_0.dll_g_threads_got_initialized]
test ecx, ecx
mov esi, eax
je 0x6861a619
mov eax, dword [0x686a4390]
mov edx, dword [0x686576cc]
test eax, eax
je 0x6861a690
mov dword [esp], eax
call edx
test esi, esi
je 0x6861a650
cmp byte [esi], 0
je 0x6861a650
mov edx, 0x6867a7ac
mov dword [esp + 4], edx
mov dword [esp], esi
call sym._strstr
xor edx, edx
test eax, eax
setne dl
mov dword [ebx], edx
mov dword [esp], esi
call sym.libglib_2.0_0.dll_g_strdup
mov dword [ebx + 8], eax
jmp 0x6861a581
mov esi, str.US_ASCII
xor edx, edx
jmp 0x6861a63a
mov dword [esp], 0xc
call sym.libglib_2.0_0.dll_g_malloc0
mov dword [esp], 0x686a438c
mov ebx, eax
mov eax, sym._charset_cache_free
mov dword [esp + 8], eax
mov dword [esp + 4], ebx
call sym.libglib_2.0_0.dll_g_static_private_set
jmp 0x6861a562
mov dword [ebp - 0x20], edx
mov dword [esp], 0x686a4390
call sym.libglib_2.0_0.dll_g_static_mutex_get_mutex_impl
mov edx, dword [ebp - 0x20]
jmp 0x6861a614
mov dword [esp], 0x686a4390
call sym.libglib_2.0_0.dll_g_static_mutex_get_mutex_impl
jmp 0x6861a5e9
Function at 0x6861d560
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x238
lea edx, [ebp - 0xc]
mov dword [ebp - 8], ebx
xor ebx, ebx
mov dword [ebp - 4], esi
mov dword [ebp - 0xc], 0
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov dword [esp], 0
call sym._SHGetSpecialFolderLocation_12
sub esp, 0xc
test eax, eax
je 0x6861d5a2
mov eax, ebx
mov esi, dword [ebp - 4]
mov ebx, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0xc]
lea esi, [ebp - 0x216]
mov dword [esp + 4], esi
mov dword [esp], eax
call sym._SHGetPathFromIDListW_8
sub esp, 8
test eax, eax
jne 0x6861d5e0
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._CoTaskMemFree_4
mov eax, ebx
mov esi, dword [ebp - 4]
mov ebx, dword [ebp - 8]
sub esp, 4
mov esp, ebp
pop ebp
ret
xor ebx, ebx
xor ecx, ecx
xor edx, edx
mov eax, 0xffffffff
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], ecx
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov dword [esp], esi
call sym.libglib_2.0_0.dll_g_utf16_to_utf8
mov ebx, eax
jmp 0x6861d5be
Function at 0x6861dbc0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x3c
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x28], 0
test ebx, ebx
je 0x6861dc0e
mov eax, 0x686993be
mov dword [esp + 4], eax
mov dword [esp], ebx
call sym.libglib_2.0_0.dll_g_ascii_strcasecmp
test eax, eax
jne 0x6861dc19
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x6861dc0e
mov edx, dword [ebp - 0x28]
mov ecx, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
lea esi, [esi]
mov esi, dword [ecx + eax*8 + 4]
inc eax
or edx, esi
cmp ebx, eax
ja 0x6861dc00
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 0x28]
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
mov edx, str.help
mov dword [esp + 4], edx
mov dword [esp], ebx
call sym.libglib_2.0_0.dll_g_ascii_strcasecmp
test eax, eax
je 0x6861dd0f
movzx eax, byte [ebx]
mov dword [ebp - 0x20], ebx
mov byte [ebp - 0x29], al
cmp byte [ebp - 0x29], 0
je 0x6861dc0e
mov edx, dword [ebp - 0x20]
mov ecx, str.:____t
mov dword [esp + 4], ecx
mov dword [esp], edx
call sym._strpbrk
test eax, eax
mov dword [ebp - 0x30], eax
je 0x6861ddaa
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x6861dcf0
mov edx, dword [ebp - 0x30]
mov esi, dword [ebp - 0x20]
mov dword [ebp - 0x24], 0
sub edx, esi
mov dword [ebp - 0x1c], edx
lea esi, [esi]
mov ebx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x24]
mov edx, dword [ebp + 0xc]
test ebx, ebx
mov edi, dword [edx + eax*8]
je 0x6861dd80
movzx ebx, byte [ebp - 0x29]
xor esi, esi
jmp 0x6861dcb2
inc esi
inc edi
cmp dword [ebp - 0x1c], esi
je 0x6861dd80
mov eax, dword [ebp - 0x20]
movzx ebx, byte [eax + esi]
movzx eax, byte [edi]
mov dl, 0x2d
cmp al, 0x5f
je 0x6861dcc8
movsx eax, al
mov dword [esp], eax
call sym._tolower
mov dl, al
cmp bl, 0x5f
mov al, 0x2d
je 0x6861dce1
movsx ebx, bl
mov dword [esp], ebx
mov byte [ebp - 0x34], dl
call sym._tolower
movzx edx, byte [ebp - 0x34]
cmp dl, al
je 0x6861dca0
inc dword [ebp - 0x24]
mov eax, dword [ebp - 0x24]
cmp dword [ebp + 0x10], eax
ja 0x6861dc80
mov edx, dword [ebp - 0x30]
cmp byte [edx], 0
je 0x6861dc0e
mov eax, dword [ebp - 0x30]
inc edx
mov dword [ebp - 0x20], edx
movzx eax, byte [eax + 1]
mov byte [ebp - 0x29], al
jmp 0x6861dc3b
mov esi, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x18
mov dword [esp + 4], 1
mov dword [esp], str.Supported_debug_values:
add esi, 0x40
mov dword [esp + 0xc], esi
call sym._fwrite
cmp dword [ebp + 0x10], 0
je 0x6861dd61
mov edi, dword [ebp + 0xc]
xor ebx, ebx
mov eax, dword [edi + ebx*8]
inc ebx
mov dword [esp], esi
mov dword [esp + 8], eax
mov eax, 0x686993e0
mov dword [esp + 4], eax
call sym._fprintf
cmp dword [ebp + 0x10], ebx
ja 0x6861dd43
mov dword [esp + 4], esi
mov dword [esp], 0xa
call sym._fputc
mov dword [ebp - 0x28], 0
jmp 0x6861dc0e
cmp byte [edi], 0
jne 0x6861dce5
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp + 0xc]
mov edx, dword [eax + edx*8 + 4]
inc dword [ebp - 0x24]
or dword [ebp - 0x28], edx
mov eax, dword [ebp - 0x24]
cmp dword [ebp + 0x10], eax
ja 0x6861dc80
jmp 0x6861dcf0
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call sym._strlen
mov edx, dword [ebp - 0x20]
add eax, edx
mov dword [ebp - 0x30], eax
jmp 0x6861dc60
Function at 0x6861e2c0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, 0x104
sub esp, 0x234
mov dword [esp + 4], ebx
lea ebx, [ebp - 0x210]
mov dword [esp], ebx
call sym._GetWindowsDirectoryW_8
sub esp, 8
test eax, eax
je 0x6861e335
xor ecx, ecx
xor edx, edx
xor eax, eax
mov dword [esp + 0x10], ecx
mov ecx, 0xffffffff
mov dword [esp], ebx
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
call sym.libglib_2.0_0.dll_g_utf16_to_utf8
test eax, eax
mov ebx, eax
je 0x6861e335
mov dword [esp], eax
call sym.libglib_2.0_0.dll_g_path_skip_root
movzx edx, byte [eax - 1]
lea ecx, [eax - 1]
cmp dl, 0x2f
jne 0x6861e350
cmp byte [eax - 2], 0x3a
je 0x6861e355
mov byte [ecx], 0
mov eax, ebx
mov ebx, dword [ebp - 4]
leave
ret
mov dword [esp], 0x68699400
call sym.libglib_2.0_0.dll_g_strdup
mov ebx, eax
mov eax, ebx
mov ebx, dword [ebp - 4]
leave
ret
cmp dl, 0x5c
je 0x6861e325
mov ecx, eax
jmp 0x6861e32b

Function at 0x6861e5b0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x40
lea eax, [ebp - 0xc]
mov dword [esp + 4], eax
mov dword [esp], 2
call sym._GetCurrentDirectoryW_8
mov ecx, 2
sub esp, 8
mov ebx, eax
mov dword [esp + 4], ecx
mov dword [esp], eax
call sym.libglib_2.0_0.dll_g_malloc_n
mov dword [esp], ebx
dec ebx
mov esi, eax
mov dword [esp + 4], eax
call sym._GetCurrentDirectoryW_8
sub esp, 8
cmp eax, ebx
je 0x6861e612
mov dword [esp], esi
call sym.libglib_2.0_0.dll_g_free
mov dword [esp], 0x686993fe
call sym.libglib_2.0_0.dll_g_strdup
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
xor edx, edx
xor eax, eax
mov ecx, 0xffffffff
xor ebx, ebx
mov dword [esp + 0x10], edx
mov dword [esp + 4], ecx
mov dword [esp + 0xc], eax
mov dword [esp + 8], ebx
mov dword [esp], esi
call sym.libglib_2.0_0.dll_g_utf16_to_utf8
mov dword [esp], esi
mov dword [ebp - 0x1c], eax
call sym.libglib_2.0_0.dll_g_free
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x6861e5ff
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
Function at 0x6861f7a0
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov dword [ebp - 0xc], ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 8], esi
mov dword [ebp - 4], edi
test ebx, ebx
je 0x6861f800
mov ecx, 0x3d
mov dword [esp + 4], ecx
mov dword [esp], ebx
call sym._strchr
test eax, eax
je 0x6861f830
mov edi, str.strchr__variable_____NULL
mov esi, 0x686996a8
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], 0x686993b9
call sym.libglib_2.0_0.dll_g_return_if_fail_warning
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov edx, str.variable___NULL
mov eax, 0x686996a8
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov dword [esp], 0x686993b9
call sym.libglib_2.0_0.dll_g_return_if_fail_warning
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
xor edx, edx
mov eax, 0xffffffff
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov dword [esp], ebx
call sym.libglib_2.0_0.dll_g_utf8_validate
test eax, eax
je 0x6861f8f0
xor ecx, ecx
mov edx, 0xffffffff
xor edi, edi
xor esi, esi
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
mov dword [esp + 0x10], edi
mov edi, 0x686994af
mov dword [esp + 0xc], esi
mov dword [esp], ebx
call sym.libglib_2.0_0.dll_g_utf8_to_utf16
mov dword [esp + 4], edi
mov dword [esp], ebx
mov ebx, 0xffffffff
mov esi, eax
xor eax, eax
mov dword [esp + 8], eax
call sym.libglib_2.0_0.dll_g_strconcat
xor ecx, ecx
xor edx, edx
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], edx
mov dword [esp + 4], ebx
mov edi, eax
xor eax, eax
mov dword [esp], edi
mov dword [esp + 8], eax
call sym.libglib_2.0_0.dll_g_utf8_to_utf16
mov dword [esp], edi
mov ebx, eax
call sym.libglib_2.0_0.dll_g_free
mov dword [esp], ebx
call sym.__wputenv
mov dword [esp], ebx
call sym.libglib_2.0_0.dll_g_free
xor ecx, ecx
mov dword [esp], esi
mov dword [esp + 4], ecx
call sym._SetEnvironmentVariableW_8
mov ebx, dword [ebp - 0xc]
mov dword [ebp + 8], esi
mov edi, dword [ebp - 4]
mov esi, dword [ebp - 8]
sub esp, 8
mov esp, ebp
pop ebp
jmp sym.libglib_2.0_0.dll_g_free
mov ebx, str.g_utf8_validate__variable___1__NULL_
mov ecx, 0x686996a8
mov dword [esp + 8], ebx
mov dword [esp + 4], ecx
mov dword [esp], 0x686993b9
call sym.libglib_2.0_0.dll_g_return_if_fail_warning
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x6861f920
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, 1
push ebx
sub esp, 0x3c
call sym._GetEnvironmentStringsW_0
test eax, eax
mov dword [ebp - 0x24], eax
je 0x6861f964
cmp word [eax], 0
je 0x6861f964
mov ebx, eax
xor esi, esi
lea esi, [esi]
lea edi, [edi]
mov dword [esp], ebx
inc esi
call sym._wcslen
lea ebx, [ebx + eax*2 + 2]
cmp word [ebx], 0
jne 0x6861f950
inc esi
mov edx, 4
mov dword [esp + 4], edx
mov dword [esp], esi
call sym.libglib_2.0_0.dll_g_malloc0_n
mov dword [ebp - 0x20], eax
mov edi, eax
mov eax, dword [ebp - 0x24]
cmp word [eax], 0
je 0x6861fa10
mov esi, eax
mov dword [ebp - 0x1c], 0
jmp 0x6861f9b3
mov byte [eax], 0
inc dword [ebp - 0x1c]
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
lea edi, [eax + edx*4]
mov dword [esp], esi
call sym._wcslen
lea esi, [esi + eax*2 + 2]
cmp word [esi], 0
je 0x6861fa10
mov edx, dword [ebp - 0x1c]
xor ebx, ebx
xor ecx, ecx
mov eax, dword [ebp - 0x20]
mov dword [esp + 0xc], ebx
mov dword [esp + 8], ecx
mov dword [esp], esi
lea edi, [eax + edx*4]
xor eax, eax
mov edx, 0xffffffff
mov dword [esp + 0x10], eax
mov dword [esp + 4], edx
call sym.libglib_2.0_0.dll_g_utf16_to_utf8
test eax, eax
mov ebx, eax
mov dword [edi], eax
je 0x6861f9a1
mov eax, 0x3d
mov dword [esp + 4], eax
mov dword [esp], ebx
call sym._strchr
test eax, eax
je 0x6861fa00
cmp ebx, eax
jb 0x6861f992
mov dword [esp], ebx
call sym.libglib_2.0_0.dll_g_free
jmp 0x6861f9a1
mov edx, dword [ebp - 0x24]
mov dword [edi], 0
mov dword [esp], edx
call sym._FreeEnvironmentStringsW_4
mov eax, dword [ebp - 0x20]
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x6862dcb0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x6862dcc3
leave
jmp sym.__g_gnulib_vfprintf
mov eax, str.format___NULL
mov ecx, str.g_vfprintf
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], 0x6869ce8f
call sym.libglib_2.0_0.dll_g_return_if_fail_warning
mov eax, 0xffffffff
leave
ret