joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401ffb
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0
mov eax, dword [0x420018]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, edx
mov dword [ebp - 0x9c], eax
push edi
mov edi, ecx
cmp esi, 0xd
jae 0x40202b
or eax, 0xffffffff
jmp 0x4021b8
lea eax, [ebp - 0x94]
mov dword [ebp - 0x94], 0x401fdf
push eax
xor ebx, ebx
mov dword [ebp - 0x90], 0x401fed
push ecx
mov edx, edi
mov dword [ebp - 0x68], ebx
lea ecx, [ebp - 0x7c]
mov dword [ebp - 0x6c], ebx
call fcn.00404914
xor eax, eax
mov dword [ebp - 0x58], ebx
inc eax
mov dword [ebp - 0x34], ebx
add edi, 5
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
sub esi, 0xd
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x50], ebx
mov eax, dword [edi]
push eax
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x88], edi
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x80], esi
call fcn.004145c1
add esp, 0xc
mov dword [ebp - 0x84], ebx
mov edi, eax
lea eax, [ebp - 0x84]
mov edx, edi
push eax
push ecx
lea eax, [ebp - 0x80]
push eax
mov eax, dword [ebp - 0x88]
lea ecx, [ebp - 0x7c]
add eax, 8
push eax
lea eax, [ebp - 0x8c]
push eax
call fcn.004047b5
add esp, 0x14
mov esi, eax
lea eax, [ebp - 0x94]
push dword [ebp - 0x6c]
push eax
call dword [ebp - 0x90]
push dword [ebp - 0x68]
lea eax, [ebp - 0x94]
mov dword [ebp - 0x6c], ebx
push eax
call dword [ebp - 0x90]
add esp, 0x10
mov dword [ebp - 0x68], ebx
test esi, esi
je 0x4020fa
or ebx, 0xffffffff
jmp 0x4021af
mov edx, dword [edi]
lea ecx, [edi + 4]
mov eax, dword [ecx]
push 4
pop esi
add ecx, esi
mov dword [ebp - 0x98], eax
push edx
mov dword [ebp - 0x80], edx
mov eax, dword [ecx]
add ecx, esi
mov dword [ebp - 0x88], eax
mov eax, dword [ecx]
add ecx, esi
mov dword [ebp - 0x8c], eax
mov ebx, dword [ecx]
add ecx, esi
mov dword [ebp - 0x84], ecx
call fcn.004145c1
mov edx, dword [ebp - 0x88]
mov esi, eax
pop ecx
push dword [ebp - 0x80]
mov ecx, dword [ebp - 0x8c]
push esi
push ebx
mov ebx, dword [ebp - 0x98]
lea eax, [ecx + edx]
add eax, ebx
add eax, dword [ebp - 0x84]
push eax
push ecx
mov ecx, dword [ebp - 0x84]
lea eax, [edx + ebx]
add eax, ecx
push eax
push edx
lea eax, [ebx + ecx]
mov edx, ebx
push eax
call fcn.00404988
add esp, 0x20
xor ebx, ebx
test eax, eax
je 0x40217e
inc ebx
jmp 0x4021a8
push ebx
lea eax, [ebp - 0xa0]
push eax
push dword [ebp - 0x80]
push esi
push dword [ebp - 0x9c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4021a5
mov eax, dword [ebp - 0x80]
cmp dword [ebp - 0xa0], eax
je 0x4021a8
or ebx, 0xffffffff
push esi
call fcn.004145ae
pop ecx
push edi
call fcn.004145ae
pop ecx
mov eax, ebx
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00405641
mov esp, ebp
pop ebp
ret
Function at 0x402c56
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
push edi
mov esi, ecx
call fcn.00402cf3
xor edi, edi
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 4], eax
cmp eax, 0xffffffff
je 0x402ce9
push edi
push edi
push edi
push 2
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [esi + 8], eax
test eax, eax
je 0x402ce2
push edi
push edi
push edi
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edx, eax
mov dword [esi + 0xc], edx
test edx, edx
je 0x402cd9
push 6
pop ecx
mov dword [ebp - 0x1c], edi
xor eax, eax
lea edi, [ebp - 0x18]
rep stosd dword es:[edi], eax
push 0x1c
lea ecx, [ebp - 0x1c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x402cd9
mov ecx, dword [ebp - 0x10]
mov al, 1
mov dword [esi + 0x10], ecx
jmp 0x402ceb
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, esi
call fcn.00402cf3
xor al, al
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x402e8b
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ecx + 0x10]
cmp esi, 0x40
jae 0x402e9b
xor eax, eax
jmp 0x402ef0
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x402e97
mov edx, dword [ecx + 0x3c]
lea eax, [edx + 0xf8]
cmp esi, eax
jb 0x402e97
cmp dword [edx + ecx], 0x4550
jne 0x402e97
movzx eax, word [edx + ecx + 4]
push edi
mov edi, 0x14c
cmp ax, di
je 0x402ed8
mov edi, 0x8664
cmp ax, di
je 0x402eed
lea eax, [ecx + 0x98]
add eax, edx
mov ecx, dword [eax]
test ecx, ecx
je 0x402eed
add ecx, 0xc
cmp esi, ecx
jae 0x402eef
xor eax, eax
pop edi
pop esi
pop ebp
ret 4
Function at 0x402ef5
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x40228
call fcn.00414410
mov eax, dword [0x420018]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x40218]
xor ebx, ebx
mov dword [ebp - 0x40214], 1
push ebx
push eax
mov esi, ecx
lea eax, [ebp - 0x4020c]
push 0x200
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x403105
cmp dword [ebp - 0x40218], 0x200
jne 0x403105
push 4
lea eax, [ebp - 0x4010b]
push 0x41e970
push eax
call fcn.00414714
add esp, 0xc
test eax, eax
jne 0x402f76
inc eax
mov byte [edi], al
jmp 0x403107
push 5
lea eax, [ebp - 0x4010b]
push str.ustar
push eax
call fcn.00414714
add esp, 0xc
test eax, eax
jne 0x403105
mov ecx, dword [esi + 4]
sub ecx, 0x10
call fcn.00402972
add eax, 0x10
lea ecx, [ebp - 0x40210]
push 0x41e9a4
mov dword [ebp - 0x40210], eax
call fcn.0040311a
lea eax, [ebp - 0x4020c]
push eax
lea ecx, [ebp - 0x40210]
call fcn.0040311a
push ebx
push pe_nt_image_headers32
push 2
push ebx
push ebx
push 0x40000000
push dword [ebp - 0x40210]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x40224], eax
cmp eax, 0xffffffff
je 0x4030f6
push 8
lea eax, [ebp - 0x40190]
push ebx
push eax
call fcn.0040cec6
add esp, 0xc
mov dword [ebp - 0x40220], eax
push 1
push ebx
push ebx
push dword [esi]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, dword [ebp - 0x40220]
mov edi, ecx
neg edi
add eax, ecx
and edi, 0x1ff
add edi, eax
test ecx, ecx
je 0x4030a4
mov eax, 0x40000
mov dword [ebp - 0x4021c], eax
cmp ecx, eax
jae 0x403047
mov eax, ecx
mov dword [ebp - 0x4021c], ecx
push ebx
lea ecx, [ebp - 0x40218]
push ecx
push eax
lea eax, [ebp - 0x4000c]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40309e
push ebx
lea eax, [ebp - 0x40218]
push eax
push dword [ebp - 0x4021c]
lea eax, [ebp - 0x4000c]
push eax
push dword [ebp - 0x40224]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40309e
mov ecx, dword [ebp - 0x40220]
sub ecx, dword [ebp - 0x4021c]
mov dword [ebp - 0x40220], ecx
jne 0x403030
jmp 0x4030a4
mov byte [ebp - 0x40214], bl
push dword [ebp - 0x40224]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [ebp - 0x40214], bl
je 0x4030e0
cmp byte [esi + 8], bl
je 0x4030cc
lea eax, [ebp - 0x40210]
push eax
lea ecx, [esi + 0xc]
call fcn.004023cb
mov eax, dword [esi + 0x18]
test eax, eax
je 0x4030e0
push dword [ebp - 0x40210]
push dword [esi + 0x1c]
call eax
pop ecx
pop ecx
cmp edi, 0xffffffff
je 0x4030f0
push ebx
push ebx
push edi
push dword [esi]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov bl, byte [ebp - 0x40214]
lea ecx, [ebp - 0x40210]
call fcn.0040292e
mov al, bl
jmp 0x403107
xor al, al
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00405641
mov esp, ebp
pop ebp
ret 4
Function at 0x403173
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov ecx, dword [ecx]
push ebx
push esi
push edi
sub ecx, 0x10
mov dword [ebp - 8], edx
call fcn.00402972
push 0x44
xor ebx, ebx
push ebx
lea esi, [eax + 0x10]
lea eax, [ebp - 0x5c]
mov dword [ebp - 4], esi
push eax
call fcn.004059b0
xor eax, eax
lea edi, [ebp - 0x18]
stosd dword es:[edi], eax
add esp, 0xc
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
or dword [ebp - 0x30], 0x81
xor eax, eax
inc eax
mov word [ebp - 0x2c], ax
cmp dword [esi - 4], eax
jle 0x4031d4
push dword [esi - 0xc]
lea ecx, [ebp - 4]
call fcn.00402ac8
mov esi, dword [ebp - 4]
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x5c]
push eax
push ebx
push ebx
push 0x400
push ebx
push ebx
push ebx
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x4031ff
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 8]
mov dword [ecx], eax
jmp 0x403235
push 0xffffffffffffffff
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [ebp - 8]
test eax, eax
je 0x403222
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
setne bl
jmp 0x403225
xor ebx, ebx
inc ebx
push dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x14]
call esi
lea ecx, [ebp - 4]
call fcn.0040292e
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x46dbc0
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push esi
push edi
xor edi, edi
movzx eax, word [ecx + 0x14]
movzx esi, word [ecx + 6]
test esi, esi
lea eax, [eax + ecx + 0x18]
jbe 0x46dbfb
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x46dbe2
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp dword [esp + 0xc], edx
jb 0x46dbf3
add edx, ecx
cmp dword [esp + 0xc], edx
jb 0x46dbfd
inc edi
add eax, 0x28
cmp edi, esi
jb 0x46dbd8
xor eax, eax
pop edi
pop esi
ret
Function at 0x4016db
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40171a
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40171a
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40171a
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40171a
cmp dword [ecx + 0x74], 0xe
jbe 0x40171a
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x426004]
jne 0x40100a
repz ret
jmp fcn.004014cd

Function at 0x4074fe
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x426004]
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.00403f44
and dword [ebp - 0x14], 0
cmp dword [0x428e88], 0
mov dword [ebp - 0x18], eax
jne 0x4075b1
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x407659
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x407659
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x428e88], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x428e8c], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x428e90], eax
call edi
push eax
call esi
mov dword [0x428e98], eax
test eax, eax
je 0x4075b1
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x428e94], eax
mov eax, dword [0x428e94]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40760a
cmp dword [0x428e98], ecx
je 0x40760a
push eax
call esi
push dword [0x428e98]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40760a
test ebx, ebx
je 0x40760a
call edi
test eax, eax
je 0x407601
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x407601
test byte [ebp - 8], 1
jne 0x40760a
or dword [ebp + 0x10], 0x200000
jmp 0x40763d
mov eax, dword [0x428e8c]
cmp eax, dword [ebp - 0x18]
je 0x40763d
push eax
call esi
test eax, eax
je 0x40763d
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40763d
mov eax, dword [0x428e90]
cmp eax, dword [ebp - 0x18]
je 0x40763d
push eax
call esi
test eax, eax
je 0x40763d
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x428e88]
call esi
test eax, eax
je 0x407659
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x40765b
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401000
leave
ret

Function at 0x4222b0
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x4272f0]
sub esp, 0x10
push ebx
mov ebx, dword [0x1efb038]
push edi
mov edi, dword [0x1efb314]
push eax
call fcn.004221c0
add esp, 4
cmp dword [0x1efb314], 0x2f
jne 0x42230d
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 0x10]
push edx
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
call fcn.00422210
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1001fa90
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x68
mov eax, dword [esp + 0x84]
mov edi, dword [esp + 0x80]
lea ebp, [esp + 0xc]
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
mov esi, dword [eax + 0xc]
lea eax, [esp + 0x2c]
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], edx
mov dword [esp + 0x48], ecx
mov dword [esp + 0x44], edx
mov dword [esp + 0x38], esi
push eax
push edi
push ebp
call fcn.10024820
add esp, 0xc
movzx edx, byte [esp + 0x24]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
movdqu xmm0, xmmword [esp + 0xc]
cmp dl, 0x2e
mov dword [esp + 0x40], ecx
mov dword [esp + 0x3c], eax
je 0x1001fb60
movzx eax, byte [esp + 0x27]
mov byte [esp + 3], dl
movdqu xmmword [esp + 0x4c], xmm0
mov byte [esp + 0xa], al
movzx eax, word [esp + 0x25]
mov word [esp + 8], ax
lea eax, [esp + 0x4c]
push eax
push edi
push ebp
call fcn.100214a0
add esp, 0xc
mov eax, dword [esp + 0xc]
test eax, eax
je 0x1001fb52
movzx edx, word [esp + 8]
movzx ecx, byte [esp + 0xa]
mov edi, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
mov ebx, eax
mov word [esp + 4], dx
mov edx, dword [esp + 0x10]
mov byte [esp + 6], cl
jmp 0x1001fb76
movdqu xmm0, xmmword [esp + 0x10]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
movd edx, xmm0
mov edi, dword [esp + 0x44]
mov byte [esp + 3], 0x2e
cmp edx, 1
mov edx, dword [esp + 0x48]
jne 0x1001fbdb
movzx eax, byte [esp + 6]
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], esi
mov byte [esp + 0x2e], al
movzx eax, word [esp + 4]
mov word [esp + 0x2c], ax
lea eax, [esp + 0x4c]
push ebp
push dword [esp + 0x84]
push eax
call fcn.10024820
add esp, 0xc
cmp byte [esp + 0x64], 0x2e
jne 0x1001fbf1
movq xmm0, qword [esp + 0x5c]
mov eax, dword [esp + 0x7c]
movsd xmm2, qword [esp + 0x4c]
movsd xmm1, qword [esp + 0x54]
movq qword [eax + 0x10], xmm0
movsd qword [eax + 8], xmm1
movsd qword [eax], xmm2
jmp 0x1001fbeb
mov edx, eax
mov eax, dword [esp + 0x7c]
movdqu xmmword [eax], xmm0
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], edx
mov byte [eax + 0x24], 0x2e
jmp 0x1001fc6f
movsd xmm0, qword [esp + 0x5c]
mov eax, dword [esp + 0x64]
movsd xmm1, qword [esp + 0x54]
movzx ecx, byte [esp + 0x2e]
movzx ebx, word [esp + 0x2c]
mov edi, dword [esp + 0x3c]
movzx edx, byte [esp + 3]
movsd qword [esp + 0x1c], xmm0
movsd xmm0, qword [esp + 0x4c]
mov dword [esp + 0x24], eax
movsd qword [esp + 0x14], xmm1
mov eax, dword [esp + 0x7c]
movsd xmm1, qword [esp + 0x54]
movsd qword [esp + 0xc], xmm0
movsd xmm0, qword [esp + 0x4c]
mov byte [eax + 0x1b], cl
mov word [eax + 0x19], bx
movsd qword [eax + 8], xmm1
mov esi, dword [esp + 0x24]
movsd qword [eax], xmm0
movq xmm0, qword [esp + 0x1c]
mov dword [eax + 0x24], esi
mov esi, dword [esp + 0x40]
movq qword [eax + 0x1c], xmm0
mov dword [eax + 0x14], edi
mov dword [eax + 0x10], esi
mov byte [eax + 0x18], dl
add esp, 0x68
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x100417f0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x54
mov dword [esp + 0x2c], 0x3d
mov dword [esp + 0x30], ecx
mov esi, ecx
mov dword [esp + 0x34], edx
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], 1
mov dword [esp + 0x44], 0x3d
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], edx
lea ecx, [esp + 0x10]
lea edx, [esp + 0x2c]
mov word [esp + 0x50], 1
call fcn.1003cde0
cmp dword [esp + 0x10], 0
je 0x100418b4
mov ecx, dword [esp + 0x48]
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
add esi, ecx
sub edi, ecx
mov dword [esp + 0x48], eax
mov ecx, esp
lea edx, [esp + 0x10]
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], edi
mov dword [esp + 0x10], 0x5b
mov dword [esp + 0x24], 1
mov dword [esp + 0x28], 0x5b
call fcn.1003cde0
cmp dword [esp], 0
je 0x100418f0
mov eax, dword [esp + 4]
test eax, eax
je 0x100418e6
cmp eax, edi
jae 0x100418ea
cmp byte [esi + eax], 0xc0
jge 0x100418f2
jmp 0x1004198b
cmp byte [esp + 0x51], 0
jne 0x1004197c
mov byte [esp + 0x51], 1
cmp byte [esp + 0x50], 0
mov esi, dword [esp + 0x48]
mov edi, dword [esp + 0x4c]
jne 0x100418db
cmp edi, esi
je 0x1004197c
sub edi, esi
add esi, dword [esp + 0x30]
jmp 0x10041860
xor eax, eax
jmp 0x100418f2
jne 0x1004198b
mov eax, edi
mov ebx, dword [esp + 0x78]
push eax
push esi
call fcn.10052840
add esp, 8
test ebx, ebx
mov dword [esp + 0xc], eax
je 0x1004192e
setns al
js 0x10041984
mov ebp, edx
movzx esi, al
push esi
push ebx
call fcn.100985b0
add esp, 8
mov edi, eax
test eax, eax
jne 0x10041935
push ebx
push esi
call fcn.101aefe0
add esp, 8
ud2
mov ebp, edx
mov edi, 1
mov esi, dword [esp + 0x70]
push ebx
push dword [esp + 0x78]
push edi
call fcn.10193640
add esp, 0xc
mov ecx, dword [esp + 0x68]
mov edx, dword [esp + 0x6c]
lea eax, [esp + 0x10]
mov dword [esp], edi
mov dword [esp + 4], ebx
mov dword [esp + 8], ebx
mov dword [esp + 0x10], 0
push eax
push 2
lea eax, [esp + 8]
push eax
push ebp
push dword [esp + 0x1c]
push esi
call fcn.10040eb0
add esp, 0x18
add esp, 0x54
pop esi
pop edi
pop ebx
pop ebp
ret
call fcn.10176df0
ud2
push 0x101b2824
push eax
push 0
push edi
push esi
call fcn.101af790
add esp, 0x14
ud2
Function at 0x10043470
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x14
mov esi, dword [edx + 8]
mov edi, dword [edx + 4]
mov ebp, ecx
mov bl, 1
lea eax, [esi + 1]
cmp eax, edi
mov dword [edx + 8], eax
jae 0x100434a7
mov ecx, dword [edx]
mov bl, 1
movzx ecx, byte [ecx + eax]
cmp ecx, 0x2b
je 0x1004349f
cmp ecx, 0x2d
jne 0x100434a7
xor ebx, ebx
add esi, 2
mov eax, esi
mov dword [edx + 8], esi
cmp eax, edi
jae 0x10043642
mov esi, dword [edx]
mov dword [esp + 4], ebx
lea ecx, [eax + 1]
movzx ebx, byte [esi + eax]
mov dword [edx + 8], ecx
add bl, 0xd0
cmp bl, 0xa
jae 0x1004364c
mov dword [esp], ebp
mov ebp, dword [esp + 0x2c]
movzx ebx, bl
cmp ecx, edi
jae 0x10043538
neg edi
add eax, 2
jmp 0x100434f3
movzx ecx, cl
lea ebx, [ebx + ebx*4]
lea ebx, [ecx + ebx*2]
lea ecx, [edi + eax + 1]
inc eax
cmp ecx, 1
je 0x10043538
movzx ecx, byte [esi + eax - 1]
add cl, 0xd0
cmp cl, 0xa
jae 0x10043538
cmp ebx, 0xccccccc
mov dword [edx + 8], eax
jl 0x100434e0
jne 0x10043512
cmp cl, 7
jbe 0x100434e0
xor eax, eax
or ebp, dword [esp + 0x30]
movzx esi, byte [esp + 4]
movzx edi, byte [esp + 0x28]
mov ecx, dword [esp]
sete al
push esi
push eax
push edi
call fcn.101aa7b0
add esp, 0x20
jmp 0x1004361e
mov edi, dword [esp + 0x34]
cmp byte [esp + 4], 0
je 0x10043552
lea eax, [edi + ebx]
sar eax, 0x1f
add eax, 0x80000000
add edi, ebx
jmp 0x10043560
xor eax, eax
cmp edi, ebx
setns al
add eax, 0x7fffffff
sub edi, ebx
cmovo edi, eax
mov eax, dword [esp + 0x30]
movd xmm1, ebp
movd xmm0, eax
mov eax, edi
punpckldq xmm1, xmm0
neg eax
punpckldq xmm1, xmmword [0x101b28b0]
cmovs eax, edi
cmp eax, 0x135
subpd xmm1, xmmword [0x101b28c0]
movapd xmm0, xmm1
unpckhpd xmm0, xmm1
addsd xmm0, xmm1
jb 0x10043623
movsd xmm2, qword [0x101b28d0]
mov esi, dword [esp]
xorpd xmm1, xmm1
ucomisd xmm0, xmm1
jne 0x100435b8
jnp 0x10043603
test edi, edi
jns 0x1004366e
divsd xmm0, xmm2
add edi, 0x134
mov eax, edi
neg eax
cmovs eax, edi
cmp eax, 0x134
ja 0x100435b0
mov ecx, dword [0x10262064]
test edi, edi
movsd xmm1, qword [ecx + eax*8]
js 0x10043635
mulsd xmm0, xmm1
ucomisd xmm0, qword [0x101b28d8]
jae 0x1004366e
movsd xmm1, qword [0x101b28e0]
ucomisd xmm1, xmm0
jae 0x1004366e
cmp byte [esp + 0x28], 0
jne 0x10043612
xorpd xmm0, xmmword [0x101b28f0]
movsd qword [esi + 8], xmm0
xor eax, eax
mov dword [esi], eax
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret
mov esi, dword [esp]
mov ecx, dword [0x10262064]
test edi, edi
movsd xmm1, qword [ecx + eax*8]
jns 0x100435e7
divsd xmm0, xmm1
cmp byte [esp + 0x28], 0
je 0x1004360a
jmp 0x10043612
mov dword [esp + 8], 5
jmp 0x10043654
mov dword [esp + 8], 0xc
lea eax, [esp + 8]
push eax
push edx
call fcn.101aa840
add esp, 8
mov dword [ebp + 4], eax
mov dword [ebp], 1
jmp 0x1004361b
lea eax, [esp + 8]
mov dword [esp + 8], 0xd
push eax
push edx
call fcn.101aa840
add esp, 8
mov dword [esi + 4], eax
mov eax, 1
jmp 0x10043619
Function at 0x10052d10
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebx
push edi
push esi
sub esp, 0x98
mov esi, dword [esp + 0xac]
push dword [esp + 0xa8]
call fcn.1016b2f0
add esp, 4
lea ecx, [esp + 0x44]
push edx
push eax
push ecx
call fcn.10164a30
add esp, 0xc
push esi
call fcn.1016b2f0
add esp, 4
lea ecx, [esp + 0x24]
push edx
push eax
push ecx
call fcn.10164a30
add esp, 0xc
mov edi, dword [esp + 0x48]
mov esi, dword [esp + 0x28]
movzx edx, byte [esp + 0x40]
mov ah, byte [esp + 0x41]
mov bh, byte [esp + 0x60]
mov ch, byte [esp + 0x61]
mov bl, byte [esp + 0x4c]
cmp edi, esi
mov byte [esp + 3], dl
mov byte [esp + 2], ah
jne 0x10052dc0
cmp bh, dl
jne 0x10052dc0
cmp ch, 2
jne 0x10052dc0
cmp ah, 2
jne 0x10052dc0
cmp bl, 3
setae al
cmp byte [esp + 0x2c], 3
setb cl
xor cl, al
je 0x10052dc0
push edi
push dword [esp + 0x28]
push dword [esp + 0x4c]
mov byte [esp + 0xd], ch
call fcn.10193bb4
mov ch, byte [esp + 0xd]
add esp, 0xc
test eax, eax
je 0x10052ece
mov eax, dword [esp + 0x44]
cmp bl, 6
je 0x10052ded
mov dl, ch
mov ecx, dword [esp + 0x5c]
movsd xmm0, qword [esp + 0x4d]
movsd xmm1, qword [esp + 0x55]
mov dword [esp + 0x13], ecx
mov ch, dl
movsd qword [esp + 0xc], xmm1
movsd qword [esp + 4], xmm0
movsd xmm0, qword [esp + 4]
movsd xmm1, qword [esp + 0xc]
mov edx, dword [esp + 0x13]
mov cl, byte [esp + 0x62]
movsd qword [esp + 0x89], xmm1
movsd qword [esp + 0x81], xmm0
mov dword [esp + 0x90], edx
mov dword [esp + 0x78], eax
movzx eax, byte [esp + 0x2c]
mov dword [esp + 0x7c], edi
mov byte [esp + 0x80], bl
mov byte [esp + 0x94], bh
mov byte [esp + 0x95], ch
mov byte [esp + 0x96], cl
mov ecx, dword [esp + 0x24]
cmp al, 6
je 0x10052e6b
mov edx, dword [esp + 0x3c]
movsd xmm0, qword [esp + 0x2d]
movsd xmm1, qword [esp + 0x35]
mov dword [esp + 0x73], edx
movsd qword [esp + 0x6c], xmm1
movsd qword [esp + 0x64], xmm0
movsd xmm0, qword [esp + 0x64]
movsd xmm1, qword [esp + 0x6c]
mov edi, dword [esp + 0x73]
movzx edx, byte [esp + 0x42]
movsd qword [esp + 0x15], xmm1
movsd qword [esp + 0xd], xmm0
mov dword [esp + 0x1c], edi
mov dword [esp + 4], ecx
mov dword [esp + 8], esi
mov byte [esp + 0xc], al
movzx eax, byte [esp + 3]
lea ecx, [esp + 0x78]
mov byte [esp + 0x20], al
movzx eax, byte [esp + 2]
mov byte [esp + 0x21], al
lea eax, [esp + 4]
mov byte [esp + 0x22], dl
push eax
push ecx
call fcn.10092fd0
add esp, 8
add esp, 0x98
pop esi
pop edi
pop ebx
ret
mov al, 1
jmp 0x10052ec4