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

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x43f453
push esi
call fcn.00442510
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x43f44c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x43f4d9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x43f4c2
mov eax, dword [esi + 8]
test eax, eax
je 0x43f477
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x43f4be
cmp eax, 2
je 0x43f4c2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x43f46a
cmp eax, 3
je 0x43f49d
cmp eax, 1
jne 0x43f46a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x43f46a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x43f46a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0043f500
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x43f4e8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.0043f500
add esp, 4
pop esi
ret

Function at 0x45db18
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x45db50
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0045bbcc
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0045bba4
jmp 0x45db5c
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x45f206
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x45f248
call fcn.00464cbf
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x45f248
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x45f23f
xor eax, eax
jmp 0x45f250
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0045f256
pop edi
pop esi
pop ebx
ret 4

Function at 0x4651ef
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x46521d
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x46523b
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00465155
jmp 0x46523b
mov eax, dword [esi + 0x14]
test eax, eax
je 0x46523b
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00465155
test edi, edi
mov eax, edi
jne 0x465225
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x1000ffb0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
lea ecx, [edi + 1]
nop
mov al, byte [edi]
inc edi
test al, al
jne 0x1000ffc0
sub edi, ecx
mov ecx, dword [ebp + 0xc]
mov edx, edi
mov dword [ebp - 8], edi
or edx, 0x20
mov eax, edi
shr edx, 5
mov esi, edi
mov dword [ebp - 4], eax
mov ebx, ecx
cmp edi, edx
jb 0x1001000d
mov ecx, edi
lea ebx, [ebx + 1]
mov eax, edi
shl ecx, 5
shr eax, 2
sub esi, edx
add ecx, eax
movzx eax, byte [ebx - 1]
add ecx, eax
xor edi, ecx
cmp esi, edx
jae 0x1000ffe4
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 4], edi
mov edi, dword [ebp - 8]
mov eax, dword [ebp - 4]
mov esi, dword [ebp + 8]
mov edx, dword [esi + 0x2c]
dec edx
and edx, eax
mov eax, dword [esi + 0x34]
mov dword [ebp - 8], edx
mov ebx, dword [eax + edx*4]
test ebx, ebx
je 0x1001008c
cmp dword [ebx + 8], edi
jne 0x10010077
mov eax, edi
lea esi, [ebx + 0x14]
mov edx, ecx
sub eax, 4
jb 0x10010045
mov ecx, dword [edx]
cmp ecx, dword [esi]
jne 0x1001004a
add edx, 4
add esi, 4
sub eax, 4
jae 0x10010034
cmp eax, 0xfffffffc
je 0x10010083
mov cl, byte [edx]
cmp cl, byte [esi]
jne 0x10010077
cmp eax, 0xfffffffd
je 0x10010083
mov cl, byte [edx + 1]
cmp cl, byte [esi + 1]
jne 0x10010077
cmp eax, 0xfffffffe
je 0x10010083
mov cl, byte [edx + 2]
cmp cl, byte [esi + 2]
jne 0x10010077
cmp eax, 0xffffffff
je 0x10010083
mov al, byte [edx + 3]
cmp al, byte [esi + 3]
je 0x10010083
mov ebx, dword [ebx + 0xc]
test ebx, ebx
je 0x1001008c
mov ecx, dword [ebp + 0xc]
jmp 0x10010023
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp + 8]
lea eax, [edi + 0x15]
push eax
push 0
push ebx
call fcn.1000cd30
mov esi, eax
mov eax, dword [ebp - 4]
push edi
mov dword [esi], eax
lea ecx, [esi + 0x14]
mov eax, dword [ebp + 0xc]
push eax
push ecx
mov dword [esi + 0x10], 0
mov dword [esi + 0xc], 0
mov dword [esi + 8], edi
mov dword [esi + 4], 0
call fcn.10015bd0
push dword [ebp - 8]
lea eax, [edi + 0x15]
mov byte [edi + esi + 0x14], 0
add dword [ebx + 0x60], eax
lea eax, [ebx + 0x2c]
push esi
push eax
push ebx
call fcn.100104b0
add esp, 0x28
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100100f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
lea ecx, [ebx + 1]
nop
mov al, byte [ebx]
inc ebx
test al, al
jne 0x10010100
sub ebx, ecx
mov ecx, dword [ebp + 0xc]
mov edx, ebx
mov dword [ebp - 8], ebx
or edx, 0x20
mov eax, ebx
shr edx, 5
mov esi, ebx
mov dword [ebp - 4], eax
mov edi, ecx
cmp ebx, edx
jb 0x1001014d
mov ecx, ebx
lea edi, [edi + 1]
mov eax, ebx
shl ecx, 5
shr eax, 2
sub esi, edx
add ecx, eax
movzx eax, byte [edi - 1]
add ecx, eax
xor ebx, ecx
cmp esi, edx
jae 0x10010124
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 8]
mov eax, dword [ebp - 4]
mov esi, dword [ebp + 8]
mov edx, dword [esi + 0x2c]
dec edx
and edx, eax
mov eax, dword [esi + 0x34]
mov dword [ebp - 8], edx
mov edi, dword [eax + edx*4]
test edi, edi
je 0x100101ce
cmp dword [edi + 8], ebx
jne 0x100101bf
mov edx, ecx
lea esi, [edi + 0x14]
mov ecx, ebx
sub ecx, 4
jb 0x10010185
mov eax, dword [edx]
cmp eax, dword [esi]
jne 0x1001018e
add edx, 4
add esi, 4
sub ecx, 4
jae 0x10010174
cmp ecx, 0xfffffffc
je 0x10010223
mov al, byte [edx]
cmp al, byte [esi]
jne 0x100101bf
cmp ecx, 0xfffffffd
je 0x10010223
mov al, byte [edx + 1]
cmp al, byte [esi + 1]
jne 0x100101bf
cmp ecx, 0xfffffffe
je 0x10010223
mov al, byte [edx + 2]
cmp al, byte [esi + 2]
jne 0x100101bf
cmp ecx, 0xffffffff
je 0x10010223
mov al, byte [edx + 3]
cmp al, byte [esi + 3]
je 0x10010223
mov edi, dword [edi + 0xc]
test edi, edi
je 0x100101cb
mov ecx, dword [ebp + 0xc]
jmp 0x10010163
mov esi, dword [ebp + 8]
lea eax, [ebx + 0x15]
push eax
push 0
push esi
call fcn.1000cd30
mov edi, eax
mov eax, dword [ebp - 4]
push ebx
mov dword [edi], eax
lea ecx, [edi + 0x14]
mov eax, dword [ebp + 0xc]
push eax
push ecx
mov dword [edi + 0x10], 0
mov dword [edi + 0xc], 0
mov dword [edi + 8], ebx
mov dword [edi + 4], 0
call fcn.10015bd0
push dword [ebp - 8]
lea eax, [ebx + 0x15]
mov byte [ebx + edi + 0x14], 0
add dword [esi + 0x60], eax
lea eax, [esi + 0x2c]
push edi
push eax
push esi
call fcn.100104b0
add esp, 0x28
cmp dword [edi + 0x10], 0
mov eax, edi
jne 0x10010232
mov dword [edi + 0x10], 2
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10010240
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 0x10]
mov edx, ecx
push ebx
or edx, 0x20
mov ebx, ecx
push esi
shr edx, 5
mov esi, ecx
push edi
mov edi, dword [ebp + 0xc]
cmp ecx, edx
jb 0x10010280
nop dword [eax]
mov ecx, ebx
lea edi, [edi + 1]
mov eax, ebx
shl ecx, 5
shr eax, 2
sub esi, edx
add ecx, eax
movzx eax, byte [edi - 1]
add ecx, eax
xor ebx, ecx
cmp esi, edx
jae 0x10010260
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x2c]
mov eax, dword [eax + 0x34]
dec edx
and edx, ebx
mov dword [ebp - 4], edx
mov edi, dword [eax + edx*4]
test edi, edi
je 0x10010301
cmp dword [edi + 8], ecx
jne 0x100102fa
mov edx, dword [ebp + 0xc]
lea esi, [edi + 0x14]
mov eax, ecx
sub eax, 4
jb 0x100102b9
mov ecx, dword [edx]
cmp ecx, dword [esi]
jne 0x100102c2
add edx, 4
add esi, 4
sub eax, 4
jae 0x100102a8
cmp eax, 0xfffffffc
je 0x10010363
mov cl, byte [edx]
cmp cl, byte [esi]
jne 0x100102f7
cmp eax, 0xfffffffd
je 0x10010363
mov cl, byte [edx + 1]
cmp cl, byte [esi + 1]
jne 0x100102f7
cmp eax, 0xfffffffe
je 0x10010363
mov cl, byte [edx + 2]
cmp cl, byte [esi + 2]
jne 0x100102f7
cmp eax, 0xffffffff
je 0x10010363
mov al, byte [edx + 3]
cmp al, byte [esi + 3]
je 0x10010363
mov ecx, dword [ebp + 0x10]
mov edi, dword [edi + 0xc]
test edi, edi
jne 0x10010296
lea eax, [ecx + 0x15]
push eax
push 0
push dword [ebp + 8]
call fcn.1000cd30
mov edi, dword [ebp + 0x10]
mov esi, eax
push edi
push dword [ebp + 0xc]
lea ecx, [esi + 0x14]
mov dword [esi + 0x10], 0
push ecx
mov dword [esi + 0xc], 0
mov dword [esi + 8], edi
mov dword [esi], ebx
mov dword [esi + 4], 0
call fcn.10015bd0
mov ecx, dword [ebp + 8]
lea eax, [edi + 0x15]
push dword [ebp - 4]
mov byte [esi + edi + 0x14], 0
push esi
add dword [ecx + 0x60], eax
lea eax, [ecx + 0x2c]
push eax
push ecx
call fcn.100104b0
add esp, 0x28
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1003f999
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.1007e8f0
mov eax, dword [section..data]
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.1005b0cd
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x1003f9db
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x1003fb37
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.1007e840
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 + 0x1009b3a0]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.10062734
mov ecx, dword [esi*4 + 0x1009b3a0]
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 0x1003fb30
cmp eax, dword [ecx + edi + 0x24]
jne 0x1003fb30
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 0x1003fb30
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.10062734
add esp, 0x14
test edx, edx
jl 0x1003fb30
jg 0x1003faa6
test eax, eax
jb 0x1003fb30
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x1003fb30
jl 0x1003fac0
cmp dword [ebp - 0x1008], eax
ja 0x1003fb30
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x1003fade
test ebx, ebx
je 0x1003fb17
cmp ecx, edi
jae 0x1003fb17
mov al, byte [ecx]
cmp al, 0xd
jne 0x1003faf8
lea eax, [edi - 1]
cmp ecx, eax
jae 0x1003fb04
cmp byte [ecx + 1], 0xa
jne 0x1003fb04
inc ecx
jmp 0x1003fb04
movzx eax, al
movsx eax, byte [eax + 0x1009a250]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x1003fade
cmp edx, ebx
jne 0x1003fade
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x1003fb35
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.100140f4
leave
ret

Function at 0x1004e787
Capabilities:
Parse pe header

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1008815c
push 0x10088154
push str.FlsAlloc
push 0x1f
call fcn.1005eaa7
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1005ee0d
push dword [ebp + 8]
mov ecx, esi
call dword [0x1008216c]
call esi
jmp 0x1005ee13
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1005ee57
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1008816c
push 0x10088164
push str.FlsGetValue
push 0x21
call fcn.1005eaa7
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1005ee8e
push dword [ebp + 8]
mov ecx, esi
call dword [0x1008216c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1005ee96
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10088174
push 0x1008816c
push str.FlsSetValue
push 0x22
call fcn.1005eaa7
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1005eed0
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1008216c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]

Function at 0x1005efe1
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push str.GetTempPath2W
push 0x10087e64
push str.GetTempPath2W
push 5
call fcn.1005eaa7
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1005f01b
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1008216c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_GetTempPathW]
Function at 0x100618ae
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 + 0x1009b3a0]
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 0x100618ee
cmp byte [ebx], 0xa
jne 0x100618ee
or byte [edi + eax + 0x28], 4
jmp 0x100618f3
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 0x100619f2
mov dl, byte [eax]
cmp dl, 0x1a
je 0x100619d5
inc eax
cmp dl, 0xd
je 0x1006191f
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x10061945
cmp eax, ecx
jae 0x10061953
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 0x10061907
jmp 0x100619f2
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 0x100619d0
cmp dword [ebp - 0x10], 0
je 0x100619d0
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x1009b3a0]
test byte [eax + edi + 0x28], 0x48
je 0x100619aa
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x10061995
mov byte [esi], dl
jmp 0x100619a6
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x1009b3a0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x100619f2
cmp byte [ebp - 1], 0xa
jne 0x100619b9
cmp esi, ebx
jne 0x100619b9
mov byte [esi], 0xa
jmp 0x100619f1
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.10062752
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x100619f2
mov byte [esi], 0xd
jmp 0x100619f1
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x1009b3a0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x100619ef
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x100619f2
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x100619fb
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 + 0x1009b3a0]
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 0x10061a41
cmp word [ebx], dx
jne 0x10061a41
or byte [eax + edi + 0x28], 4
jmp 0x10061a46
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 0x10061ba9
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 0x10061b89
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x10061a87
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x10061abd
cmp eax, edx
jae 0x10061acb
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 0x10061a62
jmp 0x10061ba9
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 0x10061b84
cmp dword [ebp - 0x18], 0
je 0x10061b84
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x1009b3a0]
test byte [eax + edi + 0x28], 0x48
je 0x10061b5a
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 0x10061b1e
mov word [esi], cx
jmp 0x10061b55
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x1009b3a0]
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 + 0x1009b3a0]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x1009b3a0]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x10061ba9
pop eax
cmp word [ebp - 4], ax
jne 0x10061b6a
cmp esi, ebx
jne 0x10061b6a
mov word [esi], ax
jmp 0x10061ba6
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.10062752
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x10061ba9
push 0xd
pop eax
jmp 0x10061b65
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x1009b3a0]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x10061ba3
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x10061ba9
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 0x1006ce8a
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [section..data]
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 0x1006ced5
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.1006d226
test al, al
jne 0x1006cecf
sub edx, 2
cmp edx, edi
jne 0x1006ceb5
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x1006cef7
lea eax, [edi + 2]
cmp edx, eax
je 0x1006cef7
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.1006cb51
add esp, 0x10
jmp 0x1006cff1
push esi
lea ecx, [ebp - 0x255]
call fcn.1006d226
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 0x1006cf3a
push dword [ebp - 0x25c]
jmp 0x1006cee7
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 0x1006cf77
cmp word [ebp - 0x226], 0
je 0x1006cf98
cmp word [ebp - 0x226], ax
jne 0x1006cf77
cmp word [ebp - 0x224], 0
je 0x1006cf98
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.1006cb51
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x1006cfe4
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x1006cf51
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x1006cfcc
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x1006cff1
push 0x1006c670
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.1007bdf0
add esp, 0x10
jmp 0x1006cfc1
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.100140f4
leave
ret
Function at 0x1006e396
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 0x1006e433
push ebx
push esi
call fcn.1006e352
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.10067e25
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1006e3e0
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1006e432
push edi
push eax
call fcn.100593cc
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1006e400
call fcn.10059392
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1006e431
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.10067e25
add esp, 0x20
test eax, eax
jne 0x1006e41f
push edi
call fcn.10059392
jmp 0x1006e427
push ebx
call fcn.10059392
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 0x1006e436
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x1006e447
pop esi
ret
push ebx
push edi
push esi
call fcn.1006e352
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.100593cc
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x1006e46f
push ebx
push esi
push edi
call fcn.10015bd0
add esp, 0xc
push 0
call fcn.10059392
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x1006eccc
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1006e6e4

Function at 0x10074ec3
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.1005beee
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 0x10074f32
cmp esi, dword [ebp - 4]
je 0x10074f2d
cmp dword [ebp + 0xc], 0
je 0x10074f2d
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x10074f0a
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.10074a15
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x10074f34
xor eax, eax
inc eax
jmp 0x10074f34
xor eax, eax
pop edi
pop esi
leave
ret