joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5c053c
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeec
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x5c06fe
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0040456c
mov edx, eax
mov eax, dword [ebp - 8]
call fcn.004048f8
mov eax, dword [ebp - 8]
mov eax, dword [eax]
call fcn.0040456c
test eax, eax
jle 0x5c059e
mov dword [ebp - 0x14], eax
mov ebx, 1
mov eax, dword [ebp - 8]
call fcn.004047c4
mov byte [eax + ebx - 1], 0
inc ebx
dec dword [ebp - 0x14]
jne 0x5c058b
xor ebx, ebx
lea eax, [ebp - 0x114]
mov byte [eax], bl
inc ebx
inc eax
cmp ebx, 0x100
jne 0x5c05a6
push pe_nt_image_headers32
lea eax, [ebp - 0xc]
mov ecx, 1
mov edx, dword [0x5c050c]
call fcn.00405974
add esp, 4
mov eax, esi
call fcn.0040456c
mov ecx, eax
xor ebx, ebx
mov eax, ebx
cdq
idiv ecx
mov al, byte [esi + edx]
mov edx, dword [ebp - 0xc]
mov byte [edx + ebx], al
inc ebx
cmp ebx, 0x100
jne 0x5c05d8
xor edi, edi
xor esi, esi
lea edx, [ebp - 0x114]
mov ecx, dword [ebp - 0xc]
movzx ecx, byte [ecx + esi]
mov al, byte [edx]
xor ebx, ebx
mov bl, al
add edi, ebx
add ecx, edi
and ecx, 0x800000ff
jns 0x5c061a
dec ecx
or ecx, 0xffffff00
inc ecx
mov edi, ecx
mov cl, byte [ebp + edi - 0x114]
mov byte [edx], cl
mov byte [ebp + edi - 0x114], al
inc esi
inc edx
cmp esi, 0x100
jne 0x5c05f9
xor esi, esi
xor edi, edi
mov eax, dword [ebp - 4]
call fcn.0040456c
test eax, eax
jle 0x5c06e2
mov dword [ebp - 0x14], eax
mov ebx, 1
inc esi
and esi, 0x800000ff
jns 0x5c0663
dec esi
or esi, 0xffffff00
inc esi
mov al, byte [ebp + esi - 0x114]
xor edx, edx
mov dl, al
add edi, edx
and edi, 0x800000ff
jns 0x5c0680
dec edi
or edi, 0xffffff00
inc edi
mov dl, byte [ebp + edi - 0x114]
mov byte [ebp + esi - 0x114], dl
mov byte [ebp + edi - 0x114], al
xor eax, eax
mov al, byte [ebp + esi - 0x114]
xor edx, edx
mov dl, byte [ebp + edi - 0x114]
add eax, edx
and eax, 0xff
mov edx, dword [ebp - 4]
movzx edx, byte [edx + ebx - 1]
mov dword [ebp - 0x10], edx
and eax, 0xff
movzx eax, byte [ebp + eax - 0x114]
xor dword [ebp - 0x10], eax
mov eax, dword [ebp - 8]
call fcn.004047c4
mov dl, byte [ebp - 0x10]
mov byte [eax + ebx - 1], dl
inc ebx
dec dword [ebp - 0x14]
jne 0x5c0652
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5c0705
lea eax, [ebp - 0xc]
mov edx, dword [0x5c050c]
call fcn.00405a94
ret
Function at 0x5c1324
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffc8
mov esi, eax
cmp byte [esi + 0xa1], 0
jne 0x5c14f2
cmp dword [esi + 0x3c], 0
je 0x5c14f2
mov edi, dword [esi + 0x3c]
xor ebp, ebp
xor ecx, ecx
mov edx, 0x5c1514
mov eax, edi
call fcn.004c8500
mov ebx, eax
mov eax, ebx
mov edx, dword [0x4c7dcc]
call fcn.00403628
test al, al
je 0x5c1373
mov eax, ebx
call fcn.004cc0b4
mov ebx, eax
mov eax, ebx
mov edx, dword [0x4c7bfc]
call fcn.00403628
test al, al
je 0x5c1388
mov ebp, ebx
jmp 0x5c13c9
xor ecx, ecx
mov edx, 0x5c1528
mov eax, edi
call fcn.004c8500
mov ebx, eax
mov eax, ebx
mov edx, dword [0x4c7dcc]
call fcn.00403628
test al, al
je 0x5c13b2
mov eax, ebx
call fcn.004cc0b4
mov ebx, eax
mov eax, ebx
mov edx, dword [0x4c7930]
call fcn.00403628
test al, al
je 0x5c13c7
mov edi, ebx
jmp 0x5c13c9
xor edi, edi
test ebp, ebp
jne 0x5c13d5
test edi, edi
jne 0x5c1349
test ebp, ebp
je 0x5c146b
xor eax, eax
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
xor eax, eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
xor edx, edx
mov eax, ebp
call fcn.004cb1f4
mov ebx, eax
mov eax, ebx
mov edi, dword [0x4c7ad4]
mov edx, edi
call fcn.00403628
test al, al
je 0x5c141b
mov eax, ebx
call fcn.004caad0
fstp qword [esp + 8]
wait
mov edx, 2
mov eax, ebp
call fcn.004cb1f4
mov ebx, eax
mov eax, ebx
mov edx, edi
call fcn.00403628
test al, al
je 0x5c1442
mov eax, ebx
call fcn.004caad0
fstp qword [esp + 0x10]
wait
fld qword [esp + 0x10]
fcomp qword [esp + 8]
fnstsw ax
sahf
jb 0x5c145d
fld qword [esp + 0x10]
fsub qword [esp + 8]
fstp qword [esp]
wait
jmp 0x5c14dc
fld qword [esp + 8]
fsub qword [esp + 0x10]
fstp qword [esp]
wait
jmp 0x5c14dc
mov eax, esi
call fcn.005c2190
mov edx, 0x5c1514
mov eax, dword [esi + 0x3c]
call fcn.004c8798
mov eax, dword [esi + 0x10]
mov dword [esp], eax
mov eax, dword [esi + 0x14]
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
xor eax, eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov eax, dword [esi + 0x10]
mov dword [esp + 0x28], eax
mov eax, dword [esi + 0x14]
mov dword [esp + 0x2c], eax
mov eax, dword [esi + 0x18]
mov dword [esp + 0x30], eax
mov eax, dword [esi + 0x1c]
mov dword [esp + 0x34], eax
lea edx, [esp + 0x18]
mov ecx, 3
mov eax, dword [esi + 0x2c]
call fcn.004c911c
mov ecx, eax
mov edx, 0x5c1514
mov eax, dword [esi + 0x3c]
call fcn.004c8248
mov byte [esi + 0xa1], 1
mov eax, dword [esp]
mov dword [esi + 0x78], eax
mov eax, dword [esp + 4]
mov dword [esi + 0x7c], eax
jmp 0x5c14ff
mov eax, dword [esi + 0x78]
mov dword [esp], eax
mov eax, dword [esi + 0x7c]
mov dword [esp + 4], eax
fld qword [esp]
add esp, 0x38
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x62837c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x38]
mov edx, dword [0x614b74]
call fcn.00404e68
xor eax, eax
push ebp
push 0x6284f2
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x38]
xor edx, edx
call fcn.004a8af0
fstp st(0)
mov eax, dword [ebp - 8]
mov eax, dword [eax + 8]
dec eax
test eax, eax
jl 0x6283f7
inc eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0xc], 0
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
call fcn.0041b390
mov ebx, eax
mov eax, ebx
call fcn.0061c0b0
xor al, 1
mov byte [ebx + 0x58], al
xor eax, eax
mov dword [ebx + 0x5c], eax
inc dword [ebp - 0xc]
dec dword [ebp - 0x18]
jne 0x6283d1
mov eax, dword [ebp - 8]
mov eax, dword [eax + 8]
dec eax
test eax, eax
jl 0x628469
inc eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0xc], 0
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
call fcn.0041b390
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
cmp byte [eax + 0x58], 0
je 0x628461
mov eax, dword [ebp - 8]
mov edi, dword [eax + 8]
dec edi
test edi, edi
jl 0x628461
inc edi
xor esi, esi
cmp esi, dword [ebp - 0xc]
je 0x62845d
mov edx, esi
mov eax, dword [ebp - 8]
call fcn.0041b390
mov ebx, eax
cmp byte [ebx + 0x58], 0
je 0x62845d
mov ecx, ebx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.0061dbd0
test al, al
je 0x62845d
inc dword [ebx + 0x5c]
inc esi
dec edi
jne 0x628432
inc dword [ebp - 0xc]
dec dword [ebp - 0x18]
jne 0x62840d
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x38]
mov dl, 1
call fcn.004a8af0
fstp xword [ebp - 0x50]
wait
lea eax, [ebp - 0x50]
mov dword [ebp - 0x44], eax
mov byte [ebp - 0x40], 3
lea edx, [ebp - 0x44]
xor ecx, ecx
mov eax, 0x628508
call fcn.0040a034
mov edx, dword [ebp - 0x3c]
lea eax, [ebp - 0x20]
call fcn.00404344
push 0x628518
push dword [ebp - 0x20]
push 0x628534
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.0040462c
mov ecx, dword [ebp - 0x14]
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.0061d904
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x6284f9
lea eax, [ebp - 0x3c]
call fcn.004042ac
lea eax, [ebp - 0x38]
mov edx, dword [0x614b74]
call fcn.00404f38
lea eax, [ebp - 0x14]
call fcn.004042ac
ret
Function at 0x8721ff
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
push 0
push 0
push 0
lea ecx, [ebp - 0x18]
call fcn.0087230f
push 0
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 4]
push eax
call sub.gdiplus.dll_GdiplusStartup
mov dword [ebp - 0x48], 0x30
and dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0x871ed4
and dword [ebp - 0x3c], 0
and dword [ebp - 0x38], 0
mov eax, dword [section..data]
mov dword [ebp - 0x34], eax
push 0x74
push 0
call dword [sym.imp.USER32.dll_LoadIconW]
mov dword [ebp - 0x30], eax
push 0x7f00
push 0
call dword [sym.imp.USER32.dll_LoadCursorW]
mov dword [ebp - 0x2c], eax
and dword [ebp - 0x28], 0
and dword [ebp - 0x24], 0
mov dword [ebp - 0x20], str.MyClass
and dword [ebp - 0x1c], 0
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.USER32.dll_RegisterClassExW]
push 0
push dword [section..data]
push 0
push 0
push 0x80000000
push 0x80000000
push 0x80000000
push 0x80000000
push 0xcf0000
push str.Hello_World
push str.MyClass
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [ebp - 8], eax
push 0
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_UpdateWindow]
push 0
push 0
push 0
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
je 0x8722ec
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
jmp 0x8722cc
push dword [ebp - 4]
call sub.gdiplus.dll_GdiplusShutdown
leave
ret

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

Disassembly:
pushal
call 0x43000c
nop
nop
nop
nop
pop eax
nop
nop
add eax, 0x403d6f
sub eax, 0x403d15
nop
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x430030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43001e
nop
nop
popal
nop
nop
nop
nop
nop
jmp loc.00401219
Function at 0x40ea38
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40eb0d
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x40eb28
push ebx
push 0x40eb38
push esi
lea eax, [ebp - 4]
mov edx, 4
call fcn.0040513c
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x44
call fcn.00403250
mov dword [ebp - 0x48], 0x44
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00404d24
push eax
push 0
call sub.kernel32.dll_CreateProcessW
test eax, eax
jne 0x40eab8
mov al, 0x6a
call fcn.0040e658
mov eax, dword [ebp - 0x54]
push eax
call sub.kernel32.dll_CloseHandle_1
call fcn.0040ea0c
push 0xff
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x58]
push eax
push 1
call sub.user32.dll_MsgWaitForMultipleObjects
cmp eax, 1
je 0x40eac1
call fcn.0040ea0c
push edi
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_GetExitCodeProcess
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40eb14
lea eax, [ebp - 4]
call fcn.00404c88
ret

Function at 0x40ec28
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffb4
mov dword [esp], eax
lea esi, [esp + 0x30]
lea eax, [esp + 0xc]
push eax
call sub.kernel32.dll_GetSystemInfo_1
mov edi, dword [esp]
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery_1
test eax, eax
je 0x40ecf3
jmp 0x40ece7
cmp dword [esi + 0x10], 0x1000
jne 0x40ecd3
test byte [esi + 0x15], 1
jne 0x40ecd3
mov byte [esp + 4], 0
mov ebp, dword [esi + 0x14]
cmp ebp, 1
je 0x40ec84
cmp ebp, 2
je 0x40ec84
cmp ebp, 0x10
je 0x40ec84
cmp ebp, 0x20
jne 0x40eca0
lea eax, [esp + 8]
push eax
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x40eca0
mov byte [esp + 4], 1
xor ebx, ebx
jmp 0x40ecb1
mov eax, dword [esi]
add eax, ebx
call fcn.0040ec20
add ebx, dword [esp + 0x10]
cmp ebx, dword [esi + 0xc]
jb 0x40eca4
cmp byte [esp + 4], 0
je 0x40ecd3
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 0xc]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov edi, eax
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery_1
test eax, eax
je 0x40ecf3
mov eax, dword [esi + 4]
cmp eax, dword [esp]
je 0x40ec59
add esp, 0x4c
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x43b65a
Capabilities:
Encode data using xor

Disassembly:
push 0x43b3c1
pop ebx
push ecx
pop eax
call fcn.0043b69a
inc eax
inc ecx
xor dword [esi], ebx
add eax, 1
add esi, 1
or ecx, ecx
add ecx, 0x973bf515
cmp esi, edx
jne fcn.0043b65a
and ecx, ecx
push 0x8cea791
pop eax
add eax, 1
ret
Function at 0x100014f0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100256a1
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x10054014]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov esi, ecx
mov eax, dword fs:[0x2c]
mov ecx, dword [0x10055508]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x10055cbc]
cmp eax, dword [ecx + 4]
jle 0x1000166d
push 0x10055cbc
call fcn.1001151c
add esp, 4
cmp dword [0x10055cbc], 0xffffffff
jne 0x1000166d
mov dword [ebp - 4], 0
push 0x400
mov dword [0x10055cc0], 0
mov dword [0x10055cc4], 0
mov dword [0x10055cc8], 0
call fcn.100113b9
push 0x400
push 0
push eax
lea edi, [eax + 0x400]
mov dword [0x10055cc0], eax
mov dword [0x10055cc8], edi
call fcn.10012f70
add esp, 0x10
mov dword [0x10055cc4], edi
xor edi, edi
nop dword [eax]
mov ecx, edi
mov eax, edi
shr ecx, 1
mov edx, ecx
xor edx, 0xedb88320
test al, 1
cmove edx, ecx
mov eax, edx
shr eax, 1
mov ecx, eax
xor ecx, 0xedb88320
test dl, 1
cmove ecx, eax
mov eax, ecx
shr eax, 1
mov edx, eax
xor edx, 0xedb88320
test cl, 1
cmove edx, eax
mov eax, edx
shr eax, 1
mov ecx, eax
xor ecx, 0xedb88320
test dl, 1
cmove ecx, eax
mov eax, ecx
shr eax, 1
mov edx, eax
xor edx, 0xedb88320
test cl, 1
cmove edx, eax
mov eax, edx
shr eax, 1
mov ecx, eax
xor ecx, 0xedb88320
test dl, 1
cmove ecx, eax
mov eax, ecx
shr eax, 1
mov edx, eax
xor edx, 0xedb88320
test cl, 1
cmove edx, eax
mov eax, edx
shr eax, 1
mov ecx, eax
xor ecx, 0xedb88320
test dl, 1
cmove ecx, eax
mov eax, dword [0x10055cc0]
mov dword [eax + edi*4], ecx
inc edi
cmp edi, 0x100
jb 0x100015b0
push 0x10025e70
call fcn.100118f7
push 0x10055cbc
call fcn.100114d2
add esp, 8
mov edx, dword [ebp + 8]
xor ecx, ecx
not esi
test edx, edx
je 0x10001694
mov edi, dword [0x10055cc0]
nop
movzx eax, byte [ecx + ebx]
inc ecx
xor eax, esi
shr esi, 8
movzx eax, al
xor esi, dword [edi + eax*4]
cmp ecx, edx
jb 0x10001680
not esi
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1000fea0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10025cd0
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x10054014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
xor esi, esi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x34]
mov dword [ebp - 0x2c], esi
push eax
lea eax, [ebp - 0x2c]
push eax
push esi
push 0x20106
push esi
push esi
push esi
push str.SoftwareTraceyTech
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1000ff07
mov esi, dword [ebp - 0x2c]
mov dword [ebp - 4], 0xffffffff
test eax, eax
jne 0x1001001f
test edi, edi
jne 0x1000ff1f
lea ebx, [eax + 0xd]
jmp 0x1000ff4e
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1000ff24
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edi
push 1
push 0
push 0x1004da94
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x1000ff5b
push esi
call edi
test ebx, ebx
jne 0x1001002a
mov eax, dword [ebp - 0x30]
or ecx, 0xffffffff
mov edx, dword [ebp + 8]
add eax, eax
push eax
call fcn.100014f0
add esp, 4
mov ebx, eax
xor esi, esi
lea eax, [ebp - 0x34]
mov dword [ebp - 0x2c], esi
push eax
lea eax, [ebp - 0x2c]
push eax
push esi
push 0x20106
push esi
push esi
push esi
push str.CLSID905656A0_04A5_4F35_954A_82191486BD68
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1000ffa6
mov esi, dword [ebp - 0x2c]
mov dword [ebp - 4], 0xffffffff
test eax, eax
jne 0x1000ffca
push 4
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], ebx
push eax
push 4
push 0
push 0x1004da94
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test esi, esi
je 0x1000ffd1
push esi
call edi
mov edx, 0x1004da94
lea ecx, [ebp - 0x28]
call fcn.1000fa40
mov ecx, dword [ebp - 0x14]
cmp dword [eax + 0x10], 0
setne bl
cmp ecx, 8
jb 0x1001001b
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10010011
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10010048
push ecx
push edx
call fcn.100113ab
add esp, 8
mov al, bl
jmp 0x1001002c
test esi, esi
je 0x1001002a
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1001137a
mov esp, ebp
pop ebp
ret
call fcn.1001609f
int3

Function at 0x10017981
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x100179c0
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x100179c0
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x100179c0
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x100179c0
cmp dword [ecx + 0x74], 0xe
jbe 0x100179c0
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x1001b8c8
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100463f0
push 0x100463e8
push str.FlsAlloc
push 0x1f
call fcn.1001b790
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001b8fc
push dword [ebp + 8]
mov ecx, esi
call dword [0x10026170]
call esi
jmp 0x1001b902
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1001b946
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10046400
push 0x100463f8
push str.FlsGetValue
push 0x21
call fcn.1001b790
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001b97d
push dword [ebp + 8]
mov ecx, esi
call dword [0x10026170]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1001b985
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10046408
push 0x10046400
push str.FlsSetValue
push 0x22
call fcn.1001b790
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001b9bf
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x10026170]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x1001f981
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 0x1001fa1e
push ebx
push esi
call fcn.1001f94a
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.1001e69e
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1001f9cb
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1001fa1d
push edi
push eax
call fcn.1001ae03
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1001f9eb
call fcn.1001ac13
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1001fa1c
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1001e69e
add esp, 0x20
test eax, eax
jne 0x1001fa0a
push edi
call fcn.1001ac13
jmp 0x1001fa12
push ebx
call fcn.1001ac13
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 0x10021ede
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.10018f6c
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 0x10021f4d
cmp esi, dword [ebp - 4]
je 0x10021f48
cmp dword [ebp + 0xc], 0
je 0x10021f48
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x10021f25
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.10021a30
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x10021f4f
xor eax, eax
inc eax
jmp 0x10021f4f
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x10021fb4
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x10054014]
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.10018f6c
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.10018f6c
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 0x1002202b
cmp word [ecx], dx
je 0x1002202b
mov eax, dword [0x10046c04]
push edi
dec eax
push eax
push 0x10046af0
call fcn.10021f53
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x1002209e
cmp word [eax], dx
je 0x1002209e
mov eax, dword [edi]
test eax, eax
je 0x1002204f
cmp word [eax], dx
je 0x1002204f
lea eax, [ebp - 0x10]
push eax
call fcn.10021936
jmp 0x10022058
lea eax, [ebp - 0x10]
push eax
call fcn.100219d1
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x100220c8
mov eax, dword [0x10046aec]
push dword [ebp - 0x14]
dec eax
push eax
push 0x100467e0
call fcn.10021f53
add esp, 0xc
test al, al
je 0x100220c8
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x10022093
cmp word [eax], di
je 0x10022093
lea eax, [ebp - 0x10]
push eax
call fcn.10021936
pop ecx
jmp 0x100220ca
lea eax, [ebp - 0x10]
push eax
call fcn.100219d1
jmp 0x10022090
mov eax, dword [edi]
test eax, eax
je 0x100220b5
cmp word [eax], dx
je 0x100220b5
lea eax, [ebp - 0x10]
push eax
call fcn.100218eb
pop ecx
jmp 0x100220c8
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 0x10022193
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.10021dd8
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x10022193
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x10022193
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x10022193
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x10022120
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.1001bac5
test ebx, ebx
je 0x1002218e
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.1001bac5
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x10022193
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 0x10022193
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.1002439f
add esp, 0x10
xor eax, eax
inc eax
jmp 0x10022195
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1001137a
leave
ret