joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1008115
Capabilities:
Delete registry value

Disassembly:
mov eax, 0x100e624
call fcn.01006f08
push esi
mov esi, dword [ebp + 8]
push edi
push 2
push esi
call fcn.01007eb7
mov edi, eax
mov dword [ebp + 8], edi
and dword [ebp - 4], 0
test edi, edi
je 0x100815d
push dword [esi + 8]
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
cmp eax, 2
je 0x1008152
test eax, eax
je 0x1008152
push esi
call fcn.01007e65
or dword [ebp - 4], 0xffffffff
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 4

Function at 0x100824f
Capabilities:
Access the windows event log

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x80
push ebx
push esi
mov esi, eax
xor ebx, ebx
test esi, esi
push edi
je 0x1008269
inc ebx
inc dword [ebp + 0xc]
and dword [ebp - 0x80], 0
push 0x1f
xor eax, eax
cmp word [ebp + 0xc], 0x20
pop ecx
lea edi, [ebp - 0x7c]
rep stosd dword es:[edi], eax
mov edi, 0x1002760
jb 0x10082b2
test byte [0x101103c], 1
je 0x10082ab
movzx eax, word [ebp + 0xc]
push esi
push eax
push 0x20
push dword [ebp + 8]
push edi
push 0xc
push dword [0x1011034]
push dword [0x1011030]
call fcn.010081dc
mov dword [ebp + 0xc], 0x1f
movzx eax, word [ebp + 0xc]
cmp ebx, eax
mov dword [ebp - 0x80], esi
mov ecx, ebx
jge 0x10082d3
mov edx, dword [ebp + 0x10]
add edx, 0xfffffffc
add edx, 4
mov esi, dword [edx]
mov dword [ebp + ecx*4 - 0x80], esi
inc ecx
cmp ecx, eax
jl 0x10082c5
mov eax, dword [ebp + 8]
shr eax, 0x1e
dec eax
je 0x10082eb
dec eax
je 0x10082e7
dec eax
jne 0x10082eb
xor eax, eax
inc eax
jmp 0x10082ee
push 2
jmp 0x10082ed
push 4
pop eax
xor ecx, ecx
push ecx
lea edx, [ebp - 0x80]
push edx
push ecx
push dword [ebp + 0xc]
push ecx
push dword [ebp + 8]
push ecx
push eax
push dword [0x101184c]
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
test eax, eax
jne 0x1008336
test byte [0x101103c], 1
je 0x1008336
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp + 8]
push edi
push 0xd
push dword [0x1011034]
push dword [0x1011030]
call fcn.01007e1d
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x1008511
Capabilities:
Access firewall settings via inetfwmgr

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, ecx
lea ebx, [esi + 8]
push ebx
push 0x10027c0
push 3
push 0
push 0x10027b0
call edi
test eax, eax
mov dword [ebp - 4], eax
jge 0x1008572
test byte [0x101103c], 1
je 0x100855f
push eax
push 0x1002780
push 0xb
push dword [0x1011034]
push dword [0x1011030]
call fcn.01003a70
push 0xd2
push dword [0x1011308]
push dword [ebp - 4]
jmp 0x1008643
mov eax, dword [ebx]
mov ecx, dword [eax]
lea edx, [esi + 0x14]
push edx
push eax
call dword [ecx + 0x1c]
mov ebx, eax
test ebx, ebx
jge 0x10085b7
test byte [0x101103c], 1
je 0x10085a6
push ebx
push 0x1002780
push 0xc
push dword [0x1011034]
push dword [0x1011030]
call fcn.01003a70
push 0xdc
push dword [0x1011308]
push ebx
jmp 0x1008643
lea eax, [esi + 0xc]
push eax
push 0x10027a0
push 0x17
push 0
mov ebx, 0x1002790
push ebx
call edi
test eax, eax
mov dword [ebp - 4], eax
jge 0x10085ff
test byte [0x101103c], 1
je 0x10085f5
push eax
push 0x1002780
push 0xd
push dword [0x1011034]
push dword [0x1011030]
call fcn.01003a70
push 0xe6
jmp 0x1008564
add esi, 0x10
push esi
push 0x10027a0
push 0x17
push 0
push ebx
call edi
mov esi, eax
test esi, esi
jge 0x100864a
test byte [0x101103c], 1
je 0x1008637
push esi
push 0x1002780
push 0xe
push dword [0x1011034]
push dword [0x1011030]
call fcn.01003a70
push 0xf0
push dword [0x1011308]
push esi
call fcn.010056af
jmp 0x100864c
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1008d25
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x100e6e5
call fcn.01006f08
sub esp, 0x10
push esi
xor esi, esi
mov dword [ebp - 0x10], esi
lea eax, [ebp - 0x10]
push eax
push 0x20019
push esi
push 0x1001f80
push reloc.WS2_32.dll_bind
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
jne 0x1008d87
push 4
pop eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
push eax
push esi
push dword [ebp + 8]
mov dword [ebp - 0x14], esi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, esi
je 0x1008d9d
cmp eax, 2
je 0x1008d9d
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x10], esi
je 0x1008d99
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x1008db6
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x10], esi
push edi
mov edi, dword [ebp - 0x14]
je 0x1008db3
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret 4
Function at 0x1008e84
Capabilities:
Set registry value

Disassembly:
mov eax, 0x100e6e5
call fcn.01006f08
push ecx
push esi
push edi
xor edi, edi
mov dword [ebp - 0x10], edi
lea eax, [ebp - 0x10]
push eax
push 0x20006
push edi
push 0x1001f80
push reloc.WS2_32.dll_bind
mov dword [ebp - 4], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
cmp esi, edi
je 0x1008ef1
test byte [0x10110dc], 1
je 0x1008edb
push esi
push 0x10027e4
push 0x16
push dword [0x10110d4]
push dword [0x10110d0]
call fcn.01003a70
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x10], edi
je 0x1008eed
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x1008f46
push ebx
push 4
lea eax, [ebp + 8]
push eax
push 4
push edi
mov esi, 0x10027f4
push esi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test byte [0x10110dc], 4
mov ebx, eax
je 0x1008f31
push dword [ebp + 8]
push esi
push 0x10027e4
push 0x17
push dword [0x10110d4]
push dword [0x10110d0]
call fcn.01008cb8
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x10], edi
je 0x1008f43
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 4

Function at 0x1008f5b
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x100e6ce
call fcn.01006f08
sub esp, 0x218
mov eax, dword [0x10112d4]
push esi
xor esi, esi
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x21c], esi
lea eax, [ebp - 0x21c]
push eax
push 0x20019
push esi
push 0x1001f80
push reloc.WS2_32.dll_bind
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
je 0x1008fe1
test byte [0x10110dc], 1
je 0x1008fc2
push eax
push 0x10027e4
push 0x18
push dword [0x10110d4]
push dword [0x10110d0]
call fcn.01003a70
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x21c], esi
je 0x1008fda
push dword [ebp - 0x21c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
jmp 0x1009082
push ebx
push edi
xor eax, eax
mov word [ebp - 0x218], si
mov ecx, 0x81
lea edi, [ebp - 0x216]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x224]
push eax
push esi
push 0x1002830
push dword [ebp - 0x21c]
mov dword [ebp - 0x224], 1
mov dword [ebp - 0x220], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test byte [0x10110dc], 4
mov edi, eax
je 0x1009061
xor eax, eax
cmp edi, esi
sete al
push eax
push 0x10027e4
push 0x19
push dword [0x10110d4]
push dword [0x10110d0]
call fcn.01003a70
cmp edi, esi
sete bl
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x21c], esi
je 0x100907e
push dword [ebp - 0x21c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov al, bl
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop esi
call fcn.01006c1c
leave
ret
Function at 0x100909c
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x100e6e5
call fcn.01006f08
sub esp, 0x20
push ebx
push esi
push edi
xor edi, edi
mov ebx, ecx
mov dword [ebp - 0x10], edi
lea eax, [ebp - 0x10]
push eax
push 0x20019
push edi
mov esi, 0x1002878
push esi
push reloc.WS2_32.dll_bind
mov dword [ebp - 4], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
mov dword [ebp - 0x1c], eax
je 0x1009100
test byte [0x10110dc], 1
je 0x10090fb
push eax
push esi
push 0x10027e4
push 0x1f
push dword [0x10110d4]
push dword [0x10110d0]
call fcn.01008cb8
push dword [ebp - 0x1c]
jmp 0x100917e
mov ecx, ebx
mov dword [ebp - 0x18], 3
mov dword [ebp - 0x14], 0x10
call fcn.01008f5b
test al, al
je 0x1009136
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 0x1c], edi
call dword [ebx + 0xc]
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x18]
push eax
push edi
push 0x100285c
jmp 0x1009147
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x18]
push eax
push edi
push 0x1002850
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
cmp esi, edi
je 0x1009194
test byte [0x10110dc], 1
je 0x100917d
push esi
push 0x1001d5c
push 0x10027e4
push 0x20
push dword [0x10110d4]
push dword [0x10110d0]
call fcn.01008cb8
push esi
lea ecx, [ebp - 0x2c]
call fcn.01007891
push 0x100f16c
lea eax, [ebp - 0x2c]
push eax
call sub.msvcrt.dll__CxxThrowException
test byte [0x10110dc], 4
je 0x10091bd
push dword [ebp + 8]
push 0x1001d5c
push 0x10027e4
push 0x21
push dword [0x10110d4]
push dword [0x10110d0]
call fcn.01008c6a
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x10], edi
je 0x10091cf
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x100a03b
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x100e7ee
call fcn.01006f08
sub esp, 0x10
push edi
xor edi, edi
mov dword [ebp - 0x10], edi
lea eax, [ebp - 0x10]
push eax
push 0x20019
push edi
push 0x1001f80
push reloc.WS2_32.dll_bind
mov dword [ebp - 4], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
je 0x100a088
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x10], edi
je 0x100a081
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x100a10e
push ebx
push esi
push 4
pop ebx
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
push eax
push edi
mov esi, 0x1002990
push esi
push dword [ebp - 0x10]
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, edi
je 0x100a0d1
cmp eax, 2
je 0x100a0d1
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x10], edi
je 0x100a0cd
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x100a10c
test byte [0x10110dc], bl
je 0x100a0f5
push dword [ebp - 0x14]
push esi
push 0x10028f0
push 0xe
push dword [0x10110d4]
push dword [0x10110d0]
call fcn.01008cb8
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x10], edi
mov esi, dword [ebp - 0x14]
je 0x100a10a
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
leave
ret

Function at 0x100a120
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x100e808
call fcn.01006f08
sub esp, 0xbc8
mov eax, dword [0x10112d4]
push esi
xor esi, esi
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xbcc], esi
lea eax, [ebp - 0xbcc]
push eax
push 0x20019
push esi
push 0x1002878
push reloc.WS2_32.dll_bind
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
je 0x100a18d
test byte [0x10110dc], 4
je 0x100a1f3
push eax
push 0x10028f0
push 0x14
push dword [0x10110d4]
push dword [0x10110d0]
call fcn.01003a70
jmp 0x100a1f3
lea eax, [ebp - 0xbd0]
push eax
lea eax, [ebp - 0xbc8]
push eax
lea eax, [ebp - 0xbd4]
push eax
push esi
push 0x10029cc
push dword [ebp - 0xbcc]
mov dword [ebp - 0xbd4], 1
mov dword [ebp - 0xbd0], 0xbb8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, esi
je 0x100a20f
test byte [0x10110dc], 4
je 0x100a1f3
push eax
push 0x1002990
push 0x10028f0
push 0x15
push dword [0x10110d4]
push dword [0x10110d0]
call fcn.01008cb8
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0xbcc], esi
je 0x100a20b
push dword [ebp - 0xbcc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
jmp 0x100a229
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0xbcc], esi
je 0x100a227
push dword [ebp - 0xbcc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop esi
call fcn.01006c1c
leave
ret
Function at 0x100a27a
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov eax, 0x100e82d
call fcn.01006f08
push ecx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
xor edi, edi
mov dword [esi], 0x10029e8
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
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 + 0x2c], edi
mov dword [esi + 0x30], 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 dword [esi + 0x4c], edi
mov dword [esi + 0x50], edi
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
mov dword [esi + 0x78], edi
mov dword [esi + 0x7c], edi
mov dword [esi + 0x80], edi
mov dword [esi + 0x84], edi
mov dword [ebp - 4], edi
mov dword [esi + 0x88], edi
lea ecx, [esi + 0x8c]
mov byte [ebp - 4], 1
call fcn.010074a4
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0xa8], edi
mov dword [esi + 0xb8], 0xc00e0094
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x100e1fd
Capabilities:
Access pe header
Check for peb beingdebugged flag

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword fs:[0x18]
push ebx
push esi
mov esi, dword [ecx + 0x30]
mov ecx, dword fs:[0x18]
mov ecx, dword [ecx + 0x30]
xor eax, eax
cmp byte [ecx + 2], al
push edi
mov edi, dword [sym.imp.ntdll.dll_RtlImageNtHeader]
mov ebx, 0xdeadbeef
je 0x100e232
mov dword [0x10118ac], eax
jmp 0x100e253
mov ecx, dword [ebp + 8]
cmp ecx, ebx
jne 0x100e24d
push dword [esi + 8]
call edi
test eax, eax
jne 0x100e24a
and dword [0x10118ac], eax
jmp 0x100e253
mov ecx, dword [eax + 0x64]
mov dword [0x10118ac], ecx
mov ecx, dword [ebp + 0xc]
cmp ecx, ebx
jne 0x100e27a
test eax, eax
jne 0x100e270
push dword [esi + 8]
call edi
test eax, eax
jne 0x100e270
or dword [0x10118b0], 0xffffffff
jmp 0x100e280
mov eax, dword [eax + 0x64]
mov dword [0x10118b0], eax
jmp 0x100e280
mov dword [0x10118b0], ecx
mov eax, dword [ebp + 0x10]
test eax, eax
pop edi
pop esi
pop ebx
mov dword [0x10118b4], 0x100e147
je 0x100e299
mov dword [0x10118b4], eax
mov eax, dword [ebp + 0x14]
test eax, eax
mov dword [fcn.010118b8], 0x100e16c
je 0x100e2af
mov dword [fcn.010118b8], eax
pop ebp
ret 0x10
Function at 0x40eaa0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x20
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x24], eax
mov eax, dword [0x43e080]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov ecx, dword [0x43f54c]
mov eax, dword [0x43f548]
mov edx, ecx
add edx, 0xf4a12b9d
sub edx, 1
sub edx, 0xf4a12b9d
imul ecx, edx
and ecx, 1
cmp ecx, 0
sete cl
and cl, 1
mov byte [ebp - 0x1a], cl
cmp eax, 0xa
setl al
and al, 1
mov byte [ebp - 0x19], al
mov dword [ebp - 0x20], 0xaf0347e2
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x2c], eax
sub eax, 0xaf0347e2
je 0x40eb79
jmp 0x40eb15
mov eax, dword [ebp - 0x2c]
sub eax, 0xb5f5e020
je 0x40ecb2
jmp 0x40eb28
mov eax, dword [ebp - 0x2c]
sub eax, 0xbba368a9
je 0x40eca0
jmp 0x40eb3b
mov eax, dword [ebp - 0x2c]
sub eax, 0xde3aa462
je 0x40ec57
jmp 0x40eb4e
mov eax, dword [ebp - 0x2c]
sub eax, 0x15d783d9
je 0x40ec4b
jmp 0x40eb61
mov eax, dword [ebp - 0x2c]
sub eax, 0x20ea7428
je 0x40ebc4
jmp 0x40eb74
jmp 0x40ecc1
mov bl, byte [ebp - 0x1a]
mov dh, byte [ebp - 0x19]
mov al, bl
xor al, 0xff
mov ah, dh
xor ah, 0xff
mov cl, 1
xor cl, 0
mov dl, al
and dl, 0
and bl, cl
mov ch, ah
and ch, 0
and dh, cl
or dl, bl
or ch, dh
xor dl, ch
or al, ah
xor al, 0xff
or cl, 0
and al, cl
or dl, al
mov eax, 0xb5f5e020
mov ecx, 0x20ea7428
test dl, 1
cmovne eax, ecx
mov dword [ebp - 0x20], eax
jmp 0x40ecc1
mov ecx, dword [ebp - 0x28]
push eax
mov eax, esp
mov dword [ebp - 0x18], eax
push eax
mov eax, esp
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x18]
mov dword [eax], ecx
mov ecx, dword [0x43f54c]
mov eax, dword [0x43f548]
mov edx, ecx
sub edx, 0xa66739e
sub edx, 1
add edx, 0xa66739e
imul ecx, edx
and ecx, 1
cmp ecx, 0
sete bl
cmp eax, 0xa
setl dh
mov al, bl
xor al, 0xff
mov ah, dh
xor ah, 0xff
mov cl, 1
xor cl, 0
mov dl, al
and dl, 0
and bl, cl
mov ch, ah
and ch, 0
and dh, cl
or dl, bl
or ch, dh
xor dl, ch
or al, ah
xor al, 0xff
or cl, 0
and al, cl
or dl, al
mov eax, 0xb5f5e020
mov ecx, 0x15d783d9
test dl, 1
cmovne eax, ecx
mov dword [ebp - 0x20], eax
jmp 0x40ecc1
mov dword [ebp - 0x20], 0xde3aa462
jmp 0x40ecc1
mov ecx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x14]
mov dword [eax], ecx
mov edx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x14]
pop eax
push eax
mov eax, eax
xor eax, 0x85
nop
mov ecx, dword [edx]
mov edi, dword [esi]
not byte [edi]
pop eax
push eax
mov eax, eax
xor eax, 0x85
nop
add byte [edi], 0x64
sub byte [edi], 0x88
pop eax
push eax
mov eax, eax
xor eax, 0x85
nop
imul byte [edi]
inc edi
loop 0x40ec73
mov dword [ebp - 0x20], 0xbba368a9
jmp 0x40ecc1
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004272e0
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, dword [ebp - 0x28]
push eax
mov eax, esp
mov dword [eax], ecx
mov dword [ebp - 0x20], 0x20ea7428
jmp 0x40eaff
Function at 0x427bd8
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x427c17
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x427c17
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x427c17
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x427c17
cmp dword [ecx + 0x74], 0xe
jbe 0x427c17
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x42f37b
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 0x42f418
push ebx
push esi
call fcn.0042f344
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.0042f2d8
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x42f3c5
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x42f417
push edi
push eax
call fcn.0042de10
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x42f3e5
call fcn.0042de5e
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x42f416
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0042f2d8
add esp, 0x20
test eax, eax
jne 0x42f404
push edi
call fcn.0042de5e
jmp 0x42f40c
push ebx
call fcn.0042de5e
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 0x430627
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4390e0
push 0x4390d8
push str.FlsAlloc
push 0x1f
call fcn.004304e6
mov esi, eax
add esp, 0x10
test esi, esi
je 0x43065b
push dword [ebp + 8]
mov ecx, esi
call dword [0x43614c]
call esi
jmp 0x430661
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4306a5
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4390f0
push 0x4390e8
push str.FlsGetValue
push 0x21
call fcn.004304e6
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4306dc
push dword [ebp + 8]
mov ecx, esi
call dword [0x43614c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x4306e4
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4390f8
push 0x4390f0
push str.FlsSetValue
push 0x22
call fcn.004304e6
mov esi, eax
add esp, 0x10
test esi, esi
je 0x43071e
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x43614c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x4359f0
Capabilities:
Parse pe header

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

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0x10]
mov edx, dword [edx]
sub esp, 0xc
xor eax, eax
and edx, 7
cmp ecx, 5
jae 0x403bec
leave
ret
add dword [ebp + 0xc], 5
or dword [ebp - 4], 0xffffffff
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea ecx, [edi + ecx - 4]
mov dword [ebp - 8], ecx
lea esi, [eax + edi]
jmp 0x403c0f
mov al, byte [esi]
and al, 0xfe
cmp al, 0xe8
je 0x403c14
inc esi
cmp esi, dword [ebp - 8]
jb 0x403c06
mov eax, esi
sub eax, edi
cmp esi, dword [ebp - 8]
mov dword [ebp - 0xc], eax
jae 0x403d09
mov ecx, eax
sub ecx, dword [ebp - 4]
cmp ecx, 3
jbe 0x403c68
xor edx, edx
mov cl, byte [esi + 4]
test cl, cl
mov dword [ebp - 4], eax
je 0x403c3f
cmp cl, 0xff
jne 0x403c93
xor ebx, ebx
mov bh, cl
movzx ecx, byte [esi + 2]
mov bl, byte [esi + 3]
shl ebx, 8
or ebx, ecx
movzx ecx, byte [esi + 1]
shl ebx, 8
or ebx, ecx
mov edi, ebx
cmp dword [ebp + 0x14], 0
je 0x403ca1
lea ebx, [edi + eax]
add ebx, dword [ebp + 0xc]
jmp 0x403ca8
dec ecx
shl edx, cl
and edx, 7
je 0x403c30
movzx ecx, byte [edx + 0x411588]
mov ebx, esi
sub ebx, ecx
cmp byte [edx + 0x411580], 0
mov cl, byte [ebx + 4]
je 0x403c90
test cl, cl
je 0x403c90
cmp cl, 0xff
jne 0x403c30
mov dword [ebp - 4], eax
and edx, 3
add edx, edx
or edx, 1
inc eax
jmp 0x403c01
sub edi, eax
sub edi, dword [ebp + 0xc]
mov ebx, edi
test edx, edx
je 0x403cdc
movzx edi, byte [edx + 0x411588]
push 0x18
shl edi, 3
pop ecx
sub ecx, edi
mov eax, ebx
shr eax, cl
test al, al
je 0x403cc7
cmp al, 0xff
jne 0x403cd9
mov eax, dword [ebp - 0xc]
push 0x20
pop ecx
sub ecx, edi
xor edi, edi
inc edi
shl edi, cl
dec edi
xor edi, ebx
jmp 0x403c5a
mov eax, dword [ebp - 0xc]
mov edi, dword [ebp + 8]
mov ecx, ebx
shr ecx, 0x18
and cl, 1
dec cl
not cl
mov byte [esi + 4], cl
mov ecx, ebx
shr ecx, 0x10
mov byte [esi + 3], cl
mov ecx, ebx
shr ecx, 8
mov byte [esi + 2], cl
mov byte [esi + 1], bl
add eax, 5
jmp 0x403c01
mov esi, eax
sub esi, dword [ebp - 4]
push 3
lea ecx, [esi - 1]
shl edx, cl
pop edi
and edx, 7
cmp edi, esi
sbb ecx, ecx
not ecx
pop edi
and ecx, edx
mov edx, dword [ebp + 0x10]
pop esi
mov dword [edx], ecx
pop ebx
leave
ret