joyce8/EMBER2024-capa huggingface dataset:
Function at 0x101fe3b
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x10905c4]
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
push edi
xor ebx, ebx
cmp eax, ebx
push 2
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
pop edi
jne 0x101fe8e
call esi
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x101fe75
mov dword [0x10905c4], 1
jmp 0x101fe93
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x101fe89
mov eax, edi
mov dword [0x10905c4], eax
jmp 0x101fe8e
mov eax, dword [0x10905c4]
cmp eax, 1
jne 0x101fefa
cmp dword [ebp - 4], ebx
jne 0x101fea8
call esi
cmp eax, ebx
mov dword [ebp - 4], eax
jne 0x101fea8
xor eax, eax
jmp 0x101ffb9
mov ecx, dword [ebp - 4]
cmp word [ecx], bx
mov eax, ecx
je 0x101fec0
add eax, edi
cmp word [eax], bx
jne 0x101feb2
add eax, edi
cmp word [eax], bx
jne 0x101feb2
sub eax, ecx
add eax, edi
mov esi, eax
push esi
call fcn.0101e277
cmp eax, ebx
pop ecx
jne 0x101fee1
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
jmp 0x101ffb9
mov ecx, esi
mov esi, dword [ebp - 4]
mov edx, ecx
shr ecx, 2
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ebx, eax
jmp 0x101fed1
cmp eax, edi
je 0x101ff02
cmp eax, ebx
jne 0x101fea1
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov esi, eax
cmp esi, ebx
mov dword [ebp - 4], esi
je 0x101fea1
cmp byte [esi], bl
je 0x101ff47
push ebx
push ebx
push 0xffffffffffffffff
push esi
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, ebx
je 0x101fea1
add dword [ebp - 8], eax
mov eax, esi
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x101ff33
sub eax, edi
lea esi, [esi + eax + 1]
cmp byte [esi], bl
jne 0x101ff15
mov esi, dword [ebp - 4]
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
add eax, eax
push eax
call fcn.0101e277
cmp eax, ebx
pop ecx
mov dword [ebp - 0xc], eax
jne 0x101ff60
push esi
jmp 0x101ffca
mov edi, esi
mov esi, eax
mov eax, dword [ebp - 4]
cmp byte [eax], bl
je 0x101ffaa
mov ecx, dword [ebp - 8]
mov eax, esi
sub eax, dword [ebp - 0xc]
sar eax, 1
sub ecx, eax
push ecx
push esi
push 0xffffffffffffffff
push edi
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x101ffbe
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x101ff8e
sub eax, edx
push esi
lea edi, [edi + eax + 1]
call fcn.0101e1a5
cmp byte [edi], bl
pop ecx
lea esi, [esi + eax*2 + 2]
jne 0x101ff6b
push dword [ebp - 4]
mov word [esi], bx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret
push dword [ebp - 0xc]
call fcn.0101df5a
pop ecx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
jmp 0x101fea1
Function at 0x101ffda
Capabilities:
Accept command line arguments

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x10905c8]
test eax, eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetCommandLineW]
jne 0x102001e
call esi
test eax, eax
je 0x1020003
mov dword [0x10905c8], 1
jmp 0x1020023
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x102001a
mov dword [0x10905c8], 2
jmp 0x102002c
xor eax, eax
jmp 0x1020082
cmp eax, 1
jne 0x1020027
call esi
jmp 0x1020082
cmp eax, 2
jne 0x102001a
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0
push 0
push 0xffffffffffffffff
push eax
push 1
push 0
mov dword [ebp - 8], eax
call esi
mov edi, eax
test edi, edi
je 0x102007f
lea eax, [edi + edi]
push eax
call fcn.0101e277
test eax, eax
pop ecx
mov dword [ebp - 4], eax
je 0x102007f
push edi
push eax
push 0xffffffffffffffff
push dword [ebp - 8]
push 1
push 0
call esi
test eax, eax
je 0x1020076
mov eax, dword [ebp - 4]
jmp 0x1020081
push dword [ebp - 4]
call fcn.0101df5a
pop ecx
xor eax, eax
pop edi
pop esi
leave
ret

Function at 0x10202cd
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov edi, edi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [0x108e71c]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x102032f
push 0x88
push 1
call fcn.010243c1
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x1020327
push esi
push dword [0x108e71c]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x1020327
push esi
call fcn.010202b0
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
or dword [esi + 4], 0xffffffff
mov dword [esi], eax
jmp 0x102032f
push 0x10
call fcn.0101dbc4
pop ecx
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
mov eax, esi
pop esi
ret

Function at 0x1020340
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
call fcn.0102065b
test eax, eax
je 0x1020359
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [0x108e71c], eax
jne 0x1020361
call fcn.0102028d
xor eax, eax
ret
push esi
push 0x88
push 1
call fcn.010243c1
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x10203a1
push esi
push dword [0x108e71c]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x10203a1
push esi
call fcn.010202b0
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
or dword [esi + 4], 0xffffffff
mov dword [esi], eax
xor eax, eax
inc eax
pop esi
ret
call fcn.0102028d
xor eax, eax
pop esi
ret
Function at 0x102042a
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x102045b
mov eax, dword fs:[4]
mov dword [ebp + 8], eax
mov eax, dword fs:[8]
mov dword [ebp - 4], eax
cmp ebx, dword [ebp - 4]
jb 0x1020462
cmp ebx, dword [ebp + 8]
jae 0x1020462
xor eax, eax
jmp 0x1020652
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x1020473
xor eax, eax
inc eax
jmp 0x1020651
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x1020489
cmp ecx, edx
jae 0x10205ce
cmp dword [eax + 4], 0
je 0x1020492
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x102047a
cmp dword [ebp + 8], 0
je 0x10204b4
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x10205ce
cmp eax, esi
jae 0x10205ce
mov eax, dword [0x10905d0]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x10204d9
cmp dword [esi*4 + 0x10905d8], edi
je 0x10205d2
inc esi
cmp esi, eax
jl 0x10204c7
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x102064e
cmp dword [ebp - 8], 0x1000000
jne 0x102064e
test byte [ebp - 0xc], 0xcc
je 0x1020557
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x102064e
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x102064e
cmp word [eax + 0x18], 0x10b
jne 0x102064e
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x102064e
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x1020557
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x1020557
test byte [ecx + 0x27], 0x80
jne 0x10205ce
push 1
push 0x1090618
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x102046b
mov ecx, dword [0x10905d0]
test ecx, ecx
mov edx, ecx
jle 0x102058b
lea eax, [ecx*4 + 0x10905d4]
cmp dword [eax], edi
je 0x102058b
dec edx
sub eax, 4
test edx, edx
jg 0x102057f
test edx, edx
jne 0x10205bc
push 0xf
pop ebx
cmp ecx, ebx
jg 0x1020598
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x10205b0
lea eax, [edx*4 + 0x10905d8]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x102059e
cmp ecx, 0x10
jge 0x10205bc
inc ecx
mov dword [0x10905d0], ecx
push 0
push 0x1090618
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x102046b
xor eax, eax
jmp 0x1020651
test esi, esi
jle 0x102046b
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x1090618
call ebx
test eax, eax
jne 0x102046b
cmp dword [esi*4 + 0x10905d8], edi
je 0x1020628
mov eax, dword [0x10905d0]
lea esi, [eax - 1]
test esi, esi
jl 0x1020616
cmp dword [esi*4 + 0x10905d8], edi
je 0x1020612
dec esi
jns 0x1020606
test esi, esi
jge 0x1020626
cmp eax, 0x10
jge 0x1020621
inc eax
mov dword [0x10905d0], eax
lea esi, [eax - 1]
jmp 0x1020628
je 0x1020640
xor ecx, ecx
test esi, esi
jl 0x1020640
lea eax, [ecx*4 + 0x10905d8]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x102062e
push 0
push 0x1090618
call ebx
jmp 0x102046b
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10240e3
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x1090784], ebx
push esi
push edi
jne 0x1024165
push 0x1002ac8
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x10241a0
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x1002abc
push edi
call esi
test eax, eax
mov dword [0x1090784], eax
je 0x10241a0
push 0x1002aac
push edi
call esi
push 0x1002a98
push edi
mov dword [0x1090788], eax
call esi
cmp dword [0x109036c], 2
mov dword [0x109078c], eax
jne 0x1024165
push 0x1002a7c
push edi
call esi
test eax, eax
mov dword [0x1090794], eax
je 0x1024165
push 0x1002a64
push edi
call esi
mov dword [0x1090790], eax
mov eax, dword [0x1090790]
test eax, eax
je 0x10241aa
call eax
test eax, eax
je 0x1024191
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x1090794]
test eax, eax
je 0x1024191
test byte [ebp - 8], 1
jne 0x10241aa
cmp dword [0x1090378], 4
jb 0x10241a4
or byte [ebp + 0x12], 0x20
jmp 0x10241c9
xor eax, eax
jmp 0x10241d9
or byte [ebp + 0x12], 4
jmp 0x10241c9
mov eax, dword [0x1090788]
test eax, eax
je 0x10241c9
call eax
mov ebx, eax
test ebx, ebx
je 0x10241c9
mov eax, dword [0x109078c]
test eax, eax
je 0x10241c9
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x1090784]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1024c02
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x108e558]
xor ecx, ecx
cmp dword [ebp + 0x10], ecx
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov dword [ebp - 0x420], edi
mov dword [ebp - 0x418], ecx
mov dword [ebp - 0x41c], ecx
jne 0x1024c39
xor eax, eax
jmp 0x1024dec
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x1092680]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x1024c6e
push 2
push ecx
push ecx
push dword [ebp + 8]
call fcn.010276bf
add esp, 0x10
xor ecx, ecx
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x1024d3c
cmp dword [ebp + 0x10], ecx
mov dword [ebp - 0x414], edi
mov dword [ebp - 0x40c], ecx
jbe 0x1024dba
jmp 0x1024c95
xor ecx, ecx
mov dword [ebp - 0x410], ecx
mov ecx, dword [ebp - 0x414]
sub ecx, dword [ebp - 0x420]
lea eax, [ebp - 0x408]
cmp ecx, dword [ebp + 0x10]
jae 0x1024ceb
mov edx, dword [ebp - 0x414]
inc dword [ebp - 0x414]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x1024cd6
inc dword [ebp - 0x41c]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0x410]
mov byte [eax], dl
inc eax
inc dword [ebp - 0x410]
cmp dword [ebp - 0x410], 0x400
jl 0x1024cad
mov edi, eax
lea eax, [ebp - 0x408]
sub edi, eax
push 0
lea eax, [ebp - 0x424]
push eax
push edi
lea eax, [ebp - 0x408]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1024d69
mov eax, dword [ebp - 0x424]
add dword [ebp - 0x418], eax
cmp eax, edi
jl 0x1024d75
mov eax, dword [ebp - 0x414]
sub eax, dword [ebp - 0x420]
cmp eax, dword [ebp + 0x10]
jb 0x1024c93
jmp 0x1024d75
push ecx
lea ecx, [ebp - 0x424]
push ecx
push dword [ebp + 0x10]
push edi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1024d69
mov eax, dword [ebp - 0x424]
and dword [ebp - 0x40c], 0
mov dword [ebp - 0x418], eax
jmp 0x1024d75
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x40c], eax
mov eax, dword [ebp - 0x418]
test eax, eax
jne 0x1024de4
cmp dword [ebp - 0x40c], eax
je 0x1024db4
push 5
pop esi
cmp dword [ebp - 0x40c], esi
jne 0x1024da6
call fcn.010249b4
mov dword [eax], 9
call fcn.010249c2
mov dword [eax], esi
jmp 0x1024ddf
push dword [ebp - 0x40c]
call fcn.010249d0
pop ecx
jmp 0x1024ddf
mov edi, dword [ebp - 0x420]
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x1024dcc
cmp byte [edi], 0x1a
jne 0x1024dcc
xor eax, eax
jmp 0x1024dea
call fcn.010249b4
mov dword [eax], 0x1c
call fcn.010249c2
and dword [eax], 0
or eax, 0xffffffff
jmp 0x1024dea
sub eax, dword [ebp - 0x41c]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
pop edi
call fcn.0101d2f1
leave
ret
Function at 0x1027bc5
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
push edi
push 4
pop eax
call fcn.0101e440
mov ebx, esp
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x1027c2b
mov edi, dword [ebp - 0x1c]
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [0x109036c]
mov esi, dword [ebp - 0x40]
mov ecx, eax
dec ecx
neg ecx
sbb ecx, ecx
lea edx, [esi - 1]
and ecx, 0x103
not edx
and edx, ebx
inc ecx
sub edx, esi
dec eax
neg eax
sbb eax, eax
and eax, 0xfffffff1
add eax, 0x11
imul eax, esi
add eax, edi
cmp edx, eax
jae 0x1027c2f
xor eax, eax
jmp 0x1027c3c
lea eax, [ebp - 4]
push eax
push ecx
push esi
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x50]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1028652
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x1003ff8
call fcn.0101de00
xor edi, edi
xor ebx, ebx
inc ebx
cmp dword [0x1090900], edi
jne 0x1028696
push edi
push edi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1028681
mov dword [0x1090900], ebx
jmp 0x1028696
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x1028696
mov dword [0x1090900], 2
mov eax, dword [0x1090900]
cmp eax, ebx
jne 0x10286b6
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
jmp 0x1028779
cmp eax, 2
je 0x10286bf
cmp eax, edi
jne 0x10286e7
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x24], edi
cmp dword [ebp + 0x18], edi
jne 0x10286d2
mov eax, dword [0x10907f0]
mov dword [ebp + 0x18], eax
push edi
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov dword [ebp - 0x20], eax
cmp eax, edi
jne 0x10286ee
xor eax, eax
jmp 0x1028779
mov dword [ebp - 4], edi
add eax, 3
and eax, 0xfffffffc
call fcn.0101e440
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [ebp - 0x28], esi
or dword [ebp - 4], 0xffffffff
jmp 0x1028721
cmp esi, edi
jne 0x1028737
push dword [ebp - 0x20]
call fcn.0101e277
pop ecx
mov esi, eax
cmp esi, edi
je 0x10286e7
mov dword [ebp - 0x24], ebx
push dword [ebp - 0x20]
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x102876a
cmp dword [ebp + 0x14], edi
jne 0x1028754
push edi
push edi
jmp 0x102875a
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0xffffffffffffffff
push esi
push ebx
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x24], edi
je 0x1028776
push esi
call fcn.0101df5a
pop ecx
mov eax, dword [ebp - 0x1c]
lea esp, [ebp - 0x34]
call fcn.0101de3b
ret
Function at 0x1028787
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x1004008
call fcn.0101de00
xor esi, esi
cmp dword [0x1090904], esi
jne 0x10287cb
push esi
push esi
xor edi, edi
inc edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x10287b6
mov dword [0x1090904], edi
jmp 0x10287cb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x10287cb
mov dword [0x1090904], 2
mov eax, dword [0x1090904]
cmp eax, 2
je 0x10288ac
cmp eax, esi
je 0x10288ac
cmp eax, 1
jne 0x1028810
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], esi
cmp dword [ebp + 0x18], esi
jne 0x10287f9
mov eax, dword [0x10907f0]
mov dword [ebp + 0x18], eax
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov ebx, eax
mov dword [ebp - 0x24], ebx
cmp ebx, esi
jne 0x1028817
xor eax, eax
jmp 0x10288be
mov dword [ebp - 4], esi
lea eax, [ebx + ebx]
add eax, 3
and eax, 0xfffffffc
call fcn.0101e440
mov dword [ebp - 0x18], esp
mov edi, esp
mov dword [ebp - 0x28], edi
or dword [ebp - 4], 0xffffffff
jmp 0x102884d
cmp edi, esi
jne 0x1028868
lea eax, [ebx + ebx]
push eax
call fcn.0101e277
pop ecx
mov edi, eax
cmp edi, esi
je 0x1028810
mov dword [ebp - 0x20], 1
push ebx
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x102889b
push esi
push esi
cmp dword [ebp + 0x14], esi
jne 0x1028885
push esi
push esi
jmp 0x102888b
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0xffffffffffffffff
push edi
push esi
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x20], esi
je 0x10288a7
push edi
call fcn.0101df5a
pop ecx
mov eax, dword [ebp - 0x1c]
jmp 0x10288be
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
lea esp, [ebp - 0x34]
call fcn.0101de3b
ret
Function at 0x1028f2f
Capabilities:
Get system information on windows

Disassembly:
push 0x50
push 0x107e678
call fcn.0101de00
mov esi, ecx
mov dword [ebp - 0x28], esi
xor edi, edi
push edi
call fcn.01028eee
mov dword [ebp - 0x1c], edi
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_GetVersion]
test eax, eax
js 0x1028f8c
lea eax, [ebp - 0x1c]
push eax
push edi
push 6
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenThreadToken]
cmp dword [ebp - 0x1c], edi
je 0x1028f8c
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
test eax, eax
jne 0x1028f8c
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x1c], edi
jmp 0x10290c7
push dword [ebp + 8]
push dword [ebp + 0xc]
push edi
push 0x4000004
push edi
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov dword [esi + 0x24], eax
cmp eax, edi
je 0x10290c7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x20], eax
push edi
push edi
push edi
push 0xf001f
push dword [esi + 0x24]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [esi + 0x2c], eax
cmp eax, edi
je 0x10290c7
lea eax, [ebp - 0x60]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov edi, 0x448
cmp dword [ebp - 0x20], 0xb7
jne 0x102906f
mov eax, dword [esi + 0x2c]
mov dword [esi + 0x1c], eax
push edi
push eax
mov ebx, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
call ebx
test eax, eax
jne 0x10290c5
mov eax, dword [esi + 0x1c]
mov eax, dword [eax + 0x438]
mov dword [ebp - 0x2c], eax
push edi
push eax
call ebx
test eax, eax
jne 0x10290c5
mov eax, dword [esi + 0x1c]
mov ecx, dword [eax + 0x438]
mov dword [ebp - 0x30], ecx
push dword [eax + 0x414]
push ecx
push dword [esi + 0x2c]
call sub.ntdll.dll_memcmp
add esp, 0xc
test eax, eax
jne 0x10290c5
mov eax, dword [esi + 0x1c]
mov dword [ebp - 0x34], eax
inc dword [eax + 0x434]
mov eax, dword [esi + 0x1c]
mov eax, dword [eax + 0x438]
mov dword [ebp - 0x38], eax
mov dword [esi + 0x1c], eax
push dword [esi + 0x2c]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [esi + 0x1c]
mov dword [esi + 0x2c], eax
jmp 0x10290bb
mov ebx, dword [ebp - 0x5c]
mov dword [ebp - 0x24], ebx
cmp ebx, edi
jae 0x102907e
add ebx, dword [ebp - 0x5c]
jmp 0x1029072
push 4
push 0x1000
push ebx
push dword [esi + 0x2c]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
je 0x10290c5
mov ecx, dword [esi + 0x2c]
mov dword [ebp - 0x3c], ecx
test ecx, ecx
je 0x10290a7
push dword [ebp + 0xc]
call fcn.01029311
jmp 0x10290a9
xor eax, eax
mov dword [esi + 0x1c], eax
mov dword [eax + 0x414], ebx
mov eax, dword [esi + 0x1c]
mov dword [eax + 0x41c], edi
mov eax, dword [ebp - 0x5c]
mov dword [esi + 0x20], eax
mov byte [esi + 0x28], 1
xor edi, edi
or dword [ebp - 4], 0xffffffff
call fcn.010290e0
mov al, byte [esi + 0x28]
call fcn.0101de3b
ret 8
Function at 0x102a1c7
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x1076818
call fcn.0101eabc
sub esp, 0x20
mov eax, dword [ebp + 0x10]
push esi
push edi
mov esi, ecx
mov dword [ebp - 0x14], eax
mov eax, dword [esi + 0x44]
lea edx, [ebp - 0x1c]
push edx
add eax, 0xc
push 0x1004424
mov word [ebp - 0x1c], 0xd
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
push dword [ebp + 8]
lea ecx, [ebp - 0x2c]
call fcn.01029c89
mov eax, dword [esi + 0x44]
and dword [ebp - 4], 0
lea edx, [ebp - 0x2c]
push edx
add eax, 0xc
mov ecx, dword [eax]
push 0x100440c
push eax
call dword [ecx + 0x18]
mov edi, dword [sym.imp.OLEAUT32.dll_VariantClear]
lea eax, [ebp - 0x1c]
push eax
call edi
mov eax, dword [esi + 0x18]
mov dword [ebp - 0x14], eax
mov eax, dword [esi + 0x44]
lea edx, [ebp - 0x1c]
push edx
add eax, 0xc
push 0x10043f0
mov word [ebp - 0x1c], 0x4000
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
lea eax, [ebp - 0x1c]
push eax
call edi
mov eax, dword [esi + 0x30]
mov ecx, eax
inc ecx
neg ecx
sbb ecx, ecx
and ecx, eax
mov eax, dword [esi + 0x44]
lea edx, [ebp - 0x1c]
push edx
add eax, 0xc
push 0x10043cc
mov word [ebp - 0x1c], 0x4000
mov dword [ebp - 0x14], ecx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
lea eax, [ebp - 0x1c]
push eax
call edi
mov eax, dword [ebp + 0xc]
mov esi, dword [esi + 0x44]
lea edx, [ebp - 0x1c]
push edx
mov dword [ebp - 0x14], eax
lea eax, [esi + 0xc]
push 0x10043b4
mov word [ebp - 0x1c], 0x13
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 0xc

Function at 0x102aad2
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
mov eax, 0x10769aa
call fcn.0101eabc
sub esp, 0x470
mov eax, dword [0x108e558]
and dword [ebp - 4], 0
and dword [ebp - 0x470], 0
push ebx
push esi
push edi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], esp
mov byte [ebp - 4], 1
call fcn.0102a92d
lea ecx, [ebp - 0x470]
mov esi, eax
call fcn.0101cbe9
push str..TMP
push 0x108f22c
push esi
mov dword [ebp - 0x470], esi
push 0x1004574
mov esi, 0x104
lea eax, [ebp - 0x21c]
push esi
push eax
call fcn.01019e51
add esp, 0x18
test eax, eax
jge 0x102ab50
push 0x3d6
push 0x1004468
push eax
call fcn.0105c842
lea eax, [ebp - 0x46c]
push eax
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x102abb7
lea eax, [ebp - 0x440]
push eax
push dword [ebp - 0x470]
lea eax, [ebp - 0x21c]
push 0x1004568
push esi
push eax
call fcn.01019e51
add esp, 0x14
test eax, eax
jl 0x102ab9e
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x46c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x102ab6b
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [ebp - 0x470]
call fcn.0101cbe9
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
call fcn.0101d2f1
pop edi
pop esi
pop ebx
leave
ret