joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1003d82f
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x42c
mov eax, dword [0x100410f8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x424], edx
push edi
mov dword [ebp - 0x41c], esi
mov edi, 0x80004005
mov dword [ebp - 0x42c], 0x1000ccd8
xor ebx, ebx
mov dword [ebp - 0x428], 0x1000ccf4
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call sub.msvcrt.dll_memset
and dword [ebp - 0x418], 0
lea eax, [ebp - 0x418]
add esp, 0xc
push eax
mov eax, dword [esi + 4]
or eax, 1
push eax
push 0
push dword [ebp + ebx*4 - 0x42c]
push dword [esi]
call dword [sym.imp.api_ms_win_downlevel_advapi32_l1_1_0.dll_RegOpenKeyExW]
test eax, eax
jne 0x1003d94a
lea eax, [ebp - 0x420]
mov dword [ebp - 0x420], 0x208
push eax
lea eax, [ebp - 0x20c]
xor edi, edi
push eax
push edi
push 0x10000002
push 0x1000cd0c
push edi
push dword [ebp - 0x418]
call dword [sym.imp.api_ms_win_downlevel_advapi32_l1_1_0.dll_RegGetValueW]
mov esi, eax
test esi, esi
jne 0x1003d8f5
cmp word [ebp - 0x20c], di
jne 0x1003d920
lea eax, [ebp - 0x420]
mov dword [ebp - 0x420], 0x208
push eax
lea eax, [ebp - 0x20c]
push eax
push edi
push 2
push edi
push edi
push dword [ebp - 0x418]
call dword [sym.imp.api_ms_win_downlevel_advapi32_l1_1_0.dll_RegGetValueW]
mov esi, eax
push dword [ebp - 0x418]
call dword [sym.imp.api_ms_win_downlevel_advapi32_l1_1_0.dll_RegCloseKey]
mov eax, dword [ebp - 0x20c]
test esi, esi
jne 0x1003d943
test ax, ax
je 0x1003d943
mov esi, dword [ebp - 0x41c]
jmp 0x1003d950
mov edi, 0x80004005
jmp 0x1003d93b
mov eax, dword [ebp - 0x20c]
test edi, edi
jns 0x1003d960
inc ebx
cmp ebx, 2
jb 0x1003d870
jmp 0x1003d9df
and dword [ebp - 0x41c], 0
lea esi, [ebp - 0x20c]
cmp ax, 0x22
jne 0x1003d991
lea eax, [ebp - 0x41c]
push eax
lea esi, [ebp - 0x20a]
mov eax, esi
push 0x10005c78
push eax
call dword [sym.imp.msvcrt.dll_wcstok_s]
add esp, 0xc
mov ebx, 0x104
lea eax, [ebp - 0x414]
push ebx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
dec eax
push ebx
mov ebx, dword [ebp - 0x424]
push ebx
cmp eax, 0x102
ja 0x1003d9be
lea eax, [ebp - 0x414]
push eax
jmp 0x1003d9bf
push esi
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
mov edx, 0x104
cmp eax, edx
jbe 0x1003d9d3
push 8
pop edi
jmp 0x1003d9df
test eax, eax
jne 0x1003d9df
push esi
mov ecx, ebx
call fcn.1003b442
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000e130
leave
ret
Function at 0x44ed1c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404914
mov edi, dword [ebp + 8]
add edi, 0xffffff00
xor eax, eax
push ebp
push 0x44ee2e
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 0x83
xor ebx, ebx
xor esi, esi
mov eax, dword [ebp - 4]
call fcn.00404724
test eax, eax
jle 0x44edfd
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0xc], 1
mov eax, dword [ebp - 0x18]
add eax, 0x7d
xor edx, edx
push edx
push eax
lea eax, [ebx + 1]
cdq
call fcn.00405250
mov ebx, eax
mov eax, dword [ebp - 0x18]
add eax, 0x7d
xor edx, edx
push edx
push eax
xor eax, eax
mov al, byte [edi + ebx]
add eax, esi
cdq
call fcn.00405250
mov esi, eax
mov al, byte [edi + ebx]
mov dl, byte [edi + esi]
mov byte [edi + ebx], dl
mov byte [edi + esi], al
xor eax, eax
mov al, byte [edi + ebx]
xor edx, edx
mov dl, byte [edi + esi]
add eax, edx
mov edx, dword [ebp - 0x18]
add edx, 0x7d
mov ecx, edx
xor edx, edx
div ecx
mov al, byte [edi + edx]
mov byte [ebp - 0xd], al
lea eax, [ebp - 0x20]
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
mov dl, byte [edx + ecx - 1]
mov cl, byte [ebp - 0xd]
xor dl, cl
call fcn.0040464c
mov edx, dword [ebp - 0x20]
lea eax, [ebp - 0x14]
call fcn.0040472c
inc dword [ebp - 0xc]
dec dword [ebp - 0x1c]
jne 0x44ed77
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x14]
call fcn.004044b8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44ee35
lea eax, [ebp - 0x20]
call fcn.00404464
lea eax, [ebp - 0x14]
call fcn.00404464
lea eax, [ebp - 4]
call fcn.00404464
ret

Function at 0x44fc20
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
add esp, 0xfffffdf0
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00404b44
test esi, esi
jne 0x44fc57
push 0x20a
lea eax, [esp + 8]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
mov ecx, eax
lea edx, [esp + 4]
mov eax, ebx
call fcn.00404c30
jmp 0x44fc7e
call sub.kernel32.dll_GetCommandLineW
mov dword [esp], eax
mov edx, ebx
mov eax, dword [esp]
call fcn.0044f9f0
mov dword [esp], eax
test esi, esi
je 0x44fc7e
mov eax, dword [ebx]
xor edx, edx
call fcn.00404cbc
je 0x44fc7e
dec esi
jmp 0x44fc5f
add esp, 0x210
pop esi
pop ebx
ret

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x408ecc
mov ecx, 0x286f3e54
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43004e
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x430024
mov eax, section..data
nop
mov ebx, 0x42e1d0
nop
nop
mov ecx, 0x305d670b
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x430084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x1010c5a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x1010cb3
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x1010ca5
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x1010ca1
cmp esi, eax
jae 0x1010ca5
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x1010c93
cmp esi, eax
jb 0x1010ca9
xor eax, eax
jmp 0x1010cb2
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop ebp
ret 0xc

Function at 0x101457d
Capabilities:
Shutdown system

Disassembly:
mov edi, edi
push esi
mov esi, ecx
lea ecx, [esi + 0x28]
call fcn.01025265
add esi, 0x375c
cmp byte [esi], 0
je 0x10145a5
push 0x50013
push 0x12
call dword [sym.imp.USER32.dll_ExitWindowsEx]
mov byte [esi], 0
pop esi
ret
Function at 0x1016b7b
Capabilities:
Hide graphical window

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov esi, ecx
mov eax, dword [0x107d1a4]
mov edi, dword [ebp + 0xc]
cmp eax, 0x107d1a4
je 0x1016bc4
test byte [eax + 0x1c], 4
je 0x1016bc4
movzx ecx, byte [ebp + 8]
push edi
push ecx
push dword [esi + 0x8b8]
push dword [esi + 0x8b4]
push dword [esi + 0x8b0]
push 0x1002790
push 0x16
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01014159
mov eax, edi
dec eax
je 0x1016bfa
dec eax
je 0x1016be4
dec eax
jne 0x1016c17
cmp byte [ebp + 8], al
je 0x1016bdc
inc dword [esi + 0x8b8]
jmp 0x1016c17
lea eax, [esi + 0x8b8]
jmp 0x1016c0e
cmp byte [ebp + 8], 0
je 0x1016bf2
inc dword [esi + 0x8b4]
jmp 0x1016c17
lea eax, [esi + 0x8b4]
jmp 0x1016c0e
cmp byte [ebp + 8], 0
je 0x1016c08
inc dword [esi + 0x8b0]
jmp 0x1016c17
lea eax, [esi + 0x8b0]
mov ecx, dword [eax]
test ecx, ecx
jle 0x1016c17
dec ecx
mov dword [eax], ecx
xor ebx, ebx
xor eax, eax
cmp dword [esi + 0x8b4], ebx
jg 0x1016c4a
cmp dword [esi + 0x8b0], ebx
jg 0x1016c5a
cmp dword [esi + 0x8b8], ebx
jg 0x1016c4a
push ebx
push ebx
push 0x466
push dword [esi + 0x8e4]
call dword [sym.imp.USER32.dll_SendMessageW]
xor eax, eax
jmp 0x1016c6d
cmp dword [esi + 0x8b0], ebx
jg 0x1016c5a
cmp dword [esi + 0x8b8], ebx
jle 0x1016c6d
push 0xffffffffffffffff
push 0xffffffffffffffff
push ebx
lea ecx, [esi + 0x8e4]
call fcn.01014609
push 5
pop eax
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
push eax
push dword [esi + 0x8e4]
call ebx
cmp byte [ebp + 8], 0
mov dword [ebp + 0xc], 0x498
je 0x1016c9b
mov eax, edi
dec eax
je 0x1016ca4
dec eax
dec eax
jne 0x1016cbd
mov dword [ebp + 0xc], 0x17dc
jmp 0x1016cc2
cmp dword [esi + 0x8b0], 0
jle 0x1016cad
mov dword [ebp + 0xc], 0x6c
jmp 0x1016cbd
cmp dword [esi + 0x8b8], 0
jle 0x1016cbd
mov dword [ebp + 0xc], 0x17dc
cmp edi, 2
je 0x1016d1e
push 0
lea edi, [esi + 0x8bc]
push dword [edi]
call ebx
push dword [ebp + 0xc]
push edi
call fcn.01011cb6
mov dword [ebp + 8], eax
test eax, eax
jge 0x1016d18
mov eax, dword [0x107d1a4]
cmp eax, 0x107d1a4
je 0x1016d05
test byte [eax + 0x1c], 1
je 0x1016d05
push dword [ebp + 8]
push 0x1002790
push 0x17
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01035c59
push 0x10
push 0
push 0x8e
push dword [ebp + 8]
mov ecx, esi
call fcn.010169f3
push 5
push dword [edi]
call ebx
mov ecx, esi
call fcn.01014fb0
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x101a17f
Capabilities:
Hide graphical window

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 8], 0
push esi
push edi
mov esi, ecx
mov edi, dword [esi + 0x372c]
push 0
push 1
mov dword [ebp - 4], edi
call fcn.01019a23
test eax, eax
jne 0x101a3c2
cmp byte [esi + 0x3730], al
jne 0x101a3c2
push ebx
mov ebx, dword [sym.imp.USER32.dll_IsWindow]
test edi, edi
je 0x101a1d1
push dword [edi + 4]
call ebx
test eax, eax
je 0x101a1d1
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x18]
jmp 0x101a1d4
xor eax, eax
inc eax
test eax, eax
je 0x101a3c1
push dword [0x107d5ac]
mov edi, dword [sym.imp.SHLWAPI.dll_StrCmpIW]
push dword [ebp + 8]
call edi
test eax, eax
jne 0x101a1fc
lea eax, [esi + 0x2bbc]
jmp 0x101a31a
push dword [0x107d5b0]
push dword [ebp + 8]
call edi
test eax, eax
jne 0x101a216
lea eax, [esi + 0x2d88]
jmp 0x101a31a
push dword [0x107d5a4]
push dword [ebp + 8]
call edi
test eax, eax
je 0x101a314
push dword [0x107d5a8]
push dword [ebp + 8]
call edi
test eax, eax
jne 0x101a243
lea eax, [esi + 0x960]
jmp 0x101a31a
push dword [0x107d5b4]
push dword [ebp + 8]
call edi
test eax, eax
jne 0x101a25d
lea eax, [esi + 0x1438]
jmp 0x101a31a
push dword [0x107d5b8]
push dword [ebp + 8]
call edi
test eax, eax
jne 0x101a277
lea eax, [esi + 0x18c4]
jmp 0x101a31a
push dword [0x107d5bc]
push dword [ebp + 8]
call edi
test eax, eax
jne 0x101a291
lea eax, [esi + 0x1d50]
jmp 0x101a31a
push dword [0x107d5c0]
push dword [ebp + 8]
call edi
test eax, eax
jne 0x101a2a8
lea eax, [esi + 0x27a0]
jmp 0x101a31a
push dword [0x107d5c4]
push dword [ebp + 8]
call edi
test eax, eax
jne 0x101a2bf
lea eax, [esi + 0x2310]
jmp 0x101a31a
push dword [0x107d5c8]
push dword [ebp + 8]
call edi
test eax, eax
jne 0x101a2d6
lea eax, [esi + 0x311c]
jmp 0x101a31a
push dword [0x107d5cc]
push dword [ebp + 8]
call edi
test eax, eax
jne 0x101a2ed
lea eax, [esi + 0x33bc]
jmp 0x101a31a
mov eax, dword [0x107d1a4]
cmp eax, 0x107d1a4
je 0x101a314
test byte [eax + 0x1c], 1
je 0x101a314
push dword [ebp + 8]
push 0x1002790
push 0x14
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100e27d
lea eax, [esi + 0xaf4]
mov dword [esi + 0x372c], eax
test eax, eax
je 0x101a3c1
push dword [eax + 4]
call ebx
mov ecx, dword [esi + 0x372c]
mov edi, eax
mov eax, dword [ecx]
neg edi
sbb edi, edi
neg edi
call dword [eax + 0x14]
mov eax, dword [esi + 0x372c]
add eax, 4
push dword [eax]
call ebx
test eax, eax
je 0x101a365
mov eax, dword [ebp - 4]
cmp eax, dword [esi + 0x372c]
je 0x101a365
mov dword [ebp - 8], 1
jmp 0x101a369
and dword [ebp - 8], 0
mov eax, dword [esi + 0x372c]
add eax, 4
push dword [eax]
call ebx
test eax, eax
je 0x101a3b0
mov eax, dword [ebp - 4]
test eax, eax
je 0x101a398
push dword [eax + 4]
call ebx
test eax, eax
je 0x101a398
mov eax, dword [ebp - 4]
push 0
push dword [eax + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [esi + 0x372c]
push 5
push dword [eax + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, esi
call fcn.01015014
test edi, edi
jne 0x101a3c1
mov esi, dword [esi + 0x372c]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x1c]
pop ebx
mov eax, dword [ebp - 8]
pop edi
pop esi
leave
ret 4
Function at 0x101dcf4
Capabilities:
Get disk size

Disassembly:
push 0x50
mov eax, 0x106eb8a
call fcn.0100dba4
mov eax, dword [0x107d1a4]
mov esi, 0x107d1a4
mov ebx, 0x1002af0
cmp eax, esi
je 0x101dd2a
test byte [eax + 0x1c], 4
je 0x101dd2a
push dword [ebp + 8]
push ebx
push 0xa
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100e27d
and dword [ebp - 0x10], 0
push dword [ebp + 8]
and dword [ebp - 4], 0
lea eax, [ebp - 0x10]
push 0x1002bd4
push eax
call fcn.01057279
mov edi, eax
add esp, 0xc
test edi, edi
jge 0x101dd62
cmp dword [ebp - 0x10], 0
je 0x101dd5b
push dword [ebp - 0x10]
call fcn.0100d695
pop ecx
mov eax, edi
jmp 0x101decd
push dword [ebp - 0x10]
call fcn.0105642d
mov edi, eax
xor eax, eax
cmp edi, eax
jge 0x101dd77
cmp dword [ebp - 0x10], eax
jmp 0x101dd50
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x14], eax
push dword [ebp - 0x10]
lea eax, [ebp - 0x14]
push eax
mov byte [ebp - 4], 1
call fcn.01057b0a
mov edi, eax
test edi, edi
jge 0x101dda4
cmp dword [ebp - 0x14], 0
je 0x101dd4c
push dword [ebp - 0x14]
call fcn.0100d695
pop ecx
jmp 0x101dd4c
push dword [ebp - 0x14]
lea eax, [ebp - 0x5c]
push eax
call fcn.01057a82
mov edi, eax
xor ecx, ecx
cmp edi, ecx
jge 0x101ddcd
cmp dword [ebp - 0x14], ecx
je 0x101ddc8
push dword [ebp - 0x14]
call fcn.0100d695
pop ecx
xor ecx, ecx
cmp dword [ebp - 0x10], ecx
jmp 0x101dd50
mov eax, dword [ebp - 0x54]
sub eax, 0x50000
je 0x101de27
dec eax
je 0x101de1e
dec eax
je 0x101de15
sub eax, 0xfffe
je 0x101de0c
cmp dword [ebp - 0x14], ecx
je 0x101ddf4
push dword [ebp - 0x14]
call fcn.0100d695
pop ecx
xor ecx, ecx
cmp dword [ebp - 0x10], ecx
je 0x101de02
push dword [ebp - 0x10]
call fcn.0100d695
pop ecx
mov eax, 0x80070032
jmp 0x101decd
mov dword [ebp - 0x18], 4
jmp 0x101de2e
mov dword [ebp - 0x18], 3
jmp 0x101de2e
mov dword [ebp - 0x18], 2
jmp 0x101de2e
mov dword [ebp - 0x18], 1
push ecx
lea eax, [ebp - 0x28]
push eax
push ecx
push dword [ebp + 8]
mov dword [ebp - 0x20], ecx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
jne 0x101de75
call fcn.01056967
mov ecx, dword [0x107d1a4]
cmp ecx, esi
je 0x101de6b
test byte [ecx + 0x1c], 2
je 0x101de6b
push eax
push dword [ebp + 8]
push ebx
push 0xb
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.0101d10a
xor edi, edi
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x24], edi
jmp 0x101de77
xor edi, edi
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 0x1c], edi
call fcn.0101dbd8
mov esi, eax
cmp esi, edi
jge 0x101dea7
mov ecx, dword [ebp - 0x1c]
cmp ecx, edi
je 0x101deaf
call fcn.01013aed
jmp 0x101deaf
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
cmp dword [ebp - 0x14], edi
je 0x101debd
push dword [ebp - 0x14]
call fcn.0100d695
pop ecx
cmp dword [ebp - 0x10], edi
je 0x101decb
push dword [ebp - 0x10]
call fcn.0100d695
pop ecx
mov eax, esi
call fcn.0100dc90
ret 8
Function at 0x101e5cf
Capabilities:
Get common file path
Get disk information

Disassembly:
push 0x22c
mov eax, 0x106ec5d
call fcn.0100dc17
mov eax, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0x234], eax
mov byte [ebp - 0x222], 0
mov dword [ebp - 0x22c], edi
mov dword [ebp - 0x238], edi
mov dword [ebp - 0x228], edi
push 0x20019
push 0x1002c60
push 0x80000002
lea eax, [ebp - 0x228]
push eax
mov dword [ebp - 4], edi
call fcn.010576ef
mov esi, eax
cmp esi, edi
mov ebx, 0x1002af0
jge 0x101e64d
mov eax, dword [0x107d1a4]
cmp eax, 0x107d1a4
je 0x101e692
test byte [eax + 0x1c], 2
je 0x101e692
push ebx
push 0xd
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101099b
jmp 0x101e692
push 0x104
lea eax, [ebp - 0x220]
push eax
mov byte [ebp - 0x222], 1
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
jne 0x101e696
call fcn.01056967
mov ecx, dword [0x107d1a4]
cmp ecx, 0x107d1a4
je 0x101e692
test byte [ecx + 0x1c], 2
je 0x101e692
push eax
push ebx
push 0xe
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.01035c59
xor esi, esi
jmp 0x101e6a3
movzx eax, word [ebp - 0x220]
mov dword [ebp - 0x22c], eax
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov dword [ebp - 0x230], eax
cmp eax, edi
jne 0x101e6e6
call fcn.01056967
mov esi, eax
mov eax, dword [0x107d1a4]
cmp eax, 0x107d1a4
je 0x101e6db
test byte [eax + 0x1c], 1
je 0x101e6db
push esi
push ebx
push 0xf
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01035c59
cmp dword [ebp - 0x228], edi
jmp 0x101e7a4
push 0x41
mov byte [ebp - 0x221], 0x41
pop edi
mov eax, dword [ebp - 0x230]
lea ecx, [edi - 0x41]
shr eax, cl
test al, 1
je 0x101e789
cmp byte [ebp - 0x222], 0
je 0x101e71d
movzx ax, byte [ebp - 0x221]
cmp word [ebp - 0x22c], ax
je 0x101e789
push edi
push 0x1002c54
lea eax, [ebp - 0x18]
push 4
push eax
call fcn.0101139d
add esp, 0x10
lea eax, [ebp - 0x18]
push eax
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
sub eax, esi
je 0x101e789
dec eax
je 0x101e789
dec eax
je 0x101e789
dec eax
je 0x101e74d
dec eax
jmp 0x101e789
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x234]
call fcn.0101e4f3
mov esi, eax
test esi, esi
jge 0x101e789
mov eax, dword [0x107d1a4]
cmp eax, 0x107d1a4
je 0x101e787
test byte [eax + 0x1c], 2
je 0x101e787
push esi
lea ecx, [ebp - 0x18]
push ecx
push ebx
push 0x10
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101d10a
xor esi, esi
inc byte [ebp - 0x221]
inc edi
cmp byte [ebp - 0x221], 0x5a
jbe 0x101e6f0
cmp dword [ebp - 0x228], 0
je 0x101e7b2
push dword [ebp - 0x228]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
call fcn.0100dca9
ret 4
Function at 0x101ea79
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x107d044]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0x18]
xor esi, esi
test byte [ebp + 0xc], 0x30
mov dword [ebp - 0x2c], eax
jne 0x101eb32
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
push 0x10
pop esi
push esi
lea eax, [ebp - 0x24]
push eax
push 0x58
push dword [ebp + 8]
call edi
test eax, eax
je 0x101eb31
test dword [ebp - 0x16], 0x800
je 0x101eb31
push 2
lea eax, [ebp - 0x28]
push eax
push 0x20001009
push dword [ebp + 8]
call edi
test eax, eax
je 0x101eb31
test byte [ebp + 0xc], 0xb
jne 0x101eaed
test ebx, ebx
jne 0x101eaed
or dword [ebp + 0xc], 1
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
and eax, 0x3ff
cmp ax, 0xd
jne 0x101eb0d
test byte [ebp + 0xc], 1
je 0x101eb2e
cmp dword [ebp - 0x28], 8
jmp 0x101eb2c
mov eax, dword [ebp - 0x28]
cmp eax, 1
je 0x101eb2e
cmp eax, 6
je 0x101eb2e
cmp eax, 0x17
je 0x101eb2e
cmp eax, 0xa
je 0x101eb2e
cmp eax, 0xb
je 0x101eb2e
cmp eax, 0xc
jne 0x101eb31
push 0x20
pop esi
pop edi
push dword [ebp + 0x1c]
or esi, dword [ebp + 0xc]
push dword [ebp - 0x2c]
push ebx
push dword [ebp - 0x30]
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetDateFormatW]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0100db8f
leave
ret 0x18
Function at 0x101ee54
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x23c
mov eax, dword [0x107d044]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
and dword [ebp - 0x23c], 0
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
push 7
pop ecx
mov dword [ebp - 0x218], eax
xor eax, eax
push 0x206
lea edi, [ebp - 0x238]
push eax
rep stosd dword es:[edi], eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call sub.msvcrt.dll_memset
xor edi, edi
add esp, 0xc
mov dword [ebp - 0x214], edi
cmp dword [ebp - 0x218], edi
jne 0x101eeca
mov dword [ebp - 0x210], 0x80070057
jmp 0x101efc1
lea eax, [ebp - 0x214]
push eax
push edi
push edi
push 0x11
push esi
call dword [sym.imp.SHELL32.dll_SHGetFolderLocation]
cmp eax, edi
mov dword [ebp - 0x210], eax
jl 0x101efa2
mov eax, dword [ebp - 0x214]
mov dword [ebp - 0x238], eax
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x23c], esi
mov dword [ebp - 0x234], eax
mov dword [ebp - 0x230], ebx
mov dword [ebp - 0x22c], 0x20b
cmp dword [ebp + 0xc], edi
je 0x101ef27
mov dword [ebp - 0x22c], 0x420b
lea eax, [ebp - 0x23c]
push eax
call dword [sym.imp.SHELL32.dll_SHBrowseForFolderW]
mov ebx, eax
cmp ebx, edi
jne 0x101ef46
mov dword [ebp - 0x210], 1
jmp 0x101efa4
lea eax, [ebp - 0x20c]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
jne 0x101ef88
mov dword [ebp - 0x210], 0x800700a1
mov eax, dword [0x107d1a4]
cmp eax, 0x107d1a4
je 0x101efa4
test byte [eax + 0x1c], 1
je 0x101efa4
push 0x1002cc0
push 0x12
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101099b
jmp 0x101efa4
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x218]
call fcn.01011fe0
mov dword [ebp - 0x210], eax
jmp 0x101efa4
mov ebx, edi
mov esi, dword [sym.imp.ole32.dll_CoTaskMemFree]
cmp dword [ebp - 0x214], edi
je 0x101efba
push dword [ebp - 0x214]
call esi
cmp ebx, edi
je 0x101efc1
push ebx
call esi
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x210]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0100db8f
leave
ret 0x10
Function at 0x101f07c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
cmp dword [esi + 0x18], ebx
jne 0x101f093
inc ebx
jmp 0x101f1a1
movzx eax, word [ebp + 0x10]
push edi
push dword [ebp + 0x14]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
cmp edi, ebx
jne 0x101f0dc
call fcn.01056967
mov dword [esi + 0x18], eax
mov ebx, eax
mov eax, dword [0x107d1a4]
cmp eax, 0x107d1a4
je 0x101f1a0
test byte [eax + 0x1c], 1
je 0x101f1a0
push ebx
push 0x1002d30
push 0xa
jmp 0x101f186
push edi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [esi + 4], eax
test eax, eax
jne 0x101f11b
call fcn.01056967
mov dword [esi + 0x18], eax
mov ebx, eax
mov eax, dword [0x107d1a4]
cmp eax, 0x107d1a4
je 0x101f1a0
test byte [eax + 0x1c], 1
je 0x101f1a0
push ebx
push 0x1002d30
push 0xb
jmp 0x101f186
push edi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [esi + 8], eax
test eax, eax
jne 0x101f152
call fcn.01056967
mov dword [esi + 0x18], eax
mov ebx, eax
mov eax, dword [0x107d1a4]
cmp eax, 0x107d1a4
je 0x101f1a0
test byte [eax + 0x1c], 1
je 0x101f1a0
push ebx
push 0x1002d30
push 0xc
jmp 0x101f186
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [esi + 0xc], eax
test eax, eax
jne 0x101f193
mov ecx, 0x80004003
mov dword [esi + 0x18], ecx
mov ebx, ecx
mov eax, dword [0x107d1a4]
cmp eax, 0x107d1a4
je 0x101f1a0
test byte [eax + 0x1c], 1
je 0x101f1a0
push ecx
push 0x1002d30
push 0xd
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01035c59
jmp 0x101f1a0
and dword [esi + 0x18], ebx
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 1
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret 0x10

Function at 0x101f1e4
Capabilities:
Create process on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x3c
push esi
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x101f1fa
cmp word [esi], 0
jne 0x101f1fc
xor esi, esi
push 0x3c
lea eax, [ebp - 0x3c]
push 0
push eax
call sub.msvcrt.dll_memset
mov eax, dword [ebp + 8]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x2c], eax
add esp, 0xc
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x28], esi
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov esi, eax
test esi, esi
jne 0x101f25e
call fcn.01056967
mov ecx, dword [0x107d1a4]
cmp ecx, 0x107d1a4
je 0x101f25e
test byte [ecx + 0x1c], 1
je 0x101f25e
push eax
push 0x1002cc0
push 0xa
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.01035c59
mov eax, esi
pop esi
leave
ret 0xc