joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404640
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.0040630c
test esi, esi
jne 0x404676
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00406464
jmp 0x404694
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00404584
mov edi, eax
test esi, esi
je 0x404694
cmp dword [ebx], 0
je 0x404694
dec esi
jmp 0x40467d
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x4053a0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff4
mov edi, edx
mov esi, eax
mov ebp, dword [esi + 0x10]
mov eax, esi
call fcn.00405654
mov byte [esp], al
cmp byte [esp], 0
jne 0x405529
test edi, edi
je 0x405529
mov byte [esp + 1], 0
test ebp, ebp
jle 0x405460
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
test ebp, ebp
jle 0x40543b
cmp edi, 0xffffffff
je 0x4053ff
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x4053ff
mov byte [esp], 0
jmp 0x405529
mov ebx, dword [esi]
cmp ebx, 1
jg 0x40543b
test ebx, ebx
jne 0x405434
mov eax, esi
xor ecx, ecx
mov edx, 1
call fcn.00402510
test eax, eax
jne 0x405434
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x405529
pause
dec ebp
test ebp, ebp
jg 0x4053e4
cmp edi, 0xffffffff
je 0x405460
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x40545e
mov byte [esp], 0
jmp 0x405529
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x4053ae
lea edx, [ebx + 2]
mov eax, esi
mov ecx, ebx
call fcn.00402510
cmp ebx, eax
jne 0x405460
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.0040559c
mov edx, eax
mov ebx, dword [0x4468c4]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x4054c7
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x4054c5
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x4054c7
xor edi, edi
cmp byte [esp], 0
je 0x4054f0
mov ebx, dword [esi]
test bl, 1
jne 0x405509
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, esi
mov ecx, ebx
call fcn.00402510
cmp ebx, eax
jne 0x4054cd
mov byte [esp + 1], 1
jmp 0x405509
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, esi
mov ecx, ebx
call fcn.00402510
cmp ebx, eax
jne 0x4054f0
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x40547a
cmp byte [esp], 0
je 0x405529
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
movzx eax, byte [esp]
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x40608c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x44604c], 0
je 0x4060ed
cmp word [0x446328], 0xd7b2
jne 0x4060b5
cmp dword [0x446330], 0
jbe 0x4060b5
mov eax, 0x446324
call dword [0x446340]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x406118
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x444024], 0
jne 0x406109
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x4080ac
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe98
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x160], ecx
mov dword [ebp - 0x164], ecx
mov dword [ebp - 0x168], ecx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x408211
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0040630c
cmp si, word [0x4447d0]
jb 0x408144
cmp si, word [0x4449d0]
ja 0x408144
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x408144
mov ebx, dword [ebp - 8]
add ebx, edi
shr ebx, 1
cmp si, word [ebx*8 + 0x4447d0]
jae 0x40811e
mov edi, ebx
dec edi
jmp 0x40813f
cmp si, word [ebx*8 + 0x4447d0]
jbe 0x40812e
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40813f
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x4447d4]
call fcn.00407fbc
jmp 0x408144
cmp edi, dword [ebp - 8]
jae 0x408108
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x4081f3
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x4081f3
push 0x55
lea eax, [ebp - 0xb2]
push eax
push 0x59
movzx ebx, si
push ebx
call sub.kernel32.dll_GetLocaleInfoW
push 0x55
lea eax, [ebp - 0x15c]
push eax
push 0x5a
push ebx
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x160]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.00406c94
push dword [ebp - 0x160]
push 0x40822c
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.00406c94
push dword [ebp - 0x164]
push 0x40823c
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.00406c94
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.00406ec0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408218
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.0040636c
ret
Function at 0x4083c4
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4084c7
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x448b4d
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x448b66]
jne 0x408410
mov eax, esi
mov edx, 0x448b68
mov ecx, 0x55
call fcn.00406c94
push 0x448b4d
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x4084b1
push 0x448b4d
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.0040630c
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40847f
cmp byte [0x448b4c], 0
je 0x408444
mov edx, esi
mov eax, ebx
call fcn.004082a8
jmp 0x40847f
mov edx, esi
mov eax, ebx
call fcn.004080ac
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40847f
cmp dword [esi], 0
je 0x408468
mov eax, esi
mov edx, 0x4084e0
call fcn.00406de0
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.004080ac
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.00406de0
push 0x448b4d
call sub.kernel32.dll_EnterCriticalSection
mov word [0x448b66], bx
push 0xaa
mov eax, dword [esi]
call fcn.00406c08
push eax
push 0x448b68
call sub.kernel32.dll_lstrcpynW
push 0x448b4d
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4084ce
lea eax, [ebp - 4]
call fcn.0040630c
ret
Function at 0x4086fc
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004063f0
xor eax, eax
push ebp
push 0x408921
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x40873c
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x408756
push 0x105
mov eax, dword [ebp - 4]
call fcn.00406c08
push eax
lea eax, [ebp - 0x21a]
push eax
call sub.kernel32.dll_lstrcpynW
cmp word [ebp - 0x21a], 0
je 0x40890b
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x408930
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x408825
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x408930
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x408825
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40896c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x408825
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40896c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x408825
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4089a0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x408825
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4089d4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40890b
xor eax, eax
push ebp
push 0x408904
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.00408508
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x21a]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x408894
mov eax, dword [ebp - 0x10]
call fcn.004042d8
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
lea eax, [ebp - 0x21a]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00406c58
jmp 0x4088df
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x408a14
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x4088df
mov eax, dword [ebp - 0x10]
call fcn.004042d8
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x408a14
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00406c58
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40890b
cmp dword [ebp - 8], 0
je 0x4088fa
mov eax, dword [ebp - 8]
call fcn.004042f4
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408928
lea eax, [ebp - 4]
call fcn.0040630c
ret
Function at 0x408c60
Capabilities:
Get geographical location
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004063f0
xor eax, eax
push ebp
push 0x408d20
push dword fs:[eax]
mov dword fs:[eax], esp
push 8
lea eax, [ebp - 0xc]
push eax
push 3
call sub.kernel32.dll_GetUserDefaultUILanguage
movzx eax, ax
push eax
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.00406c94
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00406e38
mov eax, dword [ebx]
call fcn.00408b28
test al, al
jne 0x408cfd
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.00406c94
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00406e38
mov eax, dword [ebx]
call fcn.00408b28
test al, al
jne 0x408cfd
mov eax, ebx
call fcn.0040630c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408d27
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.0040636c
lea eax, [ebp - 4]
call fcn.0040630c
ret

Function at 0x4095dc
Capabilities:
Get system information on windows

Disassembly:
add esp, 0xffffffdc
push esp
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [esp + 0x14]
add esp, 0x24
ret

Function at 0x418324
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x41837d
test eax, edx
je 0x418380
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x41833b
movzx eax, word [eax]
sub eax, ecx
jmp 0x418362
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
shl ecx, 1
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x418363
add ecx, 4
js 0x418353
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x418360
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x418362
xor eax, eax
ret
test eax, eax
je 0x41838c
test edx, edx
jne 0x41832c
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x41c224
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x200]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x41c25d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00406464
jmp 0x41c266
mov eax, ebx
mov edx, esi
call fcn.004066bc
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x41c270
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov edi, ecx
mov esi, edx
mov ebx, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push ebx
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x41c292
movzx eax, word [esp]
jmp 0x41c294
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x41cf50
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff778
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 4], ecx
xor ecx, ecx
push ebp
push 0x41d075
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.0041cd60
mov esi, eax
mov eax, dword [0x445180]
cmp byte [eax], 0
je 0x41d01d
mov eax, dword [0x44503c]
call fcn.00404710
call fcn.00404434
push 0
push 0
push 0
push 0
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte_1
mov ebx, eax
push ebx
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x41cf28]
call fcn.00407b38
add esp, 4
push 0
push 0
push ebx
mov eax, dword [ebp - 4]
push eax
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte_1
push 0
lea eax, [ebp - 8]
push eax
push ebx
mov eax, dword [ebp - 4]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [ebp - 8]
push eax
push 2
push 0x41d090
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x41d059
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x445008]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x448c30]
call fcn.00407bf0
push eax
call sub.user32.dll_LoadStringW_1
push 0x2010
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x888]
push eax
push 0
call sub.user32.dll_MessageBoxW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41d07c
lea eax, [ebp - 4]
mov edx, dword [0x41cf28]
call fcn.00407b44
ret

Function at 0x41e9f0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffdf8
mov ebx, eax
mov eax, ebx
call fcn.004067ac
mov ebp, eax
push ebp
push 0
push 0
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.004095bc
mov edi, eax
cmp edi, 0x104
jbe 0x41e99b
mov eax, edi
add eax, eax
call fcn.004042d8
mov esi, eax
jmp 0x41e99d
mov esi, esp
push ebp
push esi
push edi
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.004095bc
push esi
call sub.user32.dll_CharUpperW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x41e9d6
inc eax
xor edx, edx
mov ecx, ebx
shl ecx, 5
shr ebx, 0x1b
or ecx, ebx
mov ebx, ecx
movzx ecx, word [esi + edx*2]
xor ebx, ecx
inc edx
dec eax
jne 0x41e9c0
mov eax, esp
cmp esi, eax
je 0x41e9e3
mov eax, esi
call fcn.004042f4
mov eax, ebx
add esp, 0x208
pop ebp
pop edi
pop esi
pop ebx
ret
push esi
push ebx
mov esi, eax
xor eax, eax
push esi
rol eax, 5
mov bl, byte [esi]
test bl, 0x80
jne 0x41ea1c
cmp bl, 0
je 0x41ea18
cmp bl, 0x41
jl 0x41ea13
cmp bl, 0x5a
jg 0x41ea13
or bl, 0x20
xor al, bl
inc esi
jmp 0x41e9f7
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x41e95c

Function at 0x41f19c
Capabilities:
Get geographical location

Disassembly:
push ebx
add esp, 0xfffff800
mov ebx, ecx
mov word [esp], 0
push 0x400
lea ecx, [esp + 4]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW_1
mov eax, ebx
mov edx, esp
mov ecx, 0x400
call fcn.00406c94
add esp, 0x800
pop ebx
ret
Function at 0xb1c058
Capabilities:
Decompress data using aplib

Disassembly:
call 0xb1c1a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, pe_nt_image_headers32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0xb1c07e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xb1c06a
add dl, dl
jne 0xb1c089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xb1c0dc
xor eax, eax
add dl, dl
jne 0xb1c096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xb1c17d
add dl, dl
jne 0xb1c0a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xb1c0b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xb1c0bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xb1c0c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0xb1c0d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0xb1c075
mov eax, 1
add dl, dl
jne 0xb1c0ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xb1c0f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xb1c0e1
sub eax, ebx
mov ebx, 1
jne 0xb1c128
mov ecx, 1
add dl, dl
jne 0xb1c10e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xb1c119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xb1c105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xb1c075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xb1c13f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xb1c14a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xb1c136
cmp eax, 0x7d00
jae 0xb1c16d
cmp eax, 0x500
jb 0xb1c168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xb1c075
cmp eax, 0x7f
ja 0xb1c170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xb1c075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0xb1c19e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0xb1c075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x100af6e
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
xor edi, edi
cmp dword [ebp + 8], edi
je 0x100b0f7
mov dword [ebp - 4], edi
call fcn.0100abc1
push edi
push 0x80
push 2
push edi
push 7
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp + 8], eax
cmp eax, 0xffffffff
je 0x100b0f7
call fcn.0100adc1
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
lea eax, [ebp - 8]
push eax
push 0x66
push 0x102c230
push dword [ebp + 8]
call ebx
test eax, eax
je 0x100b0ee
cmp dword [ebp - 8], 0x66
jne 0x100b0ee
lea ecx, [ebp - 0xc]
lea eax, [ebp - 4]
call fcn.0100ae3f
test eax, eax
jne 0x100b0df
mov esi, dword [ebp - 0xc]
push edi
lea eax, [ebp - 8]
push eax
push esi
push dword [ebp - 4]
push dword [ebp + 8]
call ebx
test eax, eax
je 0x100b0df
cmp dword [ebp - 8], esi
jne 0x100b0df
push dword [ebp - 4]
call dword [sym.imp.msvcrt.dll_free]
pop ecx
lea esi, [ebp - 0xc]
lea eax, [ebp - 4]
call fcn.0100ae9f
test eax, eax
jne 0x100b0df
mov esi, dword [ebp - 0xc]
push edi
lea eax, [ebp - 8]
push eax
push esi
push dword [ebp - 4]
push dword [ebp + 8]
call ebx
test eax, eax
je 0x100b0df
cmp dword [ebp - 8], esi
jne 0x100b0df
push dword [ebp - 4]
call dword [sym.imp.msvcrt.dll_free]
push 6
pop eax
push eax
mov dword [ebp - 0xc], eax
call dword [sym.imp.msvcrt.dll_malloc]
pop ecx
pop ecx
mov dword [ebp - 4], eax
cmp eax, edi
je 0x100b0df
push 0
mov edi, eax
lea eax, [ebp - 8]
push eax
push 6
push dword [ebp - 4]
mov esi, 0x102c298
push dword [ebp + 8]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
call ebx
test eax, eax
je 0x100b0dd
cmp dword [ebp - 8], 6
jne 0x100b0dd
push dword [ebp - 4]
call dword [sym.imp.msvcrt.dll_free]
pop ecx
lea esi, [ebp - 0xc]
lea edi, [ebp - 4]
call fcn.0100af1f
mov esi, dword [ebp - 0xc]
push 0
lea eax, [ebp - 8]
push eax
push esi
push dword [ebp - 4]
push dword [ebp + 8]
call ebx
test eax, eax
je 0x100b0dd
cmp dword [ebp - 8], esi
jne 0x100b0dd
push dword [ebp - 4]
call dword [sym.imp.msvcrt.dll_free]
pop ecx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x100b0fa
xor edi, edi
cmp dword [ebp - 4], edi
je 0x100b0ee
push dword [ebp - 4]
call dword [sym.imp.msvcrt.dll_free]
pop ecx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x101ee7b
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x168
mov eax, dword [0x102cd74]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
push esi
xor esi, esi
push edi
mov dword [ebp - 0x160], ecx
mov dword [ebp - 0x168], eax
cmp ecx, esi
je 0x101efcb
cmp eax, esi
je 0x101efcb
push ecx
push dword [ebp + 0x10]
xor edx, edx
push eax
mov word [eax], dx
call fcn.01008286
test eax, eax
jl 0x101efcb
lea eax, [ebp - 0x150]
push eax
push 1
push esi
push 0x102cb98
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x101efcb
lea eax, [ebp - 0x158]
push eax
lea eax, [ebp - 0xa8]
push eax
lea eax, [ebp - 0x164]
push eax
push esi
lea eax, [ebp - 0x154]
push eax
lea eax, [ebp - 0x14c]
push eax
push esi
push dword [ebp - 0x150]
mov dword [ebp - 0x15c], esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov dword [ebp - 0x154], 0x52
mov dword [ebp - 0x158], 0xa4
call esi
mov edi, 0x103
jmp 0x101efb9
test eax, eax
jne 0x101efbf
push 0x2c
lea eax, [ebp - 0x14c]
push eax
call fcn.0101e8a7
push dword [ebp - 0x160]
lea eax, [ebp - 0x14c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x101efdd
inc dword [ebp - 0x15c]
lea eax, [ebp - 0x158]
push eax
lea eax, [ebp - 0xa8]
push eax
lea eax, [ebp - 0x164]
push eax
push 0
lea eax, [ebp - 0x154]
push eax
lea eax, [ebp - 0x14c]
push eax
push dword [ebp - 0x15c]
mov dword [ebp - 0x154], 0x52
push dword [ebp - 0x150]
mov dword [ebp - 0x158], 0xa4
call esi
cmp eax, edi
jne 0x101ef43
jmp 0x101f004
push dword [ebp - 0x150]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.01026cc5
leave
ret 0xc
push 0x2c
lea eax, [ebp - 0xa8]
push eax
call fcn.0101e8a7
lea eax, [ebp - 0xa8]
push eax
push dword [ebp + 0x10]
push dword [ebp - 0x168]
call fcn.01008286
test eax, eax
jl 0x101efcb
push dword [ebp - 0x150]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
jmp 0x101efcd