joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4805b0
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 0x480603
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 0x4805ea
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 0x486f80
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4b385e
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.004878a0
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0x5d15dc
call fcn.004a5114
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x487013
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.004a5114
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x48700c
push 0
mov ecx, eax
call fcn.0047e120
mov dword [esi + 0xc], eax
jmp 0x487015
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x487015
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 0x4a7777
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4a77af
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.004a582e
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004a5806
jmp 0x4a77bb
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4a8e6e
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 0x4a8eb0
call fcn.004ae921
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4a8eb0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4a8ea7
xor eax, eax
jmp 0x4a8eb8
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004a8ebe
pop edi
pop esi
pop ebx
ret 4
Function at 0x4aee51
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 0x4aee7f
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4aee9d
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004aedb7
jmp 0x4aee9d
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4aee9d
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004aedb7
test edi, edi
mov eax, edi
jne 0x4aee87
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x100019f0
Capabilities:
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
and eax, 0xff
shr eax, 4
and eax, 1
ret

Function at 0x10001a90
Capabilities:
Create thread

Disassembly:
push esi
push 0x18
call fcn.1000cdef
add esp, 4
mov esi, eax
mov eax, dword [esp + 8]
push 0
push 0
push 0
push 0
mov dword [esi + 0xc], eax
call dword [sym.imp.KERNEL32.dll_CreateEventA]
lea ecx, [esi + 4]
mov dword [esi + 8], eax
push ecx
push 0
push esi
push 0x10004190
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edx, dword [esi + 8]
push 0xffffffffffffffff
push edx
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
mov dword [esi + 8], 0
mov dword [esi + 0x10], 0
call fcn.10001b70
add esp, 4
mov eax, esi
pop esi
ret

Function at 0x10001b00
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
mov edi, dword [sym.imp.USER32.dll_PostThreadMessageA]
mov eax, dword [esi + 4]
push 0
push 0
push 0x8005
push eax
call edi
mov ecx, dword [esi + 4]
push 0
push 0
push 0x8001
push ecx
call edi
mov eax, dword [esi + 0x10]
test eax, eax
je 0x10001b38
push eax
call dword [sym.imp.WINMM.dll_mixerClose]
mov edx, dword [esi]
push 0x3e8
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esi]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [esi]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call fcn.1000cf29
add esp, 4
pop edi
pop esi
ret

Function at 0x10003680
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x14]
lea eax, [esp + 0x18]
push 0
push eax
push 8
push esi
push edi
call ebx
test eax, eax
je 0x100036d6
mov ebp, dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [esp + 0x18], 8
jne 0x100036d6
mov edx, dword [esp + 0x1c]
mov ecx, dword [esi]
cmp ecx, dword [edx]
je 0x100036dd
mov eax, dword [esi + 4]
push 1
push 0
push eax
push edi
call ebp
lea ecx, [esp + 0x18]
push 0
push ecx
push 8
push esi
push edi
call ebx
test eax, eax
jne 0x100036a9
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret
Function at 0x10003b50
Capabilities:
Enumerate files on windows

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x44c
lea ecx, [esp]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push esi
push edi
push eax
push ecx
call ebx
mov cl, byte [esp + 0xc]
or esi, 0xffffffff
xor eax, eax
test cl, cl
je 0x10003b88
cmp cl, 0x5c
jne 0x10003b7f
mov esi, eax
mov cl, byte [esp + eax + 0xd]
inc eax
test cl, cl
jne 0x10003b78
lea edx, [esp + 0xc]
lea eax, [esp + 0x110]
push edx
push eax
mov byte [esp + esi + 0x15], 0
call ebx
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea ecx, [esp + 0x110]
push str.in_.dll
push ecx
call edi
lea edx, [esp + 0x318]
lea eax, [esp + 0x110]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x10003c23
push ebp
mov ebp, dword [esp + 0x460]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x218]
push ecx
push edx
call ebx
lea eax, [esp + 0x348]
lea ecx, [esp + 0x218]
push eax
push ecx
call edi
lea edx, [esp + 0x218]
push edx
push ebp
call fcn.100039f0
add esp, 8
lea eax, [esp + 0x31c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x10003bd6
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x44c
ret

Function at 0x10004c90
Capabilities:
Set registry value

Disassembly:
push ecx
mov eax, dword [esp + 8]
push edi
mov edi, dword [eax + 0x20]
test edi, edi
je 0x10004d28
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push esi
mov ecx, dword [edi]
push ecx
call ebx
add eax, 2
push eax
call fcn.1000cdef
mov esi, eax
add esp, 4
mov byte [esi], 0x2e
mov edx, dword [edi]
lea eax, [esi + 1]
push edx
push eax
call ebp
lea ecx, [esp + 0x10]
lea edx, [esp + 0x18]
push ecx
push edx
push 0
push 0xf003f
push 0
push 0
push 0
push esi
push DirectSoundCreate
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov eax, dword [esp + 0x18]
push 0xe
push str.wzAudio.Audio
push 1
push 0
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call fcn.1000cf29
mov edi, dword [edi + 8]
add esp, 4
test edi, edi
jne 0x10004cb0
pop esi
pop ebp
pop ebx
pop edi
pop ecx
ret
Function at 0x100062c0
Capabilities:
Create thread

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
push edi
push 0x1c
call fcn.1000cdef
push 0xc
mov ebx, eax
call fcn.1000cdef
mov esi, eax
push 0x40000
mov dword [ebx], 0x100063b0
mov dword [ebx + 4], 0x10006410
mov dword [ebx + 8], fcn.10005370
mov dword [ebx + 0x10], 0x100037e0
mov dword [ebx + 0x14], 0x100037e0
mov dword [ebx + 0x18], esi
call fcn.10001530
push 0x10
mov dword [esi], eax
call fcn.1000cdef
mov ecx, dword [esp + 0x44]
mov edi, eax
mov eax, dword [esi]
push 0
push ecx
push edi
mov dword [edi + 4], eax
mov dword [edi + 8], 0
call fcn.10001960
mov edx, dword [esp + 0x54]
lea eax, [esp + 0x2c]
push eax
push 0
push edi
push 0x10006110
push 0
push 0
mov dword [edi + 0xc], edx
call fcn.1000dc07
mov dword [esi + 4], eax
mov eax, dword [esi]
push eax
mov dword [esi + 8], edi
call dword [eax + 0x1c]
add esp, 0x38
test eax, eax
jne 0x100063a3
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x64
call ebp
mov eax, dword [esi]
push eax
call dword [eax + 0x10]
add esp, 4
lea ecx, [esp + 0x14]
mov edi, eax
push 0
push 0x8005
push 0x8005
push 0
push ecx
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
jne 0x100063a3
cmp edi, 0x8000
jae 0x100063a3
mov eax, dword [esi]
push eax
call dword [eax + 0x1c]
add esp, 4
test eax, eax
je 0x10006362
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x20
ret
Function at 0x10009670
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov edi, dword [esp + 0x18]
and ebx, 0xffff
cmp edi, 0x20
jb 0x1000972a
push ebp
mov ebp, edi
shr ebp, 5
lea eax, [esp + 0x14]
push 0x20
push eax
call fcn.100095c0
mov esi, eax
mov ecx, ebx
mov edx, esi
and ecx, 0xff00
shr edx, 0x10
xor ecx, edx
xor eax, eax
shr ecx, 8
shl ebx, 8
mov ax, word [ecx*2 + 0x10019304]
mov dword [esp + 0x28], esi
mov ecx, eax
xor edx, edx
mov dh, byte [esp + 0x2a]
xor ecx, ebx
mov eax, ecx
add esp, 8
and eax, 0xff00
sub edi, 0x20
xor edx, eax
xor eax, eax
shr edx, 8
shl ecx, 8
mov ax, word [edx*2 + 0x10019304]
mov edx, eax
xor eax, eax
xor edx, ecx
mov ecx, esi
xor ecx, edx
and esi, 0xff
mov al, ch
xor ecx, ecx
shl edx, 8
mov cx, word [eax*2 + 0x10019304]
xor eax, eax
xor ecx, edx
xor edx, edx
mov dl, ch
xor edx, esi
shl ecx, 8
mov ax, word [edx*2 + 0x10019304]
mov ebx, eax
xor ebx, ecx
dec ebp
jne 0x10009690
pop ebp
mov eax, edi
shr eax, 3
dec eax
je 0x10009792
dec eax
je 0x10009767
dec eax
jne 0x100097c0
lea ecx, [esp + 0x10]
push 8
push ecx
call fcn.100095c0
xor edx, edx
and eax, 0xff
mov dl, bh
xor ecx, ecx
xor eax, edx
add esp, 8
shl ebx, 8
mov cx, word [eax*2 + 0x10019304]
mov edx, ecx
xor ebx, edx
lea eax, [esp + 0x10]
push 8
push eax
call fcn.100095c0
xor ecx, ecx
and eax, 0xff
mov cl, bh
xor edx, edx
xor eax, ecx
add esp, 8
shl ebx, 8
mov dx, word [eax*2 + 0x10019304]
mov eax, edx
xor ebx, eax
lea ecx, [esp + 0x10]
push 8
push ecx
call fcn.100095c0
xor edx, edx
and eax, 0xff
mov dl, bh
xor ecx, ecx
xor eax, edx
add esp, 8
shl ebx, 8
mov cx, word [eax*2 + 0x10019304]
mov edx, ecx
xor ebx, edx
and edi, 7
mov eax, edi
dec edi
test eax, eax
je 0x100097ef
lea esi, [edi + 1]
lea ecx, [esp + 0x10]
push 1
push ecx
call fcn.100095c0
mov edx, ebx
add esp, 8
shr edx, 0xf
xor eax, edx
shl ebx, 1
test al, 1
je 0x100097ec
xor ebx, 0x8005
dec esi
jne 0x100097ca
pop edi
mov ax, bx
pop esi
pop ebx
ret
Function at 0x6b2610
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x188000]
push edi
jmp 0x6b262a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x6b2631
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x6b2620
mov eax, 1
add ebx, ebx
jne 0x6b2643
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x6b2654
jne 0x6b2673
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x6b2673
dec eax
add ebx, ebx
jne 0x6b2660
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x6b2638
add ebx, ebx
jne 0x6b266f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x6b26c5
xor ecx, ecx
sub eax, 3
jb 0x6b268b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x6b26fa
sar eax, 1
mov ebp, eax
jmp 0x6b2696
add ebx, ebx
jne 0x6b2696
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x6b2664
inc ecx
add ebx, ebx
jne 0x6b26a4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x6b2664
add ebx, ebx
jne 0x6b26b1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x6b26a6
jne 0x6b26c2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x6b26a6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x6b26e4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x6b26d6
jmp 0x6b2626
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x6b26e4
add edi, ecx
jmp 0x6b2626
pop esi
mov edi, esi
mov ecx, 0x8f5a
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x6b2702
cmp byte [edi], 0x16
jne 0x6b2702
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 0x6b2707
lea edi, [esi + 0x2a6000]
mov eax, dword [edi]
or eax, eax
je 0x6b277f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x347020]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x347240]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x6b2734
mov ecx, edi
jns 0x6b2763
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 + 0x347248]
or eax, eax
je 0x6b2779
mov dword [ebx], eax
add ebx, 4
jmp 0x6b2751
call dword [esi + 0x347244]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x6b27b0
cmp al, 0xef
ja 0x6b27a3
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x6b2785
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x6b2792
mov ebp, dword [esi + 0x34724c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x267]
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 0x6b27e4
sub esp, 0xffffff80
jmp 0x4e2757
Function at 0x4059c0
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov esi, eax
cmp esi, 0xffffffff
jne 0x405a71
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword fs:[0x2c]
mov edi, eax
mov edx, dword [ecx]
mov ecx, dword [0x63de00]
cmp ecx, dword [edx + 4]
jle 0x405a1f
push 0x63de00
call fcn.00570fc1
add esp, 4
cmp dword [0x63de00], esi
jne 0x405a1f
call fcn.00404b60
push 0x63de00
call fcn.00570f82
add esp, 4
mov ecx, dword [0x63de28]
mov eax, dword [0x63de2c]
mov dword [ebp - 0xc], edi
cmp ecx, 0x25c5e09b
jne 0x405a3c
cmp eax, 0x8fafd21e
je 0x405a4b
cmp ecx, 0x257edf0d
jne 0x405a52
cmp eax, 0xb2ab117a
jne 0x405a52
test edi, edi
setne al
jmp 0x405a62
mov eax, dword [0x63de20]
mov ecx, 0x63de20
push edi
mov eax, dword [eax + 0x18]
call eax
mov byte [ebp - 8], al
mov dword [ebp - 4], 0x63de20
pop edi
test al, al
jne 0x405a78
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
mov edx, 0x6036a4
lea ecx, [ebp - 0xc]
call fcn.00405810
int3

Function at 0x405a90
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x198
mov eax, dword [0x62cfe8]
xor eax, esp
mov dword [esp + 0x194], eax
push 0x63ddf8
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
cmp eax, 1
jne 0x405ad2
lea eax, [esp]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
push eax
push 0x63ddfc
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov ecx, dword [esp + 0x194]
xor ecx, esp
call fcn.00570e5f
mov esp, ebp
pop ebp
ret

Function at 0x405e10
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
xor esi, esi
push 0
push 0xff
call fcn.00405c70
mov byte [esi + edi], al
add esp, 8
inc esi
cmp esi, 8
jb 0x405e21
xor esi, esi
nop dword [eax + eax]
xor byte [esi + ebx], 0x40
mov eax, esi
and eax, 7
mov ecx, esi
and ecx, 0x1ff
mov dl, byte [eax + edi]
xor dl, byte [esi + ebx]
mov byte [esi + ebx], dl
mov al, byte [eax + edi]
add al, dl
xor al, byte [ecx + 0x603298]
sub al, byte [ecx + 0x602e98]
add al, byte [ecx + 0x602698]
xor al, byte [ecx + 0x602c98]
add al, byte [ecx + 0x602a98]
xor al, byte [ecx + 0x602490]
sub al, byte [ecx + 0x602898]
sub al, byte [ecx + 0x603098]
mov byte [esi + ebx], al
inc esi
cmp esi, 0x40
jl 0x405e40
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x405ea0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov ebx, edx
xor esi, esi
push edi
mov edi, ecx
test ebx, ebx
jle 0x405f2f
mov eax, 0x81020409
imul ebx
add edx, ebx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 4], eax
nop word [eax + eax]
mov ecx, dword [ebp + 8]
mov eax, esi
and eax, 0x1ff
mov dl, byte [eax + 0x603098]
add dl, byte [eax + 0x602898]
add dl, byte [esi + edi]
xor dl, byte [eax + 0x602490]
sub dl, byte [eax + 0x602a98]
xor dl, byte [eax + 0x602c98]
sub dl, byte [eax + 0x602698]
add dl, byte [eax + 0x602e98]
xor dl, byte [eax + 0x603298]
mov eax, esi
and eax, 7
mov byte [esi + edi], dl
add ecx, eax
mov al, byte [ebp - 4]
add al, al
add al, bl
sub dl, byte [ecx]
mov byte [esi + edi], dl
xor al, dl
xor al, byte [ecx]
mov byte [esi + edi], al
inc esi
cmp esi, ebx
jl 0x405ed0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x406860
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, 1
mov dword [0x63deb8], edi
mov dword [0x63debc], ecx
nop dword [eax]
push 0x5851f42d
mov edx, ecx
xor eax, eax
push 0x4c957f2d
shr edx, 0x1e
xor eax, ecx
xor edx, edi
push eax
push edx
call fcn.00571a80
mov edi, eax
mov ecx, edx
mov eax, esi
cdq
add edi, eax
mov dword [esi*8 + 0x63deb8], edi
adc ecx, edx
mov dword [esi*8 + 0x63debc], ecx
inc esi
cmp esi, 0x138
jl 0x406880
pop edi
mov dword [0x63deb0], 0x138
pop esi
pop ebp
ret 0x10
Function at 0x408020
Capabilities:
Enumerate pe sections

Disassembly:
push esi
mov esi, edx
mov eax, 0x40
push edi
mov edi, ecx
mov edx, dword [esi]
and edx, 0x3f
mov byte [edx + esi + 0x18], 0x80
inc edx
sub eax, edx
cmp eax, 8
jae 0x408061
push eax
lea eax, [esi + 0x18]
add eax, edx
push 0
push eax
call fcn.00577700
push 0x40
lea edx, [esi + 0x18]
mov ecx, esi
call fcn.004075a0
add esp, 0x10
mov eax, 0x40
xor edx, edx
add eax, 0xfffffff8
push eax
lea eax, [esi + 0x18]
add eax, edx
push 0
push eax
call fcn.00577700
shl dword [esi], 3
lea edx, [esi + 0x18]
movzx eax, byte [esi]
mov ecx, esi
mov byte [esi + 0x50], al
mov eax, dword [esi]
shr eax, 8
mov byte [esi + 0x51], al
movzx eax, byte [esi + 2]
mov byte [esi + 0x52], al
movzx eax, byte [esi + 3]
mov byte [esi + 0x53], al
movzx eax, byte [esi + 4]
mov byte [esi + 0x54], al
mov eax, dword [esi + 4]
shr eax, 8
mov byte [esi + 0x55], al
movzx eax, byte [esi + 6]
mov byte [esi + 0x56], al
movzx eax, byte [esi + 7]
push 0x40
mov byte [esi + 0x57], al
call fcn.004075a0
movzx eax, byte [esi + 8]
mov byte [edi], al
mov eax, dword [esi + 8]
shr eax, 8
mov byte [edi + 1], al
movzx eax, byte [esi + 0xa]
mov byte [edi + 2], al
movzx eax, byte [esi + 0xb]
mov byte [edi + 3], al
movzx eax, byte [esi + 0xc]
mov byte [edi + 4], al
mov eax, dword [esi + 0xc]
shr eax, 8
mov byte [edi + 5], al
movzx eax, byte [esi + 0xe]
mov byte [edi + 6], al
movzx eax, byte [esi + 0xf]
mov byte [edi + 7], al
movzx eax, byte [esi + 0x10]
mov byte [edi + 8], al
mov eax, dword [esi + 0x10]
shr eax, 8
mov byte [edi + 9], al
movzx eax, byte [esi + 0x12]
mov byte [edi + 0xa], al
movzx eax, byte [esi + 0x13]
mov byte [edi + 0xb], al
movzx eax, byte [esi + 0x14]
mov byte [edi + 0xc], al
mov eax, dword [esi + 0x14]
shr eax, 8
mov byte [edi + 0xd], al
movzx eax, byte [esi + 0x16]
push 0x98
mov byte [edi + 0xe], al
movzx eax, byte [esi + 0x17]
push 0
push esi
mov byte [edi + 0xf], al
call fcn.00577700
add esp, 0x1c
pop edi
pop esi
ret

Function at 0x408150
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xa4
mov eax, dword [0x62cfe8]
xor eax, esp
mov dword [esp + 0xa0], eax
push esi
mov esi, dword [ebp + 8]
push edx
mov edx, ecx
mov dword [esp + 0x14], 0x67452301
lea ecx, [esp + 0xc]
mov dword [esp + 0x18], 0xefcdab89
mov dword [esp + 0x1c], 0x98badcfe
mov dword [esp + 0x20], 0x10325476
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
call fcn.00407f70
add esp, 4
lea edx, [esp + 8]
mov ecx, esi
call fcn.00408020
mov ecx, dword [esp + 0xa4]
pop esi
xor ecx, esp
call fcn.00570e5f
mov esp, ebp
pop ebp
ret
Function at 0x408210
Capabilities:
Hash data with md5
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b3782
mov eax, dword fs:[0]
push eax
sub esp, 0x2b8
mov eax, dword [0x62cfe8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
mov dword [ebp - 0x2c0], esi
push edi
mov dword [ebp - 0x2bc], 0
lea eax, [ebp - 0x220]
push 0x200
push 1
push eax
mov dword [ebp - 0x2c4], esi
mov dword [ebp - 0x2b0], 0x67452301
mov dword [ebp - 0x2ac], 0xefcdab89
mov dword [ebp - 0x2a8], 0x98badcfe
mov dword [ebp - 0x2a4], 0x10325476
mov dword [ebp - 0x2b8], 0
mov dword [ebp - 0x2b4], 0
call fcn.0057e3c3
add esp, 0x10
test eax, eax
je 0x4082dd
nop
push eax
lea edx, [ebp - 0x220]
lea ecx, [ebp - 0x2b8]
call fcn.00407f70
push edi
push 0x200
lea eax, [ebp - 0x220]
push 1
push eax
call fcn.0057e3c3
add esp, 0x14
test eax, eax
jne 0x4082b0
lea edx, [ebp - 0x2b8]
lea ecx, [ebp - 0x20]
call fcn.00408020
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x14], 0xf
cmp dword [esi + 0x14], 0x10
mov dword [esi + 0x10], 0
jb 0x408311
mov eax, dword [esi]
jmp 0x408313
mov eax, esi
mov byte [eax], 0
mov dword [ebp - 4], 0
xor edi, edi
mov dword [ebp - 0x2bc], 1
nop dword [eax]
mov bh, byte [ebp + edi - 0x20]
mov ecx, dword [esi + 0x14]
mov al, bh
shr al, 4
cmp al, 0xa
sbb bl, bl
add al, 0x57
and bl, 0xd9
add bl, al
mov eax, dword [esi + 0x10]
cmp eax, ecx
jne 0x40837e
inc eax
cmp eax, 0xfffffffe
ja 0x408424
cmp ecx, eax
jae 0x408369
push dword [esi + 0x10]
mov ecx, esi
push eax
call fcn.00406b20
jmp 0x40837e
test eax, eax
jne 0x40837e
mov dword [esi + 0x10], eax
cmp ecx, 0x10
jb 0x408379
mov eax, dword [esi]
jmp 0x40837b
mov eax, esi
mov byte [eax], 0
cmp dword [esi + 0x14], 0x10
jb 0x408388
mov ecx, dword [esi]
jmp 0x40838a
mov ecx, esi
mov eax, dword [esi + 0x10]
and bh, 0xf
mov byte [ecx + eax], bl
inc dword [esi + 0x10]
cmp bh, 0xa
mov eax, dword [esi + 0x10]
sbb bl, bl
and bl, 0xd9
add bl, 0x57
mov byte [eax + ecx], 0
add bl, bh
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0x14]
cmp eax, ecx
jne 0x4083e0
inc eax
cmp eax, 0xfffffffe
ja 0x408424
cmp ecx, eax
jae 0x4083cb
push dword [esi + 0x10]
mov ecx, esi
push eax
call fcn.00406b20
jmp 0x4083e0
test eax, eax
jne 0x4083e0
mov dword [esi + 0x10], eax
cmp ecx, 0x10
jb 0x4083db
mov eax, dword [esi]
jmp 0x4083dd
mov eax, esi
mov byte [eax], 0
cmp dword [esi + 0x14], 0x10
jb 0x4083ea
mov ecx, dword [esi]
jmp 0x4083ec
mov ecx, esi
mov eax, dword [esi + 0x10]
inc edi
mov byte [ecx + eax], bl
inc dword [esi + 0x10]
mov eax, dword [esi + 0x10]
mov byte [eax + ecx], 0
cmp edi, 0x10
jb 0x408330
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00570e5f
mov esp, ebp
pop ebp
ret
push 0x602444
call fcn.00572293
int3