joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43e6c8
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5168e4
mov eax, dword fs:[0]
push eax
sub esp, 0x268
mov eax, dword [section..data]
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 edi, dword [ebp + 8]
lea eax, [ebp - 0x26c]
xor esi, esi
push eax
mov dword [ebp - 0x270], esi
call fcn.004049de
push str.cfgs_setup.cfg
push eax
lea ecx, [ebp - 0x250]
push ecx
mov dword [ebp - 4], esi
call fcn.00405b23
add esp, 0x10
mov ebx, 8
cmp dword [ebp - 0x258], ebx
jb 0x43e741
mov edx, dword [ebp - 0x26c]
push edx
call fcn.00404f7d
add esp, 4
mov ecx, dword [0x52dc3c]
mov eax, dword [str.0.0.0.0]
mov edx, dword [0x52dc40]
push 0x1f8
mov dword [ebp - 0x214], ecx
mov dword [ebp - 0x218], eax
mov eax, dword [0x52dc44]
lea ecx, [ebp - 0x208]
push esi
push ecx
mov dword [ebp - 0x210], edx
mov dword [ebp - 0x20c], eax
call fcn.00402e70
xor edx, edx
add esp, 0xc
mov dword [ebp - 0x220], 7
mov dword [ebp - 0x224], esi
mov word [ebp - 0x234], dx
push 0xffffffffffffffff
push esi
lea eax, [ebp - 0x250]
push eax
lea ecx, [ebp - 0x234]
mov byte [ebp - 4], 3
call fcn.00404e84
mov eax, dword [ebp - 0x234]
mov byte [ebp - 4], 4
cmp dword [ebp - 0x220], ebx
jae 0x43e7ce
lea eax, [ebp - 0x234]
push eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push str.MajorVersion
push str.Version
call esi
mov dword [ebp - 0x270], eax
mov eax, dword [ebp - 0x234]
cmp dword [ebp - 0x220], ebx
jae 0x43e7fc
lea eax, [ebp - 0x234]
push eax
push 0
push str.FirstVersion
push str.Version
call esi
mov dword [ebp - 0x274], eax
mov eax, dword [ebp - 0x234]
cmp dword [ebp - 0x220], ebx
jae 0x43e825
lea eax, [ebp - 0x234]
push eax
push 0
push str.SecondVersion
push str.Version
call esi
cmp dword [ebp - 0x220], 8
mov ebx, eax
mov eax, dword [ebp - 0x234]
jae 0x43e84b
lea eax, [ebp - 0x234]
push eax
push 0
push str.Version
push str.Version
call esi
mov ecx, dword [ebp - 0x274]
mov edx, dword [ebp - 0x270]
push eax
push ebx
push ecx
push edx
push str._u._u._u._u
push 0x103
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.0045425f
xor ebx, ebx
add esp, 0x20
xor ecx, ecx
lea eax, [ebp - 0x218]
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], ebx
mov word [edi], cx
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x43e8a8
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp - 0x218]
push edx
mov ecx, edi
call fcn.0040392d
mov esi, 8
cmp dword [ebp - 0x220], esi
jb 0x43e8e2
mov eax, dword [ebp - 0x234]
push eax
call fcn.00404f7d
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x220], 7
mov dword [ebp - 0x224], ebx
mov word [ebp - 0x234], cx
cmp dword [ebp - 0x23c], esi
jb 0x43e912
mov edx, dword [ebp - 0x250]
push edx
call fcn.00404f7d
add esp, 4
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.0040330b
mov esp, ebp
pop ebp
ret
Function at 0x440060
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5114c0
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov eax, 1
test byte [0x567ca8], al
jne 0x4400c8
or dword [0x567ca8], eax
xor eax, eax
push 0x51c606
mov dword [0x567ca0], 7
mov dword [0x567c9c], 0
mov word [0x567c8c], ax
call fcn.00403649
add esp, 4
cmp dword [0x567c9c], 0
jne 0x44012e
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx eax, ax
push eax
lea ecx, [ebp - 0x2c]
push ecx
call fcn.0043e56f
add esp, 8
push eax
mov ecx, 0x567c8c
mov dword [ebp - 4], 0
call fcn.00403fa0
cmp dword [ebp - 0x18], 8
mov dword [ebp - 4], 0xffffffff
jb 0x440112
mov edx, dword [ebp - 0x2c]
push edx
call fcn.00404f7d
add esp, 4
xor eax, eax
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
cmp dword [0x567c9c], eax
je 0x44013a
push 0x567c8c
mov ecx, esi
call fcn.0040728a
mov ecx, dword [esi + 4]
sub ecx, dword [esi]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040330b
mov esp, ebp
pop ebp
ret

Function at 0x440f87
Capabilities:
Check if file exists
Get file attributes

Disassembly:
cmp dword [ecx + 0x10], 0
jne 0x440f90
xor al, al
ret
cmp dword [ecx + 0x14], 8
jb 0x440f98
mov ecx, dword [ecx]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x440fae
test al, 0x10
je 0x440fae
mov eax, 1
ret
xor eax, eax
ret

Function at 0x441d2e
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x516ffa
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [section..data]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0x10], ebx
jl 0x441dc7
mov esi, dword [ebp + 0xc]
jg 0x441d77
cmp esi, ebx
jbe 0x441dc7
cmp dword [edi], 0xffffffff
je 0x441dc7
push esi
lea ecx, [ebp - 0x20]
call fcn.004357f6
mov ecx, dword [ebp - 0x20]
mov edx, dword [edi]
push ebx
lea eax, [ebp + 0x10]
push eax
push esi
push ecx
push edx
mov dword [ebp + 0x10], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp + 0x10]
push eax
lea ecx, [ebp - 0x20]
call fcn.004357f6
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x20]
push ecx
mov ecx, esi
call fcn.0044188b
mov eax, dword [ebp - 0x20]
cmp eax, ebx
je 0x441dd5
push eax
call fcn.00404f7d
add esp, 4
jmp 0x441dd5
mov esi, dword [ebp + 8]
lea edx, [ebp - 0x20]
push edx
mov ecx, esi
call fcn.0044188b
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 0xc
Function at 0x4420f0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push ecx
lea eax, [ebp - 0x20]
push eax
call fcn.00441ea7
add esp, 8
cmp dword [ebp - 0x10], 0
je 0x442134
cmp dword [ebp - 0xc], 8
mov eax, dword [ebp - 0x20]
jae 0x442120
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x442134
test al, 0x10
je 0x442134
mov bl, 1
jmp 0x442136
xor bl, bl
cmp dword [ebp - 0xc], 8
jb 0x442148
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.00404f7d
add esp, 4
mov ecx, dword [ebp - 4]
mov al, bl
xor ecx, ebp
pop ebx
call fcn.0040330b
mov esp, ebp
pop ebp
ret

Function at 0x442ffd
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x512bda
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov edi, 8
cmp dword [esi + 0x14], edi
jb 0x443038
mov eax, dword [esi]
jmp 0x44303a
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4430f0
cmp dword [esi + 0x14], edi
jb 0x443053
mov eax, dword [esi]
jmp 0x443055
mov eax, esi
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0
push eax
call edi
test eax, eax
jne 0x4430f0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x4430f0
xor eax, eax
push 0xffffffffffffffff
push eax
push esi
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
call fcn.00404e84
lea ecx, [ebp - 0x2c]
push ecx
mov dword [ebp - 4], 0
call fcn.00442f57
add esp, 4
cmp dword [esi + 0x10], 0
jne 0x4430ba
lea ecx, [ebp - 0x2c]
call fcn.0040dcc2
xor eax, eax
jmp 0x4430f5
lea edx, [ebp - 0x2c]
push edx
call fcn.00442ffd
add esp, 4
test eax, eax
je 0x4430ae
cmp dword [esi + 0x14], 8
jb 0x4430d2
mov esi, dword [esi]
push 0
push esi
call edi
test eax, eax
jne 0x4430e8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4430ae
lea ecx, [ebp - 0x2c]
call fcn.0040dcc2
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040330b
mov esp, ebp
pop ebp
ret
Function at 0x446817
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x517991
mov eax, dword fs:[0]
push eax
sub esp, 0x2b8
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
lea ecx, [ebp - 0x2ba]
mov dword [ebp - 0x2c4], esi
mov dword [ebp - 0x2c0], ebx
call fcn.00409457
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x216]
push ecx
mov dword [ebp - 4], 1
mov word [ebp - 0x218], ax
call fcn.00402e70
lea edx, [ebp - 0x250]
push edx
call fcn.004049de
add esp, 0x10
push eax
lea ecx, [ebp - 0x2b8]
mov byte [ebp - 4], 2
call fcn.00405591
mov edi, 8
mov byte [ebp - 4], 4
cmp dword [ebp - 0x23c], edi
jb 0x4468be
mov eax, dword [ebp - 0x250]
push eax
call fcn.00404f7d
add esp, 4
xor ecx, ecx
xor edx, edx
mov eax, 7
mov dword [ebp - 0x23c], eax
mov dword [ebp - 0x240], ecx
mov word [ebp - 0x250], dx
cmp byte [0x567e10], cl
jne 0x446987
mov dword [ebp - 0x220], eax
push 0x23
mov dword [ebp - 0x224], ecx
xor eax, eax
push str.Support_GetWinSpecialFoldersFromReg
lea ecx, [ebp - 0x234]
mov word [ebp - 0x234], ax
call fcn.0040392d
lea ecx, [ebp - 0x234]
push ecx
lea edx, [ebp - 0x26c]
mov ebx, 1
push edx
lea ecx, [ebp - 0x2b8]
mov byte [ebp - 4], 5
mov dword [ebp - 0x2c0], ebx
call fcn.0040a00f
mov eax, dword [ebp - 0x26c]
cmp dword [ebp - 0x258], edi
jae 0x446949
lea eax, [ebp - 0x26c]
push 0x5267c0
push eax
call fcn.0040786d
add esp, 8
test eax, eax
sete byte [ebp - 0x2b9]
cmp dword [ebp - 0x258], edi
jb 0x446977
mov eax, dword [ebp - 0x26c]
push eax
call fcn.00404f7d
add esp, 4
cmp byte [ebp - 0x2b9], 0
mov byte [ebp - 0x2b9], 0
je 0x44698e
mov byte [ebp - 0x2b9], 1
mov dword [ebp - 4], 4
test bl, 1
je 0x4469ba
and ebx, 0xfffffffe
mov dword [ebp - 0x2c0], ebx
cmp dword [ebp - 0x220], edi
jb 0x4469ba
mov ecx, dword [ebp - 0x234]
push ecx
call fcn.00404f7d
add esp, 4
cmp byte [ebp - 0x2b9], 0
je 0x4469e2
push 0xa
push 0xffffffffffffffff
lea edx, [ebp - 0x218]
push 0x104
push edx
mov edx, dword [ebp + 8]
xor ecx, ecx
call fcn.004464fd
add esp, 0x10
jmp 0x4469f7
mov eax, dword [ebp + 8]
push 0
push eax
lea ecx, [ebp - 0x218]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
xor edx, edx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
lea eax, [ebp - 0x218]
mov word [esi], dx
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x446a17
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x218]
push eax
mov ecx, esi
call fcn.0040392d
or ebx, 2
lea ecx, [ebp - 0x2b8]
mov dword [ebp - 0x2c0], ebx
mov byte [ebp - 4], 1
call fcn.0042b7c0
cmp byte [ebp - 0x2ba], 0
je 0x446a5c
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040330b
mov esp, ebp
pop ebp
ret
Function at 0x44d226
Capabilities:
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x518af8
mov eax, dword fs:[0]
push eax
sub esp, 0x24c
mov eax, dword [section..data]
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
push 4
mov ebx, ecx
call fcn.00403b92
add esp, 4
mov dword [ebp - 0x254], eax
xor edi, edi
mov dword [ebp - 4], edi
cmp eax, edi
je 0x44d278
mov ecx, eax
call fcn.0044ea6f
mov edi, eax
mov esi, dword [ebx + 0x18]
mov dword [ebp - 4], 0xffffffff
cmp edi, esi
je 0x44d29d
test esi, esi
je 0x44d29a
mov ecx, esi
call fcn.0044eaf6
push esi
call fcn.00404f7d
add esp, 4
mov dword [ebx + 0x18], edi
mov ecx, ebx
call fcn.0044cc80
test al, al
jne 0x44d2b0
or eax, 0xffffffff
jmp 0x44d40b
push 0x206
xor edi, edi
lea ecx, [ebp - 0x216]
xor eax, eax
push edi
push ecx
mov word [ebp - 0x218], ax
call fcn.00402e70
add esp, 0xc
push edi
push 0x1a
lea edx, [ebp - 0x218]
push edx
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
xor eax, eax
mov word [ebp - 0x234], ax
mov esi, 7
lea eax, [ebp - 0x218]
mov dword [ebp - 0x220], esi
mov dword [ebp - 0x224], edi
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x44d306
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0x218]
push ecx
lea ecx, [ebp - 0x234]
call fcn.0040392d
push 0x530ed8
lea edx, [ebp - 0x234]
push edx
lea eax, [ebp - 0x250]
push eax
mov dword [ebp - 4], 1
call fcn.00405b23
add esp, 0xc
cmp dword [ebp - 0x220], 8
mov byte [ebp - 4], 3
jb 0x44d366
mov ecx, dword [ebp - 0x234]
push ecx
call fcn.00404f7d
add esp, 4
xor edx, edx
push 0x24
mov dword [ebp - 0x220], esi
mov dword [ebp - 0x224], edi
mov word [ebp - 0x234], dx
call fcn.00403b92
mov esi, eax
add esp, 4
mov dword [ebp - 0x254], esi
mov byte [ebp - 4], 4
cmp esi, edi
je 0x44d3c9
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x258], esp
push 0xffffffffffffffff
push edi
lea edx, [ebp - 0x250]
xor eax, eax
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], edi
push edx
mov word [ecx], ax
call fcn.00404e84
mov ecx, esi
call fcn.0044cad5
mov esi, eax
jmp 0x44d3cb
xor esi, esi
mov ecx, dword [ebx + 0x14]
mov byte [ebp - 4], 3
cmp esi, ecx
je 0x44d3e5
cmp ecx, edi
je 0x44d3e2
mov eax, dword [ecx]
mov edx, dword [eax]
push 1
call edx
mov dword [ebx + 0x14], esi
mov ecx, dword [ebx + 0x14]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
call edx
cmp dword [ebp - 0x23c], 8
mov esi, eax
jb 0x44d409
mov eax, dword [ebp - 0x250]
push eax
call fcn.00404f7d
add esp, 4
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.0040330b
mov esp, ebp
pop ebp
ret
Function at 0x44e8ab
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 0
push 1
push 0
push 0
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreW]
push 0
push 0
push 1
push 0
mov dword [esi + 4], eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi], eax
lea eax, [ebp - 4]
push eax
push 0
push esi
push 0x44e89c
push 0
push 0
mov dword [ebp - 4], 0
call fcn.00454e33
add esp, 0x18
mov dword [esi + 0xc], eax
mov eax, dword [ebp - 4]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x44f136
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x518f04
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [section..data]
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 edi, dword [ebp + 0x10]
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
xor ebx, ebx
mov dword [ebp - 0x38], ebx
xor ecx, ecx
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], cx
cmp dword [eax + 0x14], 8
mov dword [ebp - 4], ebx
jb 0x44f18d
mov eax, dword [eax]
lea edx, [ebp - 0x30]
push edx
push 0x20019
push ebx
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x44f1d4
lea ecx, [ebp - 0x2c]
xor eax, eax
push ecx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], ebx
mov ecx, esi
mov word [esi], ax
call fcn.00403fa0
cmp dword [ebp - 0x18], 8
jb 0x44f2c3
mov edx, dword [ebp - 0x2c]
push edx
jmp 0x44f2bb
cmp dword [edi + 0x14], 8
jb 0x44f1dc
mov edi, dword [edi]
mov edx, dword [ebp - 0x30]
lea eax, [ebp - 0x34]
push eax
push ebx
lea ecx, [ebp - 0x38]
push ecx
push ebx
push edi
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, ebx
je 0x44f222
mov eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ecx, ecx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], ebx
lea edx, [ebp - 0x2c]
mov word [esi], cx
push edx
mov ecx, esi
call fcn.00403fa0
cmp dword [ebp - 0x18], 8
jmp 0x44f2b5
mov ebx, dword [ebp - 0x34]
add ebx, 2
push ebx
call fcn.00405b75
mov edi, eax
mov dword [ebp - 0x40], edi
push ebx
push 0
push edi
mov byte [ebp - 4], 1
call fcn.00402e70
mov eax, dword [ebp - 0x3c]
mov ebx, 8
add esp, 0x10
cmp dword [eax + 0x14], ebx
jb 0x44f252
mov eax, dword [eax]
mov edx, dword [ebp - 0x30]
lea ecx, [ebp - 0x34]
push ecx
push edi
push 0
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x44f276
mov eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x44f28b
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x44f28b
cmp eax, 2
ja 0x44f28b
push edi
lea ecx, [ebp - 0x2c]
call fcn.0041c020
xor ecx, ecx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
lea edx, [ebp - 0x2c]
mov word [esi], cx
push edx
mov ecx, esi
call fcn.00403fa0
push edi
call fcn.00409a6f
add esp, 4
cmp dword [ebp - 0x18], ebx
jb 0x44f2c3
mov eax, dword [ebp - 0x2c]
push eax
call fcn.00404f7d
add esp, 4
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.0040330b
mov esp, ebp
pop ebp
ret
Function at 0x450a15
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [ebp + 0xc]
xor eax, eax
mov dword [ebp - 4], eax
cmp ebx, eax
jbe 0x450b18
mov ecx, dword [ebp + 8]
push esi
mov edx, 1
sub edx, ecx
mov esi, 2
sub esi, ecx
mov dword [ebp - 0xc], esi
mov esi, dword [ebp + 0x10]
push edi
mov dword [ebp - 8], edx
jmp 0x450a50
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 8]
mov edi, dword [ebp - 4]
add edi, ecx
movzx ecx, byte [edi]
shr ecx, 2
movzx ecx, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax + esi], cl
mov cl, byte [edi]
and cl, 3
add edx, edi
shl cl, 4
cmp edx, ebx
jae 0x450aeb
mov edx, dword [ebp - 4]
mov ebx, dword [ebp + 8]
mov bl, byte [edx + ebx + 1]
shr bl, 4
add bl, cl
movzx ecx, bl
movzx ecx, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov ebx, dword [ebp - 0xc]
mov byte [eax + esi + 1], cl
mov ecx, dword [ebp + 8]
mov cl, byte [edx + ecx + 1]
and cl, 0xf
add cl, cl
add ebx, edi
add cl, cl
cmp ebx, dword [ebp + 0xc]
jae 0x450ad7
mov edi, dword [ebp + 8]
mov dl, byte [edx + edi + 2]
mov bl, dl
shr dl, 6
and bl, 0x3f
add dl, cl
movzx edx, dl
movzx ecx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
movzx edx, bl
mov byte [eax + esi + 2], cl
movzx ecx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax + esi + 3], cl
jmp 0x450aff
movzx ecx, cl
mov cl, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax + esi + 2], cl
mov byte [eax + esi + 3], 0x3d
jmp 0x450b02
movzx edx, cl
mov cl, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax + esi + 1], cl
mov word [eax + esi + 2], 0x3d3d
mov edx, dword [ebp - 4]
mov ebx, dword [ebp + 0xc]
add edx, 3
add eax, 4
mov dword [ebp - 4], edx
cmp edx, ebx
jb 0x450a4a
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x450b1d
Capabilities:
Decode data using base64 via dword translation table

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
mov al, 0x3d
cmp byte [esi + edi - 1], al
jne 0x450b3a
dec edi
cmp byte [esi + edi - 1], al
je 0x450b33
xor eax, eax
mov dword [ebp + 0xc], eax
cmp edi, eax
jbe 0x450bf1
mov ecx, 2
sub ecx, esi
mov dword [ebp - 4], ecx
mov ecx, 3
sub ecx, esi
mov dword [ebp - 8], ecx
push ebx
nop
movsx ecx, byte [esi + 1]
movsx edx, byte [esi]
mov dl, byte [edx + 0x5311d0]
mov cl, byte [ecx + 0x5311d0]
add dl, dl
mov bl, cl
sar bl, 4
add dl, dl
and bl, 3
or dl, bl
mov ebx, dword [ebp + 0x10]
mov byte [eax + ebx], dl
mov edx, dword [ebp - 4]
add edx, esi
inc eax
cmp edx, edi
jae 0x450bdc
mov ebx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
movsx edx, byte [edx + ebx + 2]
mov dl, byte [edx + 0x5311d0]
mov bl, dl
sar bl, 2
shl cl, 4
and bl, 0xf
or bl, cl
mov ecx, dword [ebp + 0x10]
mov byte [eax + ecx], bl
mov ecx, dword [ebp - 8]
add ecx, esi
inc eax
cmp ecx, edi
jae 0x450bdc
mov ecx, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
movsx ecx, byte [ecx + ebx + 3]
mov cl, byte [ecx + 0x5311d0]
shl dl, 6
and cl, 0x3f
or cl, dl
mov edx, dword [ebp + 0x10]
mov byte [eax + edx], cl
inc eax
mov ecx, dword [ebp + 0xc]
add ecx, 4
add esi, 4
mov dword [ebp + 0xc], ecx
cmp ecx, edi
jb 0x450b5d
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x450d16
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, ecx
push ebx
mov ebx, dword [eax]
cmp ebx, 0x10
je 0x450d2f
cmp ebx, 0x20
jne 0x450f20
shr ebx, 2
mov dword [ebp - 8], ebx
mov edx, 4
cmp ebx, 4
jl 0x450d41
mov edx, ebx
push edi
mov edi, dword [ebp + 8]
lea edx, [edx*4 + 0x1c]
mov dword [ebp - 4], edx
test edi, edi
je 0x450f1f
mov dword [edi], 0x10
mov dword [edi + 4], edx
add edi, 8
xor edx, edx
push esi
test ebx, ebx
jle 0x450d9f
add eax, 5
jmp 0x450d76
movzx ecx, byte [eax - 1]
movzx esi, byte [eax]
shl ecx, 8
or ecx, esi
movzx esi, byte [eax + 1]
shl ecx, 8
or ecx, esi
movzx esi, byte [eax + 2]
shl ecx, 8
or ecx, esi
mov dword [edi + edx*4], ecx
inc edx
add eax, 4
cmp edx, ebx
jl 0x450d76
mov ecx, dword [edi + edx*4 - 4]
mov esi, ebx
cmp ebx, dword [ebp - 4]
jge 0x450e93
mov dword [ebp + 8], 0
mov dword [ebp - 0xc], edi
mov eax, esi
cdq
idiv ebx
test edx, edx
jne 0x450e22
mov eax, dword [ebp + 8]
mov edx, ecx
shr edx, 0x10
and edx, 0xff
movzx ebx, byte [edx + 0x531270]
cdq
idiv dword [ebp - 8]
mov edx, ecx
shr edx, 8
and edx, 0xff
movzx eax, byte [eax + 0x531250]
xor ebx, eax
movzx eax, byte [edx + 0x531270]
shl ebx, 8
mov edx, ecx
xor ebx, eax
and edx, 0xff
movzx eax, byte [edx + 0x531270]
shl ebx, 8
shr ecx, 0x18
movzx ecx, byte [ecx + 0x531270]
xor ebx, eax
shl ebx, 8
xor ecx, ebx
mov ebx, dword [ebp - 8]
jmp 0x450e78
cmp ebx, 6
jle 0x450e78
cmp edx, 4
jne 0x450e78
mov edx, ecx
shr edx, 0x10
and edx, 0xff
movzx eax, byte [edx + 0x531270]
mov edx, ecx
shr edx, 0x18
movzx edx, byte [edx + 0x531270]
shl edx, 8
xor eax, edx
mov edx, ecx
shr edx, 8
and edx, 0xff
movzx edx, byte [edx + 0x531270]
shl eax, 8
and ecx, 0xff
movzx ecx, byte [ecx + 0x531270]
xor eax, edx
shl eax, 8
xor ecx, eax
mov eax, dword [ebp - 0xc]
xor ecx, dword [eax]
inc dword [ebp + 8]
mov dword [edi + esi*4], ecx
inc esi
add eax, 4
mov dword [ebp - 0xc], eax
cmp esi, dword [ebp - 4]
jl 0x450db8
xor edx, edx
dec esi
js 0x450f1e
mov eax, dword [ebp - 4]
lea ecx, [edi + eax*4]
mov dword [ebp + 8], ecx
nop
mov ecx, dword [edi + esi*4]
cmp edx, 4
jl 0x450f0d
cmp esi, 4
jl 0x450f0d
mov eax, ecx
shr eax, 0x10
and eax, 0xff
movzx eax, byte [eax + 0x531270]
mov eax, dword [eax*4 + 0x532870]
mov ebx, ecx
shr ebx, 8
and ebx, 0xff
movzx ebx, byte [ebx + 0x531270]
xor eax, dword [ebx*4 + 0x532c70]
mov ebx, ecx
shr ebx, 0x18
movzx ebx, byte [ebx + 0x531270]
xor eax, dword [ebx*4 + 0x532470]
and ecx, 0xff
movzx ecx, byte [ecx + 0x531270]
xor eax, dword [ecx*4 + 0x533070]
jmp 0x450f0f
mov eax, ecx
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
add ecx, 4
inc edx
dec esi
mov dword [ebp + 8], ecx
jns 0x450ea6
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4