joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43cc95
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x461890]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x43ccdb
cmp word [ebx], dx
jne 0x43ccdb
or byte [eax + edi + 0x28], 4
jmp 0x43cce0
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x43ce43
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x43ce23
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x43cd21
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x43cd57
cmp eax, edx
jae 0x43cd65
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
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 - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x43ccfc
jmp 0x43ce43
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x43ce1e
cmp dword [ebp - 0x18], 0
je 0x43ce1e
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x461890]
test byte [eax + edi + 0x28], 0x48
je 0x43cdf4
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x43cdb8
mov word [esi], cx
jmp 0x43cdef
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x461890]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x461890]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x461890]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x43ce43
pop eax
cmp word [ebp - 4], ax
jne 0x43ce04
cmp esi, ebx
jne 0x43ce04
mov word [esi], ax
jmp 0x43ce40
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0043c8f8
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x43ce43
push 0xd
pop eax
jmp 0x43cdff
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x461890]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x43ce3d
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x43ce43
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x43fc05
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x452d38
push 0x452d30
push str.FlsAlloc
push 0x1f
call fcn.0043fa70
mov esi, eax
add esp, 0x10
test esi, esi
je 0x43fc39
push dword [ebp + 8]
mov ecx, esi
call dword [0x44e170]
call esi
jmp 0x43fc3f
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x43fc83
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x452d48
push 0x452d40
push str.FlsGetValue
push 0x21
call fcn.0043fa70
mov esi, eax
add esp, 0x10
test esi, esi
je 0x43fcba
push dword [ebp + 8]
mov ecx, esi
call dword [0x44e170]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x43fcc2
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x452d50
push 0x452d48
push str.FlsSetValue
push 0x22
call fcn.0043fa70
mov esi, eax
add esp, 0x10
test esi, esi
je 0x43fcfc
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x44e170]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x442c08
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x45f040]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x442c53
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.00442da3
test al, al
jne 0x442c4d
sub edx, 2
cmp edx, edi
jne 0x442c33
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x442c75
lea eax, [edi + 2]
cmp edx, eax
je 0x442c75
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.00442b54
add esp, 0x10
jmp 0x442d6f
push esi
lea ecx, [ebp - 0x255]
call fcn.00442da3
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x442cb8
push dword [ebp - 0x25c]
jmp 0x442c65
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x442cf5
cmp word [ebp - 0x226], 0
je 0x442d16
cmp word [ebp - 0x226], ax
jne 0x442cf5
cmp word [ebp - 0x224], 0
je 0x442d16
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.00442b54
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x442d62
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x442ccf
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x442d4a
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x442d6f
push 0x442984
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00449780
add esp, 0x10
jmp 0x442d3f
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004265a4
leave
ret

Function at 0x44366c
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x44367d
pop esi
ret
push ebx
push edi
push esi
call fcn.00443635
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0043e6c0
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4436a5
push ebx
push esi
push edi
call fcn.00427db0
add esp, 0xc
push 0
call fcn.0043c44d
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x443a75
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004436ba
Function at 0x4460e2
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.0043bbef
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x446151
cmp esi, dword [ebp - 4]
je 0x44614c
cmp dword [ebp + 0xc], 0
je 0x44614c
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x446129
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.00445c34
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x446153
xor eax, eax
inc eax
jmp 0x446153
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x4461b8
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x45f040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.0043bbef
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.0043bbef
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x44622f
cmp word [ecx], dx
je 0x44622f
mov eax, dword [0x45339c]
push edi
dec eax
push eax
push 0x453288
call fcn.00446157
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x4462a2
cmp word [eax], dx
je 0x4462a2
mov eax, dword [edi]
test eax, eax
je 0x446253
cmp word [eax], dx
je 0x446253
lea eax, [ebp - 0x10]
push eax
call fcn.00445b3a
jmp 0x44625c
lea eax, [ebp - 0x10]
push eax
call fcn.00445bd5
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x4462cc
mov eax, dword [0x453284]
push dword [ebp - 0x14]
dec eax
push eax
push 0x452f78
call fcn.00446157
add esp, 0xc
test al, al
je 0x4462cc
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x446297
cmp word [eax], di
je 0x446297
lea eax, [ebp - 0x10]
push eax
call fcn.00445b3a
pop ecx
jmp 0x4462ce
lea eax, [ebp - 0x10]
push eax
call fcn.00445bd5
jmp 0x446294
mov eax, dword [edi]
test eax, eax
je 0x4462b9
cmp word [eax], dx
je 0x4462b9
lea eax, [ebp - 0x10]
push eax
call fcn.00445aef
pop ecx
jmp 0x4462cc
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x446397
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.00445fdc
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x446397
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x446397
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x446397
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x446324
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.0043fe9e
test ebx, ebx
je 0x446392
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.0043fe9e
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x446397
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x446397
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.00449e20
add esp, 0x10
xor eax, eax
inc eax
jmp 0x446399
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004265a4
leave
ret
Function at 0x449f45
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.00449ec1
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x44a0b4
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x44a0b4
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x44a069
jg 0x449fa1
test eax, eax
je 0x44a05f
push 1
push 0x1000
call fcn.0043f76e
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x449fc4
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x44a056
push 0x8000
push ebx
call fcn.00439f62
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x449fed
jg 0x449fe8
cmp ecx, 0x1000
jb 0x449fed
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.0043df4c
add esp, 0x10
cmp eax, 0xffffffff
je 0x44a032
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x449fe8
jl 0x44a019
test ecx, ecx
jne 0x449fda
push dword [ebp - 0xc]
push ebx
call fcn.00439f62
push esi
call fcn.0043c44d
add esp, 0xc
xor ebx, ebx
jmp 0x44a0c2
cmp byte [edi + 0x24], 0
je 0x44a049
cmp dword [edi + 0x20], 5
jne 0x44a049
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x44a054
mov ebx, dword [edi + 0x18]
jmp 0x44a056
xor ebx, ebx
push esi
call fcn.0043c44d
pop ecx
jmp 0x44a0c2
test ecx, ecx
jg 0x44a02b
jl 0x44a069
test eax, eax
jae 0x44a02b
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0043c8f8
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x44a089
cmp byte [edi + 0x1c], 0
je 0x44a02b
jmp 0x44a0ba
push ebx
call fcn.004440b3
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x44a02b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x44a0c2
cmp byte [edi + 0x1c], 0
je 0x44a0bf
mov ebx, dword [edi + 0x18]
jmp 0x44a0c2
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.0043c8f8
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x44b760
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x44b78d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x44b78d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x1003cb4f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
pushal
call 0x1003cb5e
pop dword [ebp - 0x4c]
mov eax, 0x958f3870
sub eax, 0x858b6d12
sub dword [ebp - 0x4c], eax
mov dword [ebp - 0x5c], 0xc937d061
add dword [ebp - 0x5c], 0x851a74ea
mov dword [ebp - 0x58], 0xca15b658
sub dword [ebp - 0x58], 0x97e26a13
mov dword [ebp - 0x54], 0xc156dc3a
add dword [ebp - 0x54], 0x8af567f4
mov dword [ebp - 0x50], 0x3da95489
add dword [ebp - 0x50], 0xc256ab77
lea eax, [ebp - 0x5c]
push eax
mov eax, 0xb272f61a
sub eax, 0xa26e273a
add eax, dword [ebp - 0x4c]
call dword [eax]
mov dword [ebp - 0x5c], 0x9ff03b93
add dword [ebp - 0x5c], 0xd4822dc3
mov dword [ebp - 0x58], 0xb050d52f
add dword [ebp - 0x58], 0x911b8c46
mov dword [ebp - 0x54], 0x22018c7e
add dword [ebp - 0x54], 0x416ddfee
mov dword [ebp - 0x50], 0x5f0dc2c7
sub dword [ebp - 0x50], 0x5f0dc2c7
lea ebx, [ebp - 0x5c]
push ebx
push eax
mov eax, 0x3b5eeaa1
add eax, 0xd4a5e3e3
add eax, dword [ebp - 0x4c]
call dword [eax]
push 0x40
push 0x1000
push 0x3ef1b
push 0
call eax
mov ecx, 0x2c5cc0fe
add ecx, 0xd3a3839b
mov ebx, eax
mov edi, 0x495ce8a
sub edi, 0xf4901a8a
add edi, dword [ebp - 0x4c]
mov edx, 0xe39f6dc1
add edx, 0x7dafc8eb
add dword [ebp - 0x20], 0x823a336e
mov esi, dword [edi]
xor dword [ebp - 8], 0x5b055021
sub esi, edx
sub dword [ebp - 0x48], ebx
mov dword [ebx], esi
add ebx, 0xcb9c0241
sub ebx, 0xcb9c023d
add edi, 0x765cbec3
sub edi, 0x765cbebf
loop 0x1003cc80
add eax, 0x74c51035
add eax, 0x8b3bf502
mov ebx, eax
add eax, 5
mov ecx, sym.libEGL.dll_Ordinal_0
add ecx, dword [ebp - 0x4c]
call ebx
leave
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0xa0f738
Capabilities:
Decompress data using aplib

Disassembly:
call 0xa0f888
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0xa0f75e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xa0f74a
add dl, dl
jne 0xa0f769
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xa0f7bc
xor eax, eax
add dl, dl
jne 0xa0f776
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xa0f85d
add dl, dl
jne 0xa0f785
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xa0f790
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xa0f79b
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xa0f7a6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0xa0f7b2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0xa0f755
mov eax, 1
add dl, dl
jne 0xa0f7ca
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xa0f7d5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xa0f7c1
sub eax, ebx
mov ebx, 1
jne 0xa0f808
mov ecx, 1
add dl, dl
jne 0xa0f7ee
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xa0f7f9
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xa0f7e5
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xa0f755
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xa0f81f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xa0f82a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xa0f816
cmp eax, 0x7d00
jae 0xa0f84d
cmp eax, 0x500
jb 0xa0f848
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xa0f755
cmp eax, 0x7f
ja 0xa0f850
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xa0f755
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0xa0f87e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0xa0f755
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x404ad0
Capabilities:
Decode data using base64 via dword translation table

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x58
mov eax, dword [0x462014]
xor eax, esp
mov dword [esp + 0x54], eax
mov eax, dword [ebp + 8]
push esi
mov esi, ecx
mov dword [esp + 0x28], edx
mov dword [esp + 0x10], esi
mov eax, dword [eax]
mov dword [esp + 0x20], esi
mov dword [esp + 0x10], esi
push edi
test eax, eax
jne 0x404b2b
push eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 0xf
push 0x45813b
mov byte [esi], al
call fcn.004179a0
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 0x54]
xor ecx, esp
call fcn.0041c8d3
mov esp, ebp
pop ebp
ret
mov ecx, eax
xor edi, edi
and ecx, 3
jne 0x404b45
cmp byte [eax + edx - 1], 0x3d
je 0x404b45
mov dword [esp + 0x18], edi
mov dword [esp + 0x20], edi
jmp 0x404b67
mov dword [esp + 0x18], 1
cmp ecx, 2
ja 0x404b5f
cmp byte [eax + edx - 2], 0x3d
jne 0x404b5f
mov dword [esp + 0x20], edi
jmp 0x404b67
mov dword [esp + 0x20], 1
sub eax, dword [esp + 0x18]
and eax, 0xfffffffc
mov dword [esp + 0x40], edi
mov ecx, eax
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x20]
shr ecx, 2
push 0
mov dword [esp + 0x48], 0xf
mov byte [esp + 0x34], 0
lea eax, [eax + ecx*2]
add eax, ecx
lea ecx, [esp + 0x34]
add eax, dword [esp + 0x1c]
push eax
call fcn.00417860
cmp dword [esp + 0x44], 0x10
lea eax, [esp + 0x30]
mov edx, dword [esp + 0x14]
cmovae eax, dword [esp + 0x30]
mov dword [esp + 0x1c], eax
test edx, edx
je 0x404c35
mov esi, dword [esp + 0x2c]
lea eax, [edx - 1]
shr eax, 2
add esi, 2
inc eax
mov dword [esp + 0x28], eax
nop dword [eax]
movzx eax, byte [esi - 2]
lea esi, [esi + 4]
mov edx, dword [esp + 0x1c]
mov ecx, dword [eax*4 + 0x458e78]
movzx eax, byte [esi - 5]
shl ecx, 6
or ecx, dword [eax*4 + 0x458e78]
movzx eax, byte [esi - 4]
shl ecx, 6
or ecx, dword [eax*4 + 0x458e78]
movzx eax, byte [esi - 3]
shl ecx, 6
or ecx, dword [eax*4 + 0x458e78]
mov eax, ecx
sar eax, 0x10
mov byte [edx + edi], al
mov eax, ecx
sar eax, 8
mov byte [edx + edi + 1], al
mov eax, edx
mov byte [eax + edi + 2], cl
add edi, 3
sub dword [esp + 0x28], 1
jne 0x404bd0
mov esi, dword [esp + 0x24]
mov edx, dword [esp + 0x14]
cmp dword [esp + 0x18], 0
je 0x404c92
mov eax, dword [esp + 0x2c]
add eax, edx
mov dword [esp + 0x24], eax
movzx ecx, byte [eax + 1]
movzx eax, byte [eax]
mov edx, dword [eax*4 + 0x458e78]
shl edx, 6
or edx, dword [ecx*4 + 0x458e78]
mov ecx, dword [esp + 0x1c]
shl edx, 0xc
mov eax, edx
sar eax, 0x10
cmp dword [esp + 0x20], 0
mov byte [ecx + edi], al
je 0x404c92
mov eax, dword [esp + 0x24]
sar edx, 8
movzx eax, byte [eax + 2]
mov eax, dword [eax*4 + 0x458e78]
shl eax, 6
sar eax, 8
or al, dl
mov byte [ecx + edi + 1], al
movups xmm0, xmmword [esp + 0x30]
mov ecx, dword [esp + 0x5c]
mov eax, esi
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
movups xmmword [esi], xmm0
pop edi
movq xmm0, qword [esp + 0x3c]
movq qword [esi + 0x10], xmm0
pop esi
xor ecx, esp
call fcn.0041c8d3
mov esp, ebp
pop ebp
ret
Function at 0x406e30
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x449238
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [0x462014]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 2
lea ecx, [ebp + 8]
cmp dword [ebp + 0x1c], 0x10
mov edx, dword [ebp + 0x18]
cmovae ecx, dword [ebp + 8]
push 1
push 0x458cc4
call fcn.00418d50
add esp, 8
xor edx, edx
test al, al
mov ecx, 5
cmove ecx, edx
mov edx, str.runas
push ecx
mov ecx, 0x45813b
cmovne ecx, edx
push ecx
lea ecx, [ebp + 8]
call fcn.004179a0
cmp dword [ebp + 0x4c], 0x10
lea edx, [ebp + 0x38]
push 0
cmovae edx, dword [ebp + 0x38]
lea ecx, [ebp + 0x20]
cmp dword [ebp + 0x34], 0x10
lea eax, [ebp + 8]
push 0
cmovae ecx, dword [ebp + 0x20]
cmp dword [ebp + 0x1c], 0x10
push edx
cmovae eax, dword [ebp + 8]
push ecx
push eax
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov edx, dword [ebp + 0x1c]
mov esi, eax
mov dword [0x466494], esi
cmp edx, 0x10
jb 0x406f06
mov ecx, dword [ebp + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x406efc
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406f9c
push edx
push ecx
call fcn.0041cf4a
add esp, 8
mov edx, dword [ebp + 0x34]
mov dword [ebp + 0x18], 0
mov dword [ebp + 0x1c], 0xf
mov byte [ebp + 8], 0
cmp edx, 0x10
jb 0x406f48
mov ecx, dword [ebp + 0x20]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x406f3e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406f9c
push edx
push ecx
call fcn.0041cf4a
add esp, 8
mov edx, dword [ebp + 0x4c]
mov dword [ebp + 0x30], 0
mov dword [ebp + 0x34], 0xf
mov byte [ebp + 0x20], 0
cmp edx, 0x10
jb 0x406f8a
mov ecx, dword [ebp + 0x38]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x406f80
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406f9c
push edx
push ecx
call fcn.0041cf4a
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
call fcn.0043654a
int3