joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404139
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor esi, esi
push edi
push esi
push 0x80
push 3
push esi
push 1
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x40418d
lea eax, [ebp - 4]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
push esi
push esi
push 2
push esi
push edi
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, eax
call edi
cmp ebx, 0xffffffff
jne 0x404191
xor eax, eax
jmp 0x4041ac
push esi
push esi
push esi
push 4
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
push ebx
mov esi, eax
call edi
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov dword [eax], ecx
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4041b1
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
push ebx
push esi
lea ecx, [edx + eax - 0x16]
push edi
mov edi, dword [ebp + 0x18]
sub eax, dword [ecx + 0x10]
sub eax, dword [ecx + 0xc]
sub eax, 0x22
lea esi, [eax + edx]
xor edx, edx
mov dword [edi], edx
mov edi, dword [ebp + 0x14]
mov dword [edi], edx
cmp dword [ecx], 0x6054b50
jne 0x4042dd
cmp dword [esi], 0x1234567b
je 0x404205
push str.Invalid_cfgdata_magic_number__see_bdist_wininst.py_
push edx
call fcn.00401a90
pop ecx
pop ecx
jmp 0x4042df
cmp eax, edx
jl 0x4042dd
mov ecx, dword [esi + 8]
cmp ecx, edx
je 0x404221
mov edx, esi
sub edx, dword [esi + 4]
sub edx, ecx
mov dword [0x40da30], edx
sub eax, dword [esi + 4]
mov ecx, dword [ebp + 0x10]
mov edi, esi
push 0x104
sub eax, dword [esi + 8]
mov dword [ecx], eax
sub edi, dword [esi + 4]
call dword [sym.imp.MSVCR71.dll_malloc]
mov ebx, eax
pop ecx
test ebx, ebx
je 0x4042dd
lea eax, [ebp - 0x104]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x4042ca
push ebx
push 0
lea eax, [ebp - 0x104]
push 0x40c2c4
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
je 0x4042ca
xor eax, eax
push eax
push eax
push eax
push dword [esi + 4]
push eax
push ebx
push 2
call fcn.00401091
add esp, 0x1c
mov dword [ebp + 8], eax
test eax, eax
je 0x4042dd
push dword [esi + 4]
push edi
push eax
call dword [sym.imp.MSVCR71.dll_strncpy]
push dword [ebp + 8]
call sub.MSVCR71.dll_strlen
lea edi, [edi + eax + 1]
push edi
call dword [sym.imp.MSVCR71.dll__strdup]
mov ecx, dword [ebp + 0x18]
add esp, 0x14
push dword [ebp + 8]
mov dword [ecx], eax
mov eax, dword [ebp + 0x14]
mov dword [eax], ebx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push 1
pop eax
jmp 0x4042df
push str.Could_not_create_temporary_file
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00401a90
pop ecx
pop ecx
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4067cd
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x74
push 0x409ee8
call fcn.00406ab4
xor ebx, ebx
mov dword [ebp - 0x20], ebx
push ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x40680d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40680d
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x406825
cmp eax, 0x20b
je 0x406812
mov dword [ebp - 0x1c], ebx
jmp 0x406839
cmp dword [ecx + 0x84], 0xe
jbe 0x40680d
xor eax, eax
cmp dword [ecx + 0xf8], ebx
jmp 0x406833
cmp dword [ecx + 0x74], 0xe
jbe 0x40680d
xor eax, eax
cmp dword [ecx + 0xe8], ebx
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], ebx
push 2
call dword [sym.imp.MSVCR71.dll___set_app_type]
pop ecx
or dword [0x40da40], 0xffffffff
or dword [0x40da44], 0xffffffff
call dword [sym.imp.MSVCR71.dll___p__fmode]
mov ecx, dword [0x40c440]
mov dword [eax], ecx
call dword [sym.imp.MSVCR71.dll___p__commode]
mov ecx, dword [0x40c43c]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCR71.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x40da3c], eax
call fcn.00406a10
call fcn.00406ab0
cmp dword [0x40c300], ebx
jne 0x406899
push fcn.00406ab0
call dword [sym.imp.MSVCR71.dll___setusermatherr]
pop ecx
call fcn.00406a9e
push 0x40b00c
push 0x40b008
call sub.MSVCR71.dll__initterm
push 0x406a54
call fcn.004069fe
mov eax, dword [0x40c438]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push dword [0x40c434]
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.MSVCR71.dll___getmainargs]
add esp, 0x20
mov dword [ebp - 0x3c], eax
cmp eax, ebx
jge 0x4068ed
push 8
call sub.MSVCR71.dll__amsg_exit
pop ecx
push 0x40b004
push section..data
call sub.MSVCR71.dll__initterm
pop ecx
pop ecx
mov eax, dword [sym.imp.MSVCR71.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x24], esi
mov al, byte [esi]
cmp al, 0x20
ja 0x40696b
cmp al, bl
je 0x406917
cmp dword [ebp - 0x20], ebx
jne 0x40696b
mov al, byte [esi]
cmp al, bl
je 0x406927
cmp al, 0x20
ja 0x406927
inc esi
mov dword [ebp - 0x24], esi
jmp 0x406917
mov dword [ebp - 0x58], ebx
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x58], 1
je 0x406943
movzx eax, word [ebp - 0x54]
jmp 0x406946
push 0xa
pop eax
push eax
push esi
push ebx
push ebx
call edi
push eax
call fcn.00404065
mov esi, eax
mov dword [ebp - 0x40], esi
cmp dword [ebp - 0x1c], ebx
jne 0x406963
push esi
call dword [sym.imp.MSVCR71.dll_exit]
call dword [sym.imp.MSVCR71.dll__cexit]
jmp 0x4069c0
cmp al, 0x22
jne 0x40697a
xor ecx, ecx
cmp dword [ebp - 0x20], ebx
sete cl
mov dword [ebp - 0x20], ecx
movzx eax, al
push eax
call dword [sym.imp.MSVCR71.dll__ismbblead]
pop ecx
test eax, eax
je 0x40698d
inc esi
mov dword [ebp - 0x24], esi
inc esi
jmp 0x406905
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.00406aef
ret

Function at 0x408956
Capabilities:
Encode data using xor

Disassembly:
push 0x4085d8
pop ecx
sub edi, edi
inc edi
call fcn.0040897b
sub edi, edi
xor dword [esi], ecx
or edi, edi
mov eax, edi
inc esi
sub eax, 0x214f737b
cmp esi, edx
jne fcn.00408956
inc eax
ret
Function at 0x42b650
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0x10]
sub esp, 8
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
mov eax, edi
or eax, esi
or eax, edx
test al, 3
jne 0x42b67f
shr edx, 2
push edx
push esi
push edi
call fcn.0042b740
add esp, 0xc
pop edi
pop esi
mov esp, ebp
pop ebp
ret
xor ecx, ecx
test edx, edx
je 0x42b72f
push ebx
cmp edx, 0x40
jb 0x42b719
lea eax, [edx - 1]
lea ebx, [edx - 1]
add eax, esi
add ebx, edi
cmp edi, eax
ja 0x42b6a5
cmp ebx, esi
jae 0x42b719
mov eax, edx
lea ebx, [esi + 0x30]
and eax, 0xffffffc0
mov edx, esi
sub edx, edi
mov dword [ebp - 8], eax
mov dword [ebp - 4], edx
lea eax, [edi + 0x10]
mov edx, dword [ebp + 0x10]
mov esi, dword [ebp - 4]
movups xmm0, xmmword [eax - 0x10]
add ecx, 0x40
lea ebx, [ebx + 0x40]
lea eax, [eax + 0x40]
movups xmm1, xmmword [ebx - 0x70]
pxor xmm1, xmm0
movups xmmword [eax - 0x50], xmm1
movups xmm0, xmmword [eax - 0x40]
movups xmm1, xmmword [esi + eax - 0x40]
pxor xmm1, xmm0
movups xmmword [eax - 0x40], xmm1
movups xmm0, xmmword [eax - 0x30]
movups xmm1, xmmword [ebx - 0x50]
pxor xmm1, xmm0
movups xmm0, xmmword [ebx - 0x40]
movups xmmword [eax - 0x30], xmm1
movups xmm1, xmmword [eax - 0x20]
pxor xmm1, xmm0
movups xmmword [eax - 0x20], xmm1
cmp ecx, dword [ebp - 8]
jb 0x42b6c0
mov esi, dword [ebp + 0xc]
mov dword [ebp - 8], ecx
cmp ecx, edx
jae 0x42b72e
sub esi, edi
lea eax, [ecx + edi]
sub edx, ecx
mov cl, byte [eax + esi]
lea eax, [eax + 1]
xor byte [eax - 1], cl
sub edx, 1
jne 0x42b720
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x42b740
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0x10]
sub esp, 8
xor ecx, ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
test edx, edx
je 0x42b803
push edi
cmp edx, 0x10
jb 0x42b7ed
lea eax, [edx - 1]
lea eax, [esi + eax*4]
lea edi, [edx - 1]
lea edi, [ebx + edi*4]
cmp ebx, eax
ja 0x42b779
cmp edi, esi
jae 0x42b7ed
mov eax, edx
lea edi, [esi + 0x30]
and eax, 0xfffffff0
mov edx, esi
sub edx, ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], edx
lea eax, [ebx + 0x10]
mov edx, dword [ebp + 0x10]
mov esi, dword [ebp - 4]
movups xmm0, xmmword [eax - 0x10]
add ecx, 0x10
lea eax, [eax + 0x40]
lea edi, [edi + 0x40]
movups xmm1, xmmword [edi - 0x70]
pxor xmm1, xmm0
movups xmmword [eax - 0x50], xmm1
movups xmm0, xmmword [eax - 0x40]
movups xmm1, xmmword [esi + eax - 0x40]
pxor xmm1, xmm0
movups xmmword [eax - 0x40], xmm1
movups xmm0, xmmword [eax - 0x30]
movups xmm1, xmmword [edi - 0x50]
pxor xmm1, xmm0
movups xmmword [eax - 0x30], xmm1
movups xmm0, xmmword [eax - 0x20]
movups xmm1, xmmword [edi - 0x40]
pxor xmm1, xmm0
movups xmmword [eax - 0x20], xmm1
cmp ecx, dword [ebp - 8]
jb 0x42b794
mov esi, dword [ebp + 0xc]
mov dword [ebp - 8], ecx
cmp ecx, edx
jae 0x42b802
sub esi, ebx
lea eax, [ebx + ecx*4]
sub edx, ecx
mov ecx, dword [eax + esi]
lea eax, [eax + 4]
xor dword [eax - 4], ecx
sub edx, 1
jne 0x42b7f4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42b940
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 0x10]
lea edi, [edi + 3]
shr edi, 2
test edi, edi
je 0x42b98a
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
sub ebx, esi
nop dword [eax + eax]
mov ecx, dword [ebx + esi]
lea esi, [esi + 4]
mov edx, ecx
mov eax, ecx
shr edx, 8
shl eax, 8
xor edx, eax
shl ecx, 8
and edx, 0xff00ff
xor edx, ecx
rol edx, 0x10
mov dword [esi - 4], edx
sub edi, 1
jne 0x42b960
pop esi
pop ebx
pop edi
pop ebp
ret
Function at 0x42e110
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
mov edi, dword [eax]
mov ebx, dword [ebx + 0x44]
mov eax, dword [ebp + 0xc]
add ebx, 8
mov eax, dword [eax]
lea esi, [ebx + 0x40]
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
xor edi, dword [esi - 4]
sub esi, 4
push edi
call fcn.00431950
mov ecx, eax
mov edx, edi
xor ecx, dword [ebp - 4]
add esp, 8
mov dword [ebp - 4], edx
mov edi, ecx
cmp esi, ebx
jne 0x42e130
mov eax, dword [esi - 4]
xor eax, ecx
mov ecx, dword [ebp + 0xc]
pop edi
mov dword [ecx], eax
mov eax, dword [esi - 8]
mov ecx, dword [ebp + 8]
xor eax, edx
pop esi
pop ebx
mov dword [ecx], eax
mov esp, ebp
pop ebp
ret

Function at 0x42e2c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ecx + 0x44]
push edi
mov ebx, dword [ebx]
lea eax, [esi + 0x40]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov edi, dword [eax]
nop dword [eax]
xor edi, dword [esi]
add esi, 4
push ecx
push edi
call fcn.00431950
mov ecx, dword [ebp + 0x10]
xor eax, ebx
add esp, 8
mov ebx, edi
mov edi, eax
cmp esi, dword [ebp - 4]
jne 0x42e2e0
mov ecx, dword [esi]
xor ecx, eax
mov eax, dword [ebp + 0xc]
pop edi
mov dword [eax], ecx
mov eax, dword [esi + 4]
mov ecx, dword [ebp + 8]
xor eax, ebx
pop esi
pop ebx
mov dword [ecx], eax
mov esp, ebp
pop ebp
ret
Function at 0x4339f0
Capabilities:
Encrypt or decrypt data via bcrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, dword [ebp + 0x28]
push edi
mov edi, dword [ebp + 8]
push esi
push edi
call fcn.00434630
add esp, 8
mov ebx, eax
push esi
test ebx, ebx
je 0x433a7c
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call fcn.004344e0
add esp, 0x18
test eax, eax
jne 0x433a70
mov edx, dword [ebp + 0x24]
xor esi, esi
mov ecx, dword [ebp - 4]
test ecx, ecx
push eax
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp + 0x18]
push edx
push dword [ebp + 0x20]
cmovne eax, esi
test ecx, ecx
push eax
mov eax, dword [ebp + 0x14]
cmovne eax, esi
push eax
push esi
push edx
push dword [ebp + 0x1c]
push dword [ebx + 4]
call sub.bcrypt.dll_BCryptEncrypt
neg eax
pop edi
sbb eax, eax
pop esi
and eax, 3
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 3
pop ebx
mov esp, ebp
pop ebp
ret
push edi
call fcn.004359e0
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x433ac1
push esi
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call fcn.00435a90
add esp, 0x14
test eax, eax
js 0x433a70
movzx eax, word [ebp + 0x24]
push ebx
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x20]
push eax
push dword [ebp + 0x1c]
call fcn.004359a0
add esp, 0x18
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 2
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x433ad0
Capabilities:
Encrypt or decrypt data via bcrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, dword [ebp + 0x28]
push edi
mov edi, dword [ebp + 8]
push esi
push edi
call fcn.00434630
add esp, 8
mov ebx, eax
push esi
test ebx, ebx
je 0x433b5c
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call fcn.004344e0
add esp, 0x18
test eax, eax
jne 0x433b50
mov edx, dword [ebp + 0x24]
xor esi, esi
mov ecx, dword [ebp - 4]
test ecx, ecx
push eax
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp + 0x18]
push edx
push dword [ebp + 0x20]
cmovne eax, esi
test ecx, ecx
push eax
mov eax, dword [ebp + 0x14]
cmovne eax, esi
push eax
push esi
push edx
push dword [ebp + 0x1c]
push dword [ebx + 4]
call sub.bcrypt.dll_BCryptDecrypt
neg eax
pop edi
sbb eax, eax
pop esi
and eax, 3
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 3
pop ebx
mov esp, ebp
pop ebp
ret
push edi
call fcn.004359e0
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x433ba1
push esi
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call fcn.00435a90
add esp, 0x14
test eax, eax
js 0x433b50
movzx eax, word [ebp + 0x24]
push ebx
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x20]
push eax
push dword [ebp + 0x1c]
call fcn.00435870
add esp, 0x18
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 2
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x433c50
Capabilities:
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x14]
push esi
push dword [eax + 0x68]
call fcn.0042d520
mov esi, eax
add esp, 4
cmp dword [esi], 0
jne 0x433c7c
push 0
push 0
push 0x4b78a8
push esi
call sub.bcrypt.dll_BCryptOpenAlgorithmProvider
test eax, eax
jne 0x433c92
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi]
call sub.bcrypt.dll_BCryptGenRandom
test eax, eax
jne 0x433c92
pop esi
pop ebp
ret
mov eax, 3
pop esi
pop ebp
ret

Function at 0x435f60
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [ebp + 0x10]
mov ebx, eax
test ecx, ecx
jne 0x435f84
mov ecx, dword [ebp + 0xc]
xor edi, edi
mov eax, ecx
jmp 0x435fa6
cmp ecx, 2
jne 0x435f93
mov edi, ecx
mov ecx, dword [ebp + 0xc]
lea eax, [ebx + ecx]
jmp 0x435fa6
push esi
mov edi, 1
call fcn.00435df0
mov ecx, dword [ebp + 0xc]
add esp, 4
add eax, ecx
cmp eax, ebx
jbe 0x435fb2
pop edi
pop esi
or eax, 0xffffffff
pop ebx
pop ebp
ret
push edi
push 0
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x436020
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call fcn.00436010
add esp, 4
cmp dword [eax], 0xf1d05bed
je 0x436043
push str.GetHeader:__Failed_header_validation_check__n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
xor eax, eax
pop ebp
ret

Function at 0x436050
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x43607f
push esi
call fcn.00436020
add esp, 4
test eax, eax
je 0x43607f
mov eax, dword [eax + 8]
cmp dword [esi + eax], 0x92546ca5
je 0x436084
push str.IsValid:__Failed_footer_validation_check__n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
xor eax, eax
pop esi
pop ebp
ret
mov eax, 1
pop esi
pop ebp
ret
Function at 0x4360b0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [0x4e362c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
lea edi, [esi + 0x10]
cmp esi, 0xffff
jb 0x436130
push 4
push 0x1000
push edi
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
jne 0x436129
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push str.memAlloc:__VirtualAlloc_failed_to_allocate__Iu_bytes__MS_error___lu__n
push 0xffffffffffffffff
lea eax, [ebp - 0x104]
push 0x80
push eax
call fcn.004142f0
add esp, 0x18
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046d700
mov esp, ebp
pop ebp
ret
mov ecx, 1
jmp 0x4361ab
mov eax, dword [0x4e64dc]
test eax, eax
jne 0x436189
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov dword [0x4e64dc], eax
test eax, eax
jne 0x436189
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.memAlloc:__Failed_to_acquire_process_heap__MS_error___lu__n
push 0xffffffffffffffff
lea eax, [ebp - 0x104]
push 0x80
push eax
call fcn.004142f0
add esp, 0x14
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046d700
mov esp, ebp
pop ebp
ret
push edi
push 8
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
jne 0x4361a9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push str.memAlloc:__HeapAlloc_failed_to_allocate__Iu_bytes__MS_error___lu__n
jmp 0x4360f4
xor ecx, ecx
mov word [eax + 4], cx
mov ecx, dword [ebp - 4]
mov dword [eax + 8], esi
xor ecx, ebp
mov dword [eax], 0xf1d05bed
mov dword [esi + eax + 0xc], 0x92546ca5
add eax, 0xc
pop edi
pop esi
call fcn.0046d700
mov esp, ebp
pop ebp
ret
Function at 0x4361e0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [0x4e362c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push esi
call fcn.00436050
add esp, 4
test eax, eax
jne 0x436213
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046d700
mov esp, ebp
pop ebp
ret
push ebx
push esi
call fcn.004363c0
mov ebx, eax
add esp, 4
cmp ebx, 0xffffffff
jne 0x436241
push str.memFree:__Invalid_size__n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
pop ebx
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046d700
mov esp, ebp
pop ebp
ret
push edi
push esi
call fcn.00436010
push esi
mov edi, eax
call fcn.00436090
lea edx, [ebx + 0xc]
add esp, 8
mov ecx, edi
test edx, edx
je 0x43626b
nop dword [eax]
mov byte [ecx], 0
lea ecx, [ecx + 1]
sub edx, 1
jne 0x436260
test eax, eax
jne 0x43628f
push edi
push eax
push dword [0x4e64dc]
call dword [sym.imp.KERNEL32.dll_HeapFree]
test eax, eax
jne 0x4362e3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.memFree:__HeapFree_failed__MS_error___lu__n
jmp 0x4362ad
push 0x8000
push 0
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
test eax, eax
jne 0x4362e3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.memFree:__VirtualFree_failed__MS_error___lu__n
push 0xffffffffffffffff
lea eax, [ebp - 0x104]
push 0x80
push eax
call fcn.004142f0
add esp, 0x14
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
pop edi
pop ebx
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046d700
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop ebx
xor ecx, ebp
pop esi
call fcn.0046d700
mov esp, ebp
pop ebp
ret

Function at 0x436320
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push esi
call fcn.00436050
add esp, 4
test eax, eax
je 0x436383
mov ebx, dword [ebp + 0xc]
push ebx
call fcn.004360b0
mov edi, eax
add esp, 4
test edi, edi
je 0x436383
push esi
call fcn.004363c0
add esp, 4
cmp eax, ebx
jae 0x436360
push esi
call fcn.004363c0
add esp, 4
mov ebx, eax
push ebx
push esi
push edi
call fcn.00429e80
add esp, 0xc
test eax, eax
jne 0x43638a
push edi
call fcn.004361e0
add esp, 4
push str.memRealloc:__memCopy_failed__n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret
push esi
call fcn.004361e0
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4363a0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
je 0x4363b3
mov dword [ebp + 8], eax
pop ebp
jmp fcn.00436320
push dword [ebp + 0xc]
call fcn.004360b0
add esp, 4
pop ebp
ret
Function at 0x438a30
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
xor esi, esi
push edi
mov dword [ebp - 0x10], esi
nop
mov dword [ebp - 0x14], 0
xor ebx, ebx
nop dword [eax]
cmp ebx, 4
jge 0x438a89
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x14]
push ecx
lea edi, [ebp - 8]
push 1
mov eax, dword [eax]
add edi, ebx
push edi
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x4b24e4]
mov ecx, dword [ebp + 0xc]
call esi
mov cl, byte [edi]
mov esi, eax
cmp cl, 0xd
je 0x438a85
cmp cl, 0xa
je 0x438a85
inc ebx
test esi, esi
je 0x438a50
mov edi, dword [ebp - 0x10]
inc edi
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x10], edi
test esi, esi
je 0x438aa0
cmp esi, 0x26
jne 0x438c22
cmp dword [ebp - 0x14], 0
je 0x438c22
lea esi, [ebp - 8]
xor edx, edx
nop
mov al, byte [esi]
lea esi, [esi + 1]
lea ecx, [eax - 0x41]
cmp cl, 0x19
ja 0x438ac5
sub al, 0x41
mov byte [ebp + edx - 8], al
jmp 0x438aff
lea ecx, [eax - 0x61]
cmp cl, 0x19
ja 0x438ad5
sub al, 0x47
mov byte [ebp + edx - 8], al
jmp 0x438aff
lea ecx, [eax - 0x30]
cmp cl, 9
ja 0x438ae5
add al, 4
mov byte [ebp + edx - 8], al
jmp 0x438aff
cmp al, 0x2b
jne 0x438af0
mov byte [ebp + edx - 8], 0x3e
jmp 0x438aff
cmp al, 0x2f
jne 0x438afb
mov byte [ebp + edx - 8], 0x3f
jmp 0x438aff
cmp al, 0x3d
je 0x438b07
inc edx
cmp edx, 4
jl 0x438ab0
jmp 0x438b14
mov byte [ebp + edx - 8], 0x41
test edx, edx
je 0x438c1f
mov ah, byte [ebp - 8]
cmp ah, 0x41
je 0x438bf1
mov bl, byte [ebp - 6]
cmp bl, 0x41
jne 0x438b39
xor dl, dl
mov word [ebp - 6], 0
xor bl, bl
mov esi, 1
jmp 0x438b52
mov dl, byte [ebp - 5]
cmp dl, 0x41
jne 0x438b4d
xor dl, dl
mov esi, 2
mov byte [ebp - 5], dl
jmp 0x438b52
mov esi, 3
mov cl, byte [ebp - 7]
mov al, cl
shl ah, 2
shr al, 4
add al, ah
shl cl, 4
mov byte [ebp - 4], al
mov al, bl
shl bl, 6
add bl, dl
shr al, 2
mov byte [ebp - 2], bl
add cl, al
mov ebx, dword [ebp + 8]
push 0
mov byte [ebp - 3], cl
lea ecx, [ebp - 4]
push esi
mov eax, dword [ebx]
push ecx
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x4b24e4]
mov ecx, ebx
call esi
cmp dword [ebp + 0x10], 0
mov esi, eax
mov dword [ebp - 0xc], esi
je 0x438bf4
mov eax, 0x1b4e81b5
mov ecx, edi
mul edi
shr edx, 5
imul eax, edx, 0x12c
sub ecx, eax
jne 0x438bf4
mov ebx, dword [ebp + 0xc]
push dword [ebp + 0x14]
mov eax, dword [ebx]
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x4b24e4]
mov ecx, ebx
call esi
push eax
mov eax, dword [ebx]
mov esi, dword [eax + 0x14]
mov ecx, esi
call dword [0x4b24e4]
mov ecx, ebx
call esi
mov edi, dword [ebp + 0x10]
mov ecx, edi
push eax
call dword [0x4b24e4]
call edi
add esp, 0xc
test eax, eax
je 0x438c0b
mov esi, dword [ebp - 0xc]
test esi, esi
je 0x438a40
xor eax, eax
cmp esi, 0x26
pop edi
cmovne eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, 0x20000047
xor eax, eax
cmp esi, 0x26
pop edi
cmovne eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 0xc]
xor eax, eax
cmp esi, 0x26
pop edi
cmovne eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret