joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4091e0
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41b730
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [0x493b08]
push ebx
push esi
xor ebx, ebx
push edi
cmp eax, ebx
mov dword [ebp - 0x10], esp
je 0x409322
push eax
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x409322
mov edi, dword [ebp + 0x10]
mov dword [ebp - 4], ebx
cmp edi, ebx
jne 0x40922b
xor esi, esi
jmp 0x409258
mov esi, dword [ebp + 8]
push edi
push esi
mov eax, dword [esi]
call dword [eax + 0x290]
lea eax, [eax + eax + 2]
add eax, 3
and al, 0xfc
call fcn.004126d0
mov dword [ebp - 0x10], esp
mov eax, esp
push edi
push eax
push esi
call fcn.004090d0
add esp, 0xc
mov esi, eax
push esi
call fcn.00412377
mov edi, eax
add esp, 4
inc edi
call dword [sym.imp.KERNEL32.DLL_GetVersion]
test eax, eax
js 0x40929c
lea ecx, [edi + edi]
push ecx
push 0x2042
call dword [sym.imp.KERNEL32.DLL_GlobalAlloc]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.DLL_GlobalLock]
push esi
push eax
call fcn.004123bd
add esp, 8
push edi
call dword [sym.imp.KERNEL32.DLL_GlobalUnlock]
push edi
push 0xd
jmp 0x40930d
cmp esi, ebx
je 0x4092d3
push esi
call fcn.00412377
lea eax, [eax + eax + 2]
add esp, 4
add eax, 3
and al, 0xfc
call fcn.004126d0
mov dword [ebp - 0x10], esp
mov edi, esp
push esi
call fcn.00412377
lea edx, [eax + eax + 2]
push edx
push esi
push edi
call fcn.00409140
add esp, 0x10
mov ebx, eax
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
push 0x2042
call dword [sym.imp.KERNEL32.DLL_GlobalAlloc]
push eax
mov dword [ebp + 0x10], eax
mov edi, ebx
call dword [sym.imp.KERNEL32.DLL_GlobalLock]
mov cl, byte [edi]
inc edi
mov byte [eax], cl
inc eax
test cl, cl
jne 0x4092f6
mov edi, dword [ebp + 0x10]
push edi
call dword [sym.imp.KERNEL32.DLL_GlobalUnlock]
push edi
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
push esi
call fcn.00411b5c
add esp, 4
lea esp, [ebp - 0x1c]
mov ecx, dword [ebp - 0xc]
jmp dword [0xbe12cc]
Function at 0x409340
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41b740
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov eax, dword [0x493b08]
push ebx
push esi
push edi
test eax, eax
mov dword [ebp - 0x10], esp
je 0x4094a3
push eax
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x4094a3
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.DLL_GetVersion]
test eax, eax
js 0x4093c0
push 0xd
call dword [sym.imp.USER32.dll_GetClipboardData]
mov esi, eax
test esi, esi
je 0x40949d
push esi
call dword [sym.imp.KERNEL32.DLL_GlobalSize]
shr eax, 1
add eax, eax
push eax
call fcn.00412747
add esp, 4
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.DLL_GlobalLock]
push eax
jmp 0x40943d
push 1
call dword [sym.imp.USER32.dll_GetClipboardData]
mov esi, eax
test esi, esi
je 0x40949d
mov ebx, dword [sym.imp.KERNEL32.DLL_GlobalLock]
push esi
call ebx
test eax, eax
jne 0x4093e3
xor ebx, ebx
jmp 0x409427
push esi
call ebx
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [ecx + ecx + 2]
add eax, 3
and al, 0xfc
call fcn.004126d0
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x14], esp
push esi
call ebx
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
push esi
call ebx
mov ecx, dword [ebp - 0x14]
push eax
push ecx
call fcn.00409110
add esp, 0xc
mov ebx, eax
push ebx
call fcn.00412377
lea edx, [eax + eax + 2]
push edx
call fcn.00412747
add esp, 8
mov edi, eax
push ebx
push edi
call fcn.004123bd
add esp, 8
push esi
call dword [sym.imp.KERNEL32.DLL_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
push edi
call fcn.00409170
mov esi, eax
lea eax, [esi + esi]
push eax
call fcn.00412747
add esp, 8
mov ebx, eax
push esi
push edi
push ebx
call fcn.0041270a
push edi
call fcn.004126ff
mov eax, dword [ebp + 8]
add esp, 0x10
mov ecx, dword [eax]
push esi
push ebx
push eax
call dword [ecx + 0x28c]
push ebx
mov esi, eax
call fcn.004126ff
add esp, 4
mov eax, esi
jmp 0x4094a5
call dword [sym.imp.USER32.dll_CloseClipboard]
xor eax, eax
lea esp, [ebp - 0x20]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x40cad0
Capabilities:
Link many functions at runtime

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x108
lea edx, [esp]
push ebx
xor ebx, ebx
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x40cae3
push edi
lea edi, [esp + 8]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp byte [esp + ecx + 7], 0x5c
je 0x40cb18
lea edi, [esp + 8]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov ax, word [0x420d3c]
mov word [edi - 1], ax
lea edi, [esp + 8]
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [0x421e8c]
repne scasb al, byte es:[edi]
mov ecx, dword [str.NPClient.dll]
mov eax, dword [0x421e90]
dec edi
mov dword [edi], ecx
mov cl, byte [0x421e94]
mov dword [edi + 4], edx
lea edx, [esp + 8]
push edx
mov dword [edi + 8], eax
mov byte [edi + 0xc], cl
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
test eax, eax
mov dword [0x4938cc], eax
pop edi
je 0x40cc26
push esi
mov esi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push str.NP_RegisterWindowHandle
push eax
call esi
mov dword [0x4938a4], eax
mov eax, dword [0x4938cc]
push str.NP_UnregisterWindowHandle
push eax
call esi
mov ecx, dword [0x4938cc]
push str.NP_RegisterProgramProfileID
push ecx
mov dword [0x4938a8], eax
call esi
mov edx, dword [0x4938cc]
push str.NP_QueryVersion
push edx
mov dword [0x4938ac], eax
call esi
mov dword [0x4938b0], eax
mov eax, dword [0x4938cc]
push str.NP_RequestData
push eax
call esi
mov ecx, dword [0x4938cc]
push str.NP_GetData
push ecx
mov dword [0x4938b4], eax
call esi
mov edx, dword [0x4938cc]
push str.NP_StartCursor
push edx
mov dword [0x4938b8], eax
call esi
mov dword [0x4938bc], eax
mov eax, dword [0x4938cc]
push str.NP_StopCursor
push eax
call esi
mov ecx, dword [0x4938cc]
push str.NP_StartDataTransmission
push ecx
mov dword [0x4938c0], eax
call esi
mov edx, dword [0x4938cc]
push str.NP_StopDataTransmission
push edx
mov dword [0x4938c4], eax
call esi
mov dword [0x4938c8], eax
mov eax, ebx
pop esi
pop ebx
add esp, 0x108
ret
mov eax, 4
pop ebx
add esp, 0x108
ret
Function at 0x40dff0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x414
mov eax, dword [esp + 0x420]
mov dword [esp + 8], 0
test eax, eax
jne 0x40e012
add esp, 0x414
ret 0xc
push ebx
mov ebx, dword [esp + 0x41c]
push esi
push 0
mov ecx, dword [ebx]
push eax
push ebx
call dword [ecx + 0x2a4]
mov edx, eax
xor eax, eax
mov cl, byte [eax + str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Paths_]
mov byte [esp + eax + 0x1c], cl
inc eax
test cl, cl
jne 0x40e02b
push ebp
push edi
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
lea ebp, [esp + 0x24]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push edx
mov eax, ecx
mov esi, edi
mov edi, ebp
mov ebp, eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
mov eax, dword [ebx]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x434]
push ecx
push ebx
call dword [eax + 0x2a8]
lea edx, [esp + 0x10]
lea eax, [esp + 0x24]
push edx
push 0x20019
push 0
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
pop edi
pop ebp
test eax, eax
jne 0x40e113
lea ecx, [esp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push ecx
lea edx, [esp + 0x1c]
push eax
push edx
push eax
mov eax, dword [esp + 0x18]
push str.Path
push eax
call esi
test eax, eax
jne 0x40e108
cmp dword [esp + 0x18], 1
jne 0x40e108
cmp dword [esp + 0xc], 0x200
jae 0x40e108
mov eax, dword [esp + 8]
lea ecx, [esp + 0xc]
lea edx, [esp + 0x21c]
push ecx
push edx
push 0
push 0
push str.Path
push eax
call esi
test eax, eax
jne 0x40e108
mov ecx, dword [ebx]
lea edx, [esp + 0x21c]
push edx
push ebx
call dword [ecx + 0x29c]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x10]
pop esi
pop ebx
add esp, 0x414
ret 0xc
Function at 0x40e130
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x610
push ebx
mov ebx, dword [esp + 0x620]
test ebx, ebx
push ebp
mov dword [esp + 0x10], 0
jne 0x40e158
pop ebp
xor eax, eax
pop ebx
add esp, 0x610
ret 0x10
mov ebp, dword [esp + 0x628]
test ebp, ebp
jne 0x40e170
pop ebp
xor eax, eax
pop ebx
add esp, 0x610
ret 0x10
push esi
mov esi, dword [esp + 0x620]
push edi
push 0
mov eax, dword [esi]
push ebx
push esi
call dword [eax + 0x2a4]
lea edi, [esp + 0x220]
mov ecx, eax
sub edi, eax
mov dl, byte [ecx]
mov byte [edi + ecx], dl
inc ecx
test dl, dl
jne 0x40e190
mov ecx, dword [esi]
push eax
push ebx
push esi
call dword [ecx + 0x2a8]
mov edx, dword [esi]
push 0
push ebp
push esi
call dword [edx + 0x2a4]
lea edi, [esp + 0x20]
mov ecx, eax
sub edi, eax
mov dl, byte [ecx]
mov byte [edi + ecx], dl
inc ecx
test dl, dl
jne 0x40e1b9
mov ecx, dword [esi]
push eax
push ebp
push esi
call dword [ecx + 0x2a8]
lea edx, [esp + 0x10]
lea eax, [esp + 0x220]
push edx
push 0x20019
push 0
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40e265
lea ecx, [esp + 0x14]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push ecx
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x20]
push eax
push edx
push eax
lea eax, [esp + 0x30]
push eax
push ecx
call edi
test eax, eax
jne 0x40e25a
cmp dword [esp + 0x1c], 1
jne 0x40e25a
cmp dword [esp + 0x14], 0x200
jae 0x40e25a
lea edx, [esp + 0x14]
lea eax, [esp + 0x420]
push edx
mov edx, dword [esp + 0x14]
push eax
push 0
lea ecx, [esp + 0x2c]
push 0
push ecx
push edx
call edi
test eax, eax
jne 0x40e25a
mov eax, dword [esi]
lea ecx, [esp + 0x420]
push ecx
push esi
call dword [eax + 0x29c]
mov dword [esp + 0x18], eax
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x610
ret 0x10

Function at 0x40e340
Capabilities:
Set current directory

Disassembly:
push ebx
mov ebx, dword [esp + 0x10]
push esi
mov esi, dword [esp + 0xc]
push edi
push 0
mov eax, dword [esi]
push ebx
push esi
call dword [eax + 0x2a4]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.DLL_SetCurrentDirectoryA]
mov ecx, dword [esi]
push edi
push ebx
push esi
call dword [ecx + 0x2a8]
pop edi
pop esi
pop ebx
ret 0xc
Function at 0x40f240
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
lea eax, [esp]
push esi
push eax
push 0x20019
push 0
push str.SoftwareNaturalPointNATURALPOINTNPClient_Location
push 0x80000001
mov dword [esp + 0x18], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40f2d2
mov edx, dword [esp + 4]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 8]
push ecx
push eax
push eax
push eax
push str.Path
push edx
call esi
test eax, eax
jne 0x40f2c7
cmp dword [esp + 8], 0x104
jae 0x40f2c7
mov ecx, dword [esp + 4]
lea eax, [esp + 8]
push eax
push 0x496c48
push 0
push 0
push str.Path
push ecx
call esi
test eax, eax
jne 0x40f2c7
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x496c48
pop esi
add esp, 8
ret
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop esi
add esp, 8
ret

Function at 0x41216d
Capabilities:
Terminate process

Disassembly:
push edi
call fcn.00412212
push 1
pop edi
cmp dword [0x496db4], edi
jne 0x41218f
push dword [esp + 8]
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
push eax
jmp dword [0xbe12d8]
cmp dword [esp + 0xc], 0
push ebx
mov ebx, dword [esp + 0x14]
mov dword [0x496db0], edi
mov byte [0x496dac], bl
jne 0x4121e3
mov eax, dword [0x497458]
test eax, eax
je 0x4121d2
mov ecx, dword [0x497454]
push esi
lea esi, [ecx - 4]
cmp esi, eax
jb 0x4121d1
mov eax, dword [esi]
test eax, eax
je 0x4121c6
call eax
sub esi, 4
cmp esi, dword [0x497458]
jae 0x4121be
pop esi
push 0x42002c
push 0x420024
call fcn.00412224
pop ecx
pop ecx
push 0x420038
push 0x420030
call fcn.00412224
pop ecx
pop ecx
test ebx, ebx
pop ebx
je 0x412200
call fcn.0041221b
pop edi
ret
push dword [esp + 8]
mov dword [0x496db4], edi
call dword [sym.imp.KERNEL32.DLL_ExitProcess]
Function at 0x4b86a9
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 0
call dword [fcn.00bba5cb]
mov esi, eax
test esi, esi
mov dword [ebp - 4], esi
je 0x4b877f
cmp word [esi], 0x5a4d
jne 0x4b877f
mov eax, dword [esi + 0x3c]
add eax, esi
cmp dword [eax], 0x4550
jne 0x4b877f
cmp word [eax + 4], 0x14c
jne 0x4b877f
cmp word [eax + 0x18], 0x10b
jne 0x4b877f
mov eax, dword [eax + 0x80]
test eax, eax
je 0x4b877f
lea edi, [eax + esi]
mov ecx, dword [edi]
xor edx, edx
cmp ecx, edx
jne 0x4b8718
cmp dword [edi + 0xc], edx
jne 0x4b8718
cmp dword [edi + 0x10], edx
je 0x4b877f
mov eax, dword [edi + 0xc]
cmp eax, edx
je 0x4b8776
cmp ecx, edx
jne 0x4b8728
cmp dword [edi + 0x10], edx
je 0x4b8776
add eax, esi
push eax
push dword [ebp + 8]
call fcn.007033fe
test eax, eax
pop ecx
pop ecx
jne 0x4b8776
mov ebx, dword [edi]
test ebx, ebx
jne 0x4b8742
mov ebx, dword [edi + 0x10]
add ebx, esi
mov esi, dword [edi + 0x10]
add esi, dword [ebp - 4]
jmp 0x4b876d
js 0x4b8767
mov ecx, dword [ebp - 4]
add eax, ecx
add eax, 2
je 0x4b8767
push eax
push dword [ebp + 0xc]
call fcn.007033fe
test eax, eax
pop ecx
pop ecx
je 0x4b877b
add ebx, 4
add esi, 4
mov eax, dword [ebx]
test eax, eax
jne 0x4b874c
mov esi, dword [ebp - 4]
add edi, 0x14
jmp 0x4b8706
mov eax, esi
jmp 0x4b8781
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4bf87e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1000
call fcn.006f8060
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, dword [edi]
mov eax, 0x1000
cmp esi, eax
jge 0x4bf8fd
test esi, esi
jl 0x4bf8fd
push eax
lea eax, [ebp - 0x1000]
push 0
push eax
call fcn.006f6cc0
push esi
add edi, 4
lea eax, [ebp - 0x1000]
push edi
push eax
call fcn.006f6980
lea eax, [esi - 2]
add esp, 0x18
test eax, eax
jl 0x4bf8da
mov cl, byte [ebp + eax - 0xfff]
xor byte [ebp + eax - 0x1000], cl
dec eax
jns 0x4bf8c9
lea eax, [esi + 1]
cmp eax, dword [ebp + 0x10]
jle 0x4bf8e5
mov eax, dword [ebp + 0x10]
push eax
lea eax, [ebp - 0x1000]
push eax
push dword [ebp + 0xc]
call fcn.006f6980
mov eax, dword [ebp + 0xc]
add esp, 0xc
jmp 0x4bf8ff
mov eax, edi
pop edi
pop esi
leave
ret

Function at 0x4c4406
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x93a76c
call fcn.006f788c
push ecx
push ebx
push esi
mov esi, ecx
push edi
lea ebx, [esi + 0xc]
mov dword [esi], 0xb61e80
lea edi, [esi + 4]
mov ecx, ebx
mov dword [ebp - 0x10], esi
mov dword [edi], 0xb61e58
call fcn.004c40f3
and dword [ebp - 4], 0
mov dword [esi + 0x1c], int.00b61e74
mov ecx, esi
mov dword [esi + 8], edi
mov dword [esi + 0x28], ebx
mov byte [esi + 0x30], 0
call fcn.004c3f6a
push dword [ebp + 8]
mov ecx, esi
push esi
call fcn.0075c1ce
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x4c4412
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x93a76c
call fcn.006f788c
push ecx
push ebx
push esi
mov esi, ecx
push edi
lea ebx, [esi + 0xc]
mov dword [esi], 0xb61e80
lea edi, [esi + 4]
mov ecx, ebx
mov dword [ebp - 0x10], esi
mov dword [edi], 0xb61e58
call fcn.004c40f3
and dword [ebp - 4], 0
mov dword [esi + 0x1c], int.00b61e74
mov ecx, esi
mov dword [esi + 8], edi
mov dword [esi + 0x28], ebx
mov byte [esi + 0x30], 0
call fcn.004c3f6a
push dword [ebp + 8]
mov ecx, esi
push esi
call fcn.0075c1ce
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4

Function at 0x4c4608
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x93a76c
call fcn.006f788c
push ecx
push ebx
push esi
mov esi, ecx
push edi
lea ebx, [esi + 0xc]
mov dword [esi], 0xb61ea8
lea edi, [esi + 4]
mov ecx, ebx
mov dword [ebp - 0x10], esi
mov dword [edi], 0xb61e58
call fcn.004c40f3
and dword [ebp - 4], 0
mov dword [esi + 0x1c], int.00b61e74
mov ecx, esi
mov dword [esi + 8], edi
mov dword [esi + 0x28], ebx
mov byte [esi + 0x30], 0
call fcn.004c3f6a
push dword [ebp + 8]
mov ecx, esi
push esi
call fcn.0075c1ce
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4

Function at 0x4c4614
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x93a76c
call fcn.006f788c
push ecx
push ebx
push esi
mov esi, ecx
push edi
lea ebx, [esi + 0xc]
mov dword [esi], 0xb61ea8
lea edi, [esi + 4]
mov ecx, ebx
mov dword [ebp - 0x10], esi
mov dword [edi], 0xb61e58
call fcn.004c40f3
and dword [ebp - 4], 0
mov dword [esi + 0x1c], int.00b61e74
mov ecx, esi
mov dword [esi + 8], edi
mov dword [esi + 0x28], ebx
mov byte [esi + 0x30], 0
call fcn.004c3f6a
push dword [ebp + 8]
mov ecx, esi
push esi
call fcn.0075c1ce
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x538164
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x93de43
call fcn.006f788c
push ecx
push esi
mov esi, ecx
and dword [esi + 4], 0
push edi
mov dword [ebp - 0x10], esi
and dword [ebp - 4], 0
push 0x53801e
push 0x20
push 0xc
lea edi, [esi + 0x30]
push edi
mov dword [esi], 0xb68988
call fcn.00537ffc
and dword [esi + 0x1b8], 0
lea eax, [esi + 0x1b4]
and dword [eax], 0
push 5
lea ecx, [esi + 0x1b0]
push eax
push ecx
push edi
mov dword [ecx], 0x20
call fcn.005391dd
mov dword [esi + 4], 3
call fcn.00539377
push 0x20
mov dword [esi + 8], eax
lea eax, [esi + 0xc]
push 0xb68978
push eax
call fcn.006f9000
mov ecx, dword [ebp - 0xc]
add esp, 0x1c
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x53a978
Capabilities:
Decrypt data using tea
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov edx, dword [ecx]
mov ecx, dword [ecx + 4]
push esi
push edi
mov edi, dword [eax]
mov dword [ebp - 0x14], edi
mov edi, dword [eax + 4]
mov dword [ebp - 0x10], edi
mov edi, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov esi, 0xc6ef3720
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], eax
mov dword [ebp - 4], 0x20
mov eax, edx
shr eax, 5
add eax, dword [ebp - 8]
mov edi, edx
shl edi, 4
add edi, dword [ebp - 0xc]
xor eax, edi
lea edi, [esi + edx]
xor eax, edi
sub ecx, eax
mov eax, ecx
shr eax, 5
add eax, dword [ebp - 0x10]
mov edi, ecx
shl edi, 4
add edi, dword [ebp - 0x14]
xor eax, edi
lea edi, [esi + ecx]
xor eax, edi
sub edx, eax
add esi, 0x61c88647
dec dword [ebp - 4]
jne 0x53a9a8
mov eax, dword [ebp + 8]
pop edi
mov dword [eax], edx
mov dword [eax + 4], ecx
pop esi
leave
ret
Function at 0x578087
Capabilities:
Encode data using xor

Disassembly:
push ebp
lea ebp, [esp - 0x6c]
sub esp, 0x11c
push ebx
push esi
push edi
push 8
pop esi
push esi
lea eax, [ebp + 0x58]
push 0
push eax
call fcn.006f6cc0
mov ebx, dword [ebp + 0x7c]
push esi
lea eax, [ebp + 0x50]
push ebx
push eax
call fcn.006f6980
push esi
lea eax, [ebx + 4]
push eax
lea eax, [ebp + 0x60]
push eax
call fcn.006f6980
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp + 0x50]
push eax
call fcn.005344ed
lea eax, [ebp - 0xb0]
push eax
lea eax, [ebp + 0x60]
push eax
call fcn.005344ed
push dword [ebp + 0x78]
call fcn.006f6e38
push dword [ebp + 0x78]
mov edi, eax
push 0
push edi
call fcn.006f6cc0
mov eax, dword [ebp + 0x78]
cdq
idiv esi
add esp, 0x44
push 0
mov esi, eax
lea eax, [ebp + 0x58]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0xb0]
push eax
lea eax, [ebp - 0x30]
push eax
shl esi, 3
push esi
push edi
push dword [ebp + 0x74]
call fcn.005371fa
add esp, 0x20
test esi, esi
jle 0x57814a
cmp esi, dword [ebp + 0x78]
mov ecx, esi
jge 0x57817c
mov edx, dword [ebp + 0x74]
sub edx, esi
mov esi, dword [ebp + 0x74]
sub esi, edi
lea eax, [ecx + edi]
mov bl, byte [esi + eax]
xor bl, byte [edx + ecx]
inc ecx
cmp ecx, dword [ebp + 0x78]
mov byte [eax], bl
jl 0x578137
jmp 0x57817c
cmp esi, dword [ebp + 0x78]
mov eax, esi
mov dword [ebp + 0x7c], eax
jge 0x57817c
mov ecx, dword [ebp + 0x74]
sub ecx, edi
mov dword [ebp + 0x68], ecx
lea ecx, [eax + edi]
cdq
push 8
pop esi
idiv esi
mov al, byte [edx + ebx]
mov edx, dword [ebp + 0x68]
xor al, byte [edx + ecx]
mov byte [ecx], al
mov eax, dword [ebp + 0x7c]
inc eax
cmp eax, dword [ebp + 0x78]
mov dword [ebp + 0x7c], eax
jl 0x57815c
push dword [ebp + 0x78]
push edi
push dword [ebp + 0x74]
call fcn.006f6980
push edi
call fcn.006f6d20
add esp, 0x10
pop edi
pop esi
pop ebx
add ebp, 0x6c
leave
ret
Function at 0x57909b
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 0x10]
cmp dword [0x999b70], eax
jg 0x5790b0
mov dword [0x999b70], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
cmp ebx, esi
push edi
jne 0x5790bf
push esi
jmp 0x5790c0
push ebx
call dword [fcn.00bba5cb]
mov edi, eax
cmp edi, esi
jne 0x5790f7
cmp dword [ebp + 0xc], esi
push dword [ebp + 0x10]
je 0x579193
push 1
push esi
push ebx
call fcn.00578db8
mov edi, eax
add esp, 0x10
cmp edi, esi
je 0x579199
push ebx
push edi
call fcn.00578cba
pop ecx
pop ecx
cmp word [edi], 0x5a4d
jne 0x57918c
mov eax, dword [edi + 0x3c]
add eax, edi
cmp dword [eax], 0x4550
jne 0x57918c
cmp word [eax + 4], 0x14c
jne 0x57918c
cmp word [eax + 0x18], 0x10b
jne 0x57918c
mov eax, dword [eax + 0x80]
cmp eax, esi
lea ebx, [eax + edi]
mov dword [ebp - 8], ebx
je 0x57918c
lea eax, [ebx + 0xc]
cmp dword [eax], esi
je 0x57918c
mov dword [ebp + 8], esi
mov esi, dword [eax]
add esi, edi
push esi
call dword [fcn.00bba5cb]
push eax
mov dword [ebp - 4], eax
call fcn.00578493
test eax, eax
pop ecx
jne 0x579179
push esi
push dword [ebp - 4]
call fcn.00578cba
mov ebx, dword [ebp + 0x10]
inc ebx
push ebx
push 0
push 0
push esi
call fcn.00578db8
push ebx
push 0
push esi
call fcn.0057909b
mov ebx, dword [ebp - 8]
add esp, 0x24
mov eax, dword [ebp + 8]
inc eax
mov dword [ebp + 8], eax
lea eax, [eax + eax*4]
lea eax, [ebx + eax*4 + 0xc]
cmp dword [eax], 0
jne 0x579139
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
push esi
jmp 0x5790da
xor eax, eax
jmp 0x57918e