joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10198510
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x24
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [0x101afb98], 0x1e9b
mov dword [0x101afb9c], 0
mov dword [0x101afba0], 0
mov dword [0x101afbac], 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
xor eax, eax
mov dword [0x101afb94], 0x3763
mov ecx, dword [ebp - 0x10]
cmp ecx, 0
mov dword [ebp - 0x20], eax
je 0x10198659
mov eax, dword [ebp - 0x20]
mov ecx, 0x100
mov edx, dword [0x101afb94]
mov esi, eax
add esi, 1
add edx, 0x8ca
mov dword [0x101afb94], edx
mov edx, dword [0x101afb9c]
add edx, 1
mov dword [ebp - 0x24], eax
mov eax, edx
cdq
idiv ecx
mov dword [0x101afb9c], edx
mov edi, dword [0x101afba0]
mov ebx, dword [ebp - 0x1c]
movzx edx, byte [ebx + edx]
add edx, edi
mov eax, edx
cdq
idiv ecx
mov dword [0x101afba0], edx
mov ecx, dword [0x101afb9c]
mov bl, byte [ebx + ecx]
mov byte [0x101afba4], bl
mov edi, dword [ebp - 0x1c]
mov bl, byte [edi + edx]
mov byte [edi + ecx], bl
mov bl, byte [0x101afba4]
mov ecx, dword [0x101afba0]
mov byte [edi + ecx], bl
mov ecx, dword [0x101afb9c]
movzx ecx, byte [edi + ecx]
mov edx, dword [0x101afba0]
movzx edx, byte [edi + edx]
add edx, ecx
mov dword [0x101afb98], 0x17b2
and edx, 0xff
mov dword [0x101afbac], edx
mov bl, byte [edi + edx]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x24]
movzx ecx, byte [ecx + edx]
mov dword [esp], ecx
movzx ecx, bl
mov dword [esp + 4], ecx
mov dword [ebp - 0x28], esi
call fcn.10001000
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x24]
mov byte [ecx + edx], al
mov esi, dword [ebp - 0x28]
mov edi, dword [ebp - 0x10]
cmp esi, edi
mov dword [ebp - 0x20], esi
jne 0x10198577
mov dword [0x101afb94], 0x1002
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x10198bd0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
lea eax, [fcn.10198bd0]
mov ecx, 0xd84
mov dword [ebp - 4], eax
mov dword [ebp - 8], ecx
jmp 0x10198c08
mov eax, dword [ebp - 0xc]
add eax, 0xfffff000
mov dword [ebp - 0x10], eax
mov eax, 0x1a56
mov ecx, dword [ebp - 0x10]
and ecx, 0xfffff000
mov dword [ebp - 4], ecx
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
cmp word [ecx], 0x5a4d
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], ecx
jne 0x10198be9
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x3c]
cmp dword [eax + ecx], 0x4550
jne 0x10198be9
mov eax, dword [ebp - 0x14]
mov dword [0x101afb94], eax
mov eax, dword [ebp - 0xc]
add esp, 0x14
pop ebp
ret
Function at 0x799ae0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x33c000]
push edi
jmp 0x799afa
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x799b01
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x799af0
mov eax, 1
add ebx, ebx
jne 0x799b13
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x799b24
jne 0x799b43
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x799b43
dec eax
add ebx, ebx
jne 0x799b30
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x799b08
add ebx, ebx
jne 0x799b3f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x799b95
xor ecx, ecx
sub eax, 3
jb 0x799b5b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x799bca
sar eax, 1
mov ebp, eax
jmp 0x799b66
add ebx, ebx
jne 0x799b66
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x799b34
inc ecx
add ebx, ebx
jne 0x799b74
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x799b34
add ebx, ebx
jne 0x799b81
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x799b76
jne 0x799b92
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x799b76
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x799bb4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x799ba6
jmp 0x799af6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x799bb4
add edi, ecx
jmp 0x799af6
pop esi
mov edi, esi
mov ecx, 0x40f0
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x799bd2
cmp byte [edi], 0x11
jne 0x799bd2
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x799bd7
lea edi, [esi + 0x392000]
mov eax, dword [edi]
or eax, eax
je 0x799c4f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x64d01c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x64d198]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x799c04
mov ecx, edi
jns 0x799c33
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x64d19c]
or eax, eax
je 0x799c49
mov dword [ebx], eax
add ebx, 4
jmp 0x799c21
call dword [esi + 0x64d1ac]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x799c80
cmp al, 0xef
ja 0x799c73
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x799c55
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x799c62
mov ebp, dword [esi + 0x64d1a0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x23f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x799cb4
sub esp, 0xffffff80
jmp 0x420577
Function at 0x40aa50
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
or eax, 0xffffffff
mov cl, byte [edx]
test cl, cl
je 0x40aaf9
movzx ecx, cl
lea edx, [edx + 1]
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov cl, byte [edx]
test cl, cl
jne 0x40aa63
not eax
pop ebp
ret
Function at 0x4271f0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x6dc14c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x6e11d0]
push esi
mov esi, dword [ebp + 8]
test eax, eax
jne 0x427264
push eax
push eax
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], 0x4d746547
push ecx
mov word [ebp - 0x11], 0x656c
mov word [ebp - 0xc], 0x6c64
mov word [ebp - 0x14], 0x646f
mov byte [ebp - 0x12], 0x75
mov word [ebp - 0xf], 0x6148
mov word [ebp - 9], 0x57
mov byte [ebp - 0xd], 0x6e
mov byte [ebp - 0xa], 0x65
call fcn.004aeba0
add esp, 0xc
mov dword [0x6e11d0], eax
test eax, eax
jne 0x427264
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0060e1e1
mov esp, ebp
pop ebp
ret
push esi
call eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0060e1e1
mov esp, ebp
pop ebp
ret

Function at 0x427660
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x6dc14c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x6e11cc]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
jne 0x4276d4
push eax
push eax
lea ecx, [ebp - 0x14]
mov word [ebp - 0xd], 0x6441
push ecx
mov word [ebp - 0x10], 0x6f72
mov dword [ebp - 0xa], 0x73736572
mov word [ebp - 0x13], 0x7465
mov byte [ebp - 0x14], 0x47
mov byte [ebp - 0x11], 0x50
mov byte [ebp - 0xe], 0x63
mov byte [ebp - 0xb], 0x64
mov byte [ebp - 6], al
call fcn.004aeba0
add esp, 0xc
mov dword [0x6e11cc], eax
test eax, eax
jne 0x4276d4
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0060e1e1
mov esp, ebp
pop ebp
ret
push edi
push esi
call eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0060e1e1
mov esp, ebp
pop ebp
ret

Function at 0x429960
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x6dc14c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x10]
lea eax, [ebp - 0x14]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push eax
mov word [ebp - 0xb], 0x7972
mov word [ebp - 0xe], 0x7262
mov dword [ebp - 9], 0x577845
mov word [ebp - 0x11], 0x4c64
mov word [ebp - 0x14], 0x6f4c
mov byte [ebp - 0xc], 0x61
mov byte [ebp - 0x12], 0x61
mov byte [ebp - 0xf], 0x69
call fcn.004bfdc0
mov ecx, eax
call fcn.004bfa50
push eax
call fcn.00427660
add esp, 8
test eax, eax
je 0x4299da
push ebx
push edi
push esi
call eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0060e1e1
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0060e1e1
mov esp, ebp
pop ebp
ret
Function at 0x436290
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x637966
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x6dc14c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
lea ecx, [esi + 0x10]
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov byte [esi + 0xc], 0
call fcn.004b0f90
mov byte [esi + 0x24], 0
lea ecx, [esi + 0x34]
push 0x659040
mov dword [ebp - 4], 0
mov byte [esi + 0x25], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov byte [esi + 0x30], 0
call fcn.004a3bd0
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.00436800
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x436fb0
Capabilities:
Hash data with md5

Disassembly:
push esi
mov esi, ecx
push 0x40
push 0
lea eax, [esi + 4]
mov dword [esi], 0x663f58
push eax
call fcn.006103d0
add esp, 0xc
mov dword [esi + 0x48], 0
mov dword [esi + 0x44], 0
mov eax, esi
mov dword [esi + 0x4c], 0x67452301
mov dword [esi + 0x50], 0xefcdab89
mov dword [esi + 0x54], 0x98badcfe
mov dword [esi + 0x58], 0x10325476
pop esi
ret
Function at 0x4966c0
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
movsx eax, byte [ebp + 0xc]
mov ecx, dword [edx]
xor eax, ecx
movzx eax, al
shr ecx, 8
mov eax, dword [eax*4 + 0x66e338]
xor eax, ecx
mov ecx, dword [edx + 8]
mov dword [edx], eax
movzx eax, al
add eax, dword [edx + 4]
imul eax, eax, 0x8088405
inc eax
mov dword [edx + 4], eax
shr eax, 0x18
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x66e338]
mov dword [edx + 8], ecx
pop ebp
ret
Function at 0x4990d0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x4990de
xor eax, eax
pop ebp
ret
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
not eax
cmp esi, 8
jb 0x49919d
push edi
mov edi, esi
shr edi, 3
movzx ecx, byte [edx]
sub esi, 8
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x66e338]
movzx ecx, byte [edx + 1]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x66e338]
movzx ecx, byte [edx + 2]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x66e338]
movzx ecx, byte [edx + 3]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x66e338]
movzx ecx, byte [edx + 4]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x66e338]
movzx ecx, byte [edx + 5]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x66e338]
movzx ecx, byte [edx + 6]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x66e338]
movzx ecx, byte [edx + 7]
add edx, 8
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x66e338]
sub edi, 1
jne 0x4990f6
pop edi
test esi, esi
je 0x4991bb
movzx ecx, byte [edx]
lea edx, [edx + 1]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x66e338]
sub esi, 1
jne 0x4991a1
not eax
pop esi
pop ebp
ret
Function at 0x49b4d0
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6439c8
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x6dc14c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x28], edi
push 1
push 1
xor bl, bl
call fcn.0049b170
add esp, 4
push eax
lea eax, [ebp - 0x24]
push 0x66f064
push eax
call fcn.00414f00
sub esp, 0x10
mov dword [ebp - 4], 0
mov ecx, eax
mov esi, esp
call fcn.004a3130
push eax
mov ecx, esi
call fcn.004a3bd0
mov ecx, edi
call fcn.0049adf0
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], 0xffffffff
call fcn.004a2fc0
cmp byte [edi], bl
je 0x49b647
lea eax, [ebp - 0x24]
push 0x66efc4
push eax
call fcn.00414f00
mov edi, eax
lea eax, [ebp - 0x40]
mov dword [ebp - 4], 1
push 0
push eax
call fcn.0049b400
add esp, 0x10
mov esi, eax
push 0
push 0x4883000
push 0
push 0
mov ecx, edi
mov byte [ebp - 4], 2
call fcn.004a3130
push eax
push 0x663ee4
mov ecx, esi
call fcn.004a5600
mov edi, dword [ebp - 0x28]
push eax
push dword [edi + 8]
call fcn.00428970
add esp, 0x20
lea ecx, [ebp - 0x40]
mov esi, eax
call fcn.004a3c20
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], 0xffffffff
call fcn.004a2fc0
test esi, esi
je 0x49b63e
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 4
push eax
lea eax, [ebp - 0x14]
push eax
push 0x1f
push esi
call fcn.00429180
or dword [ebp - 0x14], 0x180
lea eax, [ebp - 0x14]
push 4
push eax
push 0x1f
push esi
call fcn.004292e0
push 0
push 0
push 0
push 0
push esi
call fcn.00428ad0
push 0
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x18], 0
push eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x1c], 4
push eax
push 0x20000013
push esi
call fcn.00428a20
add esp, 0x48
movzx ebx, bl
cmp dword [ebp - 0x18], 0xc8
mov eax, 1
cmove ebx, eax
push esi
call fcn.00428ed0
add esp, 4
mov ecx, edi
call fcn.0049b140
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0060e1e1
mov esp, ebp
pop ebp
ret
Function at 0x4a32b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
movzx eax, word [ebp + 8]
mov dword [ebp + 8], eax
pop ebp
jmp fcn.004cd6e0

Function at 0x4a44c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4a4519
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4a4519
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x4a450a
cmp esi, edx
jae 0x4a4519
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x4a44f8
cmp esi, edx
jae 0x4a4519
cmp word [esi], 0
je 0x4a4519
mov eax, esi
pop esi
pop ebp
ret
xor eax, eax
pop esi
pop ebp
ret

Function at 0x4a8e50
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp byte [esi + 4], 0
je 0x4a8e83
xor edx, edx
cmp dword [esi + 0x3cc], edx
jle 0x4a8e83
mov eax, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
nop
mov cl, byte [edi + eax]
lea eax, [eax + 1]
xor byte [eax - 1], cl
inc edx
cmp edx, dword [esi + 0x3cc]
jl 0x4a8e70
pop edi
pop esi
pop ebp
ret 8

Function at 0x4aec90
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [ebp + 0xc]
push edi
xor edi, edi
mov ecx, dword [ebx + 0x3c]
mov eax, dword [ecx + ebx]
and eax, 0x7fffffff
cmp eax, 0x4550
jne 0x4aed23
mov eax, 0x10b
cmp word [ecx + ebx + 0x18], ax
jne 0x4aed23
mov eax, dword [ecx + ebx + 0x78]
test eax, eax
je 0x4aed23
mov edx, dword [eax + ebx + 0x18]
lea ecx, [eax + ebx]
mov eax, dword [eax + ebx + 0x20]
add eax, ebx
mov dword [ebp - 4], ecx
push esi
mov dword [ebp + 0xc], edx
xor esi, esi
mov dword [ebp - 8], eax
nop dword [eax]
cmp esi, edx
jae 0x4aed22
mov eax, dword [eax + esi*4]
push dword [ebp + 8]
add eax, ebx
push eax
call fcn.004aeb70
mov edx, dword [ebp + 0xc]
add esp, 8
test eax, eax
jne 0x4aed1a
mov edi, dword [ebp - 4]
mov ecx, edx
sub ecx, edx
add ecx, esi
mov eax, dword [edi + 0x24]
lea eax, [eax + ecx*2]
movzx ecx, word [eax + ebx]
mov eax, dword [edi + 0x1c]
lea eax, [eax + ecx*4]
mov edi, dword [eax + ebx]
add edi, ebx
mov eax, dword [ebp - 8]
inc esi
test edi, edi
je 0x4aece0
pop esi
mov eax, edi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4b0ba0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, ecx
mov eax, dword [ebx + 0x9c4]
push esi
push edi
lea edi, [ebx + 0x9c4]
mov dword [ebp - 4], ebx
mov ebx, 0xe3
nop dword [eax]
mov ecx, dword [edi + 4]
lea edx, [edi + 4]
xor ecx, eax
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edi + 0x634]
xor eax, ecx
mov dword [edi - 0x9c0], eax
lea edi, [edx]
mov eax, dword [edx]
sub ebx, 1
jne 0x4b0bc0
mov edi, dword [ebp - 4]
mov ebx, 0x18c
add edi, 0xd50
mov eax, dword [edi]
nop dword [eax]
mov ecx, dword [edi + 4]
lea edx, [edi + 4]
xor ecx, eax
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edi - 0xd4c]
xor eax, ecx
mov dword [edi - 0x9c0], eax
lea edi, [edx]
mov eax, dword [edx]
sub ebx, 1
jne 0x4b0c10
mov ebx, dword [ebp - 4]
pop edi
pop esi
mov ecx, dword [ebx + 0x1380]
xor ecx, dword [ebx + 4]
and ecx, 0x7fffffff
xor ecx, dword [ebx + 0x1380]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [ebx + 0x634]
xor eax, ecx
mov dword [ebx + 0x9c0], eax
mov dword [ebx], 0
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4b0c90
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push esi
lea eax, [ecx + 8]
mov esi, 0x270
nop dword [eax]
mov edx, dword [eax - 4]
lea eax, [eax + 4]
xor edx, dword [eax - 4]
and edx, 0x7fffffff
xor edx, dword [eax - 8]
mov ecx, edx
and cl, 1
movzx ecx, cl
neg ecx
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [eax + 0x62c]
xor ecx, edx
mov dword [eax + 0x9b8], ecx
sub esi, 1
jne 0x4b0ca0
pop esi
ret

Function at 0x4b0db0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
mov eax, 1
push ebx
mov ebx, ecx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebx + 4], edx
lea esi, [ebx + 8]
nop dword [eax]
mov ecx, edx
lea esi, [esi + 4]
shr ecx, 0x1e
xor edx, ecx
imul edx, edi
add edx, eax
inc eax
mov dword [esi - 4], edx
cmp eax, 0x270
jl 0x4b0dd0
pop edi
pop esi
mov dword [ebx], 0x270
pop ebx
pop ebp
ret 8
Function at 0x4b6ab0
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x639ae9
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x6dc14c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov esi, dword [ebp + 8]
push esi
call fcn.004a3b90
lea eax, [esi + 0x18]
mov dword [ebp - 4], 0
push eax
lea ecx, [edi + 0x18]
call fcn.004a3b90
lea eax, [esi + 0x30]
mov byte [ebp - 4], 1
push eax
lea ecx, [edi + 0x30]
call fcn.004a3b90
lea eax, [esi + 0x48]
mov byte [ebp - 4], 2
push eax
lea ecx, [edi + 0x48]
call fcn.004a3b90
mov eax, dword [esi + 0x60]
lea ecx, [edi + 0x64]
mov dword [edi + 0x60], eax
lea eax, [esi + 0x64]
push eax
mov byte [ebp - 4], 3
call fcn.004a3b90
mov eax, dword [esi + 0x7c]
mov dword [edi + 0x7c], eax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x4b6c60
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x639ba2
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x6dc14c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov esi, dword [ebp + 8]
push esi
call fcn.004a3b90
lea eax, [esi + 0x18]
mov dword [ebp - 4], 0
push eax
lea ecx, [edi + 0x18]
call fcn.004a3b90
lea eax, [esi + 0x30]
mov byte [ebp - 4], 1
push eax
lea ecx, [edi + 0x30]
call fcn.004a3b90
lea eax, [esi + 0x48]
mov byte [ebp - 4], 2
push eax
lea ecx, [edi + 0x48]
call fcn.004a3b90
mov eax, dword [esi + 0x60]
lea ecx, [edi + 0x64]
mov dword [edi + 0x60], eax
lea eax, [esi + 0x64]
push eax
mov byte [ebp - 4], 3
call fcn.004a3b90
mov eax, dword [esi + 0x7c]
lea ecx, [edi + 0x80]
mov dword [edi + 0x7c], eax
lea eax, [esi + 0x80]
push eax
mov byte [ebp - 4], 4
call fcn.004a3b90
lea eax, [esi + 0x98]
mov byte [ebp - 4], 5
push eax
lea ecx, [edi + 0x98]
call fcn.004a3b90
mov eax, dword [esi + 0xb0]
mov dword [edi + 0xb0], eax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x4c15f0
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x643f5c
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x6dc14c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 4], 0
call fcn.004a6f30
lea ecx, [ebx + 0x18]
call fcn.004a6f30
lea ecx, [ebx + 0x30]
call fcn.004a6f30
lea ecx, [ebx + 0x48]
call fcn.004a6f30
mov ecx, ebx
add ecx, 0x60
call fcn.004a6f30
lea eax, [ebp + 8]
mov byte [ebp - 4], 9
push eax
mov ecx, ebx
call fcn.004a6fd0
lea eax, [ebp + 0x20]
push eax
lea ecx, [ebx + 0x18]
call fcn.004a6fd0
lea eax, [ebp + 0x38]
push eax
lea ecx, [ebx + 0x30]
call fcn.004a6fd0
lea eax, [ebp + 0x50]
push eax
lea ecx, [ebx + 0x48]
call fcn.004a6fd0
lea eax, [ebp + 0x68]
push eax
lea ecx, [ebx + 0x60]
call fcn.004a6fd0
lea ecx, [ebp + 8]
call fcn.004a3c20
lea ecx, [ebp + 0x20]
call fcn.004a3c20
lea ecx, [ebp + 0x38]
call fcn.004a3c20
lea ecx, [ebp + 0x50]
call fcn.004a3c20
lea ecx, [ebp + 0x68]
call fcn.004a3c20
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x78

Function at 0x4c7394
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 4], ecx
mov esi, edi
cmp dword [ebp + 8], esi
je 0x4c73d9
call fcn.004cf0de
push 0xf0
push dword [ebp + 8]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4c73d9
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x4c73f5
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.004cf2ff
mov ebx, eax
test edi, edi
je 0x4c73f3
test esi, esi
je 0x4c73f3
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 4