joyce8/EMBER2024-capa huggingface dataset:
Function at 0x454ab0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x578b35
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ebx
sub esp, 0x48
push esi
push edi
push 0x27
xorps xmm0, xmm0
mov dword [ebp - 0x44], 0
push 0x59a478
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x40], 0
movups xmmword [ebp - 0x54], xmm0
call fcn.0042db40
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x3c]
push 0x13
xorps xmm0, xmm0
mov dword [ebp - 0x2c], 0
push str.bzdMOTxxDjLTsadRA
movups xmmword [ebp - 0x3c], xmm0
mov dword [ebp - 0x28], 0
call fcn.0042db40
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 1
push eax
push 0xf003f
push 0
sub esp, 0x18
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x54]
mov dword [ebp - 0x24], 4
mov ecx, esp
mov esi, 3
push eax
call fcn.0042ef00
lea ecx, [ebp - 0x1c]
call fcn.00445650
add esp, 0x18
push dword [eax]
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edx, dword [ebp - 0x1c]
or edi, 0xffffffff
mov dword [ebp - 0x20], eax
add edx, 0xfffffff0
mov ecx, edi
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x454b9b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x454bfc
sub esp, 0x18
lea eax, [ebp - 0x3c]
mov ecx, esp
push eax
call fcn.0042ef00
lea ecx, [ebp - 0x20]
call fcn.00445650
add esp, 0x18
lea ecx, [ebp - 0x24]
push ecx
lea ecx, [ebp - 0x14]
push ecx
push 0
push 0
push dword [eax]
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x1c], eax
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x454bed
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x1c]
push dword [ebp - 0x18]
test eax, eax
cmove esi, dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x28]
cmp ecx, 8
jb 0x454c32
mov edx, dword [ebp - 0x3c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x454c28
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x454c7d
push ecx
push edx
call fcn.00549ad4
add esp, 8
mov ecx, dword [ebp - 0x40]
cmp ecx, 8
jb 0x454c68
mov edx, dword [ebp - 0x54]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x454c5e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x454c7d
push ecx
push edx
call fcn.00549ad4
add esp, 8
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.0054e9bf
int3
Function at 0x455620
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x579bc5
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3c
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov ebx, ecx
mov dword [ebp - 4], 0
mov byte [ebp - 4], 1
mov eax, dword [ebp + 8]
mov edi, dword [eax - 0xc]
test edi, edi
je 0x45583e
mov ecx, dword [ebx]
cmp dword [ecx - 0xc], 0
je 0x45583e
lea esi, [edi + 1]
test esi, esi
js 0x4557f0
mov ecx, dword [eax - 8]
mov edx, 1
sub edx, dword [eax - 4]
sub ecx, esi
or ecx, edx
jge 0x455690
push esi
lea ecx, [ebp + 8]
call fcn.0042f9f0
mov eax, dword [ebp + 8]
mov ecx, 0x5c
mov word [eax + edi*2], cx
mov eax, dword [ebp + 8]
cmp esi, dword [eax - 8]
jg 0x4557f0
mov dword [eax - 0xc], esi
xor ecx, ecx
mov eax, dword [ebp + 8]
mov word [eax + esi*2], cx
lea ecx, [ebp + 8]
mov eax, dword [ebx]
push dword [eax - 0xc]
push eax
call fcn.0042e200
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4556e2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 0xb7
jne 0x4557fa
mov esi, dword [ebp + 8]
or eax, 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4556fd
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.0042fa70
push str.bkZJtRC00xLCUa5Iw0tJHCMqsMAE0NMBsIpJyAoBCyI
lea ecx, [ebp - 0x18]
call fcn.0042fba0
push esi
push ecx
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 4
mov ecx, esp
push eax
call fcn.0042eed0
lea ecx, [ebp - 0x14]
call fcn.00445a80
add esp, 4
push eax
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 5
call fcn.00446df0
push 0x5bb60c
lea eax, [ebp - 0x38]
push eax
call fcn.0054b9da
push str.aTA2GNABeRQFUFhWVJrJGVFE5VQRVZQlEbbQw
lea ecx, [ebp - 0x18]
call fcn.0042fba0
push 2
push ecx
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 2
mov ecx, esp
push eax
call fcn.0042eed0
lea ecx, [ebp - 0x14]
call fcn.00445a80
add esp, 4
push eax
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 3
call fcn.00446df0
push 0x5bb60c
lea eax, [ebp - 0x44]
push eax
call fcn.0054b9da
int3
Function at 0x462630
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57ae75
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x248
push ebx
push esi
push edi
mov dword [ebp - 0x18], ecx
call fcn.0042f4e0
mov ecx, eax
test ecx, ecx
je 0x462807
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
push str.TGxzDaDkCYGAYjZGx0
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 0
call fcn.0042f750
test al, al
jne 0x462695
push 0x13
push str.TGxzDaDkCYGAYjZGx0
lea ecx, [ebp - 0x14]
call fcn.0042fa90
mov dword [ebp - 4], 1
call fcn.0042f4e0
mov ecx, eax
test ecx, ecx
je 0x462811
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
push 0x5911fc
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.0042f750
test al, al
jne 0x4626da
push 0
push 0x5911fc
lea ecx, [ebp - 0x10]
call fcn.0042fa90
mov byte [ebp - 4], 3
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push 0
push 2
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
je 0x46275d
push 0x228
lea eax, [ebp - 0x24c]
mov dword [ebp - 0x250], 0x22c
push 0
push eax
call fcn.0054b880
add esp, 0xc
lea eax, [ebp - 0x250]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x462756
mov ebx, dword [sym.imp.KERNEL32.dll_Process32NextW]
nop
cmp dword [ebp - 0x248], edi
je 0x462748
lea eax, [ebp - 0x250]
push eax
push esi
call ebx
test eax, eax
jne 0x462730
jmp 0x462756
mov ecx, dword [ebp - 0x238]
lea edx, [ebp - 0x10]
call fcn.004624d0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x10]
cmp dword [esi - 0xc], 0
jne 0x4627b2
mov ebx, dword [ebp - 0x14]
push ecx
add ebx, 0xfffffff0
mov edi, esp
mov ecx, ebx
mov dword [ebp - 0x1c], edi
call fcn.0042ee10
mov ecx, dword [ebp - 0x18]
add eax, 0x10
mov dword [edi], eax
call fcn.00445a80
lea edx, [esi - 0x10]
add esp, 4
or esi, 0xffffffff
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4627a3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lock xadd dword [ebx + 0xc], esi
dec esi
test esi, esi
jg 0x4627f3
mov ecx, dword [ebx]
push ebx
jmp 0x4627ee
lea edi, [esi - 0x10]
mov ecx, edi
call fcn.0042ee10
mov ecx, dword [ebp - 0x18]
add eax, 0x10
or esi, 0xffffffff
mov dword [ecx], eax
mov eax, esi
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x4627db
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x4627f3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x18]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.0042fa70
push 0x80004005
call fcn.0042fa70
int3
Function at 0x55b393
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0054a630
mov eax, dword [0x5be0cc]
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.0055bae4
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x55b3d5
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x55b531
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00572810
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 + 0x5c45b0]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.00565f4e
mov ecx, dword [esi*4 + 0x5c45b0]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x55b52a
cmp eax, dword [ecx + edi + 0x24]
jne 0x55b52a
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x55b52a
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00565f4e
add esp, 0x14
test edx, edx
jl 0x55b52a
jg 0x55b4a0
test eax, eax
jb 0x55b52a
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x55b52a
jl 0x55b4ba
cmp dword [ebp - 0x1008], eax
ja 0x55b52a
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x55b4d8
test ebx, ebx
je 0x55b511
cmp ecx, edi
jae 0x55b511
mov al, byte [ecx]
cmp al, 0xd
jne 0x55b4f2
lea eax, [edi - 1]
cmp ecx, eax
jae 0x55b4fe
cmp byte [ecx + 1], 0xa
jne 0x55b4fe
inc ecx
jmp 0x55b4fe
movzx eax, al
movsx eax, byte [eax + 0x5be348]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x55b4d8
cmp edx, ebx
jne 0x55b4d8
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x55b52f
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00549c63
leave
ret

Function at 0x564c85
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x5869c4
push 0x5869bc
push str.FlsAlloc
push 0x1f
call fcn.00564ab0
mov esi, eax
add esp, 0x10
test esi, esi
je 0x564cb9
push dword [ebp + 8]
mov ecx, esi
call dword [0x5815b0]
call esi
jmp 0x564cbf
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x564d03
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x5869d4
push 0x5869cc
push str.FlsGetValue
push 0x21
call fcn.00564ab0
mov esi, eax
add esp, 0x10
test esi, esi
je 0x564d3a
push dword [ebp + 8]
mov ecx, esi
call dword [0x5815b0]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x564d42
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x5869dc
push 0x5869d4
push str.FlsSetValue
push 0x22
call fcn.00564ab0
mov esi, eax
add esp, 0x10
test esi, esi
je 0x564d7c
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x5815b0]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x401880
Capabilities:
Hash data with md5

Disassembly:
sub esp, 0x68
mov eax, dword [0x426050]
xor eax, esp
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x6c]
xor ecx, ecx
push esi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], ecx
push eax
mov eax, dword [esp + 0x78]
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], 0x67452301
mov dword [esp + 0x10], 0xefcdab89
mov dword [esp + 0x14], 0x98badcfe
mov dword [esp + 0x18], 0x10325476
call fcn.004016e0
add esp, 4
lea esi, [esp + 8]
mov ecx, edi
call fcn.004017a0
mov ecx, dword [esp + 0x64]
pop esi
xor ecx, esp
call fcn.0040ac69
add esp, 0x68
ret

Function at 0x402ac0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push edi
push ebx
push ebp
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x402ad7
pop edi
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x402b08
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x402b04
cmp esi, eax
jae 0x402b08
sub edi, 1
movzx ecx, word [esi]
lea esi, [esi + ecx*2 + 2]
jne 0x402af4
cmp esi, eax
jb 0x402b0e
pop esi
pop edi
xor eax, eax
pop ebp
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebp
ret

Function at 0x402be0
Capabilities:
Check if file exists

Disassembly:
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x402bf1
mov eax, 1
ret
push esi
call fcn.0040ad74
add esp, 4
neg eax
sbb eax, eax
add eax, 1
ret
Function at 0x402c80
Capabilities:
Check os version

Disassembly:
sub esp, 0x120
mov eax, dword [0x426050]
xor eax, esp
mov dword [esp + 0x11c], eax
push esi
push 0x11c
lea eax, [esp + 8]
push 0
push eax
call fcn.0040dae0
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
add esp, 0xc
lea ecx, [esp + 4]
push ecx
mov dword [esp + 8], 0x11c
call esi
test eax, eax
jne 0x402ced
lea edx, [esp + 4]
push edx
mov dword [esp + 8], 0x114
call esi
test eax, eax
jne 0x402ced
xor eax, eax
pop esi
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.0040ac69
add esp, 0x120
ret
mov eax, dword [esp + 0x14]
sub eax, 0
je 0x402e2e
sub eax, 1
je 0x402dbc
sub eax, 1
jne 0x402cd5
mov eax, dword [esp + 8]
cmp eax, 6
jne 0x402d2c
mov eax, 9
pop esi
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.0040ac69
add esp, 0x120
ret
cmp eax, 5
jne 0x402d98
mov eax, dword [esp + 0xc]
cmp eax, 2
jne 0x402d55
mov eax, 8
pop esi
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.0040ac69
add esp, 0x120
ret
cmp eax, 1
jne 0x402d75
mov eax, 7
pop esi
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.0040ac69
add esp, 0x120
ret
test eax, eax
jne 0x402cd5
mov eax, 6
pop esi
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.0040ac69
add esp, 0x120
ret
cmp eax, 4
ja 0x402cd5
mov eax, 5
pop esi
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.0040ac69
add esp, 0x120
ret
cmp dword [esp + 8], 4
jne 0x402cd5
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x402dea
mov eax, 2
pop esi
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.0040ac69
add esp, 0x120
ret
cmp eax, 0xa
jne 0x402e0a
mov eax, 3
pop esi
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.0040ac69
add esp, 0x120
ret
cmp eax, 0x5a
jne 0x402cd5
mov eax, 4
pop esi
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.0040ac69
add esp, 0x120
ret
mov ecx, dword [esp + 0x120]
pop esi
xor ecx, esp
mov eax, 1
call fcn.0040ac69
add esp, 0x120
ret
Function at 0x402e50
Capabilities:
Check if file exists
Get common file path

Disassembly:
sub esp, 0x210
mov eax, dword [0x426050]
xor eax, esp
mov dword [esp + 0x20c], eax
push ebp
push edi
push 0x206
lea eax, [esp + 0x12]
push 0
push eax
mov dword [esp + 0x14], 0
mov word [esp + 0x18], 0
call fcn.0040dae0
add esp, 0xc
lea ecx, [esp + 0xc]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov edi, dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea edx, [esp + 0xc]
push edx
call edi
call fcn.00402c80
cmp eax, 9
mov ebp, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
jne 0x402f43
cmp dword [0x42b800], 0
jne 0x402ef7
push str.ieframe.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x402f14
push str.IEIsProtectedModeProcess
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x402f14
push 0x42b804
call eax
test eax, eax
jl 0x402f14
mov dword [0x42b800], 1
cmp dword [0x42b804], 0
je 0x402f14
push 0x420ffc
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
jne 0x402f43
push str.Low_
lea ecx, [esp + 0x10]
push 0x104
push ecx
call fcn.0040ada0
add esp, 0xc
lea edx, [esp + 0xc]
push edx
call ebp
test eax, eax
jne 0x402f43
lea eax, [esp + 0xc]
push eax
call fcn.0040ad74
add esp, 4
push 0x421014
lea ecx, [esp + 0x10]
push 0x104
push ecx
call fcn.0040ada0
add esp, 0xc
lea edx, [esp + 0xc]
push edx
call edi
lea eax, [esp + 0xc]
push eax
call ebp
test eax, eax
pop edi
pop ebp
jne 0x402f7b
lea ecx, [esp + 4]
push ecx
call fcn.0040ad74
add esp, 4
push ebx
lea ecx, [esp + 8]
call fcn.00402130
mov ecx, dword [esp + 0x20c]
xor ecx, esp
mov eax, ebx
call fcn.0040ac69
add esp, 0x210
ret
Function at 0x4038e0
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
sub esp, 0x2c
mov eax, dword [0x426050]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
push ebp
mov ebp, dword [esp + 0x38]
mov edx, dword [ebp + 0x1c]
sub edx, 6
xor eax, eax
cmp edx, eax
push esi
push edi
jle 0x40390e
mov esi, dword [esp + 0x44]
mov ecx, edx
lea edi, [esp + 0x18]
rep movsd dword es:[edi], dword [esi]
xor ecx, ecx
cmp edx, eax
mov dword [esp + 0x10], eax
jle 0x40395d
lea esi, [ecx + 8]
jmp 0x403920
mov edi, dword [esp + 0x10]
cmp edi, dword [ebp + 0x1c]
ja 0x40395d
cmp ecx, edx
jge 0x40394a
lea ecx, [ecx]
cmp eax, 4
jge 0x40394d
mov ebx, dword [esp + ecx*4 + 0x18]
lea edi, [esi + eax]
add ecx, 1
add eax, 1
cmp ecx, edx
mov dword [ebp + edi*4], ebx
jl 0x403930
cmp eax, 4
jne 0x403959
add dword [esp + 0x10], 1
add esi, 4
xor eax, eax
cmp ecx, edx
jl 0x403920
mov ecx, dword [esp + 0x10]
cmp ecx, dword [ebp + 0x1c]
ja 0x403aba
mov esi, 0x42a308
jmp 0x403975
mov esi, dword [esp + 0x14]
movzx edi, byte [esp + edx*4 + 0x15]
mov cl, byte [esp + 0x18]
xor cl, byte [edi + str.cw]
add esi, 4
mov byte [esp + 0x18], cl
movzx edi, byte [esp + edx*4 + 0x16]
movzx ebx, byte [edi + str.cw]
xor byte [esp + 0x19], bl
movzx edi, byte [esp + edx*4 + 0x17]
movzx ebx, byte [edi + str.cw]
xor byte [esp + 0x1a], bl
movzx edi, byte [esp + edx*4 + 0x14]
xor cl, byte [esi - 4]
movzx ebx, byte [edi + str.cw]
xor byte [esp + 0x1b], bl
cmp edx, 8
mov byte [esp + 0x18], cl
mov dword [esp + 0x14], esi
mov ecx, 1
je 0x4039f1
cmp edx, ecx
jle 0x403a60
jmp 0x4039e0
mov esi, dword [esp + ecx*4 + 0x14]
xor dword [esp + ecx*4 + 0x18], esi
add ecx, 1
cmp ecx, edx
jl 0x4039e0
jmp 0x403a60
mov esi, dword [esp + ecx*4 + 0x14]
xor dword [esp + ecx*4 + 0x18], esi
add ecx, 1
cmp ecx, 4
jl 0x4039f1
movzx ecx, byte [esp + 0x24]
movzx ecx, byte [ecx + str.cw]
xor byte [esp + 0x28], cl
movzx ecx, byte [esp + 0x25]
movzx ecx, byte [ecx + str.cw]
xor byte [esp + 0x29], cl
movzx ecx, byte [esp + 0x26]
movzx ecx, byte [ecx + str.cw]
xor byte [esp + 0x2a], cl
movzx ecx, byte [esp + 0x27]
movzx ecx, byte [ecx + str.cw]
xor byte [esp + 0x2b], cl
mov ecx, 5
jmp 0x403a50
mov esi, dword [esp + ecx*4 + 0x14]
xor dword [esp + ecx*4 + 0x18], esi
add ecx, 1
cmp ecx, 8
jl 0x403a50
xor ecx, ecx
test edx, edx
jle 0x403aad
mov esi, dword [esp + 0x10]
lea esi, [esi*4 + 8]
mov edi, dword [esp + 0x10]
cmp edi, dword [ebp + 0x1c]
ja 0x403aad
cmp ecx, edx
jge 0x403a9a
mov edi, edi
cmp eax, 4
jge 0x403a9d
mov ebx, dword [esp + ecx*4 + 0x18]
lea edi, [esi + eax]
add ecx, 1
add eax, 1
cmp ecx, edx
mov dword [ebp + edi*4], ebx
jl 0x403a80
cmp eax, 4
jne 0x403aa9
add dword [esp + 0x10], 1
add esi, 4
xor eax, eax
cmp ecx, edx
jl 0x403a71
mov ecx, dword [esp + 0x10]
cmp ecx, dword [ebp + 0x1c]
jbe 0x403971
mov ecx, dword [esp + 0x38]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040ac69
add esp, 0x2c
ret 8
Function at 0x403ad0
Capabilities:
Encode data using xor

Disassembly:
mov ecx, 1
cmp dword [edx + 0x1c], ecx
jbe 0x403bbc
push esi
lea eax, [edx + 0x32]
push edi
jmp 0x403af0
movzx esi, byte [eax + 1]
mov esi, dword [esi*4 + 0x429f08]
movzx edi, byte [eax - 1]
xor esi, dword [edi*4 + 0x429708]
movzx edi, byte [eax]
xor esi, dword [edi*4 + 0x429b08]
movzx edi, byte [eax - 2]
xor esi, dword [edi*4 + 0x429308]
add ecx, 1
mov dword [eax - 2], esi
movzx esi, byte [eax + 5]
mov esi, dword [esi*4 + 0x429f08]
movzx edi, byte [eax + 4]
xor esi, dword [edi*4 + 0x429b08]
movzx edi, byte [eax + 3]
xor esi, dword [edi*4 + 0x429708]
movzx edi, byte [eax + 2]
xor esi, dword [edi*4 + 0x429308]
add eax, 0x10
mov dword [eax - 0xe], esi
movzx esi, byte [eax - 7]
mov esi, dword [esi*4 + 0x429f08]
movzx edi, byte [eax - 8]
xor esi, dword [edi*4 + 0x429b08]
movzx edi, byte [eax - 9]
xor esi, dword [edi*4 + 0x429708]
movzx edi, byte [eax - 0xa]
xor esi, dword [edi*4 + 0x429308]
mov dword [eax - 0xa], esi
movzx esi, byte [eax - 3]
movzx edi, byte [eax - 4]
mov esi, dword [esi*4 + 0x429f08]
xor esi, dword [edi*4 + 0x429b08]
movzx edi, byte [eax - 5]
xor esi, dword [edi*4 + 0x429708]
movzx edi, byte [eax - 6]
xor esi, dword [edi*4 + 0x429308]
mov dword [eax - 6], esi
cmp ecx, dword [edx + 0x1c]
jb 0x403af0
pop edi
pop esi
ret
Function at 0x403f70
Capabilities:
Enumerate pe sections

Disassembly:
push ecx
mov eax, dword [esp + 0x10]
push ebx
mov ebx, dword [eax + 4]
mov eax, dword [eax]
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
push esi
lea esi, [ecx + eax + 0x18]
mov dword [esp + 8], 0
jbe 0x404018
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push edi
add esi, 0x10
mov eax, dword [esi]
test eax, eax
jne 0x403fd1
mov edx, dword [esp + 0x1c]
mov edi, dword [edx + 0x38]
test edi, edi
jle 0x403ffa
mov eax, dword [esi - 4]
push 4
push 0x1000
push edi
add eax, ebx
push eax
call ebp
push edi
push 0
push eax
mov dword [esi - 8], eax
call fcn.0040dae0
jmp 0x403ff7
mov ecx, dword [esi - 4]
push 4
push 0x1000
push eax
add ecx, ebx
push ecx
call ebp
mov edx, dword [esi]
mov edi, eax
mov eax, dword [esi + 4]
add eax, dword [esp + 0x18]
push edx
push eax
push edi
call fcn.0040e3f0
mov dword [esi - 8], edi
add esp, 0xc
mov ecx, dword [esp + 0x20]
mov edx, dword [ecx]
mov eax, dword [esp + 0x10]
movzx ecx, word [edx + 6]
add eax, 1
add esi, 0x28
cmp eax, ecx
mov dword [esp + 0x10], eax
jl 0x403fa2
pop edi
pop ebp
pop esi
pop ebx
pop ecx
ret

Function at 0x404020
Capabilities:
Enumerate pe sections

Disassembly:
push ecx
mov eax, dword [esp + 8]
push ebx
mov ebx, dword [eax]
movzx ecx, word [ebx + 0x14]
push ebp
xor ebp, ebp
cmp word [ebx + 6], bp
lea eax, [ecx + ebx + 0x18]
jbe 0x4040d7
push esi
push edi
lea edi, [eax + 0x24]
mov eax, dword [edi]
mov ecx, eax
mov edx, eax
shr ecx, 0x1d
shr edx, 0x1e
mov esi, eax
and ecx, 1
and edx, 1
shr esi, 0x1f
test eax, 0x2000000
je 0x404075
mov edx, dword [edi - 0x14]
mov eax, dword [edi - 0x1c]
push 0x4000
push edx
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x4040bd
test eax, 0x4000000
lea ecx, [edx + ecx*2]
lea edx, [esi + ecx*2]
mov esi, dword [edx*4 + 0x4270e4]
je 0x40408f
or esi, 0x200
mov edx, dword [edi - 0x14]
mov ecx, edx
test ecx, ecx
jne 0x4040aa
test al, 0x40
je 0x4040a1
mov ecx, dword [ebx + 0x20]
jmp 0x4040a8
test al, al
jns 0x4040bd
mov ecx, dword [ebx + 0x24]
test ecx, ecx
jbe 0x4040bd
mov ecx, dword [edi - 0x1c]
lea eax, [esp + 0x10]
push eax
push esi
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov edx, dword [esp + 0x18]
mov ebx, dword [edx]
movzx eax, word [ebx + 6]
add ebp, 1
add edi, 0x28
cmp ebp, eax
jl 0x404042
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret