joyce8/EMBER2024-capa huggingface dataset:
Function at 0xccb000
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x9f6015
lea edi, [esi - 0x5f5015]
push edi
or ebp, 0xffffffff
jmp 0xccb022
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0xccb029
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xccb018
mov eax, 1
add ebx, ebx
jne 0xccb03b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0xccb04c
jne 0xccb06b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xccb06b
dec eax
add ebx, ebx
jne 0xccb058
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0xccb030
add ebx, ebx
jne 0xccb067
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0xccb0bd
xor ecx, ecx
sub eax, 3
jb 0xccb083
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0xccb0f2
sar eax, 1
mov ebp, eax
jmp 0xccb08e
add ebx, ebx
jne 0xccb08e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xccb05c
inc ecx
add ebx, ebx
jne 0xccb09c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xccb05c
add ebx, ebx
jne 0xccb0a9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0xccb09e
jne 0xccb0ba
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0xccb09e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0xccb0dc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0xccb0ce
jmp 0xccb01e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0xccb0dc
add edi, ecx
jmp 0xccb01e
pop esi
mov edi, esi
mov ecx, 0x161d0
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0xccb0fa
cmp byte [edi], 0x55
jne 0xccb0fa
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0xccb0ff
lea edi, [esi + 0x8b1000]
mov eax, dword [edi]
or eax, eax
je 0xccb16e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x8cb000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x8cb028]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0xccb12c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x8cb030]
or eax, eax
je 0xccb168
mov dword [ebx], eax
add ebx, 4
jmp 0xccb149
call dword [esi + 0x8cb02c]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0xccb1a8
cmp al, 0xef
ja 0xccb192
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0xccb174
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
or eax, eax
jne 0xccb181
mov eax, dword [edi]
add edi, 4
jmp 0xccb181
mov ebp, dword [esi + 0x8cb034]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0xccb1dc
sub esp, 0xffffff80
jmp 0x461a00
Function at 0x41ac428
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x41ac42e
ret
Function at 0x403bf0
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Move file

Disassembly:
push ebp
push edi
mov edi, 1
push esi
push ebx
sub esp, 0x37c
mov eax, dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ebp, dword [esp + 0x390]
lea ebx, [esp + 0x28]
mov dword [esp + 0x18], eax
mov dword [esp], ebx
mov dword [esp + 4], ebp
call eax
mov eax, dword [sym.imp.KERNEL32.dll_lstrlenA]
sub esp, 8
mov dword [esp], ebx
mov dword [esp + 0x10], eax
call eax
mov esi, eax
sub eax, 2
sub esp, 4
cmp eax, 0xff
ja 0x403cdc
cmp byte [ebp + esi - 1], 0x5c
je 0x403dd4
mov eax, dword [sym.imp.KERNEL32.dll_lstrcatA]
mov dword [esp + 4], 0x407163
add esi, 1
mov dword [esp], ebx
mov dword [esp + 0x1c], eax
call eax
sub esp, 8
lea eax, [esp + 0x230]
mov dword [esp], ebx
xor edi, edi
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
sub esp, 8
cmp eax, 0xffffffff
mov dword [esp + 0x14], eax
mov byte [esp + esi + 0x28], 0
je 0x403cdc
lea ebp, [esp + 0x25c]
mov dword [esp], ebp
call dword [esp + 0x10]
add eax, esi
sub esp, 4
cmp eax, 0x103
jbe 0x403d20
mov edi, 1
lea eax, [esp + 0x230]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x14]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
sub esp, 8
test eax, eax
jne 0x403c95
mov eax, dword [esp + 0x14]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_FindClose]
sub esp, 4
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
sub esp, 4
test eax, eax
jne 0x403d0d
mov dword [esp + 8], 4
mov dword [esp + 4], 0
mov edi, 1
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
sub esp, 0xc
add esp, 0x37c
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret
lea eax, [esp + 0x12c]
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [esp + 0x18]
sub esp, 8
lea eax, [esp + 0x12c]
mov dword [esp + 4], ebp
mov dword [esp], eax
call dword [esp + 0x1c]
sub esp, 8
mov dword [esp + 4], 0x407166
mov dword [esp], ebp
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
sub esp, 8
test eax, eax
je 0x403cad
mov dword [esp + 4], 0x407168
mov dword [esp], ebp
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
sub esp, 8
test eax, eax
je 0x403cad
test byte [esp + 0x230], 0x10
lea eax, [esp + 0x12c]
mov dword [esp], eax
jne 0x403df2
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
sub esp, 4
test eax, eax
jne 0x403cad
lea eax, [esp + 0x12c]
mov dword [esp + 8], 4
mov dword [esp + 4], 0
mov edi, 1
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
sub esp, 0xc
jmp 0x403cad
mov eax, dword [sym.imp.KERNEL32.dll_lstrcatA]
mov dword [esp + 4], 0x407161
mov dword [esp], ebx
mov dword [esp + 0x1c], eax
call eax
sub esp, 8
jmp 0x403c67
call fcn.00403bf0
test eax, eax
mov eax, 1
cmove edi, eax
jmp 0x403cad
Function at 0x403ed0
Capabilities:
Delete file
Enumerate files on windows
Get common file path

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x36c
lea edi, [esp + 0x18]
mov dword [esp], 0x104
mov dword [esp + 4], edi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
sub esp, 8
mov ebx, eax
cmp byte [esp + eax + 0x17], 0x5c
je 0x403f12
mov dword [esp + 4], 0x40705c
mov dword [esp], edi
add ebx, 1
call dword [sym.imp.KERNEL32.dll_lstrcatA]
sub esp, 8
mov dword [esp + 4], str..ocra_delete_me
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
sub esp, 8
lea eax, [esp + 0x220]
mov dword [esp], edi
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
sub esp, 8
cmp eax, 0xffffffff
mov ebp, eax
je 0x403fde
mov byte [esp + ebx + 0x18], 0
lea ebx, [esp + 0x11c]
mov dword [esp + 4], edi
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
sub esp, 8
lea eax, [esp + 0x24c]
mov dword [esp], ebx
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
sub esp, 8
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
sub esp, 4
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
sub esp, 4
mov esi, eax
mov dword [esp], 0x40716b
call dword [sym.imp.KERNEL32.dll_lstrlenA]
sub esp, 4
sub esi, eax
mov byte [esp + esi + 0x11c], 0
mov dword [esp], ebx
call fcn.00403ea0
lea eax, [esp + 0x220]
mov dword [esp], ebp
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
sub esp, 8
test eax, eax
jne 0x403f54
mov dword [esp], ebp
call dword [sym.imp.KERNEL32.dll_FindClose]
sub esp, 4
add esp, 0x36c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x404580
Capabilities:
Create process on windows

Disassembly:
push edi
push esi
xor eax, eax
push ebx
mov ecx, 0x10
sub esp, 0x490
lea edx, [esp + 0x50]
mov ebx, dword [esp + 0x4a0]
lea esi, [esp + 0x4c]
mov dword [esp + 0x4c], 0x44
mov edi, edx
rep stosd dword es:[edi], eax
lea eax, [esp + 0x3c]
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x4a4]
mov dword [esp + 0x10], 1
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp], ebx
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
sub esp, 0x28
test eax, eax
je 0x404662
mov eax, dword [esp + 0x3c]
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
sub esp, 8
mov eax, dword [esp + 0x3c]
mov dword [esp + 4], 0x40a040
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
sub esp, 8
test eax, eax
je 0x4046c0
mov eax, dword [esp + 0x3c]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp], eax
call ebx
sub esp, 4
mov eax, dword [esp + 0x40]
mov dword [esp], eax
call ebx
sub esp, 4
add esp, 0x490
pop ebx
pop esi
pop edi
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0xc], ebx
lea ebx, [esp + 0x90]
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.Failed_to_create_process___s_:__lu
mov dword [esp + 4], 0x400
mov dword [esp], ebx
call dword [sym.imp.msvcrt.dll__snprintf]
mov dword [esp + 4], ebx
mov dword [esp + 0xc], 0x30
mov dword [esp + 8], str.OCRA
mov dword [esp], 0
call dword [sym.imp.USER32.dll_MessageBoxA]
sub esp, 0x10
add esp, 0x490
pop ebx
pop esi
pop edi
ret
lea ebx, [esp + 0x90]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 8], str.Failed_to_get_exit_status__error__lu_.
mov dword [esp + 0xc], eax
mov dword [esp + 4], 0x400
mov dword [esp], ebx
call dword [sym.imp.msvcrt.dll__snprintf]
mov dword [esp + 0xc], 0x30
mov dword [esp + 8], str.OCRA
mov dword [esp + 4], ebx
mov dword [esp], 0
call dword [sym.imp.USER32.dll_MessageBoxA]
sub esp, 0x10
jmp 0x40463a
Function at 0x405030
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x1b
mov dword [esp + 4], 1
lea ebx, [esp + 0x24]
mov dword [esp], str.Mingw_w64_runtime_failure:_n
add eax, 0x40
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
jmp fcn.00405090

Function at 0x405090
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
sub esp, 0x30
mov esi, dword [0x40a3c0]
test esi, esi
jle 0x405183
mov edi, dword [0x40a3c4]
xor ebx, ebx
lea edx, [edi + 0xc]
nop
mov ecx, dword [edx]
cmp ecx, eax
ja 0x4050c4
mov edi, dword [edx + 4]
add ecx, dword [edi + 8]
cmp eax, ecx
jb 0x40517c
add ebx, 1
add edx, 0x14
cmp ebx, esi
jne 0x4050b0
mov dword [esp], eax
mov esi, eax
call fcn.00405990
test eax, eax
mov edi, eax
je 0x4051c0
mov esi, dword [0x40a3c4]
lea ebx, [ebx + ebx*4]
shl ebx, 2
add esi, ebx
mov dword [esi + 0x10], eax
mov dword [esi], 0
call fcn.00405aa0
add eax, dword [edi + 0xc]
mov dword [esi + 0xc], eax
lea eax, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov eax, dword [0x40a3c4]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x4051a0
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x405175
sub eax, 4
and eax, 0xfffffffb
je 0x405175
add ebx, dword [0x40a3c4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
mov dword [ebx + 4], eax
mov dword [ebx + 8], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0x40
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
je 0x40518a
add dword [0x40a3c0], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
xor ebx, ebx
jmp 0x4050ce
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.00405030
mov eax, dword [0x40a3c4]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call fcn.00405030
mov dword [esp + 4], esi
mov dword [esp], str.Address__p_has_no_image_section
call fcn.00405030
Function at 0x405600
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x40a3d8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x40a3d0]
sub esp, 4
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test ebx, ebx
je 0x405655
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x40564e
test esi, esi
je 0x40564e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x405630
mov dword [esp], 0x40a3d8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x10022490
Capabilities:
Authenticate hmac
Check http status code
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80
mov eax, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov eax, dword [0x101bdbec]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0xc]
xor ecx, ecx
mov dword [esp], eax
mov dword [esp + 4], 0
mov dword [esp + 8], 8
call fcn.101650c0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
Function at 0x10038fe0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xa4
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
mov eax, dword [0x101b8548]
sub eax, dword [0x101b854c]
xor eax, 0x38ae393
imul eax, eax, 0xa7a34415
or eax, 0x37fc1d2b
xor eax, 0xe23d7830
and eax, 0x2193fc54
xor eax, 0x2c2b520
and eax, 0x8d690b7a
add eax, 0xd1893bb8
mov ecx, 0x3df507dc
xor edx, edx
div ecx
Function at 0x100ca620
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0x30]
xor edx, edx
inc edx
dec edx
mov eax, dword [eax + 0xc]
push ecx
pop ecx
mov eax, dword [eax + 0x14]
nop
mov eax, dword [eax]
mov eax, dword [eax]
push ebx
xor ebx, ebx
inc ebx
dec ebx
pop ebx
mov eax, dword [eax + 0x10]
ret
Function at 0x100ff0c0
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0x30]
push ecx
xor ecx, ecx
inc ecx
dec ecx
pop ecx
mov eax, dword [eax + 0xc]
push edx
xor edx, edx
sub edx, 0xffffffff
add edx, 1
pop edx
mov eax, dword [eax + 0x14]
push ebx
xor ebx, ebx
add ebx, 0
pop ebx
mov eax, dword [eax]
push esi
xor esi, esi
or esi, 0
pop esi
mov eax, dword [eax + 0x10]
ret
Function at 0x1017fd81
Capabilities:
Parse pe header

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

Function at 0x10189530
Capabilities:
Parse pe header

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

Function at 0x10189b09
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x101af0d8
push 0x101af0d0
push 0x101af0d8
push 0x1f
call fcn.1018a52a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10189b3d
push dword [ebp + 8]
mov ecx, esi
call dword [section..00cfg]
call esi
jmp 0x10189b43
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x10189b87
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x101af0fc
push 0x101af0f4
push 0x101af0fc
push 0x21
call fcn.1018a52a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10189bbe
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 0x10189bc6
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x101af110
push 0x101af108
push 0x101af110
push 0x22
call fcn.1018a52a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10189c00
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 0x101931a5
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x101bdbec]
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 0x101931f0
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.10193497
test al, al
jne 0x101931ea
sub edx, 2
cmp edx, edi
jne 0x101931d0
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x10193212
lea eax, [edi + 2]
cmp edx, eax
je 0x10193212
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.101930f1
add esp, 0x10
jmp 0x1019330c
push esi
lea ecx, [ebp - 0x255]
call fcn.10193497
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 0x10193255
push dword [ebp - 0x25c]
jmp 0x10193202
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 0x10193292
cmp word [ebp - 0x226], 0
je 0x101932b3
cmp word [ebp - 0x226], ax
jne 0x10193292
cmp word [ebp - 0x224], 0
je 0x101932b3
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.101930f1
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x101932ff
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x1019326c
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x101932e7
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x1019330c
push 0x101934d5
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.101a3b10
add esp, 0x10
jmp 0x101932dc
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.101626c6
leave
ret
Function at 0x10193e3d
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 0x10193eda
push ebx
push esi
call fcn.10193f40
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.10193d41
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x10193e87
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10193ed9
push edi
push eax
call fcn.1018db58
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x10193ea7
call fcn.1018c431
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10193ed8
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.10193d41
add esp, 0x20
test eax, eax
jne 0x10193ec6
push edi
call fcn.1018c431
jmp 0x10193ece
push ebx
call fcn.1018c431
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 0x10193edd
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x10193eee
pop esi
ret
push ebx
push edi
push esi
call fcn.10193f40
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.1018db58
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x10193f16
push ebx
push esi
push edi
call fcn.10164b40
add esp, 0xc
push 0
call fcn.1018c431
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x10193fe7
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10194276
Function at 0x1019f4a0
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x101bdbec]
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.1018ac69
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.1018ac69
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 0x1019f517
cmp word [ecx], dx
je 0x1019f517
mov eax, dword [0x101b3084]
push edi
dec eax
push eax
push 0x101b2f70
call fcn.1019f690
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x1019f58a
cmp word [eax], dx
je 0x1019f58a
mov eax, dword [edi]
test eax, eax
je 0x1019f53b
cmp word [eax], dx
je 0x1019f53b
lea eax, [ebp - 0x10]
push eax
call fcn.1019f6f1
jmp 0x1019f544
lea eax, [ebp - 0x10]
push eax
call fcn.1019f9df
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x1019f5b4
mov eax, dword [0x101b2f6c]
push dword [ebp - 0x14]
dec eax
push eax
push 0x101b2c60
call fcn.1019f690
add esp, 0xc
test al, al
je 0x1019f5b4
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x1019f57f
cmp word [eax], di
je 0x1019f57f
lea eax, [ebp - 0x10]
push eax
call fcn.1019f6f1
pop ecx
jmp 0x1019f5b6
lea eax, [ebp - 0x10]
push eax
call fcn.1019f9df
jmp 0x1019f57c
mov eax, dword [edi]
test eax, eax
je 0x1019f5a1
cmp word [eax], dx
je 0x1019f5a1
lea eax, [ebp - 0x10]
push eax
call fcn.1019fb13
pop ecx
jmp 0x1019f5b4
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 0x1019f67f
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.1019fc23
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x1019f67f
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x1019f67f
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x1019f67f
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x1019f60c
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.10189ef4
test ebx, ebx
je 0x1019f67a
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.10189ef4
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1019f67f
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 0x1019f67f
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.101a77b4
add esp, 0x10
xor eax, eax
inc eax
jmp 0x1019f681
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.101626c6
leave
ret