joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41f98e
Capabilities:
Find taskbar
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov ebx, ecx
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
cmp ebx, esi
jne 0x45f467
xor eax, eax
inc eax
pop esi
pop ebx
leave
ret
push edi
xor edi, edi
test esi, esi
jne 0x45f47c
push edi
push str.Shell_TrayWnd
call dword [sym.imp.USER32.dll_FindWindowW]
mov esi, eax
push ebx
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
je 0x45f490
push 9
push ebx
call dword [sym.imp.USER32.dll_ShowWindow]
push ebx
mov dword [ebp - 0x10], edi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
test eax, eax
jne 0x45f56b
push edi
push esi
mov esi, dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
call esi
mov edi, eax
mov dword [ebp - 0xc], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 0
push ebx
mov dword [ebp - 4], eax
call esi
mov esi, dword [sym.imp.USER32.dll_AttachThreadInput]
push 1
push eax
push dword [ebp - 4]
mov dword [ebp - 8], eax
call esi
push 1
push edi
push dword [ebp - 4]
call esi
push 1
push dword [ebp - 8]
push edi
call esi
push ebx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
test eax, eax
jne 0x45f547
mov edi, dword [sym.imp.USER32.dll_MapVirtualKeyW]
push eax
push eax
push eax
push 0x12
call edi
mov esi, dword [sym.imp.USER32.dll_keybd_event]
push eax
push 0x12
call esi
push 0
push 2
push 0
push 0x12
call edi
push eax
push 0x12
call esi
xor eax, eax
push eax
push eax
push eax
push 0x12
call edi
push eax
push 0x12
call esi
push 0
push 2
push 0
push 0x12
call edi
push eax
push 0x12
call esi
push ebx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov esi, dword [sym.imp.USER32.dll_AttachThreadInput]
mov edi, dword [ebp - 0xc]
test eax, eax
je 0x45f54c
push 4
jmp 0x45f549
push 3
pop ebx
jmp 0x45f54f
mov ebx, dword [ebp - 0x10]
push 0
push dword [ebp - 8]
push dword [ebp - 4]
call esi
push 0
push edi
push dword [ebp - 4]
call esi
push 0
push dword [ebp - 8]
push edi
call esi
jmp 0x45f56e
push 2
pop ebx
mov eax, ebx
pop edi
jmp 0x41f9ab

Function at 0x4271d1
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x18]
test edi, edi
je 0x42722e
mov eax, dword [edi + 0x3c]
xor esi, esi
mov ecx, dword [eax + edi + 0x78]
mov eax, dword [ecx + edi + 0x20]
add ecx, edi
add eax, edi
mov dword [esp + 0x10], ecx
mov dword [esp + 0x18], eax
mov ebp, dword [ecx + 0x18]
test ebp, ebp
je 0x42722e
mov ebx, dword [esp + 0x1c]
mov ch, byte [ebx]

Function at 0x427261
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0x30]
mov ecx, dword [esp + 4]
add al, 0x53
Function at 0x4272e1
Capabilities:
Access peb ldr_data
Get number of processors
Terminate process

Disassembly:
push ecx
mov eax, dword fs:[0x30]
push ebx
push ebp
push esi
mov eax, dword [eax + 0xc]
add eax, 0xc
push edi
mov eax, dword [eax]
mov esi, dword [eax + 0x30]
test esi, esi
je 0x4272f2
mov ebp, dword [eax + 0x18]
mov eax, dword [0x4cc204]
push 0
push eax
call fcn.00427261
mov edi, dword [0x4cc208]
add esp, 8
mov ebx, eax
mov edx, dword [edi]
test edx, edx
je 0x427363
movzx eax, word [esi]
xor ecx, ecx
test ax, ax
je 0x42732e
inc ecx
cmp word [esi + ecx*2], 0
jne 0x427326
cmp cl, dl
je 0x42733b
cmp cl, byte [edi + 1]
jne 0x427433
xor edx, edx
xor ecx, ecx
test ax, ax
je 0x427355
movzx eax, ax
lea ecx, [ecx + 1]
add edx, eax
movzx eax, word [esi + ecx*2]
test ax, ax
jne 0x427344
cmp edx, dword [edi + 4]
je 0x427363
cmp edx, dword [edi + 8]
jne 0x427433
mov eax, dword [0x4cc20c]
push eax

Function at 0x427369
Capabilities:
Terminate process

Disassembly:
push 0
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
xor edx, edx
mov esi, eax
cmp dword [0x4cc1ec], edx
jbe 0x4273a0

Function at 0x427391
Capabilities:
Terminate process

Disassembly:
mov ecx, dword [str.VirtualProtect]
mov ecx, dword [ecx + edx]
mov dword [edx + esi], ecx
mov eax, dword [0x4cc1e8]
add edx, eax
cmp edx, dword [0x4cc1ec]
jb 0x427385
push esi
push ebx
call fcn.004271d1
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x427433
mov esi, dword [0x4cc1e4]

Function at 0x4273ba
Capabilities:
Terminate process

Disassembly:
lea eax, [esp + 0x10]
mov ecx, dword [0x4cc1ec]
push eax
push ecx
mov ecx, dword [0x4cc1f0]
push ecx
push esi
call ebx
mov edx, dword [0x4cc1f8]
mov ecx, 8
mov edi, dword [edx + ebp + 4]
add edx, ebp
cmp dword [0x4cc1f0], ecx
jbe 0x427400
mov eax, dword [edx + ecx]
add eax, edi
mov dword [esi + ecx], eax
mov eax, dword [0x4cc1e8]
add ecx, eax
cmp ecx, dword [0x4cc1f0]
jb 0x4273e9
mov eax, dword [0x4cc210]
mov dword [esi + 8], eax
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x14]
mov eax, dword [0x4cc1f0]
push eax
push esi
call ebx
mov eax, dword [0x4cc21c]
mov ecx, dword [esi + 0xc]
add ecx, eax
mov eax, dword [0x4cc21c]
add ecx, esi
add esi, eax
push esi
call ecx
add esp, 4
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x43927b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004390fa

Function at 0x43d1d0
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0043ce90
Function at 0x40490d
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push esi
push edi
push 0x5c
lea esi, [ebp - 0x208]
pop edi
push dword [ebp + 8]
lea eax, [ebp - 0x208]
push eax
call fcn.00404de4
lea eax, [ebp - 0x208]
push 0x2f
push eax
call fcn.00404d85
add esp, 0x10
jmp 0x404956
mov word [eax], di
lea eax, [ebp - 0x208]
push 0x2f
push eax
call fcn.00404d85
pop ecx
pop ecx
test eax, eax
jne 0x404943
push edi
push esi
call fcn.00404d85
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x404971
xor eax, eax
mov word [esi], ax
add esi, 2
push 0
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test esi, esi
jne 0x404921
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x404a3d
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c0
cmp byte [ebp + 0xc], 0
je 0x404b42
push dword [ebp + 8]
lea eax, [ebp - 0x18]
push eax
call fcn.0040488f
pop ecx
pop ecx
push 0x40535c
lea ecx, [ebp - 0x10]
call fcn.004045e2
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 8]
push eax
call fcn.004047bd
add esp, 0xc
mov ecx, eax
call fcn.004047b6
push eax
lea ecx, [ebp - 0x4c0]
call fcn.004045b7
lea ecx, [ebp - 8]
call fcn.004046ce
lea ecx, [ebp - 0x10]
jmp 0x404b10
lea eax, [ebp - 0x23c]
push eax
lea ecx, [ebp - 8]
call fcn.0040465a
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.004047bd
add esp, 0xc
test byte [ebp - 0x268], 0x10
je 0x404afb
push 0x405360
lea ecx, [ebp - 8]
call fcn.0040475f
test al, al
je 0x404b05
push 0x405364
lea ecx, [ebp - 8]
call fcn.0040475f
test al, al
je 0x404b05
lea eax, [ebp - 0x10]
push 1
push eax
call fcn.00404a3d
pop ecx
jmp 0x404b04
lea eax, [ebp - 0x10]
push eax
call fcn.00404a2c
pop ecx
lea ecx, [ebp - 0x10]
call fcn.004046ce
lea ecx, [ebp - 8]
call fcn.004046ce
lea eax, [ebp - 0x268]
push eax
lea ecx, [ebp - 0x4c0]
call fcn.004049e9
test al, al
jne 0x404a9f
lea ecx, [ebp - 0x4c0]
call fcn.004046c0
lea ecx, [ebp - 0x18]
call fcn.004046ce
mov ecx, dword [ebp + 8]
call fcn.004047b6
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov esp, ebp
pop ebp
ret
Function at 0x4c0025
Capabilities:
Allocate or change rwx memory

Disassembly:
pushal
pushfd
push 0x4c0005
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push 0x4c0012
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4c0046], eax
jmp 0x4c004a
push 0x4c005c
push 0x40
push 0x10
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
jmp 0x4c0060
mov eax, dword [0x4c0046]
mov byte [eax], 0x68
mov dword [eax + 1], 0x4c007a
mov byte [eax + 5], 0xc3
popfd
popal
jmp 0x4c00cf
pushal
pushfd
mov eax, dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov dword [0x4c00cb], eax
mov dword [sym.imp.KERNEL32.dll_VirtualProtect], reloc.KERNEL32.dll_VirtualProtect
popfd
popal
push section..adata
ret
Function at 0x4dfa80
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x85000]
push edi
jmp 0x4dfa9a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4dfaa1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4dfa90
mov eax, 1
add ebx, ebx
jne 0x4dfab3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4dfac4
jne 0x4dfae3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4dfae3
dec eax
add ebx, ebx
jne 0x4dfad0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4dfaa8
add ebx, ebx
jne 0x4dfadf
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4dfb35
xor ecx, ecx
sub eax, 3
jb 0x4dfafb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4dfb6a
sar eax, 1
mov ebp, eax
jmp 0x4dfb06
add ebx, ebx
jne 0x4dfb06
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4dfad4
inc ecx
add ebx, ebx
jne 0x4dfb14
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4dfad4
add ebx, ebx
jne 0x4dfb21
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4dfb16
jne 0x4dfb32
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4dfb16
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4dfb54
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4dfb46
jmp 0x4dfa96
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4dfb54
add edi, ecx
jmp 0x4dfa96
pop esi
mov edi, esi
mov ecx, 0x3ed9
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4dfb72
cmp byte [edi], 0x11
jne 0x4dfb72
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 0x4dfb77
lea edi, [esi + 0xd8000]
mov eax, dword [edi]
or eax, eax
je 0x4dfbef
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xe15b8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xe175c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4dfba4
mov ecx, edi
jns 0x4dfbd3
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 + 0xe1764]
or eax, eax
je 0x4dfbe9
mov dword [ebx], eax
add ebx, 4
jmp 0x4dfbc1
call dword [esi + 0xe1760]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x4dfc20
cmp al, 0xef
ja 0x4dfc13
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x4dfbf5
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x4dfc02
mov ebp, dword [esi + 0xe1768]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x227]
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 0x4dfc54
sub esp, 0xffffff80
jmp 0x425f74
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x407ef8
nop
mov ecx, 0x968291b
nop
nop
nop
nop
nop
test eax, eax
nop
je 0x42e04e
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x42e024
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x42cd70
mov ecx, 0x3bae2d33
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x42e084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x42e06c
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

Function at 0x432003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
mov eax, section..rsrc
mov ebx, 0x40c7d0
nop
nop
mov ecx, 0x69774141
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x43204e
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x432024
nop
nop
nop
mov eax, section..data
mov ebx, 0x42f314
nop
nop
mov ecx, 0x6c203817
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x432084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
nop
jne 0x43206c
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x4012e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
xor ecx, ecx
push edi
mov dword [0x4e9f90], ecx
mov dword [ebp - 4], ecx
mov edi, 0x85dd90
mov eax, dword [edi - 0xfd0]
test eax, eax
je 0x4013ae
mov eax, dword [edi + 8]
test eax, eax
jne 0x4013ae
mov eax, dword [edi]
cmp eax, 0xffffffff
je 0x401331
mov edx, eax
shl edx, 7
add edx, eax
mov ecx, eax
lea eax, [eax + edx*4]
mov eax, dword [eax*8 + 0x85dd90]
cmp eax, 0xffffffff
jne 0x401319
mov edx, ecx
shl edx, 7
add edx, ecx
lea esi, [ecx + edx*4]
shl esi, 3
mov eax, dword [esi + 0x85dd94]
test eax, eax
jne 0x4013a4
call fcn.0044d99b
mov ecx, eax
shl ecx, 0x11
or ecx, eax
or ecx, 0x11111111
mov dword [esi + 0x85dd94], ecx
mov eax, dword [esi + 0x85cdd4]
mov esi, dword [esi + 0x85cdc0]
test esi, esi
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], esi
je 0x4013a4
cmp eax, 4
jb 0x4013a4
mov esi, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov edx, esi
mov ebx, dword [ebp - 8]
and edx, 3
sub ecx, edx
add esi, edx
shr ecx, 2
je 0x4013a4
ror ebx, 1
mov eax, dword [esi]
add esi, 4
xor eax, ebx
dec ecx
mov dword [esi - 4], eax
jne 0x401395
mov dword [0x4e9f90], 1
mov ecx, dword [ebp - 4]
inc ecx
add edi, 0x1028
cmp edi, 0xc509f8
mov dword [ebp - 4], ecx
jl 0x4012f9
mov eax, dword [0x4e9f94]
test eax, eax
jne 0x4014b4
mov eax, dword [0xc51e28]
test eax, eax
je 0x4014b4
call fcn.0044d99b
mov esi, eax
shl esi, 0x11
call fcn.0044d99b
or esi, eax
mov eax, dword [0xc51e28]
or esi, 1
test eax, eax
mov edi, 0xfa0
mov dword [0x4e9f94], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], eax
je 0x40143e
mov esi, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
mov edx, esi
mov ebx, dword [ebp - 0x10]
and edx, 3
sub ecx, edx
add esi, edx
shr ecx, 2
je 0x401438
ror ebx, 1
mov eax, dword [esi]
add esi, 4
xor eax, ebx
dec ecx
mov dword [esi - 4], eax
jne 0x401429
mov esi, dword [0x4e9f94]
mov eax, dword [0xc51e2c]
test eax, eax
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], eax
je 0x40147c
mov esi, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
mov edx, esi
mov ebx, dword [ebp - 0x10]
and edx, 3
sub ecx, edx
add esi, edx
shr ecx, 2
je 0x401476
ror ebx, 1
mov eax, dword [esi]
add esi, 4
xor eax, ebx
dec ecx
mov dword [esi - 4], eax
jne 0x401467
mov esi, dword [0x4e9f94]
mov eax, dword [0x836f54]
test eax, eax
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], eax
je 0x4014b4
mov esi, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
mov edx, esi
mov ebx, dword [ebp - 0x10]
and edx, 3
sub ecx, edx
add esi, edx
shr ecx, 2
je 0x4014b4
ror ebx, 1
mov eax, dword [esi]
add esi, 4
xor eax, ebx
dec ecx
mov dword [esi - 4], eax
jne 0x4014a5
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4014c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x4e9f90]
test eax, eax
push ebx
push esi
push edi
je 0x40159e
xor edi, edi
mov edx, 0x85dd90
mov dword [ebp - 4], edi
mov dword [ebp - 8], edx
mov eax, dword [edx - 0xfd0]
test eax, eax
je 0x401578
mov eax, dword [edx]
cmp eax, 0xffffffff
je 0x401510
mov ecx, eax
shl ecx, 7
add ecx, eax
mov edi, eax
lea eax, [eax + ecx*4]
mov eax, dword [eax*8 + 0x85dd90]
cmp eax, 0xffffffff
jne 0x4014f8
mov ecx, edi
shl ecx, 7
add ecx, edi
lea edi, [edi + ecx*4]
shl edi, 3
mov eax, dword [edi + 0x85dd94]
test eax, eax
je 0x401578
mov ecx, dword [edi + 0x85cdd4]
mov dword [ebp - 0xc], eax
mov eax, dword [edi + 0x85cdc0]
test eax, eax
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], eax
je 0x40156e
cmp ecx, 4
jb 0x40156e
mov esi, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
mov edx, esi
mov ebx, dword [ebp - 0xc]
and edx, 3
sub ecx, edx
add esi, edx
shr ecx, 2
je 0x40156b
ror ebx, 1
mov eax, dword [esi]
add esi, 4
xor eax, ebx
dec ecx
mov dword [esi - 4], eax
jne 0x40155c
mov edx, dword [ebp - 8]
mov dword [edi + 0x85dd94], 0
mov edi, dword [ebp - 4]
add edx, 0x1028
inc edi
cmp edx, 0xc509f8
mov dword [ebp - 4], edi
mov dword [ebp - 8], edx
jl 0x4014e3
mov dword [0x4e9f90], 0
mov eax, dword [0x4e9f94]
test eax, eax
je 0x40166e
mov ecx, dword [0xc51e28]
test ecx, ecx
mov edi, 0xfa0
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], ecx
je 0x4015ee
mov esi, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
mov edx, esi
mov ebx, dword [ebp - 0x14]
and edx, 3
sub ecx, edx
add esi, edx
shr ecx, 2
je 0x4015e9
ror ebx, 1
mov eax, dword [esi]
add esi, 4
xor eax, ebx
dec ecx
mov dword [esi - 4], eax
jne 0x4015da
mov eax, dword [0x4e9f94]
mov ecx, dword [0xc51e2c]
test ecx, ecx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], ecx
je 0x40162c
mov esi, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
mov edx, esi
mov ebx, dword [ebp - 0x14]
and edx, 3
sub ecx, edx
add esi, edx
shr ecx, 2
je 0x401627
ror ebx, 1
mov eax, dword [esi]
add esi, 4
xor eax, ebx
dec ecx
mov dword [esi - 4], eax
jne 0x401618
mov eax, dword [0x4e9f94]
mov dword [ebp - 0x14], eax
mov eax, dword [0x836f54]
test eax, eax
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], eax
je 0x401664
mov esi, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
mov edx, esi
mov ebx, dword [ebp - 0x14]
and edx, 3
sub ecx, edx
add esi, edx
shr ecx, 2
je 0x401664
ror ebx, 1
mov eax, dword [esi]
add esi, 4
xor eax, ebx
dec ecx
mov dword [esi - 4], eax
jne 0x401655
mov dword [0x4e9f94], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x404210
Capabilities:
Create thread

Disassembly:
mov eax, dword [esp + 8]
push esi
push 0
push 0x4ec15c
push 0x500
push eax
call fcn.0048cf90
test eax, eax
je 0x40422f
xor eax, eax
pop esi
ret
mov eax, dword [0x4ec15c]
mov ecx, dword [eax]
push 0
push 0x4ec160
push 0x4ab8e0
push eax
call dword [ecx + 0xc]
test eax, eax
je 0x40424e
xor eax, eax
pop esi
ret
mov eax, dword [0x4ec160]
mov edx, dword [eax]
push 0x4ab958
push eax
call dword [edx + 0x2c]
test eax, eax
je 0x404266
xor eax, eax
pop esi
ret
mov eax, dword [0x4ec160]
mov esi, dword [esp + 8]
mov ecx, dword [eax]
push 6
push esi
push eax
call dword [ecx + 0x34]
test eax, eax
je 0x404280
xor eax, eax
pop esi
ret
mov eax, dword [0x4ec15c]
mov edx, dword [eax]
push 0
push 0x4ec164
push 0x4ab8f0
push eax
call dword [edx + 0xc]
test eax, eax
je 0x40429f
xor eax, eax
pop esi
ret
mov eax, dword [0x4ec164]
mov ecx, dword [eax]
push 0x4ab940
push eax
call dword [ecx + 0x2c]
test eax, eax
je 0x4042b7
xor eax, eax
pop esi
ret
mov eax, dword [0x4ec164]
mov edx, dword [eax]
push 6
push esi
push eax
call dword [edx + 0x34]
test eax, eax
je 0x4042cd
xor eax, eax
pop esi
ret
cmp dword [0x4c2d74], 2
jne 0x404384
push 0
push 0
push 0
push 0
call dword [0x4a4170]
test eax, eax
mov dword [0x4ec168], eax
jne 0x4042f3
pop esi
ret
mov ecx, dword [0x4ec164]
mov edx, dword [ecx]
push eax
push ecx
call dword [edx + 0x30]
test eax, eax
je 0x404308
xor eax, eax
pop esi
ret
mov eax, 0x10
push 0x4ec148
mov dword [0x4ec14c], eax
mov dword [0x4ec158], eax
mov eax, dword [0x4ec164]
push 1
mov dword [0x4ec148], 0x14
mov dword [0x4ec150], 0
mov dword [0x4ec154], 0
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
test eax, eax
je 0x40434f
xor eax, eax
pop esi
ret
push 0x4ec140
push 0
push 0x4ec148
push 0x404110
push 0
push 0
call fcn.0044e25b
add esp, 0x18
test eax, eax
mov dword [0x4ec16c], eax
jne 0x404377
pop esi
ret
push 0x17
call dword [0x4a43bc]
mov dword [0x4ec144], eax
mov eax, dword [0x4ec160]
mov edx, dword [eax]
push eax
call dword [edx + 0x1c]
mov eax, dword [0x4ec164]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x1c]
mov eax, 1
pop esi
ret