joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43303c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x456130]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.004284d0
add esp, 0xc
mov esi, 0x104
push esi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x4330d2
push 0x5c
pop ecx
cmp cx, word [ebp + eax*2 - 0x20e]
je 0x4330a9
push 1
push 0x4522e4
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.00432ff1
mov edi, eax
test edi, edi
js 0x4330f1
push dword [ebp + 8]
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.00432fb4
mov edi, eax
test edi, edi
js 0x4330f1
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebx], eax
test eax, eax
jne 0x4330f1
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x4330e6
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
test edi, edi
js 0x4330f1
mov edi, 0x80004005
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042854a
leave
ret 8

Function at 0x43360e
Capabilities:
Contain obfuscated stackstrings

Disassembly:
adc al, 0x8d
je 0x43364a
sbb byte [ecx - 0x1017438b], cl
std
invalid
dec esi
or al, 0xf
mov bh, 0xd0
mov eax, dword [ecx + 4]
mov esi, dword [ecx]
add eax, esi
cmp dword [ebp - 8], eax
jae 0x43365e
mov dword [ebp - 8], eax
add ecx, 0x28
dec edx
jne 0x43364f
mov byte [ebp - 0x58], bl
mov byte [ebp - 0x57], bl
mov byte [ebp - 0x56], 0x58
mov byte [ebp - 0x55], bl
mov byte [ebp - 0x54], 0xe0
mov byte [ebp - 0x53], 0xc2
mov byte [ebp - 0x52], 0xd3
mov byte [ebp - 0x51], 0xf4
mov byte [ebp - 0x50], 0xde
mov byte [ebp - 0x4f], 0xd4
mov byte [ebp - 0x4e], 0xd3
mov byte [ebp - 0x4d], 0xc2
mov byte [ebp - 0x4c], 0xca
mov byte [ebp - 0x4b], 0xee
mov byte [ebp - 0x4a], 0xc9
leave
mov byte [ebp - 0x49], 0xc1
mov byte [ebp - 0x48], 0xc8
mov byte [ebp - 0x47], 0xa7
call fcn.0043340a
in al, dx
aas
push esp
push ss
lea eax, [ebp - 0x58]
push eax
call fcn.0043341a
mov esi, dword [ebp + 0xc]
push eax
push esi
push dword [ebp + 8]
call fcn.004333cf
add esp, 0x10
lea ecx, [ebp - 0xb0]
push ecx
call eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xac]
xor edx, edx
div ecx
xor edx, edx
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 8]
div ecx
test edx, edx
je 0x4336f8
inc dword [ebp - 0x8c]
imul ecx, dword [ebp - 0x8c]
mov dword [ebp + 0xc], ecx
mov byte [ebp - 0x40], bl
mov byte [ebp - 0x3f], bl
mov byte [ebp - 0x3e], 0xec
mov byte [ebp - 0x3d], bl
mov byte [ebp - 0x3c], 0x45
mov byte [ebp - 0x3b], 0x7a
mov byte [ebp - 0x3a], 0x61
mov byte [ebp - 0x39], 0x67
mov byte [ebp - 0x38], 0x66
mov byte [ebp - 0x37], 0x72
mov byte [ebp - 0x36], 0x7f
mov byte [ebp - 0x35], 0x52
mov byte [ebp - 0x34], 0x7f
mov byte [ebp - 0x33], 0x7f
mov byte [ebp - 0x32], 0x7c
mov byte [ebp - 0x31], 0x70
mov byte [ebp - 0x30], 0x13
call fcn.0043340a
cmpsd dword [esi], dword es:[edi]
and cl, ch
int3
Function at 0x4337b2
Capabilities:
Contain obfuscated stackstrings

Disassembly:
call fcn.0043341a
push eax
push esi
push dword [ebp + 8]
call fcn.004333cf
mov dword [ebp - 8], eax
lea eax, [ebp - 0x6c]
push eax
mov byte [ebp - 0x6c], bl
mov byte [ebp - 0x6b], bl
mov byte [ebp - 0x6a], 0xbe
mov byte [ebp - 0x69], bl
mov byte [ebp - 0x68], 0x17
mov byte [ebp - 0x67], 0x28
invalid
inc ebp

Function at 0x4337df
Capabilities:
Contain obfuscated stackstrings

Disassembly:
lcall 0xc635, 0x9b45c633
inc ebp
pushfd
xor al, 0xc6
inc ebp
popfd
and dh, al
inc ebp
sahf
sub eax, 0x119f45c6

Function at 0x433945
Capabilities:
Encrypt data using rc4 prga
Inspect section memory permissions

Disassembly:
adc byte [eax], al
add bh, bh
jne 0x433927
push ebx
call dword [ebp - 0x88]
mov esi, eax
cmp esi, ebx
je 0x433c03
test bh, dl
add al, byte [eax]
add bh, bh
mov ch, 0x4c
push dword [ebp - 0xb4]
push dword [ebp + 0x10]
push esi
call fcn.0043337b
add esp, 0xc
cmp word [edi + 6], bx
mov dword [ebp + 0xc], ebx
jbe 0x43397a
movzx eax, word [ebp + 0xc]
mov ecx, dword [ebp - 0x44]
lea eax, [eax + eax*4]
push dword [ecx + eax*8 + 0x10]
lea eax, [ecx + eax*8]
mov ecx, dword [eax + 0x14]
mov eax, dword [eax + 0xc]
add ecx, dword [ebp + 0x10]
add eax, esi
push ecx
push eax
call fcn.0043337b
add esp, 0xc
inc dword [ebp + 0xc]
mov ax, word [ebp + 0xc]
cmp ax, word [edi + 6]
jb 0x433947
call fcn.0043340a
push ss
jne 0x433915
insd dword es:[edi], dx
mov edi, dword [esi + 0x3c]
add edi, esi
mov dword [ebp - 0x88], edi
mov eax, dword [edi + 0x80]
cmp eax, ebx
je 0x433bf9
add eax, esi
mov dword [ebp - 0x44], eax
cmp dword [eax + 4], ebx
jne 0x4339af
cmp dword [eax + 0xc], ebx
je 0x433a52
mov edi, dword [eax + 0xc]
add edi, esi
push edi
call dword [ebp - 0xc0]
mov dword [ebp + 0xc], eax
call fcn.0043340a
xor eax, 0x390df433
pop ebp
or al, 0x75
adc dl, byte [edi - 1]
xchg ebp, eax
dec eax
invalid
call fcn.0043340a
and dword [eax], edx
jae 0x433a6c
mov eax, dword [edi + 0xa0]
cmp eax, ebx
je 0x433abe
add eax, esi
cmp dword [eax], ebx
je 0x433abe
mov edx, dword [eax + 4]
lea ecx, [eax + 8]
add edx, eax
mov dword [ebp + 8], ecx
cmp ecx, edx
push eax
add al, 0x8d
dec eax
or byte [ebx], al
ror byte [ecx - 0x35c4f7b3], 1
jae 0x433ab9
mov ecx, dword [ebp + 8]
movzx ecx, word [ecx]
mov edx, ecx
and edx, 0xf000
cmp edx, 0x3000
jne 0x433aa3
and ecx, 0xfff
mov edx, esi
sub edx, dword [edi + 0x34]
add ecx, esi
add ecx, dword [eax]
add dword [ecx], edx
jmp 0x433aab
cmp edx, ebx
jne 0x433bf9
mov ecx, dword [eax + 4]
add dword [ebp + 8], 2
add ecx, eax
cmp dword [ebp + 8], ecx
jb 0x433a7a
add eax, dword [eax + 4]
jmp 0x433a67
mov dword [ebp + 0xc], ebx
jmp 0x433ac9
Function at 0x433adb
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x433ae1
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
add byte [eax], al
add byte [eax - 0x15], ah
push ds
add byte [eax], al
add byte [eax - 0x15], ah
push ds
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x433b5d
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x433b44
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x433b4d
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x433b57
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x433b39
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x433ac3
mov dword [ebp + 8], esi
xor edi, edi

Function at 0x433c39
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x350], 0x62
mov byte [ebp - 0x34f], 0x40
mov byte [ebp - 0x34e], 0x51
mov byte [ebp - 0x34d], 0x75
mov byte [ebp - 0x34c], 0x57
mov byte [ebp - 0x34b], 0x4a
mov byte [ebp - 0x34a], 0x46
mov byte [ebp - 0x349], 0x40
mov byte [ebp - 0x348], 0x56
mov byte [ebp - 0x347], 0x56
mov byte [ebp - 0x346], 0x6d

Function at 0x433cda
Capabilities:
Contain obfuscated stackstrings

Disassembly:
and byte [ebp - 0x334], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x333]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x670], 4
and byte [ebp - 0x3c4], 0
and byte [ebp - 0x3c3], 0
mov byte [ebp - 0x3c2], 0x99
and byte [ebp - 0x3c1], 0
mov byte [ebp - 0x3c0], 0x21
mov byte [ebp - 0x3bf], 3
invalid
test dword [edx - 4], eax
invalid
Function at 0x4347f8
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push eax
call fcn.0043337b
add esp, 0xc
and dword [ebp - 0x700], 0
jmp 0x434817
mov eax, dword [ebp - 0x700]
inc eax
mov dword [ebp - 0x700], eax
cmp dword [ebp - 0x700], 5
jge 0x434860
mov eax, dword [ebp - 0x700]
movsx eax, byte [ebp + eax - 0x394]
movsx ecx, byte [ebp - 0x24]
xor eax, ecx
mov ecx, dword [ebp - 0x700]
mov byte [ebp + ecx - 0x394], al
mov eax, dword [ebp - 0x700]
movsx eax, byte [ebp + eax - 0x394]
not eax
mov ecx, dword [ebp - 0x700]
mov byte [ebp + ecx - 0x394], al
jmp 0x43480a
call fcn.0043340a
stosb byte es:[edi], al
and bl, al
adc eax, dword [eax - 0x72b5b]
inc dword [eax]
and byte [ebp - 0x72b], 0
mov byte [ebp - 0x72a], 0xc2
and byte [ebp - 0x729], 0
mov byte [ebp - 0x728], 0x6b
mov byte [ebp - 0x727], 0x54
mov byte [ebp - 0x726], 0x4f
mov byte [ebp - 0x725], 0x49
mov byte [ebp - 0x724], 0x48
mov byte [ebp - 0x723], 0x5c
mov byte [ebp - 0x722], 0x51
mov byte [ebp - 0x721], 0x6d
mov byte [ebp - 0x720], 0x4f
mov byte [ebp - 0x71f], 0x52
mov byte [ebp - 0x71e], 0x49
mov byte [ebp - 0x71d], 0x58
mov byte [ebp - 0x71c], 0x5e
mov byte [ebp - 0x71b], 0x49
mov byte [ebp - 0x71a], 0x3d
call fcn.0043340a
into
inc ebx
inc ecx
or byte [ebp - 0x72b7b], 0xff
push eax
call fcn.0043341a
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.004333cf
add esp, 0xc
mov dword [ebp - 0x6e4], eax
call fcn.0043340a
outsd dx, dword [esi]
xor esp, eax
jae 0x4348b0
test esi, ebx
clc
invalid
test eax, ebp
clc
invalid

Function at 0x4355ad
Capabilities:
Access peb ldr_data

Disassembly:
lds esp, [esp + edx*2]
call fcn.0043340a
and byte [ebp + 0x5b], bh
in al, dx
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov esi, dword [eax + 0x1c]
lodsd eax, dword [esi]
cmp byte [eax + 0x1c], 0x18
je 0x4355ce
xchg esi, eax
lodsd eax, dword [esi]
mov eax, dword [eax + 8]
push eax
call fcn.0043340a
ret 0x637
Function at 0x10001000
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [section..data]
jne 0x1000100a
repz ret
jmp fcn.100014a4
Function at 0x1000bfd0
Capabilities:
Get geographical location
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 0x20], 0
push 0x100d3310
call dword [sym.imp.MSVCR90.dll_getenv]
add esp, 4
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x1000c008
mov eax, dword [ebp - 0x18]
movsx ecx, byte [eax]
test ecx, ecx
jne 0x1000c04a
push 0x100d3318
call dword [sym.imp.MSVCR90.dll_getenv]
add esp, 4
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x1000c029
mov edx, dword [ebp - 0x18]
movsx eax, byte [edx]
test eax, eax
jne 0x1000c04a
push 0x100d3324
call dword [sym.imp.MSVCR90.dll_getenv]
add esp, 4
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x1000c05b
mov ecx, dword [ebp - 0x18]
movsx edx, byte [ecx]
test edx, edx
je 0x1000c05b
mov eax, dword [ebp - 0x18]
push eax
call sym.glib_2.0.dll_g_strdup
add esp, 4
jmp 0x1000c15c
call dword [sym.imp.KERNEL32.dll_GetThreadLocale]
mov dword [ebp - 0x28], eax
push 0xa
lea ecx, [ebp - 0x14]
push ecx
push 0x59
mov edx, dword [ebp - 0x28]
push edx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x1000c090
push 0xa
lea eax, [ebp - 0x34]
push eax
push 0x5a
mov ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x1000c0a2
push 0x100d332c
call sym.glib_2.0.dll_g_strdup
add esp, 4
jmp 0x1000c15c
mov dx, word [ebp - 0x28]
mov word [ebp - 0x1c], dx
movzx eax, word [ebp - 0x1c]
and eax, 0x3ff
mov dword [ebp - 4], eax
movzx ecx, word [ebp - 0x1c]
sar ecx, 0xa
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 4]
mov dword [ebp - 0x38], edx
cmp dword [ebp - 0x38], 0x1a
je 0x1000c100
cmp dword [ebp - 0x38], 0x2c
je 0x1000c0da
cmp dword [ebp - 0x38], 0x43
je 0x1000c11d
jmp 0x1000c141
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 1
je 0x1000c0ee
cmp dword [ebp - 0x3c], 2
je 0x1000c0f7
jmp 0x1000c0fe
mov dword [ebp - 0x20], 0x100d3330
jmp 0x1000c0fe
mov dword [ebp - 0x20], 0x100d3338
jmp 0x1000c141
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x40], ecx
cmp dword [ebp - 0x40], 2
je 0x1000c114
cmp dword [ebp - 0x40], 6
je 0x1000c114
jmp 0x1000c11b
mov dword [ebp - 0x20], 0x100d3340
jmp 0x1000c141
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0x44], edx
cmp dword [ebp - 0x44], 1
je 0x1000c131
cmp dword [ebp - 0x44], 2
je 0x1000c13a
jmp 0x1000c141
mov dword [ebp - 0x20], str._Latn
jmp 0x1000c141
mov dword [ebp - 0x20], str._Cyrl
push 0
mov eax, dword [ebp - 0x20]
push eax
lea ecx, [ebp - 0x34]
push ecx
push 0x100d3358
lea edx, [ebp - 0x14]
push edx
call sym.glib_2.0.dll_g_strconcat
add esp, 0x14
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.10001000
mov esp, ebp
pop ebp
ret
Function at 0x1000c9e0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.MSVCR90.dll_getenv]
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x1000ca41
mov ecx, dword [ebp - 4]
movsx edx, byte [ecx]
test edx, edx
je 0x1000ca41
mov eax, dword [ebp - 4]
push eax
call sub.MSVCR90.dll_strlen
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0x400
jge 0x1000ca41
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.MSVCR90.dll_strncpy]
add esp, 0xc
mov ecx, dword [ebp + 0xc]
add ecx, dword [ebp - 8]
mov byte [ecx], 0
mov eax, dword [ebp + 0xc]
jmp 0x1000ca43
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x1000d2f0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 0
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x1000d368
lea edx, [ebp - 0x228]
push edx
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x1000d35e
push 0
push 0
push 0
push 0xffffffffffffffff
lea ecx, [ebp - 0x228]
push ecx
call sym.glib_2.0.dll_g_utf16_to_utf8
add esp, 0x14
mov dword [ebp - 4], eax
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.10001000
mov esp, ebp
pop ebp
ret
Function at 0x1000d380
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x1000d3ce
mov eax, dword [ebp - 4]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
movzx edx, word [ecx]
test edx, edx
je 0x1000d3ce
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.MSVCR90.dll_wcslen]
add esp, 4
mov ecx, dword [ebp - 8]
lea edx, [ecx + eax*2 + 2]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 0xc]
add eax, 1
mov dword [ebp - 0xc], eax
jmp 0x1000d3a2
mov ecx, dword [ebp - 0xc]
lea edx, [ecx*4 + 4]
push edx
call sym.glib_2.0.dll_g_malloc0
add esp, 4
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], 0
mov eax, dword [ebp - 4]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
movzx edx, word [ecx]
test edx, edx
je 0x1000d493
push 0
push 0
push 0
push 0xffffffffffffffff
mov eax, dword [ebp - 8]
push eax
call sym.glib_2.0.dll_g_utf16_to_utf8
add esp, 0x14
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
mov dword [edx + ecx*4], eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
cmp dword [ecx + eax*4], 0
je 0x1000d477
push 0x3d
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + edx*4]
push ecx
call dword [sym.imp.MSVCR90.dll_strchr]
add esp, 8
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x1000d465
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
cmp ecx, dword [eax + edx*4]
jbe 0x1000d465
mov edx, dword [ebp - 0x10]
mov byte [edx], 0
mov eax, dword [ebp - 0x18]
add eax, 1
mov dword [ebp - 0x18], eax
jmp 0x1000d477
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + ecx*4]
push eax
call sym.glib_2.0.dll_g_free
add esp, 4
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.MSVCR90.dll_wcslen]
add esp, 4
mov edx, dword [ebp - 8]
lea eax, [edx + eax*2 + 2]
mov dword [ebp - 8], eax
jmp 0x1000d3f1
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
mov dword [edx + ecx*4], 0
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, dword [ebp - 0x14]
mov esp, ebp
pop ebp
ret
Function at 0x1000d6c0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], 0
lea eax, [ebp - 0xc]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
shl ecx, 1
push ecx
call sym.glib_2.0.dll_g_malloc
add esp, 4
mov dword [ebp - 4], eax
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov ecx, dword [ebp - 8]
sub ecx, 1
cmp eax, ecx
jne 0x1000d71c
push 0
push 0
push 0
push 0xffffffffffffffff
mov edx, dword [ebp - 4]
push edx
call sym.glib_2.0.dll_g_utf16_to_utf8
add esp, 0x14
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
push eax
call sym.glib_2.0.dll_g_free
add esp, 4
cmp dword [ebp - 0x10], 0
jne 0x1000d73e
push 0x100d3788
call sym.glib_2.0.dll_g_strdup
add esp, 4
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret

Function at 0x1000e420
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [ebp + 8], 0
je 0x1000e42e
jmp 0x1000e456
push str.variable___NULL
push 0x540
push 0x100d3a10
push 0x100d3a28
push 8
push 0x100d3a50
call sym.glib_2.0.dll_g_log
add esp, 0x18
jmp 0x1000e55e
xor eax, eax
jne 0x1000e426
push 0x3d
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.MSVCR90.dll_strchr]
add esp, 8
test eax, eax
jne 0x1000e46f
jmp 0x1000e497
push str.strchr__variable_____NULL
push 0x541
push 0x100d3a78
push 0x100d3a90
push 8
push 0x100d3ab8
call sym.glib_2.0.dll_g_log
add esp, 0x18
jmp 0x1000e55e
xor edx, edx
jne 0x1000e45a
push 0
push 0xffffffffffffffff
mov eax, dword [ebp + 8]
push eax
call sym.glib_2.0.dll_g_utf8_validate
add esp, 0xc
test eax, eax
je 0x1000e4b1
jmp 0x1000e4d9
push str.g_utf8_validate__variable___1__NULL_
push 0x542
push 0x100d3ae8
push 0x100d3b00
push 8
push 0x100d3b28
call sym.glib_2.0.dll_g_log
add esp, 0x18
jmp 0x1000e55e
xor ecx, ecx
jne 0x1000e49b
push 0
push 0
push 0
push 0xffffffffffffffff
mov edx, dword [ebp + 8]
push edx
call sym.glib_2.0.dll_g_utf8_to_utf16
add esp, 0x14
mov dword [ebp - 8], eax
push 0
push 0x100d3b30
mov eax, dword [ebp + 8]
push eax
call sym.glib_2.0.dll_g_strconcat
add esp, 0xc
mov dword [ebp - 4], eax
push 0
push 0
push 0
push 0xffffffffffffffff
mov ecx, dword [ebp - 4]
push ecx
call sym.glib_2.0.dll_g_utf8_to_utf16
add esp, 0x14
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 4]
push edx
call sym.glib_2.0.dll_g_free
add esp, 4
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.MSVCR90.dll__wputenv]
add esp, 4
mov ecx, dword [ebp - 0xc]
push ecx
call sym.glib_2.0.dll_g_free
add esp, 4
push 0
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov eax, dword [ebp - 8]
push eax
call sym.glib_2.0.dll_g_free
add esp, 4
mov esp, ebp
pop ebp
ret
Function at 0x1000e570
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
cmp dword [ebp + 8], 0
je 0x1000e57e
jmp 0x1000e5a8
push 0x100d3858
push 0x4d5
push 0x100d386c
push 0x100d3884
push 8
push 0x100d38ac
call sym.glib_2.0.dll_g_log
add esp, 0x18
xor eax, eax
jmp 0x1000e74d
xor eax, eax
jne 0x1000e576
push 0x3d
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.MSVCR90.dll_strchr]
add esp, 8
test eax, eax
jne 0x1000e5c1
jmp 0x1000e5eb
push 0x100d38b4
push 0x4d6
push 0x100d38d4
push 0x100d38ec
push 8
push 0x100d3914
call sym.glib_2.0.dll_g_log
add esp, 0x18
xor eax, eax
jmp 0x1000e74d
xor edx, edx
jne 0x1000e5ac
push 0
push 0xffffffffffffffff
mov eax, dword [ebp + 8]
push eax
call sym.glib_2.0.dll_g_utf8_validate
add esp, 0xc
test eax, eax
je 0x1000e605
jmp 0x1000e62f
push 0x100d391c
push 0x4d7
push 0x100d3944
push 0x100d395c
push 8
push 0x100d3984
call sym.glib_2.0.dll_g_log
add esp, 0x18
xor eax, eax
jmp 0x1000e74d
xor ecx, ecx
jne 0x1000e5ef
push 0
push 0xffffffffffffffff
mov edx, dword [ebp + 0xc]
push edx
call sym.glib_2.0.dll_g_utf8_validate
add esp, 0xc
test eax, eax
je 0x1000e649
jmp 0x1000e673
push str.g_utf8_validate__value___1__NULL_
push 0x4d8
push 0x100d39b0
push 0x100d39c8
push 8
push 0x100d39f0
call sym.glib_2.0.dll_g_log
add esp, 0x18
xor eax, eax
jmp 0x1000e74d
xor eax, eax
jne 0x1000e633
cmp dword [ebp + 0x10], 0
jne 0x1000e697
mov ecx, dword [ebp + 8]
push ecx
call sym.glib_2.0.dll_g_getenv_utf8
add esp, 4
test eax, eax
je 0x1000e697
mov eax, 1
jmp 0x1000e74d
push 0
push 0
push 0
push 0xffffffffffffffff
mov edx, dword [ebp + 8]
push edx
call sym.glib_2.0.dll_g_utf8_to_utf16
add esp, 0x14
mov dword [ebp - 0x10], eax
push 0
push 0
push 0
push 0xffffffffffffffff
mov eax, dword [ebp + 0xc]
push eax
call sym.glib_2.0.dll_g_utf8_to_utf16
add esp, 0x14
mov dword [ebp - 4], eax
push 0
mov ecx, dword [ebp + 0xc]
push ecx
push 0x100d39f8
mov edx, dword [ebp + 8]
push edx
call sym.glib_2.0.dll_g_strconcat
add esp, 0x10
mov dword [ebp - 8], eax
push 0
push 0
push 0
push 0xffffffffffffffff
mov eax, dword [ebp - 8]
push eax
call sym.glib_2.0.dll_g_utf8_to_utf16
add esp, 0x14
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 8]
push ecx
call sym.glib_2.0.dll_g_free
add esp, 4
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.MSVCR90.dll__wputenv]
add esp, 4
mov eax, dword [ebp - 0x14]
push eax
call sym.glib_2.0.dll_g_free
add esp, 4
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
neg eax
sbb eax, eax
neg eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x10]
push eax
call sym.glib_2.0.dll_g_free
add esp, 4
mov ecx, dword [ebp - 4]
push ecx
call sym.glib_2.0.dll_g_free
add esp, 4
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x1000f240
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x104
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x1000f306
push 0
push 0
push 0
push 0xffffffffffffffff
lea ecx, [ebp - 0x210]
push ecx
call sym.glib_2.0.dll_g_utf16_to_utf8
add esp, 0x14
mov dword [ebp - 0x218], eax
cmp dword [ebp - 0x218], 0
jne 0x1000f2a2
push 0x100d3b34
call sym.glib_2.0.dll_g_strdup
add esp, 4
jmp 0x1000f313
mov edx, dword [ebp - 0x218]
push edx
call sym.glib_2.0.dll_g_path_skip_root
add esp, 4
mov dword [ebp - 0x214], eax
mov eax, dword [ebp - 0x214]
movsx ecx, byte [eax - 1]
cmp ecx, 0x5c
je 0x1000f2d5
mov edx, dword [ebp - 0x214]
movsx eax, byte [edx - 1]
cmp eax, 0x2f
jne 0x1000f2f3
mov ecx, dword [ebp - 0x214]
movsx edx, byte [ecx - 2]
cmp edx, 0x3a
je 0x1000f2f3
mov eax, dword [ebp - 0x214]
sub eax, 1
mov dword [ebp - 0x214], eax
mov ecx, dword [ebp - 0x214]
mov byte [ecx], 0
mov eax, dword [ebp - 0x218]
jmp 0x1000f313
push 0x100d3b38
call sym.glib_2.0.dll_g_strdup
add esp, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10001000
mov esp, ebp
pop ebp
ret