joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1009c496
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100c9438
push 0x100c9430
push str.FlsGetValue
push 0x20
call fcn.1009c285
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1009c4cd
push dword [ebp + 8]
mov ecx, esi
call dword [0x100b23e4]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x1009dc70
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1009dae1

Function at 0x1009ded5
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 + 0x100e0bb0]
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 0x1009df15
cmp byte [ebx], 0xa
jne 0x1009df15
or byte [eax + edi + 0x28], 4
jmp 0x1009df1a
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x1009e018
mov al, byte [edx]
cmp al, 0x1a
je 0x1009dffa
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x1009df49
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x1009df6e
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x1009df78
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 0x1009df2b
jmp 0x1009e018
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 0x1009dff5
cmp dword [ebp - 0xc], 0
je 0x1009dff5
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x100e0bb0]
test byte [eax + edi + 0x28], 0x48
je 0x1009dfcf
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x1009dfba
mov byte [esi], dl
jmp 0x1009dfcb
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x100e0bb0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x1009e018
cmp byte [ebp - 1], 0xa
jne 0x1009dfde
cmp esi, ebx
jne 0x1009dfde
mov byte [esi], 0xa
jmp 0x1009e017
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.1009ea3b
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x1009e018
mov byte [esi], 0xd
jmp 0x1009e017
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x100e0bb0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x1009e014
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x1009e018
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x1009e021
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 + 0x100e0bb0]
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 0x1009e064
cmp word [esi], dx
jne 0x1009e064
or byte [edi + eax + 0x28], 4
jmp 0x1009e069
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 0x1009e1a2
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 0x1009e182
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x1009e0ab
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x1009e0e1
cmp eax, edx
jae 0x1009e0ed
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 0x1009e083
jmp 0x1009e1a2
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 0x1009e17e
cmp dword [ebp - 0x14], 0
je 0x1009e17e
mov eax, dword [ebx*4 + 0x100e0bb0]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x1009e156
mov cx, word [ebp - 4]
pop eax
cmp cx, ax
je 0x1009e19c
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x100e0bb0]
push 0xa
mov byte [edi + eax + 0x2a], cl
mov eax, dword [ebx*4 + 0x100e0bb0]
shr cx, 8
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x100e0bb0]
pop ecx
mov byte [edi + eax + 0x2c], cl
jmp 0x1009e19f
pop ebx
cmp word [ebp - 4], bx
jne 0x1009e167
cmp esi, dword [ebp + 0xc]
jne 0x1009e167
mov word [esi], bx
jmp 0x1009e19f
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.1009ea3b
add esp, 0x10
cmp word [ebp - 4], bx
je 0x1009e1a2
push 0xd
jmp 0x1009e19b
mov ecx, dword [ebx*4 + 0x100e0bb0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x1009e199
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x1009e1a2
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 0x100a34ea
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x100a3587
push ebx
push esi
call fcn.100a34b3
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.1009bf2d
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x100a3534
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100a3586
push edi
push eax
call fcn.10099b1e
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x100a3554
call fcn.100993d9
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100a3585
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1009bf2d
add esp, 0x20
test eax, eax
jne 0x100a3573
push edi
call fcn.100993d9
jmp 0x100a357b
push ebx
call fcn.100993d9
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x100a358a
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x100a359b
pop esi
ret
push ebx
push edi
push esi
call fcn.100a34b3
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.10099b1e
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x100a35c3
push ebx
push esi
push edi
call fcn.10080ec0
add esp, 0xc
push 0
call fcn.100993d9
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x100a3d0f
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.100a3836
Function at 0x100abc0f
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]
push dword [ebp + 0xc]
push ebx
call fcn.100abb8b
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x100abd87
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x100abd87
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x100abd36
jg 0x100abc68
test eax, eax
je 0x100abd2c
push 1
push 0x1000
call fcn.1009c80a
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x100abc8e
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x100abd23
push 0x8000
push ebx
call fcn.100ababc
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x100abcba
jg 0x100abcb5
cmp ecx, 0x1000
jb 0x100abcba
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.1009d8e1
add esp, 0x10
cmp eax, 0xffffffff
je 0x100abcff
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 0x100abcb5
jl 0x100abce6
test ecx, ecx
jne 0x100abca7
push dword [ebp - 0xc]
push ebx
call fcn.100ababc
push esi
call fcn.100993d9
add esp, 0xc
xor edi, edi
jmp 0x100abd98
cmp byte [edi + 0x24], 0
je 0x100abd16
cmp dword [edi + 0x20], 5
jne 0x100abd16
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x100abd21
mov edi, dword [edi + 0x18]
jmp 0x100abd23
xor edi, edi
push esi
call fcn.100993d9
pop ecx
jmp 0x100abd98
test ecx, ecx
jg 0x100abcf8
jl 0x100abd36
test eax, eax
jae 0x100abcf8
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1009ea3b
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x100abd59
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x100abcf8
jmp 0x100abd90
push ebx
call fcn.100aa10d
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x100abcf8
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x100abd98
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x100abd95
mov edi, dword [edi + 0x18]
jmp 0x100abd98
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.1009ea3b
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x100ac010
Capabilities:
Parse pe header

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

Disassembly:
xor edx, edx
mov eax, edx
and eax, 1
sub eax, 1
not eax
and eax, 0xedb88320
mov ecx, edx
shr ecx, 1
xor eax, ecx
mov ecx, eax
and ecx, 1
sub ecx, 1
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
sub eax, 1
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
sub ecx, 1
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
sub eax, 1
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
sub ecx, 1
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
sub eax, 1
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
sub ecx, 1
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov dword [edx*4 + 0x420de0], ecx
add edx, 1
cmp edx, 0x100
jb 0x418f12
cmp edx, 0x800
jae 0x418ffb
mov edi, edi
mov eax, dword [edx*4 + 0x4209e0]
mov ecx, eax
and ecx, 0xff
shr eax, 8
xor eax, dword [ecx*4 + 0x420de0]
add edx, 1
cmp edx, 0x800
mov dword [edx*4 + 0x420ddc], eax
jb 0x418fd0
mov dword [0x420dbc], 0x4196b0
call fcn.00419140
test eax, eax
jne 0x419018
mov dword [0x420dbc], 0x4195d0
ret

Function at 0x433001
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
call 0x43300c
nop
nop
nop
nop
pop eax
nop
add eax, 0x40a063
nop
nop
sub eax, 0x40a009
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
jl 0x433030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43301e
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x42e001
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x407ef8
mov ecx, 0x2d246924
nop
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x42e04e
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x42e024
nop
mov eax, section..data
nop
nop
mov ebx, 0x42cd70
mov ecx, 0x5bc84c8d
nop
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x42e084
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x42e06c
nop
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x460214
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov eax, 0x200
mov esi, ecx
cmp edx, eax
push edi
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], esi
jb 0x460372
cmp word [esi], 0x5a4d
jne 0x460372
mov ecx, dword [esi + 0x3c]
cmp ecx, 0x1000
jae 0x460372
lea edi, [ecx + 0x200]
cmp edi, edx
ja 0x460372
test cl, 7
jne 0x460372
add esi, ecx
cmp dword [esi], 0x4550
jne 0x460372
movzx edi, word [esi + 4]
add esi, 4
cmp edi, eax
ja 0x4602b3
je 0x4602aa
mov eax, edi
sub eax, 0x14c
je 0x4602dc
sub eax, 0x74
je 0x4602a1
dec eax
dec eax
je 0x4602a1
dec eax
dec eax
jne 0x460372
mov dword [ebp - 4], 0x3030701
jmp 0x4602ec
mov dword [ebp - 4], 0x3030501
jmp 0x4602ec
mov dword [ebp - 4], 0x3030401
jmp 0x4602ec
mov eax, edi
sub eax, 0x5032
je 0x4602e5
sub eax, 0x32
je 0x4602e5
sub eax, 0x3600
je 0x4602dc
sub eax, 0x2400
jne 0x460372
mov dword [ebp - 4], 0xa
jmp 0x4602ec
mov dword [ebp - 4], 0x3030103
jmp 0x4602ec
mov dword [ebp - 4], 0xb
movzx eax, word [esi + 0x10]
movzx ebx, word [esi + 2]
cmp eax, 0x400
ja 0x460372
movzx ecx, word [esi + 0x14]
add esi, 0x14
cmp ecx, 0x10b
je 0x460312
cmp ecx, 0x20b
jne 0x460372
mov ecx, eax
sub ecx, dword [ebp - 8]
add ecx, esi
cmp ecx, dword [ebp - 0xc]
ja 0x460365
add esi, eax
cmp ebx, 0x40
ja 0x460365
cmp edi, 0x8664
jne 0x460365
xor edi, edi
test ebx, ebx
jbe 0x460365
mov eax, esi
sub eax, dword [ebp - 8]
add eax, 0x28
cmp eax, dword [ebp - 0xc]
ja 0x460365
push 8
push 0x4804a0
push esi
call 0x480624
add esp, 0xc
test eax, eax
je 0x46035e
inc edi
add esi, 0x28
cmp edi, ebx
jb 0x460333
jmp 0x460365
mov dword [ebp - 4], 0xa
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
push 1
mov dword [eax], ecx
pop eax
jmp 0x460374
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x464563
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x479340
call 0x480460
push ecx
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
call fcn.0045f79c
xor edi, edi
mov dword [ebp - 4], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
lea eax, [esi + 0x3c]
mov dword [ebp - 0x14], eax
mov dword [eax], edi
mov dword [eax + 4], edi
mov dword [eax + 8], edi
lea ecx, [eax + 0xc]
mov byte [ebp - 4], 2
call fcn.00459e1e
mov dword [esi + 0x54], edi
mov dword [esi + 0x58], edi
mov dword [esi + 0x5c], edi
mov dword [esi + 0x60], edi
mov dword [esi + 0x64], edi
mov dword [esi + 0x68], edi
mov dword [esi + 0x6c], edi
mov dword [esi + 0x70], edi
mov dword [esi + 0x74], edi
lea eax, [esi + 0x78]
mov dword [ebp - 0x14], eax
mov dword [eax], edi
mov dword [eax + 4], edi
mov dword [eax + 8], edi
lea ecx, [eax + 0xc]
mov byte [ebp - 4], 7
call fcn.00459e1e
lea eax, [esi + 0x90]
mov dword [ebp - 0x14], eax
mov dword [eax], edi
mov dword [eax + 4], edi
mov dword [eax + 8], edi
lea ecx, [eax + 0xc]
mov byte [ebp - 4], 9
call fcn.00459e1e
lea eax, [esi + 0xa8]
mov dword [ebp - 0x14], eax
mov dword [eax], edi
mov dword [eax + 4], edi
mov dword [eax + 8], edi
lea ecx, [eax + 0xc]
mov byte [ebp - 4], 0xb
call fcn.00459e1e
lea ebx, [esi + 0xc0]
mov byte [ebp - 4], 0xc
mov ecx, ebx
mov dword [ebp - 0x14], ebx
call fcn.00459e1e
lea ecx, [ebx + 0xc]
mov byte [ebp - 4], 0xd
call fcn.00459e1e
lea ebx, [esi + 0xd8]
mov byte [ebp - 4], 0xe
mov ecx, ebx
mov dword [ebp - 0x14], ebx
call fcn.00459e1e
lea ecx, [ebx + 0xc]
mov byte [ebp - 4], 0xf
call fcn.00459e1e
mov ecx, dword [ebp - 0xc]
lea eax, [esi + 0xf0]
mov dword [eax], edi
mov dword [eax + 4], edi
mov dword [eax + 8], edi
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x40959c
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x50
push ebp
lea eax, [esp + 0x28]
push edi
push eax
call fcn.0040974c
mov ecx, dword [esp + 0x5c]
xor edx, edx
xor ebp, ebp
mov dword [esp + 0xc], 1
mov edi, dword [ecx]
mov dword [esp + 0x10], 8
mov dword [esp + 0x14], 2
mov dword [esp + 0x18], 4
mov dx, word [edi + 0x14]
cmp word [edi + 6], bp
mov dword [esp + 0x1c], 0x10
mov dword [esp + 0x20], 0x80
mov dword [esp + 0x24], 0x20
mov dword [esp + 0x28], 0x40
lea eax, [edx + edi + 0x18]
jbe 0x40969a
push ebx
push esi
lea ebx, [eax + 0x24]
mov eax, dword [ebx]
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 0x40963d
mov eax, dword [ebx - 0x14]
mov ecx, dword [ebx - 0x1c]
push 0x4000
push eax
push ecx
call dword [esp + 0x4c]
jmp 0x409680
lea edx, [edx + ecx*2]
test eax, 0x4000000
lea ecx, [esi + edx*2]
mov esi, dword [esp + ecx*4 + 0x14]
je 0x409654
or esi, 0x200
mov edx, dword [ebx - 0x14]
mov ecx, edx
test ecx, ecx
jne 0x40966f
test al, 0x40
je 0x409666
mov ecx, dword [edi + 0x20]
jmp 0x40966d
test al, 0x80
je 0x409680
mov ecx, dword [edi + 0x24]
test ecx, ecx
jbe 0x409680
mov ecx, dword [ebx - 0x1c]
lea eax, [esp + 0x10]
push eax
push esi
push edx
push ecx
call dword [esp + 0x44]
mov edx, dword [esp + 0x64]
xor eax, eax
inc ebp
add ebx, 0x28
mov edi, dword [edx]
mov ax, word [edi + 6]
cmp ebp, eax
jl 0x40960c
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x50
ret
Function at 0x44adca
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x52c258
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
call fcn.0051d4cd
xor ebp, ebp
mov dword [esi], 0x703b28
mov dword [esi + 0x3c], ebp
mov dword [esi + 0x40], ebp
lea edi, [esi + 0x44]
mov dword [esp + 0x38], ebp
mov dword [esp + 0x14], edi
lea ecx, [edi + 0x18]
mov dword [edi], 0x703038
call fcn.004399a0
lea ecx, [edi + 0x30]
mov byte [esp + 0x38], 1
call fcn.0051aabe
lea ebx, [edi + 0x44]
mov ecx, ebx
call fcn.004399a0
mov dword [ebx], 0x7017fc
mov dword [edi], 0x703a4c
mov dword [esi + 0xa0], ebp
mov dword [esi + 0x9c], 0x7d5b14
lea ecx, [esi + 0xb0]
call fcn.004399a0
lea edi, [esi + 0xc8]
mov dword [edi + 4], ebp
mov dword [edi], 0x7d4894
mov byte [esp + 0x38], 5
mov dword [esi], 0x703a54
mov dword [esi + 0xac], ebp
call fcn.00526c1f
mov eax, dword [eax + 0xc]
push 0x40e
push eax
call dword [0x53671c]
push eax
mov ecx, edi
call fcn.00522f38
mov ecx, dword [esi + 0xcc]
lea eax, [esp + 0x18]
push eax
push 0x18
push ecx
call dword [0x536148]
mov ecx, dword [esp + 0x1c]
mov eax, 0x55555556
imul ecx
mov ecx, dword [esp + 0x20]
mov eax, edx
shr eax, 0x1f
add edx, eax
mov dword [esi + 0xd4], ecx
mov ecx, dword [esp + 0x30]
mov dword [esi + 0xd0], edx
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x2c
ret

Function at 0x44af80
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x52c2e5
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
mov dword [esi], 0x703a54
mov dword [esp + 0x18], 0
lea ecx, [esi + 0xc8]
mov dword [esp + 0xc], ecx
mov dword [ecx], 0x7d3990
mov byte [esp + 0x18], 4
call fcn.00522f8f
lea ecx, [esi + 0xb0]
mov byte [esp + 0x18], 2
mov dword [ecx], 0x7017f8
call fcn.00439ba0
lea ecx, [esi + 0x9c]
mov dword [esp + 0xc], ecx
mov dword [ecx], 0x7d3990
mov byte [esp + 0x18], 5
call fcn.00522f8f
lea edi, [esi + 0x44]
mov dword [esp + 0xc], edi
lea ecx, [edi + 0x44]
mov byte [esp + 0x18], 7
mov dword [ecx], 0x7017f8
call fcn.00439ba0
lea ecx, [edi + 0x30]
mov byte [esp + 0x18], 6
call fcn.0051aaf1
lea ecx, [edi + 0x18]
mov byte [esp + 0x18], 0
mov dword [ecx], 0x7017f8
call fcn.00439ba0
mov ecx, esi
mov dword [esp + 0x18], 0xffffffff
call fcn.00524dd2
mov ecx, dword [esp + 0x10]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x45d8a0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x844fa8]
xor edx, edx
cmp eax, edx
jne 0x45d8c6
xor eax, eax
mov byte [eax + 0x844ea8], al
inc eax
cmp eax, 0x100
jl 0x45d8ae
mov dword [0x844fa8], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x844ea8
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x45d957
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x45d92a
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x45d8f8
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x45d9d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x45da23
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x45da0a
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret