joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40dc0c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe98
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x160], ecx
mov dword [ebp - 0x164], ecx
mov dword [ebp - 0x168], ecx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x40dd73
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0040a18c
cmp si, word [0x4e0a18]
jb 0x40dca4
cmp si, word [0x4e0c18]
ja 0x40dca4
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40dca4
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x4e0a18]
jae 0x40dc7e
mov edi, ebx
dec edi
jmp 0x40dc9f
cmp si, word [ebx*8 + 0x4e0a18]
jbe 0x40dc8e
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40dc9f
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x4e0a1c]
call fcn.0040db2c
jmp 0x40dca4
cmp edi, dword [ebp - 8]
jae 0x40dc68
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40dd53
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40dd53
push 0x55
lea eax, [ebp - 0xb2]
push eax
push 0x59
movzx ebx, si
push ebx
call sub.kernel32.dll_GetLocaleInfoW
push 0x55
lea eax, [ebp - 0x15c]
push eax
push 0x5a
push ebx
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x160]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0040acd4
push dword [ebp - 0x160]
push 0x40dd90
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.0040acd4
push dword [ebp - 0x164]
push 0x40dda0
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0040acd4
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.0040af0c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40dd7a
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.0040a1ec
pop eax
jmp eax
Function at 0x40df28
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40e02e
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x4e8c14
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x4e8c2c]
jne 0x40df74
mov eax, esi
mov edx, 0x4e8c2e
mov ecx, 0x55
call fcn.0040acd4
push 0x4e8c14
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40e016
push 0x4e8c14
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.0040a18c
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40dfe3
cmp byte [0x4e8c10], 0
je 0x40dfa8
mov edx, esi
mov eax, ebx
call fcn.0040de0c
jmp 0x40dfe3
mov edx, esi
mov eax, ebx
call fcn.0040dc0c
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40dfe3
cmp dword [esi], 0
je 0x40dfcc
mov eax, esi
mov edx, 0x40e048
call fcn.0040ae2c
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040dc0c
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0040ae2c
push 0x4e8c14
call sub.kernel32.dll_EnterCriticalSection
mov word [0x4e8c2c], bx
mov eax, dword [esi]
call fcn.0040ac38
mov ecx, eax
mov eax, 0x4e8c2e
mov edx, 0xaa
call fcn.0040da8c
push 0x4e8c14
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e035
lea eax, [ebp - 4]
call fcn.0040a18c
pop eax
jmp eax
Function at 0x420d88
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x420de1
test eax, edx
je 0x420de4
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x420d9f
movzx eax, word [eax]
sub eax, ecx
jmp 0x420dc6
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
shl ecx, 1
sub eax, ecx
sub edx, ecx
mov ebx, dword [eax + ecx]
xor ebx, dword [edx + ecx]
jne 0x420dc7
add ecx, 4
js 0x420db7
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x420dc4
movzx eax, word [eax + ecx]
movzx edx, word [edx + ecx]
sub eax, edx
pop ebx
pop ebx
jmp 0x420dc6
xor eax, eax
ret
test eax, eax
je 0x420df0
test edx, edx
jne 0x420d90
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x426874
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x200]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW
test eax, eax
jle 0x4268ad
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.0040a324
jmp 0x4268b6
mov eax, ebx
mov edx, esi
call fcn.0040a57c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4268c0
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff8
mov edi, ecx
mov esi, edx
mov ebx, eax
push 3
lea eax, [esp + 4]
push eax
push esi
push ebx
call sub.kernel32.dll_GetLocaleInfoW
test eax, eax
jle 0x4268e4
movzx eax, word [esp]
jmp 0x4268e6
mov eax, edi
pop ecx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x4285dc
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff778
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 4], ecx
xor ecx, ecx
push ebp
push 0x428703
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.004283e4
mov esi, eax
mov eax, dword [0x4e4fa0]
cmp byte [eax], 0
je 0x4286a9
mov eax, dword [0x4e4dcc]
call fcn.00407b44
call fcn.00406f4c
push 0
push 0
push 0
push 0
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte
mov ebx, eax
push ebx
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x4285ac]
call fcn.0040d060
add esp, 4
push 0
push 0
push ebx
mov eax, dword [ebp - 4]
push eax
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte
push 0
lea eax, [ebp - 8]
push eax
push ebx
mov eax, dword [ebp - 4]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [ebp - 8]
push eax
push 2
push 0x42871c
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
jmp 0x4286e5
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x4e4d88]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4e9634]
call fcn.0040d730
push eax
call sub.user32.dll_LoadStringW
push 0x2010
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x888]
push eax
push 0
call sub.user32.dll_MessageBoxW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42870a
lea eax, [ebp - 4]
mov edx, dword [0x4285ac]
call fcn.0040d184
pop eax
jmp eax

Function at 0x42aa44
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffdf8
mov ebx, eax
mov eax, ebx
call fcn.0040a66c
mov ebp, eax
push ebp
push 0
push 0
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.004103f4
mov edi, eax
cmp edi, 0x104
jbe 0x42a9ef
mov eax, edi
add eax, eax
call fcn.00406dd8
mov esi, eax
jmp 0x42a9f1
mov esi, esp
push ebp
push esi
push edi
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.004103f4
push esi
call sub.user32.dll_CharUpperW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x42aa2a
inc eax
xor edx, edx
mov ecx, ebx
shl ecx, 5
shr ebx, 0x1b
or ecx, ebx
mov ebx, ecx
movzx ecx, word [esi + edx*2]
xor ebx, ecx
inc edx
dec eax
jne 0x42aa14
mov eax, esp
cmp esi, eax
je 0x42aa37
mov eax, esi
call fcn.00406df4
mov eax, ebx
add esp, 0x208
pop ebp
pop edi
pop esi
pop ebx
ret
push esi
push ebx
mov esi, eax
xor eax, eax
push esi
rol eax, 5
mov bl, byte [esi]
test bl, 0x80
jne 0x42aa70
cmp bl, 0
je 0x42aa6c
cmp bl, 0x41
jl 0x42aa67
cmp bl, 0x5a
jg 0x42aa67
or bl, 0x20
xor al, bl
inc esi
jmp 0x42aa4b
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x42a9b0

Function at 0x42b38c
Capabilities:
Get geographical location

Disassembly:
push ebx
add esp, 0xfffff800
mov ebx, ecx
mov word [esp], 0
push 0x400
lea ecx, [esp + 4]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW
mov eax, ebx
mov edx, esp
mov ecx, 0x400
call fcn.0040acd4
add esp, 0x800
pop ebx
ret
Function at 0x42db38
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
mov eax, dword [eax]
test eax, eax
je 0x42db56
mov eax, dword [eax - 4]
lea ebx, [edi + esi]
cmp eax, ebx
jg 0x42db6e
mov eax, dword [ebp - 4]
mov eax, dword [eax]
test eax, eax
je 0x42db69
mov eax, dword [eax - 4]
mov dword [ebp - 8], eax
jmp 0x42db73
add edi, esi
mov dword [ebp - 8], edi
movzx eax, word [ebp + 0x14]
cmp ax, word [ebp + 0x10]
je 0x42dbe1
xor eax, eax
mov dword [ebp - 0xc], eax
cmp esi, dword [ebp - 8]
jge 0x42dc2a
mov eax, dword [ebp - 4]
mov eax, dword [eax]
movzx eax, word [eax + esi*2]
cmp ax, word [ebp + 0x14]
jne 0x42db9f
inc dword [ebp - 0xc]
jmp 0x42dbb7
mov eax, dword [ebp - 4]
mov eax, dword [eax]
movzx eax, word [eax + esi*2]
cmp ax, word [ebp + 0x10]
jne 0x42dbb7
cmp dword [ebp - 0xc], 0
jle 0x42dbb7
dec dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0
jne 0x42dbd9
xor eax, eax
jmp 0x42dbd5
movzx edi, word [edx + eax*2]
mov ebx, dword [ebp - 4]
mov ebx, dword [ebx]
cmp di, word [ebx + esi*2]
jne 0x42dbd4
mov eax, esi
jmp 0x42dc2d
inc eax
cmp eax, ecx
jle 0x42dbc1
inc esi
cmp esi, dword [ebp - 8]
jl 0x42db8b
jmp 0x42dc2a
mov byte [ebp - 0xd], 0
cmp esi, dword [ebp - 8]
jge 0x42dc2a
mov eax, dword [ebp - 4]
mov eax, dword [eax]
movzx eax, word [eax + esi*2]
cmp ax, word [ebp + 0x14]
jne 0x42dc02
movzx eax, byte [ebp - 0xd]
xor al, 1
mov byte [ebp - 0xd], al
cmp byte [ebp - 0xd], 0
jne 0x42dc24
xor eax, eax
jmp 0x42dc20
movzx edi, word [edx + eax*2]
mov ebx, dword [ebp - 4]
mov ebx, dword [ebx]
cmp di, word [ebx + esi*2]
jne 0x42dc1f
mov eax, esi
jmp 0x42dc2d
inc eax
cmp eax, ecx
jle 0x42dc0c
inc esi
cmp esi, dword [ebp - 8]
jl 0x42dbea
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x42de1c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
mov word [ebp - 0xa], cx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
test eax, eax
je 0x42de39
mov eax, dword [eax - 4]
mov esi, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
test eax, eax
je 0x42de47
mov eax, dword [eax - 4]
mov ebx, eax
sub ebx, dword [ebp + 8]
sub ebx, esi
inc ebx
cmp dword [ebp + 8], 0
jl 0x42df69
test ebx, ebx
jl 0x42df69
test esi, esi
jle 0x42df69
mov eax, dword [ebp - 8]
call fcn.0040ac38
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.0040ac38
mov ecx, eax
mov eax, dword [ebp + 8]
add eax, eax
add ecx, eax
movzx eax, word [ebp - 0xa]
cmp ax, word [ebp + 0xc]
je 0x42df06
xor eax, eax
mov dword [ebp - 0x14], eax
test ebx, ebx
jl 0x42df69
inc ebx
mov dword [ebp - 0x1c], ebx
xor edx, edx
xor eax, eax
jmp 0x42deeb
lea ebx, [eax + edx]
movzx ebx, word [ecx + ebx*2]
cmp bx, word [ebp - 0xa]
jne 0x42deba
inc dword [ebp - 0x14]
jmp 0x42deca
lea ebx, [eax + edx]
movzx ebx, word [ecx + ebx*2]
cmp bx, word [ebp + 0xc]
jne 0x42deca
dec dword [ebp - 0x14]
cmp dword [ebp - 0x14], 0
jle 0x42ded5
or eax, 0xffffffff
jmp 0x42deeb
lea ebx, [eax + edx]
movzx ebx, word [ecx + ebx*2]
mov edi, dword [ebp - 0x10]
cmp bx, word [edi + eax*2]
jne 0x42dee8
inc eax
jmp 0x42deeb
or eax, 0xffffffff
test eax, eax
jl 0x42def3
cmp esi, eax
jg 0x42dea8
cmp esi, eax
jg 0x42defe
mov eax, edx
add eax, dword [ebp + 8]
jmp 0x42df6c
inc edx
dec dword [ebp - 0x1c]
jne 0x42dea4
jmp 0x42df69
mov byte [ebp - 0x15], 0
test ebx, ebx
jl 0x42df69
inc ebx
mov dword [ebp - 0x1c], ebx
xor edx, edx
xor eax, eax
jmp 0x42df50
lea ebx, [eax + edx]
movzx ebx, word [ecx + ebx*2]
cmp bx, word [ebp - 0xa]
jne 0x42df2f
movzx ebx, byte [ebp - 0x15]
xor bl, 1
mov byte [ebp - 0x15], bl
cmp byte [ebp - 0x15], 0
je 0x42df3a
or eax, 0xffffffff
jmp 0x42df50
lea ebx, [eax + edx]
movzx ebx, word [ecx + ebx*2]
mov edi, dword [ebp - 0x10]
cmp bx, word [edi + eax*2]
jne 0x42df4d
inc eax
jmp 0x42df50
or eax, 0xffffffff
test eax, eax
jl 0x42df58
cmp esi, eax
jg 0x42df18
cmp esi, eax
jg 0x42df63
mov eax, edx
add eax, dword [ebp + 8]
jmp 0x42df6c
inc edx
dec dword [ebp - 0x1c]
jne 0x42df14
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x43e180
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov dl, 0xb5
mov ebx, eax
xor eax, eax
mov ecx, eax
mov esi, ebx
shr esi, cl
mov ecx, esi
and cl, 0xff
xor dl, cl
inc eax
cmp eax, 4
jne 0x43e188
mov eax, edx
pop esi
pop ebx
ret

Function at 0x440dfc
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebx
add edx, eax
cmp edx, eax
jbe 0x440e13
movzx ebx, byte [eax]
xor ecx, ebx
imul ecx, ecx, 0x1000193
inc eax
cmp edx, eax
ja 0x440e03
mov eax, ecx
pop ebx
ret
Function at 0x4552e8
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
test dl, dl
je 0x4552fc
add esp, 0xfffffff0
call fcn.00408924
mov ebx, edx
mov esi, eax
mov dl, 1
mov eax, dword [0x44f26c]
call fcn.00473d48
mov dword [esi + 4], eax
mov dl, 1
mov eax, dword [0x4542b8]
call fcn.00476afc
mov dword [esi + 8], eax
mov dl, 1
mov eax, dword [0x4542b8]
call fcn.00476afc
mov dword [esi + 0xc], eax
lea eax, [ebp - 0x24]
push eax
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [ebp - 0x20]
mov dword [esi + 0x10], eax
mov eax, esi
test bl, bl
je 0x455351
call fcn.0040897c
pop dword fs:[0]
add esp, 0xc
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4b8c60
Capabilities:
Resume thread

Disassembly:
push ebx
mov ebx, eax
or dl, byte [ebx + 0xd]
je 0x4b8ca3
cmp byte [ebx + 0x11], 0
jne 0x4b8ca3
cmp byte [ebx + 0x24], 0
jne 0x4b8ca3
mov byte [ebx + 0xf], 0
mov byte [ebx + 0xd], 0
mov eax, dword [ebx + 8]
push eax
call sub.kernel32.dll_ResumeThread
cmp eax, 1
je 0x4b8cba
mov ecx, dword [0x4e4f54]
mov dl, 1
mov eax, dword [0x48ba9c]
call fcn.00428888
call fcn.004097f4
pop ebx
ret
mov ecx, dword [0x4e4f54]
mov dl, 1
mov eax, dword [0x48ba9c]
call fcn.00428888
call fcn.004097f4
pop ebx
ret

Function at 0x4b9628
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0xf]
mov byte [ebp - 5], al
xor eax, eax
push ebp
push 0x4b9676
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov byte [eax + 0xf], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
push eax
call sub.kernel32.dll_SuspendThread
test eax, eax
setge dl
mov eax, dword [ebp - 4]
call fcn.004b8b0c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4b968f
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x4b9698
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 8]
push eax
call sub.kernel32.dll_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.004b8b0c
dec esi
jne 0x4b96ba
mov byte [ebx + 0xf], 0
pop esi
pop ebx
ret
Function at 0x4d1db4
Capabilities:
Encode data using base64

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff4
mov dword [esp + 4], ecx
mov dword [esp], edx
mov esi, eax
mov eax, dword [esp]
mov dword [esp + 8], eax
xor ebx, ebx
xor ecx, ecx
mov eax, dword [esp + 4]
mov edx, 0x55555556
imul edx
mov eax, edx
shr eax, 0x1f
add eax, edx
test eax, eax
jle 0x4d1e77
mov edx, dword [esp + 8]
lea edi, [edx + ecx]
movzx edx, byte [esi + ebx]
shr edx, 2
movzx edx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edi], dl
movzx edx, byte [esi + ebx]
and dl, 3
movzx edx, dl
shl edx, 4
movzx edi, byte [esi + ebx + 1]
shr edi, 4
add edx, edi
movzx edx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov edi, dword [esp + 8]
mov byte [edi + ecx + 1], dl
movzx edx, byte [esi + ebx + 1]
and dl, 0xf
movzx edx, dl
shl edx, 2
movzx edi, byte [esi + ebx + 2]
shr edi, 6
add edx, edi
movzx edx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov edi, dword [esp + 8]
mov byte [edi + ecx + 2], dl
mov edx, dword [esp + 8]
lea edx, [edx + ecx + 3]
push edx
movzx edx, byte [esi + ebx + 2]
and dl, 0x3f
movzx edx, dl
movzx edx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
pop edi
mov byte [edi], dl
add ecx, 4
add ebx, 3
dec eax
jne 0x4d1de8
mov edi, dword [esp + 4]
mov eax, 0x55555556
imul edi
mov eax, edx
shr eax, 0x1f
add edx, eax
lea edx, [edx + edx*2]
sub edi, edx
dec edi
je 0x4d1e99
dec edi
je 0x4d1ede
jmp 0x4d1f3e
mov eax, dword [esp + 8]
movzx edx, byte [esi + ebx]
shr edx, 2
movzx edx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax + ecx], dl
mov eax, dword [esp + 8]
movzx edx, byte [esi + ebx]
and dl, 3
movzx edx, dl
shl edx, 4
movzx edx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax + ecx + 1], dl
mov eax, dword [esp + 8]
mov byte [eax + ecx + 2], 0x3d
mov eax, dword [esp + 8]
mov byte [eax + ecx + 3], 0x3d
jmp 0x4d1f3e
mov eax, dword [esp + 8]
movzx edx, byte [esi + ebx]
shr edx, 2
movzx edx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax + ecx], dl
movzx eax, byte [esi + ebx]
and al, 3
movzx eax, al
shl eax, 4
movzx edx, byte [esi + ebx + 1]
shr edx, 4
add eax, edx
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov edx, dword [esp + 8]
mov byte [edx + ecx + 1], al
mov eax, dword [esp + 8]
movzx edx, byte [esi + ebx + 1]
and dl, 0xf
movzx edx, dl
shl edx, 2
movzx edx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax + ecx + 2], dl
mov eax, dword [esp + 8]
mov byte [eax + ecx + 3], 0x3d
mov eax, dword [esp + 4]
add eax, 2
mov edx, 0x55555556
imul edx
mov eax, edx
shr eax, 0x1f
add eax, edx
shl eax, 2
add esp, 0xc
pop edi
pop esi
pop ebx
ret
Function at 0x4d1fb8
Capabilities:
Encode data using base64

Disassembly:
push esi
push edi
push ebp
add esp, 0xfffffff0
mov dword [esp], ecx
mov edi, eax
mov dword [esp + 8], edx
xor esi, esi
xor ebp, ebp
xor eax, eax
mov edx, dword [esp]
test edx, edx
jns 0x4d1fd7
add edx, 3
sar edx, 2
test edx, edx
jle 0x4d20e4
mov dword [esp + 0xc], edx
mov edx, 4
lea eax, [esp + 4]
movzx ecx, byte [edi + esi]
cmp ecx, 0x3d
jg 0x4d200c
je 0x4d204f
sub ecx, 0x2b
je 0x4d2045
sub ecx, 4
je 0x4d204a
dec ecx
sub ecx, 0xa
jb 0x4d2037
jmp 0x4d2052
add ecx, 0xffffffbf
sub ecx, 0x1a
jb 0x4d201e
add ecx, 0xfffffffa
sub ecx, 0x1a
jb 0x4d2029
jmp 0x4d2052
movzx ecx, byte [edi + esi]
sub cl, 0x41
mov byte [eax], cl
jmp 0x4d2052
movzx ecx, byte [edi + esi]
sub cl, 0x61
add cl, 0x1a
mov byte [eax], cl
jmp 0x4d2052
movzx ecx, byte [edi + esi]
sub cl, 0x30
add cl, 0x34
mov byte [eax], cl
jmp 0x4d2052
mov byte [eax], 0x3e
jmp 0x4d2052
mov byte [eax], 0x3f
jmp 0x4d2052
mov byte [eax], 0xff
inc esi
inc eax
dec edx
jne 0x4d1fef
movzx eax, byte [esp + 4]
shl eax, 2
movzx edx, byte [esp + 5]
shr edx, 4
or al, dl
mov edx, dword [esp + 8]
mov byte [edx + ebp], al
lea eax, [ebp + 1]
movzx edx, byte [esp + 6]
cmp dl, 0xff
je 0x4d20a2
cmp byte [esp + 7], 0xff
jne 0x4d20a2
movzx eax, byte [esp + 5]
shl eax, 4
movzx edx, dl
shr edx, 2
or al, dl
mov edx, dword [esp + 8]
mov byte [edx + ebp + 1], al
lea eax, [ebp + 2]
inc ebp
jmp 0x4d20d9
cmp dl, 0xff
je 0x4d20d9
movzx eax, byte [esp + 5]
shl eax, 4
movzx edx, dl
shr edx, 2
or al, dl
mov edx, dword [esp + 8]
mov byte [edx + ebp + 1], al
mov eax, dword [esp + 8]
movzx edx, byte [esp + 6]
shl edx, 6
or dl, byte [esp + 7]
mov byte [eax + ebp + 2], dl
lea eax, [ebp + 3]
add ebp, 2
inc ebp
dec dword [esp + 0xc]
jne 0x4d1fe6
add esp, 0x10
pop ebp
pop edi
pop esi
ret
Function at 0x4d546c
Capabilities:
Allocate or change rwx memory
Enumerate pe sections

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffefc
mov esi, edx
lea edi, [esp + 0xc]
push ecx
mov ecx, 0x3e
rep movsd dword es:[edi], dword [esi]
pop ecx
mov dword [esp + 4], ecx
mov dword [esp], eax
mov eax, dword [esp + 4]
mov eax, dword [eax]
push eax
call fcn.004d5414
mov dword [esp + 8], eax
mov eax, dword [esp + 4]
mov eax, dword [eax]
movzx eax, word [eax + 6]
push eax
mov eax, 0x4ec8b8
mov ecx, 1
mov edx, dword [0x4d5320]
call fcn.0040d060
add esp, 4
mov eax, dword [esp + 4]
mov eax, dword [eax]
movzx edi, word [eax + 6]
dec edi
test edi, edi
jl 0x4d55c7
inc edi
xor esi, esi
mov eax, dword [esp + 8]
cmp dword [eax + 0x10], 0
jne 0x4d5540
mov ebp, dword [esp + 0x44]
test ebp, ebp
jle 0x4d5531
push 0x40
push 0x1000
push ebp
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0xc]
xor edx, edx
push edx
push eax
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 4]
call fcn.004d5388
push eax
call sub.kernel32.dll_VirtualAlloc
mov ebx, eax
mov eax, dword [0x4ec8b8]
mov dword [eax + esi*8], ebx
mov eax, dword [0x4ec8b8]
mov dword [eax + esi*8 + 4], ebp
mov eax, dword [esp + 8]
mov dword [eax + 8], ebx
mov edx, ebp
mov eax, ebx
xor ecx, ecx
call fcn.00407bbc
push 0
push 0x28
lea eax, [esp + 0x10]
call fcn.004d5358
jmp 0x4d55bf
push 0x40
push 0x1000
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 0x10]
push eax
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0xc]
xor edx, edx
push edx
push eax
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 4]
call fcn.004d5388
push eax
call sub.kernel32.dll_VirtualAlloc
mov ebx, eax
mov eax, dword [0x4ec8b8]
mov dword [eax + esi*8], ebx
mov eax, dword [esp + 8]
mov eax, dword [eax + 0x10]
mov edx, dword [0x4ec8b8]
mov dword [edx + esi*8 + 4], eax
mov eax, dword [esp + 8]
mov eax, dword [eax + 0x14]
xor edx, edx
push edx
push eax
mov eax, dword [esp + 8]
call fcn.004d5388
mov edx, dword [esp + 8]
mov edx, dword [edx + 0x10]
mov ecx, edx
mov edx, ebx
call fcn.004071e0
mov eax, dword [esp + 8]
mov dword [eax + 8], ebx
push 0
push 0x28
lea eax, [esp + 0x10]
call fcn.004d5358
inc esi
dec edi
jne 0x4d54d5
add esp, 0x104
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x4d5a4c
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
test eax, 0x4000000
je 0x4d5a61
or edx, 0x200
test eax, 0x20000000
je 0x4d5a94
test eax, 0x40000000
je 0x4d5a80
test eax, 0x80000000
je 0x4d5a7b
or edx, 0x40
jmp 0x4d5abb
or edx, 0x20
jmp 0x4d5abb
test eax, 0x80000000
je 0x4d5a8f
or edx, 0x80
jmp 0x4d5abb
or edx, 0x10
jmp 0x4d5abb
test eax, 0x40000000
je 0x4d5aac
test eax, 0x80000000
je 0x4d5aa7
or edx, 4
jmp 0x4d5abb
or edx, 2
jmp 0x4d5abb
test eax, 0x80000000
je 0x4d5ab8
or edx, 8
jmp 0x4d5abb
or edx, 1
mov eax, edx
pop ebp
ret 4