joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41b934
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x432e38]
je 0x41b94f
inc edi
cmp edi, 0x17
jb 0x41b940
cmp edi, 0x17
jae 0x41bacf
push ebp
push 3
call fcn.00422e12
cmp eax, 1
pop ecx
je 0x41ba9b
push 3
call fcn.00422e12
test eax, eax
pop ecx
jne 0x41b983
cmp dword [0x432b5c], 1
je 0x41ba9b
cmp ebx, 0xfc
je 0x41bace
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x4360b0
push ebp
call fcn.004171da
add esp, 0xc
test eax, eax
je 0x41b9b9
push esi
push esi
push esi
push esi
push esi
call fcn.0041402e
add esp, 0x14
push 0x104
mov esi, 0x4360c9
push esi
push 0
mov byte [0x4361cd], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x41b9fd
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.004171da
add esp, 0xc
test eax, eax
je 0x41b9fd
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0041402e
add esp, 0x14
push esi
call fcn.00414d70
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x41ba42
push esi
call fcn.00414d70
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x4363c4
push 0x42b13c
sub ecx, eax
push ecx
push eax
call fcn.00418ce1
add esp, 0x14
test eax, eax
je 0x41ba42
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0041402e
add esp, 0x14
jmp 0x41ba44
xor esi, esi
push 0x42b138
push ebx
push ebp
call fcn.00418c20
add esp, 0xc
test eax, eax
je 0x41ba64
push esi
push esi
push esi
push esi
push esi
call fcn.0041402e
add esp, 0x14
push dword [edi*8 + 0x432e3c]
push ebx
push ebp
call fcn.00418c20
add esp, 0xc
test eax, eax
je 0x41ba86
push esi
push esi
push esi
push esi
push esi
call fcn.0041402e
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.00422c55
add esp, 0xc
jmp 0x41bace
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x41bace
cmp ebp, 0xffffffff
je 0x41bace
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x432e3c]
push dword [esi]
call fcn.00414d70
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x422c55
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0041ca45
xor ebx, ebx
cmp dword [0x43695c], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x422d2b
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x422e0b
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x42b384
push edi
call esi
cmp eax, ebx
je 0x422e0b
push eax
call fcn.0041c9d7
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x43695c], eax
call esi
push eax
call fcn.0041c9d7
mov dword [esp], 0x42b360
push edi
mov dword [0x436960], eax
call esi
push eax
call fcn.0041c9d7
mov dword [0x436964], eax
lea eax, [ebp - 0xc]
push eax
call fcn.00418e3d
test eax, eax
pop ecx
pop ecx
je 0x422cf9
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0041402e
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x422d2b
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0041c9d7
cmp eax, ebx
pop ecx
mov dword [0x43696c], eax
je 0x422d2b
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0041c9d7
pop ecx
mov dword [0x436968], eax
mov eax, dword [0x436968]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x422db0
cmp dword [0x43696c], ecx
je 0x422db0
push eax
call fcn.0041ca4e
push dword [0x43696c]
mov esi, eax
call fcn.0041ca4e
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x422db0
cmp edi, ebx
je 0x422db0
call esi
cmp eax, ebx
je 0x422d7d
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x422d7d
test byte [ebp - 0x18], 1
jne 0x422db0
lea eax, [ebp - 0x10]
push eax
call fcn.00418e74
test eax, eax
pop ecx
je 0x422d98
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0041402e
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x422da7
or dword [ebp + 0x10], 0x200000
jmp 0x422deb
or dword [ebp + 0x10], 0x40000
jmp 0x422deb
mov eax, dword [0x436960]
cmp eax, dword [ebp - 8]
je 0x422deb
push eax
call fcn.0041ca4e
cmp eax, ebx
pop ecx
je 0x422deb
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x422deb
mov eax, dword [0x436964]
cmp eax, dword [ebp - 8]
je 0x422deb
push eax
call fcn.0041ca4e
cmp eax, ebx
pop ecx
je 0x422deb
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x43695c]
call fcn.0041ca4e
cmp eax, ebx
pop ecx
je 0x422e0b
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x422e0d
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x426f19
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x432b60]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.00426eae
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.004155a0
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x426f68
cmp dword [ebp - 0x1c], 5
jb 0x426f80
jmp 0x426f7c
cmp dword [ebp - 0x10], 1
jne 0x426f80
cmp dword [ebp - 0x1c], 4
ja 0x426f7c
jne 0x426f80
cmp dword [ebp - 0x18], 0
jbe 0x426f80
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x42c494
call fcn.00426d9f
test eax, eax
jge 0x426fa1
mov byte [0x436a38], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00414015
add ebp, 0x78
leave
ret
Function at 0x538a92
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
pushal
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x3c]
add eax, edx
add eax, 4
add eax, 0x14
lea eax, [eax + 0x60]
add eax, 8
mov eax, dword [eax]
add eax, edx
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x118], 0x49
mov byte [ebp - 0x117], 0x6d
mov byte [ebp - 0x116], 0x70
mov byte [ebp - 0x115], 0x6f
mov byte [ebp - 0x114], 0x72
mov byte [ebp - 0x113], 0x74
mov byte [ebp - 0x112], 0x20
mov byte [ebp - 0x111], 0x54
mov byte [ebp - 0x110], 0x61
mov byte [ebp - 0x10f], 0x62
mov byte [ebp - 0x10e], 0x6c
mov byte [ebp - 0x10d], 0x65
mov byte [ebp - 0x10c], 0x3a
mov byte [ebp - 0x10b], 0
mov eax, 1
mov eax, 1
test eax, eax
je 0x538b67
lea esi, [ebp - 0x14]
mov ecx, 0x14
mov al, 0
mov byte [esi], al
inc esi
dec ecx
jne 0x538b31
mov ebx, dword [ebp - 0x18]
lea esi, [ebp - 0x14]
mov edi, ebx
mov ecx, 0x14
repe cmpsb byte [esi], byte es:[edi]
je 0x538b5d
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00538b71
test eax, eax
je 0x538b67
add ebx, 0x14
jmp 0x538b3a
popal
mov eax, 1
leave
ret 8
popal
mov eax, 0
leave
ret 8
Function at 0x538b71
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
pushal
mov eax, 1
test eax, eax
je 0x538ddd
mov byte [ebp - 0x10c], 0x50
mov byte [ebp - 0x10b], 0x72
mov byte [ebp - 0x10a], 0x6f
mov byte [ebp - 0x109], 0x63
mov byte [ebp - 0x108], 0x65
mov byte [ebp - 0x107], 0x73
mov byte [ebp - 0x106], 0x73
mov byte [ebp - 0x105], 0x69
mov byte [ebp - 0x104], 0x6e
mov byte [ebp - 0x103], 0x67
mov byte [ebp - 0x102], 0x20
mov byte [ebp - 0x101], 0x49
mov byte [ebp - 0x100], 0x6d
mov byte [ebp - 0xff], 0x70
mov byte [ebp - 0xfe], 0x6f
mov byte [ebp - 0xfd], 0x72
mov byte [ebp - 0xfc], 0x74
mov byte [ebp - 0xfb], 0x20
mov byte [ebp - 0xfa], 0x44
mov byte [ebp - 0xf9], 0x69
mov byte [ebp - 0xf8], 0x72
mov byte [ebp - 0xf7], 0x65
mov byte [ebp - 0xf6], 0x63
mov byte [ebp - 0xf5], 0x74
mov byte [ebp - 0xf4], 0x6f
mov byte [ebp - 0xf3], 0x72
mov byte [ebp - 0xf2], 0x79
mov byte [ebp - 0xf1], 0x3a
mov byte [ebp - 0xf0], 0
mov eax, 1
mov eax, dword [ebp + 0x10]
mov eax, dword [eax + 0xc]
add eax, dword [ebp + 0xc]
mov ebx, eax
mov eax, 1
test eax, eax
je 0x538ddd
mov eax, 1
test eax, eax
je 0x538ddd
push ebx
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
test eax, eax
je 0x538ddd
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
add eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov eax, dword [edx + 0x10]
add eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
sub ecx, ecx
mov eax, dword [ebp - 0xc]
add eax, ecx
mov eax, dword [eax]
test eax, eax
je 0x538dd3
mov ebx, eax
and eax, 0x80000000
jne 0x538d4a
mov byte [ebp - 0x10c], 0x4e
mov byte [ebp - 0x10b], 0x61
mov byte [ebp - 0x10a], 0x6d
mov byte [ebp - 0x109], 0x65
mov byte [ebp - 0x108], 0x3a
mov byte [ebp - 0x107], 0x20
mov byte [ebp - 0x106], 0
lea eax, [ebp - 0x10c]
mov eax, 1
test eax, eax
je 0x538ddd
add ebx, dword [ebp + 0xc]
lea ebx, [ebx + 2]
mov eax, ebx
mov eax, 1
test eax, eax
je 0x538ddd
mov eax, 1
test eax, eax
je 0x538ddd
push ecx
push ebx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
pop ecx
test eax, eax
je 0x538ddd
mov ebx, dword [ebp - 8]
add ebx, ecx
mov dword [ebx], eax
add ecx, 4
jmp 0x538ca5
mov byte [ebp - 0x10c], 0x4f
mov byte [ebp - 0x10b], 0x72
mov byte [ebp - 0x10a], 0x64
mov byte [ebp - 0x109], 0x69
mov byte [ebp - 0x108], 0x6e
mov byte [ebp - 0x107], 0x61
mov byte [ebp - 0x106], 0x6c
mov byte [ebp - 0x105], 0x3a
mov byte [ebp - 0x104], 0x20
mov byte [ebp - 0x103], 0
lea eax, [ebp - 0x10c]
mov eax, 1
test eax, eax
je 0x538ddd
xor ebx, 0x80000000
mov eax, ebx
mov eax, 1
test eax, eax
je 0x538b67
push ecx
push ebx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
pop ecx
test eax, eax
je 0x538ddd
mov ebx, dword [ebp - 8]
add ebx, ecx
mov dword [ebx], eax
add ecx, 4
jmp 0x538ca5
popal
mov eax, 1
leave
ret 0xc
popal
mov eax, 0
leave
ret 0xc
Function at 0x538e9d
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
pushal
mov edx, dword [ebp + 0xc]
sub eax, eax
mov ax, word [edx + 2]
mov dword [ebp - 0x118], eax
add edx, 0x14
mov eax, dword [edx + 0x1c]
mov dword [ebp - 0x114], eax
mov eax, dword [edx + 0x38]
mov dword [ebp - 0x110], edx
lea edx, [ebp - 0xc]
mov ebx, dword [ebp + 8]
push edx
push 4
push eax
push dword [ebp - 0x114]
call dword [ebx + 0x24]
test eax, eax
je 0x538fee
mov byte [ebp - 0x10c], 0x53
mov byte [ebp - 0x10b], 0x65
mov byte [ebp - 0x10a], 0x74
mov byte [ebp - 0x109], 0x20
mov byte [ebp - 0x108], 0x49
mov byte [ebp - 0x107], 0x6d
mov byte [ebp - 0x106], 0x61
mov byte [ebp - 0x105], 0x67
mov byte [ebp - 0x104], 0x65
mov byte [ebp - 0x103], 0x20
mov byte [ebp - 0x102], 0x77
mov byte [ebp - 0x101], 0x72
mov byte [ebp - 0x100], 0x69
mov byte [ebp - 0xff], 0x74
mov byte [ebp - 0xfe], 0x61
mov byte [ebp - 0xfd], 0x62
mov byte [ebp - 0xfc], 0x6c
mov byte [ebp - 0xfb], 0x65
mov byte [ebp - 0xfa], 0x3a
mov byte [ebp - 0xf9], 0
mov eax, 1
mov eax, 1
test eax, eax
je 0x538fee
mov edx, dword [ebp - 0x110]
lea ebx, [edx + 0x60]
mov eax, dword [edx + 0x5c]
mov edx, 8
mul edx
add eax, ebx
mov dword [ebp - 8], eax
mov eax, 0x28
mov edx, dword [ebp - 0x118]
mul edx
add eax, dword [ebp - 8]
mov ebx, dword [ebp + 0x10]
sub eax, ebx
mov dword [ebp - 4], eax
mov edi, dword [ebp - 0x114]
mov esi, dword [ebp + 0x10]
mov ecx, dword [ebp - 4]
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp - 0x118]
mov ebx, dword [ebp - 8]
push dword [ebp + 0x10]
push dword [ebp - 0x114]
push ebx
push dword [ebp + 8]
call fcn.00538ff8
test eax, eax
je 0x538fee
add ebx, 0x28
dec ecx
jne 0x538fc7
popal
mov eax, dword [ebp - 0x114]
leave
ret 0x10
popal
mov eax, 0
leave
ret 0x10

Function at 0x53909e
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
pushal
mov edx, dword [ebp + 0xc]
mov ebx, dword [edx + 0x24]
and ebx, 0xe0000000
cmp ebx, 0xe0000000
jne 0x5390c9
mov eax, 0x40
mov dword [ebp - 0x108], eax
jmp 0x53912e
mov ebx, dword [edx + 0x24]
and ebx, 0x60000000
cmp ebx, 0x60000000
jne 0x5390e7
mov eax, 0x20
mov dword [ebp - 0x108], eax
jmp 0x53912e
mov ebx, dword [edx + 0x24]
and ebx, 0xc0000000
cmp ebx, 0xc0000000
jne 0x539105
mov eax, 4
mov dword [ebp - 0x108], eax
jmp 0x53912e
mov ebx, dword [edx + 0x24]
and ebx, 0x40000000
cmp ebx, 0x40000000
jne 0x539123
mov eax, 2
mov dword [ebp - 0x108], eax
jmp 0x53912e
mov eax, 1
mov dword [ebp - 0x108], eax
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0xc]
add eax, dword [ebp + 0x10]
mov ebx, dword [edx + 8]
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0x104]
push edx
push dword [ebp - 0x108]
push ebx
push eax
call dword [ecx + 0x24]
test eax, eax
je 0x53916b
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0xc]
add eax, dword [ebp + 0x10]
mov eax, 1
popal
mov eax, 1
leave
ret 0x10
popal
sub eax, eax
leave
ret 0x10
Function at 0x539172
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
pushal
mov edx, dword [ebp + 8]
mov ax, word [edx]
cmp ax, 0x5a4d
jne 0x5391a1
mov eax, dword [edx + 0x3c]
add edx, eax
mov eax, dword [edx]
cmp eax, 0x4550
jne 0x5391a1
add edx, 4
mov dword [ebp - 4], edx
popal
mov eax, dword [ebp - 4]
leave
ret 8
popal
sub eax, eax
leave
ret 8

Function at 0x539dff
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
mov ecx, 3
mov edx, 1
push ecx
push dword [ebp + 8]
call fcn.00539f04
rol eax, 8
push dword [ebp + 0xc]
push eax
call fcn.00539f20
push edx
push dword [ebp + 0x10]
push eax
call fcn.00539eec
inc edx
mov ebx, eax
push ecx
sub ecx, 3
push ecx
push dword [ebp + 8]
call fcn.00539f04
pop ecx
xor eax, ebx
inc ecx
push ecx
push dword [ebp + 8]
push eax
call fcn.00539ecb
push ecx
push dword [ebp + 8]
call fcn.00539f04
mov ebx, eax
push ecx
sub ecx, 3
push ecx
push dword [ebp + 8]
call fcn.00539f04
pop ecx
xor eax, ebx
inc ecx
push ecx
push dword [ebp + 8]
push eax
call fcn.00539ecb
push ecx
push dword [ebp + 8]
call fcn.00539f04
mov ebx, eax
push ecx
sub ecx, 3
push ecx
push dword [ebp + 8]
call fcn.00539f04
pop ecx
xor eax, ebx
inc ecx
push ecx
push dword [ebp + 8]
push eax
call fcn.00539ecb
push ecx
push dword [ebp + 8]
call fcn.00539f04
mov ebx, eax
push ecx
sub ecx, 3
push ecx
push dword [ebp + 8]
call fcn.00539f04
pop ecx
xor eax, ebx
inc ecx
push ecx
push dword [ebp + 8]
push eax
call fcn.00539ecb
cmp ecx, 0x2b
jne 0x539e0f
leave
ret 0xc

Function at 0x53b4b4
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
pushal
mov byte [ebp - 0x118], 0x42
mov byte [ebp - 0x117], 0x72
mov byte [ebp - 0x116], 0x75
mov byte [ebp - 0x115], 0x74
mov byte [ebp - 0x114], 0x65
mov byte [ebp - 0x113], 0x66
mov byte [ebp - 0x112], 0x6f
mov byte [ebp - 0x111], 0x72
mov byte [ebp - 0x110], 0x63
mov byte [ebp - 0x10f], 0x69
mov byte [ebp - 0x10e], 0x6e
mov byte [ebp - 0x10d], 0x67
mov byte [ebp - 0x10c], 0x20
mov byte [ebp - 0x10b], 0x4b
mov byte [ebp - 0x10a], 0x65
mov byte [ebp - 0x109], 0x79
mov byte [ebp - 0x108], 0
mov eax, 1
lea edi, [ebp - 0x14]
mov ecx, 0x10
mov al, 0
mov byte [edi], al
inc edi
dec ecx
jne 0x53b544
mov eax, dword [ebp + 8]
push 4
push 0x3000
push 0x129ad0
push 0
call dword [eax + 0x20]
test eax, eax
je 0x53b5d6
mov dword [ebp - 4], eax
mov edi, eax
mov esi, dword [ebp + 0xc]
mov ecx, 0x129ad0
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 0xc]
push dword [ebp + 0xc]
push 0x129ad0
call fcn.0053b3fa
push 0x129ad0
push dword [ebp + 0xc]
call fcn.005391a8
test eax, eax
jne 0x53b5b8
mov esi, dword [ebp - 4]
mov edi, dword [ebp + 0xc]
mov ecx, 0x129ad0
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x14]
push eax
call fcn.0053b5dd
test eax, eax
je 0x53b5d6
jmp 0x53b574
mov eax, dword [ebp + 8]
push 0x8000
push 0
push dword [ebp - 4]
call dword [eax + 0x28]
test eax, eax
je 0x53b5d6
popal
mov eax, 1
leave
ret 8
popal
sub eax, eax
leave
ret 8
Function at 0x53b60b
Capabilities:
Terminate process

Disassembly:
call fcn.0053b618
push 0
call dword [sym.imp.KERNEL32.DLL_ExitProcess]
Function at 0x401650
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40166b
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 0x4016a2
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x40169e
jmp 0x401690
cmp esi, eax
jae 0x4016a2
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401690
cmp esi, eax
jb 0x4016a9
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x405d50
Capabilities:
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
mov eax, dword [0x5cb160]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov dword [ebp - 0xc], 0x10204080
mov dword [ebp - 8], 0x1020408
xor esi, esi
mov ecx, 0x5d4ed0
jmp 0x405d80
mov dl, byte [esi + 0x5d49a0]
xor eax, eax
jmp 0x405d90
test byte [ebp + eax - 0xc], dl
setne bl
mov byte [ecx + eax], bl
inc eax
cmp eax, 8
jl 0x405d90
add ecx, 8
inc esi
cmp ecx, 0x5d4f10
jl 0x405d80
pop esi
xor eax, eax
pop ebx
movzx ecx, byte [eax + str.91__]
movzx edx, byte [ecx + 0x5d4ecf]
movzx ecx, byte [eax + 0x5cca39]
mov byte [ebp + eax - 0x70], dl
movzx edx, byte [ecx + 0x5d4ecf]
movzx ecx, byte [eax + 0x5cca3a]
mov byte [ebp + eax - 0x6f], dl
movzx edx, byte [ecx + 0x5d4ecf]
movzx ecx, byte [eax + 0x5cca3b]
mov byte [ebp + eax - 0x6e], dl
movzx edx, byte [ecx + 0x5d4ecf]
mov byte [ebp + eax - 0x6d], dl
add eax, 4
cmp eax, 0x38
jl 0x405db0
push 0x38
lea eax, [ebp - 0x70]
push eax
push 0x5d4ed0
call fcn.0053ff80
add esp, 0xc
call fcn.004065f0
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053866d
mov esp, ebp
pop ebp
ret
Function at 0x4061c0
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [0x5d5760]
xor eax, eax
mov ecx, 0x5d49b0
mov dword [ebp - 4], eax
test ebx, ebx
jle 0x4062b5
push esi
push edi
mov edi, 0x5d4a19
movzx edx, byte [edi - 1]
mov eax, edx
shr eax, 2
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], al
inc ecx
cmp ebx, 2
jle 0x40623e
movzx esi, byte [edi]
and edx, 3
mov eax, esi
shr eax, 4
shl edx, 4
or edx, eax
movzx edx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], dl
movzx edx, byte [edi + 1]
and esi, 0xf
mov eax, edx
add esi, esi
shr eax, 6
add esi, esi
or eax, esi
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
and edx, 0x3f
movzx edx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + 1], al
mov byte [ecx + 2], dl
jmp 0x406293
mov eax, ebx
dec eax
je 0x40627f
dec eax
jne 0x406296
movzx esi, byte [edi]
and edx, 3
mov eax, esi
shl edx, 4
shr eax, 4
or edx, eax
movzx eax, byte [edi + 1]
movzx edx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
and esi, 0xf
add esi, esi
shr eax, 6
add esi, esi
mov byte [ecx], dl
or eax, esi
movzx edx, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + 1], dl
mov byte [ecx + 2], 0x3d
jmp 0x406293
and edx, 3
shl edx, 4
mov al, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], al
mov word [ecx + 1], 0x3d3d
add ecx, 3
add dword [ebp - 4], 4
sub ebx, 3
add edi, 3
test ebx, ebx
jg 0x4061e4
mov eax, dword [ebp - 4]
pop edi
pop esi
mov byte [ecx], 0
pop ebx
mov esp, ebp
pop ebp
ret
mov byte [ecx], al
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x406a70
Capabilities:
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c
mov eax, dword [0x5cb160]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x3f
lea eax, [ebp - 0x7b]
push 0
push eax
mov byte [ebp - 0x7c], 0
call fcn.0053b440
add esp, 0xc
xor eax, eax
mov ecx, eax
shr ecx, 3
movsx edx, byte [ecx + esi]
mov ecx, eax
and ecx, 7
shl edx, cl
inc eax
sar edx, 7
and dl, 1
mov byte [ebp + eax - 0x7d], dl
cmp eax, 0x40
jb 0x406a96
push 0x37
lea eax, [ebp - 0x3b]
push 0
push eax
mov byte [ebp - 0x3c], 0
call fcn.0053b440
add esp, 0xc
xor eax, eax
lea esp, [esp]
movsx ecx, byte [eax + 0x597f64]
movzx edx, byte [ebp + ecx - 0x7d]
movsx ecx, byte [eax + 0x597f65]
mov byte [ebp + eax - 0x3c], dl
movzx edx, byte [ebp + ecx - 0x7d]
movsx ecx, byte [eax + 0x597f66]
mov byte [ebp + eax - 0x3b], dl
movzx edx, byte [ebp + ecx - 0x7d]
movsx ecx, byte [eax + 0x597f67]
mov byte [ebp + eax - 0x3a], dl
movzx edx, byte [ebp + ecx - 0x7d]
mov byte [ebp + eax - 0x39], dl
add eax, 4
cmp eax, 0x38
jl 0x406ad0
lea edx, [ebp - 0x3c]
mov ecx, edi
call fcn.00406b30
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053866d
mov esp, ebp
pop ebp
ret
Function at 0x406b30
Capabilities:
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb0
mov eax, dword [0x5cb160]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push ebx
push esi
push edi
lea ebx, [ecx + 1]
mov ecx, 7
mov esi, edx
lea edi, [ebp - 0x90]
rep movsd dword es:[edi], dword [esi]
lea esi, [edx + 0x1c]
mov ecx, 7
lea edi, [ebp - 0xac]
rep movsd dword es:[edi], dword [esi]
xor edi, edi
mov byte [ebp - 0x3c], 0
mov dword [ebp - 0x3b], eax
mov dword [ebp - 0x37], eax
mov dword [ebp - 0x33], eax
mov dword [ebp - 0x2f], eax
mov dword [ebp - 0x2b], eax
mov dword [ebp - 0x27], eax
mov word [ebp - 0x23], ax
mov byte [ebp - 0x21], al
mov byte [ebp - 0x20], al
mov dword [ebp - 0x1f], eax
mov dword [ebp - 0x1b], eax
mov dword [ebp - 0x17], eax
mov dword [ebp - 0x13], eax
mov dword [ebp - 0xf], eax
mov dword [ebp - 0xb], eax
mov word [ebp - 7], ax
mov byte [ebp - 5], al
mov dword [ebp - 0xb0], edi
jmp 0x406bb6
mov edi, dword [ebp - 0xb0]
movsx esi, byte [edi + 0x597fcc]
mov eax, 0x1c
sub eax, esi
push eax
lea ecx, [ebp + esi - 0x90]
push ecx
lea edx, [ebp - 0x3c]
push edx
call fcn.0053ff80
push esi
lea eax, [ebp - 0x90]
lea ecx, [ebp - 0x20]
push eax
sub ecx, esi
push ecx
call fcn.0053ff80
movsx esi, byte [edi + 0x597fcc]
mov edx, 0x1c
sub edx, esi
push edx
lea eax, [ebp + esi - 0xac]
push eax
lea ecx, [ebp - 0x20]
push ecx
call fcn.0053ff80
push esi
lea edx, [ebp - 0xac]
lea eax, [ebp - 4]
push edx
sub eax, esi
push eax
call fcn.0053ff80
push 0x37
lea ecx, [ebp - 0x73]
push 0
push ecx
call fcn.0053b440
mov ecx, 7
lea esi, [ebp - 0x3c]
lea edi, [ebp - 0x74]
rep movsd dword es:[edi], dword [esi]
mov ecx, 7
lea esi, [ebp - 0x20]
lea edi, [ebp - 0x58]
add esp, 0x3c
rep movsd dword es:[edi], dword [esi]
xor eax, eax
jmp 0x406c50
movsx edx, byte [eax + 0x597f9c]
movzx ecx, byte [ebp + edx - 0x75]
mov byte [ebx + eax - 1], cl
movsx edx, byte [eax + 0x597f9d]
movzx ecx, byte [ebp + edx - 0x75]
mov byte [ebx + eax], cl
movsx edx, byte [eax + 0x597f9e]
movzx ecx, byte [ebp + edx - 0x75]
mov byte [ebx + eax + 1], cl
movsx edx, byte [eax + 0x597f9f]
movzx ecx, byte [ebp + edx - 0x75]
mov byte [ebx + eax + 2], cl
movsx edx, byte [eax + 0x597fa0]
movzx ecx, byte [ebp + edx - 0x75]
mov byte [ebx + eax + 3], cl
movsx edx, byte [eax + 0x597fa1]
movzx ecx, byte [ebp + edx - 0x75]
mov byte [ebx + eax + 4], cl
add eax, 6
cmp eax, 0x30
jl 0x406c50
mov eax, dword [ebp - 0xb0]
mov ecx, 7
lea esi, [ebp - 0x3c]
lea edi, [ebp - 0x90]
rep movsd dword es:[edi], dword [esi]
inc eax
mov ecx, 7
lea esi, [ebp - 0x20]
lea edi, [ebp - 0xac]
add ebx, 0x30
rep movsd dword es:[edi], dword [esi]
mov dword [ebp - 0xb0], eax
cmp eax, 0x10
jl 0x406bb0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0053866d
mov esp, ebp
pop ebp
ret