joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408a40
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5083f0
mov eax, dword fs:[0]
push eax
sub esp, 0x54
push ebx
push esi
push edi
mov eax, dword [0x570be0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
lea eax, [ebp - 0x60]
push eax
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x4c]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x1e0], eax
xor eax, eax
mov edx, 2
mov dword [ebp - 0x14], eax
cmp eax, dword [ebp + 0x14]
jge 0x408c11
mov ecx, dword [ebp + 0xc]
xor edi, edi
mov ebx, dword [ecx + eax*4]
xor esi, esi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], edi
cmp word [ebx], si
je 0x408aba
inc esi
cmp word [ebx + esi*2], di
jne 0x408ab3
lea eax, [esi + 1]
test eax, eax
je 0x408ae5
xor ecx, ecx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004e7273
mov edi, eax
add esp, 4
xor eax, eax
mov word [edi], ax
lea eax, [esi + 1]
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x1c], eax
mov ecx, edi
sub ebx, edi
lea esp, [esp]
movzx eax, word [ebx + ecx]
mov word [ecx], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x408af0
mov dword [ebp - 0x20], esi
push edi
mov byte [ebp - 4], 1
call dword [sym.imp.USER32.dll_CharUpperW]
test esi, esi
jne 0x408b33
push edi
call fcn.004e71fd
add esp, 4
mov eax, 0x80070057
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov esi, dword [ebp - 0x14]
shl esi, 4
add esi, dword [ebp + 0x10]
lea edx, [ebp - 0x18]
lea ecx, [ebp - 0x24]
call fcn.0040f8f0
test eax, eax
jne 0x408bfb
push 2
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x24]
call fcn.00408dc0
mov ecx, dword [eax]
mov edx, 0x548cc4
call fcn.0041aa50
push dword [ebp - 0x30]
test eax, eax
sete bl
call fcn.004e71fd
add esp, 4
test bl, bl
je 0x408b11
push 2
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x24]
call fcn.00408d90
mov ecx, dword [ebp + 8]
add ecx, 0x1e0
push ecx
mov byte [ebp - 4], 2
push dword [ebp - 0x4c]
mov edx, esi
mov ecx, eax
call fcn.0040f940
add esp, 8
mov byte [ebp - 4], 1
push dword [ebp - 0x3c]
mov esi, eax
call fcn.004e71fd
add esp, 4
push edi
test esi, esi
je 0x408bfc
call fcn.004e71fd
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 esp, ebp
pop ebp
ret 0x10
push edi
mov byte [ebp - 4], 0
call fcn.004e71fd
mov eax, dword [ebp - 0x14]
add esp, 4
inc eax
jmp 0x408a8a
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x40fdd0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
mov ecx, 0x400000
cmp eax, ecx
cmova eax, ecx
push 0
lea ecx, [ebp + 0x10]
push ecx
push eax
push dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov dword [ebp + 0x10], 0
push dword [eax + 0xc]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp + 0x14]
test eax, eax
setne dl
test ecx, ecx
je 0x40fe0e
mov eax, dword [ebp + 0x10]
mov dword [ecx], eax
test dl, dl
je 0x40fe18
xor eax, eax
pop ebp
ret 0x10
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x40fe2b
mov eax, 0x80004005
pop ebp
ret 0x10
jle 0x40fe35
movzx eax, ax
or eax, 0x80070000
pop ebp
ret 0x10

Function at 0x40ff50
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 8]
push dword [eax + 8]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40ff9d
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x40ff9d
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x40ff8c
mov eax, 0x80004005
pop edi
mov esp, ebp
pop ebp
ret 8
jle 0x40ffb1
movzx eax, ax
or eax, 0x80070000
pop edi
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp - 4]
xor ecx, ecx
add ecx, edi
adc edx, 0
mov dword [eax], ecx
mov dword [eax + 4], edx
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret 8

Function at 0x410000
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
mov ecx, 0x400000
cmp eax, ecx
push 0
cmova eax, ecx
lea ecx, [ebp + 0x10]
push ecx
push eax
push dword [ebp + 0xc]
mov dword [ebp + 0x10], 0
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp + 0x14]
test eax, eax
mov eax, dword [ebp + 0x10]
setne dl
add dword [esi + 0x10], eax
adc dword [esi + 0x14], 0
pop esi
test ecx, ecx
je 0x410047
mov dword [ecx], eax
test dl, dl
je 0x410051
xor eax, eax
pop ebp
ret 0x10
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x410064
mov eax, 0x80004005
pop ebp
ret 0x10
jle 0x41006e
movzx eax, ax
or eax, 0x80070000
pop ebp
ret 0x10

Function at 0x410210
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x14]
test esi, esi
je 0x410221
mov dword [esi], 0
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41027b
mov eax, 0x8000
cmp ecx, eax
push 0
cmovb eax, ecx
lea ecx, [ebp + 0x14]
push ecx
push eax
push dword [ebp + 0xc]
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test esi, esi
je 0x410254
mov ecx, dword [ebp + 0x14]
add dword [esi], ecx
test eax, eax
jne 0x41027b
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x41026c
mov eax, 0x80004005
pop esi
pop ebp
ret 0x10
jle 0x41027d
movzx eax, ax
or eax, 0x80070000
pop esi
pop ebp
ret 0x10
xor eax, eax
pop esi
pop ebp
ret 0x10
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.004e7ea4
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 [sym.imp.KERNEL32.dll_GetLastError]
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 [0x570be0]
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.004e6e0a
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.004e6e0a
mov esp, ebp
pop ebp
ret
Function at 0x413840
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
lea edi, [ecx + 0x24]
cmp edi, esi
je 0x41388a
mov eax, dword [esi]
xor ecx, ecx
mov dword [esi + 4], 0
mov word [eax], cx
mov eax, dword [edi + 4]
inc eax
cmp eax, dword [esi + 8]
je 0x41386f
push eax
mov ecx, esi
call fcn.004031d0
mov ecx, dword [edi]
mov edx, dword [esi]
movzx eax, word [ecx]
mov word [edx], ax
lea edx, [edx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x413873
mov eax, dword [edi + 4]
mov dword [esi + 4], eax
mov ebx, dword [ebp + 8]
xor edi, edi
cmp dword [ebx + 8], edi
jle 0x4138be
test edi, edi
jle 0x4138a1
push 0x5c
mov ecx, esi
call fcn.00408c70
mov eax, dword [ebx + 0xc]
mov ecx, esi
push dword [eax + edi*4]
call fcn.00408cf0
push 0
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
inc edi
cmp edi, dword [ebx + 8]
jl 0x413894
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x4144e0
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x508db0
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x570be0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
cmp dword [ebp + 0xc], 3
mov esi, dword [ebp + 8]
mov dword [ebp - 4], 0
ja 0x4146a6
mov edx, dword [esi + 0xa0]
test edx, edx
je 0x414565
mov ecx, dword [esi + 0x9c]
mov eax, dword [ecx + 0x18]
not eax
add dword [esi + 0xf0], eax
mov eax, dword [ecx + 0x10]
mov ecx, dword [ecx + 0x14]
mov dword [esi + 0x88], eax
mov dword [esi + 0x8c], ecx
mov byte [esi + 0x90], 1
test edx, edx
je 0x414565
mov eax, dword [edx]
push edx
call dword [eax + 8]
mov dword [esi + 0xa0], 0
cmp dword [esi + 0x98], 0
je 0x414611
cmp byte [esi + 0x5c], 0
je 0x414583
cmp byte [esi + 0x7e], 0
je 0x414583
lea ecx, [esi + 0x70]
jmp 0x414593
mov eax, dword [esi + 0x10]
cmp byte [eax + 0x2c], 0
je 0x414591
lea ecx, [eax + 0x24]
jmp 0x414593
xor ecx, ecx
cmp byte [esi + 0x5b], 0
je 0x4145a4
cmp byte [esi + 0x7d], 0
je 0x4145a4
lea edi, [esi + 0x68]
jmp 0x4145a6
xor edi, edi
cmp byte [esi + 0x5a], 0
je 0x4145b7
cmp byte [esi + 0x7c], 0
je 0x4145b7
lea edx, [esi + 0x60]
jmp 0x4145b9
xor edx, edx
mov eax, dword [esi + 0x94]
push ecx
push edi
push edx
push dword [eax + 8]
call dword [sym.imp.KERNEL32.dll_SetFileTime]
mov ecx, dword [esi + 0x94]
mov eax, dword [ecx + 0x10]
mov dword [esi + 0x88], eax
mov eax, dword [ecx + 0x14]
mov dword [esi + 0x8c], eax
mov byte [esi + 0x90], 1
call fcn.0040ffc0
test eax, eax
jne 0x4146c5
mov ecx, dword [esi + 0x98]
test ecx, ecx
je 0x414611
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [esi + 0x98], 0
cmp byte [esi + 0x90], 0
jne 0x41462a
mov ecx, esi
call fcn.00413980
cmp byte [esi + 0x90], 0
je 0x414642
mov eax, dword [esi + 0x88]
add dword [esi + 0xe8], eax
mov eax, dword [esi + 0x8c]
adc dword [esi + 0xec], eax
cmp byte [esi + 0x80], 0
je 0x41465b
add dword [esi + 0xd8], 1
adc dword [esi + 0xdc], 0
jmp 0x414669
add dword [esi + 0xe0], 1
adc dword [esi + 0xe4], 0
cmp byte [esi + 0x59], 0
je 0x414681
cmp byte [esi + 0x7f], 0
je 0x414681
push dword [esi + 0x78]
push dword [esi + 0x38]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
movzx eax, byte [esi + 0x5d]
mov ecx, dword [esi + 0x18]
push eax
push dword [ebp + 0xc]
mov edx, dword [ecx]
push ecx
call dword [edx + 0x20]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [esi + 0x98]
test ecx, ecx
je 0x4146c0
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [esi + 0x98], 0
mov eax, 0x80004005
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x41b040
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x509ab8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push esi
mov eax, dword [0x570be0]
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], vtable.CObjectVector_class_CStringBase_wchar_t__.0
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], pe_nt_image_headers32
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 0x41bce0
Capabilities:
Delete file
Set file attributes

Disassembly:
push esi
mov esi, ecx
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x41bcf4
xor al, al
pop esi
ret
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne al
pop esi
ret

Function at 0x41c690
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
lea esi, [edi + 0x1c]
shr edi, 2
mov eax, edi
shr eax, 1
add eax, 3
mov dword [ebx], eax
add ebx, 0x10
xor ecx, ecx
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], ebx
test edi, edi
je 0x41c6cd
lea esp, [esp]
mov eax, dword [edx]
mov dword [ebx + ecx*4], eax
inc ecx
lea edx, [edx + 4]
cmp ecx, edi
jb 0x41c6c0
cmp ecx, esi
jae 0x41c7b4
mov eax, ecx
sub eax, edi
lea esi, [ebx + eax*4]
mov dword [ebp + 8], esi
nop
xor edx, edx
mov eax, ecx
div edi
mov ebx, dword [ebx + ecx*4 - 4]
mov dword [ebp - 4], eax
test edx, edx
jne 0x41c748
movzx edx, bl
movzx esi, byte [edx + str.cw]
mov edx, ebx
shr edx, 0x18
shl esi, 8
movzx eax, byte [edx + str.cw]
or esi, eax
mov eax, ebx
shr eax, 0x10
and eax, 0xff
shl esi, 8
movzx eax, byte [eax + str.cw]
or esi, eax
mov eax, dword [ebp - 4]
shr ebx, 8
movzx eax, byte [eax + 0x5728ec]
and ebx, 0xff
shl esi, 8
movzx ebx, byte [ebx + str.cw]
xor ebx, eax
or ebx, esi
mov esi, dword [ebp + 8]
jmp 0x41c799
cmp edi, 6
jbe 0x41c799
cmp edx, 4
jne 0x41c799
mov eax, ebx
shr eax, 0x10
and eax, 0xff
movzx edx, byte [eax + str.cw]
mov eax, ebx
shr eax, 0x18
movzx eax, byte [eax + str.cw]
shl eax, 8
or edx, eax
mov eax, ebx
shr eax, 8
and eax, 0xff
shl edx, 8
movzx eax, byte [eax + str.cw]
or edx, eax
movzx eax, bl
shl edx, 8
movzx ebx, byte [eax + str.cw]
or ebx, edx
mov eax, dword [esi]
xor eax, ebx
mov ebx, dword [ebp - 8]
inc ecx
mov dword [ebx + ecx*4 - 4], eax
add esi, 4
mov dword [ebp + 8], esi
cmp ecx, dword [ebp - 0xc]
jb 0x41c6e0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
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 + 0x549738]
mov ecx, edx
sub ecx, eax
cmp byte [esi + 0x549730], 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 + 0x549738]
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 0x41fc60
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x41fc79
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x41fcb4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x41fcb0
lea ebx, [ebx]
cmp esi, edx
jae 0x41fcb4
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
dec ecx
jne 0x41fca0
cmp esi, edx
jb 0x41fcbb
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop edi
pop ebx
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 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edi - 4], cl
mov ecx, edx
shr ecx, 0xc
and ecx, 0x3f
movzx ecx, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edi - 3], cl
mov ecx, edx
shr ecx, 6
and ecx, 0x3f
and edx, 0x3f
movzx ecx, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edi - 2], cl
movzx ecx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
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 + 0x54a4bc], 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 + 0x54a4bc]
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 0x4272b0
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50a432
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x570be0]
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], 0x54a8dc
mov dword [edi + 0x70], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
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], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
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.00427e70
mov dword [ebp - 4], 2
mov eax, dword [edi]
mov eax, dword [eax + 4]
mov dword [edi + eax], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov eax, dword [edi]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x70]
mov dword [ecx + edi - 4], eax
mov ecx, esi
call fcn.00428540
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], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
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 [0x57a4a0]
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.00427f60
test eax, eax
jne 0x42740a
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 0x427402
or eax, 4
push 0
push eax
call fcn.00424bf0
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