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

Disassembly:
push 0xffffffffffffffff
push 0xc979fb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov esi, dword [esp + 0x2c]
xor ebp, ebp
mov dword [esp + 0x10], eax
xor ebx, ebx
mov eax, 1
mov ecx, ebx
shl eax, cl
mov ecx, dword [esp + 0x10]
test ecx, eax
je 0xc83002
lea edx, [ebx + 0x41]
lea eax, [esp + 0x14]
push edx
push str._c:_
push eax
call fcn.00c86dff
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0xc83002
lea edx, [esp + 0x14]
push edx
push str.Mounting__s_n
call fcn.00c7e6e0
lea eax, [esp + 0x1c]
lea edi, [esi + 0x1048]
push eax
push edi
mov word [esp + 0x28], bp
call fcn.00c8720b
push 0x10
call fcn.00c871d3
add esp, 0x14
mov dword [esp + 0x2c], eax
cmp eax, ebp
mov dword [esp + 0x24], ebp
je 0xc82fc5
mov cx, word [edi]
push ecx
mov ecx, eax
call fcn.00c731c0
jmp 0xc82fc7
xor eax, eax
push esi
mov dword [esp + 0x28], 0xffffffff
mov dword [esi], eax
call fcn.00c82b80
mov edi, dword [esi]
add esp, 4
cmp edi, ebp
je 0xc82ff0
mov ecx, edi
call fcn.00c732c0
push edi
call fcn.00c871c8
add esp, 4
mov edx, dword [esi + 0x1024]
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0xc83021
inc ebx
cmp ebx, 0x20
jb 0xc82f3e
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0xc84250
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0xc98808
push 0xc88288
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x28], ebx
xor esi, esi
mov dword [ebp - 0x20], esi
mov byte [ebp - 0x24], bl
mov dword [ebp - 4], ebx
mov byte [ebp - 0x34], bl
mov byte [ebp - 0x33], bl
mov byte [ebp - 0x32], bl
mov byte [ebp - 0x31], bl
mov byte [ebp - 0x30], bl
mov byte [ebp - 0x2f], 5
lea eax, [ebp - 0x1c]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x12
push 1
lea ecx, [ebp - 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0xc84329
lea edx, [ebp - 0x28]
push edx
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0xc84329
mov dword [ebp - 0x2c], ebx
lea eax, [ebp - 0x2c]
push eax
push ebx
push ebx
push 1
mov ecx, dword [ebp - 0x28]
push ecx
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
call edi
mov edx, dword [ebp - 0x2c]
push edx
call fcn.00c871d3
add esp, 4
mov esi, eax
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x20], esi
cmp esi, ebx
je 0xc84329
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
push esi
push 1
mov edx, dword [ebp - 0x28]
push edx
call edi
test eax, eax
je 0xc84329
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [esi]
push ecx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 0x24], al
jmp 0xc8432c
mov al, byte [ebp - 0x24]
mov dword [ebp - 4], 0xffffffff
call fcn.00c84351
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0xc84d20
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov edx, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
lea eax, [esp + 4]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
mov dword [esp + 0x1c], 8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0xc84d58
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esi], ecx
mov dword [esi + 4], edx
pop esi
pop ecx
ret 0x10

Function at 0xc84d60
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0xc84d94
mov eax, dword [esp + 0x14]
test eax, eax
je 0xc84d94
push eax
push esi
call fcn.00c8720b
add esp, 8
pop esi
ret 0x10

Function at 0xc84da0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x24
lea eax, [esp + 0x28]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0xc84e22
push ebx
mov ebx, dword [esp + 0x30]
push esi
xor esi, esi
test ebx, ebx
jbe 0xc84e15
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov edi, dword [esp + 0x40]
push esi
lea ecx, [esp + 0x18]
push 0xc9d320
push ecx
mov dword [esp + 0x1c], 4
call fcn.00c86dff
mov ecx, dword [esp + 0x44]
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
push edx
push edi
push 0
push 0
push eax
push ecx
call ebp
inc esi
add edi, 4
cmp esi, ebx
jb 0xc84dda
pop edi
pop ebp
mov edx, dword [esp + 0x30]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
add esp, 0x24
ret 0xc

Function at 0xc84e30
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x28
lea eax, [esp + 0x2c]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0xc84ec2
push ebp
mov ebp, dword [esp + 0x34]
push esi
xor esi, esi
test ebp, ebp
jbe 0xc84eb5
push ebx
mov ebx, dword [esp + 0x40]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push esi
lea ecx, [esp + 0x1c]
push 0xc9d320
push ecx
mov dword [esp + 0x1c], 4
call fcn.00c86dff
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x40]
push eax
push 0
push 0
push ecx
push edx
call edi
test eax, eax
jne 0xc84eab
mov ax, word [esp + 0x14]
mov word [ebx], ax
inc esi
add ebx, 2
cmp esi, ebp
jb 0xc84e6a
pop edi
pop ebx
mov ecx, dword [esp + 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebp
add esp, 0x28
ret 0xc
Function at 0xc85000
Capabilities:
Get file version info

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0xc85131
push esi
call fcn.00c88145
add esp, 4
mov edi, eax
push edi
push esi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push ebx
call fcn.00c77080
mov ebp, eax
add esp, 0x1c
cmp ebp, 0xffffffff
je 0xc85131
push 0
push ebp
call fcn.00c773a0
push 0
push 0
push 0
push 4
push 0
push ebp
mov ebx, eax
call fcn.00c77260
add esp, 0x20
mov dword [esp + 0x18], eax
test eax, eax
jne 0xc8508b
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 0
push 0
push 0
push 6
push eax
call fcn.00c772f0
mov esi, eax
add esp, 0x14
test esi, esi
je 0xc85121
push 0xc9d918
push edi
call fcn.00c863f0
push eax
push ebx
push esi
call fcn.00c84f60
push 0xc9d8f8
push edi
call fcn.00c863f0
push eax
push ebx
push esi
call fcn.00c84f60
push 0xc9d8d8
push edi
call fcn.00c863f0
push eax
push ebx
push esi
call fcn.00c84f60
push 0xc9d8c0
push edi
call fcn.00c863f0
add esp, 0x44
push eax
push ebx
push esi
call fcn.00c84f60
push 0xc9d8a0
push edi
call fcn.00c863f0
push eax
push ebx
push esi
call fcn.00c84f60
push 0xc9d888
push edi
call fcn.00c863f0
push eax
push ebx
push esi
call fcn.00c84f60
add esp, 0x34
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
push ebp
call esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0xc861b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.00c86140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.00c86140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.00c86140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.00c86140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0xc86bfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0xc86c50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0xc9887c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0xc86c43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0xc86c52
xor eax, eax
pop esi
leave
ret 4
Function at 0x4131d0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xf000]
push edi
or ebp, 0xffffffff
jmp 0x4131f2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4131f9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4131e8
mov eax, 1
add ebx, ebx
jne 0x41320b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x413200
jne 0x41321c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x413200
xor ecx, ecx
sub eax, 3
jb 0x413230
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4132a2
mov ebp, eax
add ebx, ebx
jne 0x41323b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x413248
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x41326c
inc ecx
add ebx, ebx
jne 0x413258
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x41324d
jne 0x413269
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41324d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x41328c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x41327d
jmp 0x4131ee
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x41328c
add edi, ecx
jmp 0x4131ee
pop esi
mov edi, esi
mov ecx, 0x56
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4132aa
cmp byte [edi], 1
jne 0x4132aa
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 0x4132af
lea edi, [esi + 0x11000]
mov eax, dword [edi]
or eax, eax
je 0x41331e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x13f20]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x13fe4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4132dc
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x13fec]
or eax, eax
je 0x413318
mov dword [ebx], eax
add ebx, 4
jmp 0x4132f9
call dword [esi + 0x13fe8]
mov ebp, dword [esi + 0x13ff0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
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 0x413352
sub esp, 0xffffff80
jmp 0x40532c
Function at 0x4013ee
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
push edi
test esi, esi
jbe 0x40141b
test cl, 7
je 0x40141b
movzx edx, byte [ecx]
movzx edi, al
xor edx, edi
shr eax, 8
xor eax, dword [edx*4 + 0x423440]
dec esi
inc ecx
jmp 0x4013fc
cmp esi, 8
jb 0x4014be
mov edx, esi
shr edx, 3
mov dword [ebp + 8], edx
push ebx
mov edx, dword [ecx + 4]
xor eax, dword [ecx]
mov ebx, edx
shr ebx, 0x10
movzx edi, bl
mov edi, dword [edi*4 + 0x423840]
mov ebx, edx
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x423440]
mov ebx, edx
shr ebx, 8
movzx ebx, bl
xor edi, dword [ebx*4 + 0x423c40]
mov ebx, eax
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x424440]
mov ebx, eax
shr ebx, 0x10
movzx ebx, bl
xor edi, dword [ebx*4 + 0x424840]
mov ebx, eax
shr ebx, 8
movzx ebx, bl
xor edi, dword [ebx*4 + 0x424c40]
movzx edx, dl
xor edi, dword [edx*4 + 0x424040]
movzx eax, al
xor edi, dword [eax*4 + 0x425040]
sub esi, 8
add ecx, 8
dec dword [ebp + 8]
mov eax, edi
jne 0x40142d
pop ebx
jmp 0x4014be
movzx edx, byte [ecx]
movzx edi, al
xor edx, edi
shr eax, 8
xor eax, dword [edx*4 + 0x423440]
dec esi
inc ecx
test esi, esi
ja 0x4014aa
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x40352a
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
cmp dword [esi + 0xc], 1
push edi
mov edi, 0x4e20
jne 0x403551
cmp dword [ebp + 0xc], edi
jbe 0x403546
mov dword [ebp + 0xc], edi
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [esi + 4], eax
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4035ba
mov ecx, esi
call fcn.004034b8
test al, al
je 0x403587
cmp dword [ebp + 0xc], edi
jbe 0x403587
push edi
push dword [ebp + 8]
mov ecx, esi
call fcn.0040352a
jmp 0x4035bd
cmp dword [esi + 0xc], 1
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
jne 0x40359e
call ebx
cmp eax, 0x6d
jne 0x40359e
xor eax, eax
jmp 0x4035bd
cmp dword [esi + 0xc], 0
jne 0x4035b5
mov edi, 0x8000
cmp dword [ebp + 0xc], edi
jbe 0x4035b5
call ebx
cmp eax, 0x21
je 0x40357a
or eax, 0xffffffff
jmp 0x4035bd
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x4038b0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1000
call fcn.0040d7f0
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push edi
push dword [ebp + 8]
call esi
mov edi, eax
cmp edi, 0xffffffff
jne 0x4038f4
push 0x800
lea eax, [ebp - 0x1000]
push eax
push dword [ebp + 8]
call fcn.00406631
test al, al
je 0x4038f4
lea eax, [ebp - 0x1000]
push eax
call esi
mov edi, eax
mov eax, edi
pop edi
pop esi
leave
ret 4

Function at 0x4038fc
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1000
call fcn.0040d7f0
push ebx
push esi
push dword [ebp + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push dword [ebp + 8]
call esi
test eax, eax
setne bl
test bl, bl
jne 0x40394b
push 0x800
lea eax, [ebp - 0x1000]
push eax
push dword [ebp + 8]
call fcn.00406631
test al, al
je 0x40394b
push dword [ebp + 0xc]
lea eax, [ebp - 0x1000]
push eax
call esi
test eax, eax
setne bl
pop esi
mov al, bl
pop ebx
leave
ret 8

Function at 0x403b38
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1000
call fcn.0040d7f0
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push edi
mov edi, dword [ebp + 8]
push 0
push edi
call esi
test eax, eax
jne 0x403b88
push edi
call fcn.00403b14
test al, al
jne 0x403b9b
push 0x800
lea eax, [ebp - 0x1000]
push eax
push edi
call fcn.00406631
test al, al
je 0x403b9b
push 0
lea eax, [ebp - 0x1000]
push eax
call esi
test eax, eax
je 0x403b9b
cmp byte [ebp + 0xc], 0
je 0x403b97
push dword [ebp + 0x10]
push edi
call fcn.004038fc
xor eax, eax
jmp 0x403bb3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x403bb0
cmp eax, 3
je 0x403bb0
xor eax, eax
inc eax
jmp 0x403bb3
push 2
pop eax
pop edi
pop esi
leave
ret 0xc
Function at 0x403fe9
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [0x44e114]
call fcn.004013ee
cmp byte [0x4377c1], 0
mov dword [0x44e114], eax
jne 0x40401d
cmp dword [ebp + 0xc], 0
jbe 0x40401d
mov ecx, dword [0x44e210]
pop ebp
jmp fcn.0040332f
pop ebp
ret 8

Function at 0x40481a
Capabilities:
Check if file exists
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1250
call fcn.0040d7f0
cmp dword [ebp + 8], 0xffffffff
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
lea eax, [ebp - 0x250]
mov edi, 0x800
push eax
jne 0x4048a9
push dword [ebp + 0xc]
mov ebx, dword [sym.imp.KERNEL32.dll_FindFirstFileW]
call ebx
mov dword [ebp + 8], eax
cmp eax, 0xffffffff
jne 0x4048d6
push edi
lea eax, [ebp - 0x1250]
push eax
push dword [ebp + 0xc]
call fcn.00406631
test al, al
je 0x404882
lea eax, [ebp - 0x250]
push eax
lea eax, [ebp - 0x1250]
push eax
call ebx
mov dword [ebp + 8], eax
cmp eax, 0xffffffff
jne 0x4048d6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x40489c
cmp eax, 3
je 0x40489c
cmp eax, 0x12
je 0x40489c
xor eax, eax
inc eax
jmp 0x40489e
xor eax, eax
mov byte [esi + 0x1044], al
jmp 0x4049a1
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4048cc
or dword [ebp + 8], 0xffffffff
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
setne al
mov byte [esi + 0x1044], al
cmp dword [ebp + 8], 0xffffffff
je 0x4049a1
push edi
push dword [ebp + 0xc]
push esi
call fcn.0040b382
push edi
lea eax, [ebp - 0x224]
push eax
push esi
call fcn.004064ba
push 1
push 0
push 0
push dword [ebp - 0x234]
call fcn.0040de70
mov ecx, dword [ebp - 0x230]
xor edi, edi
add eax, ecx
mov dword [esi + 0x1000], eax
mov eax, dword [ebp - 0x250]
mov dword [esi + 0x1008], eax
mov eax, dword [ebp - 0x24c]
mov dword [esi + 0x1028], eax
mov eax, dword [ebp - 0x248]
mov dword [esi + 0x102c], eax
mov eax, dword [ebp - 0x244]
mov dword [esi + 0x1030], eax
mov eax, dword [ebp - 0x240]
mov dword [esi + 0x1034], eax
mov eax, dword [ebp - 0x23c]
mov dword [esi + 0x1038], eax
mov eax, dword [ebp - 0x238]
mov dword [esi + 0x103c], eax
lea eax, [ebp - 0x23c]
adc edx, edi
push eax
lea ecx, [esi + 0x1010]
mov dword [esi + 0x1004], edx
call fcn.0040b6d1
lea eax, [ebp - 0x24c]
push eax
lea ecx, [esi + 0x1018]
call fcn.0040b6d1
lea eax, [ebp - 0x244]
push eax
lea ecx, [esi + 0x1020]
call fcn.0040b6d1
and dword [esi + 0x1040], 0
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x406631
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1000
call fcn.0040d7f0
push esi
mov esi, dword [ebp + 8]
cmp word [esi], 0
jne 0x40664f
xor al, al
jmp 0x4067d9
push ebx
push edi
push esi
call fcn.004062ce
push esi
call fcn.0040d77a
pop ecx
push esi
mov ebx, eax
call fcn.0040656d
test al, al
je 0x4066f9
push esi
call fcn.004062ce
test al, al
je 0x4066a6
add ebx, 4
cmp dword [ebp + 0x10], ebx
jbe 0x4067d5
mov edi, dword [ebp + 0xc]
push 4
push 0x41d660
push edi
call fcn.0040e704
push esi
add edi, 8
push edi
call fcn.0040d7c2
add esp, 0x14
jmp 0x4067d1
cmp word [esi], 0x5c
jne 0x4067d5
add esi, 2
cmp word [esi], 0x5c
jne 0x4067d5
add ebx, 6
cmp dword [ebp + 0x10], ebx
jbe 0x4067d5
mov edi, dword [ebp + 0xc]
push 4
push 0x41d660
push edi
call fcn.0040e704
lea eax, [edi + 8]
push 0x41d658
push eax
call fcn.0040d7c2
push esi
add edi, 0xe
push edi
call fcn.0040d7c2
add esp, 0x1c
jmp 0x4067d1
lea eax, [ebp - 0x1000]
push eax
mov edi, 0x7ff
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x4067d5
cmp eax, edi
ja 0x4067d5
movzx eax, word [esi]
push eax
call fcn.004061ea
test al, al
je 0x406766
add ebx, 6
cmp dword [ebp + 0x10], ebx
jbe 0x4067d5
mov edi, dword [ebp + 0xc]
push 4
push 0x41d660
push edi
call fcn.0040e704
push 2
lea eax, [ebp - 0x1000]
push eax
lea eax, [edi + 8]
push eax
call fcn.0040e704
push esi
add edi, 0xc
push edi
call fcn.0040d7c2
add esp, 0x20
jmp 0x4067d1
push 0x800
lea eax, [ebp - 0x1000]
push eax
call fcn.00406202
lea eax, [ebp - 0x1000]
push eax
call fcn.0040d77a
lea eax, [eax + ebx + 4]
pop ecx
cmp dword [ebp + 0x10], eax
jbe 0x4067d5
mov edi, dword [ebp + 0xc]
push 4
push 0x41d660
push edi
call fcn.0040e704
lea eax, [ebp - 0x1000]
push eax
lea eax, [edi + 8]
push eax
call fcn.0040d7c2
add esp, 0x14
cmp word [esi], 0x2e
jne 0x4067c7
movzx eax, word [esi + 2]
push eax
call fcn.004061ea
test al, al
je 0x4067c7
add esi, 4
push dword [ebp + 0x10]
push esi
push edi
call fcn.0040b3af
mov al, 1
jmp 0x4067d7
xor al, al
pop edi
pop ebx
pop esi
leave
ret 0xc
Function at 0x408307
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
push esi
cmp dword [0x42745c], ebx
jne 0x408320
mov ecx, 0x427454
call fcn.004082c8
mov esi, dword [ebp + 0xc]
mov ecx, esi
and ecx, 0xf
mov eax, esi
sub eax, ecx
cmp byte [ebp + 0x10], bl
je 0x40836a
mov ecx, dword [0x42745c]
cmp ecx, ebx
je 0x408386
push ebx
push eax
push dword [ebp + 8]
call ecx
test eax, eax
jne 0x4083a7
push str.CryptProtectMemory_failed
mov esi, 0x4325ec
push esi
call fcn.004016ac
pop ecx
pop ecx
mov ecx, esi
call fcn.00416806
push 2
mov ecx, esi
call fcn.00401629
jmp 0x4083a7
mov ecx, dword [0x427460]
cmp ecx, ebx
je 0x408386
push ebx
push eax
push dword [ebp + 8]
call ecx
test eax, eax
jne 0x4083a7
push str.CryptUnprotectMemory_failed
jmp 0x40834b
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor ecx, ecx
cmp esi, ebx
jbe 0x4083a7
mov dl, al
add dl, 0x4b
mov eax, dword [ebp + 8]
add eax, ecx
mov bl, dl
add bl, cl
xor byte [eax], bl
inc ecx
cmp ecx, esi
jb 0x408397
pop esi
pop ebx
pop ebp
ret 0xc

Function at 0x4084e4
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
cmp dword [0x422038], 0
push ebx
push esi
push edi
mov edi, 0x400
jne 0x40852f
push 0x64
lea eax, [ebp - 0x12c]
push eax
push 0xf
push edi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov ax, word [ebp - 0x12c]
mov word [0x43bba4], ax
xor eax, eax
mov word [0x43bba6], ax
mov dword [0x422038], 0x43bba4
lea eax, [ebp - 0x64]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040b3de
mov ebx, dword [ebp + 0x14]
mov esi, dword [ebp + 0x10]
push ebx
push esi
xor eax, eax
push 0x422028
mov word [esi], ax
lea eax, [ebp - 0x64]
push eax
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetNumberFormatW]
xor eax, eax
pop edi
mov word [esi + ebx*2 - 2], ax
pop esi
pop ebx
leave
ret 0x10