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

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
lea esi, [esp + 0x24]
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_runtime_failure:_n
lea ebx, [eax + 0x40]
mov dword [esp + 0xc], ebx
call sub.msvcrt.dll_fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
lea esi, [esi]

Function at 0x401dc0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, ecx
push esi
mov esi, edx
push ebx
mov ebx, eax
sub esp, 0x4c
lea eax, [ebp - 0x34]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov dword [esp], ebx
call sub.KERNEL32.dll_VirtualQuery
sub esp, 0xc
test eax, eax
je 0x401e8b
mov eax, dword [ebp - 0x20]
cmp eax, 4
jne 0x401e11
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sub.msvcrt.dll_memcpy
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
cmp eax, 0x40
je 0x401df9
mov eax, dword [ebp - 0x28]
lea edx, [ebp - 0x38]
mov dword [esp + 0xc], edx
mov dword [esp + 8], 0x40
mov dword [ebp - 0x3c], edx
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x34]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x40], ecx
sub esp, 0x10
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sub.msvcrt.dll_memcpy
mov ecx, dword [ebp - 0x40]
cmp ecx, 4
je 0x401e09
cmp ecx, 0x40
je 0x401e09
mov eax, dword [ebp - 0x38]
mov edx, dword [ebp - 0x3c]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x28]
mov dword [esp + 0xc], edx
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x34]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.00401d70
lea esi, [esi]
lea edi, [edi]
Function at 0x403310
Capabilities:
Encode data using xor

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x12c
mov eax, dword [esp + 0x140]
test eax, eax
je 0x403490
cmp byte [eax], 0
je 0x403472
lea edi, [esp + 0x1c]
mov dword [esp + 8], 0x104
mov ebx, edi
mov dword [esp + 4], eax
mov dword [esp], edi
call sub.msvcrt.dll__fullpath
cmp byte [esp + 0x1c], 0
je 0x4033b0
mov edx, dword [ebx]
add ebx, 4
lea eax, [edx - 0x1010101]
not edx
and eax, edx
and eax, 0x80808080
je 0x403353
test eax, 0x8080
je 0x403453
add al, al
sbb ebx, 3
sub ebx, edi
movzx eax, byte [esp + ebx + 0x1b]
cmp al, 0x5c
je 0x4033d4
cmp al, 0x2f
je 0x4033d4
mov ecx, 0x5c
mov word [edi + ebx], cx
mov ebx, edi
mov edx, dword [ebx]
add ebx, 4
lea eax, [edx - 0x1010101]
not edx
and eax, edx
and eax, 0x80808080
je 0x403393
jmp 0x4033c6
mov edx, dword [ebx]
add ebx, 4
lea eax, [edx - 0x1010101]
not edx
and eax, edx
and eax, 0x80808080
je 0x4033b0
test eax, 0x8080
je 0x403448
add al, al
sbb ebx, 3
sub ebx, edi
mov edx, 0x2a
lea eax, [ebx + 0x11d]
mov word [edi + ebx], dx
mov dword [esp], eax
call sub.msvcrt.dll_malloc
test eax, eax
mov esi, eax
je 0x403481
lea ebp, [eax + 0x118]
add ebx, 2
mov dword [eax + esi*8 + 0x63], ebx
insd dword es:[edi], dx
movsb byte es:[edi], byte [esi]
insd dword es:[edi], dx
dec ecx
imul edx, edi, 0x28ad082e
sbb byte [esi], dh
ror edi, cl
insb byte es:[edi], dx
arpl word [esi], si
ret
mov ebx, 0x41fd483c
mov esp, es
mov dword [esi + esi*4 - 0x36], edx
xchg esp, eax
insb byte es:[edi], dx
invalid
xchg byte [edx - 0x6d], al
jl 0x4034b1
test byte [eax - 0xc], 0x52
pop ss
mov dword [ebx - 0x2d], eax
loope 0x40347e
shl ecx, cl
std
ljmp 0x2c30:0x94875ffe
jo 0x4034ac
xchg edi, eax
daa
arpl word [esi], cx
and byte [edx - 0x68], bl
or al, 0x51
test al, 0xb3
xchg esi, eax
pop eax
pop esi
sbb ebx, 0x5a774320
mov gs, word [edi]
pop edx
ret
mov al, 0x3d
wait
bound eax, qword [edi]
pop es
div byte [ebx - 0x7a6c8f3b]
jge 0x4034e2
lea ebx, [edx]
dec ecx
cvtps2pd xmm2, qword [esi + 0x57]
scasb al, byte es:[edi]
pop es
sub al, 0xaa
int3
sbb ch, ah
aam 0xe1
insb byte es:[edi], dx
invalid
Function at 0x401200
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x41e004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x41bda8
movzx eax, cx
mov ebx, edx
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x4012d0
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x4012d0
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x4012d0
push 0
push 0
push 2
push 0
push 0
push 0x1f01ff
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40129c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x4012bd
pop edi
cmp eax, 0x20
pop esi
sete al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401e1a
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x4012b6
push 0
lea eax, [ebp - 8]
push eax
push 1
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
inc edi
sub esi, 1
jne 0x4012a0
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401e1a
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401e1a
mov esp, ebp
pop ebp
ret
Function at 0x402819
Capabilities:
Parse pe header

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

Function at 0x4157d0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4157fd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4157fd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x10119580
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10265c68]
jne 0x1011958a
repz ret
jmp fcn.1011b509

Function at 0x1011e89f
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.1011a586
and dword [ebp - 4], 0
cmp dword [0x10267ad8], 0
mov ebx, eax
jne 0x1011e950
push 0x10244af0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x1011ea01
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x10244ae4
push edi
call esi
test eax, eax
je 0x1011ea01
push eax
call fcn.1011a514
mov dword [esp], 0x10244ad4
push edi
mov dword [0x10267ad8], eax
call esi
push eax
call fcn.1011a514
mov dword [esp], 0x10244ac0
push edi
mov dword [0x10267adc], eax
call esi
push eax
call fcn.1011a514
mov dword [esp], 0x10244aa4
push edi
mov dword [0x10267ae0], eax
call esi
push eax
call fcn.1011a514
pop ecx
mov dword [0x10267ae8], eax
test eax, eax
je 0x1011e950
push 0x10244a8c
push edi
call esi
push eax
call fcn.1011a514
pop ecx
mov dword [0x10267ae4], eax
mov eax, dword [0x10267ae4]
cmp eax, ebx
je 0x1011e9a8
cmp dword [0x10267ae8], ebx
je 0x1011e9a8
push eax
call fcn.1011a58f
push dword [0x10267ae8]
mov esi, eax
call fcn.1011a58f
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x1011e9a8
test edi, edi
je 0x1011e9a8
call esi
test eax, eax
je 0x1011e99f
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x1011e99f
test byte [ebp - 0xc], 1
jne 0x1011e9a8
or dword [ebp + 0x10], 0x200000
jmp 0x1011e9e1
mov eax, dword [0x10267adc]
cmp eax, ebx
je 0x1011e9e1
push eax
call fcn.1011a58f
pop ecx
test eax, eax
je 0x1011e9e1
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x1011e9e1
mov eax, dword [0x10267ae0]
cmp eax, ebx
je 0x1011e9e1
push eax
call fcn.1011a58f
pop ecx
test eax, eax
je 0x1011e9e1
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x10267ad8]
call fcn.1011a58f
pop ecx
test eax, eax
je 0x1011ea01
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x1011ea03
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1011f574
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x168
mov eax, dword [ebp + 8]
xor ecx, ecx
mov edx, dword [0x10265c04]
add edx, 0xfffff84d
mov dword [0x10265c04], edx
mov edx, ecx
mov dword [ebp - 0x130], eax
mov dword [ebp - 0x134], edx
mov dword [ebp - 0x138], ecx
jmp 0x1011f703
mov eax, dword [ebp - 0x13c]
mov ecx, dword [ebp - 0x140]
lea edx, section..data
imul esi, ecx, 0x150
mov edi, edx
add edi, esi
add edi, 0xc4
imul esi, ecx, 0x150
mov ebx, edx
add ebx, esi
mov esi, dword [ebp - 0x144]
add esi, eax
mov dword [ebp - 0x148], eax
imul eax, ecx, 0x150
add edx, eax
add edx, 4
add ecx, 1
mov eax, dword [edi]
mov edi, dword [ebx]
movzx edx, word [edx]
xor edx, eax
mov dword [esp], esi
mov dword [esp + 4], edi
mov dword [esp + 8], edx
mov dword [ebp - 0x14c], edx
mov dword [ebp - 0x150], ecx
call fcn.1011fb04
mov eax, dword [ebp - 0x14c]
mov ecx, dword [ebp - 0x148]
add eax, ecx
mov edx, dword [ebp - 0x150]
cmp edx, 0x183
mov dword [ebp - 0x140], edx
mov dword [ebp - 0x13c], eax
jne 0x1011f5b0
lea eax, [ebp - 0x10c]
mov dword [0x10265c08], 0x1ed
mov dword [ebp - 0x154], eax
lea eax, [0x10243985]
mov ecx, 0x20
mov edx, dword [ebp - 0x154]
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], 0x20
mov dword [ebp - 0x158], ecx
call fcn.1011fb9f
mov eax, dword [0x10265c04]
add eax, 0xfffff7bb
mov dword [0x10265c04], eax
mov eax, dword [ebp - 0x154]
mov dword [esp], eax
mov ecx, dword [ebp - 0x144]
mov dword [esp + 4], ecx
mov dword [esp + 8], ecx
mov edx, dword [ebp - 0x15c]
mov dword [esp + 0xc], edx
call fcn.10120878
xor eax, eax
mov ecx, dword [ebp - 0x144]
add ecx, 0x7dc30
mov edx, dword [ebp - 0x130]
mov dword [edx], ecx
mov dword [edx + 4], 0x12ea00
mov ecx, dword [ebp - 0x144]
add ecx, 0x72840
mov dword [edx + 8], ecx
mov dword [edx + 0xc], 0x1f50
add esp, 0x168
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ebp - 0x138]
mov ecx, dword [ebp - 0x134]
lea edx, section..data
mov esi, ecx
add esi, 1
imul edi, ecx, 0x150
mov ebx, edx
add ebx, edi
add ebx, 0xc4
imul ecx, ecx, 0x150
add edx, ecx
add edx, 4
mov ecx, dword [ebx]
movzx edx, word [edx]
xor edx, ecx
add edx, eax
cmp esi, 0x183
mov eax, edx
mov dword [ebp - 0x15c], edx
mov dword [ebp - 0x134], esi
mov dword [ebp - 0x138], eax
jne 0x1011f703
lea eax, [0x10243977]
mov ecx, 0xe
lea edx, [ebp - 0x12c]
mov esi, dword [0x10265c08]
add esi, 0x996
mov dword [0x10265c04], esi
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], 0xe
mov dword [ebp - 0x160], edx
mov dword [ebp - 0x164], ecx
call fcn.1011fd09
mov eax, dword [0x10265c08]
add eax, 0xffffde88
mov dword [0x10265c08], eax
mov dword [0x10265c04], 0xc09
call fcn.1012001f
mov dword [esp], eax
mov eax, dword [ebp - 0x160]
mov dword [esp + 4], eax
call fcn.1011f9aa
mov ecx, eax
mov dword [0x10265c24], eax
mov eax, esp
mov edx, dword [ebp - 0x15c]
mov dword [eax + 4], edx
mov dword [eax + 0xc], 4
mov dword [eax + 8], 0x1000
mov dword [eax], 0
call ecx
sub esp, 0x10
xor ecx, ecx
mov edx, ecx
mov dword [ebp - 0x144], eax
mov dword [ebp - 0x140], edx
mov dword [ebp - 0x13c], ecx
jmp 0x1011f5b0
Function at 0x1011f819
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push esi
and esp, 0xfffffff8
sub esp, 0x98
mov eax, dword [0x10265c04]
add eax, 0xfffffdcf
mov dword [0x10265c04], eax
call fcn.1000108e
mov dword [esp + 0x24], eax
xor eax, eax
mov ecx, dword [esp + 0x24]
cmp ecx, 0
mov dword [esp + 0x20], eax
je 0x1011f94f
jmp 0x1011f945
lea eax, [esp + 0x28]
mov dword [esp], eax
call fcn.1011f574
lea ecx, [0x10120a90]
mov edx, dword [esp + 0x28]
mov dword [esp + 0x44], edx
mov dword [esp + 0x50], 0x12ea00
mov edx, dword [0x10265bf0]
mov dword [esp + 0x6c], edx
mov edx, dword [0x10265bf4]
mov dword [esp + 0x5c], edx
mov edx, dword [0x10265bf8]
mov dword [esp + 0x40], edx
mov edx, dword [0x10265bfc]
mov dword [esp + 0x8c], edx
mov edx, dword [0x10265c00]
mov dword [esp + 0x60], edx
mov dword [0x10265c04], 0xfffff70e
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], ecx
jmp 0x1011f979
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 0x3c]
cmp dword [eax + ecx], 0x4550
mov dword [esp + 0x10], ecx
jne 0x1011f98c
lea eax, [esp + 0x38]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x3c], ecx
mov dword [0x10265c08], 0x2382
mov edx, dword [esp + 0x10]
mov esi, dword [ecx + edx + 0x50]
mov dword [esp + 0x4c], esi
mov dword [0x10265c04], 0x17e8
mov esi, dword [esp + 0x30]
mov dword [esp], eax
mov dword [esp + 4], esi
call fcn.10120453
mov ecx, esp
lea edx, [esp + 0x38]
mov dword [ecx], edx
call eax
sub esp, 4
mov eax, 1
mov ecx, dword [0x10265c04]
add ecx, 0xfffff71a
mov dword [0x10265c04], ecx
mov dword [esp + 0xc], eax
jmp 0x1011f9a0
mov eax, dword [esp + 0x20]
lea esp, [ebp - 4]
pop esi
pop ebp
ret
lea eax, [esp + 0x38]
mov dword [0x10265c08], 0xcff
mov dword [esp + 8], eax
call fcn.101200c3
xor ecx, ecx
cmp eax, 0
mov dword [esp + 0xc], ecx
je 0x1011f859
jmp 0x1011f9a0
mov eax, dword [esp + 0x18]
cmp word [eax], 0x5a4d
mov dword [esp + 0x14], eax
je 0x1011f8c7
mov eax, dword [esp + 0x14]
add eax, 0xfffff000
and eax, 0xfffff000
mov dword [esp + 0x18], eax
jmp 0x1011f979
mov eax, dword [esp + 0xc]
mov dword [esp + 0x20], eax
jmp 0x1011f945
Function at 0x1011fb9f
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
mov dword [0x10265c10], 0
mov byte [0x10265c14], 0
mov dword [0x10265c04], 0x2002
mov dword [0x10265c08], 0xf6c
mov dword [0x10265c0c], 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
xor eax, eax
mov dword [ebp - 0x1c], eax
jmp 0x1011fbf0
mov eax, dword [ebp - 0x1c]
mov ecx, eax
mov dl, cl
mov ecx, dword [ebp - 0x18]
mov byte [ecx + eax], dl
mov dword [0x10265c04], 0x142c
mov eax, dword [0x10265c0c]
add eax, 1
mov dword [0x10265c0c], eax
cmp eax, 0x100
mov dword [ebp - 0x1c], eax
jl 0x1011fbf0
jmp 0x1011fc39
mov eax, dword [0x10265c08]
add eax, 0xffffeb75
mov dword [0x10265c08], eax
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
xor eax, eax
mov dword [0x10265c08], 0x1a2c
mov dword [0x10265c0c], 0
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov ecx, 0x100
mov dword [0x10265c18], 0
mov edx, dword [0x10265c10]
mov esi, dword [ebp - 0x18]
movzx edi, byte [esi + eax]
add edi, edx
mov dword [ebp - 0x24], eax
xor edx, edx
mov ebx, dword [ebp - 0x10]
div ebx
mov esi, dword [ebp - 0x14]
movzx edx, byte [esi + edx]
add edi, edx
mov dword [0x10265c18], edi
mov dword [0x10265c08], 0x232c
mov eax, edi
cdq
idiv ecx
mov dword [0x10265c10], edx
mov dword [0x10265c04], 0x347
mov ecx, dword [ebp - 0x18]
mov edi, dword [ebp - 0x24]
mov cl, byte [ecx + edi]
mov byte [0x10265c14], cl
mov ecx, dword [ebp - 0x18]
mov cl, byte [ecx + edx]
mov edx, dword [ebp - 0x18]
mov byte [edx + edi], cl
mov cl, byte [0x10265c14]
mov edx, dword [0x10265c10]
mov esi, dword [ebp - 0x18]
mov byte [esi + edx], cl
mov edx, dword [0x10265c0c]
add edx, 1
mov dword [0x10265c0c], edx
cmp edx, 0x100
mov dword [ebp - 0x20], edx
jl 0x1011fc52
jmp 0x1011fc22
Function at 0x101200c3
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0x2c
mov dword [ebp - 0xc], 0
mov eax, dword fs:[0x30]
mov dword [ebp - 0xc], eax
xor ecx, ecx
mov edx, dword [ebp - 0xc]
mov edx, dword [edx + 0x10]
mov edx, dword [edx + 0x3c]
mov esi, dword [0x10265c08]
mov edi, esi
add edi, 0xffffde83
mov dword [0x10265c04], edi
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], ecx
jmp 0x10120189
mov eax, 1
mov ecx, 0xadf
mov dword [0x10265c04], 0xadf
mov edx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x24]
cmp word [edx + esi*2 - 0xe], 0x6c
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x2c], eax
je 0x10120230
jmp 0x10120172
mov eax, dword [ebp - 0x30]
add eax, 1
cmp eax, 0x104
mov ecx, eax
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x34], eax
jl 0x10120189
jmp 0x1012019f
mov eax, dword [ebp - 0x1c]
add eax, 0xffffdce0
mov dword [0x10265c04], eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x24]
cmp word [ecx + edx*2 - 0x10], 0x6c
mov dword [ebp - 0x28], eax
je 0x1012010b
mov eax, dword [ebp - 0x28]
xor ecx, ecx
add eax, 0xfffff184
mov dword [0x10265c08], eax
mov dword [ebp - 0x2c], ecx
jmp 0x10120230
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x18]
cmp word [ecx + eax*2], 0
mov edx, eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], edx
jne 0x1012013a
mov eax, dword [ebp - 0x34]
mov dword [0x10265c08], 0x9f
mov ecx, dword [ebp - 0x18]
cmp word [ecx + eax*2 - 0x1a], 0x6c
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], edx
jne 0x10120172
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x24]
cmp word [eax + ecx*2 - 0x18], 0x6f
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x28], edx
jne 0x10120172
mov dword [0x10265c08], 0x1815
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x24]
cmp word [eax + ecx*2 - 0x16], 0x61
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x28], edx
jne 0x10120172
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x24]
cmp word [eax + ecx*2 - 0x14], 0x64
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x28], edx
jne 0x10120172
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x24]
cmp word [eax + ecx*2 - 0x12], 0x64
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x28], edx
je 0x10120153
jmp 0x10120172
mov eax, dword [ebp - 0x2c]
add esp, 0x2c
pop esi
pop edi
pop ebp
ret
Function at 0x10120453
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0x50
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
lea edx, [0x10243977]
mov esi, 0xe
lea edi, [ebp - 0x28]
mov dword [esp], edi
mov dword [esp + 4], edx
mov dword [esp + 8], 0xe
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], esi
call fcn.1011fd09
mov eax, dword [0x10265c04]
add eax, 0xffffe70f
mov dword [0x10265c04], eax
call fcn.1012001f
mov dword [esp], eax
mov eax, dword [ebp - 0x34]
mov dword [esp + 4], eax
call fcn.1011f9aa
cmp eax, 0
mov dword [ebp - 0x3c], eax
jne 0x101204c5
xor eax, eax
add esp, 0x50
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp - 0x3c]
mov ecx, dword [0x10265c04]
add ecx, 0x1acf
mov dword [0x10265c04], ecx
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 - 0x2c]
mov dword [esp + 4], ecx
mov dword [ebp - 0x40], eax
call fcn.1012025c
xor eax, eax
mov ecx, dword [ebp - 0x40]
mov word [ecx], 0x5a4d
mov dword [ecx + 0x3c], 0xc0
mov dword [ecx + 0xc0], 0x4550
add ecx, 0xffc00000
mov edx, dword [ebp - 0x30]
mov dword [edx + 0x44], ecx
mov dword [0x10265c04], 0x112
mov ecx, dword [ebp - 0x40]
mov dword [edx + 0x3c], ecx
add ecx, 0x21e0
mov esi, dword [ebp - 0x40]
cmp esi, 0
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x48], eax
je 0x10120562
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x48]
add esp, 0x50
pop esi
pop edi
pop ebp
ret
Function at 0x10120706
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 [0x10265c04]
add ecx, 0x4b29
mov dword [0x10265c04], ecx
mov dword [ebp - 0x10], eax
call fcn.1011fe18
xor ecx, ecx
mov edx, eax
mov esi, dword [eax + 0x3c]
mov esi, dword [eax + esi + 0x78]
mov dword [0x10265c08], 0x47e5
mov edi, edx
add edi, dword [eax + esi + 0x20]
mov dword [0x10265c04], 0x660
mov eax, dword [eax + esi + 0x18]
cmp eax, 0
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], ecx
je 0x101207ef
jmp 0x101207fa
xor eax, eax
mov ecx, dword [ebp - 0x28]
add ecx, 1
mov edx, dword [ebp - 0x2c]
add edx, 2
mov esi, dword [ebp - 0x18]
cmp ecx, esi
mov edi, dword [ebp - 0x30]
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x24], eax
jae 0x101207ef
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x38]
mov edx, dword [ebp - 0x3c]
xor esi, esi
mov edi, dword [ebp - 0x14]
mov ebx, dword [edi + eax*4]
add edx, 0x24f8
mov dword [0x10265c04], edx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x44], esi
jmp 0x10120816
mov eax, dword [ebp - 0x2c]
movzx ecx, word [eax]
mov edx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x20]
add edx, dword [edx + esi + 0x1c]
mov dword [0x10265c04], 0xc39
mov edi, dword [ebp - 0x1c]
add edi, dword [edx + ecx*4]
mov dword [ebp - 0x24], edi
mov eax, dword [ebp - 0x24]
add esp, 0x40
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, 0x660
xor ecx, ecx
mov edx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x20]
add edx, dword [edx + esi + 0x24]
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x34], ecx
jmp 0x1012079e
mov eax, dword [ebp - 0x44]
mov ecx, eax
mov edx, dword [ebp - 0x40]
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 - 0x48], eax
mov byte [ebp - 0x49], bh
mov byte [ebp - 0x4a], cl
je 0x10120868
mov al, byte [ebp - 0x49]
cmp al, 0
setne cl
mov edx, dword [ebp - 0x48]
add edx, 1
mov ah, byte [ebp - 0x4a]
and ah, cl
cmp edx, 0x20
setb cl
and ah, cl
test ah, 1
mov dword [ebp - 0x44], edx
jne 0x10120816
mov al, byte [ebp - 0x4a]
test al, 1
jne 0x101207cc
jmp 0x10120774
Function at 0x10120878
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x34
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
xor edi, edi
mov dword [0x10265c0c], 0
mov dword [0x10265c10], 0
mov dword [0x10265c1c], 0
mov dword [0x10265c08], 0x14e0
cmp eax, 0
mov ebx, edi
mov dword [ebp - 0x10], eax
mov eax, edi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x28], edi
je 0x101209ca
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x24]
mov esi, 0x100
add eax, 1
mov edi, ecx
add edi, 1
mov dword [0x10265c04], 0xb69
mov dword [ebp - 0x2c], edx
cdq
idiv esi
mov dword [0x10265c0c], edx
mov ebx, dword [ebp - 0x20]
movzx ebx, byte [ebx + edx]
mov dword [ebp - 0x30], ecx
mov ecx, dword [ebp - 0x2c]
add ebx, ecx
mov eax, ebx
mov dword [ebp - 0x34], edx
cdq
idiv esi
mov dword [0x10265c10], edx
mov ecx, dword [ebp - 0x20]
mov esi, dword [ebp - 0x34]
mov cl, byte [ecx + esi]
mov byte [0x10265c14], cl
mov ebx, dword [ebp - 0x20]
mov cl, byte [ebx + edx]
mov byte [ebx + esi], cl
mov dword [0x10265c04], 0x226c
mov cl, byte [0x10265c14]
mov edx, dword [0x10265c10]
mov byte [ebx + edx], cl
mov edx, dword [0x10265c0c]
movzx edx, byte [ebx + edx]
mov ecx, dword [0x10265c10]
movzx ecx, byte [ebx + ecx]
add ecx, edx
and ecx, 0xff
mov dword [0x10265c1c], ecx
mov dword [0x10265c04], 0x11c5
mov edx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x30]
mov dl, byte [edx + esi]
xor dl, byte [ebx + ecx]
mov ecx, dword [ebp - 0x1c]
mov byte [ecx + esi], dl
mov ecx, dword [ebp - 0x10]
cmp edi, ecx
mov dword [ebp - 0x38], edi
je 0x101209ca
mov eax, dword [0x10265c10]
mov ecx, dword [0x10265c0c]
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x40], ecx
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x38]
mov edx, dword [ebp - 0x40]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x28], edx
jmp 0x101208db
mov dword [0x10265c08], 0xe7d
add esp, 0x34
pop esi
pop edi
pop ebx
pop ebp
ret