joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4047a0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x573500
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x5dee94]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 2
call fcn.0045b7fd
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4047e6
push 0x80004005
call fcn.00401000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x10], eax
fld dword [ebp + 0x14]
sub esp, 8
fstp qword [esp]
lea ecx, [ebp - 0x10]
push 0x5896ac
push ecx
mov byte [ebp - 4], 3
call fcn.00402fb0
mov esi, dword [ebp - 0x10]
mov eax, dword [esi - 8]
mov edi, dword [ebp + 0x10]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x104
add esp, 0x10
or eax, ecx
jge 0x40483d
push 0x104
lea ecx, [ebp - 0x10]
call fcn.00401380
mov esi, dword [ebp - 0x10]
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push edi
push 0x104
push esi
push esi
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov eax, dword [esi - 8]
push eax
push esi
call fcn.0055989f
add esp, 8
test eax, eax
js 0x404924
cmp eax, dword [esi - 8]
jg 0x404924
mov dword [esi - 0xc], eax
push esi
mov byte [eax + esi], 0
call fcn.00559e5c
fstp dword [ebp - 0x10]
lea eax, [esi - 0x10]
add esp, 4
mov byte [ebp - 4], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4048a4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4048c7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4048ea
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404910
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
fld dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00401000
int3
Function at 0x404e50
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x5dee94]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0x14]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x10], eax
xor eax, eax
lea edi, [esi + 0x10]
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], eax
call ebx
mov edx, dword [esi + 8]
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x18]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ClearCommError]
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [ebp - 0xc], 0
je 0x404f58
nop
push edi
call ebx
mov edx, dword [esi + 8]
lea eax, [esi + 0x40]
push eax
lea eax, [ebp - 0x1c]
push eax
push 1
lea ecx, [ebp - 0x11]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x404f0a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x18], eax
cmp eax, 0x3e5
je 0x404ee6
push str.ReadFile__
jmp 0x404f03
mov ecx, dword [esi + 8]
push 1
lea eax, [ebp - 0x1c]
push eax
lea eax, [esi + 0x40]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
jne 0x404f0a
push str.GetOverlappedResults___in_ReadFile__
mov ecx, esi
call fcn.00404d10
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edx, dword [esi + 0x88]
movzx eax, byte [ebp - 0x11]
mov ecx, dword [esi + 0x84]
push edx
mov edx, dword [ecx + 0x20]
push eax
push 0x407
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
push edi
call ebx
mov edx, dword [esi + 8]
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x18]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ClearCommError]
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [ebp - 0xc], 0
jne 0x404eb0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00559da2
mov esp, ebp
pop ebp
ret
Function at 0x45c5b8
Capabilities:
Connect socket

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ecx + 4]
call dword [sym.imp.WS2_32.dll_connect]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop ebp
ret 8

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

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.00462546
call fcn.00412670
cmp eax, esi
pop esi
jne 0x45d244
mov ecx, 0x5e21b0
jmp fcn.00475ded
ret

Function at 0x45de6f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor ebx, ebx
call fcn.0046e9a3
mov esi, dword [eax + 0xc]
push 5
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x45dea8
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov ecx, dword [ebp - 4]
push esi
push dword [ebp + 0xc]
push ebx
call fcn.0045dab1
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8

Function at 0x45df06
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x78], ebx
test ebx, 0xffff0000
jne 0x45df2a
cmp dword [edi + 0x74], 0
jne 0x45df2a
movzx eax, bx
mov dword [edi + 0x74], eax
call fcn.0046e9a3
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.0045dec7
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x46418e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x4641d5
call fcn.0046e9a3
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x4641d5
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x4641f1
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.00463c93
mov esi, eax
test edi, edi
je 0x4641ef
test ebx, ebx
je 0x4641ef
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x466fc7
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x57f79c
call fcn.0055bb3b
mov esi, ecx
cmp dword [esi + 0x6c], 0
jne 0x466fec
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x46703e
call fcn.0045b7fd
push eax
lea ecx, [ebp - 0x10]
call fcn.00401350
mov ecx, dword [esi + 0x6c]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0055b96d
push eax
call fcn.00403a20
add esp, 0x14
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.004010d0
mov eax, esi
call fcn.0055bc13
ret 8

Function at 0x4692a2
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push dword [ebp + 0xc]
mov ecx, esi
call fcn.00468c5b
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x4692ec
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.0045b6f7
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.00404430
jmp 0x4692f7
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.00476e33
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x4692fd
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 4]
lea eax, [ebp + 8]
push eax
push dword [ebp + 0xc]
call fcn.004668b9
push 0xfffffffffffffff0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowLongA]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x46933a
call fcn.00468c5b
mov dword [esi + 0xc], 1
jmp 0x46933f
call fcn.00468c5b
cmp dword [esi], 0
je 0x469388
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
test eax, eax
jle 0x469360
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.0045b6f7
jmp 0x469372
mov ecx, dword [ebp + 0x10]
push 0xff
call fcn.00401510
push 0x100
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.00404430
jmp 0x4693ac
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageA]
cmp eax, 0xffffffff
jne 0x4693ac
push dword [esi]
push dword [ebp + 8]
call fcn.00476e33
pop esi
pop ebp
ret 0xc
Function at 0x46d644
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x46d68c
call fcn.0046e9a3
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x46d68c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x46d6cf
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x46d6b8
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x46d6b8
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x68], 0
je 0x46d6cc
mov ecx, dword [esi + 0x68]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x4c5bba
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp - 4], ecx
test esi, esi
jne 0x4c5bd4
call fcn.0046e9a3
mov esi, dword [eax + 0xc]
push dword [0x5e3e5c]
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x4c5bf2
xor eax, eax
pop edi
pop esi
leave
ret 8
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp + 0xc], eax
test eax, eax
je 0x4c5bea
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x4c5c1f
xor esi, esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop ebx
jmp 0x4c5bec
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push ebx
call fcn.004c5ae8
mov esi, eax
jmp 0x4c5c11
Function at 0x54041c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
test byte [esi + 4], 1
push edi
mov ebx, ecx
je 0x540434
mov edi, dword [esi + 0xc]
jmp 0x540474
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x54044d
call fcn.004647fa
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x540462
call fcn.004647fa
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x540474
call fcn.004647fa
call fcn.0046e9a3
cmp dword [eax + 0x3c], 0
je 0x540489
push edi
mov ecx, ebx
call fcn.0053f2e2
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.00540336
mov dword [ebp + 8], eax
mov eax, dword [ebx + 0x7c]
test eax, eax
je 0x5404a7
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
and dword [ebx + 0x7c], 0
mov eax, dword [ebp + 8]
test eax, eax
je 0x5404b3
mov edi, eax
mov dword [ebx + 0x7c], eax
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x559da2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x5dee94]
jne 0x559dac
repz ret
jmp fcn.005639cc
Function at 0x56fc8d
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x5dee94]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00562131
and dword [ebp - 0x14], 0
cmp dword [0x5e6754], 0
mov dword [ebp - 0x18], eax
jne 0x56fd40
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x56fde8
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x56fde8
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x5b6c60
push ebx
mov dword [0x5e6754], eax
call edi
push eax
call esi
push 0x5b6c4c
push ebx
mov dword [0x5e6758], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x5e675c], eax
call edi
push eax
call esi
mov dword [0x5e6764], eax
test eax, eax
je 0x56fd40
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x5e6760], eax
mov eax, dword [0x5e6760]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x56fd99
cmp dword [0x5e6764], ecx
je 0x56fd99
push eax
call esi
push dword [0x5e6764]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x56fd99
test ebx, ebx
je 0x56fd99
call edi
test eax, eax
je 0x56fd90
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x56fd90
test byte [ebp - 8], 1
jne 0x56fd99
or dword [ebp + 0x10], 0x200000
jmp 0x56fdcc
mov eax, dword [0x5e6758]
cmp eax, dword [ebp - 0x18]
je 0x56fdcc
push eax
call esi
test eax, eax
je 0x56fdcc
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x56fdcc
mov eax, dword [0x5e675c]
cmp eax, dword [ebp - 0x18]
je 0x56fdcc
push eax
call esi
test eax, eax
je 0x56fdcc
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x5e6754]
call esi
test eax, eax
je 0x56fde8
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x56fdea
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00559da2
leave
ret
Function at 0x4107a0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x324
mov eax, dword [0x51eed4]
xor eax, esp
mov dword [esp + 0x320], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0xc]
push esi
mov ecx, eax
push edi
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0xffffffff
lea esi, [ecx + 1]
lea esp, [esp]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x4107e0
sub ecx, esi
je 0x410934
mov ecx, eax
lea esi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x4107f4
sub ecx, esi
lea edx, [esp + 0x24]
mov dword [esp + 0x20], ecx
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x410807
mov edi, dword [ebp + 0x10]
cmp edi, 0x200
mov eax, 0x200
jl 0x410823
mov eax, edi
push eax
call fcn.004c1f63
mov ecx, dword [esp + 0x1c]
add esp, 4
push 0
push 0x80
push 3
push 0
push 3
push SysReAllocString
push ecx
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x41092b
push 0
push 0
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x410886
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x320]
xor ecx, esp
call fcn.004be1d6
mov esp, ebp
pop ebp
ret
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea edx, [esp + 0x14]
push edx
push 0x200
push ebx
push esi
call edi
cmp eax, 1
jne 0x4108c0
cmp dword [esp + 0x20], 0
mov eax, 3
jbe 0x4108ba
push ebx
lea ecx, [esp + 0x24]
call fcn.00413880
add esp, 4
mov dword [esp + 0x14], eax
jmp 0x4108c8
mov dword [esp + 0x14], 0xffffffff
mov eax, dword [ebp + 0x10]
push 0
push 0
add eax, 0x1fe00
push eax
push esi
mov dword [esp + 0x20], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x410867
push 0
lea ecx, [esp + 0x14]
push ecx
push 0x200
lea edx, [esp + 0x134]
push edx
push esi
call edi
test eax, eax
je 0x410924
lea edx, [esp + 0x20]
lea edi, [esp + 0x128]
call fcn.00410740
cdq
mov dword [0x526d00], eax
mov dword [0x526d04], edx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call fcn.004c1e86
add esp, 4
mov ecx, dword [esp + 0x32c]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004be1d6
mov esp, ebp
pop ebp
ret
Function at 0x4128d0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xc
push ebx
push ebp
push edi
push 0x1000
push 0
push esi
call fcn.004bfe20
add esp, 0xc
xor ebp, ebp
mov dword [esp + 0x10], ebp
lea esp, [esp]
test ebp, ebp
jne 0x412985
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
mov dword [esi + 0x180], ecx
mov edx, dword [eax + 4]
mov dword [esi + 0x184], edx
mov edi, 4
lea eax, [edi + 0x10]
shl eax, 4
lea ecx, [eax + esi]
lea eax, [edi + 8]
shl eax, 5
mov edx, dword [eax + esi]
mov dword [ecx], edx
mov eax, dword [eax + esi + 4]
mov dword [ecx + 4], eax
call fcn.00412620
sar edi, 1
test edi, edi
jg 0x412912
mov edx, dword [esi + 0x110]
mov eax, dword [esi + 0x114]
lea ecx, [esi + 0x80]
mov dword [ecx], edx
mov dword [ecx + 4], eax
call fcn.00412620
mov edi, 4
lea esp, [esp]
mov ecx, edi
mov eax, edi
shl eax, 5
mov edx, dword [eax + esi]
shl ecx, 4
add ecx, esi
mov dword [ecx], edx
mov eax, dword [eax + esi + 4]
mov dword [ecx + 4], eax
call fcn.00412620
sar edi, 1
test edi, edi
jg 0x412960
jmp 0x4129ef
cmp ebp, 1
jle 0x4129ef
lea ecx, [ebp - 2]
shl ecx, 4
mov eax, ebp
shl eax, 4
mov edi, 8
mov dword [esp + 0x14], ecx
mov dword [esp + 0xc], eax
jmp 0x4129ac
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x14]
add ecx, edi
shl ecx, 4
mov edx, dword [ecx + esi]
mov ecx, dword [ecx + esi + 4]
add eax, edi
shl eax, 4
add eax, esi
mov dword [eax + 4], ecx
mov ebx, ecx
mov ebp, edx
shl ecx, 8
shr ebp, 0x18
or ebp, ecx
mov dword [eax], edx
shr ebx, 0x18
mov dword [eax + 4], ebp
movzx ecx, word [ebx*2 + 0x50d8e8]
shl edx, 8
xor ecx, edx
sar edi, 1
mov dword [eax], ecx
test edi, edi
jg 0x4129a4
mov ebp, dword [esp + 0x10]
mov edx, ebp
shl edx, 8
mov ebx, ebp
lea eax, [edx + esi + 0x10]
shl ebx, 4
mov edi, 2
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], ebx
lea ebx, [ebx]
lea ecx, [ebx + edi]
shl ecx, 4
cmp edi, 1
lea edx, [ecx + esi]
mov ecx, dword [esp + 0x14]
lea eax, [edx + 0x10]
jle 0x412a6a
lea ebx, [edi - 1]
mov ebp, dword [ecx]
xor ebp, dword [edx]
add ecx, 4
mov dword [eax], ebp
mov ebp, dword [ecx]
xor ebp, dword [edx + 4]
add eax, 4
mov dword [eax], ebp
mov ebp, dword [ecx + 4]
xor ebp, dword [edx + 8]
add ecx, 4
add eax, 4
mov dword [eax], ebp
mov ebp, dword [ecx + 4]
xor ebp, dword [edx + 0xc]
add ecx, 4
add eax, 4
mov dword [eax], ebp
add eax, 4
add ecx, 4
sub ebx, 1
jne 0x412a28
mov ebp, dword [esp + 0x10]
mov ebx, dword [esp + 0xc]
add edi, edi
cmp edi, 0x10
jl 0x412a10
inc ebp
cmp ebp, 0x10
mov dword [esp + 0x10], ebp
jl 0x4128f0
pop edi
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x414630
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x110
mov eax, dword [0x51eed4]
xor eax, esp
mov dword [esp + 0x10c], eax
mov eax, dword [esp + 0x118]
push ebx
push ebp
mov ebp, dword [esp + 0x128]
push esi
push edi
push 0x40
mov esi, ecx
mov cl, byte [esp + 0x138]
push eax
lea edx, [esp + 0xa0]
mov dword [esp + 0x18], 0
push edx
mov dword [esp + 0x20], esi
mov byte [esp + 0x1f], cl
call fcn.004c0830
mov eax, dword [esp + 0x1c]
add esp, 0xc
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x128]
push 0x44
lea ebx, [esp + 0xa0]
mov edx, esi
mov dword [esp + 0xe0], eax
call fcn.00414310
mov eax, dword [esp + 0x134]
add esp, 8
cmp eax, 1
mov ecx, 0x10
lea esi, [esp + 0x18]
mov edi, ebp
rep movsd dword es:[edi], dword [esi]
jle 0x41470a
mov esi, ebp
lea edx, [esp + 0x58]
sub esi, edx
lea edi, [eax - 1]
mov ecx, dword [esp + 0x124]
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x58]
push eax
push 0x40
lea ebx, [esp + 0x20]
call fcn.00414310
add esp, 8
xor eax, eax
mov dl, byte [esp + eax + 0x58]
lea ecx, [esp + eax + 0x58]
xor byte [esi + ecx], dl
mov byte [esp + eax + 0x18], dl
inc eax
cmp eax, 0x40
jl 0x4146f0
sub edi, 1
jne 0x4146d0
lea edx, [esp + 0x18]
mov ecx, 0x40
mov esi, ecx
mov eax, edx
mov byte [eax], 0
inc eax
sub esi, 1
jne 0x414717
dec ecx
mov byte [edx], 0
inc edx
test ecx, ecx
jne 0x414720
lea edx, [esp + 0x58]
mov ecx, 0x40
mov esi, ecx
mov eax, edx
mov byte [eax], 0
inc eax
sub esi, 1
jne 0x414736
nop
dec ecx
mov byte [edx], 0
inc edx
test ecx, ecx
jne 0x414740
mov ecx, dword [esp + 0x11c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004be1d6
add esp, 0x110
ret
Function at 0x414b90
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xb0
mov eax, dword [0x51eed4]
xor eax, esp
mov dword [esp + 0xac], eax
mov eax, dword [esp + 0xb8]
push ebx
push ebp
mov ebp, dword [esp + 0xc4]
push esi
push 0x40
mov esi, ecx
mov cl, byte [esp + 0xd0]
push eax
lea edx, [esp + 0x40]
mov dword [esp + 0x14], 0
push edx
mov byte [esp + 0x1b], cl
call fcn.004c0830
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x44]
push 0x44
push ecx
mov ecx, dword [esp + 0xd4]
lea ebx, [esp + 0x24]
mov edx, edi
mov dword [esp + 0x8c], eax
call fcn.00414880
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
mov dword [esi], edx
mov edx, dword [esp + 0x30]
mov dword [esi + 4], eax
mov eax, dword [esp + 0x34]
mov dword [esi + 8], ecx
add esp, 0x14
cmp ebp, 1
mov dword [esi + 0xc], edx
mov dword [esi + 0x10], eax
jle 0x414c6a
lea ecx, [esp + 0x24]
sub esi, ecx
dec ebp
lea esp, [esp]
mov ecx, dword [esp + 0xc0]
lea edx, [esp + 0x10]
push 0x14
push edx
lea ebx, [esp + 0x2c]
mov edx, edi
call fcn.00414880
add esp, 8
xor eax, eax
mov edi, edi
mov dl, byte [esp + eax + 0x24]
lea ecx, [esp + eax + 0x24]
xor byte [esi + ecx], dl
mov byte [esp + eax + 0x10], dl
inc eax
cmp eax, 0x14
jl 0x414c50
sub ebp, 1
jne 0x414c30
lea edx, [esp + 0x10]
mov ecx, 0x14
mov esi, ecx
mov eax, edx
mov byte [eax], 0
inc eax
sub esi, 1
jne 0x414c77
dec ecx
mov byte [edx], 0
inc edx
test ecx, ecx
jne 0x414c80
lea edx, [esp + 0x24]
mov ecx, 0x14
mov esi, ecx
mov eax, edx
mov byte [eax], 0
inc eax
sub esi, 1
jne 0x414c96
pop esi
pop ebp
pop ebx
dec ecx
mov byte [edx], 0
inc edx
test ecx, ecx
jne 0x414ca2
mov ecx, dword [esp + 0xac]
xor ecx, esp
call fcn.004be1d6
add esp, 0xb0
ret