joyce8/EMBER2024-capa huggingface dataset:
Function at 0x101c564
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push esi
push edi
mov eax, dword [0x1025318]
mov esi, 0x1025318
cmp eax, esi
je 0x101c5a0
test dword [eax + 0x1c], 0x20000000
je 0x101c5a0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0x1003ad4
push 0xa
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101b80d
push 1
push 0x35
push 0x1003bec
lea ecx, [ebp - 0x2c]
call fcn.0101a2a6
xor edi, edi
push 0x40
mov dword [ebp - 8], edi
mov dword [ebp - 4], edi
pop eax
cmp dword [ebp + 8], edi
jne 0x101c5d1
mov dword [ebp - 0x2c], 0x80070057
mov word [ebp - 0x26], ax
jmp 0x101c748
mov word [ebp - 0x28], ax
mov eax, dword [ebp + 0xc]
push 0x41
cmp eax, edi
jne 0x101c5e1
pop eax
jmp 0x101c5c1
pop ecx
mov word [ebp - 0x28], cx
push 0x42
cmp dword [ebp + 0x10], edi
jbe 0x101c5de
pop ecx
mov word [ebp - 0x28], cx
xor ecx, ecx
mov dword [ebp - 0x2c], edi
mov word [eax], cx
mov dword [ebp - 4], 0x105
push ebx
mov eax, dword [ebp - 4]
add eax, eax
push eax
push dword [ebp - 8]
call dword [sym.imp.ole32.dll_CoTaskMemRealloc]
mov ebx, eax
push 0x4d
mov dword [ebp - 8], ebx
pop eax
cmp ebx, edi
je 0x101c671
mov word [ebp - 0x28], ax
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
mov dword [ebp - 0x2c], edi
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetVolumePathNamesForVolumeNameW]
cmp eax, edi
jne 0x101c6bf
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x101c64f
cmp eax, 0xea
jne 0x101c651
xor eax, eax
cmp eax, edi
jle 0x101c65f
and eax, 0xffff
or eax, 0x80070000
mov ecx, eax
cmp ecx, edi
push 0x57
mov dword [ebp - 0x2c], ecx
pop eax
jl 0x101c681
mov word [ebp - 0x28], ax
jmp 0x101c602
mov dword [ebp - 0x2c], 0x8007000e
mov word [ebp - 0x26], ax
jmp 0x101c747
mov word [ebp - 0x26], ax
mov eax, dword [0x1025318]
cmp eax, esi
je 0x101c747
test dword [eax + 0x1c], 0x2000000
je 0x101c747
push ecx
push dword [ebp + 8]
push 0x1001f30
push 0x1003ad4
push 0xb
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010090d1
jmp 0x101c747
or edi, 0xffffffff
cmp word [ebx], 0
mov ecx, ebx
je 0x101c6f4
mov eax, ecx
lea esi, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x101c6cf
sub eax, esi
sar eax, 1
cmp eax, edi
jae 0x101c6e5
mov edi, eax
mov ebx, ecx
lea ecx, [ecx + eax*2 + 2]
cmp word [ecx], 0
jne 0x101c6ca
mov esi, 0x1025318
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.0101a493
push 0x70
mov dword [ebp - 0x2c], eax
test eax, eax
pop eax
jge 0x101c743
mov word [ebp - 0x26], ax
mov eax, dword [0x1025318]
cmp eax, esi
je 0x101c747
test dword [eax + 0x1c], 0x2000000
je 0x101c747
push dword [ebp - 0x2c]
push dword [ebp + 0x10]
push ebx
push dword [ebp + 8]
push 0x1003bac
push 0x1003ad4
push 0xc
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101b8e4
jmp 0x101c747
mov word [ebp - 0x28], ax
pop ebx
push dword [ebp - 8]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov esi, dword [ebp - 0x2c]
lea ecx, [ebp - 0x2c]
call fcn.0101a57c
pop edi
mov eax, esi
pop esi
leave
ret 0xc
Function at 0x101ca79
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x64c
mov eax, dword [0x10253c0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov eax, dword [0x1025318]
cmp eax, 0x1025318
je 0x101cabc
test dword [eax + 0x1c], 0x20000000
je 0x101cabc
push ebx
push 0x1003ad4
push 0x18
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101a71e
push 1
push 0x327
push 0x1003d24
lea ecx, [ebp - 0x64c]
call fcn.0101a2a6
xor eax, eax
mov esi, 0x208
push esi
mov word [ebp - 0x210], ax
xor edi, edi
lea eax, [ebp - 0x20e]
push edi
push eax
call sub.msvcrt.dll_memset
xor eax, eax
push esi
mov word [ebp - 0x628], ax
lea eax, [ebp - 0x626]
push edi
push eax
call sub.msvcrt.dll_memset
xor eax, eax
push esi
mov word [ebp - 0x41c], ax
lea eax, [ebp - 0x41a]
push edi
push eax
call sub.msvcrt.dll_memset
add esp, 0x24
mov eax, 0x32e
cmp ebx, edi
jne 0x101cb41
mov dword [ebp - 0x64c], 0x80070057
mov word [ebp - 0x646], ax
jmp 0x101cc2d
mov word [ebp - 0x648], ax
mov esi, 0x105
push esi
lea eax, [ebp - 0x41c]
push eax
push ebx
mov dword [ebp - 0x64c], edi
call fcn.0101c769
mov dword [ebp - 0x64c], eax
cmp eax, edi
mov eax, 0x333
jl 0x101cb35
mov word [ebp - 0x648], ax
push esi
lea eax, [ebp - 0x210]
push eax
push 0x1003d04
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp eax, edi
jne 0x101cba0
call fcn.0101df05
mov dword [ebp - 0x64c], eax
mov eax, 0x33c
jmp 0x101cb35
mov ecx, 0x33c
cmp eax, esi
mov word [ebp - 0x648], cx
lea eax, [ecx + 1]
jbe 0x101cbc2
mov dword [ebp - 0x64c], 0x8007007a
jmp 0x101cb35
mov word [ebp - 0x648], ax
push esi
lea eax, [ebp - 0x628]
push eax
lea eax, [ebp - 0x210]
push eax
mov dword [ebp - 0x64c], edi
call fcn.0101c769
mov dword [ebp - 0x64c], eax
cmp eax, edi
mov eax, 0x33f
jl 0x101cb35
mov word [ebp - 0x648], ax
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x628]
push eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
je 0x101cc2d
mov eax, 0x343
mov dword [ebp - 0x64c], 1
mov word [ebp - 0x648], ax
mov esi, dword [ebp - 0x64c]
lea ecx, [ebp - 0x64c]
call fcn.0101a57c
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.01019b13
leave
ret 4
Function at 0x101cc56
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x10253c0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
mov eax, dword [0x1025318]
cmp eax, 0x1025318
je 0x101cc9a
test dword [eax + 0x1c], 0x20000000
je 0x101cc9a
push dword [ebp + 0xc]
push esi
push 0x1003ad4
push 0x1a
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101b8b2
push 1
push 0x371
push 0x1003d34
lea ecx, [ebp - 0x234]
call fcn.0101a2a6
xor eax, eax
push 0x208
push eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov eax, 0x376
test esi, esi
jne 0x101ccee
mov dword [ebp - 0x234], 0x80070057
mov word [ebp - 0x22e], ax
jmp 0x101cd9f
cmp dword [ebp + 0xc], 0
mov word [ebp - 0x230], ax
mov eax, 0x377
jbe 0x101ccd8
and dword [ebp - 0x234], 0
push edi
mov word [ebp - 0x230], ax
xor eax, eax
mov word [esi], ax
mov edi, 0x105
push edi
lea eax, [ebp - 0x210]
push eax
push 0x1003d04
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
jne 0x101cd42
call fcn.0101df05
mov dword [ebp - 0x234], eax
mov eax, 0x382
jmp 0x101cd8e
mov ecx, 0x382
cmp eax, edi
mov word [ebp - 0x230], cx
lea eax, [ecx + 1]
jbe 0x101cd61
mov dword [ebp - 0x234], 0x8007007a
jmp 0x101cd8e
push dword [ebp + 0xc]
and dword [ebp - 0x234], 0
mov word [ebp - 0x230], ax
push esi
lea eax, [ebp - 0x210]
push eax
call fcn.0101c769
mov dword [ebp - 0x234], eax
test eax, eax
mov eax, 0x385
jge 0x101cd97
mov word [ebp - 0x22e], ax
jmp 0x101cd9e
mov word [ebp - 0x230], ax
pop edi
mov esi, dword [ebp - 0x234]
lea ecx, [ebp - 0x234]
call fcn.0101a57c
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.01019b13
leave
ret 8
Function at 0x101d21f
Capabilities:
Enumerate disk volumes
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x240
mov eax, dword [0x10253c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x240], eax
mov eax, dword [0x1025318]
cmp eax, 0x1025318
je 0x101d264
test dword [eax + 0x1c], 0x20000000
je 0x101d264
push 0x1003ad4
push 0x40
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100e996
push ebx
push esi
push edi
push 1
push 0x842
push 0x1003dec
lea ecx, [ebp - 0x23c]
call fcn.0101a2a6
xor eax, eax
push 0x208
mov word [ebp - 0x210], ax
xor ebx, ebx
lea eax, [ebp - 0x20e]
push ebx
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov edi, 0x105
push edi
lea eax, [ebp - 0x210]
xor esi, esi
push eax
mov dword [ebp - 0x214], esi
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeW]
mov dword [ebp - 0x218], eax
cmp eax, 0xffffffff
jne 0x101d2e0
call fcn.0101df05
mov dword [ebp - 0x23c], eax
mov eax, 0x84a
mov word [ebp - 0x236], ax
jmp 0x101d41f
mov eax, 0x84a
mov dword [ebp - 0x23c], ebx
mov word [ebp - 0x238], ax
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x101d3c1
mov eax, esi
cmp esi, ebx
je 0x101d31c
xor esi, esi
push eax
mov dword [ebp - 0x214], esi
call fcn.0101d0fb
mov eax, esi
cmp esi, ebx
je 0x101d32e
push eax
mov dword [ebp - 0x214], ebx
call fcn.0101d0fb
lea eax, [ebp - 0x214]
push eax
call fcn.0101d12b
mov esi, dword [ebp - 0x214]
mov dword [ebp - 0x23c], eax
cmp eax, ebx
mov eax, 0x853
jl 0x101d40c
lea ecx, [esi + 4]
lea edx, [ebp - 0x210]
mov word [ebp - 0x238], ax
call fcn.010223b2
mov dword [ebp - 0x23c], eax
cmp eax, ebx
mov eax, 0x855
jl 0x101d40c
mov word [ebp - 0x238], ax
lea eax, [esi + 0x10]
push eax
lea eax, [esi + 0x14]
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.0101be5e
test eax, eax
jl 0x101d3c1
mov eax, dword [ebp - 0x240]
mov eax, dword [eax + 4]
push ebx
push esi
push eax
call fcn.01012131
mov dword [ebp - 0x23c], eax
cmp eax, ebx
mov eax, 0x85a
jl 0x101d40c
mov word [ebp - 0x238], ax
push edi
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 0x218]
call dword [sym.imp.KERNEL32.dll_FindNextVolumeW]
cmp eax, ebx
jne 0x101d2f2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
jne 0x101d3fc
mov eax, 0x861
mov dword [ebp - 0x23c], ebx
mov word [ebp - 0x238], ax
jmp 0x101d413
call fcn.0101df05
mov dword [ebp - 0x23c], eax
mov eax, 0x861
mov word [ebp - 0x236], ax
push dword [ebp - 0x218]
call dword [sym.imp.KERNEL32.dll_FindVolumeClose]
mov edi, dword [ebp - 0x23c]
cmp esi, ebx
je 0x101d42f
push esi
call fcn.0101d0fb
lea ecx, [ebp - 0x23c]
call fcn.0101a57c
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01019b13
leave
ret 4
Function at 0x101e7be
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
push esi
push 2
push 0x21
push 0x1003f08
lea ecx, [ebp - 0x30]
call fcn.0101a2a6
mov ebx, dword [ebp + 0x10]
xor esi, esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
cmp ebx, esi
je 0x101e7ed
mov dword [ebx], esi
push 0x2a
pop eax
cmp dword [ebp + 0xc], esi
jne 0x101e805
mov dword [ebp - 0x30], 0x80070057
mov word [ebp - 0x2a], ax
jmp 0x101e8b2
push 0x2b
mov word [ebp - 0x2c], ax
pop eax
cmp ebx, esi
je 0x101e7f5
mov word [ebp - 0x2c], ax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push esi
push dword [ebp + 0xc]
mov dword [ebp - 0x30], esi
push dword [ebp + 8]
mov dword [ebp - 4], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [ebp + 0x14], esi
je 0x101e84c
cmp eax, 2
jne 0x101e84c
mov dword [ebp - 0x30], 1
push 0x31
jmp 0x101e8ad
cmp eax, esi
jle 0x101e85a
and eax, 0xffff
or eax, 0x80070000
push 0x34
mov dword [ebp - 0x30], eax
cmp eax, esi
pop eax
jge 0x101e871
mov word [ebp - 0x2a], ax
mov dword [ebp - 0x28], 1
jmp 0x101e8b2
cmp dword [ebp - 8], 4
push 0x36
mov word [ebp - 0x2c], ax
pop eax
je 0x101e88a
mov dword [ebp - 0x30], 0x8007065d
jmp 0x101e7fc
cmp dword [ebp - 4], 4
mov word [ebp - 0x2c], ax
je 0x101e8a3
push 0x37
mov dword [ebp - 0x30], 0x80004005
pop eax
jmp 0x101e7fc
mov eax, dword [ebp - 0xc]
mov dword [ebx], eax
mov dword [ebp - 0x30], esi
push 0x3b
pop eax
mov word [ebp - 0x2c], ax
mov esi, dword [ebp - 0x30]
lea ecx, [ebp - 0x30]
call fcn.0101a57c
mov eax, esi
pop esi
pop ebx
leave
ret 0x10
Function at 0x101e8ca
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push esi
push edi
push 2
push 0x9c
push 0x1003f18
lea ecx, [ebp - 0x2c]
call fcn.0101a2a6
mov esi, dword [ebp + 0x10]
xor edi, edi
mov dword [ebp - 8], 1
mov dword [ebp - 4], edi
mov eax, 0xa3
cmp esi, edi
jne 0x101e910
mov dword [ebp - 0x2c], 0x80070057
mov word [ebp - 0x26], ax
jmp 0x101ea38
mov word [ebp - 0x28], ax
mov eax, 0xa4
cmp dword [ebp + 8], edi
je 0x101e900
push 0x20
pop edx
mov ecx, esi
mov dword [ebp - 0x2c], edi
mov word [ebp - 0x28], ax
call fcn.010219d8
mov dword [ebp - 0x2c], eax
cmp eax, edi
mov eax, 0xa9
jl 0x101e907
mov word [ebp - 0x28], ax
mov eax, dword [esi + 8]
push ebx
lea eax, [eax + eax - 2]
mov dword [ebp - 4], eax
mov eax, dword [esi]
lea ecx, [ebp - 4]
push ecx
push eax
lea eax, [ebp - 8]
push eax
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
jmp 0x101e9ad
cmp ebx, 0xea
jne 0x101ea14
mov edx, dword [ebp - 4]
and dword [ebp - 0x2c], 0
add edx, 3
lea eax, [ebx - 0x2b]
shr edx, 1
mov ecx, esi
mov word [ebp - 0x28], ax
call fcn.010219d8
mov dword [ebp - 0x2c], eax
test eax, eax
lea eax, [ebx - 0x24]
jl 0x101ea33
mov word [ebp - 0x28], ax
mov eax, dword [esi + 8]
lea eax, [eax + eax - 2]
mov dword [ebp - 4], eax
mov eax, dword [esi]
lea ecx, [ebp - 4]
push ecx
push eax
lea eax, [ebp - 8]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call edi
mov edx, dword [esi + 8]
mov ecx, esi
mov ebx, eax
call fcn.01021766
test ebx, ebx
jne 0x101e95e
cmp dword [ebp - 8], 1
je 0x101e9df
cmp dword [ebp - 8], 2
je 0x101e9df
mov dword [ebp - 0x2c], 0x8000ffff
mov eax, 0xc9
jmp 0x101ea33
mov edx, dword [ebp - 4]
mov eax, 0xc9
mov word [ebp - 0x28], ax
mov al, dl
not al
test al, 1
mov eax, 0xd5
jne 0x101ea01
mov dword [ebp - 0x2c], 0x8000ffff
jmp 0x101ea33
and dword [ebp - 0x2c], 0
shr edx, 1
mov ecx, esi
mov word [ebp - 0x28], ax
call fcn.01021766
jmp 0x101ea37
test ebx, ebx
jle 0x101ea24
and ebx, 0xffff
or ebx, 0x80070000
mov dword [ebp - 0x2c], ebx
mov eax, 0xbf
mov dword [ebp - 0x24], 1
mov word [ebp - 0x26], ax
pop ebx
mov esi, dword [ebp - 0x2c]
lea ecx, [ebp - 0x2c]
call fcn.0101a57c
pop edi
mov eax, esi
pop esi
leave
ret 0xc
Function at 0x101f173
Capabilities:
Get token membership

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x80
push ebx
push esi
push edi
xor edi, edi
inc edi
push edi
push 0x11a
push 0x1003f78
lea ecx, [ebp - 0x38]
call fcn.0101a2a6
xor esi, esi
push 0x40
lea eax, [ebp - 0x78]
push esi
push eax
mov dword [ebp - 8], esi
mov dword [ebp - 0x80], esi
mov dword [ebp - 0x7c], esi
call sub.msvcrt.dll_memset
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x10], edi
mov edi, dword [ebp + 8]
add esp, 0xc
mov dword [ebp - 0x14], 0x48
mov dword [ebp - 4], esi
mov dword [ebp - 0xc], esi
mov eax, 0x123
cmp edi, esi
jne 0x101f1e3
mov dword [ebp - 0x38], 0x80070057
mov word [ebp - 0x32], ax
jmp 0x101f314
mov word [ebp - 0x34], ax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x80]
push eax
push esi
push dword [ebp + 0xc]
mov dword [ebp - 0x38], esi
call dword [sym.imp.ADVAPI32.dll_CreateWellKnownSid]
test eax, eax
jne 0x101f20f
call fcn.0101df05
mov dword [ebp - 0x38], eax
mov eax, 0x125
jmp 0x101f1da
mov eax, 0x125
mov word [ebp - 0x34], ax
lea eax, [ebp - 0xc]
push eax
push 4
lea eax, [ebp - 0x10]
push eax
push 8
push edi
mov dword [ebp - 0x38], esi
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x101f241
call fcn.0101df05
mov dword [ebp - 0x38], eax
mov eax, 0x126
jmp 0x101f1da
mov eax, 0x126
mov word [ebp - 0x34], ax
inc eax
cmp dword [ebp - 0xc], 4
je 0x101f25a
mov dword [ebp - 0x38], 0x80004005
jmp 0x101f1da
cmp dword [ebp - 0x10], 2
mov dword [ebp - 0x38], esi
mov word [ebp - 0x34], ax
je 0x101f2db
cmp dword [ebp - 4], esi
je 0x101f27a
cmp dword [ebp - 4], 0xffffffff
je 0x101f27a
push dword [ebp - 4]
call ebx
mov dword [ebp - 4], esi
lea eax, [ebp - 4]
push eax
push 2
push 2
push esi
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
jne 0x101f2a1
call fcn.0101df05
mov dword [ebp - 0x38], eax
mov eax, 0x12a
jmp 0x101f1da
mov eax, 0x12a
mov word [ebp - 0x34], ax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x80]
push eax
push dword [ebp - 4]
mov dword [ebp - 0x38], esi
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x101f2d4
call fcn.0101df05
mov dword [ebp - 0x38], eax
mov eax, 0x12b
jmp 0x101f1da
mov eax, 0x12b
jmp 0x101f305
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x80]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x101f300
call fcn.0101df05
mov dword [ebp - 0x38], eax
mov eax, 0x12f
jmp 0x101f1da
mov eax, 0x12f
mov ecx, dword [ebp - 8]
mov word [ebp - 0x34], ax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x38], esi
mov dword [eax], ecx
mov edi, dword [ebp - 0x38]
cmp dword [ebp - 4], esi
je 0x101f32a
cmp dword [ebp - 4], 0xffffffff
je 0x101f32a
push dword [ebp - 4]
call ebx
mov dword [ebp - 4], esi
lea ecx, [ebp - 0x38]
call fcn.0101a57c
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x101f483
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
push edi
xor ebx, ebx
inc ebx
push ebx
push 0x8c
push 0x1003fd4
lea ecx, [ebp - 0x28]
call fcn.0101a2a6
mov esi, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 4], ebx
mov eax, 0x8f
cmp esi, edi
jne 0x101f4c5
mov dword [ebp - 0x28], 0x80070057
mov word [ebp - 0x22], ax
jmp 0x101f5a7
mov dword [ebp - 0x28], edi
mov word [ebp - 0x24], ax
call fcn.0101f3cb
mov dword [ebp - 0x28], eax
cmp eax, edi
mov eax, 0x92
jl 0x101f4bc
mov word [ebp - 0x24], ax
cmp dword [ebp - 0x28], ebx
jne 0x101f4f5
add eax, 4
mov dword [ebp - 0x28], edi
mov word [ebp - 0x24], ax
jmp 0x101f5a7
mov eax, dword [esi]
test al, 0xb
jne 0x101f4ff
or eax, ebx
mov dword [esi], eax
push 2
lea eax, [ebp - 4]
push eax
push 0x20001009
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x101f528
call fcn.0101df05
mov dword [ebp - 0x28], eax
mov eax, 0xa0
jmp 0x101f4bc
push dword [ebp - 4]
mov eax, 0xa0
mov dword [ebp - 0x28], edi
mov word [ebp - 0x24], ax
call fcn.0101f419
mov dword [ebp - 0x28], eax
cmp eax, edi
mov eax, 0xa3
jl 0x101f4bc
mov word [ebp - 0x24], ax
cmp dword [ebp - 0x28], edi
jne 0x101f59d
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
and eax, 0x3ff
cmp ax, 0xd
jne 0x101f589
mov eax, dword [esi]
test bl, al
je 0x101f581
cmp dword [ebp - 4], 8
je 0x101f581
and eax, 0xffffffcf
mov dword [esi], eax
mov eax, 0xb4
jmp 0x101f4e9
and eax, 0xffffffef
or eax, 0x20
mov dword [esi], eax
mov eax, dword [esi]
and eax, 0xffffffef
or eax, 0x20
mov dword [esi], eax
mov eax, 0xba
jmp 0x101f4e9
mov eax, dword [esi]
and eax, 0xffffffdf
or eax, 0x10
mov dword [esi], eax
mov esi, dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
call fcn.0101a57c
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 4
Function at 0x1020814
Capabilities:
Enumerate gui resources

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x38
push ebx
push esi
push edi
push 1
push 0x23e
push 0x1004190
lea ecx, [ebp - 0x38]
call fcn.0101a2a6
xor eax, eax
xor esi, esi
mov dword [ebp - 0x14], esi
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov edi, dword [ebp + 0x18]
cmp edi, esi
je 0x102084a
mov dword [edi], esi
mov ebx, dword [ebp + 8]
mov eax, 0x246
cmp ebx, esi
jne 0x1020866
mov dword [ebp - 0x38], 0x80070057
mov word [ebp - 0x32], ax
jmp 0x102091a
mov word [ebp - 0x34], ax
mov eax, 0x247
cmp dword [ebp + 0xc], esi
je 0x1020856
mov word [ebp - 0x34], ax
inc eax
cmp edi, esi
je 0x1020856
push dword [ebp + 0xc]
mov dword [ebp - 0x38], esi
mov word [ebp - 0x34], ax
call dword [sym.imp.USER32.dll_RegisterWindowMessageW]
cmp eax, esi
jne 0x10208a0
call fcn.0101df05
mov dword [ebp - 0x38], eax
mov eax, 0x24b
jmp 0x102085d
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 8], eax
lea eax, [ebp - 0x14]
push eax
mov ecx, 0x24b
push 0x10206ba
mov dword [ebp - 0x38], esi
mov word [ebp - 0x34], cx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], esi
call dword [sym.imp.USER32.dll_EnumWindows]
mov eax, dword [ebp - 4]
cmp eax, esi
jne 0x102090c
mov eax, dword [0x1025318]
cmp eax, 0x1025318
je 0x10208fe
test dword [eax + 0x1c], 0x4000000
je 0x10208fe
push 0x1004088
push 0xd
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100e996
mov dword [ebp - 0x38], 1
mov eax, 0x258
jmp 0x1020916
mov dword [edi], eax
mov dword [ebp - 0x38], esi
mov eax, 0x25c
mov word [ebp - 0x34], ax
mov esi, dword [ebp - 0x38]
lea ecx, [ebp - 0x38]
call fcn.0101a57c
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0x14
Function at 0x1022a05
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
push esi
push edi
push 1
push 0xb9
push 0x1008880
lea ecx, [ebp - 0x24]
call fcn.0101a2a6
mov edi, dword [ebp + 0xc]
push edi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
mov eax, 0xbb
jne 0x1022a46
mov dword [ebp - 0x24], 0x80070057
mov word [ebp - 0x1e], ax
jmp 0x1022af6
mov esi, dword [ebp + 8]
push ebx
push dword [esi + 8]
mov dword [esi + 4], edi
push 2
push 0x46f
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
xor ebx, ebx
mov dword [ebp - 0x24], ebx
mov word [ebp - 0x20], ax
call edi
push 0x1e
push 1
push 0x46b
push dword [esi + 4]
call edi
push ebx
push ebx
push esi
push 0x10227c7
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp + 0xc], eax
mov eax, dword [esi + 0x20]
cmp eax, ebx
je 0x1022aa0
cmp eax, 0xffffffff
je 0x1022aa0
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x20], ebx
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x20], eax
cmp eax, ebx
je 0x1022aaf
cmp eax, 0xffffffff
jne 0x1022ac2
call fcn.0101df05
mov dword [ebp - 0x24], eax
mov eax, 0xce
mov word [ebp - 0x1e], ax
jmp 0x1022af5
mov eax, 0xce
mov word [ebp - 0x20], ax
mov eax, dword [esi + 0x20]
push 0xc8
push eax
mov dword [ebp - 0x24], ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x1022af5
push ebx
push 2
push 0x466
push dword [esi + 4]
mov dword [esi + 0x18], 1
call edi
pop ebx
mov esi, dword [ebp - 0x24]
lea ecx, [ebp - 0x24]
call fcn.0101a57c
pop edi
mov eax, esi
pop esi
leave
ret 8
Function at 0x401090
Capabilities:
Create thread

Disassembly:
push ebx
lea ebx, [esi + 0x28]
mov dword [ebx], esi
cmp esi, edi
je 0x4010d8
mov ecx, dword [esi + 0x10]
test ecx, ecx
je 0x4010b8
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
cmp ecx, esi
setne dl
movzx edx, dl
push edx
call eax
mov dword [esi + 0x10], 0
mov eax, dword [edi + 0x10]
test eax, eax
jne 0x4010c4
mov dword [esi + 0x10], eax
jmp 0x4010d8
mov ecx, eax
mov edx, dword [ecx]
cmp eax, edi
mov eax, dword [edx]
jne 0x4010d1
push esi
jmp 0x4010d3
push 0
call eax
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x1c]
push ecx
push 0
push ebx
push 0x401110
push 0
push 0
call fcn.00476396
add esp, 0x18
xor edx, edx
test eax, eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x24], 0
setne al
pop ebx
ret
Function at 0x402520
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, eax
mov eax, dword [ebp + 8]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x402538
pop edi
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x40256a
mov ecx, dword [ebp + 8]
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x402566
cmp esi, eax
jae 0x40256a
dec edi
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x402558
cmp esi, eax
jb 0x402570
pop esi
xor eax, eax
pop edi
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebp
ret