joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49b950
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x6b4bb0]
xor edx, edx
cmp eax, edx
jne 0x49b976
xor eax, eax
mov byte [eax + 0x6b4ab0], al
inc eax
cmp eax, 0x100
jl 0x49b95e
mov dword [0x6b4bb0], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x6b4ab0
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x49ba07
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x49b9da
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x49b9a8
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x49ba80
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x49bad3
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x49baba
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4a2470
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4d213e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.004a2d90
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0x657044
call fcn.004c269a
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x4a2503
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.004c269a
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x4a24fc
push 0
mov ecx, eax
call fcn.00499580
mov dword [esi + 0xc], eax
jmp 0x4a2505
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x4a2505
xor esi, esi
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], 0
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8
Function at 0x4c4d2a
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4c4d62
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004c2db4
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004c2d8c
jmp 0x4c4d6e
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4c6418
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4c645a
call fcn.004cc192
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4c645a
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4c6451
xor eax, eax
jmp 0x4c6462
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004c6468
pop edi
pop esi
pop ebx
ret 4

Function at 0x4cc6c2
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4cc6f0
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4cc70e
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004cc628
jmp 0x4cc70e
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4cc70e
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004cc628
test edi, edi
mov eax, edi
jne 0x4cc6f8
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x10001c00
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1000d670
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x10015004]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
push 0x48
call fcn.100021d8
mov edi, eax
mov dword [edi + 0xc], 0
lea esi, [edi + 8]
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 0
mov dword [edi + 0x40], 0
mov dword [edi + 0x44], 0
mov dword [edi], vtable.CWiaTransferCallback2.0
mov dword [edi + 4], 1
mov dword [ebp - 4], 0
push 8
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
call fcn.100021d8
mov ecx, dword [ebp + 0xc]
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov dword [eax + 4], 0
mov dword [esi], eax
mov dword [eax], esi
lea eax, [edi + 0x20]
mov dword [eax + 0x24], 0
test ecx, ecx
je 0x10001d0c
mov dword [eax], vtable.std::_Func_impl_no_alloc_bool____stdcall___long_int__long_int__unsigned_long_long_unsigned___int64___long_int__struct_IStream____bool__long_int__long_int__unsigned_long_long_unsigned___int64___long_int__struct_IStream__.0
mov dword [eax + 4], ecx
mov dword [eax + 0x24], eax
mov eax, dword [ebx]
push edi
push 0
push ebx
call dword [eax + 0xc]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x41b3a0
Capabilities:
Get geographical location

Disassembly:
sub esp, 0x808
mov eax, dword [0x420004]
xor eax, esp
mov dword [esp + 0x804], eax
cmp dword [0x22c5e8c], 0xfc7
jne 0x41b3cf
push 0
lea eax, [esp + 8]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov eax, dword [0x4232a4]
imul eax, eax, 0x343fd
cmp dword [0x22c5e8c], 0x139e
mov dword [0x4232a4], eax
jne 0x41b3fe
mov ecx, dword [esp]
push 0
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_GetAce]
mov eax, dword [0x4232a4]
add eax, 0x269ec3
push esi
mov dword [0x4232a4], eax
movzx esi, word [0x4232a6]
and esi, 0x7fff
cmp dword [0x22c5e8c], 0x8e7
jne 0x41b433
push 0
lea edx, [esp + 0xc]
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov ecx, dword [esp + 0x808]
mov eax, esi
pop esi
xor ecx, esp
call fcn.00401000
add esp, 0x808
ret

Function at 0x41b500
Capabilities:
Create pipe

Disassembly:
sub esp, 0x24
mov eax, dword [0x420004]
xor eax, esp
mov dword [esp + 0x1c], eax
mov eax, dword [0x4211f0]
push ebx
mov ebx, dword [0x22c5830]
push edi
mov edi, dword [0x22c5e8c]
call fcn.0041b450
cmp dword [0x22c5e8c], 0x2f
jne 0x41b565
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x18]
push ecx
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
call fcn.0041b480
mov ecx, dword [esp + 0x24]
pop edi
pop ebx
xor ecx, esp
call fcn.00401000
add esp, 0x24
ret
Function at 0x41b810
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1818
call fcn.00409170
mov eax, dword [0x420004]
xor eax, ebp
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0
jmp 0x41b839
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xbbe2aa2
jge 0x41b8df
cmp dword [0x22c5e8c], 0xa5f
jne 0x41b883
push 0
call dword [sym.imp.KERNEL32.dll_GetFileType]
push 0
lea ecx, [ebp - 0x818]
push ecx
lea edx, [ebp - 0xc]
push edx
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 8]
push ecx
push 0
lea edx, [ebp - 0x1018]
push edx
push 0x41ec6c
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
cmp dword [ebp - 4], 0x84526b
jne 0x41b8a8
mov eax, dword [0x422010]
mov dword [0x22c5e8c], eax
mov ecx, dword [0x22c5e8c]
add ecx, 0xa231
mov dword [0x22c5e8c], ecx
cmp dword [0x22c5e8c], 0x141
jne 0x41b8da
push str.durudaxo_payuyafelamelokeyir_tacadasevow_kipazoci_kanorowawacasolicalotija
lea edx, [ebp - 0x1818]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
mov dword [0x4232a8], 0xec58acac
mov dword [0x4232ac], 0xffffffff
jmp 0x41b830
call fcn.0041b580
jmp dword [0x22c5830]
Function at 0x47d430
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x67000]
push edi
jmp 0x47d44a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x47d451
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x47d440
mov eax, 1
add ebx, ebx
jne 0x47d463
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x47d474
jne 0x47d493
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x47d493
dec eax
add ebx, ebx
jne 0x47d480
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x47d458
add ebx, ebx
jne 0x47d48f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x47d4e5
xor ecx, ecx
sub eax, 3
jb 0x47d4ab
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x47d51a
sar eax, 1
mov ebp, eax
jmp 0x47d4b6
add ebx, ebx
jne 0x47d4b6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x47d484
inc ecx
add ebx, ebx
jne 0x47d4c4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x47d484
add ebx, ebx
jne 0x47d4d1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x47d4c6
jne 0x47d4e2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x47d4c6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x47d504
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x47d4f6
jmp 0x47d446
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x47d504
add edi, ecx
jmp 0x47d446
pop esi
mov edi, esi
mov ecx, 0x2a04
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x47d522
cmp byte [edi], 6
jne 0x47d522
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x47d527
lea edi, [esi + 0x7a000]
mov eax, dword [edi]
or eax, eax
je 0x47d59f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x7d000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x7d118]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x47d554
mov ecx, edi
jns 0x47d583
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x7d11c]
or eax, eax
je 0x47d599
mov dword [ebx], eax
add ebx, 4
jmp 0x47d571
call dword [esi + 0x7d12c]
mov ebp, dword [esi + 0x7d120]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x47d5d3
sub esp, 0xffffff80
jmp section.UPX0

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x1002aadf
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
pushal
call 0x1002aaee
pop dword [ebp - 0x38]
mov eax, 0xb8bdb3be
add eax, 0x5744f730
sub dword [ebp - 0x38], eax
mov dword [ebp - 0x48], 0xa193ba16
sub dword [ebp - 0x48], 0x534174cb
mov dword [ebp - 0x44], 0x9595466
add dword [ebp - 0x44], 0x28d9f7df
mov dword [ebp - 0x40], 0xb9488446
sub dword [ebp - 0x40], 0x6cfc4018
mov dword [ebp - 0x3c], 0xd3a69162
add dword [ebp - 0x3c], 0x2c596e9e
lea eax, [ebp - 0x48]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x38]
call dword [eax]
mov dword [ebp - 0x48], 0x32dbd24c
add dword [ebp - 0x48], 0x4196970a
mov dword [ebp - 0x44], 0xa4809b42
sub dword [ebp - 0x44], 0x631439cd
mov dword [ebp - 0x40], 0x539376b5
sub dword [ebp - 0x40], 0xf0240a49
mov dword [ebp - 0x3c], 0x82b0cf5b
sub dword [ebp - 0x3c], 0x82b0cf5b
lea ebx, [ebp - 0x48]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x38]
call dword [eax]
push 0x40
push 0x1000
push 0x378f8
push 0
call eax
mov ecx, 0x58fc5ef9
sub ecx, 0x58fc129a
mov ebx, eax
mov edi, 0x23369b31
sub edi, 0x13330531
add edi, dword [ebp - 0x38]
mov edx, 0xaf819fc9
xor dword [ebp - 0x24], edx
mov esi, dword [edi]
add dword [ebp - 0x20], eax
add esi, edx
sub dword [ebp - 0x1c], 0x9bdb40ca
mov dword [ebx], esi
add dword [ebp - 0x10], 0xfc2551d3
add ebx, 0xb47fd6cc
sub ebx, 0xb47fd6c8
add edi, 0x7cad66ec
sub edi, 0x7cad66e8
loop 0x1002ac00
add eax, 0x1244f
mov ebx, eax
add eax, 5
mov ecx, 0x2b42332f
sub ecx, 0x1b42332f
add ecx, dword [ebp - 0x38]
call ebx
leave
ret
Function at 0x4287df
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
cmp dword [0x45aa24], 0
je 0x428816
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
push eax
call main
add esp, 4
jmp 0x42882f
call main
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
call main
add esp, 4
jmp 0x42882f
pop edi
pop esi
pop ebx
leave
ret

Function at 0x43cd6a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
pushal
call 0x43cd79
pop dword [ebp - 0x24]
mov eax, 0x9f1634b4
sub eax, 0x9ed2673b
sub dword [ebp - 0x24], eax
push 0x40
push 0x1000
push 0x50eb9
push 0
mov eax, 0xee0ff5bf
sub eax, 0xedc98de7
add eax, dword [ebp - 0x24]
call dword [eax]
mov ecx, 0x5454
xor edx, edx
add edx, eax
mov edi, 0xd03e3697
sub edi, 0xcff55697
add edi, dword [ebp - 0x24]
mov esi, 0x2aac9846
sub esi, 0x9c2a583b
sub dword [ebp - 0x10], 0x4b01f4e9
mov ebx, dword [edi]
xor ebx, esi
sub dword [ebp - 0x18], 0xeed05b6d
mov dword [edx], ebx
add edx, 0x869daca7
sub edx, 0x869daca3
add edi, 0xa555ec5c
add edi, 0x5aaa13a8
loop 0x43cdd4
add eax, 0xf212f480
add eax, 0xdee4fa3
mov ebx, eax
add eax, 0x65bdbbba
add eax, 0x9a42444b
mov ecx, 0x400000
add ecx, dword [ebp - 0x24]
call ebx
leave
ret

Function at 0x44c8c0
Capabilities:
Move file

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
push eax
push ecx
call dword [sym.imp.kernel32.dll_MoveFileA]
test eax, eax
mov eax, 0
jne 0x44c8df
call dword [sym.imp.kernel32.dll_GetLastError]
test eax, eax
je 0x44c8f2
push eax
call fcn.0044d700
add esp, 4
mov eax, 0xffffffff
ret
xor eax, eax
ret
Function at 0x405830
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dedf0
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x50d174]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.00429ffe
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.00453f10
mov dword [esi + 4], eax
lea ecx, [edi + 8]
lea eax, [edi + 4]
mov dword [edi + 0x34], esi
mov dword [edi + 0xc], eax
add esp, 8
lea eax, [edi + 0x14]
mov dword [edi + 0x10], ecx
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x18]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x24]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x28]
mov dword [edi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [edi + 0x20]
mov dword [eax], 0
mov eax, dword [edi + 0x30]
mov dword [eax], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x1c]
mov dword [eax], 0
mov eax, dword [edi + 0x2c]
mov dword [eax], 0
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
Function at 0x415c30
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, ecx
push edi
cmp eax, 2
jne 0x415cdb
push dword [ebp + 0xc]
call fcn.00415ad0
mov edi, eax
push edi
push 0
push 6
call dword [sym.imp.KERNEL32.dll_OpenFileMappingA]
mov dword [esi], eax
test eax, eax
jne 0x415d30
push edi
call fcn.004a25d4
add esp, 4
mov ecx, esi
push 0
push dword [ebp + 0xc]
call fcn.00415b50
mov edi, eax
push edi
push 0
push 6
call dword [sym.imp.KERNEL32.dll_OpenFileMappingA]
mov dword [esi], eax
test eax, eax
jne 0x415d30
push edi
call fcn.004a25d4
add esp, 4
mov ecx, esi
push dword [ebp + 0xc]
call fcn.00415ad0
mov edi, eax
lea ecx, [esi + 0x14]
push edi
lea eax, [ebx + 4]
push eax
push 0
push 4
push ecx
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov dword [esi], eax
test eax, eax
jne 0x415d30
push edi
call fcn.004a25d4
add esp, 4
mov ecx, esi
push 0
push dword [ebp + 0xc]
call fcn.00415b50
mov edi, eax
jmp 0x415d19
cmp eax, 1
jne 0x415cec
push 0
push dword [ebp + 0xc]
call fcn.00415b50
jmp 0x415d06
cmp eax, 3
jne 0x415cfe
push dword [ebp + 0x14]
push dword [ebp + 0xc]
call fcn.00415b50
jmp 0x415d06
push dword [ebp + 0xc]
call fcn.00415ad0
mov edi, eax
push edi
push 0
push 6
call dword [sym.imp.KERNEL32.dll_OpenFileMappingA]
mov dword [esi], eax
test eax, eax
jne 0x415d30
push edi
lea eax, [ebx + 4]
push eax
push 0
push 4
lea eax, [esi + 0x14]
push eax
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov dword [esi], eax
mov ecx, dword [esi]
test ecx, ecx
je 0x415d71
lea eax, [ebx + 4]
push eax
push 0
push 0
push 6
push ecx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
je 0x415d71
lea ecx, [eax + 4]
mov dword [esi + 8], eax
mov dword [esi + 4], ecx
cmp dword [eax], 0x12345678
je 0x415d71
push ebx
push 0
push ecx
call fcn.0049d330
mov eax, dword [esi + 8]
add esp, 0xc
mov dword [eax], 0x12345678
cmp byte [esi + 0x10], 0
je 0x415dbe
lea ecx, [edi - 1]
nop word [eax + eax]
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x415d80
mov eax, dword [str._Eve]
push edi
mov dword [ecx], eax
mov al, byte [0x4e35b8]
push 1
push 0x1f0003
mov byte [ecx + 4], al
call dword [sym.imp.KERNEL32.dll_OpenEventA]
mov dword [esi + 0xc], eax
test eax, eax
jne 0x415dbe
push edi
push eax
push eax
lea eax, [esi + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [esi + 0xc], eax
test edi, edi
je 0x415dcb
push edi
call fcn.004a25d4
add esp, 4
pop edi
pop esi
pop ebx
pop ebp
ret 0x10
Function at 0x416040
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x50d174]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
mov byte [edi + 0x68], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x10], 0
mov dword [edi], 0x67452301
mov dword [edi + 4], 0xefcdab89
mov dword [edi + 8], 0x98badcfe
mov dword [edi + 0xc], 0x10325476
mov eax, dword [esi]
mov eax, dword [eax + 4]
mov eax, dword [eax + esi + 0xc]
test al, 6
jne 0x416111
test al, 1
jne 0x4160df
nop dword [eax + eax]
push 0
push 0x400
lea eax, [ebp - 0x404]
mov ecx, esi
push eax
call fcn.004167c0
cmp dword [esi + 0xc], 0
mov eax, dword [esi + 8]
jl 0x4160d3
jg 0x4160c4
test eax, eax
je 0x4160d3
push eax
lea eax, [ebp - 0x404]
mov ecx, edi
push eax
call fcn.00417150
mov eax, dword [esi]
mov eax, dword [eax + 4]
test byte [eax + esi + 0xc], 1
je 0x4160a0
lea ecx, [esi + 0x10]
call fcn.00416700
test eax, eax
jne 0x416111
mov eax, dword [esi]
mov ecx, dword [eax + 4]
xor eax, eax
add ecx, esi
cmp dword [ecx + 0x38], eax
sete al
lea eax, [eax*4 + 2]
or eax, dword [ecx + 0xc]
and eax, 0x17
mov dword [ecx + 0xc], eax
mov ecx, dword [ecx + 0x10]
and ecx, eax
jne 0x416125
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.0042a04a
mov esp, ebp
pop ebp
ret 4
test cl, 4
je 0x416131
mov esi, str.ios_base::badbit_set
jmp 0x416141
test cl, 2
mov esi, str.ios_base::failbit_set
mov eax, str.ios_base::eofbit_set
cmove esi, eax
lea eax, [ebp - 0x40c]
push 1
push eax
call fcn.004017d0
add esp, 8
lea ecx, [ebp - 0x420]
push eax
push esi
call fcn.00401b70
push 0x50af68
lea eax, [ebp - 0x420]
push eax
call fcn.0049c411
int3

Function at 0x416180
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov esi, ecx
mov byte [esi + 0x68], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], 0
mov dword [esi], 0x67452301
mov dword [esi + 4], 0xefcdab89
mov dword [esi + 8], 0x98badcfe
mov dword [esi + 0xc], 0x10325476
cmp dword [eax + 0x14], 0x10
mov ecx, dword [eax + 0x10]
jb 0x4161c1
mov eax, dword [eax]
push ecx
push eax
mov ecx, esi
call fcn.00417150
mov eax, esi
pop esi
pop ebp
ret 4
Function at 0x4161e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x50d174]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x38], 0
je 0x416281
cmp byte [esi + 0x3d], 0
je 0x416281
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x416237
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
mov edx, dword [ecx]
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x416249
sub eax, 1
je 0x41624d
sub eax, 2
je 0x416281
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042a04a
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x41626a
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.004a3d21
add esp, 0x10
cmp edi, eax
jne 0x416237
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042a04a
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
xor ecx, ebp
pop esi
call fcn.0042a04a
mov esp, ebp
pop ebp
ret