joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100132f0
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], 0xcccccccc
mov ecx, 0x1005d0df
call fcn.1002689d
mov eax, 1
imul ecx, eax, 0
mov edx, dword [ebp + 8]
movzx eax, byte [edx + ecx]
test eax, eax
je 0x1001334a
mov ecx, 1
imul edx, ecx, 0
mov eax, dword [ebp + 8]
movzx ecx, byte [eax + edx]
cmp ecx, 0x90
je 0x1001334a
mov edx, 1
imul eax, edx, 0
mov ecx, dword [ebp + 8]
movzx edx, byte [ecx + eax]
cmp edx, 0xcc
je 0x1001334a
xor eax, eax
jmp 0x1001338b
mov dword [ebp - 4], 1
jmp 0x1001335c
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0xc]
jae 0x10013386
mov edx, dword [ebp + 8]
add edx, dword [ebp - 4]
movzx eax, byte [edx]
mov ecx, 1
imul edx, ecx, 0
mov ecx, dword [ebp + 8]
movzx edx, byte [ecx + edx]
cmp eax, edx
je 0x10013384
xor eax, eax
jmp 0x1001338b
jmp 0x10013353
mov eax, 1
add esp, 4
cmp ebp, esp
call fcn.1002687a
mov esp, ebp
pop ebp
ret
Function at 0x10018480
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
push edi
lea edi, [ebp - 0x50]
mov ecx, 0x14
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov ecx, 0x1005d197
call fcn.1002689d
mov byte [ebp - 0x44], 0x41
mov byte [ebp - 0x43], 0x80
mov byte [ebp - 0x42], 0x8b
mov byte [ebp - 0x41], 0x82
mov byte [ebp - 0x40], 0x83
mov byte [ebp - 0x3f], 0x45
mov byte [ebp - 0x3e], 0x84
mov byte [ebp - 0x3d], 0x88
mov byte [ebp - 0x3c], 0x85
mov byte [ebp - 0x3b], 0x85
mov byte [ebp - 0x3a], 0x4b
mov byte [ebp - 0x39], 0x87
mov byte [ebp - 0x38], 0x4d
mov byte [ebp - 0x37], 0x48
mov byte [ebp - 0x36], 0x4f
mov byte [ebp - 0x35], 0x8c
mov byte [ebp - 0x34], 0x50
mov byte [ebp - 0x33], 0x43
mov byte [ebp - 0x32], 0x8f
mov byte [ebp - 0x31], 0x59
mov byte [ebp - 0x30], 0x81
mov byte [ebp - 0x2f], 0x58
mov byte [ebp - 0x2e], 0x89
mov byte [ebp - 0x2d], 0x8d
mov byte [ebp - 0x2c], 0x8e
mov byte [ebp - 0x2b], 0x8a
mov byte [ebp - 0x2a], 0x90
mov byte [ebp - 0x29], 0x91
mov byte [ebp - 0x28], 0x92
mov byte [ebp - 0x27], 0x93
mov byte [ebp - 0x26], 0x94
mov byte [ebp - 0x25], 0x95
mov byte [ebp - 0x24], 0x61
mov byte [ebp - 0x23], 0x97
mov byte [ebp - 0x22], 0xa2
mov byte [ebp - 0x21], 0x99
mov byte [ebp - 0x20], 0x9a
mov byte [ebp - 0x1f], 0x65
mov byte [ebp - 0x1e], 0x9b
mov byte [ebp - 0x1d], 0x9f
mov byte [ebp - 0x1c], 0x9c
mov byte [ebp - 0x1b], 0x9d
mov byte [ebp - 0x1a], 0x6b
mov byte [ebp - 0x19], 0x9e
mov byte [ebp - 0x18], 0xaf
mov byte [ebp - 0x17], 0xae
mov byte [ebp - 0x16], 0x6f
mov byte [ebp - 0x15], 0xa3
mov byte [ebp - 0x14], 0x70
mov byte [ebp - 0x13], 0x63
mov byte [ebp - 0x12], 0xa6
mov byte [ebp - 0x11], 0x79
mov byte [ebp - 0x10], 0x81
mov byte [ebp - 0xf], 0x78
mov byte [ebp - 0xe], 0x89
mov byte [ebp - 0xd], 0xa4
mov byte [ebp - 0xc], 0xa5
mov byte [ebp - 0xb], 0xa1
mov byte [ebp - 0xa], 0xa7
mov byte [ebp - 9], 0xa8
mov byte [ebp - 8], 0xa9
mov byte [ebp - 7], 0xaa
mov byte [ebp - 6], 0xab
mov byte [ebp - 5], 0xac
mov dword [ebp - 0x4c], 0
jmp 0x100185b2
mov eax, dword [ebp - 0x4c]
add eax, 1
mov dword [ebp - 0x4c], eax
mov ecx, dword [ebp - 0x4c]
cmp ecx, dword [ebp + 0xc]
jae 0x10018634
mov edx, dword [ebp + 8]
add edx, dword [ebp - 0x4c]
mov al, byte [edx]
mov byte [ebp - 0x4d], al
movzx ecx, byte [ebp - 0x4d]
cmp ecx, 0xb8
jne 0x100185d7
mov byte [ebp - 0x4d], 0xe5
jmp 0x100185e7
movzx edx, byte [ebp - 0x4d]
cmp edx, 0xa8
jne 0x100185e7
mov byte [ebp - 0x4d], 0xc5
movzx eax, byte [ebp - 0x4d]
cmp eax, 0xc0
jl 0x1001860e
movzx ecx, byte [ebp - 0x4d]
cmp ecx, 0xff
jg 0x1001860e
movzx edx, byte [ebp - 0x4d]
mov al, byte [ebp + edx - 0x104]
mov byte [ebp - 0x4d], al
jmp 0x10018624
movzx ecx, byte [ebp - 0x4d]
cmp ecx, 0x20
jl 0x10018620
movzx edx, byte [ebp - 0x4d]
cmp edx, 0x7e
jle 0x10018624
mov byte [ebp - 0x4d], 0x3f
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0x4c]
mov cl, byte [ebp - 0x4d]
mov byte [eax], cl
jmp 0x100185a9
push edx
mov ecx, ebp
push eax
lea edx, [0x10018654]
call fcn.10026824
pop eax
pop edx
pop edi
add esp, 0x50
cmp ebp, esp
call fcn.1002687a
mov esp, ebp
pop ebp
ret
Function at 0x1001c230
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], 0xcccccccc
mov ecx, 0x1005d1ad
call fcn.1002689d
mov dword [ebp - 4], 0
jmp 0x1001c257
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0x10]
jae 0x1001c27a
mov edx, dword [ebp + 0xc]
add edx, dword [ebp - 4]
movzx eax, byte [edx]
xor eax, dword [ebp + 8]
mov dword [ebp + 8], eax
imul ecx, dword [ebp + 8], 0x1000193
mov dword [ebp + 8], ecx
jmp 0x1001c24e
mov eax, dword [ebp + 8]
add esp, 4
cmp ebp, esp
call fcn.1002687a
mov esp, ebp
pop ebp
ret

Function at 0x10030a2e
Capabilities:
Parse pe header

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

Function at 0x100371f7
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1004d248
push 0x1004d240
push str.FlsAlloc
push 0x1f
call fcn.100370bf
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1003722b
push dword [ebp + 8]
mov ecx, esi
call dword [0x10047188]
call esi
jmp 0x10037231
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x10037275
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1004d258
push 0x1004d250
push str.FlsGetValue
push 0x21
call fcn.100370bf
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100372ac
push dword [ebp + 8]
mov ecx, esi
call dword [0x10047188]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x100372b4
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1004d260
push 0x1004d258
push str.FlsSetValue
push 0x22
call fcn.100370bf
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100372ee
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x10047188]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x1003a207
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 0x1003a2a4
push ebx
push esi
call fcn.1003a1d0
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.1003a164
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1003a251
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1003a2a3
push edi
push eax
call fcn.10036d06
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1003a271
call fcn.10036ccc
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1003a2a2
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1003a164
add esp, 0x20
test eax, eax
jne 0x1003a290
push edi
call fcn.10036ccc
jmp 0x1003a298
push ebx
call fcn.10036ccc
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 0x1003bd58
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.10027100
mov eax, dword [0x1005978c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.1003782a
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x1003bd9a
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x1003bef6
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.10027290
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x1005bd68]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.1003cafd
mov ecx, dword [esi*4 + 0x1005bd68]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x1003beef
cmp eax, dword [ecx + edi + 0x24]
jne 0x1003beef
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1003beef
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1003cafd
add esp, 0x14
test edx, edx
jl 0x1003beef
jg 0x1003be65
test eax, eax
jb 0x1003beef
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x1003beef
jl 0x1003be7f
cmp dword [ebp - 0x1008], eax
ja 0x1003beef
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x1003be9d
test ebx, ebx
je 0x1003bed6
cmp ecx, edi
jae 0x1003bed6
mov al, byte [ecx]
cmp al, 0xd
jne 0x1003beb7
lea eax, [edi - 1]
cmp ecx, eax
jae 0x1003bec3
cmp byte [ecx + 1], 0xa
jne 0x1003bec3
inc ecx
jmp 0x1003bec3
movzx eax, al
movsx eax, byte [eax + 0x10059f58]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x1003be9d
cmp edx, ebx
jne 0x1003be9d
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x1003bef4
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.100268cf
leave
ret
Function at 0x1003bf95
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x1005bd68]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x1003bfd5
cmp byte [ebx], 0xa
jne 0x1003bfd5
or byte [edi + eax + 0x28], 4
jmp 0x1003bfda
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x1003c0d9
mov dl, byte [eax]
cmp dl, 0x1a
je 0x1003c0bc
inc eax
cmp dl, 0xd
je 0x1003c006
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x1003c02c
cmp eax, ecx
jae 0x1003c03a
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x1003bfee
jmp 0x1003c0d9
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1003c0b7
cmp dword [ebp - 0x10], 0
je 0x1003c0b7
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x1005bd68]
test byte [eax + edi + 0x28], 0x48
je 0x1003c091
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x1003c07c
mov byte [esi], dl
jmp 0x1003c08d
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x1005bd68]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x1003c0d9
cmp byte [ebp - 1], 0xa
jne 0x1003c0a0
cmp esi, ebx
jne 0x1003c0a0
mov byte [esi], 0xa
jmp 0x1003c0d8
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.1003cb1b
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x1003c0d9
mov byte [esi], 0xd
jmp 0x1003c0d8
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x1005bd68]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x1003c0d6
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x1003c0d9
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x1003c0e2
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x1005bd68]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x1003c128
cmp word [ebx], dx
jne 0x1003c128
or byte [eax + edi + 0x28], 4
jmp 0x1003c12d
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x1003c290
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x1003c270
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x1003c16e
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x1003c1a4
cmp eax, edx
jae 0x1003c1b2
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x1003c149
jmp 0x1003c290
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1003c26b
cmp dword [ebp - 0x18], 0
je 0x1003c26b
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x1005bd68]
test byte [eax + edi + 0x28], 0x48
je 0x1003c241
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x1003c205
mov word [esi], cx
jmp 0x1003c23c
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x1005bd68]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x1005bd68]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x1005bd68]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x1003c290
pop eax
cmp word [ebp - 4], ax
jne 0x1003c251
cmp esi, ebx
jne 0x1003c251
mov word [esi], ax
jmp 0x1003c28d
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.1003cb1b
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x1003c290
push 0xd
pop eax
jmp 0x1003c24c
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x1005bd68]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x1003c28a
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x1003c290
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x10040e2f
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.1003531c
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x10040e9e
cmp esi, dword [ebp - 4]
je 0x10040e99
cmp dword [ebp + 0xc], 0
je 0x10040e99
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x10040e76
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.10040981
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x10040ea0
xor eax, eax
inc eax
jmp 0x10040ea0
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x10040f05
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x1005978c]
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.1003531c
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.1003531c
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 0x10040f7c
cmp word [ecx], dx
je 0x10040f7c
mov eax, dword [0x1004d94c]
push edi
dec eax
push eax
push 0x1004d838
call fcn.10040ea4
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x10040fef
cmp word [eax], dx
je 0x10040fef
mov eax, dword [edi]
test eax, eax
je 0x10040fa0
cmp word [eax], dx
je 0x10040fa0
lea eax, [ebp - 0x10]
push eax
call fcn.10040887
jmp 0x10040fa9
lea eax, [ebp - 0x10]
push eax
call fcn.10040922
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x10041019
mov eax, dword [0x1004d834]
push dword [ebp - 0x14]
dec eax
push eax
push 0x1004d528
call fcn.10040ea4
add esp, 0xc
test al, al
je 0x10041019
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x10040fe4
cmp word [eax], di
je 0x10040fe4
lea eax, [ebp - 0x10]
push eax
call fcn.10040887
pop ecx
jmp 0x1004101b
lea eax, [ebp - 0x10]
push eax
call fcn.10040922
jmp 0x10040fe1
mov eax, dword [edi]
test eax, eax
je 0x10041006
cmp word [eax], dx
je 0x10041006
lea eax, [ebp - 0x10]
push eax
call fcn.1004083c
pop ecx
jmp 0x10041019
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 0x100410e4
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.10040d29
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x100410e4
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x100410e4
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x100410e4
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x10041071
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.100373f4
test ebx, ebx
je 0x100410df
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.100373f4
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x100410e4
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 0x100410e4
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.10043f9e
add esp, 0x10
xor eax, eax
inc eax
jmp 0x100410e6
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100268cf
leave
ret
Function at 0x4030f0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4b5801
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
mov eax, dword [0x4cc3b0]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
call fcn.00402fa0
xor ebx, ebx
mov dword [esp + 0x18], ebx
lea ecx, [esi + 0x30]
call fcn.0042de60
mov byte [esp + 0x18], 1
lea ecx, [esi + 0x1ef0]
call fcn.00459010
mov byte [esp + 0x18], 2
mov eax, dword [esp + 0x20]
mov byte [esi + 0x1eec], bl
mov byte [esi + 0x1eed], bl
mov dword [esi + 0x1ed8], ebx
mov dword [esi + 0x1ee0], ebx
mov dword [esi + 0x1ee4], ebx
mov dword [esi + 0x1ee8], ebx
mov dword [esi + 0x28], eax
mov dword [esi + 0x1f4c], esi
mov dword [esp + 0x18], 0xffffffff
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x10
ret 4

Function at 0x4069b0
Capabilities:
Get file system object information

Disassembly:
sub esp, 0x2e0
mov eax, dword [0x4cc3b0]
xor eax, esp
mov dword [esp + 0x2dc], eax
push ebx
push ebp
mov ebp, dword [esp + 0x2fc]
push esi
push edi
mov edi, dword [esp + 0x2f4]
mov ebx, ecx
push 0x808
mov dword [esp + 0x38], ebx
call fcn.004a59a4
mov ecx, dword [esp + 0x300]
mov esi, eax
mov eax, dword [esp + 0x2fc]
add esp, 4
push edi
mov dword [esi], eax
mov dword [esi + 4], ecx
call fcn.0046a8a0
lea edx, [esi + 8]
movzx ecx, word [eax]
mov word [edx], cx
add eax, 2
add edx, 2
test cx, cx
jne 0x406a07
cmp dword [ebx + 4], 0x50000
jb 0x406a37
call fcn.0043ee10
cmp eax, 0x400
je 0x406a37
cmp byte [esp + 0x310], 0
jne 0x406a82
mov ebx, dword [esp + 0x300]
cmp ebx, 0xffffffff
je 0x406a47
test ebp, ebp
jne 0x406a89
cmp dword [esp + 0x2f8], 2
mov eax, 0x4201
jne 0x406a5b
mov eax, 0x4203
push eax
push 0x2b4
lea edx, [esp + 0x40]
push edx
push 0
push edi
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
cmp ebx, 0xffffffff
jne 0x406a78
mov ebx, dword [esp + 0x3c]
test ebp, ebp
jne 0x406a89
lea ebp, [esp + 0x44]
jmp 0x406a89
mov ebx, dword [esp + 0x300]
xor eax, eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x10], 0x37
mov dword [esp + 0x18], ebp
test ebp, ebp
jne 0x406ac7
mov dword [esp + 0x18], 0xffffffff
mov eax, dword [esp + 0x30c]
mov ecx, dword [esp + 0x308]
lea edx, [esp + 0x10]
push edx
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x38]
push 0
mov dword [esp + 0x34], ecx
mov ecx, dword [eax]
push 0x40b
push ecx
mov dword [esp + 0x40], esi
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [esp + 0x2ec]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004a4bb3
add esp, 0x2e0
ret 0x20
Function at 0x407670
Capabilities:
Get common file path
Get file system object information

Disassembly:
sub esp, 0x2d4
mov eax, dword [0x4cc3b0]
xor eax, esp
mov dword [esp + 0x2d0], eax
push ebx
mov ebx, dword [esp + 0x2e0]
push esi
mov esi, ecx
cmp dword [esi + 4], 0
push edi
mov edi, dword [esp + 0x2e4]
jne 0x4076aa
push str.comctl32.dll
call fcn.00484a30
mov dword [esi + 4], eax
mov eax, dword [esi]
test eax, eax
je 0x4076b7
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
push 0
mov dword [esi + 8], 0xffffffff
mov eax, dword [0x4d76ac]
push eax
push ebx
push edi
push 0xdc
push 0x3c
push 0
push 0
push 0x44200046
push 0
push str.ComboBoxEx32
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
lea ecx, [esp + 0x10]
push ecx
push 0
push 0
mov dword [esi], eax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
mov eax, dword [esp + 0x10]
push 0x4209
push 0x2b4
lea edx, [esp + 0x1c]
push edx
push 0
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov ecx, dword [esi]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push eax
push 0
push 0x402
push ecx
call edi
mov eax, dword [0x511094]
mov ecx, dword [esp + 0x10]
mov edx, dword [eax]
mov edx, dword [edx + 0x14]
push ecx
push eax
call edx
mov ecx, dword [esp + 0x18]
push 0
push 0xffffffffffffffff
push 0
lea eax, [esp + 0x2c]
push eax
push ecx
push 0
push 1
mov edx, eax
push edx
mov ecx, esi
call fcn.004069b0
mov eax, dword [esi]
push 0
push 4
push 0x408
push eax
call edi
mov ecx, dword [esi]
push 0
push 0
push 0x407
push ecx
call edi
test eax, eax
je 0x40777d
push eax
call fcn.00485dc0
lea edx, [esp + 0xc]
push edx
mov dword [esp + 0x10], 0
call dword [sym.imp.SHELL32.dll_SHGetDesktopFolder]
test eax, eax
jne 0x4077a6
push eax
push eax
mov eax, dword [esp + 0x14]
push eax
mov ecx, esi
call fcn.00406e50
test al, al
jne 0x4077fd
push ebp
call fcn.00484d70
mov ebp, eax
xor edi, edi
mov ebx, 1
test ebp, ebx
je 0x4077f4
lea ecx, [edi + 0x41]
push ecx
lea edx, [esp + 0x2d0]
push 0x4ba858
push edx
mov edx, 0xa
call fcn.0049c880
add esp, 0xc
push 1
push 0xffffffffffffffff
push 2
push 0
push 0xffffffffffffffff
push 0
push 0
lea eax, [esp + 0x2e8]
push eax
mov ecx, esi
call fcn.004069b0
inc edi
rol ebx, 1
cmp edi, 0x20
jl 0x4077b5
pop ebp
mov ecx, esi
call fcn.004073d0
mov ecx, dword [esp + 0x2dc]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004a4bb3
add esp, 0x2d4
ret 8