joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403360
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, dword [esp + 0xc]
test ebp, ebp
je 0x40347e
push ebx
push edi
nop
mov edi, 0x10
sub edi, dword [esi + 0x54]
cmp edi, ebp
jb 0x40337e
mov edi, ebp
mov eax, dword [esi + 0x54]
mov ebx, dword [esp + 0x10]
push edi
lea ecx, [eax + esi + 0x44]
push ebx
push ecx
call fcn.0046eeda
add dword [esi + 0x54], edi
mov eax, dword [esi + 0x54]
add ebx, edi
add esp, 0xc
sub ebp, edi
mov dword [esp + 0x10], ebx
cmp eax, 0x10
jne 0x403474
mov edx, dword [esi + 0x44]
mov eax, dword [esi + 0x48]
mov ecx, dword [esi + 0x4c]
mov dword [esi + 0x14], edx
mov edx, dword [esi + 0x50]
mov dword [esi + 0x18], eax
xor ebx, ebx
mov dword [esi + 0x1c], ecx
mov cl, byte [esi + 0x43]
mov dword [esi + 0x54], ebx
mov dword [esi + 0x20], edx
lea eax, [esi + 4]
lea edi, [ebx + 0x10]
movzx edx, byte [eax + 0x10]
xor dl, byte [eax]
movzx ecx, cl
mov byte [eax + 0x20], dl
movzx edx, byte [eax + 0x40]
xor edx, ecx
movzx edx, byte [edx + 0x48b148]
xor byte [eax + 0x30], dl
mov cl, byte [eax + 0x30]
inc eax
sub edi, 1
jne 0x4033d1
xor cl, cl
lea edi, [esi + 5]
jmp 0x403400
mov eax, edi
mov edx, 8
jmp 0x403410
movzx ecx, cl
movzx ecx, byte [ecx + 0x48b148]
xor byte [eax - 1], cl
movzx ecx, byte [eax - 1]
movzx ecx, byte [ecx + 0x48b148]
xor byte [eax], cl
movzx ecx, byte [eax]
movzx ecx, byte [ecx + 0x48b148]
xor byte [eax + 1], cl
movzx ecx, byte [eax + 1]
movzx ecx, byte [ecx + 0x48b148]
xor byte [eax + 2], cl
movzx ecx, byte [eax + 2]
movzx ecx, byte [ecx + 0x48b148]
xor byte [eax + 3], cl
movzx ecx, byte [eax + 3]
movzx ecx, byte [ecx + 0x48b148]
xor byte [eax + 4], cl
mov cl, byte [eax + 4]
add eax, 6
sub edx, 1
jne 0x403410
add cl, bl
inc ebx
cmp ebx, 0x12
jl 0x403400
test ebp, ebp
jne 0x403370
pop edi
pop ebx
pop ebp
ret 8
Function at 0x404500
Capabilities:
Hash data with md5

Disassembly:
sub esp, 0x804
mov eax, dword [0x48ac94]
xor eax, esp
mov dword [esp + 0x800], eax
mov eax, dword [esp + 0x808]
push ebx
push ebp
push esi
push 0x47d9bc
push eax
mov esi, ecx
call dword [0x474378]
mov ebx, eax
xor ebp, ebp
add esp, 8
cmp ebx, ebp
jne 0x404551
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x800]
xor ecx, esp
call fcn.0046ea88
add esp, 0x804
ret
mov dword [esi + 4], ebp
mov dword [esi], ebp
mov dword [esi + 8], 0x67452301
mov dword [esi + 0xc], 0xefcdab89
mov dword [esi + 0x10], 0x98badcfe
mov dword [esi + 0x14], 0x10325476
push edi
push ebx
push 0x800
lea eax, [esp + 0x18]
push 1
push eax
call dword [0x47437c]
lea ecx, [esp + 0x20]
mov edi, eax
push ecx
add ebp, edi
call fcn.004042d0
add esp, 0x14
cmp edi, 0x800
jge 0x404573
push ebx
call dword [0x474380]
add esp, 4
mov eax, esi
call fcn.004043e0
mov ecx, dword [esp + 0x810]
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
xor ecx, esp
call fcn.0046ea88
add esp, 0x804
ret
Function at 0x408aa0
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4730bc
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x3ef4
call fcn.0046f010
mov eax, dword [0x48ac94]
xor eax, esp
mov dword [esp + 0x3ef0], eax
push ebx
push esi
push edi
mov eax, dword [0x48ac94]
xor eax, esp
push eax
lea eax, [esp + 0x3f08]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov edi, ecx
xor ebx, ebx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], ebx
call dword [0x474948]
push 0x100
mov dword [esp + 0x3f14], ebx
call fcn.0046e692
add esp, 4
cmp dword [edi + 0x14], 1
mov esi, eax
mov dword [esp + 0x14], esi
jne 0x408b72
mov ecx, dword [edi]
mov esi, dword [ecx - 0xc]
push esi
mov ecx, edi
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x28], 0x67452301
mov dword [esp + 0x2c], 0xefcdab89
mov dword [esp + 0x30], 0x98badcfe
mov dword [esp + 0x34], 0x10325476
call dword [0x4749b8]
push eax
mov eax, esi
lea esi, [esp + 0x28]
call fcn.00403530
mov ecx, dword [esp + 0x18]
add esp, 4
mov edx, esi
call fcn.004035d0
mov esi, dword [esp + 0x14]
cmp dword [edi + 0x14], 2
jne 0x408c32
mov eax, dword [edi + 8]
cmp dword [eax - 0xc], ebx
jne 0x408b9a
mov esi, dword [esp + 0x20]
push 0x47f38c
mov ecx, esi
call dword [0x474960]
jmp 0x408cb5
push 0x47d9bc
push eax
mov dword [esp + 0x40], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x2c], 0x67452301
mov dword [esp + 0x30], 0xefcdab89
mov dword [esp + 0x34], 0x98badcfe
mov dword [esp + 0x38], 0x10325476
call dword [0x474378]
mov esi, eax
add esp, 8
mov dword [esp + 0x18], esi
push esi
push 0x3e80
lea edx, [esp + 0x84]
push 1
push edx
call dword [0x47437c]
mov ebx, eax
add esp, 0x10
test ebx, ebx
je 0x408c0d
lea eax, [esp + 0x7c]
push eax
mov eax, ebx
lea esi, [esp + 0x28]
call fcn.00403530
mov esi, dword [esp + 0x1c]
add esp, 4
cmp ebx, 0x3e80
je 0x408bd7
push esi
call dword [0x474380]
mov ecx, dword [esp + 0x18]
add esp, 4
lea edx, [esp + 0x24]
call fcn.004035d0
mov esi, dword [esp + 0x14]
xor ebx, ebx
add edi, 0x1c
mov dword [esp + 0x18], edi
mov edi, dword [0x474384]
nop
movzx edx, byte [ebx + esi]
push 0x10
lea ecx, [esp + 0x18]
push ecx
push edx
call edi
lea eax, [esp + 0x20]
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x408c58
sub eax, edx
cmp eax, 1
jne 0x408c77
mov al, byte [esp + 0x14]
mov byte [esp + 0x15], al
mov byte [esp + 0x14], 0x30
mov byte [esp + 0x16], cl
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x1c]
call dword [0x47492c]
inc ebx
cmp ebx, 0x10
jl 0x408c40
push esi
call fcn.0046e698
mov edx, dword [esp + 0x1c]
add esp, 4
push edx
lea ecx, [esp + 0x20]
call dword [0x474958]
mov esi, dword [esp + 0x20]
lea eax, [esp + 0x1c]
push eax
mov ecx, esi
call dword [0x474950]
lea ecx, [esp + 0x1c]
call dword [0x4749c0]
mov eax, esi
mov ecx, dword [esp + 0x3f08]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x3ef0]
xor ecx, esp
call fcn.0046ea88
mov esp, ebp
pop ebp
ret 4
Function at 0x408cf0
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x473308
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
mov eax, dword [0x48ac94]
xor eax, esp
mov dword [esp + 0x84], eax
push ebx
push esi
mov eax, dword [0x48ac94]
xor eax, esp
push eax
lea eax, [esp + 0x98]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
lea ecx, [esp + 0x18]
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], ebx
call dword [0x474948]
push 0x100
mov dword [esp + 0xa4], ebx
call fcn.0046e692
add esp, 4
push 0x47f38c
lea ecx, [esp + 0x18]
mov dword [esp + 0x20], eax
call dword [0x474960]
mov byte [esp + 0xa0], 1
cmp dword [edi + 0x14], 1
jne 0x408e37
mov eax, dword [edi]
mov esi, dword [eax - 0xc]
push esi
mov ecx, edi
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x30], 0x67452301
mov dword [esp + 0x34], 0xefcdab89
mov dword [esp + 0x38], 0x98badcfe
mov dword [esp + 0x3c], 0x10325476
call dword [0x4749b8]
push eax
mov eax, esi
lea esi, [esp + 0x28]
call fcn.004042d0
add esp, 4
mov eax, esi
call fcn.004043e0
xor esi, esi
lea esp, [esp]
movzx edx, byte [esp + esi + 0x7c]
push 0x10
lea ecx, [esp + 0x14]
push ecx
push edx
call dword [0x474384]
lea eax, [esp + 0x1c]
add esp, 0xc
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x408df0
sub eax, edx
cmp eax, 1
jne 0x408e0f
mov al, byte [esp + 0x10]
mov byte [esp + 0x11], al
mov byte [esp + 0x10], 0x30
mov byte [esp + 0x12], bl
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x18]
call dword [0x47492c]
inc esi
cmp esi, 0x10
jl 0x408dd0
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0x1c]
call dword [0x474958]
mov esi, dword [esp + 0x20]
cmp dword [edi + 0x14], 2
jne 0x408ee7
mov eax, dword [edi + 8]
lea ecx, [edi + 8]
cmp dword [eax - 0xc], ebx
jne 0x408e5e
push 0x47f38c
mov ecx, esi
call dword [0x474960]
jmp 0x408f01
push 0x104
call dword [0x4749b8]
push eax
lea ecx, [esp + 0x28]
call fcn.00404500
add esp, 4
test eax, eax
je 0x408ed8
xor esi, esi
lea esp, [esp]
movzx edx, byte [esp + esi + 0x7c]
push 0x10
lea ecx, [esp + 0x14]
push ecx
push edx
call dword [0x474384]
lea eax, [esp + 0x1c]
add esp, 0xc
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x408ea0
sub eax, edx
cmp eax, 1
jne 0x408ebf
mov al, byte [esp + 0x10]
mov byte [esp + 0x11], al
mov byte [esp + 0x10], 0x30
mov byte [esp + 0x12], bl
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x18]
call dword [0x47492c]
inc esi
cmp esi, 0x10
jl 0x408e80
mov esi, dword [esp + 0x20]
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0x1c]
call dword [0x474958]
mov eax, dword [esp + 0x1c]
push eax
call fcn.0046e698
add esp, 4
lea ecx, [esp + 0x18]
push ecx
mov ecx, esi
call dword [0x474950]
lea ecx, [esp + 0x14]
call dword [0x4749c0]
lea ecx, [esp + 0x18]
call dword [0x4749c0]
mov eax, esi
mov ecx, dword [esp + 0x98]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x84]
xor ecx, esp
call fcn.0046ea88
mov esp, ebp
pop ebp
ret
Function at 0x40eab0
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x472107
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push ebp
push esi
push edi
mov eax, dword [0x48ac94]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov esi, dword [esp + 0x3c]
mov dword [esp + 0x24], 0
lea ecx, [esp + 0x40]
mov dword [esp + 0x34], 1
call dword [0x4748a0]
mov ebx, eax
push 0
push ebx
call fcn.0046fa40
mov ebp, eax
push ebp
call dword [0x47439c]
add esp, 4
mov edi, eax
push edi
push ebp
xor ebp, ebp
push ebp
push ebx
call fcn.0046fa46
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x18]
push ecx
push 0x47fd6c
push edi
mov dword [esp + 0x24], ebp
mov dword [esp + 0x30], ebp
call fcn.0046fa4c
lea ecx, [esp + 0x1c]
call dword [0x474948]
lea ecx, [esp + 0x18]
call dword [0x474948]
mov bl, 3
mov ecx, esi
mov byte [esp + 0x34], bl
call dword [0x474948]
mov edx, dword [esp + 0x14]
movzx eax, word [edx]
mov ebp, dword [0x47495c]
push eax
push 0x47fd88
push esi
mov dword [esp + 0x30], 1
call ebp
add esp, 0xc
push 4
lea ecx, [esp + 0x2c]
push ecx
mov ecx, esi
call dword [0x4748b0]
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x38], 4
call dword [0x474958]
lea ecx, [esp + 0x28]
mov byte [esp + 0x34], bl
call dword [0x4749c0]
mov edx, dword [esp + 0x14]
movzx eax, word [edx + 2]
push eax
push 0x47fd88
push esi
call ebp
add esp, 0xc
push 4
lea ecx, [esp + 0x2c]
push ecx
mov ecx, esi
call dword [0x4748b0]
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x38], 5
call dword [0x4748a4]
mov byte [esp + 0x34], bl
lea ecx, [esp + 0x28]
call dword [0x4749c0]
mov edx, dword [esp + 0x18]
push edx
lea eax, [esp + 0x20]
push 0x47fd90
push eax
call ebp
add esp, 0xc
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x18]
push edx
push 0x100
lea ecx, [esp + 0x28]
call dword [0x4748d8]
push eax
push edi
call fcn.0046fa4c
push 0xffffffffffffffff
lea ecx, [esp + 0x20]
call dword [0x4748d4]
mov eax, dword [esp + 0x14]
push eax
push 0x47f910
push esi
call ebp
add esp, 0xc
push 0xffffffffffffffff
lea ecx, [esp + 0x44]
call dword [0x4748d4]
push edi
call dword [0x474398]
add esp, 4
lea ecx, [esp + 0x18]
call dword [0x4749c0]
lea ecx, [esp + 0x1c]
call dword [0x4749c0]
lea ecx, [esp + 0x40]
call dword [0x4749c0]
mov eax, esi
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 8
Function at 0x413430
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x485ae8
push 0x46e6a5
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x48ac94]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov esi, edx
push 0x1c
lea eax, [ebp - 0x34]
push eax
push ecx
call dword [0x47418c]
mov dword [ebp - 4], 0
mov edx, 0x5a4d
mov ecx, dword [ebp - 0x30]
cmp word [ecx], dx
jne 0x4134d2
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x4134d2
mov edx, dword [eax + 0xd8]
lea edi, [edx + ecx]
cmp esi, edi
jb 0x4134d2
mov eax, dword [eax + 0xdc]
add eax, edx
add eax, ecx
cmp esi, eax
jae 0x4134d2
mov dword [ebp - 4], 0xfffffffe
mov al, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0xfffffffe
xor al, al
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4185f0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x46f258
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
push ebx
push esi
push edi
mov eax, dword [0x48ac94]
xor eax, esp
push eax
lea eax, [esp + 0x6c]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
mov dword [esp + 0x48], ebx
lea eax, [esp + 0x24]
push eax
mov dword [esp + 0x78], ebx
call fcn.00424130
push eax
lea ecx, [esp + 0x38]
push ecx
call dword [0x474644]
mov ecx, dword [esp + 0x40]
sub ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x3c]
sub eax, dword [esp + 0x34]
push ecx
mov dword [esp + 0x24], ecx
push eax
lea ecx, [esp + 0x4c]
mov dword [esp + 0x24], eax
call fcn.00417de0
mov ecx, dword [esi + 0x1c]
mov edi, eax
cmp ecx, ebx
je 0x41869c
mov edx, dword [esp + 0x3c]
sub edx, dword [esp + 0x34]
mov eax, dword [esp + 0x40]
sub eax, dword [esp + 0x38]
mov dword [esp + 0x2c], edx
lea edx, [esp + 0x24]
push edx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x34], eax
call fcn.004485b0
mov ecx, dword [esi + 0x1c]
push 0x87
push edi
call fcn.0043a1f0
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x38]
push 2
lea edx, [esp + 0x14]
push edx
push 0xffffffffffffffff
mov dword [esp + 0x30], eax
lea eax, [esp + 0x20]
push eax
mov eax, dword [esi + 0xc]
push edi
mov dword [esp + 0x3c], ecx
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x3c]
push edx
push ebx
push eax
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov byte [esp + 0x34], bl
mov byte [esp + 0x35], bl
mov byte [esp + 0x36], 0xff
mov byte [esp + 0x37], 1
call dword [0x48b6ac]
lea ecx, [esp + 0x44]
call fcn.004161b0
mov ecx, dword [esp + 0x6c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x68
ret
Function at 0x41a080
Capabilities:
Access peb ldr_data
Get ntdll base address
Get number of processors
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x46f3fe
mov eax, dword fs:[0]
push eax
push ecx
push ebp
push esi
push edi
mov eax, dword [0x48ac94]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x10], esi
call fcn.00424010
mov dword [esi], 0x474e4c
mov eax, dword [0x48c038]
mov edx, dword [eax + 0xc]
xor edi, edi
mov ecx, 0x48c038
mov dword [esp + 0x1c], edi
lea ebp, [esi + 0x18]
call edx
add eax, 0x10
mov dword [ebp], eax
mov eax, dword [0x48c038]
mov edx, dword [eax + 0xc]
mov ecx, 0x48c038
mov byte [esp + 0x1c], 1
call edx
add eax, 0x10
mov dword [esi + 0x2c], eax
push edi
push 0x47f38c
mov ecx, ebp
mov byte [esp + 0x24], 2
mov dword [esi + 0x14], edi
call fcn.00414db0
mov eax, 0x7fffffff
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], eax
lea eax, [esi + 0x48]
push eax
mov dword [esi + 0x20], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x24], 1
mov dword [esi + 0x28], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], 0x64
mov dword [esi + 0x44], edi
call dword [0x474540]
mov dword [esi + 0x58], edi
mov dword [esi + 0x8c], edi
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x10
ret

Function at 0x41bf30
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x46f4eb
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x48ac94]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
mov eax, dword [0x48c038]
mov edx, dword [eax + 0xc]
mov ecx, 0x48c038
call edx
add eax, 0x10
mov dword [esi + 0x28], eax
push 0x413f50
push 0x415920
push 0x13
push 4
lea eax, [esi + 0x3c]
xor edi, edi
push eax
mov dword [esp + 0x2c], edi
call fcn.0046efa1
mov dword [esi], edi
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0xc], 0xa
mov dword [esi + 0x10], 6
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], 8
mov dword [esi + 0x8c], 2
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x24], 0xffffffff
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret

Function at 0x420510
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 8]
mov eax, dword [esp + 4]
sar ecx, 2
test ecx, ecx
jle 0x420539
mov edx, dword [esp + 0xc]
push esi
mov esi, dword [eax]
xor esi, edx
xor esi, 0x56795679
dec ecx
mov dword [eax], esi
add eax, 4
test ecx, ecx
jne 0x420524
pop esi
ret 0xc
Function at 0x432760
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x24
push esi
mov esi, dword [esp + 0x30]
xor eax, eax
cmp esi, eax
mov dword [esp + 4], 0x61
mov dword [esp + 8], 0x11
mov dword [esp + 0xc], 0x33
mov dword [esp + 0x10], 0x75
mov dword [esp + 0x14], 0x25
mov dword [esp + 0x18], 0x68
mov dword [esp + 0x1c], 0xd1
mov dword [esp + 0x20], 0x12
mov dword [esp + 0x24], eax
jle 0x4327c7
mov ecx, dword [esp + 0x2c]
mov edx, eax
and edx, 7
mov dl, byte [esp + edx*4 + 4]
xor byte [eax + ecx], dl
inc eax
cmp eax, esi
jl 0x4327b6
pop esi
add esp, 0x24
ret

Function at 0x434a10
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x470916
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x48ac94]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
mov dword [esi], 0x4760d8
mov dword [esp + 0x14], 1
call fcn.004349a0
mov eax, dword [esi + 0x30]
sub eax, 0x10
mov byte [esp + 0x14], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x434a6f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esi + 4]
sub eax, 0x10
mov dword [esp + 0x14], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x434a96
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret

Function at 0x434b20
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x470956
mov eax, dword fs:[0]
push eax
push ecx
push ebp
push esi
push edi
mov eax, dword [0x48ac94]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x10], esi
mov dword [esi], 0x4760d8
mov eax, dword [0x48c038]
mov edx, dword [eax + 0xc]
mov ecx, 0x48c038
lea ebp, [esi + 4]
call edx
add eax, 0x10
mov dword [ebp], eax
mov eax, dword [0x48c038]
mov edx, dword [eax + 0xc]
xor edi, edi
mov ecx, 0x48c038
mov dword [esp + 0x1c], edi
call edx
add eax, 0x10
mov dword [esi + 0x30], eax
push edi
push 0x47f38c
mov ecx, ebp
mov byte [esp + 0x24], 1
mov dword [esi + 0xc], edi
call fcn.00414db0
mov dword [esi + 8], 0xffffffff
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], 1
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x44], edi
mov dword [esi + 0x48], edi
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x10
ret
Function at 0x438c30
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x68
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov dword [esp + 0x20], edi
call fcn.004388a0
mov esi, eax
mov ecx, edi
mov dword [esp + 0x24], esi
call fcn.00438880
mov ebp, dword [esp + 0x80]
mov edi, eax
push ebp
lea eax, [esp + 0x3c]
push eax
mov dword [esp + 0x18], edi
call dword [0x474644]
mov eax, dword [esp + 0x40]
sub eax, dword [esp + 0x38]
cdq
idiv esi
mov ebx, eax
test edx, edx
je 0x438c7a
inc ebx
mov eax, dword [esp + 0x44]
sub eax, dword [esp + 0x3c]
cdq
idiv edi
mov edi, eax
mov dword [esp + 0x14], eax
test edx, edx
je 0x438c94
inc edi
mov dword [esp + 0x14], edi
mov eax, dword [esp + 0x84]
test eax, eax
jne 0x438cb4
mov ecx, dword [esp + 0x10]
push ecx
push esi
push eax
push eax
lea edx, [esp + 0x58]
push edx
call dword [0x474640]
jmp 0x438cc0
push eax
lea eax, [esp + 0x4c]
push eax
call dword [0x474644]
test ebx, ebx
jle 0x438dda
mov dword [esp + 0x80], 0
mov dword [esp + 0x18], ebx
test edi, edi
jle 0x438dc8
mov ecx, dword [esp + 0x80]
add ecx, esi
mov dword [esp + 0x1c], ecx
xor edx, edx
mov dword [esp + 0x84], edi
jmp 0x438d00
mov eax, dword [ebp]
mov ecx, dword [esp + 0x80]
add ecx, eax
mov dword [esp + 0x68], ecx
mov ecx, dword [ebp + 4]
lea esi, [edx + ecx]
mov dword [esp + 0x6c], esi
mov esi, dword [esp + 0x1c]
add esi, eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x70], esi
lea esi, [edx + eax]
add ecx, esi
lea edx, [esp + 0x38]
push edx
lea eax, [esp + 0x6c]
mov dword [esp + 0x78], ecx
push eax
lea ecx, [esp + 0x60]
push ecx
call dword [0x47452c]
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x48]
mov eax, dword [esp + 0x60]
sub eax, dword [esp + 0x58]
mov ebx, dword [esp + 0x4c]
mov edi, dword [esp + 0x54]
mov dword [esp + 0x30], ecx
sub ecx, edx
cmp eax, ecx
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x34], edi
jge 0x438d7a
add eax, edx
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x64]
sub eax, dword [esp + 0x5c]
sub edi, ebx
cmp eax, edi
jge 0x438d8e
add eax, ebx
mov dword [esp + 0x34], eax
mov edx, dword [esp + 0x20]
mov ecx, dword [edx + 0x6c]
test ecx, ecx
je 0x438db0
lea eax, [esp + 0x28]
push eax
mov eax, dword [esp + 0x80]
lea edx, [esp + 0x5c]
push edx
push eax
call fcn.004353c0
sub dword [esp + 0x84], 1
mov edx, esi
jne 0x438d00
mov edi, dword [esp + 0x14]
mov esi, dword [esp + 0x24]
add dword [esp + 0x80], esi
sub dword [esp + 0x18], 1
jne 0x438cd7
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x68
ret 0xc