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

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x1a8
mov eax, 0x407468
push ebx
push ebp
push esi
push edi
xor ebp, ebp
cmp ecx, dword [eax]
je 0x403cf4
add eax, 8
inc ebp
cmp eax, 0x4074f8
jb 0x403ce5
cmp ecx, dword [ebp*8 + 0x407468]
jne 0x403e9b
mov eax, dword [0x409a00]
cmp eax, 1
je 0x403e5d
test eax, eax
jne 0x403d20
cmp dword [0x407154], 1
je 0x403e5d
cmp ecx, 0xfc
je 0x403e9b
lea eax, [esp + 0xb4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x403d5b
mov ecx, 5
mov esi, str._program_name_unknown_
lea edi, [esp + 0xb4]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
xor eax, eax
lea ebx, [esp + 0xb4]
repne scasb al, byte es:[edi]
not ecx
cmp ecx, 0x3c
jbe 0x403da4
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 3
mov ebx, ecx
lea ecx, [esp + 0xb8]
sub ecx, 0x3b
push 0x406450
add ebx, ecx
push ebx
call fcn.00404810
add esp, 0xc
mov ecx, 6
mov esi, str.Runtime_Error__n_nProgram:
lea edi, [esp + 0x14]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
or ecx, 0xffffffff
mov edi, ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x14]
mov ebx, ecx
mov esi, edi
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x14]
and ecx, 3
push 0x12010
rep movsb byte es:[edi], byte [esi]
mov edi, 0x406430
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push str.Microsoft_Visual_C_Runtime_Library
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x1c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp*8 + 0x40746c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x1c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.00405130
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
mov eax, dword [0x40ae00]
test eax, eax
je 0x403e6e
mov esi, dword [eax + 0x10]
cmp esi, 0xffffffff
jne 0x403e78
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
mov edx, dword [ebp*8 + 0x40746c]
lea ecx, [esp + 0x10]
push 0
push ecx
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
Function at 0x403f70
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [0x40af00]
sub esp, 0x41c
cmp eax, ecx
push ebx
push ebp
push esi
push edi
jae 0x40411d
mov ecx, eax
mov esi, eax
sar ecx, 5
and esi, 0x1f
mov edx, dword [ecx*4 + 0x40ae00]
lea edi, [ecx*4 + 0x40ae00]
shl esi, 3
mov dword [esp + 0x24], edi
mov dword [esp + 0x14], esi
mov cl, byte [esi + edx + 4]
test cl, 1
je 0x40411d
mov ebx, dword [esp + 0x438]
xor ebp, ebp
cmp ebx, ebp
mov dword [esp + 0x10], ebp
mov dword [esp + 0x20], ebp
jne 0x403fde
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
test cl, 0x20
je 0x403fef
push 2
push ebp
push eax
call fcn.00403eb0
add esp, 0xc
mov eax, dword [edi]
add eax, esi
test byte [eax + 4], 0x80
je 0x40414e
mov ebp, dword [esp + 0x434]
mov dword [esp + 0x18], 0
test ebx, ebx
mov edi, ebp
jbe 0x404099
lea eax, [esp + 0x28]
mov ecx, edi
sub ecx, ebp
cmp ecx, ebx
jae 0x40404a
mov cl, byte [edi]
inc edi
cmp cl, 0xa
jne 0x404037
mov esi, dword [esp + 0x20]
mov byte [eax], 0xd
inc esi
inc eax
mov dword [esp + 0x20], esi
mov byte [eax], cl
inc eax
mov edx, eax
lea ecx, [esp + 0x28]
sub edx, ecx
cmp edx, 0x400
jl 0x40401a
mov esi, eax
lea edx, [esp + 0x28]
lea eax, [esp + 0x1c]
sub esi, edx
mov edx, dword [esp + 0x24]
push 0
push eax
lea ecx, [esp + 0x30]
mov eax, dword [edx]
push esi
push ecx
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx + eax]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40413f
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
add edx, eax
cmp eax, esi
mov dword [esp + 0x10], edx
jl 0x404095
mov eax, edi
sub eax, ebp
cmp eax, ebx
jb 0x404016
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x40410e
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4040e2
cmp eax, 5
jne 0x4040cb
mov dword [0x409c2c], eax
mov dword [0x409c28], 9
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
push eax
call fcn.00403120
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx]
test byte [esi + edx + 4], 0x40
je 0x404102
cmp byte [ebp], 0x1a
jne 0x404102
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov dword [0x409c28], 0x1c
jmp 0x404127
sub eax, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov dword [0x409c28], 9
pop edi
pop esi
pop ebp
mov dword [0x409c2c], 0
or eax, 0xffffffff
pop ebx
add esp, 0x41c
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x18], eax
jmp 0x404095
mov edx, dword [eax]
lea ecx, [esp + 0x1c]
push ebp
mov ebp, dword [esp + 0x438]
push ecx
push ebx
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40417f
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], eax
jmp 0x404099
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x18], eax
jmp 0x404099
Function at 0x100ee002
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x101ba1e8]
jne 0x100ee00c
repz ret
jmp fcn.100f75ba

Function at 0x100f8d2f
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.100eb946
and dword [ebp - 4], 0
cmp dword [0x101bbcb4], 0
mov ebx, eax
jne 0x100f8de0
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x100f8e91
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x100f8e91
push eax
call fcn.100eb8d4
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x101bbcb4], eax
call esi
push eax
call fcn.100eb8d4
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x101bbcb8], eax
call esi
push eax
call fcn.100eb8d4
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x101bbcbc], eax
call esi
push eax
call fcn.100eb8d4
pop ecx
mov dword [0x101bbcc4], eax
test eax, eax
je 0x100f8de0
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.100eb8d4
pop ecx
mov dword [0x101bbcc0], eax
mov eax, dword [0x101bbcc0]
cmp eax, ebx
je 0x100f8e38
cmp dword [0x101bbcc4], ebx
je 0x100f8e38
push eax
call fcn.100eb94f
push dword [0x101bbcc4]
mov esi, eax
call fcn.100eb94f
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x100f8e38
test edi, edi
je 0x100f8e38
call esi
test eax, eax
je 0x100f8e2f
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x100f8e2f
test byte [ebp - 0xc], 1
jne 0x100f8e38
or dword [ebp + 0x10], 0x200000
jmp 0x100f8e71
mov eax, dword [0x101bbcb8]
cmp eax, ebx
je 0x100f8e71
push eax
call fcn.100eb94f
pop ecx
test eax, eax
je 0x100f8e71
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x100f8e71
mov eax, dword [0x101bbcbc]
cmp eax, ebx
je 0x100f8e71
push eax
call fcn.100eb94f
pop ecx
test eax, eax
je 0x100f8e71
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x101bbcb4]
call fcn.100eb94f
pop ecx
test eax, eax
je 0x100f8e91
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x100f8e93
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100fbc79
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x40
mov eax, dword [ebp + 8]
mov ecx, dword [0x101b9648]
add ecx, 0x205c
mov dword [0x101b9644], ecx
mov dword [0x101b9648], 0x879
mov dword [ebp - 0x10], eax
call fcn.100fd06c
xor ecx, ecx
mov edx, eax
mov dword [0x101b9644], 0xfffff7a8
mov esi, dword [eax + 0x3c]
mov dword [0x101b9648], 0x2416
mov dword [0x101b9644], 0x1348
mov esi, dword [eax + esi + 0x78]
mov edi, edx
add edi, dword [eax + esi + 0x20]
mov ebx, dword [eax + esi + 0x24]
mov dword [0x101b9644], 0x254a
mov eax, dword [eax + esi + 0x18]
cmp eax, 0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x28], ecx
je 0x100fbdf1
xor eax, eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x14]
add ecx, edx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x2c]
xor edx, edx
mov esi, dword [ebp - 0x24]
mov edi, dword [esi + eax*4]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x40], edx
mov eax, dword [ebp - 0x40]
mov ecx, eax
mov edx, dword [ebp - 0x3c]
add ecx, edx
mov esi, dword [ebp - 0x1c]
mov bl, byte [esi + ecx]
mov ecx, dword [ebp - 0x10]
mov bh, byte [ecx + eax]
cmp bl, bh
sete cl
cmp bl, 0
mov dword [ebp - 0x44], eax
mov byte [ebp - 0x45], bh
mov byte [ebp - 0x46], cl
je 0x100fbd82
mov eax, dword [ebp - 0x44]
add eax, 1
mov cl, byte [ebp - 0x45]
cmp cl, 0
setne dl
mov ch, byte [ebp - 0x46]
and ch, dl
cmp eax, 0x20
setb dl
and ch, dl
test ch, 1
mov dword [ebp - 0x40], eax
jne 0x100fbd31
mov al, byte [ebp - 0x46]
test al, 1
jne 0x100fbdc4
jmp 0x100fbd8b
mov dword [0x101b9644], 0x150d
mov eax, dword [ebp - 0x38]
add eax, 2
mov dword [ebp - 0x4c], eax
xor eax, eax
mov ecx, dword [ebp - 0x34]
add ecx, 1
mov edx, dword [ebp - 0x18]
cmp ecx, edx
mov esi, dword [ebp - 0x4c]
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], eax
jb 0x100fbd17
jmp 0x100fbdf1
mov eax, dword [ebp - 0x38]
movzx ecx, word [eax]
mov dword [0x101b9648], 0x2552
mov edx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x20]
add edx, dword [edx + esi + 0x1c]
mov edi, dword [ebp - 0x1c]
add edi, dword [edx + ecx*4]
mov dword [0x101b9644], 0xfffff15b
mov dword [ebp - 0x28], edi
mov eax, dword [ebp - 0x28]
add esp, 0x40
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x100fbe99
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0x50
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
xor edx, edx
mov dword [0x101b9644], 0x204b
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x30], edx
mov eax, dword [ebp - 0x30]
mov cl, byte [eax + 0x101ab5f4]
mov dl, byte [eax + 0x101ab5c5]
sub dl, cl
mov byte [ebp + eax - 0x24], dl
add eax, 1
cmp eax, 0xe
mov dword [ebp - 0x30], eax
jne 0x100fbebb
lea eax, [ebp - 0x24]
mov dword [0x101b9648], 0x1bbe
mov dword [0x101b9644], 0x14
mov dword [ebp - 0x34], eax
call fcn.100fc602
mov dword [esp], eax
mov eax, dword [ebp - 0x34]
mov dword [esp + 4], eax
call fcn.100fc283
mov dword [0x101b9644], 0xeeb
mov dword [0x101b9648], 0xfffffe15
cmp eax, 0
mov dword [ebp - 0x38], eax
je 0x100fbfe1
mov eax, dword [ebp - 0x38]
mov dword [0x101b9644], 0x2578
mov ecx, esp
mov dword [ecx + 0xc], 0x40
mov dword [ecx + 8], 0x1000
mov dword [ecx + 4], 0x6000
mov dword [ecx], 0
call eax
sub esp, 0x10
mov dword [esp], eax
mov ecx, dword [ebp - 0x28]
mov dword [esp + 4], ecx
mov dword [ebp - 0x3c], eax
call fcn.100fbfe9
xor eax, eax
mov dword [0x101b9648], 0x145b
mov ecx, dword [ebp - 0x3c]
mov word [ecx], 0x5a4d
mov dword [ecx + 0x3c], 0xd0
mov dword [ecx + 0xd0], 0x4550
add ecx, 0xffc00000
mov edx, dword [ebp - 0x2c]
mov dword [edx + 4], ecx
mov ecx, dword [ebp - 0x3c]
mov dword [edx + 0x2c], ecx
mov esi, dword [0x101b9648]
add esi, 0xffffec67
mov dword [0x101b9644], esi
add ecx, 0x1b88
mov esi, dword [ebp - 0x3c]
cmp esi, 0
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x44], eax
je 0x100fbfd8
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
add esp, 0x50
pop esi
pop ebp
ret
xor eax, eax
add esp, 0x50
pop esi
pop ebp
ret
Function at 0x100fc0fd
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x24
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
xor esi, esi
mov dword [0x101b9650], 0
mov byte [0x101b9654], 0
mov dword [0x101b9648], 0x2449
mov dword [0x101b9644], 0x109e
mov dword [0x101b964c], 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
jmp 0x100fc16b
xor eax, eax
mov ecx, dword [ebp - 0x20]
add ecx, 0x1d78
mov dword [0x101b964c], 0
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x28], eax
jmp 0x100fc1b7
mov eax, dword [ebp - 0x1c]
mov dword [0x101b9648], 0x206
mov ecx, eax
mov dl, cl
mov ecx, dword [ebp - 0x18]
mov byte [ecx + eax], dl
mov eax, dword [0x101b9644]
mov esi, eax
add esi, 0xfffff9d0
mov dword [0x101b9644], esi
mov esi, dword [0x101b964c]
add esi, 1
mov dword [0x101b964c], esi
cmp esi, 0x100
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], esi
jl 0x100fc16b
jmp 0x100fc14e
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x24]
mov edx, 0x3a46
mov esi, 0x100
mov dword [0x101b9658], 0
mov edi, dword [0x101b9650]
mov ebx, dword [ebp - 0x18]
movzx ebx, byte [ebx + eax]
add ebx, edi
mov dword [ebp - 0x2c], eax
xor edi, edi
mov dword [ebp - 0x30], edx
mov edx, edi
mov edi, dword [ebp - 0x10]
div edi
mov edi, dword [ebp - 0x14]
movzx edx, byte [edi + edx]
add ebx, edx
mov dword [0x101b9658], ebx
mov dword [0x101b9648], ecx
mov dword [0x101b9644], 0xe04
mov eax, ebx
cdq
idiv esi
mov dword [0x101b9650], edx
mov ecx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x2c]
mov cl, byte [ecx + esi]
mov byte [0x101b9654], cl
mov dword [0x101b9648], 0x18fd
mov ebx, dword [ebp - 0x18]
mov cl, byte [ebx + edx]
mov byte [ebx + esi], cl
mov cl, byte [0x101b9654]
mov edx, dword [0x101b9650]
mov byte [ebx + edx], cl
mov dword [0x101b9644], 0x169e
mov edx, dword [0x101b964c]
add edx, 1
mov dword [0x101b964c], edx
cmp edx, 0x100
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x28], edx
jl 0x100fc1b7
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x100fccde
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 4], 0
mov dword [0x101b9648], 0x2455
mov eax, dword fs:[0x30]
mov dword [ebp - 4], eax
xor ecx, ecx
mov dword [0x101b9648], 0x15ac
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x10]
mov edx, dword [edx + 0x3c]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
cmp word [ecx + eax*2], 0
mov edx, eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], edx
je 0x100fcd49
mov eax, dword [ebp - 0x14]
add eax, 1
cmp eax, 0x104
mov ecx, eax
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x18], eax
jl 0x100fcd1c
mov eax, dword [ebp - 0x18]
xor ecx, ecx
mov edx, dword [0x101b9644]
add edx, 0xffffed2c
mov dword [0x101b9644], edx
mov edx, dword [ebp - 0xc]
cmp word [edx + eax*2 - 0x1a], 0x6c
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], ecx
jne 0x100fce4f
xor eax, eax
mov dword [0x101b9644], 0x2d1a
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x1c]
cmp word [ecx + edx*2 - 0x18], 0x6f
mov dword [ebp - 0x20], eax
jne 0x100fce4f
xor eax, eax
mov dword [0x101b9644], 0x6a7
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x1c]
cmp word [ecx + edx*2 - 0x16], 0x61
mov dword [ebp - 0x20], eax
jne 0x100fce4f
xor eax, eax
mov dword [0x101b9644], 0x468
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x1c]
cmp word [ecx + edx*2 - 0x14], 0x64
mov dword [ebp - 0x20], eax
jne 0x100fce4f
mov dword [0x101b9644], 0xffffe829
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x1c]
mov dx, word [eax + ecx*2 - 0x12]
mov word [ebp - 0x22], dx
xor eax, eax
mov cx, word [ebp - 0x22]
cmp cx, 0x64
mov dword [ebp - 0x20], eax
jne 0x100fce4f
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff8
mov dword [ebp - 0x28], eax
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x28]
cmp word [ecx + edx*2], 0x6c
mov dword [ebp - 0x20], eax
jne 0x100fce4f
xor eax, eax
mov dword [0x101b9648], 0x401
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x1c]
cmp word [ecx + edx*2 - 0xe], 0x6c
mov dword [ebp - 0x20], eax
jne 0x100fce4f
mov eax, 1
mov dword [0x101b9644], 0x2389
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
add esp, 0x28
pop ebp
ret
Function at 0x100fd1e8
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x40
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov edi, 0xffffff79
xor ebx, ebx
mov dword [ebp - 0x10], eax
mov eax, 0xfffff00e
mov dword [0x101b964c], 0
mov dword [0x101b9650], 0
mov dword [0x101b965c], 0
mov dword [ebp - 0x14], eax
mov eax, dword [0x101b9644]
add eax, 0xffffda0d
mov dword [0x101b9648], eax
mov dword [0x101b9644], 0x4ad
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x10]
cmp eax, 0
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x1c], eax
mov eax, ebx
mov dword [ebp - 0x20], eax
mov eax, ebx
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x3c], edi
je 0x100fd3c8
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x24]
mov esi, dword [ebp - 0x20]
mov edi, dword [ebp - 0x1c]
mov ebx, 0x6b6
mov dword [ebp - 0x40], eax
mov eax, 0x100
mov dword [0x101b9644], ecx
add edx, 1
mov dword [ebp - 0x44], eax
mov eax, edx
cdq
mov ecx, dword [ebp - 0x44]
idiv ecx
mov dword [0x101b964c], edx
mov ecx, dword [ebp - 0x34]
movzx ecx, byte [ecx + edx]
add ecx, esi
mov eax, ecx
mov dword [ebp - 0x48], edx
cdq
mov ecx, dword [ebp - 0x44]
idiv ecx
mov dword [0x101b9650], edx
mov esi, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x48]
mov cl, byte [esi + ecx]
mov byte [0x101b9654], cl
add edi, 0x1ab1
mov dword [0x101b9644], edi
mov cl, byte [esi + edx]
mov edx, dword [ebp - 0x48]
mov byte [esi + edx], cl
mov edi, dword [0x101b9648]
add edi, 0xffffe8ac
mov dword [0x101b9648], edi
mov cl, byte [0x101b9654]
mov edi, dword [0x101b9650]
mov byte [esi + edi], cl
mov edi, dword [0x101b964c]
movzx edi, byte [esi + edi]
mov ecx, dword [0x101b9650]
movzx ecx, byte [esi + ecx]
add ecx, edi
and ecx, 0xff
mov dword [0x101b965c], ecx
mov dword [0x101b9648], 0x3cd
mov dword [0x101b9644], 0x2296
mov cl, byte [esi + ecx]
mov edi, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x40]
mov ch, byte [edi + edx]
mov dword [0x101b9648], 0x31f
mov byte [0x101b9661], ch
mov byte [0x101b9662], cl
xor ch, cl
mov byte [0x101b9660], ch
mov edx, dword [ebp - 0x30]
mov esi, dword [ebp - 0x40]
mov byte [edx + esi], ch
mov dword [0x101b9644], 0xbea
add esi, 1
mov edx, dword [ebp - 0x10]
cmp esi, edx
mov dword [ebp - 0x4c], esi
mov dword [ebp - 0x3c], ebx
je 0x100fd3c8
mov eax, 0xfffff74b
mov ecx, dword [0x101b964c]
mov edx, dword [0x101b9650]
mov esi, dword [0x101b9648]
mov edi, dword [ebp - 0x4c]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x38], edi
jmp 0x100fd27c
mov eax, dword [ebp - 0x3c]
mov dword [0x101b9644], eax
add esp, 0x40
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x100fd3d8
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x98
mov dword [0x101b9644], 0x870
call fcn.10001070
xor ecx, ecx
cmp eax, 0
mov dword [esp + 0x24], ecx
jne 0x100fd53f
lea eax, [esp + 0x88]
lea ecx, [esp + 0x28]
mov dword [0x101b9648], 0xa27
mov dword [0x101b9644], 0x18d4
mov dword [esp], eax
mov dword [esp + 0x20], ecx
call fcn.100fc9cf
lea ecx, [0x100fc59f]
mov edx, dword [esp + 0x88]
mov dword [esp + 0x74], edx
mov dword [esp + 0x50], 0x15b200
mov edx, dword [0x101b9630]
mov dword [esp + 0x40], edx
mov edx, dword [0x101b9634]
mov dword [esp + 0x78], edx
mov edx, dword [0x101b9638]
mov dword [esp + 0x60], edx
mov edx, dword [0x101b963c]
mov dword [esp + 0x4c], edx
mov edx, dword [0x101b9640]
mov dword [esp + 0x80], edx
mov dword [0x101b9644], 0x352
mov dword [0x101b9648], 0x139f
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], ecx
mov eax, dword [esp + 0x18]
cmp word [eax], 0x5a4d
mov dword [esp + 0x14], eax
jne 0x100fd4bc
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 0x3c]
cmp dword [eax + ecx], 0x4550
mov dword [esp + 0x10], ecx
je 0x100fd4d0
mov eax, dword [esp + 0x14]
add eax, 0xfffff000
and eax, 0xfffff000
mov dword [esp + 0x18], eax
jmp 0x100fd499
mov eax, dword [esp + 0x14]
mov dword [esp + 0x30], eax
mov dword [0x101b9648], 0x2416
mov ecx, dword [esp + 0x10]
mov edx, dword [eax + ecx + 0x50]
mov dword [esp + 0x6c], edx
mov dword [0x101b9644], 0x64f
call fcn.100fccde
xor ecx, ecx
cmp eax, 0
mov dword [esp + 0xc], ecx
jne 0x100fd537
lea eax, [esp + 0x28]
mov ecx, dword [esp + 0x90]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.100fbe99
mov ecx, esp
lea edx, [esp + 0x28]
mov dword [ecx], edx
call eax
sub esp, 4
mov eax, 1
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xc]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x24]
mov esp, ebp
pop ebp
ret
Function at 0x4353f0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x22000]
push edi
jmp 0x43540a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x435411
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x435400
mov eax, 1
add ebx, ebx
jne 0x435423
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x435418
jne 0x435434
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x435418
xor ecx, ecx
sub eax, 3
jb 0x435448
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4354ba
mov ebp, eax
add ebx, ebx
jne 0x435453
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x435460
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x435484
inc ecx
add ebx, ebx
jne 0x435470
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x435465
jne 0x435481
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x435465
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4354a4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x435495
jmp 0x435406
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4354a4
add edi, ecx
jmp 0x435406
pop esi
mov edi, esi
mov ecx, 0x78e
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4354c2
cmp byte [edi], 9
jne 0x4354c2
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 0x4354c7
lea edi, [esi + 0x33000]
mov eax, dword [edi]
or eax, eax
je 0x43553f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x35e3c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x35f04]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4354f4
mov ecx, edi
jns 0x435523
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 + 0x35f08]
or eax, eax
je 0x435539
mov dword [ebx], eax
add ebx, 4
jmp 0x435511
call dword [esi + 0x35f18]
mov ebp, dword [esi + 0x35f0c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x22f]
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 0x435573
sub esp, 0xffffff80
jmp 0x409f81