joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42adb0
Capabilities:
Check if file exists
Get file attributes

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

Function at 0x42bbf0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50a408
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x547770]
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 0x42bc89
mov esi, dword [ebp + 0xc]
jg 0x42bc39
cmp esi, ebx
jbe 0x42bc89
cmp dword [edi], 0xffffffff
je 0x42bc89
push esi
lea ecx, [ebp - 0x20]
call fcn.004211c0
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.004211c0
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x20]
push ecx
mov ecx, esi
call fcn.0042b740
mov eax, dword [ebp - 0x20]
cmp eax, ebx
je 0x42bc97
push eax
call fcn.004b9d66
add esp, 4
jmp 0x42bc97
mov esi, dword [ebp + 8]
lea edx, [ebp - 0x20]
push edx
mov ecx, esi
call fcn.0042b740
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 0x42bfe0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x547770]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push ecx
lea eax, [ebp - 0x20]
push eax
call fcn.0042bd80
add esp, 8
cmp dword [ebp - 0x10], 0
je 0x42c024
cmp dword [ebp - 0xc], 8
mov eax, dword [ebp - 0x20]
jae 0x42c010
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x42c024
test al, 0x10
je 0x42c024
mov bl, 1
jmp 0x42c026
xor bl, bl
cmp dword [ebp - 0xc], 8
jb 0x42c038
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.004b9d66
add esp, 4
mov ecx, dword [ebp - 4]
mov al, bl
xor ecx, ebp
pop ebx
call fcn.004ba901
mov esp, ebp
pop ebp
ret
Function at 0x42d130
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50a6b8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x547770]
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 0x42d16b
mov eax, dword [esi]
jmp 0x42d16d
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x42d223
cmp dword [esi + 0x14], edi
jb 0x42d186
mov eax, dword [esi]
jmp 0x42d188
mov eax, esi
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0
push eax
call edi
test eax, eax
jne 0x42d223
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x42d223
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.00401500
lea ecx, [ebp - 0x2c]
push ecx
mov dword [ebp - 4], 0
call fcn.0042d080
add esp, 4
cmp dword [esi + 0x10], 0
jne 0x42d1ed
lea ecx, [ebp - 0x2c]
call fcn.00413a70
xor eax, eax
jmp 0x42d228
lea edx, [ebp - 0x2c]
push edx
call fcn.0042d130
add esp, 4
test eax, eax
je 0x42d1e1
cmp dword [esi + 0x14], 8
jb 0x42d205
mov esi, dword [esi]
push 0
push esi
call edi
test eax, eax
jne 0x42d21b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x42d1e1
lea ecx, [ebp - 0x2c]
call fcn.00413a70
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.004ba901
mov esp, ebp
pop ebp
ret
Function at 0x430da0
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x430ee2
cmp dword [ebp + 0xc], 0
je 0x430ee2
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea eax, [ebp + 8]
push eax
push 0
push 0
push 1
push esi
mov dword [ebp + 8], 0
call ebx
test eax, eax
jne 0x430dee
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x430dee
pop ebx
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp + 8]
push edi
push ecx
call fcn.004b896e
add esp, 4
mov edi, eax
mov eax, dword [ebp + 8]
lea edx, [ebp + 8]
push edx
push eax
push edi
push 1
push esi
call ebx
test eax, eax
je 0x430ece
mov eax, dword [edi]
mov dword [ebp - 4], eax
test eax, eax
je 0x430ece
push eax
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
je 0x430ece
mov edx, dword [ebp + 0xc]
lea ecx, [ebp + 8]
push ecx
push 0
push 0
push 1
push edx
mov dword [ebp + 8], 0
call ebx
test eax, eax
jne 0x430e55
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x430ec3
mov eax, dword [ebp + 8]
push eax
call fcn.004b896e
mov edx, dword [ebp + 8]
add esp, 4
lea ecx, [ebp + 8]
push ecx
push edx
mov esi, eax
mov eax, dword [ebp + 0xc]
push esi
push 1
push eax
call ebx
test eax, eax
je 0x430eb4
mov ebx, dword [esi]
test ebx, ebx
je 0x430eb4
push ebx
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
je 0x430eb4
mov ecx, dword [ebp - 4]
push ebx
push ecx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
cmp eax, 1
push edi
sete bl
call fcn.004b9ad9
push esi
call fcn.004b9ad9
add esp, 8
pop edi
mov al, bl
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 8
push edi
call fcn.004b9ad9
push esi
call fcn.004b9ad9
add esp, 8
pop edi
pop ebx
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 8
push edi
call fcn.004b9ad9
add esp, 4
pop edi
pop ebx
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 8
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x430ef0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x547770]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
test ebx, ebx
je 0x430fd7
cmp word [ebx], 0
je 0x430fd7
test edi, edi
je 0x430fd7
push esi
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
jne 0x430f4b
pop esi
pop edi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ba901
mov esp, ebp
pop ebp
ret 8
push 0x228
lea eax, [ebp - 0x22c]
push 0
push eax
mov dword [ebp - 0x230], 0x22c
call fcn.004bad00
add esp, 0xc
lea ecx, [ebp - 0x230]
push ecx
push esi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x430fb3
lea esp, [esp]
lea edx, [ebp - 0x20c]
push ebx
push edx
call fcn.004baf25
add esp, 8
test eax, eax
jne 0x430fa2
lea eax, [ebp - 0x228]
push eax
mov ecx, edi
call fcn.004e57b0
lea ecx, [ebp - 0x230]
push ecx
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x430f80
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [edi]
xor eax, eax
cmp edx, dword [edi + 4]
pop esi
pop edi
setne al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ba901
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
xor al, al
pop ebx
call fcn.004ba901
mov esp, ebp
pop ebp
ret 8
Function at 0x431230
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50b025
mov eax, dword fs:[0]
push eax
sub esp, 0x2b8
mov eax, dword [0x547770]
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.00431140
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.004bad00
lea edx, [ebp - 0x250]
push edx
call fcn.00427e80
add esp, 0x10
push eax
lea ecx, [ebp - 0x2b8]
mov byte [ebp - 4], 2
call fcn.00418da0
mov edi, 8
mov byte [ebp - 4], 4
cmp dword [ebp - 0x23c], edi
jb 0x4312d7
mov eax, dword [ebp - 0x250]
push eax
call fcn.004b9d66
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 [0x54e390], cl
jne 0x4313a0
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.004021e0
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.004183c0
mov eax, dword [ebp - 0x26c]
cmp dword [ebp - 0x258], edi
jae 0x431362
lea eax, [ebp - 0x26c]
push 0x514480
push eax
call fcn.004baf25
add esp, 8
test eax, eax
sete byte [ebp - 0x2b9]
cmp dword [ebp - 0x258], edi
jb 0x431390
mov eax, dword [ebp - 0x26c]
push eax
call fcn.004b9d66
add esp, 4
cmp byte [ebp - 0x2b9], 0
mov byte [ebp - 0x2b9], 0
je 0x4313a7
mov byte [ebp - 0x2b9], 1
mov dword [ebp - 4], 4
test bl, 1
je 0x4313d3
and ebx, 0xfffffffe
mov dword [ebp - 0x2c0], ebx
cmp dword [ebp - 0x220], edi
jb 0x4313d3
mov ecx, dword [ebp - 0x234]
push ecx
call fcn.004b9d66
add esp, 4
cmp byte [ebp - 0x2b9], 0
je 0x4313fb
push 0xa
push 0xffffffffffffffff
lea edx, [ebp - 0x218]
push 0x104
push edx
mov edx, dword [ebp + 8]
xor ecx, ecx
call fcn.00430a80
add esp, 0x10
jmp 0x431410
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 0x431430
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x218]
push eax
mov ecx, esi
call fcn.004021e0
or ebx, 2
lea ecx, [ebp - 0x2b8]
mov dword [ebp - 0x2c0], ebx
mov byte [ebp - 4], 1
call fcn.00419270
cmp byte [ebp - 0x2ba], 0
je 0x431475
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.004ba901
mov esp, ebp
pop ebp
ret
Function at 0x437ff0
Capabilities:
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50c1f2
mov eax, dword fs:[0]
push eax
sub esp, 0x24c
mov eax, dword [0x547770]
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.004ba451
add esp, 4
mov dword [ebp - 0x254], eax
xor edi, edi
mov dword [ebp - 4], edi
cmp eax, edi
je 0x438042
mov ecx, eax
call fcn.00439b20
mov edi, eax
mov esi, dword [ebx + 0x18]
mov dword [ebp - 4], 0xffffffff
cmp edi, esi
je 0x438067
test esi, esi
je 0x438064
mov ecx, esi
call fcn.00439bb0
push esi
call fcn.004b9d66
add esp, 4
mov dword [ebx + 0x18], edi
mov ecx, ebx
call fcn.00437a20
test al, al
jne 0x43807a
or eax, 0xffffffff
jmp 0x4381d5
push 0x206
xor edi, edi
lea ecx, [ebp - 0x216]
xor eax, eax
push edi
push ecx
mov word [ebp - 0x218], ax
call fcn.004bad00
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 0x4380d0
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0x218]
push ecx
lea ecx, [ebp - 0x234]
call fcn.004021e0
push 0x51cc74
lea edx, [ebp - 0x234]
push edx
lea eax, [ebp - 0x250]
push eax
mov dword [ebp - 4], 1
call fcn.00401890
add esp, 0xc
cmp dword [ebp - 0x220], 8
mov byte [ebp - 4], 3
jb 0x438130
mov ecx, dword [ebp - 0x234]
push ecx
call fcn.004b9d66
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.004ba451
mov esi, eax
add esp, 4
mov dword [ebp - 0x254], esi
mov byte [ebp - 4], 4
cmp esi, edi
je 0x438193
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.00401500
mov ecx, esi
call fcn.00437860
mov esi, eax
jmp 0x438195
xor esi, esi
mov ecx, dword [ebx + 0x14]
mov byte [ebp - 4], 3
cmp esi, ecx
je 0x4381af
cmp ecx, edi
je 0x4381ac
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 0x4381d3
mov eax, dword [ebp - 0x250]
push eax
call fcn.004b9d66
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.004ba901
mov esp, ebp
pop ebp
ret
Function at 0x439940
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 0x439930
push 0
push 0
mov dword [ebp - 4], 0
call fcn.004bcc59
add esp, 0x18
mov dword [esi + 0xc], eax
mov eax, dword [ebp - 4]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x43a240
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50c720
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x547770]
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 0x43a297
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 0x43a2de
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.00401720
cmp dword [ebp - 0x18], 8
jb 0x43a3cd
mov edx, dword [ebp - 0x2c]
push edx
jmp 0x43a3c5
cmp dword [edi + 0x14], 8
jb 0x43a2e6
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 0x43a32c
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.00401720
cmp dword [ebp - 0x18], 8
jmp 0x43a3bf
mov ebx, dword [ebp - 0x34]
add ebx, 2
push ebx
call fcn.004b896e
mov edi, eax
mov dword [ebp - 0x40], edi
push ebx
push 0
push edi
mov byte [ebp - 4], 1
call fcn.004bad00
mov eax, dword [ebp - 0x3c]
mov ebx, 8
add esp, 0x10
cmp dword [eax + 0x14], ebx
jb 0x43a35c
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 0x43a380
mov eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x43a395
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x43a395
cmp eax, 2
ja 0x43a395
push edi
lea ecx, [ebp - 0x2c]
call fcn.00402790
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.00401720
push edi
call fcn.004b9ad9
add esp, 4
cmp dword [ebp - 0x18], ebx
jb 0x43a3cd
mov eax, dword [ebp - 0x2c]
push eax
call fcn.004b9d66
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.004ba901
mov esp, ebp
pop ebp
ret
Function at 0x43bbb0
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 0x43bcb3
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 0x43bbeb
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 0x43bc86
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 0x43bc72
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 0x43bc9a
movzx ecx, cl
mov cl, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax + esi + 2], cl
mov byte [eax + esi + 3], 0x3d
jmp 0x43bc9d
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 0x43bbe5
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x43bcc0
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 0x43bcdd
dec edi
cmp byte [esi + edi - 1], al
je 0x43bcd6
xor eax, eax
mov dword [ebp + 0xc], eax
cmp edi, eax
jbe 0x43bd94
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 + 0x51cf70]
mov cl, byte [ecx + 0x51cf70]
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 0x43bd7f
mov ebx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
movsx edx, byte [edx + ebx + 2]
mov dl, byte [edx + 0x51cf70]
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 0x43bd7f
mov ecx, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
movsx ecx, byte [ecx + ebx + 3]
mov cl, byte [ecx + 0x51cf70]
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 0x43bd00
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x43bed0
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 0x43bee9
cmp ebx, 0x20
jne 0x43c0da
shr ebx, 2
mov dword [ebp - 8], ebx
mov edx, 4
cmp ebx, 4
jl 0x43befb
mov edx, ebx
push edi
mov edi, dword [ebp + 8]
lea edx, [edx*4 + 0x1c]
mov dword [ebp - 4], edx
test edi, edi
je 0x43c0d9
mov dword [edi], 0x10
mov dword [edi + 4], edx
add edi, 8
xor edx, edx
push esi
test ebx, ebx
jle 0x43bf59
add eax, 5
jmp 0x43bf30
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 0x43bf30
mov ecx, dword [edi + edx*4 - 4]
mov esi, ebx
cmp ebx, dword [ebp - 4]
jge 0x43c04d
mov dword [ebp + 8], 0
mov dword [ebp - 0xc], edi
mov eax, esi
cdq
idiv ebx
test edx, edx
jne 0x43bfdc
mov eax, dword [ebp + 8]
mov edx, ecx
shr edx, 0x10
and edx, 0xff
movzx ebx, byte [edx + 0x51d010]
cdq
idiv dword [ebp - 8]
mov edx, ecx
shr edx, 8
and edx, 0xff
movzx eax, byte [eax + 0x51cff0]
xor ebx, eax
movzx eax, byte [edx + 0x51d010]
shl ebx, 8
mov edx, ecx
xor ebx, eax
and edx, 0xff
movzx eax, byte [edx + 0x51d010]
shl ebx, 8
shr ecx, 0x18
movzx ecx, byte [ecx + 0x51d010]
xor ebx, eax
shl ebx, 8
xor ecx, ebx
mov ebx, dword [ebp - 8]
jmp 0x43c032
cmp ebx, 6
jle 0x43c032
cmp edx, 4
jne 0x43c032
mov edx, ecx
shr edx, 0x10
and edx, 0xff
movzx eax, byte [edx + 0x51d010]
mov edx, ecx
shr edx, 0x18
movzx edx, byte [edx + 0x51d010]
shl edx, 8
xor eax, edx
mov edx, ecx
shr edx, 8
and edx, 0xff
movzx edx, byte [edx + 0x51d010]
shl eax, 8
and ecx, 0xff
movzx ecx, byte [ecx + 0x51d010]
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 0x43bf72
xor edx, edx
dec esi
js 0x43c0d8
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 0x43c0c7
cmp esi, 4
jl 0x43c0c7
mov eax, ecx
shr eax, 0x10
and eax, 0xff
movzx eax, byte [eax + 0x51d010]
mov eax, dword [eax*4 + 0x51e610]
mov ebx, ecx
shr ebx, 8
and ebx, 0xff
movzx ebx, byte [ebx + 0x51d010]
xor eax, dword [ebx*4 + 0x51ea10]
mov ebx, ecx
shr ebx, 0x18
movzx ebx, byte [ebx + 0x51d010]
xor eax, dword [ebx*4 + 0x51e210]
and ecx, 0xff
movzx ecx, byte [ecx + 0x51d010]
xor eax, dword [ecx*4 + 0x51ee10]
jmp 0x43c0c9
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 0x43c060
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x43e610
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50cc3b
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x547770]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.004b968b
push 4
mov dword [ebp - 4], 0
call fcn.004ba451
mov edi, eax
add esp, 4
test edi, edi
je 0x43e690
call fcn.004b8ee9
mov dword [edi], eax
call fcn.004b8ca8
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.004b8bdd
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x43e686
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.004b8c05
jmp 0x43e692
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
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 0x446650
Capabilities:
Encode data using xor

Disassembly:
mov cl, byte [edx]
xor eax, eax
test cl, cl
je 0x44667d
push esi
lea esp, [esp]
movzx ecx, cl
movzx ecx, byte [ecx + 0x520d38]
lea esi, [eax*8]
xor ecx, esi
inc edx
xor eax, ecx
mov cl, byte [edx]
test cl, cl
jne 0x446660
pop esi
ret