joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10019a40
Capabilities:
Modify service

Disassembly:
sub esp, 0x30
mov eax, dword [0x100695e8]
xor eax, esp
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x34]
lea ecx, [esp + 0x14]
mov dword [esp + 0x10], ecx
lea ecx, [esp]
push ecx
push 2
push eax
mov dword [esp + 0xc], 1
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0x18], 3
mov dword [esp + 0x20], 1
mov dword [esp + 0x24], 0x64
mov dword [esp + 0x28], 1
mov dword [esp + 0x2c], 0x64
mov dword [esp + 0x30], 1
mov dword [esp + 0x34], 0x64
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2A]
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.10026aaf
add esp, 0x30
ret

Function at 0x10019af0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x10042006
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x100695e8]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, dword [esp + 0x34]
mov dword [esp + 0x14], 1
mov eax, dword [esi]
mov dword [esp + 0x10], 0x800
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, 0x800
or eax, ecx
mov dword [esp + 0x20], 1
jge 0x10019b54
push 0x800
mov ecx, esi
call fcn.1000dfc0
lea eax, [esp + 0x10]
push eax
push dword [esi]
lea eax, [esp + 0x1c]
push eax
push dword [esp + 0x3c]
push dword [esp + 0x3c]
push dword [esp + 0x3c]
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
mov ecx, dword [esi]
mov edi, eax
test ecx, ecx
je 0x10019b8c
push dword [ecx - 8]
push ecx
call fcn.1002569f
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x10019bfe
mov eax, dword [esi]
cmp ecx, dword [eax - 8]
jg 0x10019bfe
mov dword [eax - 0xc], ecx
mov eax, dword [esi]
test edi, edi
mov byte [ecx + eax], 0
mov edx, dword [esp + 0x2c]
sete bl
add edx, 0xfffffff0
or edi, 0xffffffff
mov byte [esp + 0x20], 0
lea ecx, [edx + 0xc]
mov eax, edi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x10019bc6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [esp + 0x30]
add esi, 0xfffffff0
mov dword [esp + 0x20], 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x10019be9
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov al, bl
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x14
ret
push 0x80070057
call fcn.1000e050
int3
Function at 0x10019c10
Capabilities:
Access peb ldr_data
Get common file path
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x1004203a
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x100695e8]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov dword [esp + 0xc], 0
mov eax, dword [0x10069550]
mov ecx, 0x10069550
mov dword [esp + 0x18], 0
call dword [eax + 0xc]
mov esi, dword [esp + 0x20]
add eax, 0x10
mov dword [esi], eax
lea eax, [esp + 8]
push eax
push 0
push 0
push dword [esp + 0x30]
mov dword [esp + 0x28], 0
mov dword [esp + 0x1c], 1
mov dword [esp + 0x18], 0
call sub.SHELL32.dll_SHGetKnownFolderPath
test eax, eax
jne 0x10019ca2
mov eax, dword [esp + 8]
test eax, eax
je 0x10019ca2
push eax
mov ecx, esi
call fcn.1001af00
push dword [esp + 8]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x14
ret

Function at 0x1001aa30
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x1004218a
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
mov eax, dword [0x100695e8]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
push 0
call fcn.10024373
mov dword [esp + 0x20], 0
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 0
mov word [esi + 0x18], ax
mov dword [esi + 0x1c], eax
mov word [esi + 0x20], ax
mov dword [esi + 0x24], eax
mov byte [esi + 0x28], al
mov dword [esi + 0x2c], eax
mov byte [esi + 0x30], al
mov eax, dword [esp + 0x28]
mov byte [esp + 0x20], 6
test eax, eax
jne 0x1001aad9
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], str.bad_locale_name
call fcn.100266f4
push 0x10064e4c
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x14], vtable.std::runtime_error.0
call fcn.10026abe
push eax
push esi
call fcn.100249e9
add esp, 8
mov eax, esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x1c
ret 4
Function at 0x1001d840
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x10042490
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x100695e8]
xor eax, esp
mov dword [esp + 0x3c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x100695e8]
xor eax, esp
push eax
lea eax, [esp + 0x54]
mov dword fs:[0], eax
mov ebp, ecx
mov esi, dword [esp + 0x70]
mov al, byte [esp + 0x74]
test dword [esi + 0x14], 0x4000
mov ebx, dword [esp + 0x64]
mov byte [esp + 0x14], al
jne 0x1001d8ac
movzx eax, byte [esp + 0x78]
mov edx, dword [ebp]
push eax
push dword [esp + 0x18]
push esi
push dword [esp + 0x78]
push dword [esp + 0x78]
push ebx
call dword [edx + 0x24]
jmp 0x1001da10
lea eax, [esp + 0x18]
push eax
mov ecx, esi
call fcn.1001dc60
push eax
mov dword [esp + 0x60], 0
call fcn.1001a660
mov ecx, dword [esp + 0x1c]
add esp, 4
mov edi, eax
mov dword [esp + 0x5c], 0xffffffff
test ecx, ecx
je 0x1001d8ec
mov edx, dword [ecx]
call dword [edx + 8]
test eax, eax
je 0x1001d8ec
mov edx, dword [eax]
push 1
mov ecx, eax
call dword [edx]
mov dword [esp + 0x34], 0xf
mov dword [esp + 0x30], 0
mov byte [esp + 0x20], 0
cmp byte [esp + 0x78], 0
lea eax, [esp + 0x38]
mov dword [esp + 0x5c], 1
mov ecx, edi
push eax
je 0x1001d91e
call fcn.1001e910
jmp 0x1001d923
call fcn.1001db80
push eax
lea ecx, [esp + 0x24]
call fcn.1001cf00
cmp dword [esp + 0x4c], 0x10
jb 0x1001d940
push dword [esp + 0x38]
call fcn.1002501c
add esp, 4
cmp dword [esi + 0x24], 0
mov ecx, dword [esp + 0x30]
jl 0x1001d95d
jg 0x1001d952
cmp dword [esi + 0x20], 0
jbe 0x1001d95d
mov edi, dword [esi + 0x20]
cmp edi, ecx
jbe 0x1001d95d
sub edi, ecx
jmp 0x1001d95f
xor edi, edi
mov eax, dword [esi + 0x14]
and eax, 0x1c0
cmp eax, 0x40
je 0x1001d99f
push edi
push dword [esp + 0x18]
lea eax, [esp + 0x20]
push dword [esp + 0x74]
push dword [esp + 0x74]
push eax
push ebp
call fcn.1001cd70
mov edx, dword [eax]
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x80], edx
mov eax, dword [eax + 4]
add esp, 0x18
mov dword [esp + 0x6c], eax
xor edi, edi
jmp 0x1001d9a7
mov eax, dword [esp + 0x6c]
mov edx, dword [esp + 0x68]
cmp dword [esp + 0x34], 0x10
mov dword [esp + 0x18], eax
push ecx
lea eax, [esp + 0x24]
cmovae eax, dword [esp + 0x24]
push eax
push dword [esp + 0x20]
lea eax, [esp + 0x24]
push edx
push eax
push ebp
call fcn.1001cbf0
mov ecx, dword [eax]
push edi
push dword [esp + 0x30]
mov dword [esp + 0x88], ecx
mov eax, dword [eax + 4]
push eax
push ecx
push ebx
push ebp
mov dword [esp + 0x9c], eax
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
call fcn.1001cd70
add esp, 0x30
cmp dword [esp + 0x34], 0x10
jb 0x1001da10
push dword [esp + 0x20]
call fcn.1002501c
add esp, 4
mov eax, ebx
mov ecx, dword [esp + 0x54]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x3c]
xor ecx, esp
call fcn.10026aaf
add esp, 0x4c
ret 0x18
Function at 0x1001faf0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xc
push esi
mov esi, ecx
cmp byte [esi + 4], 0
je 0x1001fb2a
xor edx, edx
cmp dword [esi + 0x3cc], edx
jle 0x1001fb23
mov eax, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x1c]
sub edi, eax
mov cl, byte [edi + eax]
xor byte [eax], cl
inc edx
lea eax, [eax + 1]
cmp edx, dword [esi + 0x3cc]
jl 0x1001fb11
pop edi
pop esi
add esp, 0xc
ret 8
push 0x100692f8
lea ecx, [esp + 8]
call fcn.100266f4
push 0x10065018
lea eax, [esp + 8]
push eax
call fcn.10026abe
int3

Function at 0x1001fba0
Capabilities:
Hash data using sha256

Disassembly:
push ecx
push edi
push dword [esp + 0x14]
mov edi, ecx
push dword [esp + 0x14]
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [esp + 0xc], 0
mov dword [edi + 0x4c], 0x6a09e667
mov dword [edi + 0x50], 0xbb67ae85
mov dword [edi + 0x54], 0x3c6ef372
mov dword [edi + 0x58], 0xa54ff53a
mov dword [edi + 0x5c], 0x510e527f
mov dword [edi + 0x60], 0x9b05688c
mov dword [edi + 0x64], 0x1f83d9ab
mov dword [edi + 0x68], 0x5be0cd19
call fcn.1001fcb0
push dword [esp + 0xc]
mov ecx, edi
call fcn.1001fd50
mov eax, dword [esp + 0xc]
pop edi
pop ecx
ret 0xc

Function at 0x1001fc20
Capabilities:
Hash data using sha256

Disassembly:
push ecx
mov eax, dword [esp + 0xc]
push edi
mov edi, ecx
mov dword [esp + 4], 0
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0x4c], 0x6a09e667
mov dword [edi + 0x50], 0xbb67ae85
mov dword [edi + 0x54], 0x3c6ef372
mov dword [edi + 0x58], 0xa54ff53a
mov dword [edi + 0x5c], 0x510e527f
mov dword [edi + 0x60], 0x9b05688c
mov dword [edi + 0x64], 0x1f83d9ab
mov dword [edi + 0x68], 0x5be0cd19
cmp dword [eax + 0x14], 0x10
mov ecx, dword [eax + 0x10]
jb 0x1001fc87
mov eax, dword [eax]
push ecx
push eax
mov ecx, edi
call fcn.1001fcb0
push dword [esp + 0xc]
mov ecx, edi
call fcn.1001fd50
mov eax, dword [esp + 0xc]
pop edi
pop ecx
ret 8
Function at 0x100226f0
Capabilities:
Access peb ldr_data
Contain obfuscated stackstrings
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x100425b8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x100695e8]
xor eax, esp
mov dword [esp + 0x1c], eax
push esi
mov eax, dword [0x100695e8]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
mov dword [esp + 8], esi
mov byte [esi], 0
lea ecx, [esp + 0xc]
mov dword [esp + 0x30], 0
mov byte [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esp + 0x15], 0x4d282063
mov dword [esp + 0xc], 0x5349534e
mov dword [esp + 0x1a], 0x6c6c697a
mov word [esp + 0x10], 0x495f
mov word [esp + 0x13], 0x7465
mov word [esp + 0x1f], 0x29
mov byte [esp + 0x12], 0x6e
mov byte [esp + 0x19], 0x6f
mov byte [esp + 0x1e], 0x61
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10022793
sub ecx, edx
push ecx
lea eax, [esp + 0x10]
push eax
mov ecx, esi
call fcn.1000e740
mov eax, esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.10026aaf
add esp, 0x2c
ret

Function at 0x10023000
Capabilities:
Connect to http server
Create http request

Disassembly:
push ebx
push esi
mov esi, ecx
mov ecx, dword [esp + 0x28]
cmp dword [esi + 0x14], 0x10
jb 0x10023012
mov eax, dword [esi]
jmp 0x10023014
mov eax, esi
push 0
push 0
push 0
push ecx
push eax
call dword [sym.imp.WININET.dll_InternetOpenA]
cmp dword [esp + 0x20], 0x10
push 0
push 0
push 3
push 0
push 0
push dword [esp + 0x38]
lea ecx, [esp + 0x24]
cmovae ecx, dword [esp + 0x24]
push ecx
push eax
mov dword [esi + 0x1c], eax
call dword [sym.imp.WININET.dll_InternetConnectA]
mov dword [esi + 0x20], eax
test eax, eax
jne 0x10023054
xor bl, bl
jmp 0x1002305a
mov byte [esi + 0x18], 1
mov bl, 1
cmp dword [esp + 0x20], 0x10
jb 0x1002306d
push dword [esp + 0xc]
call fcn.1002501c
add esp, 4
pop esi
mov al, bl
pop ebx
ret 0x20
Function at 0x10023a40
Capabilities:
Check http status code
Contain obfuscated stackstrings
Send data
Send http request

Disassembly:
sub esp, 0x4c
mov eax, dword [0x100695e8]
xor eax, esp
mov dword [esp + 0x48], eax
push ebx
push ebp
push esi
push edi
push 1
push 0x50
sub esp, 0x18
xor bl, bl
mov edx, esp
mov byte [esp + 0x50], 0x67
mov dword [esp + 0x51], 0x6c676f6f
mov dword [esp + 0x56], 0x6d6f632e
mov byte [esp + 0x5a], bl
mov byte [esp + 0x55], 0x65
mov dword [edx + 0x14], 0xf
mov dword [edx + 0x10], 0
mov byte [edx], bl
mov esi, ecx
cmp byte [esp + 0x50], bl
jne 0x10023a97
xor ecx, ecx
jmp 0x10023aa9
lea ecx, [esp + 0x50]
lea edi, [ecx + 1]
mov edi, edi
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10023aa0
sub ecx, edi
push ecx
lea eax, [esp + 0x54]
push eax
mov ecx, edx
call fcn.1000e740
mov ecx, esi
call fcn.10023000
cmp byte [esi + 0x18], 0
mov ebp, dword [sym.imp.WININET.dll_InternetCloseHandle]
je 0x10023c04
lea eax, [esp + 0x18]
push 0
push eax
call fcn.100230d0
add esp, 8
cmp dword [eax + 0x14], 0x10
jb 0x10023ae4
mov eax, dword [eax]
push 0
push 0
push 0
push 0
push str.HTTP_1.0
push 0x10061dec
push eax
push dword [esi + 0x20]
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
cmp dword [esp + 0x2c], 0x10
mov edi, eax
jb 0x10023b15
push dword [esp + 0x18]
call fcn.1002501c
add esp, 4
mov dword [esp + 0x2c], 0xf
mov dword [esp + 0x28], 0
mov byte [esp + 0x18], 0
test edi, edi
je 0x10023bed
push 0
push 0
push 0
push 0
push edi
call dword [sym.imp.WININET.dll_HttpSendRequestA]
lea eax, [esp + 0x3c]
push eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 4
mov word [esp + 0x41], 0x6e69
mov word [esp + 0x47], 0x642e
mov byte [esp + 0x40], 0x57
mov word [esp + 0x4a], 0x6c
mov word [esp + 0x44], 0x656e
mov byte [esp + 0x46], 0x74
mov byte [esp + 0x43], 0x69
mov byte [esp + 0x49], 0x6c
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
je 0x10023bed
lea ecx, [esp + 0x48]
push ecx
push eax
mov dword [esp + 0x53], 0x65755170
mov dword [esp + 0x59], 0x6f666e49
mov word [esp + 0x50], 0x7448
mov word [esp + 0x5d], 0x41
mov word [esp + 0x57], 0x7972
mov byte [esp + 0x52], 0x74
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x1c]
push ecx
push 0x20000013
push edi
call eax
cmp dword [esp + 0x14], 0xc8
movzx ebx, bl
mov eax, 1
cmove ebx, eax
push edi
call ebp
cmp byte [esi + 0x18], 0
je 0x10023c04
push dword [esi + 0x20]
call ebp
push dword [esi + 0x1c]
call ebp
mov byte [esi + 0x18], 0
mov ecx, dword [esp + 0x58]
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
xor ecx, esp
call fcn.10026aaf
add esp, 0x4c
ret
Function at 0x10023c20
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push 0xffffffffffffffff
push 0x10042795
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x100695e8]
xor eax, esp
mov dword [esp + 0x74], eax
push ebx
mov eax, dword [0x100695e8]
xor eax, esp
push eax
lea eax, [esp + 0x80]
mov dword fs:[0], eax
sub esp, 0x18
lea eax, [esp + 0x40]
mov ecx, esp
mov dword [esp + 0x24], esp
push eax
mov dword [esp + 0x6b], 0x5c74666f
mov word [esp + 0x89], 0x7265
mov dword [esp + 0x76], 0x7275435c
mov dword [esp + 0x94], 0x73676e
mov word [esp + 0x67], 0x7263
mov word [esp + 0x5e], 0x7466
mov word [esp + 0x7e], 0x6556
mov word [esp + 0x64], 0x4d5c
mov dword [esp + 0x81], 0x6e6f6973
mov word [esp + 0x61], 0x7261
mov dword [esp + 0x8f], 0x74746553
mov dword [esp + 0x71], 0x776f646e
mov dword [esp + 0x7a], 0x746e6572
mov word [esp + 0x8c], 0x7465
mov word [esp + 0x6f], 0x6957
mov dword [esp + 0x85], 0x746e495c
mov byte [esp + 0x8e], 0x20
mov word [esp + 0x69], 0x736f
mov byte [esp + 0x8b], 0x6e
mov word [esp + 0x5c], 0x6f53
mov byte [esp + 0x80], 0x72
mov byte [esp + 0x63], 0x65
mov byte [esp + 0x75], 0x73
mov byte [esp + 0x93], 0x69
mov byte [esp + 0x66], 0x69
mov byte [esp + 0x60], 0x77
mov word [esp + 0x48], 0x4579
mov dword [esp + 0x4b], 0x656c6261
mov dword [esp + 0x44], 0x786f7250
mov byte [esp + 0x4a], 0x6e
mov byte [esp + 0x4f], 0
mov word [esp + 0x57], 0x7672
mov word [esp + 0x54], 0x5379
mov word [esp + 0x51], 0x6f72
mov word [esp + 0x5a], 0x72
mov byte [esp + 0x59], 0x65
mov byte [esp + 0x53], 0x78
mov byte [esp + 0x56], 0x65
mov byte [esp + 0x50], 0x50
call fcn.1000e840
sub esp, 0x18
lea eax, [esp + 0x70]
mov ecx, esp
push eax
mov dword [esp + 0xbc], 0
call fcn.1000e840
push 0x80000001
mov dword [esp + 0xbc], 0xffffffff
call fcn.10023ea0
cmp eax, 1
sete bl
add esp, 0x1c
lea eax, [esp + 0x4c]
mov ecx, esp
mov dword [esp + 0x20], esp
push eax
call fcn.1000e840
sub esp, 0x18
lea eax, [esp + 0x70]
mov ecx, esp
push eax
mov dword [esp + 0xbc], 1
call fcn.1000e840
lea eax, [esp + 0x40]
push 0x80000001
push eax
mov dword [esp + 0xc0], 0xffffffff
call fcn.10023f60
add esp, 0x38
lea ecx, [esp + 0x10]
push 5
push 0
push str.http
call fcn.1000f700
push 6
push 0
cmp eax, 0xffffffff
push str.https
lea ecx, [esp + 0x1c]
setne bh
call fcn.1000f700
cmp eax, 0xffffffff
setne cl
test bl, bl
je 0x10023e62
test bh, bh
jne 0x10023e3d
test cl, cl
je 0x10023e4c
mov eax, dword [esp + 0x90]
test eax, eax
jne 0x10023e59
test bh, bh
je 0x10023e62
lea ecx, [esp + 0x10]
call fcn.1000e900
mov al, 1
jmp 0x10023e77
cmp eax, 1
jne 0x10023e62
test cl, cl
jmp 0x10023e4a
cmp dword [esp + 0x24], 0x10
jb 0x10023e75
push dword [esp + 0x10]
call fcn.1002501c
add esp, 4
xor al, al
mov ecx, dword [esp + 0x80]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [esp + 0x74]
xor ecx, esp
call fcn.10026aaf
add esp, 0x84
ret
Function at 0x10023ea0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
cmp dword [esp + 0x28], 0x10
mov ecx, dword [esp + 0x10]
lea edx, [esp + 4]
push edx
push 0x20019
lea eax, [esp + 0x1c]
cmovae eax, dword [esp + 0x1c]
push 0
push eax
push ecx
mov dword [esp + 0x14], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10023f04
cmp dword [esp + 0x40], 0x10
lea ecx, [esp + 8]
push ecx
lea ecx, [esp + 4]
push ecx
push 0
lea eax, [esp + 0x38]
cmovae eax, dword [esp + 0x38]
push 0
push eax
push dword [esp + 0x18]
mov dword [esp + 0x20], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push esi
push dword [esp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [esp + 0x2c], 0x10
mov esi, dword [esp + 4]
jb 0x10023f26
push dword [esp + 0x18]
call fcn.1002501c
add esp, 4
cmp dword [esp + 0x44], 0x10
mov dword [esp + 0x2c], 0xf
mov dword [esp + 0x28], 0
mov byte [esp + 0x18], 0
jb 0x10023f4e
push dword [esp + 0x30]
call fcn.1002501c
add esp, 4
mov eax, esi
pop esi
add esp, 0xc
ret
Function at 0x10023f60
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x100427ee
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x100695e8]
xor eax, esp
mov dword [esp + 0x34], eax
push esi
push edi
mov eax, dword [0x100695e8]
xor eax, esp
push eax
lea eax, [esp + 0x44]
mov dword fs:[0], eax
mov esi, dword [esp + 0x54]
mov ecx, dword [esp + 0x58]
mov dword [esp + 0x24], esi
mov dword [esp + 0x14], 0
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
mov dword [esp + 0x4c], 2
mov byte [esi], 0
cmp dword [esp + 0x70], 0x10
lea edx, [esp + 0x10]
push edx
push 0x20019
lea eax, [esp + 0x64]
cmovae eax, dword [esp + 0x64]
push 0
push eax
push ecx
mov dword [esp + 0x28], 1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100240cf
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
cmp dword [esp + 0x88], 0x10
lea ecx, [esp + 0xc]
push ecx
push 0
mov dword [esp + 0x14], eax
push 0
lea eax, [esp + 0x80]
cmovae eax, dword [esp + 0x80]
push 0
push eax
push dword [esp + 0x24]
mov byte [esp + 0x64], 3
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x100240cf
push dword [esp + 0xc]
lea ecx, [esp + 0x1c]
call fcn.1001ecb0
mov edi, dword [esp + 0x18]
cmp dword [esp + 0x88], 0x10
lea ecx, [esp + 0xc]
push ecx
push edi
push 0
lea eax, [esp + 0x80]
cmovae eax, dword [esp + 0x80]
push 0
push eax
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x100240c2
mov ecx, dword [esp + 0x1c]
mov eax, ecx
sub eax, edi
test eax, eax
jle 0x100240c2
push dword [esp + 0x24]
lea eax, [ecx - 1]
push eax
push edi
lea ecx, [esp + 0x34]
mov dword [esp + 0x48], 0xf
mov dword [esp + 0x44], 0
mov byte [esp + 0x34], 0
call fcn.10024140
lea eax, [esp + 0x28]
push eax
mov ecx, esi
call fcn.1001b020
lea ecx, [esp + 0x28]
call fcn.1000e900
test edi, edi
je 0x100240cf
push edi
call fcn.1002501c
add esp, 4
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [esp + 0x70], 0x10
jb 0x100240ec
push dword [esp + 0x5c]
call fcn.1002501c
add esp, 4
cmp dword [esp + 0x88], 0x10
mov dword [esp + 0x70], 0xf
mov dword [esp + 0x6c], 0
mov byte [esp + 0x5c], 0
jb 0x10024117
push dword [esp + 0x74]
call fcn.1002501c
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.10026aaf
add esp, 0x44
ret
Function at 0x10037b0a
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x100695e8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.1002a7e2
mov dword [ebp - 0x14], eax
cmp dword [0x1006c838], edi
jne 0x10037bfb
push 0x800
push edi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x10037b88
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x10037cdb
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x10037cdb
push str.MessageBoxW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10037cdb
push eax
call ebx
push str.GetActiveWindow
push esi
mov dword [0x1006c838], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x1006c83c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x1006c840], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x1006c848], eax
test eax, eax
je 0x10037bf8
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x1006c844], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x10037c20
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x10037c13
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x10037c35
push 4
pop eax
jmp 0x10037cdd
cmp dword [ebp - 0x14], edi
je 0x10037c35
push dword [0x1006c838]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x10037c1a
mov eax, dword [0x1006c844]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x10037c93
cmp dword [0x1006c848], esi
je 0x10037c93
push eax
call ebx
push dword [0x1006c848]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x10037c93
test eax, eax
je 0x10037c93
call ecx
test eax, eax
je 0x10037c88
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x10037c88
test byte [ebp - 8], 1
jne 0x10037c93
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x10037cc3
mov eax, dword [0x1006c83c]
cmp eax, esi
je 0x10037cc0
push eax
call ebx
test eax, eax
je 0x10037cc0
call eax
mov edi, eax
test edi, edi
je 0x10037cc0
mov eax, dword [0x1006c840]
cmp eax, esi
je 0x10037cc0
push eax
call ebx
test eax, eax
je 0x10037cc0
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x1006c838]
call ebx
test eax, eax
je 0x10037cdb
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x10037cdd
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10026aaf
leave
ret
Function at 0x1003a07d
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.1002ee00
mov esi, dword [ebp + 8]
push 2
mov edi, eax
lea eax, [ebp - 4]
push eax
mov ecx, esi
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x1003a0b5
xor eax, eax
jmp 0x1003a0e1
cmp esi, dword [ebp - 4]
je 0x1003a0de
cmp dword [ebp + 0xc], 0
je 0x1003a0de
push dword [edi + 0x9c]
call fcn.10039c8b
push dword [edi + 0x9c]
mov esi, eax
call fcn.1002ab7c
pop ecx
pop ecx
cmp esi, eax
je 0x1003a0b1
xor eax, eax
inc eax
pop edi
pop esi
leave
ret