joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1e41770
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x1c
mov edi, ecx
mov esi, dword [ebp + 8]
mov edx, dword [ebp + 0x10]
mov ebx, dword [ebp + 0xc]
mov eax, dword [0x1f07010]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov ecx, dword [ecx + 0x28]
cmp byte [ecx + 0x78], 0
jne 0x1e417ae
push ebx
call fcn.01e42f20
mov eax, dword [edi + 0x28]
add eax, 0x14
mov ecx, ebx
push eax
call fcn.01e41970
mov edx, dword [ebp + 0x10]
mov ecx, edi
push edx
push ebx
call fcn.01e41a90
test al, al
je 0x1e417f0
mov dword [ebp - 0x18], 0xffffffff
mov dword [ebp - 0x14], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.01daa240
cmp dword [ebp - 0x18], 0
je 0x1e417fe
mov esi, dword [edi + 0x28]
lea eax, [esi + 0xb8]
mov dword [ebp - 0x24], eax
inc dword [esi + 0xb8]
mov bl, 0xff
jmp 0x1e4189b
mov ecx, esi
push 0
call fcn.01e471e0
jmp 0x1e41929
mov bl, 0xff
lea esi, [ebp - 0x20]
jmp 0x1e4182f
push dword [ebp + 0xc]
push esi
call fcn.01e40360
lea ecx, [ebp - 0x18]
push esi
call fcn.01e472b0
mov ecx, esi
call fcn.01e47230
cmp dword [ebp - 0x18], 0
jne 0x1e4187d
mov ecx, dword [edi + 0x28]
add ecx, 0x1c
call fcn.01dfa1c0
test al, al
jne 0x1e41873
mov ecx, dword [edi + 0x28]
add ecx, 0x1c
call fcn.01e5a900
movzx ebx, byte [eax]
mov eax, dword [edi + 0x28]
mov ecx, dword [eax + 4]
push ebx
call fcn.01e443b0
test al, al
je 0x1e41873
mov ecx, dword [edi + 0x28]
test bl, bl
jne 0x1e41810
mov eax, dword [ecx + 0xbc]
cmp eax, dword [ecx + 0xb4]
jb 0x1e41810
xor ebx, ebx
cmp dword [ebp - 0x18], 0
je 0x1e4193f
mov esi, dword [edi + 0x28]
lea eax, [esi + 0xb8]
mov dword [ebp - 0x24], eax
inc dword [esi + 0xb8]
test bl, bl
jne 0x1e4189b
inc dword [esi + 0xbc]
xor ebx, ebx
lea ecx, [esi + 0x1c]
mov dword [ebp - 0x28], ecx
call fcn.01dfa1c0
test al, al
jne 0x1e418b7
mov eax, dword [ebp - 0x24]
mov eax, dword [eax]
cmp eax, dword [esi + 0xb0]
jae 0x1e418bf
mov word [esi + 0x3c], 0
jmp 0x1e418e3
mov ecx, dword [ebp - 0x28]
call fcn.01e5a900
movzx eax, byte [eax]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x28]
call fcn.01e5a900
movzx eax, byte [eax + 1]
shl eax, 8
add eax, dword [ebp - 0x24]
mov word [esi + 0x3c], ax
movzx eax, bl
or eax, 0x100
mov word [edi + 0x18], ax
mov eax, dword [ebp - 0x18]
movzx eax, byte [eax + 9]
and eax, 0x7f
or eax, 0x100
mov word [edi + 0x1a], ax
mov ecx, dword [edi + 0x28]
cmp byte [ecx + 0x78], 0
mov esi, dword [ebp + 8]
je 0x1e41916
push dword [ebp + 0xc]
call fcn.01e42f20
mov ecx, esi
lea eax, [ebp - 0x18]
push eax
call fcn.01e47200
lea ecx, [ebp - 0x18]
call fcn.01e47230
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.01e60425
mov eax, esi
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret 0xc
mov ecx, 0xc8
add ecx, dword [edi + 0x28]
push dword [ebp + 0x10]
call fcn.01e5b6e0
mov eax, dword [edi + 0x28]
mov ecx, dword [eax + 0xd4]
call fcn.01d860d0
mov esi, dword [ebp + 8]
mov ecx, esi
push 0
call fcn.01e471e0
jmp 0x1e41921
Function at 0x1e49f00
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov eax, dword [ebp + 0xc]
cmp eax, 3
je 0x1e49f11
test eax, eax
jne 0x1e49f61
test eax, eax
jne 0x1e49f27
mov ecx, dword [0x1f21f94]
test ecx, ecx
je 0x1e49f27
call dword [section..00cfg]
call ecx
cmp dword [0x1f21f8c], 0
je 0x1e49f61
mov esi, dword [0x1f21f90]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test edi, edi
jne 0x1e49f67
test esi, esi
je 0x1e49f61
mov ecx, dword [0x1f21f8c]
call dword [section..00cfg]
push esi
call ecx
add esp, 4
pop esi
pop edi
pop ebp
ret 0xc
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
test esi, esi
jne 0x1e49f4f
jmp 0x1e49f61

Function at 0x1e4fb00
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push esi
and esp, 0xfffffff8
sub esp, 0x10
mov esi, ecx
mov eax, dword [0x1f07010]
xor eax, ebp
mov dword [esp + 8], eax
mov byte [ecx], 0
mov eax, dword [0x1f0c740]
mov ecx, dword fs:[0x2c]
mov eax, dword [ecx + eax*4]
lea ecx, [eax + 0x108]
mov dword [esi + 4], ecx
mov edx, dword [eax + 0x108]
mov dword [eax + 0x108], esi
mov ecx, dword [ebp + 8]
mov dword [esi + 8], edx
mov eax, dword [ebp + 0xc]
mov dword [esi + 0xc], ecx
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov byte [esi + 0x30], 0
xorps xmm0, xmm0
movups xmmword [esi + 0x10], xmm0
mov dword [esi + 0x34], eax
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x38], eax
test byte [0x1f09e94], 9
jne 0x1e4fb8e
mov byte [esi + 0x20], 0
mov ecx, dword [esp + 8]
xor ecx, ebp
call fcn.01e60425
mov eax, esi
lea esp, [ebp - 4]
pop esi
pop ebp
ret 0xc
mov byte [esi + 0x20], 1
mov eax, esp
push eax
call fcn.01d927f0
movsd xmm0, qword [esp]
movsd qword [esi + 0x10], xmm0
jmp 0x1e4fb79
Function at 0x1e58d80
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov eax, dword [0x1f22020]
mov ecx, dword [0x1f0c740]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x1e58df3
mov ecx, 0x1f22018
call fcn.01df4620
test eax, eax
jne 0x1e58de6
push 4
call fcn.01e5f33c
add esp, 4
mov edi, eax
mov dword [eax], 0
mov ecx, 0x1f22018
call fcn.01df4620
mov esi, eax
mov ecx, 0x1f22018
push edi
call fcn.01df4650
test esi, esi
je 0x1e58de6
push esi
call fcn.01e5f36c
add esp, 4
mov ecx, 0x1f22018
pop esi
pop edi
pop ebp
jmp fcn.01df4620
push 0x1f22020
call fcn.01e5f3e7
add esp, 4
cmp dword [0x1f22020], 0xffffffff
jne 0x1e58da2
mov dword [0x1f2201c], 0
mov dword [0x1f22018], 0
mov ecx, 0x1f22018
push 0x1cdd130
call fcn.01df4690
push 0x1f22020
call fcn.01e5f45d
add esp, 4
jmp 0x1e58da2

Function at 0x1e5bda8
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.01db4cc8

Function at 0x1e6e2d5
Capabilities:
Parse pe header

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

Function at 0x1e7100f
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x1f07010]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x1ea18e8
push esi
call fcn.01e80222
pop ecx
pop ecx
test eax, eax
jne 0x1e7103d
xor al, al
jmp 0x1e710ba
push ebx
lea eax, [ebp - 0x210]
xor ebx, ebx
push eax
push 0x104
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], ebx
push esi
push eax
call fcn.01e70d9e
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x1e71077
push dword [ebp - 0x210]
call fcn.01dadee0
xor al, al
jmp 0x1e710b8
mov ecx, edx
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x1e7107d
sub ecx, edi
sar ecx, 1
pop edi
cmp ecx, 3
je 0x1e7109d
push edx
call fcn.01e70f61
pop ecx
test al, al
je 0x1e71068
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x1e710ab
mov bl, 1
push dword [ebp - 0x210]
call fcn.01dadee0
mov al, bl
pop ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.01e60425
leave
ret
Function at 0x1e717a1
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x1f07010]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp eax, 0x1a
jbe 0x1e717e4
call fcn.01e70c75
mov dword [eax], 0xf
call fcn.01e70c62
mov dword [eax], 0xd
call fcn.01e721a6
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.01e60425
leave
ret
test eax, eax
jne 0x1e717eb
inc eax
jmp 0x1e717d8
add eax, 0x40
push 0x3a
mov word [ebp - 0xc], ax
pop eax
mov word [ebp - 0xa], ax
push 0x5c
pop eax
mov word [ebp - 8], ax
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov ecx, eax
test ecx, ecx
je 0x1e717d6
xor eax, eax
cmp ecx, 1
setne al
jmp 0x1e717d8
Function at 0x1e7320c
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 + 0x1f0d118]
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 0x1e7324c
cmp byte [ebx], 0xa
jne 0x1e7324c
or byte [edi + eax + 0x28], 4
jmp 0x1e73251
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 0x1e73350
mov dl, byte [eax]
cmp dl, 0x1a
je 0x1e73333
inc eax
cmp dl, 0xd
je 0x1e7327d
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x1e732a3
cmp eax, ecx
jae 0x1e732b1
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 0x1e73265
jmp 0x1e73350
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 0x1e7332e
cmp dword [ebp - 0x10], 0
je 0x1e7332e
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x1f0d118]
test byte [eax + edi + 0x28], 0x48
je 0x1e73308
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x1e732f3
mov byte [esi], dl
jmp 0x1e73304
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x1f0d118]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x1e73350
cmp byte [ebp - 1], 0xa
jne 0x1e73317
cmp esi, ebx
jne 0x1e73317
mov byte [esi], 0xa
jmp 0x1e7334f
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.01e727eb
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x1e73350
mov byte [esi], 0xd
jmp 0x1e7334f
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x1f0d118]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x1e7334d
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x1e73350
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x1e73359
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x1f0d118]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x1e7339f
cmp word [ebx], dx
jne 0x1e7339f
or byte [eax + edi + 0x28], 4
jmp 0x1e733a4
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x1e73507
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x1e734e7
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x1e733e5
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x1e7341b
cmp eax, edx
jae 0x1e73429
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x1e733c0
jmp 0x1e73507
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1e734e2
cmp dword [ebp - 0x18], 0
je 0x1e734e2
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x1f0d118]
test byte [eax + edi + 0x28], 0x48
je 0x1e734b8
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x1e7347c
mov word [esi], cx
jmp 0x1e734b3
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x1f0d118]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x1f0d118]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x1f0d118]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x1e73507
pop eax
cmp word [ebp - 4], ax
jne 0x1e734c8
cmp esi, ebx
jne 0x1e734c8
mov word [esi], ax
jmp 0x1e73504
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.01e727eb
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x1e73507
push 0xd
pop eax
jmp 0x1e734c3
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x1f0d118]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x1e73501
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x1e73507
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x1e7c000
Capabilities:
Parse pe header

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

Function at 0x1e7d0f6
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push str.FlsAlloc
push 0x1ea2b64
push str.FlsAlloc
push 0x1f
call fcn.01e7d5a9
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1e7d12a
push dword [ebp + 8]
mov ecx, esi
call dword [section..00cfg]
call esi
jmp 0x1e7d130
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1e7d174
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push str.FlsGetValue
push 0x1ea2b88
push str.FlsGetValue
push 0x21
call fcn.01e7d5a9
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1e7d1ab
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 0x1e7d1b3
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push str.FlsSetValue
push 0x1ea2b9c
push str.FlsSetValue
push 0x22
call fcn.01e7d5a9
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1e7d1ed
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 0x1e80f17
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x1f07010]
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.01e7c8fa
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.01e7c8fa
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 0x1e80f8e
cmp word [ecx], dx
je 0x1e80f8e
mov eax, dword [0x1ea355c]
push edi
dec eax
push eax
push 0x1ea3448
call fcn.01e81107
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x1e81001
cmp word [eax], dx
je 0x1e81001
mov eax, dword [edi]
test eax, eax
je 0x1e80fb2
cmp word [eax], dx
je 0x1e80fb2
lea eax, [ebp - 0x10]
push eax
call fcn.01e81168
jmp 0x1e80fbb
lea eax, [ebp - 0x10]
push eax
call fcn.01e81463
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x1e8102b
mov eax, dword [0x1ea3444]
push dword [ebp - 0x14]
dec eax
push eax
push 0x1ea3138
call fcn.01e81107
add esp, 0xc
test al, al
je 0x1e8102b
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x1e80ff6
cmp word [eax], di
je 0x1e80ff6
lea eax, [ebp - 0x10]
push eax
call fcn.01e81168
pop ecx
jmp 0x1e8102d
lea eax, [ebp - 0x10]
push eax
call fcn.01e81463
jmp 0x1e80ff3
mov eax, dword [edi]
test eax, eax
je 0x1e81018
cmp word [eax], dx
je 0x1e81018
lea eax, [ebp - 0x10]
push eax
call fcn.01e815a5
pop ecx
jmp 0x1e8102b
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 0x1e810f6
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.01e81697
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x1e810f6
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x1e810f6
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x1e810f6
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x1e81083
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.01e7d3ec
test ebx, ebx
je 0x1e810f1
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.01e7d3ec
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1e810f6
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 0x1e810f6
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.01e72500
add esp, 0x10
xor eax, eax
inc eax
jmp 0x1e810f8
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01e60425
leave
ret
Function at 0x1e8179d
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.01e7c8fa
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 0x1e8180c
cmp esi, dword [ebp - 4]
je 0x1e81807
cmp dword [ebp + 0xc], 0
je 0x1e81807
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x1e817e4
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.01e81866
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x1e8180e
xor eax, eax
inc eax
jmp 0x1e8180e
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x1e82ef1
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 0x1e82f8e
push ebx
push esi
call fcn.01e82fdf
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.01e82b50
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1e82f3b
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1e82f8d
push edi
push eax
call fcn.01dade90
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1e82f5b
call fcn.01dadee0
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1e82f8c
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.01e82b50
add esp, 0x20
test eax, eax
jne 0x1e82f7a
push edi
call fcn.01dadee0
jmp 0x1e82f82
push ebx
call fcn.01dadee0
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 0x1e82f91
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x1e82fa2
pop esi
ret
push ebx
push edi
push esi
call fcn.01e82fdf
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.01dade90
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x1e82fca
push ebx
push esi
push edi
call fcn.01e62e90
add esp, 0xc
push 0
call fcn.01dadee0
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x1e83021
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.01e8328c
Function at 0x1000af8b
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x1001cf10]
xor eax, ebp
mov dword [ebp + 0x88], eax
and dword [ebp - 0x80], 0
push ebx
mov ebx, dword [ebp + 0x94]
push esi
push edi
push 0x104
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.kernel32.dll_GetSystemDirectoryA]
mov esi, dword [sym.imp.kernel32.dll_LoadLibraryA]
mov edi, 0x10014bfc
test eax, eax
je 0x1000aff5
lea eax, [ebp - 0x7c]
push edi
push eax
call sub.msvcr100.dll_strcat
lea eax, [ebp - 0x7c]
push ebx
push eax
call sub.msvcr100.dll_strcat
add esp, 0x10
lea eax, [ebp - 0x7c]
push eax
call esi
mov dword [ebp - 0x80], eax
test eax, eax
jne 0x1000b028
push 0x104
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.kernel32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x1000b028
lea eax, [ebp - 0x7c]
push edi
push eax
call sub.msvcr100.dll_strcat
lea eax, [ebp - 0x7c]
push ebx
push eax
call sub.msvcr100.dll_strcat
add esp, 0x10
lea eax, [ebp - 0x7c]
push eax
call esi
mov dword [ebp - 0x80], eax
mov ecx, dword [ebp + 0x88]
mov eax, dword [ebp - 0x80]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100122d0
add ebp, 0x8c
leave
ret

Function at 0x10010b70
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
pushal
call 0x10010b7f
pop dword [ebp - 0x50]
mov eax, 0xee3407b9
sub eax, 0xde32fc3a
sub dword [ebp - 0x50], eax
mov dword [ebp - 0x60], 0x2a1d8b76
add dword [ebp - 0x60], 0x2434b9d5
mov dword [ebp - 0x5c], 0x6e6ebfc8
add dword [ebp - 0x5c], 0xc3c48c7d
mov dword [ebp - 0x58], 0x6b261dd3
add dword [ebp - 0x58], 0xe126265b
mov dword [ebp - 0x54], 0x1909e546
sub dword [ebp - 0x54], 0x1909e546
lea eax, [ebp - 0x60]
push eax
mov eax, 0x9f154e77
sub eax, 0x8f141d1f
add eax, dword [ebp - 0x50]
call dword [eax]
mov dword [ebp - 0x60], 0xdf67b132
add dword [ebp - 0x60], 0x950ab824
mov dword [ebp - 0x5c], 0x39317c4
sub dword [ebp - 0x5c], 0xc226b64f
mov dword [ebp - 0x58], 0x456cd849
add dword [ebp - 0x58], 0x1e029423
mov dword [ebp - 0x54], 0xb67e2f93
sub dword [ebp - 0x54], 0xb67e2f93
lea ebx, [ebp - 0x60]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x50]
call dword [eax]
push 0x40
push 0x1000
push 0x3a29e
push 0
call eax
mov ecx, 0x51a4
mov esi, eax
mov edx, 0x5cd4ee67
sub edx, 0x4cd2e867
add edx, dword [ebp - 0x50]
mov edi, 0xf82996a6
add edi, 0x916855f5
mov ebx, dword [edx]
add dword [ebp - 0x28], 0xc61a77ee
add ebx, edi
xor dword [ebp - 0x38], 0x2eae03ca
mov dword [esi], ebx
sub dword [ebp - 0xc], 0xd8df2078
add esi, 0xd2c1745
sub esi, 0xd2c1741
add edx, 0x9bd48a13
add edx, 0x642b75f1
loop 0x10010c96
add eax, 0xdf81b75a
add eax, 0x207f8209
xor ebx, ebx
add ebx, eax
add eax, 0x6cd85fe6
add eax, 0x9327a01f
mov ecx, 0x10000000
add ecx, dword [ebp - 0x50]
call ebx
leave
ret

Function at 0x100122d0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1001cf10]
jne 0x100122da
repz ret
jmp fcn.100128eb