joyce8/EMBER2024-capa huggingface dataset:
Function at 0x112de30
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov edx, dword [ebp + 0x18]
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
neg edx
push esi
sbb edx, edx
lea ecx, [ebp - 4]
push ecx
and edx, 0x200
or edx, 0x20019
push edx
push 0
push eax
mov eax, dword [ebp + 8]
push eax
mov dword [ebp - 4], 0
mov dword [ebp - 8], 4
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x112de91
mov ecx, dword [ebp + 0x10]
mov eax, dword [ecx]
mov ecx, dword [ebp + 0x14]
lea edx, [ebp - 8]
push edx
mov edx, dword [ebp - 4]
push ecx
push esi
push esi
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
mov eax, dword [ebp - 4]
test eax, eax
je 0x112de9f
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 0x14
Function at 0x112e7d0
Capabilities:
Encrypt data using dpapi

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x114756b
mov eax, dword fs:[0]
push eax
sub esp, 0x178
mov eax, dword [0x115f604]
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 esi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
xor edi, edi
push 0x48
lea eax, [ebp - 0x5a]
push edi
push eax
mov dword [ebp - 0x16c], edi
mov dword [ebp - 0x174], edi
mov dword [ebp - 0x170], edi
mov word [ebp - 0x5c], di
call fcn.01084910
push edi
push 0x106a8d0
lea ecx, [ebp - 0x16c]
push ecx
push 0x106a878
lea edx, [ebp - 0x168]
push 2
push edx
call fcn.01075110
add esp, 0x24
cmp esi, edi
mov dword [ebp - 4], edi
je 0x112e955
cmp word [esi], di
je 0x112e955
mov eax, esi
mov dword [ebp - 0x180], esi
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x112e870
sub eax, edx
push 0x106a828
sar eax, 1
push 0x25
lea ecx, [ebp - 0x5c]
lea eax, [eax + eax + 2]
push ecx
mov dword [ebp - 0x184], eax
call fcn.010733a0
xor eax, eax
jmp 0x112e8a0
shl word [ebp + eax*2 - 0x5c], 2
add eax, 1
cmp eax, 0x25
jb 0x112e8a0
lea edx, [ebp - 0x5c]
mov eax, edx
mov dword [ebp - 0x178], edx
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x112e8c0
lea ecx, [ebp - 0x174]
push ecx
push 1
sub eax, edx
push edi
sar eax, 1
push edi
lea eax, [eax + eax + 2]
lea edx, [ebp - 0x17c]
push edx
mov dword [ebp - 0x17c], eax
push 0x106a818
lea eax, [ebp - 0x184]
push eax
call dword [sym.imp.CRYPT32.dll_CryptProtectData]
test eax, eax
jne 0x112e91f
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x112e911
call esi
jmp 0x112e976
call esi
and eax, 0xffff
or eax, 0x80070000
jmp 0x112e976
mov eax, dword [ebx + 4]
test eax, eax
mov edi, dword [ebp - 0x174]
mov esi, dword [ebp - 0x170]
je 0x112e940
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebx + 4], 0
xor eax, eax
cmp esi, eax
mov dword [ebx], eax
mov dword [ebx + 8], eax
je 0x112e976
mov dword [ebx + 4], esi
mov dword [ebx], edi
mov dword [ebx + 8], edi
jmp 0x112e976
call fcn.01127f00
test al, al
je 0x112e971
push 0x106a7c8
push 0x106a770
push edi
call fcn.01128b70
add esp, 0xc
mov eax, 0x80070057
lea ecx, [ebp - 0x168]
mov dword [ebp - 0x16c], eax
mov esi, eax
mov dword [ebp - 4], 0xffffffff
call fcn.01075230
mov eax, esi
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.010840d6
mov esp, ebp
pop ebp
ret 8
Function at 0x112f400
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1147698
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x115f604]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
mov dword [ebp - 0x14], edi
mov ebx, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
push 0x20019
push edi
push ebx
push ecx
mov byte [ebp - 4], 2
mov dword [ebp - 0x10], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
jne 0x112f525
mov eax, dword [ebp + 0x14]
mov ebx, dword [ebp - 0x10]
lea edx, [ebp + 8]
push edx
mov edx, dword [ebp + 0x10]
push eax
lea ecx, [ebp + 0x14]
push ecx
push esi
push edx
mov edi, 4
push ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp + 8], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x112f556
test eax, eax
mov esi, eax
jle 0x112f499
and esi, 0xffff
or esi, 0x80070000
call fcn.01127f00
test al, al
je 0x112f4bb
mov eax, dword [ebp + 0x10]
push esi
push eax
push 0x106b578
push 0x106b520
push 0
call fcn.01128b70
add esp, 0x14
test ebx, ebx
je 0x112f4c6
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x112f4e9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x112f50f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
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 0x14
jle 0x112f531
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
call fcn.01127f00
test al, al
je 0x112f4c6
push esi
push ebx
push 0x106b4a0
push 0x106b448
push edi
call fcn.01128b70
add esp, 0x14
jmp 0x112f4c6
cmp dword [ebp + 0x14], edi
je 0x112f4bb
mov esi, 0xd
jmp 0x112f48d
Function at 0x112f650
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov edx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
lea eax, [ebp + 8]
push eax
xor esi, esi
lea ecx, [ebp - 4]
push ecx
push esi
push 0x2001f
push esi
push esi
push esi
push ebx
push edx
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, esi
jne 0x112f705
mov ecx, dword [ebp + 0x14]
mov eax, dword [ebp - 4]
push edi
push 4
lea edx, [ebp + 0xc]
push edx
push 4
mov dword [ebp + 0xc], ecx
mov ecx, dword [ebp + 0x10]
push esi
push ecx
push eax
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x112f6b4
jle 0x112f6b2
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
test edi, edi
je 0x112f6bf
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
lea eax, [ebx - 0x10]
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x112f6dc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x112f6fb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
jg 0x112f70b
mov esi, eax
jmp 0x112f6c0
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
jmp 0x112f6c0
Function at 0x112f720
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov edx, dword [ebp + 0xc]
push ebx
push edi
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp + 8]
xor edi, edi
lea ecx, [ebp - 4]
push ecx
push edi
push 0x2001f
push edi
push edi
push edi
push edx
push eax
mov dword [ebp - 4], edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, edi
mov ebx, dword [ebp + 0x14]
jne 0x112f768
test ebx, ebx
push esi
mov esi, dword [ebp - 4]
mov dword [ebp + 8], esi
jne 0x112f77c
push 0x80004005
call fcn.01071710
jg 0x112f76e
mov edi, eax
jmp 0x112f7b9
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
jmp 0x112f7b9
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edx, dword [ebp + 0x10]
lea ecx, [eax + eax + 2]
push ecx
push ebx
push 1
push 0
push edx
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
pop esi
je 0x112f7ab
jle 0x112f7a9
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
mov eax, dword [ebp + 8]
test eax, eax
je 0x112f7b9
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x112f7d8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x112f7f7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebx - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x112f813
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x1130770
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x11478eb
mov eax, dword fs:[0]
push eax
sub esp, 0x220
mov eax, dword [0x115f604]
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 + 0x14]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x224], eax
xor ebx, ebx
mov dword [ebp - 4], ebx
xor edi, edi
push 0x208
lea ecx, [ebp - 0x21a]
push ebx
push ecx
mov byte [ebp - 4], 2
mov word [ebp - 0x21c], bx
call fcn.01084910
mov eax, dword [ebp + 0xc]
add esp, 0xc
lea edx, [ebp - 0x220]
push edx
push 0x20019
push ebx
push eax
push esi
mov dword [ebp - 0x228], 0x104
mov dword [ebp - 0x220], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x113082e
mov eax, dword [ebp + 0x10]
mov esi, dword [ebp - 0x220]
lea ecx, [ebp - 0x228]
push ecx
lea edx, [ebp - 0x21c]
push edx
push ebx
push ebx
push eax
push esi
mov dword [ebp - 0x22c], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, ebx
je 0x1130850
jg 0x1130842
mov edi, eax
jmp 0x1130862
jg 0x1130834
mov edi, eax
jmp 0x113086d
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
jmp 0x113086d
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
jmp 0x1130862
lea ecx, [ebp - 0x21c]
push ecx
mov ecx, dword [ebp - 0x224]
call fcn.0107f660
cmp esi, ebx
je 0x113086d
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
mov byte [ebp - 4], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x113088f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x11308b5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
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.010840d6
mov esp, ebp
pop ebp
ret 0x10
Function at 0x1130be0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1147976
mov eax, dword fs:[0]
push eax
sub esp, 0x12c
mov eax, dword [0x115f604]
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 + 0x14]
mov edx, dword [0x1161d94]
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x138], eax
xor eax, eax
mov dword [ebp - 0x120], eax
mov dword [ebp - 0x12c], eax
mov eax, dword [edx + 0xc]
mov ecx, 0x1161d94
call eax
add eax, 0x10
mov dword [ebp - 0x128], eax
xor eax, eax
mov dword [ebp - 0x124], eax
push eax
push 0x106c350
lea ecx, [ebp - 0x120]
push ecx
push 0x106c2f8
lea edx, [ebp - 0x11c]
push 2
push edx
mov dword [ebp - 4], eax
mov dword [ebp - 0x134], eax
mov dword [ebp - 0x130], eax
call fcn.01075110
add esp, 0x18
test esi, esi
mov byte [ebp - 4], 1
je 0x1130cf3
push 0xffffffffffffffff
push esi
push 0
lea ecx, [ebp - 0x12c]
call fcn.010c8ad0
test eax, eax
jne 0x1130cf3
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x1130cad
call esi
jmp 0x1130cb9
call esi
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x120], eax
call fcn.01127f00
test al, al
je 0x1130ce3
mov eax, dword [ebp - 0x120]
push eax
push 0x1047c30
push 0x106c2a0
push 0
call fcn.01128b70
add esp, 0x10
mov eax, 0x80048006
mov dword [ebp - 0x120], eax
jmp 0x1130d93
lea ecx, [ebp - 0x134]
push ecx
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0x1130d77
cmp esi, 0x1000
jbe 0x1130d2f
mov eax, 0x8000ffff
mov dword [ebp - 0x120], eax
jmp 0x1130d93
call esi
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x120], eax
jmp 0x1130d93
push esi
mov ecx, edi
call fcn.010d3c70
mov eax, dword [edi]
test eax, eax
jne 0x1130d4a
mov eax, 0x8007000e
mov dword [ebp - 0x120], eax
jmp 0x1130d93
push eax
push esi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x1130d77
mov eax, dword [ebp - 0x138]
mov edi, dword [edi]
lea edx, [ebp - 0x130]
push edx
push eax
push 0x100e2bc
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
jne 0x1130d8d
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x1130d1b
call esi
mov dword [ebp - 0x120], eax
jmp 0x1130d93
mov eax, dword [ebp - 0x120]
lea ecx, [ebp - 0x11c]
mov edi, eax
mov byte [ebp - 4], 0
call fcn.01075230
cmp dword [ebp - 0x12c], 0
mov esi, dword [ebp - 0x124]
mov dword [ebp - 4], 0xffffffff
je 0x1130dc5
test esi, esi
je 0x1130dd0
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
test esi, esi
je 0x1130dd0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x128]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1130df2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
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.010840d6
mov esp, ebp
pop ebp
ret 0x10
Function at 0x1132c90
Capabilities:
Encrypt data using dpapi

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x115f604]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x18]
push 0
push 0x106d2c0
lea ecx, [ebp - 0x114]
push ecx
push 0x106d260
lea edx, [ebp - 0x110]
push 2
push edx
mov dword [ebp - 0x118], eax
mov dword [ebp - 0x114], 0
call fcn.01075110
add esp, 0x18
test esi, esi
je 0x1132d17
test edi, edi
je 0x1132d17
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x118]
push edi
push eax
push 0
push 0
push ecx
push ebx
push esi
call dword [sym.imp.CRYPT32.dll_CryptProtectData]
test eax, eax
jne 0x1132d21
call fcn.01071a70
mov dword [ebp - 0x114], eax
jmp 0x1132d21
mov dword [ebp - 0x114], 0x80070057
mov esi, dword [ebp - 0x114]
lea ecx, [ebp - 0x110]
call fcn.01075230
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.010840d6
mov esp, ebp
pop ebp
ret 0x14

Function at 0x1132d50
Capabilities:
Encrypt data using dpapi

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x115f604]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x14]
push 0
push 0x106d358
lea eax, [ebp - 0x114]
push eax
push 0x106d2f8
lea ecx, [ebp - 0x110]
push 2
push ecx
mov dword [ebp - 0x114], 0
call fcn.01075110
add esp, 0x18
test esi, esi
je 0x1132dc9
test edi, edi
je 0x1132dc9
mov edx, dword [ebp + 0x10]
push edi
push edx
push 0
push 0
push ebx
push 0
push esi
call dword [sym.imp.CRYPT32.dll_CryptUnprotectData]
test eax, eax
jne 0x1132dd3
call fcn.01071a70
mov dword [ebp - 0x114], eax
jmp 0x1132dd3
mov dword [ebp - 0x114], 0x80070057
mov esi, dword [ebp - 0x114]
lea ecx, [ebp - 0x110]
call fcn.01075230
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.010840d6
mov esp, ebp
pop ebp
ret 0x10
Function at 0x11356a0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1147fb3
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x115f604]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
xor edi, edi
mov dword [ebp - 0x1c], 0x100abd8
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
cmp dword [ebp + 0x20], ebx
mov dword [ebp - 4], ebx
jne 0x1135722
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp + 0x14]
push eax
mov eax, dword [ebp + 0x10]
push ecx
mov ecx, dword [ebp + 0xc]
push edx
mov edx, dword [ebp + 8]
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_CreateThread]
lea ecx, [ebp - 0x1c]
mov esi, eax
call fcn.01097430
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 0x1c
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
lea ecx, [ebp + 0x20]
push ecx
push 1
push 0xe
push eax
call dword [sym.imp.ADVAPI32.dll_OpenThreadToken]
test eax, eax
je 0x1135778
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 4]
lea ecx, [ebp - 0x1c]
call eax
mov ecx, dword [ebp + 0x20]
push 0x1c
mov dword [ebp - 0x18], ecx
call fcn.01084a6d
add esp, 4
mov dword [ebp + 0x20], eax
cmp eax, ebx
mov byte [ebp - 4], 1
je 0x11357cf
mov ecx, dword [ebp + 0x14]
lea edx, [ebp - 0x1c]
push edx
mov edx, dword [ebp + 0x10]
push ecx
push edx
mov ecx, eax
call fcn.01135590
mov esi, eax
jmp 0x11357d1
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0x3f0
je 0x11357b2
call esi
cmp eax, ebx
je 0x1135794
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea ecx, [ebp - 0x1c]
call fcn.01097430
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
mov edx, dword [ebp + 0x1c]
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x14]
push edx
mov edx, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 0xc]
push ecx
mov ecx, dword [ebp + 8]
push edx
push eax
push ecx
jmp 0x11356fc
xor esi, esi
cmp esi, ebx
mov byte [ebp - 4], bl
jne 0x11357df
mov eax, 0xe
jmp 0x113578d
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push ecx
push esi
push 0x1135630
push edx
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
cmp edi, ebx
jne 0x1135794
mov ecx, esi
call fcn.011355d0
push esi
call fcn.010838da
add esp, 4
jmp 0x1135794
Function at 0x100129d
Capabilities:
Get geographical location

Disassembly:
call dword [sym.imp.KERNEL32.dll_GetConsoleOutputCP]
sub eax, 0x3a4
je 0x10012f7
sub eax, 4
je 0x10012f0
sub eax, 0xd
je 0x10012e9
dec eax
je 0x10012e2
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
and eax, 0x3ff
cmp ax, 0x11
je 0x10012db
cmp ax, 0x12
je 0x10012db
cmp ax, 4
je 0x10012db
mov eax, 0x400
jmp 0x10012fc
mov eax, 0x409
jmp 0x10012fc
mov eax, 0x404
jmp 0x10012fc
mov eax, 0x412
jmp 0x10012fc
mov eax, 0x804
jmp 0x10012fc
mov eax, 0x411
push ebx
push ebp
push esi
movzx esi, ax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetThreadLocale]
mov edi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
push 0x10
mov ebx, 0x1006ab0
push ebx
push 0xf
push esi
call edi
test eax, eax
mov ebp, dword [sym.imp.msvcrt.dll_wcscpy]
jne 0x1001331
push 0x1001130
push ebx
call ebp
pop ecx
pop ecx
push 0x10
mov ebx, 0x1004a80
push ebx
push 0xe
push esi
call edi
test eax, eax
jne 0x100134c
push 0x100112c
push ebx
call ebp
pop ecx
pop ecx
mov esi, dword [sym.imp.KERNEL32.dll_GetStdHandle]
push 0xfffffffffffffff6
call esi
push 0
mov dword [0x1007ae0], eax
call fcn.01001240
push 0xfffffffffffffff5
mov dword [0x1006ac0], eax
call esi
push 1
mov dword [0x1007ae8], eax
call fcn.01001240
push 0xfffffffffffffff4
mov dword [0x1006aa0], eax
call esi
push 2
mov dword [0x1007ae4], eax
call fcn.01001240
pop edi
pop esi
pop ebp
mov dword [0x1004a90], eax
pop ebx
ret

Function at 0x1001396
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
lea eax, [ebp + 0xc]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push 0x1000
mov esi, 0x1004aa0
push esi
xor ebx, ebx
push ebx
push dword [ebp + 8]
push ebx
push 0x800
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
cmp dword [0x1006aa0], ebx
mov dword [ebp - 4], eax
je 0x10013e5
push ebx
lea ecx, [ebp - 8]
push ecx
push eax
push esi
push dword [0x1007ae8]
call dword [sym.imp.KERNEL32.dll_WriteConsoleW]
jmp 0x1001409
push edi
mov edi, 0x1006ae0
push edi
push esi
call dword [sym.imp.USER32.dll_CharToOemW]
push ebx
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
push edi
push dword [0x1007ae8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
cmp eax, ebx
pop ebx
je 0x1001417
mov eax, dword [ebp - 4]
cmp dword [ebp - 8], eax
je 0x100141d
call dword [sym.imp.KERNEL32.dll_GetLastError]
leave
ret
Function at 0x100141f
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
xor ebx, ebx
cmp dword [ebp + 8], ebx
lea eax, [ebp + 0x10]
push edi
mov dword [ebp - 4], eax
mov esi, 0x1004aa0
je 0x1001451
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x1001134
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatW]
jmp 0x1001458
mov word [0x1004aa0], bx
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, eax
lea eax, [ebp - 4]
push eax
mov eax, 0x1000
mov ecx, eax
sub ecx, edi
push ecx
lea ecx, [edi*2 + 0x1004aa0]
push ecx
push ebx
push dword [ebp + 0xc]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
cmp dword [0x1004a90], ebx
mov dword [ebp - 8], eax
je 0x10014a5
push ebx
lea ecx, [ebp + 8]
push ecx
add eax, edi
push eax
push esi
push dword [0x1007ae4]
call dword [sym.imp.KERNEL32.dll_WriteConsoleW]
jmp 0x10014cd
mov ebx, 0x1006ae0
push ebx
push esi
call dword [sym.imp.USER32.dll_CharToOemW]
push 0
lea eax, [ebp + 8]
push eax
mov eax, dword [ebp - 8]
add eax, edi
push eax
push ebx
push dword [0x1007ae4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
xor ebx, ebx
pop edi
pop esi
cmp eax, ebx
pop ebx
jne 0x10014da
call dword [sym.imp.KERNEL32.dll_GetLastError]
leave
ret

Function at 0x10016fc
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileW]
push edi
push 0
mov edi, 0xa000000
push edi
push 3
pop ebx
push ebx
push 0
push ebx
push ebx
push dword [ebp + 8]
call esi
cmp eax, 0xffffffff
jne 0x10017d6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x10017cf
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
push edi
push ebx
push 0
push ebx
push 0x180
push dword [ebp + 8]
mov dword [ebp - 8], eax
call esi
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x10017cf
lea ecx, [ebp - 0x3c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
jne 0x1001774
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10017cf
test byte [ebp - 0x3c], 1
jne 0x1001785
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x1001769
and dword [ebp - 0x3c], 0xfffffffe
push dword [ebp - 0x3c]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x1001769
push 0
push edi
push ebx
push 0
push ebx
push ebx
push dword [ebp + 8]
call esi
push dword [ebp - 4]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, eax
call esi
cmp edi, 0xffffffff
je 0x10017cf
or dword [ebp - 0x3c], 1
push dword [ebp - 0x3c]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x10017d4
push edi
call esi
or eax, 0xffffffff
jmp 0x10017d6
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 4