joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10007b80
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push esi
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, dword [sym.imp.USER32.dll_LoadIconW]
mov edi, eax
push 0x7f00
push edi
mov dword [ebp - 0x4c], 0x30
mov dword [ebp - 0x48], 3
mov dword [ebp - 0x44], 0x10005430
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], edi
call esi
push 0x7f00
push 0
mov dword [ebp - 0x34], eax
call dword [sym.imp.USER32.dll_LoadCursorW]
push 0x7f00
push dword [ebp - 0x38]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], 6
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0x100dd57c
call esi
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.USER32.dll_RegisterClassExW]
push 0
push edi
push 0
push 0
push 0x258
push 0x320
push 0x80000000
push 0x80000000
push 0x10cf0000
push 0x100dd590
push 0x100dd57c
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov esi, eax
test esi, esi
jne 0x10007c55
push eax
push 0x100dd538
push 0x100dd5a4
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 1
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call dword [sym.imp.USER32.dll_UpdateWindow]
mov esi, dword [sym.imp.USER32.dll_GetMessageW]
lea eax, [ebp - 0x1c]
push 0
push 0
push 0
push eax
call esi
test eax, eax
je 0x10007ca5
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
push ebx
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageW]
lea eax, [ebp - 0x1c]
push eax
call edi
lea eax, [ebp - 0x1c]
push eax
call ebx
push 0
push 0
push 0
lea eax, [ebp - 0x1c]
push eax
call esi
test eax, eax
jne 0x10007c88
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10007cb0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push esi
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov edi, eax
push 0
mov dword [0x100d3544], edi
call fcn.10056ed4
push eax
call fcn.10055479
mov esi, dword [sym.imp.USER32.dll_LoadIconW]
add esp, 8
mov dword [ebp - 0x4c], 0x30
mov dword [ebp - 0x48], 3
mov dword [ebp - 0x44], 0x10004ff0
push 0x7f00
push edi
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], edi
call esi
push 0x7f00
push 0
mov dword [ebp - 0x34], eax
call dword [sym.imp.USER32.dll_LoadCursorW]
push 0x7f00
push dword [ebp - 0x38]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], 6
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0x100dd4fc
call esi
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.USER32.dll_RegisterClassExW]
push 0
push edi
push 0
push 0
push 0x258
push 0x1f4
push 0x80000000
push 0x80000000
push 0xcf0000
push 0x100dd514
push 0x100dd4fc
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov esi, eax
test esi, esi
jne 0x10007d9b
push eax
push 0x100dd538
push 0x100dd3b8
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 1
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call dword [sym.imp.USER32.dll_UpdateWindow]
push 0
push 0x7d0
push 1
push esi
call dword [sym.imp.USER32.dll_SetTimer]
mov esi, dword [sym.imp.USER32.dll_GetMessageW]
lea eax, [ebp - 0x1c]
push 0
push 0
push 0
push eax
call esi
test eax, eax
je 0x10007dfd
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
push ebx
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageW]
nop
lea eax, [ebp - 0x1c]
push eax
call edi
lea eax, [ebp - 0x1c]
push eax
call ebx
push 0
push 0
push 0
lea eax, [ebp - 0x1c]
push eax
call esi
test eax, eax
jne 0x10007de0
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1000cf70
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10071300
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
push edi
lea eax, [ecx + 4]
mov dword [ebp - 0x10], ecx
lea ebx, [ecx + 0x24]
mov dword [ecx], 0x100ddc64
lea edi, [ecx + 0x28]
mov dword [ebp - 0x14], eax
push 8
mov dword [eax], 0
mov dword [ecx + 8], 0
mov dword [ecx + 0xc], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x18], 0
mov dword [ecx + 0x1c], 0
mov dword [ecx + 0x20], 0
mov dword [ebx], 0
mov dword [edi], 0
mov dword [ecx + 0x2c], 0
mov dword [ecx + 0x30], 0
call fcn.10049674
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.100487c1
mov dword [esi + 4], eax
add esp, 8
mov eax, dword [ebp - 0x10]
mov ecx, eax
mov dword [eax + 0x34], esi
call fcn.1000e550
mov eax, dword [ebp - 0x10]
lea edx, [eax + 8]
lea ecx, [eax + 0x14]
lea esi, [eax + 4]
mov dword [eax + 0x1c], ecx
mov dword [eax + 0xc], esi
mov esi, eax
mov dword [eax + 0x10], edx
mov dword [eax], 0x100ddb4c
mov byte [eax + 0x48], 0
mov byte [eax + 0x3e], 0
lea eax, [esi + 0x18]
mov dword [esi + 0x20], eax
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], edi
mov esi, dword [ebp - 0x14]
mov dword [edx], 0
mov edx, dword [ebp - 0x10]
mov dword [eax], 0
mov eax, dword [0x100d440c]
mov dword [edi], 0
mov dword [esi], 0
mov dword [ecx], 0
mov ecx, dword [0x100d4410]
mov dword [ebx], 0
pop edi
mov dword [edx + 0x44], ecx
mov ecx, dword [ebp - 0xc]
mov dword [edx + 0x40], eax
mov eax, edx
pop esi
mov dword [edx + 0x4c], 0
mov dword [edx + 0x38], 0
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x1000e7c0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x10071300
push eax
mov dword fs:[0], esp
push esi
push edi
mov edi, ecx
push 8
mov dword [edi], 0x100d553c
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
call fcn.10049674
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.100487c1
add esp, 8
mov dword [esi + 4], eax
mov ecx, edi
mov dword [edi + 0x34], esi
call fcn.1000e550
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10010a60
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
mov eax, dword fs:[0]
mov edx, dword [ebx + 0xc]
push 0xffffffffffffffff
push 0x10071675
push eax
mov dword fs:[0], esp
push ebx
sub esp, 0x10
cmp dword [edx + 0x14], 0xf
push esi
push edi
mov edi, edx
jbe 0x10010a9e
mov edi, dword [edx]
xor ecx, ecx
mov esi, 0x811c9dc5
cmp dword [edx + 0x10], ecx
jbe 0x10010ac2
nop word [eax + eax]
movzx eax, byte [ecx + edi]
inc ecx
xor eax, esi
imul esi, eax, 0x1000193
cmp ecx, dword [edx + 0x10]
jb 0x10010ab0
push esi
push edx
lea eax, [ebp - 0x18]
push eax
call fcn.10015870
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x10010ae2
mov eax, dword [ebx + 8]
mov dword [eax], ecx
mov byte [eax + 4], 0
jmp 0x10010c5c
cmp dword [0x100d35d0], 0x4924924
je 0x10010c71
mov dword [ebp - 0x20], 0x100d35cc
mov dword [ebp - 4], 0
push 0x38
mov dword [ebp - 0x1c], 0
call fcn.10049674
add esp, 4
mov edi, eax
mov dword [ebp - 0x1c], edi
push dword [ebx + 0xc]
lea ecx, [edi + 8]
call fcn.1000b120
xorps xmm0, xmm0
movups xmmword [edi + 0x20], xmm0
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0xf
mov byte [edi + 0x20], 0
mov dword [ebp - 4], 1
mov edx, dword [0x100d35d0]
lea eax, [edx + 1]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x100ddd60]
mov eax, dword [0x100d35e4]
cvtpd2ps xmm2, xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
movaps xmm1, xmm2
addsd xmm0, qword [eax*8 + 0x100ddd60]
cvtpd2ps xmm0, xmm0
divss xmm1, xmm0
movss xmm0, dword [0x100d35c8]
comiss xmm1, xmm0
jbe 0x10010c08
divss xmm2, xmm0
sub esp, 8
cvtps2pd xmm0, xmm2
movsd qword [ebp - 0x18], xmm0
fld qword [ebp - 0x18]
fstp qword [esp]
call fcn.1006e210
fstp qword [ebp - 0x18]
movsd xmm0, qword [ebp - 0x18]
add esp, 8
cvtpd2ps xmm0, xmm0
call fcn.100709d0
mov ecx, 8
cmp eax, ecx
cmova ecx, eax
mov eax, dword [0x100d35e4]
cmp eax, ecx
jae 0x10010be4
cmp eax, 0x200
jae 0x10010be2
shl eax, 3
cmp eax, ecx
jae 0x10010be4
mov eax, ecx
push eax
call fcn.10014260
push esi
lea eax, [edi + 8]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.10015870
mov edx, dword [0x100d35d0]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 0x14], eax
jmp 0x10010c0b
mov ecx, dword [ebp - 0x18]
mov eax, dword [ecx + 4]
inc edx
mov dword [0x100d35d0], edx
mov dword [edi], ecx
mov dword [edi + 4], eax
mov dword [eax], edi
mov dword [ecx + 4], edi
and esi, dword [0x100d35e0]
mov dword [ebp - 0x14], eax
mov eax, dword [0x100d35d4]
mov edx, dword [eax + esi*8]
cmp edx, dword [0x100d35cc]
jne 0x10010c3d
mov dword [eax + esi*8], edi
jmp 0x10010c4f
cmp edx, ecx
jne 0x10010c46
mov dword [eax + esi*8], edi
jmp 0x10010c53
mov ecx, dword [ebp - 0x14]
cmp dword [eax + esi*8 + 4], ecx
jne 0x10010c53
mov dword [eax + esi*8 + 4], edi
mov eax, dword [ebx + 8]
mov dword [eax], edi
mov byte [eax + 4], 1
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 8
push 0x100dd7d8
call fcn.100485b5
int3
Function at 0x10014260
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1fffffff
sub esp, 0x10
bsr ecx, eax
push ebx
push esi
mov esi, 1
mov eax, esi
shl eax, cl
mov ecx, dword [ebp + 8]
push edi
cmp ecx, eax
ja 0x100143df
lea eax, [ecx - 1]
or eax, esi
bsr ecx, eax
mov eax, dword [0x100d35cc]
push eax
mov dword [ebp + 8], eax
lea ecx, [ecx + 1]
shl esi, cl
mov ecx, 0x100d35d4
lea eax, [esi + esi]
push eax
call fcn.1000e880
lea eax, [esi - 1]
mov dword [0x100d35e4], esi
mov esi, dword [0x100d35cc]
mov dword [0x100d35e0], eax
mov eax, dword [ebp + 8]
mov esi, dword [esi]
mov edi, esi
cmp esi, eax
je 0x100143ba
nop dword [eax]
cmp dword [esi + 0x1c], 0xf
lea ecx, [esi + 8]
mov edi, dword [edi]
mov dword [ebp - 0xc], edi
mov dword [ebp - 4], ecx
jbe 0x100142e6
mov edx, dword [ecx]
mov dword [ebp - 4], edx
mov ecx, dword [ecx + 0x10]
xor edx, edx
mov dword [ebp - 8], ecx
mov ebx, 0x811c9dc5
test ecx, ecx
je 0x10014317
mov eax, dword [ebp - 4]
mov edi, ecx
nop dword [eax]
movzx ecx, byte [edx + eax]
inc edx
xor ecx, ebx
imul ebx, ecx, 0x1000193
cmp edx, edi
jb 0x10014300
mov edi, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
and ebx, dword [0x100d35e0]
mov ecx, dword [0x100d35d4]
lea ecx, [ecx + ebx*8]
mov dword [ebp - 4], ecx
cmp dword [ecx], eax
jne 0x10014334
mov dword [ecx], esi
mov dword [ecx + 4], esi
jmp 0x100143b0
mov ebx, dword [ecx + 4]
lea eax, [ebx + 8]
push eax
lea eax, [esi + 8]
push eax
call fcn.100199d0
test al, al
jne 0x1001436e
mov ebx, dword [ebx]
cmp ebx, esi
je 0x10014366
mov edx, dword [esi + 4]
mov dword [edx], edi
mov ecx, dword [edi + 4]
mov dword [ecx], ebx
mov eax, dword [ebx + 4]
mov dword [eax], esi
mov dword [ebx + 4], ecx
mov dword [edi + 4], edx
mov dword [esi + 4], eax
mov eax, dword [ebp - 4]
mov dword [eax + 4], esi
jmp 0x100143ad
mov eax, dword [ebp - 4]
cmp dword [eax], ebx
je 0x10014390
mov ebx, dword [ebx + 4]
lea eax, [ebx + 8]
push eax
lea eax, [esi + 8]
push eax
call fcn.100199d0
test al, al
je 0x100143c3
mov eax, dword [ebp - 4]
cmp dword [eax], ebx
jne 0x10014375
mov edx, dword [esi + 4]
mov dword [edx], edi
mov ecx, dword [edi + 4]
mov dword [ecx], ebx
mov eax, dword [ebx + 4]
mov dword [eax], esi
mov dword [ebx + 4], ecx
mov dword [edi + 4], edx
mov dword [esi + 4], eax
mov eax, dword [ebp - 4]
mov dword [eax], esi
mov eax, dword [ebp + 8]
mov esi, edi
cmp edi, eax
jne 0x100142d0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov edx, dword [esi + 4]
mov ebx, dword [ebx]
mov dword [edx], edi
mov ecx, dword [edi + 4]
mov dword [ecx], ebx
mov eax, dword [ebx + 4]
mov dword [eax], esi
mov dword [ebx + 4], ecx
mov dword [edi + 4], edx
mov dword [esi + 4], eax
jmp 0x100143ad
push 0x100dd804
call fcn.100485b5
int3

Function at 0x1005a397
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x1005a3d6
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1005a3d6
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1005a3d6
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x1005a3d6
cmp dword [ecx + 0x74], 0xe
jbe 0x1005a3d6
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x10061635
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100d9580
push 0x100d9578
push 0x100d7064
push 0x1f
call fcn.100614a0
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10061669
push dword [ebp + 8]
mov ecx, esi
call dword [0x100d530c]
call esi
jmp 0x1006166f
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x100616b3
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100d9590
push 0x100d9588
push 0x100d7088
push 0x21
call fcn.100614a0
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100616ea
push dword [ebp + 8]
mov ecx, esi
call dword [0x100d530c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x100616f2
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100d9598
push 0x100d9590
push 0x100d709c
push 0x22
call fcn.100614a0
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1006172c
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x100d530c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x10061ecd
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.1004a5d0
mov eax, dword [0x100730c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.1005b942
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x10061f0f
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x1006206b
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.10070350
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x100d30d0]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.1006432c
mov ecx, dword [esi*4 + 0x100d30d0]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x10062064
cmp eax, dword [ecx + edi + 0x24]
jne 0x10062064
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10062064
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1006432c
add esp, 0x14
test edx, edx
jl 0x10062064
jg 0x10061fda
test eax, eax
jb 0x10062064
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x10062064
jl 0x10061ff4
cmp dword [ebp - 0x1008], eax
ja 0x10062064
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x10062012
test ebx, ebx
je 0x1006204b
cmp ecx, edi
jae 0x1006204b
mov al, byte [ecx]
cmp al, 0xd
jne 0x1006202c
lea eax, [edi - 1]
cmp ecx, eax
jae 0x10062038
cmp byte [ecx + 1], 0xa
jne 0x10062038
inc ecx
jmp 0x10062038
movzx eax, al
movsx eax, byte [eax + 0x10073528]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x10062012
cmp edx, ebx
jne 0x10062012
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x10062069
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.10049d52
leave
ret
Function at 0x100637c4
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 + 0x100d30d0]
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 0x10063804
cmp byte [ebx], 0xa
jne 0x10063804
or byte [edi + eax + 0x28], 4
jmp 0x10063809
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 0x10063908
mov dl, byte [eax]
cmp dl, 0x1a
je 0x100638eb
inc eax
cmp dl, 0xd
je 0x10063835
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x1006385b
cmp eax, ecx
jae 0x10063869
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 0x1006381d
jmp 0x10063908
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 0x100638e6
cmp dword [ebp - 0x10], 0
je 0x100638e6
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x100d30d0]
test byte [eax + edi + 0x28], 0x48
je 0x100638c0
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x100638ab
mov byte [esi], dl
jmp 0x100638bc
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x100d30d0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x10063908
cmp byte [ebp - 1], 0xa
jne 0x100638cf
cmp esi, ebx
jne 0x100638cf
mov byte [esi], 0xa
jmp 0x10063907
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.1006434a
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x10063908
mov byte [esi], 0xd
jmp 0x10063907
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x100d30d0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x10063905
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x10063908
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x10063911
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 + 0x100d30d0]
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 0x10063957
cmp word [ebx], dx
jne 0x10063957
or byte [eax + edi + 0x28], 4
jmp 0x1006395c
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 0x10063abf
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 0x10063a9f
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x1006399d
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x100639d3
cmp eax, edx
jae 0x100639e1
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 0x10063978
jmp 0x10063abf
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 0x10063a9a
cmp dword [ebp - 0x18], 0
je 0x10063a9a
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x100d30d0]
test byte [eax + edi + 0x28], 0x48
je 0x10063a70
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 0x10063a34
mov word [esi], cx
jmp 0x10063a6b
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x100d30d0]
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 + 0x100d30d0]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x100d30d0]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x10063abf
pop eax
cmp word [ebp - 4], ax
jne 0x10063a80
cmp esi, ebx
jne 0x10063a80
mov word [esi], ax
jmp 0x10063abc
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.1006434a
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x10063abf
push 0xd
pop eax
jmp 0x10063a7b
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x100d30d0]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x10063ab9
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x10063abf
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 0x10066c96
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 0x10066d33
push ebx
push esi
call fcn.10066c5f
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.100600a8
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x10066ce0
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10066d32
push edi
push eax
call fcn.1005dd3d
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x10066d00
call fcn.1005dd03
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10066d31
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.100600a8
add esp, 0x20
test eax, eax
jne 0x10066d1f
push edi
call fcn.1005dd03
jmp 0x10066d27
push ebx
call fcn.1005dd03
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 0x10066d36
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x10066d47
pop esi
ret
push ebx
push edi
push esi
call fcn.10066c5f
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.1005dd3d
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x10066d6f
push ebx
push esi
push edi
call fcn.1004ad80
add esp, 0xc
push 0
call fcn.1005dd03
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x100674c9
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10066fe4

Function at 0x10069b82
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.1005c104
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 0x10069bf1
cmp esi, dword [ebp - 4]
je 0x10069bec
cmp dword [ebp + 0xc], 0
je 0x10069bec
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x10069bc9
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.100696d4
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x10069bf3
xor eax, eax
inc eax
jmp 0x10069bf3
xor eax, eax
pop edi
pop esi
leave
ret