joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10061690
Capabilities:
Hook routines via microsoft detours

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.10061a80
add esp, 0xc
mov dword [ebp - 4], 0
cmp dword [0x1007f0c8], 0
jne 0x100616cd
cmp dword [0x1007f0c4], 0
je 0x100616cd
mov eax, dword [0x1007f0c4]
mov dword [0x1007f0c8], eax
cmp dword [0x1007f0c8], 0
je 0x1006174a
mov ecx, dword [0x1007f0c8]
cmp dword [ecx + 8], 0
je 0x1006174a
mov edx, dword [0x1007f0c8]
mov eax, dword [edx + 8]
cmp eax, dword [ebp - 0x10]
jb 0x1006174a
mov ecx, dword [0x1007f0c8]
mov edx, dword [ecx + 8]
cmp edx, dword [ebp - 0xc]
ja 0x1006174a
mov eax, dword [0x1007f0c8]
mov ecx, dword [eax + 8]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 0x10]
jb 0x10061719
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0xc]
jbe 0x10061720
xor eax, eax
jmp 0x10061869
mov ecx, dword [0x1007f0c8]
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x40]
mov dword [ecx + 8], eax
push 0x48
push 0xcc
mov ecx, dword [ebp - 4]
push ecx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov eax, dword [ebp - 4]
jmp 0x10061869
mov edx, dword [0x1007f0c4]
mov dword [0x1007f0c8], edx
jmp 0x10061766
mov eax, dword [0x1007f0c8]
mov ecx, dword [eax + 4]
mov dword [0x1007f0c8], ecx
cmp dword [0x1007f0c8], 0
je 0x100617a6
cmp dword [0x1007f0c8], 0
je 0x100617a4
mov edx, dword [0x1007f0c8]
cmp dword [edx + 8], 0
je 0x100617a4
mov eax, dword [0x1007f0c8]
mov ecx, dword [eax + 8]
cmp ecx, dword [ebp - 0x10]
jb 0x100617a4
mov edx, dword [0x1007f0c8]
mov eax, dword [edx + 8]
cmp eax, dword [ebp - 0xc]
ja 0x100617a4
jmp 0x100616fe
jmp 0x10061758
mov ecx, dword [ebp + 8]
and ecx, 0xffff
mov edx, dword [ebp + 8]
sub edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.10061870
add esp, 0xc
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x10061867
mov eax, dword [ebp - 0x18]
mov dword [0x1007f0c8], eax
mov ecx, dword [0x1007f0c8]
mov dword [ecx], 0x52727464
mov edx, dword [0x1007f0c8]
mov dword [edx + 8], 0
mov eax, dword [0x1007f0c8]
mov ecx, dword [0x1007f0c4]
mov dword [eax + 4], ecx
mov edx, dword [0x1007f0c8]
mov dword [0x1007f0c4], edx
mov dword [ebp - 0x14], 0
mov eax, dword [0x1007f0c8]
add eax, 0x48
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0x38c
jmp 0x10061837
mov ecx, dword [ebp - 8]
sub ecx, 1
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 1
jle 0x10061857
imul edx, dword [ebp - 8], 0x48
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x14]
mov dword [eax + edx + 0x40], ecx
imul edx, dword [ebp - 8], 0x48
add edx, dword [ebp - 4]
mov dword [ebp - 0x14], edx
jmp 0x1006182e
mov eax, dword [0x1007f0c8]
mov ecx, dword [ebp - 0x14]
mov dword [eax + 8], ecx
jmp 0x100616fe
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x100625b0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x1007f0c4]
mov dword [ebp - 4], eax
jmp 0x100625c9
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
je 0x100625f0
lea eax, [ebp - 8]
push eax
push 0x40
push 0x10000
mov ecx, dword [ebp - 4]
push ecx
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
jne 0x100625ee
call sub.KERNEL32.dll_GetLastError
jmp 0x100625f2
jmp 0x100625c0
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x10062a90
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 8], 0
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [0x1007f0d4], eax
je 0x10062ab4
mov eax, 0x10dd
jmp 0x10062c5c
cmp dword [0x1007f0d8], 0
je 0x10062ac7
mov eax, dword [0x1007f0d8]
jmp 0x10062c5c
cmp dword [ebp + 0xc], 0
jne 0x10062ad7
mov eax, 0x57
jmp 0x10062c5c
cmp dword [ebp + 8], 0
jne 0x10062ae7
mov eax, 6
jmp 0x10062c5c
mov eax, dword [ebp + 8]
cmp dword [eax], 0
jne 0x10062b10
mov dword [ebp - 8], 6
mov ecx, dword [ebp - 8]
mov dword [0x1007f0d8], ecx
mov edx, dword [ebp + 8]
mov dword [0x1007f0dc], edx
mov eax, dword [ebp - 8]
jmp 0x10062c5c
push 0x18
call fcn.10064172
add esp, 4
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x10062b6b
mov dword [ebp - 8], 8
mov ecx, dword [ebp - 8]
mov dword [0x1007f0d8], ecx
cmp dword [ebp - 4], 0
je 0x10062b5a
mov edx, dword [ebp - 4]
mov dword [ebp - 0x20], edx
push 0x18
mov eax, dword [ebp - 0x20]
push eax
call fcn.100641c5
add esp, 8
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 8]
mov dword [0x1007f0dc], ecx
mov eax, dword [ebp - 8]
jmp 0x10062c5c
push 0
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
call fcn.10062a70
mov dword [ebp - 0x10], eax
push 0
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.10062a70
mov dword [ebp + 0xc], eax
mov edx, dword [ebp - 0x10]
movzx eax, byte [edx + 0x36]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x40]
sub edx, dword [ebp - 0xc]
mov dword [ebp - 0x14], edx
cmp dword [ebp - 0xc], 0
je 0x10062bab
cmp dword [ebp - 0xc], 0x1e
jbe 0x10062bc7
mov dword [ebp - 8], 9
cmp dword [0x1007f0cc], 0
je 0x10062bc2
jmp 0x10062b39
jmp 0x10062b30
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x44]
cmp ecx, dword [ebp + 0xc]
je 0x10062bee
mov dword [ebp - 8], 9
cmp dword [0x1007f0cc], 0
je 0x10062be9
jmp 0x10062b39
jmp 0x10062b30
mov dword [ebp - 0x18], 0
lea edx, [ebp - 0x18]
push edx
push 0x40
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
jne 0x10062c19
call sub.KERNEL32.dll_GetLastError
mov dword [ebp - 8], eax
jmp 0x10062b30
mov edx, dword [ebp - 4]
mov dword [edx + 4], 1
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov dword [eax + 8], ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
mov dword [edx + 0x10], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x14]
mov dword [ecx + 0xc], edx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x18]
mov dword [eax + 0x14], ecx
mov edx, dword [ebp - 4]
mov eax, dword [0x1007f0e4]
mov dword [edx], eax
mov ecx, dword [ebp - 4]
mov dword [0x1007f0e4], ecx
xor eax, eax
mov esp, ebp
pop ebp
ret 8
Function at 0x10062c70
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [0x1007f0d4], eax
je 0x10062c8d
mov eax, 0x10dd
jmp 0x10062d70
mov eax, dword [0x1007f0e4]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x10062d0c
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x14]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x10]
movzx eax, byte [edx + 0x36]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0xc]
push edx
call sub.KERNEL32.dll_VirtualProtect
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
jne 0x10062ce8
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x10], 0
je 0x10062ce8
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x10]
push eax
call fcn.10061b10
add esp, 4
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x10], 0
mov edx, dword [ebp - 4]
mov eax, dword [edx]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 4]
mov dword [ebp - 0xc], ecx
push 0x18
mov edx, dword [ebp - 0xc]
push edx
call fcn.100641c5
add esp, 8
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], eax
jmp 0x10062c95
mov dword [0x1007f0e4], 0
call fcn.100623f0
mov ecx, dword [0x1007f0e0]
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0
je 0x10062d5a
mov edx, dword [ebp - 8]
mov eax, dword [edx + 4]
push eax
call sub.KERNEL32.dll_ResumeThread
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
push 8
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.100641c5
add esp, 8
mov edx, dword [ebp - 0x18]
mov dword [ebp - 8], edx
jmp 0x10062d24
mov dword [0x1007f0e0], 0
mov dword [0x1007f0d4], 0
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x10063250
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [0x1007f0d8], 0
je 0x10063269
mov eax, dword [0x1007f0d8]
jmp 0x10063308
call sub.KERNEL32.dll_GetCurrentThread
cmp dword [ebp + 8], eax
jne 0x1006327a
xor eax, eax
jmp 0x10063308
push 8
call fcn.10064172
add esp, 4
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x100632d2
mov dword [ebp - 8], 8
cmp dword [ebp - 4], 0
je 0x100632bb
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x10], ecx
push 8
mov edx, dword [ebp - 0x10]
push edx
call fcn.100641c5
add esp, 8
mov dword [ebp - 4], 0
mov eax, dword [ebp - 8]
mov dword [0x1007f0d8], eax
mov dword [0x1007f0dc], 0
mov eax, dword [ebp - 8]
jmp 0x10063308
mov ecx, dword [ebp + 8]
push ecx
call sub.KERNEL32.dll_SuspendThread
cmp eax, 0xffffffff
jne 0x100632ea
call sub.KERNEL32.dll_GetLastError
mov dword [ebp - 8], eax
jmp 0x1006329a
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
mov dword [edx + 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [0x1007f0e0]
mov dword [ecx], edx
mov eax, dword [ebp - 4]
mov dword [0x1007f0e0], eax
xor eax, eax
mov esp, ebp
pop ebp
ret 4
Function at 0x4a14f4
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4a15cd
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x4a15e8
push ebx
push 0x4a15f8
push esi
lea eax, [ebp - 4]
mov edx, 4
call fcn.0040a768
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x44
call fcn.004077c0
mov dword [ebp - 0x48], 0x44
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.0040a494
push eax
push 0
call sub.kernel32.dll_CreateProcessW
test eax, eax
jne 0x4a1576
mov ax, 0x83
call fcn.004a1118
mov eax, dword [ebp - 0x54]
push eax
call sub.kernel32.dll_CloseHandle
call fcn.004a14c8
push 0x1cff
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x58]
push eax
push 1
call sub.user32.dll_MsgWaitForMultipleObjects
cmp eax, 1
je 0x4a157f
call fcn.004a14c8
push edi
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_GetExitCodeProcess
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a15d4
lea eax, [ebp - 4]
call fcn.00409a3c
pop eax
jmp eax

Function at 0x4a16e8
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffb4
mov dword [esp], eax
lea esi, [esp + 0x30]
lea eax, [esp + 0xc]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edi, dword [esp]
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x4a17b1
jmp 0x4a17a5
cmp dword [esi + 0x10], 0x1000
jne 0x4a1793
test byte [esi + 0x15], 1
jne 0x4a1793
mov byte [esp + 4], 0
mov ebp, dword [esi + 0x14]
cmp ebp, 1
je 0x4a1744
cmp ebp, 2
je 0x4a1744
cmp ebp, 0x10
je 0x4a1744
cmp ebp, 0x20
jne 0x4a1760
lea eax, [esp + 8]
push eax
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x4a1760
mov byte [esp + 4], 1
xor ebx, ebx
jmp 0x4a1771
mov eax, dword [esi]
add eax, ebx
call fcn.004a16e0
add ebx, dword [esp + 0x10]
cmp ebx, dword [esi + 0xc]
jb 0x4a1764
cmp byte [esp + 4], 0
je 0x4a1793
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 0xc]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov edi, dword [esi]
add edi, dword [esi + 0xc]
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x4a17b1
mov eax, dword [esi + 4]
cmp eax, dword [esp]
je 0x4a1719
add esp, 0x4c
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x40ed70
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
mov edi, 0x40eae0
sub esp, 4
mov dword [esp], 0xc2ea9f26
pop eax
inc esi
call fcn.0040eda1
mov eax, 0xc8cc01bb
xor dword [ebx], edi
add esi, 0x7f30a3f4
and esi, eax
inc ebx
cmp ebx, ecx
jne fcn.0040ed70
sub esi, 0x83ea3c47
ret
Function at 0x432005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
call 0x43200c
pop eax
nop
nop
nop
nop
nop
nop
add eax, 0x40729f
sub eax, 0x407245
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x432030
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
jne 0x43201e
nop
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x4024ed
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x2c
mov eax, dword [0x49a0c0]
xor eax, esp
mov dword [esp + 0x24], eax
push ebx
push ebp
push esi
mov esi, dword [0x4f06e0]
xor ebx, ebx
push edi
mov dword [esp + 0x14], edx
mov eax, dword [esi + 0x3c]
mov ebp, dword [eax + esi + 0x78]
add ebp, esi
mov edi, dword [ebp + 0x20]
mov eax, dword [ebp + 0x18]
add edi, esi
mov dword [esp + 0x18], eax
test eax, eax
je 0x402554
mov eax, dword [edi]
lea ecx, [esp + 0x1c]
add eax, esi
push eax
call fcn.0040342a
lea ecx, [esp + 0x1c]
call fcn.004020f3
cmp eax, dword [esp + 0x14]
je 0x40256c
lea ecx, [esp + 0x1c]
add edi, 4
call fcn.00404312
inc ebx
cmp ebx, dword [esp + 0x18]
jb 0x402524
xor edi, edi
mov ecx, dword [esp + 0x34]
lea eax, [esi + edi]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0042d331
add esp, 0x2c
ret
mov eax, dword [ebp + 0x24]
lea eax, [eax + ebx*2]
movzx ecx, word [eax + esi]
mov eax, dword [ebp + 0x1c]
lea eax, [eax + ecx*4]
mov edi, dword [eax + esi]
lea ecx, [esp + 0x1c]
call fcn.00404312
jmp 0x402556

Function at 0x402610
Capabilities:
Access peb ldr_data
Delete file
Get kernel32 base address
Get number of processors

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xb4
push ebx
push esi
push edi
mov edi, dword fs:[0x30]
mov edi, dword [edi + 0xc]
mov esi, dword [edi + 0xc]
mov eax, dword [esi]
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
mov dword [0x4f06e0], eax
push 0x27
mov ebx, 0x4edbb0
mov edx, 0x547
push 0x49ab80
mov ecx, ebx
call fcn.00401f18
push 1
push 0x492e6c
call fcn.0040113f
mov edx, 0x8aafdc01
call fcn.004024ed
lea ecx, [esp + 0x20]
mov edi, eax
call fcn.00403172
push 0x64
pop esi
lea ecx, [esp + 0x10]
call fcn.004051cb
push eax
call fcn.00405199
pop ecx
sub esi, 1
jne 0x402674
lea ecx, [esp + 0x10]
call fcn.004030ff
push str.static.lib
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [esp + 0xc]
push eax
push 0x40
push 0x4e4
push ebx
call edi
test eax, eax
je 0x4026b5
call fcn.004025ab
lea ecx, [esp + 0x10]
call fcn.004026c9
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x46f6c4
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0046f2ab

Function at 0x46fbf2
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0042e850
mov eax, dword [0x49a0c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.00469882
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x46fc34
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x46fd90
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00484f10
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x4f0280]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00471a10
mov ecx, dword [esi*4 + 0x4f0280]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x46fd89
cmp eax, dword [edi + ecx + 0x24]
jne 0x46fd89
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x46fd89
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00471a10
add esp, 0x14
test edx, edx
jl 0x46fd89
jg 0x46fcff
test eax, eax
jb 0x46fd89
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x46fd89
jl 0x46fd19
cmp dword [ebp - 0x1008], eax
ja 0x46fd89
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x46fd37
test ebx, ebx
je 0x46fd70
cmp ecx, edi
jae 0x46fd70
mov al, byte [ecx]
cmp al, 0xd
jne 0x46fd51
lea eax, [edi - 1]
cmp ecx, eax
jae 0x46fd5d
cmp byte [ecx + 1], 0xa
jne 0x46fd5d
inc ecx
jmp 0x46fd5d
movzx eax, al
movsx eax, byte [eax + 0x49a3a0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x46fd37
cmp edx, ebx
jne 0x46fd37
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x46fd8e
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0042d331
leave
ret
Function at 0x470b99
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x4f0280]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x470bd9
cmp byte [ebx], 0xa
jne 0x470bd9
or byte [eax + edi + 0x28], 4
jmp 0x470bde
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x470cdc
mov al, byte [edx]
cmp al, 0x1a
je 0x470cbe
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x470c0d
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x470c32
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x470c3c
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x470bef
jmp 0x470cdc
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x470cb9
cmp dword [ebp - 0xc], 0
je 0x470cb9
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x4f0280]
test byte [eax + edi + 0x28], 0x48
je 0x470c93
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x470c7e
mov byte [esi], dl
jmp 0x470c8f
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4f0280]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x470cdc
cmp byte [ebp - 1], 0xa
jne 0x470ca2
cmp esi, ebx
jne 0x470ca2
mov byte [esi], 0xa
jmp 0x470cdb
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00471a2e
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x470cdc
mov byte [esi], 0xd
jmp 0x470cdb
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x4f0280]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x470cd8
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x470cdc
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x470ce5
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x4f0280]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x470d28
cmp word [esi], dx
jne 0x470d28
or byte [edi + eax + 0x28], 4
jmp 0x470d2d
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x470e80
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x470e60
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x470d6f
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x470da5
cmp eax, edx
jae 0x470db1
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x470d47
jmp 0x470e80
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x470e5c
cmp dword [ebp - 0x14], 0
je 0x470e5c
mov eax, dword [ebx*4 + 0x4f0280]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x470e34
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x470dfd
mov word [esi], cx
jmp 0x470e30
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x4f0280]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x4f0280]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x4f0280]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x470e80
pop ebx
cmp word [ebp - 4], bx
jne 0x470e45
cmp esi, dword [ebp + 0xc]
jne 0x470e45
mov word [esi], bx
jmp 0x470e7d
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00471a2e
add esp, 0x10
cmp word [ebp - 4], bx
je 0x470e80
push 0xd
jmp 0x470e79
mov ecx, dword [ebx*4 + 0x4f0280]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x470e77
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x470e80
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
pop eax
nop
nop
nop
nop
nop
nop
add eax, 0x403ac5
nop
sub eax, 0x403a6b
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x42e030
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
jne 0x42e01e
nop
nop
nop
popal
nop
nop
nop
jmp loc.00401219