joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4066b2
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov edi, 0x64
mov esi, dword [ebp + 8]
jmp 0x4066f7
mov dword [ebp - 0x10], 0x61736e
mov bl, byte [ebp - 0xe]
call sub.KERNEL32.dll_GetTickCount
mov edx, 0x1a
push esi
mov ecx, edx
xor edx, edx
div ecx
lea eax, [ebp - 0x10]
push 0
push eax
add ebx, edx
push dword [ebp + 0xc]
mov byte [ebp - 0xe], bl
call sub.KERNEL32.dll_GetTempFileNameA
test eax, eax
jne 0x406702
dec edi
cmp edi, 0xffffffff
jne 0x4066c5
mov byte [esi], 0
xor esi, esi
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret 8

Function at 0x40670e
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0xc
push dword [ebp + 8]
push 0x423fa8
call fcn.00406340
push ecx
push 0x423fa8
call fcn.0040619d
add esp, 0xc
mov ebx, eax
test eax, eax
je 0x4067c3
sub esp, 0xc
push eax
call fcn.00406206
add esp, 0xc
cmp byte [0x424cf8], 0
jns 0x406786
mov al, byte [ebx]
test al, al
je 0x4067c3
cmp al, 0x5c
jne 0x406786
jmp 0x4067c3
sub esp, 0xc
push 0x423fa8
call fcn.0040613e
add esp, 0xc
test eax, eax
je 0x406774
test byte [eax], 0x10
je 0x4067c3
sub esp, 0xc
push 0x423fa8
call fcn.004062ce
add esp, 0xc
jmp 0x40678c
sub ebx, 0x423fa8
sub esp, 0xc
push 0x423fa8
call fcn.004062c5
add esp, 0xc
cmp eax, ebx
jg 0x40675b
sub esp, 0xc
push 0x423fa8
call fcn.00406303
push 0x423fa8
call sub.KERNEL32.dll_GetFileAttributesA
add esp, 0xc
inc eax
setne al
movzx eax, al
jmp 0x4067c5
xor eax, eax
mov ebx, dword [ebp - 4]
leave
ret 4

Function at 0x4067cc
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x10
mov ebx, dword [ebp + 8]
push ebx
call sub.KERNEL32.dll_GetFileAttributesA
pop edx
xor edx, edx
cmp eax, 0xffffffff
pop ecx
setne dl
neg edx
and edx, eax
push 0
push edx
push dword [ebp + 0x10]
push 0
push 1
push dword [ebp + 0xc]
push ebx
call sub.KERNEL32.dll_CreateFileA
mov ebx, dword [ebp - 4]
leave
ret 0xc

Function at 0x406804
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x10
mov ebx, dword [ebp + 8]
push ebx
call sub.KERNEL32.dll_GetFileAttributesA
add esp, 0xc
cmp eax, 0xffffffff
je 0x40682a
and eax, 0xfffffffe
push edx
push edx
push eax
push ebx
call sub.KERNEL32.dll_SetFileAttributesA
pop ebx
pop eax
mov ebx, dword [ebp - 4]
leave
ret 4
Function at 0x406897
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x28
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
push 1
call fcn.004060ef
add esp, 0xc
test eax, eax
je 0x4068c4
push edx
push 5
push ebx
push esi
call eax
pop edi
test eax, eax
jne 0x406a8a
mov dword [0x4233a8], 0x4c554e
test ebx, ebx
je 0x40690d
push ecx
push 1
push 0
push ebx
call fcn.004067cc
push edx
push edx
push eax
call sub.KERNEL32.dll_CloseHandle
push eax
push eax
push 0x400
push 0x4233a8
push ebx
call sub.KERNEL32.dll_GetShortPathNameA
add esp, 0x14
test eax, eax
je 0x406a90
cmp eax, 0x400
jg 0x406a90
push eax
push 0x400
push 0x4237a8
push esi
call sub.KERNEL32.dll_GetShortPathNameA
pop edi
test eax, eax
je 0x406a90
cmp eax, 0x400
jg 0x406a90
push 0x4237a8
push 0x4233a8
push str._s_s_r_n
push 0x423ba8
call sub.USER32.dll_wsprintfA
pop ebx
mov dword [ebp - 0x24], eax
mov eax, dword [0x424c98]
pop esi
push dword [eax + 0x128]
push 0x4237a8
call fcn.004063f7
sub esp, 0xc
push 4
push 0xc0000000
push 0x4237a8
call fcn.004067cc
add esp, 0x14
mov dword [ebp - 0x20], eax
cmp eax, 0xffffffff
je 0x406a8a
push ecx
push ecx
push 0
push eax
call sub.KERNEL32.dll_GetFileSize
mov edx, dword [ebp - 0x24]
mov ebx, eax
lea eax, [eax + edx + 0xa]
push eax
push 0x40
call sub.KERNEL32.dll_GlobalAlloc
mov esi, eax
pop eax
test esi, esi
pop edx
je 0x406a7c
sub esp, 0xc
lea eax, [ebp - 0x10]
push 0
push eax
push ebx
push esi
push dword [ebp - 0x20]
call sub.KERNEL32.dll_ReadFile
add esp, 0xc
test eax, eax
je 0x406a7c
cmp ebx, dword [ebp - 0x10]
jne 0x406a7c
push edi
push edi
push str._Rename__r_n
push esi
call fcn.00406831
pop edx
test eax, eax
pop ecx
jne 0x406a02
push eax
push eax
lea eax, [esi + ebx]
push str._Rename__r_n
push eax
call fcn.00406340
add ebx, 0xa
pop ecx
mov eax, ebx
pop edi
jmp 0x406a3b
add eax, 0xa
push edx
push edx
push 0x40a3ef
push eax
call fcn.00406831
mov edx, eax
pop edi
test edx, edx
pop eax
mov eax, ebx
je 0x406a3b
lea ecx, [edx + 1]
lea edi, [esi + ebx]
mov edx, ecx
mov dword [ebp - 0x28], edi
jmp 0x406a32
mov edi, dword [ebp - 0x24]
mov al, byte [edx]
mov byte [edi + edx], al
inc edx
cmp edx, dword [ebp - 0x28]
jb 0x406a29
mov eax, ecx
sub eax, esi
push dword [ebp - 0x24]
lea eax, [esi + eax]
push 0x423ba8
push eax
call fcn.00405feb
push 0
push 0
push 0
push dword [ebp - 0x20]
call sub.KERNEL32.dll_SetFilePointer
mov edx, dword [ebp - 0x24]
sub esp, 0xc
lea eax, [ebp - 0x10]
push 0
push eax
lea eax, [ebx + edx]
push eax
push esi
push dword [ebp - 0x20]
call sub.KERNEL32.dll_WriteFile
push esi
call sub.KERNEL32.dll_GlobalFree
add esp, 0xc
sub esp, 0xc
push dword [ebp - 0x20]
call sub.KERNEL32.dll_CloseHandle
add esp, 0xc
inc dword [0x424c48]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 8
Function at 0x406d9a
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [0x4247a8], 0x44
lea eax, [ebp - 0x10]
push eax
push 0x4247a8
push 0
push 0
push 0
push 0
push 0
push 0
push dword [ebp + 8]
push 0
call sub.KERNEL32.dll_CreateProcessA
pop edx
xor edx, edx
pop ecx
test eax, eax
je 0x406de2
sub esp, 0xc
push dword [ebp - 0xc]
call sub.KERNEL32.dll_CloseHandle
mov edx, dword [ebp - 0x10]
add esp, 0xc
mov eax, edx
leave
ret 4

Function at 0x406de8
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push esi
cmp dword [0x4247fc], 0
push ebx
mov esi, dword [ebp + 0x10]
jne 0x406e25
xor ebx, ebx
mov edx, ebx
xor ecx, ecx
mov eax, edx
inc ecx
shr edx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor edx, eax
cmp ecx, 8
jne 0x406dff
mov dword [ebx*4 + 0x4247f8], edx
inc ebx
cmp ebx, 0x100
jne 0x406dfb
mov edx, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
not edx
jmp 0x406e41
mov al, byte [ecx - 1]
xor eax, edx
movzx eax, al
shr edx, 8
xor edx, dword [eax*4 + 0x4247f8]
dec esi
inc ecx
cmp esi, 0xffffffff
jne 0x406e2f
not edx
mov eax, edx
pop ebx
pop esi
pop ebp
ret 0xc
Function at 0x1001479
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
lea eax, [ebp - 4]
push eax
push 0x20019
xor ebx, ebx
push ebx
push 0x10014f4
push 0x80000002
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10014de
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push ebx
push ebx
push 0x10014e4
push dword [ebp - 4]
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x10014d5
cmp dword [ebp - 8], 0xd2af9
sete bl
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop ebx
leave
ret

Function at 0x10015eb
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], ebx
mov byte [ebp - 1], 1
je 0x1001622
push 0x1001778
push dword [ebp + 8]
call fcn.01001590
test eax, eax
pop ecx
pop ecx
jne 0x10017c2
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push edi
lea eax, [ebp - 8]
push eax
mov edi, 0x20019
push edi
push ebx
push 0x10016e8
push 0x80000001
call esi
test eax, eax
jne 0x100168c
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
push 0x1001744
push dword [ebp - 8]
mov dword [ebp - 0xc], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x100167b
cmp dword [ebp - 0x10], 4
jne 0x100167b
cmp dword [ebp - 0x14], 1
je 0x10017c9
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [ebp - 1], bl
mov dword [ebp - 8], ebx
je 0x10016de
lea eax, [ebp - 8]
push eax
push edi
push ebx
push 0x1001714
push 0x80000002
call esi
test eax, eax
jne 0x10016de
push 4
pop esi
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
push 0x1001760
push dword [ebp - 8]
mov dword [ebp - 0xc], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x10016d5
cmp dword [ebp - 0x10], esi
jne 0x10016d5
cmp dword [ebp - 0x14], 1
jne 0x10016d5
mov byte [ebp - 1], bl
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
leave
ret 4
xor al, al
jmp 0x10016e3
mov byte [ebp - 1], bl
jmp 0x100167b

Function at 0x407e15
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42e180]
jne 0x407e1f
repz ret
jmp fcn.0040bc0c
Function at 0x101296aa
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0x28
mov eax, dword [0x101bc7ac]
add eax, 0xffffef8b
mov dword [0x101bc7ac], eax
mov dword [ebp - 8], 0
mov eax, dword fs:[0x30]
mov dword [ebp - 8], eax
xor ecx, ecx
mov edx, dword [ebp - 8]
mov edx, dword [edx + 0x10]
mov edx, dword [edx + 0x3c]
mov dword [0x101bc7ac], 0xc05
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x14], ecx
jmp 0x1012975a
xor eax, eax
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffff09e
mov dword [0x101bc7b0], ecx
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x1c]
cmp word [ecx + edx*2 - 0x16], 0x61
mov dword [ebp - 0x20], eax
je 0x101297ed
jmp 0x10129856
xor eax, eax
mov dword [0x101bc7b0], 0x16bb
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x1c]
cmp word [ecx + edx*2 - 0x12], 0x64
mov dword [ebp - 0x20], eax
je 0x10129816
jmp 0x10129856
mov eax, 1
mov dword [0x101bc7ac], 0xa8c
mov dword [ebp - 0x20], eax
jmp 0x10129856
mov eax, dword [ebp - 0x14]
mov ecx, 0x704
mov edx, dword [ebp - 0x10]
cmp word [edx + eax*2], 0
mov esi, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x2c], ecx
je 0x10129799
mov eax, 0x2c5
mov ecx, dword [ebp - 0x24]
add ecx, 1
cmp ecx, 0x104
mov edx, ecx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x2c], eax
jl 0x1012975a
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x28]
xor edx, edx
mov dword [0x101bc7b0], eax
mov dword [0x101bc7ac], 0x13bb
mov esi, dword [ebp - 0x10]
cmp word [esi + ecx*2 - 0x1a], 0x6c
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x20], edx
jne 0x10129856
xor eax, eax
mov dword [0x101bc7ac], 0xffffff7d
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x1c]
cmp word [ecx + edx*2 - 0x18], 0x6f
mov dword [ebp - 0x20], eax
je 0x101296f0
jmp 0x10129856
xor eax, eax
mov ecx, dword [ebp - 0x18]
add ecx, 0xffffca45
mov dword [0x101bc7ac], ecx
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x1c]
cmp word [ecx + edx*2 - 0x14], 0x64
mov dword [ebp - 0x20], eax
je 0x1012971c
jmp 0x10129856
xor eax, eax
mov dword [0x101bc7ac], 0xbc8
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x1c]
cmp word [ecx + edx*2 - 0x10], 0x6c
mov dword [ebp - 0x20], eax
jne 0x10129856
xor eax, eax
mov dword [0x101bc7b0], 0x1fc3
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x1c]
cmp word [ecx + edx*2 - 0xe], 0x6c
mov dword [ebp - 0x20], eax
je 0x10129743
mov eax, dword [ebp - 0x20]
add esp, 0x28
pop esi
pop ebp
ret
Function at 0x10129961
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]
xor esi, esi
mov dword [0x101bc7b8], 0
mov byte [0x101bc7bc], 0
mov edi, dword [0x101bc7ac]
add edi, 0xffffe1c8
mov dword [0x101bc7b0], edi
mov dword [0x101bc7b4], 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
mov eax, dword [ebp - 0x1c]
mov ecx, eax
mov dl, cl
mov ecx, dword [ebp - 0x18]
mov byte [ecx + eax], dl
mov eax, dword [0x101bc7b4]
add eax, 1
mov dword [0x101bc7b4], eax
cmp eax, 0x100
mov dword [ebp - 0x1c], eax
jl 0x101299ae
xor eax, eax
mov dword [0x101bc7ac], 0x2513
mov dword [0x101bc7b4], 0
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov ecx, 0x100
mov dword [0x101bc7c0], 0
mov dword [ebp - 0x24], eax
xor edx, edx
mov esi, dword [ebp - 0x10]
div esi
mov dword [0x101bc7ac], 0x134c
mov edi, dword [0x101bc7b8]
mov ebx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x24]
movzx esi, byte [ebx + esi]
add esi, edi
mov edi, dword [ebp - 0x14]
movzx edx, byte [edi + edx]
add esi, edx
mov dword [0x101bc7c0], esi
mov dword [0x101bc7b0], 0x2d7c
mov eax, esi
cdq
idiv ecx
mov dword [0x101bc7b8], edx
mov dword [0x101bc7ac], 0x13ca
mov ecx, dword [ebp - 0x24]
mov cl, byte [ebx + ecx]
mov byte [0x101bc7bc], cl
mov dword [0x101bc7b0], 0x16e8
mov cl, byte [ebx + edx]
mov edx, dword [ebp - 0x24]
mov byte [ebx + edx], cl
mov cl, byte [0x101bc7bc]
mov esi, dword [0x101bc7b8]
mov byte [ebx + esi], cl
mov esi, dword [0x101bc7ac]
add esi, 0xffffe1ee
mov dword [0x101bc7ac], esi
mov esi, dword [0x101bc7b4]
add esi, 1
mov dword [0x101bc7b4], esi
cmp esi, 0x100
mov dword [ebp - 0x20], esi
jl 0x101299ed
mov dword [0x101bc7b0], 0x1e06
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x10129ac6
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x3c
mov eax, dword [ebp + 8]
mov dword [0x101bc7b0], 0x5bf
mov dword [ebp - 0x10], eax
call fcn.1012aa37
xor ecx, ecx
mov edx, eax
mov dword [0x101bc7b0], 0x178
mov esi, dword [eax + 0x3c]
mov dword [0x101bc7ac], 0xfffff27b
mov dword [0x101bc7b0], 0xffffdbc0
mov esi, dword [eax + esi + 0x78]
mov edi, edx
add edi, dword [eax + esi + 0x20]
mov dword [0x101bc7ac], 0x1e77
mov ebx, dword [eax + esi + 0x24]
mov dword [0x101bc7b0], 0x1eb4
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 0x10129c31
jmp 0x10129b76
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 edi, dword [ebp - 0x1c]
add edi, dword [edx + ecx*4]
mov dword [0x101bc7ac], 0x351
mov dword [ebp - 0x28], edi
jmp 0x10129c31
xor eax, eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x14]
add ecx, edx
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], ecx
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x30]
xor edx, edx
mov esi, dword [ebp - 0x24]
mov edi, dword [esi + ecx*4]
mov dword [0x101bc7b0], 0x5bf
mov dword [ebp - 0x2c], 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 0x10129bfc
mov al, byte [ebp - 0x45]
cmp al, 0
setne cl
mov edx, dword [ebp - 0x44]
add edx, 1
mov ah, byte [ebp - 0x46]
and ah, cl
cmp edx, 0x20
setb cl
and ah, cl
test ah, 1
mov dword [ebp - 0x40], edx
jne 0x10129baa
mov al, byte [ebp - 0x46]
test al, 1
jne 0x10129b4e
jmp 0x10129c09
xor eax, eax
mov ecx, dword [ebp - 0x38]
add ecx, 1
mov edx, dword [ebp - 0x2c]
add edx, 2
mov esi, dword [ebp - 0x18]
cmp ecx, esi
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x28], eax
jb 0x10129b86
mov eax, dword [ebp - 0x28]
add esp, 0x3c
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x10129c74
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x50
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov edx, 0xffffffff
cmp eax, 0
sete bl
cmp ecx, 0
sete bh
mov dword [0x101bc7ac], 0x2596
and bh, bl
test bh, 1
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
jne 0x10129e8e
mov dword [0x101bc7ac], 0xa22
mov ecx, dword fs:[0x18]
mov eax, 0xf97
mov dword [0x101bc7b0], 0x259c
mov dword [0x101bc7ac], 0xf97
mov ecx, dword [ecx + 0x30]
mov ecx, dword [ecx + 0xc]
mov edx, ecx
add edx, 0x14
mov ecx, dword [ecx + 0x14]
mov dword [0x101bc7b0], 0xd98
cmp ecx, edx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x24], eax
je 0x10129e7c
jmp 0x10129d5d
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx]
mov esi, dword [ebp - 0x20]
cmp edx, esi
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], edx
je 0x10129e71
jmp 0x10129d71
mov eax, 0xfffff5fd
mov ecx, dword [ebp - 0x38]
add ecx, 1
mov edx, dword [ebp - 0x3c]
cmp ecx, edx
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x44], ecx
jb 0x10129dee
mov eax, dword [ebp - 0x40]
mov cl, byte [ebp - 0x45]
test cl, 1
mov dword [ebp - 0x28], eax
jne 0x10129e5f
jmp 0x10129d0f
mov eax, dword [ebp - 0x10]
cmp eax, 0
setne cl
mov edx, dword [ebp - 0x1c]
mov byte [ebp - 0x46], cl
mov dword [ebp - 0x34], edx
mov eax, dword [ebp - 0x34]
mov ecx, eax
add ecx, 0x24
mov edx, dword [eax + 0x28]
mov esi, dword [eax + 0x10]
mov edi, dword [ebp - 0x10]
cmp esi, edi
sete bl
mov bh, byte [ebp - 0x46]
and bh, bl
test bh, 1
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x50], edx
mov dword [ebp - 0x54], esi
jne 0x10129da2
jmp 0x10129dbc
mov dword [0x101bc7ac], 0x131b
mov eax, dword [ebp - 0x2c]
add eax, 0xfffffff8
mov dword [ebp - 0x18], eax
jmp 0x10129e8e
mov eax, 0x5bc
xor ecx, ecx
mov edx, dword [ebp - 0x4c]
mov si, word [edx]
mov dword [0x101bc7b0], 0x1b37
shr si, 1
movzx edi, si
cmp si, 0
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x44], ecx
je 0x10129d0f
mov eax, dword [ebp - 0x44]
mov ecx, 0xfffff058
mov edx, dword [ebp - 0x50]
mov si, word [edx + eax*2]
mov di, si
add di, 0xffbf
mov bx, si
add bx, 0x20
cmp di, 0x1a
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x58], ecx
mov word [ebp - 0x5a], si
mov word [ebp - 0x5c], bx
jb 0x10129e2a
mov ax, word [ebp - 0x5a]
mov word [ebp - 0x5c], ax
mov ax, word [ebp - 0x5c]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x38]
cmp word [ecx + edx*2], ax
sete bl
cmp ax, 0
sete bh
mov al, bl
xor al, 1
or bh, al
test bh, 1
mov esi, dword [ebp - 0x58]
mov byte [ebp - 0x45], bl
mov dword [ebp - 0x40], esi
jne 0x10129d49
jmp 0x10129d2a
mov dword [0x101bc7ac], 0x371
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x18], eax
jmp 0x10129e8e
mov eax, dword [ebp - 0x30]
mov dword [0x101bc7ac], eax
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
xor ecx, ecx
add eax, 0xffffe946
mov dword [0x101bc7ac], eax
mov dword [ebp - 0x18], ecx
mov eax, dword [ebp - 0x18]
add esp, 0x50
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x1012a089
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
xor edx, edx
mov dword [0x101bc7ac], 0x95b
mov dword [0x101bc7b0], 0x1bb5
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x2c], edx
jmp 0x1012a103
lea eax, [ebp - 0x20]
mov dword [0x101bc7b0], 0x245c
mov dword [0x101bc7ac], 0x1d3
mov dword [ebp - 0x30], eax
call fcn.10129f2f
mov dword [esp], eax
mov eax, dword [ebp - 0x30]
mov dword [esp + 4], eax
call fcn.1012a317
xor ecx, ecx
mov dword [0x101bc7ac], 0x1f16
cmp eax, 0
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x38], ecx
je 0x1012a1c7
jmp 0x1012a12f
mov eax, dword [ebp - 0x2c]
mov ecx, eax
add ecx, 1
mov dl, byte [eax + 0x10176a76]
mov dh, byte [eax + 0x10176a47]
sub dh, dl
mov byte [ebp + eax - 0x20], dh
cmp ecx, 0xe
mov dword [ebp - 0x2c], ecx
je 0x1012a0b6
jmp 0x1012a103
mov eax, dword [ebp - 0x34]
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 - 0x24]
mov dword [esp + 4], ecx
mov dword [ebp - 0x3c], eax
call fcn.1012a4c3
xor eax, eax
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 - 0x28]
mov dword [edx + 8], ecx
mov ecx, dword [ebp - 0x3c]
mov dword [edx + 0x24], ecx
mov dword [0x101bc7b0], 0xe7a
mov dword [0x101bc7ac], 0xfffff063
cmp ecx, 0
mov dword [ebp - 0x38], eax
je 0x1012a1c7
mov eax, dword [ebp - 0x3c]
add eax, 0x249f
mov dword [0x101bc7b0], 0xfffffc2f
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x38]
add esp, 0x4c
pop ebp
ret
Function at 0x1012abc9
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x30
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
xor edi, edi
mov ebx, 0xffffe8cf
mov dword [ebp - 0x10], eax
mov eax, dword [0x101bc7b0]
add eax, 0xa14
mov dword [0x101bc7b0], eax
mov dword [0x101bc7b4], 0
mov dword [0x101bc7b8], 0
mov dword [0x101bc7c4], 0
mov dword [0x101bc7ac], 0xffffe8cf
mov eax, dword [ebp - 0x10]
cmp eax, 0
mov eax, edi
mov dword [ebp - 0x14], eax
mov eax, edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], ebx
je 0x1012ad69
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x28]
mov esi, dword [ebp - 0x14]
mov edi, 0x100
mov ebx, edx
add ebx, 1
add ecx, 1
add eax, 0x4a0
mov dword [0x101bc7b0], 0x1e2f
mov dword [ebp - 0x30], eax
mov eax, ecx
mov dword [ebp - 0x34], edx
cdq
idiv edi
mov dword [0x101bc7b4], edx
mov ecx, dword [ebp - 0x24]
movzx ecx, byte [ecx + edx]
add ecx, esi
mov eax, ecx
mov dword [ebp - 0x38], edx
cdq
idiv edi
mov dword [0x101bc7b8], edx
mov ecx, dword [ebp - 0x24]
mov esi, dword [ebp - 0x38]
mov cl, byte [ecx + esi]
mov byte [0x101bc7bc], cl
mov edi, dword [ebp - 0x30]
mov dword [0x101bc7ac], edi
mov edi, dword [ebp - 0x24]
mov cl, byte [edi + edx]
mov byte [edi + esi], cl
mov cl, byte [0x101bc7bc]
mov edx, dword [0x101bc7b8]
mov byte [edi + edx], cl
mov dword [0x101bc7ac], 0x1311
mov edx, dword [0x101bc7b4]
movzx edx, byte [edi + edx]
mov ecx, dword [0x101bc7b8]
movzx ecx, byte [edi + ecx]
add ecx, edx
and ecx, 0xff
mov dword [0x101bc7c4], ecx
mov dword [0x101bc7ac], 0x2336
mov cl, byte [edi + ecx]
mov edx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x34]
xor cl, byte [edx + esi]
mov dword [0x101bc7ac], 0x92c
mov dword [0x101bc7b0], 0x2266
mov edx, dword [ebp - 0x20]
mov byte [edx + esi], cl
mov ecx, dword [0x101bc7b0]
add ecx, 0xffffdcd1
mov dword [0x101bc7b0], ecx
mov ecx, dword [ebp - 0x10]
cmp ebx, ecx
mov dword [ebp - 0x3c], ebx
je 0x1012ad69
mov eax, dword [0x101bc7b8]
mov ecx, dword [0x101bc7b4]
mov edx, dword [0x101bc7ac]
mov esi, dword [ebp - 0x3c]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x2c], edx
jmp 0x1012ac46
mov dword [0x101bc7ac], 0x3fc
add esp, 0x30
pop esi
pop edi
pop ebx
pop ebp
ret