joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10053437
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x100534d4
push ebx
push esi
call fcn.10053400
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.100512dc
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x10053481
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100534d3
push edi
push eax
call fcn.1004e030
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x100534a1
call fcn.1004beb0
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100534d2
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.100512dc
add esp, 0x20
test eax, eax
jne 0x100534c0
push edi
call fcn.1004beb0
jmp 0x100534c8
push ebx
call fcn.1004beb0
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x100534d7
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x100534e8
pop esi
ret
push ebx
push edi
push esi
call fcn.10053400
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.1004e030
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x10053510
push ebx
push esi
push edi
call fcn.1003db20
add esp, 0xc
push 0
call fcn.1004beb0
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x100538df
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10053525
Function at 0x10057356
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.1004c7e3
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x100573c5
cmp esi, dword [ebp - 4]
je 0x100573c0
cmp dword [ebp + 0xc], 0
je 0x100573c0
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x1005739d
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.10056eab
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x100573c7
xor eax, eax
inc eax
jmp 0x100573c7
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x10057432
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x1007a040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.1004c7e3
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.1004c7e3
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x100574a9
cmp word [ecx], dx
je 0x100574a9
mov eax, dword [0x1006601c]
push edi
dec eax
push eax
push 0x10065f08
call fcn.100573cb
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x1005751c
cmp word [eax], dx
je 0x1005751c
mov eax, dword [edi]
test eax, eax
je 0x100574cd
cmp word [eax], dx
je 0x100574cd
lea eax, [ebp - 0x10]
push eax
call fcn.10056db1
jmp 0x100574d6
lea eax, [ebp - 0x10]
push eax
call fcn.10056e4c
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x10057546
mov eax, dword [0x10065f04]
push dword [ebp - 0x14]
dec eax
push eax
push 0x10065bf8
call fcn.100573cb
add esp, 0xc
test al, al
je 0x10057546
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x10057511
cmp word [eax], di
je 0x10057511
lea eax, [ebp - 0x10]
push eax
call fcn.10056db1
pop ecx
jmp 0x10057548
lea eax, [ebp - 0x10]
push eax
call fcn.10056e4c
jmp 0x1005750e
mov eax, dword [edi]
test eax, eax
je 0x10057533
cmp word [eax], dx
je 0x10057533
lea eax, [ebp - 0x10]
push eax
call fcn.10056d66
pop ecx
jmp 0x10057546
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x10057611
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.10057250
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x10057611
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x10057611
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x10057611
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x1005759e
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.1004fe13
test ebx, ebx
je 0x1005760c
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.1004fe13
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x10057611
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x10057611
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.10059d6d
add esp, 0x10
xor eax, eax
inc eax
jmp 0x10057613
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1003bf25
leave
ret
Function at 0x10058f95
Capabilities:
Get file size

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x18
mov eax, dword [eax + 0xc]
nop
shr eax, 3
test al, 1
je 0x10058faf
mov al, 1
leave
ret
mov eax, dword [ebp + 8]
push ebx
push esi
mov eax, dword [eax + 0xc]
nop
test al, 0xc0
mov eax, dword [ebp + 8]
je 0x10058fc6
mov ecx, dword [eax]
cmp ecx, dword [eax + 4]
je 0x1005901e
mov eax, dword [eax + 0x10]
nop
push eax
call fcn.100543c3
mov esi, eax
pop ecx
cmp esi, 0xffffffff
je 0x1005901e
xor ebx, ebx
lea eax, [ebp - 0x10]
inc ebx
xorps xmm0, xmm0
push ebx
push eax
movlpd qword [ebp - 8], xmm0
push dword [ebp - 4]
push dword [ebp - 8]
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1005901e
lea eax, [ebp - 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1005901e
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x18]
jne 0x10059018
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x14]
je 0x1005901a
xor bl, bl
mov al, bl
jmp 0x10059020
xor al, al
pop esi
pop ebx
leave
ret

Function at 0x1005c120
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1005c14d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1005c14d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4034b0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50ae3e
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x574be0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [ebp - 4], 2
push dword [edi + 0x44]
lea ecx, [edi + 0x3c]
push 0
mov dword [edi + 0x3c], 0x54b998
call dword [0x54b99c]
push dword [edi + 0x48]
call fcn.004ea37d
add esp, 4
mov dword [edi + 0x40], 0
mov dword [edi + 0x44], 0
mov dword [edi + 0x48], 0
mov byte [ebp - 4], 1
push dword [edi + 0x30]
lea ecx, [edi + 0x28]
push 0
mov dword [edi + 0x28], 0x54b998
call dword [0x54b99c]
push dword [edi + 0x34]
call fcn.004ea37d
add esp, 4
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
mov byte [ebp - 4], 0
push dword [edi + 0x1c]
lea ecx, [edi + 0x14]
push 0
mov dword [edi + 0x14], 0x54b998
call dword [0x54b99c]
push dword [edi + 0x20]
call fcn.004ea37d
add esp, 4
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [ebp - 4], 0xffffffff
push dword [edi + 8]
mov ecx, edi
push 0
mov dword [edi], 0x54b998
call dword [0x54b99c]
push dword [edi + 0xc]
call fcn.004ea37d
add esp, 4
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4071b0
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50b2a4
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x574be0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
lea esi, [edi + 0x118]
mov dword [ebp - 4], 9
push dword [esi + 8]
mov ecx, esi
push 0
mov dword [esi], 0x54b998
call dword [0x54b99c]
push dword [esi + 0xc]
call fcn.004ea37d
add esp, 4
lea ecx, [edi + 0xf0]
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov byte [ebp - 4], 8
call fcn.004073b0
lea ecx, [edi + 0xc8]
mov byte [ebp - 4], 7
call fcn.004073b0
lea ecx, [edi + 0xa0]
mov byte [ebp - 4], 6
call fcn.004073b0
lea ecx, [edi + 0x78]
mov byte [ebp - 4], 5
call fcn.004073b0
lea ecx, [edi + 0x64]
mov byte [ebp - 4], 4
call fcn.00409110
mov byte [ebp - 4], 3
push dword [edi + 0x58]
lea ecx, [edi + 0x50]
push 0
mov dword [edi + 0x50], 0x54b998
call dword [0x54b99c]
push dword [edi + 0x5c]
call fcn.004ea37d
add esp, 4
lea ecx, [edi + 0x3c]
mov dword [edi + 0x54], 0
mov dword [edi + 0x58], 0
mov dword [edi + 0x5c], 0
mov byte [ebp - 4], 2
call fcn.00408fd0
mov byte [ebp - 4], 1
push dword [edi + 0x30]
lea ecx, [edi + 0x28]
push 0
mov dword [edi + 0x28], 0x54b998
call dword [0x54b99c]
push dword [edi + 0x34]
call fcn.004ea37d
add esp, 4
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
mov byte [ebp - 4], 0
push dword [edi + 0x1c]
lea ecx, [edi + 0x14]
push 0
mov dword [edi + 0x14], 0x54b998
call dword [0x54b99c]
push dword [edi + 0x20]
call fcn.004ea37d
add esp, 4
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [ebp - 4], 0xffffffff
push dword [edi + 8]
mov dword [edi], 0x54b998
push 0
mov ecx, edi
call dword [0x54b99c]
push dword [edi + 0xc]
call fcn.004ea37d
add esp, 4
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4116e0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0
push dword [ebp + 0xc]
mov esi, ecx
push 0x411730
push 0
push 0
call fcn.004eb025
add esp, 0x18
mov dword [esi], eax
pop esi
test eax, eax
je 0x411710
xor eax, eax
mov esp, ebp
pop ebp
ret 8
call dword [0x51b0d4]
test eax, eax
mov ecx, 1
cmovne ecx, eax
mov eax, ecx
mov esp, ebp
pop ebp
ret 8

Function at 0x412540
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x8c
mov eax, dword [0x574be0]
xor eax, esp
mov dword [esp + 0x88], eax
push ebx
push esi
mov esi, ecx
xor edx, edx
mov eax, dword [esi]
push edi
cmp eax, 0x3f
jne 0x4125da
cmp dword [esi + 4], edx
jbe 0x41257e
lea ecx, [ecx]
mov al, byte [esi + edx + 8]
mov byte [esi + edx + 0x24], al
inc edx
cmp edx, dword [esi + 4]
jb 0x412570
xor ecx, ecx
cmp dword [esi + 0x1c], ecx
jbe 0x4125a0
cmp edx, 0x20
jae 0x4126e5
mov eax, dword [esi + 0x20]
inc ecx
mov al, byte [ecx + eax - 1]
mov byte [esi + edx + 0x24], al
inc edx
cmp ecx, dword [esi + 0x1c]
jb 0x412585
cmp edx, 0x20
jae 0x4126e5
mov ecx, 0x20
sub ecx, edx
lea edi, [esi + 0x24]
add edi, edx
mov edx, ecx
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x88]
xor ecx, esp
call fcn.004e9f8a
mov esp, ebp
pop ebp
ret
xor ecx, ecx
bts ecx, eax
cmp eax, 0x20
xorps xmm0, xmm0
mov dword [esp + 0x20], 0x6a09e667
mov dword [esp + 0x24], 0xbb67ae85
mov dword [esp + 0x28], 0x3c6ef372
cmovae edx, ecx
xor ecx, edx
cmp eax, 0x40
cmovae edx, ecx
mov dword [esp + 0x2c], 0xa54ff53a
mov dword [esp + 0x30], 0x510e527f
mov dword [esp + 0x34], 0x9b05688c
mov dword [esp + 0x38], 0x1f83d9ab
mov dword [esp + 0x3c], 0x5be0cd19
movlpd qword [esp + 0x40], xmm0
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
mov dword [esp + 0x8c], 0
mov dword [esp + 0x90], 0
movlpd qword [esp + 0x18], xmm0
test edx, edx
jb 0x4126d9
ja 0x412664
test ecx, ecx
je 0x4126d9
mov ebx, dword [esp + 0x1c]
mov edi, dword [esp + 0x18]
lea eax, [esi + 8]
nop
push dword [esi + 4]
mov edx, eax
lea ecx, [esp + 0x24]
call fcn.0041f860
mov edx, dword [esi + 0x20]
add esp, 4
push dword [esi + 0x1c]
lea ecx, [esp + 0x24]
call fcn.0041f860
add esp, 4
lea edx, [esp + 0x8c]
push 8
lea ecx, [esp + 0x24]
call fcn.0041f860
add esp, 4
xor eax, eax
lea ebx, [ebx]
inc byte [esp + eax + 0x8c]
jne 0x4126bf
inc eax
cmp eax, 8
jl 0x4126b0
add edi, 1
adc ebx, 0
lea eax, [esi + 8]
cmp ebx, dword [esp + 0x14]
jb 0x412670
ja 0x4126d9
lea eax, [esi + 8]
cmp edi, dword [esp + 0x10]
jb 0x412670
lea edx, [esi + 0x24]
lea ecx, [esp + 0x20]
call fcn.0041f900
mov ecx, dword [esp + 0x94]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004e9f8a
mov esp, ebp
pop ebp
ret
Function at 0x41b040
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x50ccb8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push esi
mov eax, dword [0x574be0]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 4
mov dword [esp + 0xc], 0x54b920
mov ecx, dword [ebp + 0xc]
lea edx, [esp + 0xc]
mov dword [esp + 0x30], 0
call fcn.0041ad80
lea eax, [esp + 0xc]
push eax
push 1
mov ecx, esi
mov word [esp + 0x28], 0x100
mov byte [esp + 0x2a], 1
call fcn.0041af50
lea ecx, [esp + 0xc]
mov dword [esp + 0x30], 0xffffffff
call fcn.00402350
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 0x14
Function at 0x41d660
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
mov esi, dword [ebp + 0xc]
push edi
mov esi, dword [esi]
mov eax, ecx
xor edi, edi
and esi, 7
mov dword [ebp - 4], eax
cmp edx, 5
jae 0x41d684
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
add dword [ebp + 8], 5
push ebx
lea ecx, [edx - 4]
or ebx, 0xffffffff
add ecx, eax
mov dword [ebp - 8], ecx
lea edx, [edi + eax]
mov dword [ebp - 0xc], edx
cmp edx, ecx
jae 0x41d6b3
mov edi, edi
mov al, byte [edx]
and al, 0xfe
cmp al, 0xe8
je 0x41d6ad
inc edx
cmp edx, ecx
jb 0x41d6a0
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], edx
mov edi, edx
sub edi, eax
cmp edx, ecx
mov ecx, edi
jae 0x41d7c3
sub ecx, ebx
cmp ecx, 3
jbe 0x41d6eb
xor esi, esi
mov al, byte [edx + 4]
mov ebx, edi
mov dword [ebp - 0x14], ebx
test al, al
je 0x41d728
cmp al, 0xff
je 0x41d728
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 4]
and esi, 3
add esi, esi
or esi, 1
inc edi
jmp 0x41d694
dec ecx
shl esi, cl
and esi, 7
je 0x41d6ca
movzx eax, byte [esi + 0x54c778]
mov ecx, edx
sub ecx, eax
cmp byte [esi + 0x54c770], 0
mov al, byte [ecx + 4]
je 0x41d712
test al, al
je 0x41d712
cmp al, 0xff
jne 0x41d6ca
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 4]
and esi, 3
add esi, esi
mov ebx, edi
or esi, 1
inc edi
jmp 0x41d694
movzx ecx, byte [edx + 3]
movzx eax, al
shl eax, 8
or eax, ecx
movzx ecx, byte [edx + 2]
shl eax, 8
or eax, ecx
movzx ecx, byte [edx + 1]
mov edx, dword [ebp + 8]
shl eax, 8
or eax, ecx
lea esp, [esp]
sub eax, edi
sub eax, edx
mov ebx, eax
test esi, esi
je 0x41d78e
movzx eax, byte [esi + 0x54c778]
shl eax, 3
mov ecx, 0x18
sub ecx, eax
mov dword [ebp - 0x10], eax
mov eax, ebx
shr eax, cl
test al, al
je 0x41d77a
cmp al, 0xff
jne 0x41d78e
mov ecx, 0x20
sub ecx, dword [ebp - 0x10]
mov eax, 1
shl eax, cl
dec eax
xor eax, ebx
jmp 0x41d750
mov edx, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
mov eax, ebx
shr eax, 0x18
and al, 1
dec al
not al
mov byte [edx + 4], al
mov eax, ebx
shr eax, 0x10
mov byte [edx + 3], al
mov eax, ebx
shr eax, 8
mov byte [edx + 2], al
mov eax, dword [ebp - 4]
mov byte [edx + 1], bl
mov ebx, dword [ebp - 0x14]
add edi, 5
jmp 0x41d694
sub ecx, ebx
pop ebx
cmp ecx, 3
jbe 0x41d7da
mov eax, dword [ebp + 0xc]
xor esi, esi
mov dword [eax], esi
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0xc]
dec ecx
shl esi, cl
and esi, 7
mov dword [eax], esi
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x420020
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, edx
mov ebx, ecx
push edi
mov ecx, esi
call fcn.0041ffa0
mov dword [ebp - 8], eax
test ebx, ebx
je 0x420123
mov edi, dword [ebp + 8]
test edi, edi
je 0x420123
cmp eax, dword [ebp + 0xc]
ja 0x420123
xor eax, eax
test esi, esi
je 0x4200e4
cmp eax, esi
jae 0x420068
movzx edx, byte [eax + ebx]
inc eax
jmp 0x42006a
xor edx, edx
cmp eax, esi
jae 0x420078
movzx ecx, byte [eax + ebx]
mov dword [ebp - 4], ecx
inc eax
jmp 0x42007f
mov dword [ebp - 4], 0
cmp eax, esi
jae 0x42008a
movzx ecx, byte [eax + ebx]
inc eax
jmp 0x42008c
xor ecx, ecx
shl edx, 8
add edx, dword [ebp - 4]
add edi, 4
shl edx, 8
add edx, ecx
mov ecx, edx
shr ecx, 0x12
and ecx, 0x3f
movzx ecx, byte [ecx + 0x576a20]
mov byte [edi - 4], cl
mov ecx, edx
shr ecx, 0xc
and ecx, 0x3f
movzx ecx, byte [ecx + 0x576a20]
mov byte [edi - 3], cl
mov ecx, edx
shr ecx, 6
and ecx, 0x3f
and edx, 0x3f
movzx ecx, byte [ecx + 0x576a20]
mov byte [edi - 2], cl
movzx ecx, byte [edx + 0x576a20]
mov byte [edi - 1], cl
cmp eax, esi
jb 0x420061
mov edi, dword [ebp + 8]
mov eax, 0xaaaaaaab
mul esi
shr edx, 1
xor ecx, ecx
lea eax, [edx + edx*2]
mov edx, dword [ebp - 8]
sub esi, eax
cmp dword [esi*4 + 0x54d4fc], ecx
jle 0x420115
lea eax, [edx - 1]
add eax, edi
mov byte [eax], 0x3d
inc ecx
lea eax, [eax - 1]
cmp ecx, dword [esi*4 + 0x54d4fc]
jl 0x420105
mov eax, dword [ebp + 0x10]
mov dword [eax], edx
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4275a0
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50d682
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x574be0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], 0
mov dword [edi], 0x54d91c
mov dword [edi + 0x70], 0x54d938
mov dword [ebp - 4], 0
mov eax, dword [edi]
lea esi, [edi + 0x10]
mov eax, dword [eax + 4]
mov dword [ebp - 0x10], 1
mov dword [edi + eax], 0x54d928
mov eax, dword [edi]
mov ecx, dword [eax + 4]
push ecx
lea eax, [ecx - 0x18]
mov dword [ecx + edi - 4], eax
mov eax, dword [edi]
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov ecx, dword [eax + 4]
push esi
add ecx, edi
call fcn.00428160
mov dword [ebp - 4], 2
mov eax, dword [edi]
mov eax, dword [eax + 4]
mov dword [edi + eax], 0x54de00
mov eax, dword [edi]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x70]
mov dword [ecx + edi - 4], eax
mov ecx, esi
call fcn.00428830
lea eax, [esi + 4]
mov dword [esi + 0xc], eax
lea eax, [esi + 0x14]
mov dword [esi + 0x1c], eax
lea eax, [esi + 0x18]
mov dword [esi + 0x20], eax
lea eax, [esi + 0x24]
mov dword [esi + 0x2c], eax
mov dword [esi], 0x54d95c
mov byte [esi + 0x4c], 0
mov byte [esi + 0x45], 0
lea ecx, [esi + 8]
mov dword [esi + 0x10], ecx
lea eax, [esi + 0x28]
mov dword [esi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov eax, dword [esi + 0x30]
mov dword [eax], 0
mov eax, dword [esi + 0xc]
mov dword [eax], 0
mov eax, dword [esi + 0x1c]
mov dword [eax], 0
mov eax, dword [esi + 0x2c]
mov dword [eax], 0
mov eax, dword [0x57e528]
mov dword [esi + 0x50], 0
mov dword [esi + 0x48], eax
mov dword [esi + 0x40], 0
push ecx
push 1
push dword [ebp + 8]
mov ecx, esi
mov byte [ebp - 4], 3
call fcn.00428250
test eax, eax
jne 0x4276fa
mov eax, dword [edi]
mov ecx, dword [eax + 4]
mov eax, dword [ecx + edi + 0xc]
add ecx, edi
or eax, 2
cmp dword [ecx + 0x38], 0
jne 0x4276f2
or eax, 4
push 0
push eax
call fcn.00424ee0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
Function at 0x428480
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x50dba8
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x574be0]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
push edi
mov eax, dword [0x574be0]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebx + 0x40], 0
je 0x4285d4
cmp byte [ebx + 0x45], 0
je 0x4285d4
mov eax, dword [ebx]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
jne 0x4284e0
xor al, al
jmp 0x4285d6
mov ecx, 0xf
mov byte [esp + 0x18], 0
xorps xmm0, xmm0
movq qword [esp + 0x18], xmm0
lea eax, [esp + 0x18]
cmp ecx, 0x10
cmovae eax, dword [esp + 0x18]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x28], 8
mov byte [eax + 8], 0
mov dword [esp + 0x40], 0
jmp 0x428520
cmp dword [esp + 0x2c], 0x10
mov ecx, dword [ebx + 0x40]
lea eax, [esp + 0x14]
mov edx, dword [ecx]
push eax
mov eax, dword [esp + 0x2c]
lea edi, [esp + 0x1c]
cmovae edi, dword [esp + 0x1c]
lea esi, [esp + 0x1c]
cmovae esi, dword [esp + 0x1c]
add eax, edi
push eax
push esi
lea eax, [ebx + 0x48]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x428561
dec eax
je 0x428565
sub eax, 2
je 0x4285bb
xor bl, bl
jmp 0x4285bd
mov byte [ebx + 0x45], 0
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
cmp ecx, 0x10
lea eax, [esp + 0x18]
cmovae eax, edx
sub esi, eax
je 0x42859c
push dword [ebx + 0x50]
cmp ecx, 0x10
push esi
lea eax, [esp + 0x20]
cmovae eax, edx
push 1
push eax
call fcn.004ecc8d
add esp, 0x10
cmp esi, eax
jne 0x42855d
cmp byte [ebx + 0x45], 0
je 0x4285bb
test esi, esi
jne 0x428520
push esi
push 8
lea ecx, [esp + 0x20]
call fcn.004280b0
jmp 0x428520
mov bl, 1
cmp dword [esp + 0x2c], 0x10
jb 0x4285d0
push dword [esp + 0x18]
call fcn.004ea37d
add esp, 4
mov al, bl
jmp 0x4285d6
mov al, 1
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.004e9f8a
mov esp, ebp
pop ebp
ret