joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5028f0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x620ae8
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x6c4490]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov ebx, ecx
mov esi, dword [esp + 0x48]
push 0
mov dword [ebx + 0xc], 0xffffffff
mov byte [ebx + 0x10], 0
mov dword [ebx], vtable.CryptoPP::StringStore.0
mov dword [ebx + 4], vtable.CryptoPP::StringStore.1.0
mov dword [esp + 0x28], 0
call fcn.004ea770
add esp, 4
mov dword [esp + 0x28], 0
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], eax
mov byte [esp + 0x14], 0
push 1
lea eax, [esp + 0x18]
mov dword [esp + 0x44], 3
push eax
lea eax, [esp + 0x34]
push str.InputBuffer
push eax
call fcn.004ea870
add esp, 0x10
push eax
mov ecx, ebx
mov byte [esp + 0x44], 4
call fcn.004ecbe0
mov byte [esp + 0x40], 3
mov ecx, dword [esp + 0x30]
test ecx, ecx
je 0x5029a0
mov eax, dword [ecx]
push 1
call dword [eax]
mov edx, dword [esp + 0x28]
xor al, al
mov ecx, dword [esp + 0x24]
mov edi, edx
rep stosb byte es:[edi], al
push edx
call fcn.005e0396
add esp, 4
mov eax, ebx
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x34
ret 8

Function at 0x502ef0
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x61b268
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x6c4490]
xor eax, esp
mov dword [esp + 0x20], eax
push esi
mov eax, dword [0x6c4490]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [ebp + 0x10]
sub esp, 0x18
mov ecx, esp
push 0xffffffffffffffff
push 0
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push eax
mov byte [ecx], 0
call fcn.0045c150
push dword [ebp + 0xc]
lea eax, [esp + 0x2c]
push dword [ebp + 8]
push eax
call fcn.00502df0
add esp, 0x24
mov dword [esp + 0x38], 0
cmp dword [eax + 0x14], 0x10
jb 0x502f6d
mov eax, dword [eax]
mov dword [esp + 0xc], eax
mov ecx, esi
lea eax, [esp + 0xc]
push eax
call fcn.005e6de4
cmp dword [esp + 0x24], 0x10
mov dword [esi], vtable.std::runtime_error.0
jb 0x502f96
push dword [esp + 0x10]
call fcn.004ec310
add esp, 4
mov ecx, dword [ebp + 8]
mov eax, esi
mov dword [esi + 0xc], ecx
mov ecx, dword [ebp + 0xc]
mov dword [esi], vtable.std::_System_error.0
mov dword [esi + 0x10], ecx
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.005dfa14
mov esp, ebp
pop ebp
ret 0xc
Function at 0x5050d0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x620ef8
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x6c4490]
xor eax, esp
mov dword [esp + 0x30], eax
push esi
mov eax, dword [0x6c4490]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov esi, ecx
push 0
lea ecx, [esp + 0xc]
call fcn.004ff620
mov eax, dword [ebp + 8]
mov dword [esp + 0x30], eax
mov word [esp + 0x34], 0x3000
mov dword [esp + 8], vtable.CryptoPP::DERSequenceEncoder.0
mov dword [esp + 0xc], vtable.CryptoPP::DERSequenceEncoder.1.0
mov dword [esp + 0x48], 0
mov ecx, esi
mov eax, dword [esi]
call dword [eax + 0x10]
lea ecx, [esp + 8]
push ecx
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [esi + 0x10]
lea ecx, [esi + 0x10]
lea edx, [esp + 8]
push edx
call dword [eax + 8]
mov eax, dword [esi + 4]
lea ecx, [esi + 4]
call dword [eax + 4]
lea ecx, [esp + 8]
push ecx
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 8]
lea ecx, [esp + 8]
call fcn.00503820
lea ecx, [esp + 8]
mov dword [esp + 0x48], 0xffffffff
call fcn.00503790
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.005dfa14
mov esp, ebp
pop ebp
ret 4
Function at 0x505350
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x620f68
mov eax, dword fs:[0]
push eax
sub esp, 0x60
push ebx
push esi
push edi
mov eax, dword [0x6c4490]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x14], esi
cmp dword [0x717d7c], 0
mov dword [esp + 0x18], 0
jne 0x5053a2
call fcn.00510ca0
mov dword [0x717d7c], 0x506460
push 2
mov dword [esp + 0x34], vtable.CryptoPP::Integer.0
mov dword [esp + 0x3c], 2
call fcn.004f0b70
push 8
call fcn.004ec290
mov ebx, eax
mov dword [esp + 0x48], 0
add esp, 8
mov dword [esp + 0x3c], ebx
mov dword [ebx], 1
mov dword [ebx + 4], 0
lea edi, [esi - 4]
mov dword [esp + 0x78], 0
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 0x10]
mov esi, dword [eax + 8]
mov ecx, dword [eax + 0xc]
test esi, esi
je 0x50540b
lea eax, [esi - 1]
lea eax, [ecx + eax*4]
cmp dword [eax], 0
jne 0x505420
sub eax, 4
dec esi
jne 0x505400
xor esi, esi
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x18]
imul eax, esi
cmp eax, 5
jae 0x505439
xor eax, eax
jmp 0x505499
test esi, esi
je 0x50540b
lea ecx, [ecx + esi*4]
add ecx, 0xfffffffc
call fcn.004eab50
lea esi, [esi - 1]
shl esi, 5
add esi, eax
jmp 0x50540d
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x680380]
movsd qword [esp + 0x1c], xmm0
call fcn.005e4bb0
movsd xmm1, qword [0x680128]
call fcn.005e5910
movsd xmm1, qword [0x680118]
movsd qword [esp + 0x24], xmm0
movsd xmm0, qword [esp + 0x1c]
call fcn.005e5910
mulsd xmm0, qword [str.333333]
mulsd xmm0, qword [esp + 0x24]
subsd xmm0, qword [0x680140]
call fcn.005e4701
add eax, eax
push eax
lea eax, [esp + 0x5c]
push eax
call fcn.005125d0
add esp, 8
mov edi, eax
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x30]
mov byte [esp + 0x78], 1
push eax
mov edx, dword [ecx]
call dword [edx + 0x20]
push eax
lea eax, [esp + 0x4c]
push eax
call fcn.004edaa0
add esp, 0xc
mov esi, eax
mov byte [esp + 0x78], 2
cmp dword [edi + 0x10], 1
je 0x5054f0
cmp dword [esi + 0x10], 1
je 0x5054e9
push esi
mov ecx, edi
call fcn.00515810
jmp 0x505505
mov eax, 1
jmp 0x505505
cmp dword [esi + 0x10], 1
je 0x5054fb
or eax, 0xffffffff
jmp 0x505505
push esi
mov ecx, edi
call fcn.00515810
neg eax
mov ecx, dword [ebp + 8]
test eax, eax
cmovs esi, edi
push esi
call fcn.00512370
mov edx, dword [esp + 0x4c]
xor eax, eax
mov esi, dword [esp + 0x50]
mov ecx, edx
mov edi, esi
rep stosd dword es:[edi], eax
lea eax, [edx*4]
push esi
cmp eax, 0x10
jb 0x505537
call fcn.00618fb8
jmp 0x50553c
call fcn.005e0396
mov edx, dword [esp + 0x64]
xor eax, eax
mov esi, dword [esp + 0x68]
add esp, 4
mov edi, esi
mov ecx, edx
rep stosd dword es:[edi], eax
lea eax, [edx*4]
push esi
cmp eax, 0x10
jb 0x505563
call fcn.00618fb8
jmp 0x505568
call fcn.005e0396
add esp, 4
xor eax, eax
mov edi, ebx
mov ecx, 2
rep stosd dword es:[edi], eax
push ebx
call fcn.005e0396
mov eax, dword [ebp + 8]
add esp, 4
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x5060c0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x61f840
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x6c4490]
xor eax, esp
mov dword [esp + 0x1c], eax
push esi
mov eax, dword [0x6c4490]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
push 0x19
push str.Integer:_division_by_zero
lea ecx, [esp + 0x14]
mov dword [esp + 0x10], esi
mov dword [esp + 0x28], 0xf
mov dword [esp + 0x24], 0
mov byte [esp + 0x14], 0
call fcn.0045bc80
mov ecx, esi
mov dword [esp + 0x30], 0
call fcn.005e6e47
mov byte [esp + 0x30], 1
lea ecx, [esi + 0x10]
push 0xffffffffffffffff
mov dword [esi], vtable.CryptoPP::Exception.0
lea eax, [esp + 0x10]
mov dword [esi + 0xc], 6
push 0
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push eax
mov byte [ecx], 0
call fcn.0045c150
cmp dword [esp + 0x20], 0x10
jb 0x506170
push dword [esp + 0xc]
call fcn.004ec310
add esp, 4
mov eax, esi
mov dword [esi], vtable.CryptoPP::Integer::DivideByZero.0
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.005dfa14
add esp, 0x2c
ret

Function at 0x5061a0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x61fa50
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x6c4490]
xor eax, esp
mov dword [esp + 0x20], eax
push esi
mov eax, dword [0x6c4490]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
push 0x32
push str.Integer:_no_integer_satisfies_the_given_parameters
lea ecx, [esp + 0x18]
mov dword [esp + 0x14], esi
mov dword [esp + 0x2c], 0xf
mov dword [esp + 0x28], 0
mov byte [esp + 0x18], 0
call fcn.0045bc80
mov ecx, esi
mov dword [esp + 0x38], 0
call fcn.005e6e47
mov byte [esp + 0x38], 1
lea ecx, [esi + 0x10]
push 0xffffffffffffffff
mov dword [esi], vtable.CryptoPP::Exception.0
lea eax, [esp + 0x14]
mov dword [esi + 0xc], 6
push 0
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push eax
mov byte [ecx], 0
call fcn.0045c150
cmp dword [esp + 0x24], 0x10
jb 0x506256
push dword [esp + 0x10]
call fcn.004ec310
add esp, 4
mov eax, esi
mov dword [esi], vtable.CryptoPP::Integer::RandomNumberNotFound.0
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.005dfa14
mov esp, ebp
pop ebp
ret
Function at 0x512ea0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x621298
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x6c4490]
xor eax, esp
mov dword [esp + 0x30], eax
push esi
mov eax, dword [0x6c4490]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov esi, ecx
push 0
lea ecx, [esp + 0xc]
call fcn.004ff620
mov eax, dword [ebp + 8]
mov dword [esp + 8], vtable.CryptoPP::DERGeneralEncoder.0
mov dword [esp + 0xc], vtable.CryptoPP::DERGeneralEncoder.1.0
mov dword [esp + 0x30], eax
mov word [esp + 0x34], 0x200
push 1
sub esp, 8
mov dword [esp + 0x54], 0
mov ecx, esi
call fcn.00512bc0
add esp, 4
mov ecx, esi
push eax
lea eax, [esp + 0x10]
push eax
call fcn.00512d50
lea ecx, [esp + 8]
call fcn.00503820
lea ecx, [esp + 8]
mov dword [esp + 0x48], 0xffffffff
call fcn.00503790
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.005dfa14
mov esp, ebp
pop ebp
ret 4

Function at 0x5155b0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x621618
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x6c4490]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, edx
mov dword [esp + 0x10], ecx
mov ebx, dword [ebp + 8]
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], 2
call fcn.004eab50
dec eax
mov ecx, ebx
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.00506310
push eax
mov ecx, esi
mov dword [esp + 0x3c], 0
call fcn.00512700
mov edx, dword [esp + 0x20]
xor eax, eax
mov esi, dword [esp + 0x24]
mov ecx, edx
mov edi, esi
rep stosd dword es:[edi], eax
lea eax, [edx*4]
push esi
cmp eax, 0x10
jb 0x515638
call fcn.00618fb8
jmp 0x51563d
call fcn.005e0396
mov eax, dword [ebx + 0xc]
add esp, 4
mov ecx, dword [esp + 0x10]
mov eax, dword [eax]
and eax, 1
mov dword [ecx], eax
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x518550
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x621aba
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
mov eax, dword [0x6c4490]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
push 0
call fcn.005dee30
mov dword [esp + 0x20], 0
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 0
mov word [esi + 0x18], ax
mov dword [esi + 0x1c], eax
mov word [esi + 0x20], ax
mov dword [esi + 0x24], eax
mov byte [esi + 0x28], al
mov dword [esi + 0x2c], eax
mov byte [esi + 0x30], al
mov byte [esp + 0x20], 6
mov eax, dword [esp + 0x28]
test eax, eax
jne 0x5185f9
lea eax, [esp + 0x28]
mov dword [esp + 0x28], str.bad_locale_name
push eax
lea ecx, [esp + 0x10]
call fcn.005e6de4
push 0x6a80a4
lea eax, [esp + 0x10]
mov dword [esp + 0x10], vtable.std::runtime_error.0
push eax
call fcn.005e3a80
push eax
push esi
call fcn.005df573
add esp, 8
mov eax, esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x1c
ret 4
Function at 0x523ae0
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [0x6d98c4]
test eax, eax
je 0x523b24
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [0x6d98c4]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x523b0e
push dword [0x6d98c4]
call dword [sym.imp.USER32.dll_DestroyWindow]
push dword [0x6d98c8]
mov dword [0x6d98c4], 0
call dword [sym.imp.USER32.dll_SetFocus]
ret
Function at 0x535cd0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x535d79
cmp byte [esi], 0
je 0x535d79
mov ecx, esi
lea edx, [ecx + 1]
mov edi, edi
mov al, byte [ecx]
inc ecx
test al, al
jne 0x535cf0
sub ecx, edx
cmp ecx, 3
jb 0x535d07
cmp byte [esi + 1], 0x3a
jne 0x535d07
add esi, 3
mov ecx, esi
push ebx
push edi
mov edi, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x535d10
sub ecx, edx
lea eax, [ecx + 1]
push eax
mov dword [ebp - 4], eax
call fcn.005deda5
add esp, 4
mov ebx, eax
cmp byte [esi], 0
je 0x535d6e
xor eax, eax
mov dword [ebp + 8], eax
mov cl, byte [edi]
cmp cl, 0x2f
je 0x535d40
cmp cl, 0x5c
jne 0x535d64
push dword [ebp - 4]
push 0
push ebx
call fcn.005e39f0
push dword [ebp + 8]
push esi
push ebx
call fcn.005e0140
add esp, 0x18
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov eax, dword [ebp + 8]
inc edi
inc eax
mov dword [ebp + 8], eax
cmp byte [edi], 0
jne 0x535d34
push ebx
call fcn.0045d8a0
add esp, 4
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x5361e0
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
or eax, 0xffffffff
push edi
mov edi, dword [ebp + 0xc]
cmp edi, 0x10
jb 0x53627a
mov ecx, edi
shr ecx, 4
mov dword [ebp + 0xc], ecx
push ebx
lea edx, [esi + 1]
mov ebx, 4
jmp 0x536210
movsx ecx, byte [edx - 1]
lea edx, [edx + 4]
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x6ac2a8]
movsx ecx, byte [edx - 4]
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x6ac2a8]
movsx ecx, byte [edx - 3]
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x6ac2a8]
movsx ecx, byte [edx - 2]
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x6ac2a8]
dec ebx
jne 0x536210
add esi, 0x10
sub edi, 0x10
dec dword [ebp + 0xc]
jne 0x536200
pop ebx
test edi, edi
je 0x53629b
mov edi, edi
movsx ecx, byte [esi]
lea esi, [esi + 1]
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x6ac2a8]
dec edi
jne 0x536280
pop edi
not eax
pop esi
pop ebp
ret
Function at 0x536680
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push edi
push 0
push 0x80
push 3
push 0
push 1
push closesocket
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x5366ab
xor eax, eax
pop edi
pop ebp
ret
push esi
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
pop edi
pop ebp
ret

Function at 0x5366d0
Capabilities:
Get file size
Get system information on windows
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ebx, dword [ebp - 8]
push 0
push edi
push 0
push 2
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov esi, eax
xor eax, eax
test esi, esi
je 0x536747
xor edx, edx
div ebx
mov ecx, eax
imul ecx, ebx
lea eax, [edx + edi]
push eax
push ecx
push 0
push 4
push esi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebx, eax
push edi
push ebx
call fcn.005361e0
add esp, 8
mov edi, eax
test ebx, ebx
je 0x53673e
push ebx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x537040
Capabilities:
Encode data using xor
Encrypt data using xtea

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor eax, eax
push edi
mov edi, dword [ebp + 8]
mov ebx, 0x20
mov edx, edi
mov ecx, edi
shl ecx, 4
dec ebx
shr edx, 5
xor edx, ecx
mov dword [ebp + 0xc], ebx
mov ebx, dword [ebp + 0x10]
mov ecx, eax
and ecx, 3
add edx, edi
mov ecx, dword [ebx + ecx*4]
add ecx, eax
sub eax, 0x61c88647
xor edx, ecx
add esi, edx
mov edx, esi
mov ecx, esi
shl ecx, 4
shr edx, 5
xor edx, ecx
mov ecx, eax
shr ecx, 0xb
add edx, esi
and ecx, 3
mov ecx, dword [ebx + ecx*4]
mov ebx, dword [ebp + 0xc]
add ecx, eax
xor edx, ecx
add edi, edx
test ebx, ebx
jne 0x537053
mov eax, dword [ebp + 0x14]
mov dword [eax], esi
mov dword [eax + 4], edi
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x5370b0
Capabilities:
Encode data using xor
Encrypt data using xtea

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov eax, 0xc6ef3720
push edi
mov edi, dword [ebp + 8]
mov ebx, 0x20
mov edx, esi
mov ecx, esi
shl ecx, 4
dec ebx
shr edx, 5
xor edx, ecx
mov dword [ebp + 0xc], ebx
mov ebx, dword [ebp + 0x10]
mov ecx, eax
shr ecx, 0xb
add edx, esi
and ecx, 3
mov ecx, dword [ebx + ecx*4]
add ecx, eax
add eax, 0x61c88647
xor edx, ecx
sub edi, edx
mov edx, edi
mov ecx, edi
shl ecx, 4
shr edx, 5
xor edx, ecx
mov ecx, eax
and ecx, 3
add edx, edi
mov ecx, dword [ebx + ecx*4]
mov ebx, dword [ebp + 0xc]
add ecx, eax
xor edx, ecx
sub esi, edx
test ebx, ebx
jne 0x5370c6
mov eax, dword [ebp + 0x14]
mov dword [eax], esi
mov dword [eax + 4], edi
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x537cf0
Capabilities:
Get system information on windows
Print debug messages
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
sub esp, 0x24
push edi
mov edi, ecx
mov ecx, dword [ebp + 0xc]
mov dword [edi + 0x130], ecx
test eax, eax
jne 0x537d0f
mov eax, dword [edi + 0x114]
mov dword [edi + 0x134], eax
add eax, ecx
cmp eax, dword [edi + 0x114]
jbe 0x537d28
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret 0xc
push ebx
push esi
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov esi, dword [edi + 0x130]
xor edx, edx
mov eax, esi
mov ecx, dword [edi + 0x134]
div dword [ebp - 8]
push 0
mov ebx, eax
imul ebx, dword [ebp - 8]
lea eax, [ecx + edx]
mov dword [ebp + 0xc], eax
mov eax, esi
sub eax, ebx
mov dword [ebp + 0x10], eax
lea eax, [esi + ecx]
push eax
push 0
push 2
push 0
push dword [edi + 0x110]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov dword [edi + 0x12c], eax
test eax, eax
jne 0x537d92
push str.CMappedFile::Map__m_hFM_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop esi
pop ebx
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret 0xc
push dword [ebp + 0xc]
push ebx
push 0
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [edi + 0x138], eax
test eax, eax
jne 0x537dca
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CMappedFile::Map__m_lpMapData__lu
call fcn.005352a0
add esp, 8
xor eax, eax
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp + 0x10]
add ecx, eax
mov eax, dword [ebp + 8]
mov dword [edi + 0x13c], ecx
mov dword [eax], ecx
mov ecx, edi
push dword [edi + 0x13c]
mov dword [edi + 0x128], 0
push dword [edi + 0x134]
call fcn.00537cd0
mov eax, dword [edi + 0x134]
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x53a820
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov esi, ecx
call fcn.0053a8c0
push 0x104
push dword [ebp + 8]
lea eax, [esi + 8]
push eax
call fcn.005e0140
mov edi, dword [ebp + 0xc]
add esp, 0xc
mov edx, 1
cmp edi, 2
jne 0x53a857
mov ecx, 0xc0000000
lea edx, [edi + 1]
jmp 0x53a85c
mov ecx, closesocket
xor eax, eax
cmp edi, 1
push 0
push 0x80
setne al
add eax, 3
push eax
push 0
push edx
push ecx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esi + 0x110], eax
cmp eax, 0xffffffff
je 0x53a8a4
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esi + 4], edi
mov dword [esi + 0x114], eax
mov eax, 1
pop edi
pop esi
pop ebp
ret 8
pop edi
mov dword [esi + 0x110], 0
xor eax, eax
pop esi
pop ebp
ret 8

Function at 0x542e70
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6240d1
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x6c4490]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
lea ecx, [edi + 0x4c]
mov dword [edi], vtable.CNetworkStream.0
call fcn.0060d6d0
lea ecx, [edi + 0x60]
mov dword [ebp - 4], 0
call fcn.00563040
mov dword [edi + 0x78], 0
mov dword [edi + 0x7c], 0
mov dword [edi + 0x80], 0
push 0x8000
lea ecx, [edi + 0x78]
mov byte [ebp - 4], 2
mov dword [edi + 0x5c], 0xffffffff
mov byte [edi + 0x48], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x3c], 0
mov dword [edi + 0x44], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
mov dword [edi + 0x38], 0
mov dword [edi + 0x34], 0
mov dword [edi + 0x70], 0
mov byte [edi + 0x74], 0
call fcn.0046cde0
push 0x8000
push 0x6ac7c0
push dword [edi + 0x78]
call fcn.005e3ed0
add esp, 0xc
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