joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1007b2bf
Capabilities:
Check for software breakpoints

Disassembly:
lea esp, [esp + 0x40]
jb 0x1007971b
bt sp, 2
pushal
cmp byte [edi - 1], 0
pushal
jmp 0x1007d0c4
stc
push edx
jmp 0x1007bef2
lea esp, [esp + 0x5c]
ja 0x100759d3
jmp 0x1007d7be
pushfd
cmp ecx, dword [ebp - 8]
call fcn.1007cb93
lea esp, [esp + 0x40]
jne 0x1007c3fb
bt esi, 0x11
btr di, 0xb
btc di, 2
mov edi, dword [edx + 0x24]
bt dx, 9
add edi, eax
cmp dl, 0xcd
bt si, cx
movzx ecx, word [edi + ecx*2]
and di, di
rcr edi, cl
movzx di, cl
pushal
mov edi, dword [edx + 0x1c]
stc
pushfd
add edi, eax
cmp dl, dh
clc
test ebx, 0xc409e540
cmc
mov edi, dword [edi + ecx*4]
call fcn.10072ad4
pushal
pushal
jmp 0x10072e94

Function at 0x401750
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov edx, ebp
or ch, al
and eax, 0xffc0c8
xor al, 0x83
push 0xd2746840
inc eax
add byte [ecx - 1], dl
add cl, 0x40
cmc
mov eax, dword [0x4102ac]
cmp eax, 0x2a
test eax, eax
je 0x401787
or eax, 0x40d20ebd
add byte [edx + 0x15], dl
rol dword fs:[eax], 0x83
les ecx, [eax]
Function at 0x175c058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.0175c1a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x175c07e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x175c06a
add dl, dl
jne 0x175c089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x175c0dc
xor eax, eax
add dl, dl
jne 0x175c096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x175c17d
add dl, dl
jne 0x175c0a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x175c0b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x175c0bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x175c0c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x175c0d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x175c075
mov eax, 1
add dl, dl
jne 0x175c0ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x175c0f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x175c0e1
sub eax, ebx
mov ebx, 1
jne 0x175c128
mov ecx, 1
add dl, dl
jne 0x175c10e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x175c119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x175c105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x175c075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x175c13f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x175c14a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x175c136
cmp eax, 0x7d00
jae 0x175c16d
cmp eax, 0x500
jb 0x175c168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x175c075
cmp eax, 0x7f
ja 0x175c170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x175c075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x175c19e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x175c075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x405d6b
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x422a0c], 0
push esi
jne 0x405da2
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405d7c
mov dword [ecx*4 + 0x422a08], eax
inc ecx
cmp ecx, 0x100
jl 0x405d77
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405dd3
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x422a08]
xor eax, esi
inc ecx
dec edx
jne 0x405db5
pop edi
not eax
pop esi
ret 0xc

Function at 0x401000
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
mov ebp, esp
add esp, 0xfffffffc
push esi
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
call dword [sym.imp.KERNEL32.DLL_GetCommandLineW]
mov dword [0x403cdc], eax
lea ecx, [ebp - 4]
push eax
push ecx
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov eax, dword [ebp + 4]
mov dword [0x403b2d], eax
xor eax, eax
mov ecx, 0x16
push eax
dec ecx
jne 0x401031
push 0x7f00
push esi
call dword [sym.imp.USER32.dll_LoadCursorA]
lea ecx, [ebp - 0x5c]
push ecx
mov eax, 0x30
mov dword [ecx], eax
mov eax, dword [0x403b2d]
mov dword [ebp - 0x48], eax
mov eax, 0x40168b
mov dword [ebp - 0x54], eax
mov ecx, str.Hello
mov dword [ebp - 0x34], ecx
call dword [sym.imp.USER32.dll_RegisterClassExA]
xor ecx, ecx
push ecx
push dword [0x403b2d]
push ecx
push ecx
push 0x12e
push 0x7a
push 0x34c
push 0x2aa
push 0x40000
lea eax, str.klavesn
push eax
mov eax, str.Hello
push eax
push ecx
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [0x403d28], eax
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x403d28]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
xor ebx, ebx
lea edi, [ebp - 0x50]
jmp 0x4010ce
push edi
call dword [sym.imp.USER32.dll_TranslateMessage]
push edi
call dword [sym.imp.USER32.dll_DispatchMessageA]
push ebx
push ebx
push ebx
push edi
call dword [sym.imp.USER32.dll_GetMessageA]
test al, al
jne 0x4010c0
mov esp, ebp
ret
Function at 0x402966
Capabilities:
Get common file path
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1400
call fcn.00408f60
mov eax, dword [0x2e7e000]
mov ecx, dword [0x2e7cf50]
push esi
shr eax, 3
xor esi, esi
cmp eax, esi
jbe 0x402a43
push ebx
push edi
mov edi, ecx
mov ebx, eax
cmp dword [0x2e7e000], 0x959
jne 0x402a31
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SignalObjectAndWait]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateJobObjectW]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_EnumDateFormatsExA]
push esi
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SetFileShortNameA]
push esi
lea eax, [ebp - 0xc00]
push eax
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_LCMapStringA]
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push esi
call dword [sym.imp.KERNEL32.dll_HeapUnlock]
push esi
push esi
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push esi
lea eax, [ebp - 0x800]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push esi
lea eax, [ebp - 0x1400]
push eax
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_FoldStringW]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push edi
call fcn.0040276e
add edi, 8
dec ebx
jne 0x402992
pop edi
pop ebx
pop esi
leave
ret
Function at 0x406fe9
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x8099f0]
jne 0x406ff3
repz ret
jmp fcn.004087d5

Function at 0x40714b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00403854
and dword [ebp - 4], 0
cmp dword [0x80a8cc], 0
mov ebx, eax
jne 0x4071fc
push 0x4019c4
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4072ad
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4019b8
push edi
call esi
test eax, eax
je 0x4072ad
push eax
call fcn.004037e2
mov dword [esp], 0x4019a8
push edi
mov dword [0x80a8cc], eax
call esi
push eax
call fcn.004037e2
mov dword [esp], 0x401994
push edi
mov dword [0x80a8d0], eax
call esi
push eax
call fcn.004037e2
mov dword [esp], 0x401978
push edi
mov dword [0x80a8d4], eax
call esi
push eax
call fcn.004037e2
pop ecx
mov dword [0x80a8dc], eax
test eax, eax
je 0x4071fc
push 0x401960
push edi
call esi
push eax
call fcn.004037e2
pop ecx
mov dword [0x80a8d8], eax
mov eax, dword [0x80a8d8]
cmp eax, ebx
je 0x407254
cmp dword [0x80a8dc], ebx
je 0x407254
push eax
call fcn.0040385d
push dword [0x80a8dc]
mov esi, eax
call fcn.0040385d
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x407254
test edi, edi
je 0x407254
call esi
test eax, eax
je 0x40724b
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40724b
test byte [ebp - 0xc], 1
jne 0x407254
or dword [ebp + 0x10], 0x200000
jmp 0x40728d
mov eax, dword [0x80a8d0]
cmp eax, ebx
je 0x40728d
push eax
call fcn.0040385d
pop ecx
test eax, eax
je 0x40728d
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40728d
mov eax, dword [0x80a8d4]
cmp eax, ebx
je 0x40728d
push eax
call fcn.0040385d
pop ecx
test eax, eax
je 0x40728d
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x80a8cc]
call fcn.0040385d
pop ecx
test eax, eax
je 0x4072ad
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4072af
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x407d9c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004033fc
xor eax, eax
push ebp
push 0x407e75
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp byte [eax], 0x5c
jne 0x407dd4
mov eax, dword [ebp - 4]
call fcn.004071d0
jmp 0x407ddc
mov eax, dword [ebp - 4]
call fcn.00407bd4
call fcn.00404ae8
mov esi, eax
test esi, esi
jle 0x407e28
mov ebx, 1
lea edx, [ebp - 8]
mov eax, ebx
call fcn.004049d0
mov eax, dword [ebp - 8]
cmp byte [eax], 0x5c
jne 0x407e12
lea edx, [ebp - 0xc]
mov eax, ebx
call fcn.004049d0
mov eax, dword [ebp - 0xc]
call fcn.004071d0
jmp 0x407e24
lea edx, [ebp - 0x10]
mov eax, ebx
call fcn.004049d0
mov eax, dword [ebp - 0x10]
call fcn.00407bd4
inc ebx
dec esi
jne 0x407dec
push 1
push dword [ebp - 4]
push 0x407e8c
lea edx, [ebp - 0x18]
xor eax, eax
call fcn.00406f34
push dword [ebp - 0x18]
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.004032cc
mov eax, dword [ebp - 0x14]
call fcn.0040340c
push eax
call sub.kernel32.dll_WinExec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407e7c
lea eax, [ebp - 0x18]
mov edx, 6
call fcn.004030b8
ret

Function at 0x42e005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
mov eax, section..rsrc
nop
push 4
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
nop
je 0x42e072
nop
mov ebx, 0x407ef8
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x75f3173c
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x42e060
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x42e0d2
mov ebx, 0x42cd70
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x1ed1122c
nop
nop
nop
xor dword [eax], esi
nop
add eax, edi
nop
nop
nop
nop
nop
nop
nop
loop 0x42e0c0
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x1005e640
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x14]
mov eax, dword [eax]
mov eax, dword [eax]
mov eax, dword [eax + 0x10]
ret
Function at 0x100c6200
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x14]
mov eax, dword [eax]
mov eax, dword [eax + 0x10]
ret
Function at 0x10199601
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x10199640
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10199640
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10199640
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x10199640
cmp dword [ecx + 0x74], 0xe
jbe 0x10199640
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x101a3ef0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x101a3f1d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x101a3f1d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x101a4429
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x101c8978
push 0x101c8970
push 0x101c8978
push 0x1f
call fcn.101a4e4a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x101a445d
push dword [ebp + 8]
mov ecx, esi
call dword [section..00cfg]
call esi
jmp 0x101a4463
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x101a44a7
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x101c899c
push 0x101c8994
push 0x101c899c
push 0x21
call fcn.101a4e4a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x101a44de
push dword [ebp + 8]
mov ecx, esi
call dword [section..00cfg]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x101a44e6
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x101c89b0
push 0x101c89a8
push 0x101c89b0
push 0x22
call fcn.101a4e4a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x101a4520
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [section..00cfg]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x101ad09d
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x101d4208]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x101ad0e8
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.101ad38f
test al, al
jne 0x101ad0e2
sub edx, 2
cmp edx, edi
jne 0x101ad0c8
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x101ad10a
lea eax, [edi + 2]
cmp edx, eax
je 0x101ad10a
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.101acfe9
add esp, 0x10
jmp 0x101ad204
push esi
lea ecx, [ebp - 0x255]
call fcn.101ad38f
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x101ad14d
push dword [ebp - 0x25c]
jmp 0x101ad0fa
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x101ad18a
cmp word [ebp - 0x226], 0
je 0x101ad1ab
cmp word [ebp - 0x226], ax
jne 0x101ad18a
cmp word [ebp - 0x224], 0
je 0x101ad1ab
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.101acfe9
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x101ad1f7
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x101ad164
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x101ad1df
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x101ad204
push 0x101ad3cd
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.101bc810
add esp, 0x10
jmp 0x101ad1d4
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1017afaa
leave
ret
Function at 0x101adcbd
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x101add5a
push ebx
push esi
call fcn.101addc0
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.101adbc1
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x101add07
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x101add59
push edi
push eax
call fcn.101a7f29
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x101add27
call fcn.101a6d51
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x101add58
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.101adbc1
add esp, 0x20
test eax, eax
jne 0x101add46
push edi
call fcn.101a6d51
jmp 0x101add4e
push ebx
call fcn.101a6d51
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x101add5d
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x101add6e
pop esi
ret
push ebx
push edi
push esi
call fcn.101addc0
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.101a7f29
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x101add96
push ebx
push esi
push edi
call fcn.1017dda0
add esp, 0xc
push 0
call fcn.101a6d51
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x101ade67
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.101ae0f6
Function at 0x101b910b
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x101d4208]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.101a5589
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.101a5589
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x101b9182
cmp word [ecx], dx
je 0x101b9182
mov eax, dword [0x101cc7bc]
push edi
dec eax
push eax
push 0x101cc6a8
call fcn.101b92fb
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x101b91f5
cmp word [eax], dx
je 0x101b91f5
mov eax, dword [edi]
test eax, eax
je 0x101b91a6
cmp word [eax], dx
je 0x101b91a6
lea eax, [ebp - 0x10]
push eax
call fcn.101b935c
jmp 0x101b91af
lea eax, [ebp - 0x10]
push eax
call fcn.101b964a
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x101b921f
mov eax, dword [0x101cc6a4]
push dword [ebp - 0x14]
dec eax
push eax
push 0x101cc398
call fcn.101b92fb
add esp, 0xc
test al, al
je 0x101b921f
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x101b91ea
cmp word [eax], di
je 0x101b91ea
lea eax, [ebp - 0x10]
push eax
call fcn.101b935c
pop ecx
jmp 0x101b9221
lea eax, [ebp - 0x10]
push eax
call fcn.101b964a
jmp 0x101b91e7
mov eax, dword [edi]
test eax, eax
je 0x101b920c
cmp word [eax], dx
je 0x101b920c
lea eax, [ebp - 0x10]
push eax
call fcn.101b977e
pop ecx
jmp 0x101b921f
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x101b92ea
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.101b988e
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x101b92ea
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x101b92ea
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x101b92ea
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x101b9277
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.101a4814
test ebx, ebx
je 0x101b92e5
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.101a4814
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x101b92ea
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x101b92ea
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.101c0804
add esp, 0x10
xor eax, eax
inc eax
jmp 0x101b92ec
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1017afaa
leave
ret
Function at 0x101b9994
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.101a5589
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x101b9a03
cmp esi, dword [ebp - 4]
je 0x101b99fe
cmp dword [ebp + 0xc], 0
je 0x101b99fe
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x101b99db
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.101b9a5d
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x101b9a05
xor eax, eax
inc eax
jmp 0x101b9a05
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x101be5f6
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x101d5970]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x101be636
cmp byte [ebx], 0xa
jne 0x101be636
or byte [edi + eax + 0x28], 4
jmp 0x101be63b
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x101be73a
mov dl, byte [eax]
cmp dl, 0x1a
je 0x101be71d
inc eax
cmp dl, 0xd
je 0x101be667
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x101be68d
cmp eax, ecx
jae 0x101be69b
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x101be64f
jmp 0x101be73a
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x101be718
cmp dword [ebp - 0x10], 0
je 0x101be718
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x101d5970]
test byte [eax + edi + 0x28], 0x48
je 0x101be6f2
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x101be6dd
mov byte [esi], dl
jmp 0x101be6ee
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x101d5970]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x101be73a
cmp byte [ebp - 1], 0xa
jne 0x101be701
cmp esi, ebx
jne 0x101be701
mov byte [esi], 0xa
jmp 0x101be739
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.101bd926
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x101be73a
mov byte [esi], 0xd
jmp 0x101be739
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x101d5970]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x101be737
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x101be73a
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret