joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40f490
Capabilities:
Encode data using xor

Disassembly:
push ebp
lea ebp, [esp - 0x6c]
mov eax, 0x11ac
call fcn.004131b0
push ebx
push esi
push edi
mov edi, dword [ebp + 0x74]
mov ebx, dword [edi + 0xa4]
xor esi, esi
push 0xfff
lea eax, [ebp - 0x113f]
push esi
push eax
mov dword [ebp + 0x64], esi
mov byte [ebp - 0x1140], 0
call sub.msvcrt.dll_memset
mov eax, dword [ebx + 0x68]
add esp, 0xc
cmp eax, 0xbb8
jae 0x40f67f
push eax
lea eax, [ebx + 0xa0]
push eax
lea eax, [ebp - 0x1140]
push eax
call sub.msvcrt.dll_memcpy
xor eax, eax
mov byte [ebp + 0x4c], 0
lea edi, [ebp + 0x4d]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x3f
stosb byte es:[edi], al
lea eax, [ebp + 0xd]
push esi
push eax
mov byte [ebp + 0xc], 0
call sub.msvcrt.dll_memset
lea esi, [ebx + 0x84]
lea edi, [ebp + 0x4c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
add esp, 0x18
movsd dword es:[edi], dword [esi]
lea eax, [ebp + 0xc]
push eax
mov byte [ebp + 0x5f], 1
push dword [ebx + 0x94]
mov esi, dword [ebx + 0x98]
lea eax, [ebp + 0x4c]
push eax
push dword [ebp + 0x7c]
push dword [ebp + 0x74]
call fcn.0040f054
push 8
pop ecx
lea eax, [ebp + 0x68]
push eax
push 0x2c
mov byte [ebp - 0x40], cl
mov dword [ebp - 0x3c], 0x6610
mov byte [ebp - 0x3f], 2
mov dword [ebp - 0x38], 0x20
lea esi, [ebp + 0xc]
lea edi, [ebp - 0x34]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp + 0x74]
lea eax, [ebp - 0x40]
push eax
push dword [esi]
mov eax, dword [esi + 0xb4]
xor edi, edi
mov dword [ebp + 0x68], edi
call fcn.0040ff2f
cmp dword [ebp + 0x68], edi
je 0x40f67a
mov eax, dword [ebx + 0x68]
mov dword [ebp + 0x60], eax
lea eax, [ebp + 0x60]
push eax
lea eax, [ebp - 0x1140]
push eax
push dword [ebp + 0x68]
mov eax, dword [esi + 0xb4]
call fcn.0040ff78
push dword [ebp + 0x68]
mov eax, dword [esi + 0xb4]
call fcn.0040ff18
xor eax, eax
mov cl, byte [ebp + eax + 0x2c]
xor byte [ebp + eax - 0x1140], cl
inc eax
cmp eax, 0x10
jl 0x40f5b8
push 0x7f
lea eax, [ebp - 0xbf]
push edi
push eax
mov byte [ebp - 0xc0], 0
call sub.msvcrt.dll_memset
push 0x7f
lea eax, [ebp - 0x13f]
push edi
push eax
mov byte [ebp - 0x140], 0
call sub.msvcrt.dll_memset
add esp, 0x18
lea eax, [ebp - 0xc0]
push eax
push 0x10
lea eax, [ebp - 0x1140]
push eax
push 0x14
push dword [ebp + 0x7c]
mov edi, 0x80
push edi
push dword [ebx + 0x98]
push esi
call fcn.0040ef58
lea eax, [ebp - 0x140]
push eax
push 0x40
lea eax, [ebp - 0x10f0]
push eax
push 0x40
lea eax, [ebp - 0xc0]
push eax
push edi
push dword [ebx + 0x98]
push esi
call fcn.0040ef58
push 0x10
pop ecx
lea edi, [ebp - 0x1130]
lea esi, [ebp - 0x140]
xor eax, eax
repe cmpsd dword [esi], dword es:[edi]
jne 0x40f67a
push dword [ebp + 0x78]
lea eax, [ebp - 0x10f0]
push 0x40
push eax
mov eax, dword [ebp + 0x74]
push 0x8004
call fcn.0040ebe6
mov dword [ebp + 0x64], 1
mov eax, dword [ebp + 0x64]
jmp 0x40f68b
mov dword [edi + 0x31c], 0xfffffffe
xor eax, eax
pop edi
pop esi
pop ebx
add ebp, 0x6c
leave
ret 0xc
Function at 0x40fe50
Capabilities:
Link many functions at runtime

Disassembly:
cmp dword [esi], 0
jne 0x40fef2
push edi
push 0x414a48
call fcn.0040cd07
mov edi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov dword [esp], str.CryptAcquireContextW
push eax
mov dword [esi], eax
call edi
push str.CryptReleaseContext
push dword [esi]
mov dword [esi + 4], eax
call edi
push str.CryptCreateHash
push dword [esi]
mov dword [esi + 8], eax
call edi
push str.CryptGetHashParam
push dword [esi]
mov dword [esi + 0xc], eax
call edi
push str.CryptHashData
push dword [esi]
mov dword [esi + 0x10], eax
call edi
push str.CryptDestroyHash
push dword [esi]
mov dword [esi + 0x14], eax
call edi
push str.CryptDuplicateKey
push dword [esi]
mov dword [esi + 0x18], eax
call edi
push str.CryptDecrypt
push dword [esi]
mov dword [esi + 0x24], eax
call edi
push str.CryptDeriveKey
push dword [esi]
mov dword [esi + 0x1c], eax
call edi
push str.CryptImportKey
push dword [esi]
mov dword [esi + 0x20], eax
call edi
push str.CryptDestroyKey
push dword [esi]
mov dword [esi + 0x28], eax
call edi
mov dword [esi + 0x2c], eax
pop edi
ret
Function at 0x410eee
Capabilities:
Acquire credentials from windows credential manager

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2320
call fcn.004131b0
push ebx
push esi
mov ebx, ecx
push edi
lea eax, [ebp - 0x231c]
mov dword [ebp - 8], ebx
call fcn.0040b47f
push dword [ebp + 8]
push str..vcrd
call fcn.0040b8d3
lea eax, [ebp - 0x231c]
call fcn.0040b817
test eax, eax
je 0x4110eb
xor esi, esi
push 0x208
xor edi, edi
lea eax, [ebp - 0x54a]
push esi
inc edi
push eax
mov dword [ebx + 0x384], edi
mov word [ebp - 0x54c], si
call sub.msvcrt.dll_memset
mov eax, dword [ebp + 8]
add esp, 0xc
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
cmp dx, si
jne 0x410f5b
sub eax, ecx
sar eax, 1
add eax, 0xc
cmp eax, 0x104
jae 0x410f89
mov ecx, dword [ebp + 8]
push str.Policy.vpol
lea eax, [ebp - 0x54c]
call fcn.0040d31f
pop ecx
jmp 0x410f90
mov word [ebp - 0x54c], si
lea eax, [ebp - 0x54c]
push eax
call fcn.0040c736
test eax, eax
pop ecx
je 0x4110eb
lea edx, [ebp - 0x33c]
mov dword [ebx + 0x380], edi
call fcn.00412a11
lea eax, [ebp - 0x2f0]
push eax
mov eax, dword [0x418ad8]
add eax, 0x20
call fcn.00410e19
mov eax, dword [0x418ad8]
cmp dword [eax + 0x1c], 3
jne 0x410fec
lea esi, [ebx + 0x368]
call fcn.0040b018
mov eax, dword [ebx + 0x36c]
mov dword [ebp - 0x88], eax
mov eax, dword [0x418ad8]
mov eax, dword [eax + 0x1c]
cmp eax, edi
je 0x410fff
cmp eax, 3
je 0x410fff
xor edi, edi
push edi
lea eax, [ebp - 0x54c]
push eax
lea eax, [ebp - 0x33c]
push eax
call fcn.00412dec
mov esi, eax
mov eax, dword [0x418ad8]
cmp dword [eax + 0x1c], 3
jne 0x411031
push dword [ebx + 0x36c]
lea edi, [ebx + 0x368]
call fcn.0040b0fa
test esi, esi
je 0x4110b1
lea eax, [ebp - 0xf3c]
call fcn.0040b47f
push dword [ebp + 8]
push str..vcrd
call fcn.0040b8d3
lea eax, [ebp - 0xf3c]
call fcn.0040b817
test eax, eax
je 0x4110a4
lea eax, [ebp - 0xa5c]
push eax
lea ebx, [ebp - 0x33c]
call fcn.00412ab1
test eax, eax
je 0x411092
mov eax, dword [ebp - 8]
lea ecx, [ebp - 0xa5c]
push ecx
mov dword [eax + 0x388], 1
push eax
lea eax, [ebp - 0x84]
call fcn.0041025a
lea eax, [ebp - 0xf3c]
call fcn.0040b817
test eax, eax
jne 0x41105c
mov ebx, dword [ebp - 8]
lea esi, [ebp - 0xf3c]
call fcn.0040b466
jmp 0x4110e0
mov eax, dword [ebp - 0x8c]
cmp eax, 0xffffffeb
mov dword [ebx + 0x370], eax
jne 0x4110e0
mov edi, dword [ebp - 0x18]
lea esi, [ebx + 0x374]
mov eax, esi
call fcn.0040b3a0
push edi
push dword [ebp - 0x1c]
push dword [esi]
call sub.msvcrt.dll_memcpy
add esp, 0xc
lea edi, [ebp - 0x33c]
call fcn.004129f0
lea eax, [ebp - 0x192c]
call fcn.0040b47f
push dword [ebp + 8]
push 0x41457c
call fcn.0040b8d3
jmp 0x411122
lea ecx, [ebp - 0x192c]
call fcn.0040b656
test eax, eax
je 0x411122
lea eax, [ebp - 0x144c]
push eax
mov ecx, ebx
call fcn.00410eee
lea eax, [ebp - 0x192c]
call fcn.0040b817
test eax, eax
jne 0x411105
lea esi, [ebp - 0x192c]
call fcn.0040b466
lea esi, [ebp - 0x231c]
call fcn.0040b466
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x4122ce
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x238
push ebx
push esi
mov esi, eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x10], ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
cmp eax, ebx
mov dword [ebp - 4], eax
jbe 0x412486
push edi
mov eax, esi
call fcn.00401039
push dword [ebp - 4]
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov edi, eax
push edi
push dword [ebp - 4]
push ebx
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push 0x414cac
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x412354
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x30]
mov dword [esi + 4], ecx
mov ecx, dword [eax + 8]
mov dword [esi], ecx
mov ecx, dword [eax + 0x14]
mov dword [esi + 0xc], ecx
mov ecx, dword [eax + 0x10]
mov dword [esi + 8], ecx
mov ecx, dword [eax + 0x24]
mov dword [esi + 0x10], ecx
mov eax, dword [eax + 0x28]
mov dword [esi + 0x14], eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
push str.VarFileInfoTranslation
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x4123b9
mov eax, dword [ebp - 0xc]
movzx ecx, word [eax + 2]
movzx eax, word [eax]
push ecx
push eax
push str._4.4X_4.4X
lea eax, [ebp - 0x38]
push 0x14
push eax
call sub.msvcrt.dll__snwprintf
add esp, 0x14
lea eax, [ebp - 0x238]
push eax
push 0x4144b8
lea eax, [ebp - 0x38]
push eax
push edi
call fcn.004121df
test eax, eax
jne 0x4123ce
movzx ecx, word [eax + str.040904E4]
mov word [ebp + eax - 0x38], cx
inc eax
inc eax
cmp cx, bx
jne 0x4123a4
jmp 0x4123ce
xor eax, eax
movzx ecx, word [eax + str.040904E4]
mov word [ebp + eax - 0x38], cx
inc eax
inc eax
cmp cx, bx
jne 0x4123bb
lea eax, [esi + 0x18]
push eax
push 0x416214
lea eax, [ebp - 0x38]
push eax
push edi
call fcn.004121df
lea eax, [esi + 0x218]
push eax
push 0x41622c
lea eax, [ebp - 0x38]
push eax
push edi
call fcn.004121df
lea eax, [esi + 0x418]
push eax
push 0x41624c
lea eax, [ebp - 0x38]
push eax
push edi
call fcn.004121df
lea eax, [esi + 0x618]
push eax
push 0x416264
lea eax, [ebp - 0x38]
push eax
push edi
call fcn.004121df
lea eax, [esi + 0x818]
push eax
push 0x416284
lea eax, [ebp - 0x38]
push eax
push edi
call fcn.004121df
lea eax, [esi + 0xa18]
push eax
push 0x41629c
lea eax, [ebp - 0x38]
push eax
push edi
call fcn.004121df
lea eax, [esi + 0xc18]
push eax
push 0x4162b8
lea eax, [ebp - 0x38]
push eax
push edi
call fcn.004121df
add esi, 0xe18
push esi
push str.OriginalFileName
lea eax, [ebp - 0x38]
push eax
push edi
call fcn.004121df
xor ebx, ebx
push edi
inc ebx
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 4
Function at 0x412dec
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x348
push ebx
push esi
push edi
push dword [ebp + 0xc]
xor ebx, ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], 0x1388
call fcn.0040cc19
mov edi, eax
cmp edi, 0xffffffff
pop ecx
je 0x412fa6
push ebx
push edi
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov esi, eax
push esi
lea eax, [ebp - 0x24]
call fcn.0040b37d
push esi
push dword [ebp - 0x24]
push edi
call fcn.0040c080
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [ebp - 0x24]
push ebx
push 4
mov dword [ebp - 0x10], esi
pop edi
lea esi, [ebp - 0x10]
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], ebx
call fcn.0040b2d5
push ebx
push 0x10
pop edi
call fcn.0040b2d5
mov ecx, esi
call fcn.0040bad9
push ebx
push 8
pop edi
call fcn.0040b2d5
push ebx
push 4
pop edi
call fcn.0040b2d5
push ebx
call fcn.0040b2d5
push ebx
push 0x10
pop edi
call fcn.0040b2d5
push ebx
call fcn.0040b2d5
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp + 0xc]
mov ecx, esi
mov dword [ebp + 0xc], ebx
mov dword [ebp - 0x14], ebx
call fcn.0040b7f1
cmp eax, ebx
mov dword [ebp - 8], eax
je 0x412f97
mov edx, dword [ebp + 0xc]
cmp edx, ebx
jbe 0x412f97
mov ecx, dword [ebp - 0x14]
cmp ecx, ebx
je 0x412f97
xor eax, eax
cmp dword [ebp + 0x10], ebx
lea edi, [ebp - 0x14]
mov dword [ebp - 0x18], ebx
stosd dword es:[edi], eax
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], edx
je 0x412eff
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x2b4]
mov dword [ebp + 8], eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp + 8]
push eax
call fcn.00406adb
mov dword [ebp - 8], eax
jmp 0x412f4e
lea edx, [ebp - 0x344]
call fcn.0040e921
mov edi, dword [ebp + 8]
lea eax, [edi + 0x4c]
push eax
lea esi, [ebp - 0x28c]
call fcn.0040114a
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0xc]
lea ebx, [ebp - 0x344]
call fcn.0040f6c8
test eax, eax
mov dword [ebp - 8], eax
jne 0x412f3e
mov eax, dword [ebp - 0x28]
mov dword [edi + 0x2b0], eax
lea edi, [ebp - 0x344]
call fcn.0040ea2f
mov esi, dword [ebp + 8]
xor ebx, ebx
cmp dword [ebp - 8], ebx
je 0x412fb5
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
push edi
push esi
call fcn.00412d64
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x412f8c
lea ebx, [esi + 0x320]
mov eax, ebx
call fcn.0040b3a0
push edi
push dword [ebp - 0x14]
push dword [ebx]
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov dword [esi + 0x2b0], 0xffffffeb
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.DLL_LocalFree]
jmp 0x412fb5
mov eax, dword [ebp + 8]
mov dword [eax + 0x2b0], 0xffffffec
jmp 0x412fb5
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x2b0], eax
lea esi, [ebp - 0x24]
call fcn.0040b321
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
push 4
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x42e072
nop
mov ebx, 0x407ef8
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x5c8e3fc4
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x42e060
nop
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x42e0d2
nop
nop
mov ebx, 0x42cd70
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x44a85974
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
nop
nop
loop 0x42e0c0
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0xa9d058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.00a9d1a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0xa9d07e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xa9d06a
add dl, dl
jne 0xa9d089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xa9d0dc
xor eax, eax
add dl, dl
jne 0xa9d096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xa9d17d
add dl, dl
jne 0xa9d0a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xa9d0b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xa9d0bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xa9d0c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0xa9d0d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0xa9d075
mov eax, 1
add dl, dl
jne 0xa9d0ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xa9d0f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xa9d0e1
sub eax, ebx
mov ebx, 1
jne 0xa9d128
mov ecx, 1
add dl, dl
jne 0xa9d10e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xa9d119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xa9d105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xa9d075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xa9d13f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xa9d14a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xa9d136
cmp eax, 0x7d00
jae 0xa9d16d
cmp eax, 0x500
jb 0xa9d168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xa9d075
cmp eax, 0x7f
ja 0xa9d170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xa9d075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0xa9d19e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0xa9d075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x401b20
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
push ecx
push 3
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x401b59
push 0
mov ecx, dword [ebp + 8]
push ecx
push str.Eroare_LoadLibrary:_verifica_daca_exista_fisierul
mov edx, dword [0x58fee4]
push edx
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
jmp 0x401b96
mov eax, dword [ebp - 4]
mov dword [0x58fea4], eax
push 0
push 0x401aa0
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_EnumResourceTypesA]
test eax, eax
jne 0x401b87
push str.eroare_enum_res_types_n
call fcn.00515ae4
add esp, 4
xor eax, eax
jmp 0x401b96
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x402840
Capabilities:
Encode data using add xor sub operations
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor eax, 0xffffffff
mov dword [ebp + 8], eax
cmp dword [ebp + 0x10], 8
jb 0x4029a1
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
xor edx, dword [ebp + 8]
and edx, 0xff
mov eax, dword [ebp + 8]
shr eax, 8
xor eax, dword [edx*4 + 0x542068]
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 0xc]
add ecx, 1
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp + 0xc]
movzx eax, byte [edx]
xor eax, dword [ebp + 8]
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
xor ecx, dword [eax*4 + 0x542068]
mov dword [ebp + 8], ecx
mov edx, dword [ebp + 0xc]
add edx, 1
mov dword [ebp + 0xc], edx
mov eax, dword [ebp + 0xc]
movzx ecx, byte [eax]
xor ecx, dword [ebp + 8]
and ecx, 0xff
mov edx, dword [ebp + 8]
shr edx, 8
xor edx, dword [ecx*4 + 0x542068]
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
xor edx, dword [ebp + 8]
and edx, 0xff
mov eax, dword [ebp + 8]
shr eax, 8
xor eax, dword [edx*4 + 0x542068]
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 0xc]
add ecx, 1
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp + 0xc]
movzx eax, byte [edx]
xor eax, dword [ebp + 8]
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
xor ecx, dword [eax*4 + 0x542068]
mov dword [ebp + 8], ecx
mov edx, dword [ebp + 0xc]
add edx, 1
mov dword [ebp + 0xc], edx
mov eax, dword [ebp + 0xc]
movzx ecx, byte [eax]
xor ecx, dword [ebp + 8]
and ecx, 0xff
mov edx, dword [ebp + 8]
shr edx, 8
xor edx, dword [ecx*4 + 0x542068]
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
xor edx, dword [ebp + 8]
and edx, 0xff
mov eax, dword [ebp + 8]
shr eax, 8
xor eax, dword [edx*4 + 0x542068]
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 0xc]
add ecx, 1
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp + 0xc]
movzx eax, byte [edx]
xor eax, dword [ebp + 8]
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
xor ecx, dword [eax*4 + 0x542068]
mov dword [ebp + 8], ecx
mov edx, dword [ebp + 0xc]
add edx, 1
mov dword [ebp + 0xc], edx
mov eax, dword [ebp + 0x10]
sub eax, 8
mov dword [ebp + 0x10], eax
jmp 0x40284c
cmp dword [ebp + 0x10], 0
je 0x4029da
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
xor edx, dword [ebp + 8]
and edx, 0xff
mov eax, dword [ebp + 8]
shr eax, 8
xor eax, dword [edx*4 + 0x542068]
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 0xc]
add ecx, 1
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp + 0x10]
sub edx, 1
mov dword [ebp + 0x10], edx
jne 0x4029a7
mov eax, dword [ebp + 8]
xor eax, 0xffffffff
pop ebp
ret
Function at 0x4029f0
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
movsx eax, byte [ebp + 0xc]
mov ecx, dword [ebp + 8]
xor eax, dword [ecx]
and eax, 0xff
mov edx, dword [ebp + 8]
mov ecx, dword [edx]
shr ecx, 8
xor ecx, dword [eax*4 + 0x542068]
mov edx, dword [ebp + 8]
mov dword [edx], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
and ecx, 0xff
mov edx, dword [ebp + 8]
add ecx, dword [edx + 4]
mov eax, dword [ebp + 8]
mov dword [eax + 4], ecx
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
imul edx, edx, 0x8088405
add edx, 1
mov eax, dword [ebp + 8]
mov dword [eax + 4], edx
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
shr edx, 0x18
mov eax, dword [ebp + 8]
xor edx, dword [eax + 8]
and edx, 0xff
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 8]
shr eax, 8
xor eax, dword [edx*4 + 0x542068]
mov ecx, dword [ebp + 8]
mov dword [ecx + 8], eax
pop ebp
ret

Function at 0x406360
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
and ecx, 1
jne 0x4063a3
push 0
lea edx, [ebp - 4]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40639e
mov ecx, dword [ebp + 8]
mov dword [ecx + 8], 7
mov dword [ebp - 4], 0
mov eax, dword [ebp - 4]
jmp 0x4063f2
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x14]
add eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
cmp eax, dword [ecx + 0x10]
jbe 0x4063c3
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 8]
mov ecx, dword [edx + 0x10]
sub ecx, dword [eax + 0x14]
mov dword [ebp + 0x10], ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
mov edx, dword [ebp + 8]
add ecx, dword [edx + 0x14]
push ecx
mov eax, dword [ebp + 0xc]
push eax
call fcn.00515710
add esp, 0xc
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x14]
add edx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
mov dword [eax + 0x14], edx
mov eax, dword [ebp + 0x10]
mov esp, ebp
pop ebp
ret