joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43f917
Capabilities:
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
push edi
xor esi, esi
mov edx, dword [eax + 4]
mov edi, dword [eax]
add edx, edx
mov eax, 0x1505
test edx, edx
jle 0x43f93f
movzx ecx, byte [esi + edi]
imul eax, eax, 0x21
add eax, ecx
inc esi
cmp esi, edx
jl 0x43f931
pop edi
pop esi
pop ebp
ret 4

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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xb4
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov eax, dword [ebx + 4]
mov edi, ecx
sub esp, 0x10
mov dword [esp + 0x1c], edi
mov edx, dword [esi]
mov dword [esp + 0x3c], 3
mov eax, dword [eax + edx*4]
mov edx, esp
movsx ecx, word [eax + 0xa]
mov dword [esp + 0x28], ecx
mov ecx, dword [eax]
mov eax, dword [ecx]
mov dword [edx], eax
mov eax, dword [ecx + 4]
mov dword [edx + 4], eax
mov eax, dword [ecx + 8]
mov dword [edx + 8], eax
mov eax, dword [ecx + 0xc]
lea ecx, [edi + 0x13c]
mov dword [edx + 0xc], eax
inc dword [eax]
call fcn.00443dcb
mov dword [esp + 0x5c], eax
test eax, eax
je 0x489491
mov eax, dword [edi + 0x150]
mov ecx, dword [esi]
mov dword [esp + 0x84], eax
inc ecx
xor eax, eax
mov dword [esp + 0x7c], 1
mov dword [esp + 0x70], eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x54], eax
mov eax, dword [ebx + 4]
mov dword [esp + 0x60], 0x49cc38
mov dword [esp + 0x48], 0x49cc3c
mov dword [esi], ecx
mov eax, dword [eax + ecx*4]
cmp word [eax + 8], 0x47
jne 0x4894a9
lea eax, [esp + 0x10]
mov dword [esp + 0x1c], ecx
push eax
lea eax, [esp + 0x20]
mov dword [esp + 0x14], ecx
push eax
push esi
push ebx
mov ecx, edi
add byte [eax], al
add bh, al
add eax, 0x4cf914
add dword [eax], eax
add byte [eax], al
sbb al, 0xf9
dec esp
add byte [edx + edi*8 + 0x49], cl
add bh, al
add eax, 0x4cf928
int 0xe2
inc edi
add bh, al
add eax, 0x4cf92c
add byte [eax], al
add byte [eax], al

Function at 0x447c1b
Capabilities:
Encode data using base64
Encrypt data using speck
Parse credit card information
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xfc
mov eax, dword fs:[0x2c]
mov dword [esp + 0x18], ecx
push ebx
push esi
mov ecx, dword [eax]
mov eax, dword [0x4d2580]
push edi
mov edi, dword [ebp + 0xc]
mov dword [esp + 0x8c], ecx
cmp eax, dword [ecx + 4]
jg 0x448e15
mov ebx, dword [ebp + 0x10]
xor esi, esi
xor al, al
mov word [esp + 0x54], 1
push 8
push 0x4d2580
call fcn.0045921d
add esp, 4
cmp dword [0x4d2580], 0xffffffff
jne 0x447c51
push 0x44247b
call fcn.0045907e
add esp, 4
push 0x4d2580
call fcn.004591d3
add esp, 4
jmp 0x447c51
Function at 0x454f70
Capabilities:
Encode data using base64
Encrypt data using speck
Parse credit card information

Disassembly:
lea edx, [ebp - 0x20]
lea ecx, [ebp - 0xe0]
call fcn.0045554f
mov edx, eax
add esp, 0x10
add edx, dword [ebp - 0x30]
mov esi, dword [ebp - 4]
mov dword [ebp - 0x24], edx
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x50]

Function at 0x45c106
Capabilities:
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
push edi
xor esi, esi
mov edx, dword [eax + 4]
mov edi, dword [eax]
add edx, edx
mov eax, 0x1505
test edx, edx
jle 0x45c12e
movzx ecx, byte [esi + edi]
imul eax, eax, 0x21
add eax, ecx
inc esi
cmp esi, edx
jl 0x45c120
pop edi
pop esi
pop ebp
ret 4

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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xb4
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov eax, dword [ebx + 4]
mov edi, ecx
sub esp, 0x10
mov dword [esp + 0x1c], edi
mov edx, dword [esi]
mov dword [esp + 0x3c], 3
mov eax, dword [eax + edx*4]
mov edx, esp
movsx ecx, word [eax + 0xa]
mov dword [esp + 0x28], ecx
mov ecx, dword [eax]
mov eax, dword [ecx]
mov dword [edx], eax
mov eax, dword [ecx + 4]
mov dword [edx + 4], eax
mov eax, dword [ecx + 8]
mov dword [edx + 8], eax
mov eax, dword [ecx + 0xc]
lea ecx, [edi + 0x13c]
mov dword [edx + 0xc], eax
inc dword [eax]
call fcn.004605ba
mov dword [esp + 0x5c], eax
test eax, eax
je 0x4a5c80
mov eax, dword [edi + 0x150]
mov ecx, dword [esi]
mov dword [esp + 0x84], eax
inc ecx
xor eax, eax
mov dword [esp + 0x7c], 1
mov dword [esp + 0x70], eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x54], eax
mov eax, dword [ebx + 4]
mov dword [esp + 0x60], 0x49cc38
mov dword [esp + 0x48], 0x49cc3c
mov dword [esi], ecx
mov eax, dword [eax + ecx*4]
cmp word [eax + 8], 0x47
jne 0x4a5c98
lea eax, [esp + 0x10]
mov dword [esp + 0x1c], ecx
push eax
lea eax, [esp + 0x20]
mov dword [esp + 0x14], ecx
push eax
push esi
push ebx
add byte [ebx - 0x38ffb71f], ah
add eax, 0x4cf710
add byte [eax], al
add byte [eax], al
Function at 0x470efb
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x16c
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
mov dword [ebp - 0x124], ecx
mov ecx, dword [ecx]
push esi
mov esi, dword [eax]

Function at 0x4788f3
Capabilities:
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
push edi
xor esi, esi
mov edx, dword [eax + 4]
mov edi, dword [eax]
add edx, edx
mov eax, 0x1505
test edx, edx
jle 0x47891b
movzx ecx, byte [esi + edi]
imul eax, eax, 0x21
add eax, ecx
inc esi
cmp esi, edx
jl 0x47890d
pop edi
pop esi
pop ebp
ret 4
Function at 0x4950e0
Capabilities:
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
push edi
xor esi, esi
mov edx, dword [eax + 4]
mov edi, dword [eax]
add edx, edx
mov eax, 0x1505
test edx, edx
jle 0x495108
movzx ecx, byte [esi + edi]
imul eax, eax, 0x21
add eax, ecx
inc esi
cmp esi, edx
jl 0x4950fa
pop edi
pop esi
pop ebp
ret 4
Function at 0x401110
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ecx
push ebx
push ebp
mov ebp, dword [esp + 0x10]
push esi
push edi
push 0
push 0x8000000
push 3
push 0
push 1
push Ordinal_3
push ebp
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40114a
push ebp
call fcn.00401250
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
lea eax, [esp + 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov dword [esp + 0x10], eax
jne 0x401170
push ebp
call fcn.00401250
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x401193
push ebp
push 0x40c030
push 0x40c3e0
call fcn.00402e98
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
test eax, eax
jne 0x4011bc
mov ecx, dword [esp + 0x20]
push ecx
push ebp
push eax
push 0x40a1a8
call dword [esp + 0x2c]
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret
push 0
push 0
push 0
push 2
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov ebx, eax
test ebx, ebx
jne 0x4011eb
push ebp
call fcn.00401250
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
push 0
push 0
push 0
push 4
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
test edi, edi
jne 0x40121d
push ebp
call fcn.00401250
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 4
push ebx
call edi
push esi
call edi
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x10]
push edx
push ebp
push eax
push edi
call dword [esp + 0x2c]
add esp, 0x10
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call edi
push esi
call edi
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret

Function at 0x4012d0
Capabilities:
Terminate process

Disassembly:
sub esp, 8
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0x18]
push edi
push esi
call dword [sym.imp.LIBEXPAT.dll_Ordinal_23]
add esp, 8
test eax, eax
jne 0x401306
push edi
push 0x40c06c
push 0x40c3e0
call fcn.00402e98
add esp, 0xc
push 1
call fcn.004031c7
push ebx
mov bl, byte [esp + 0x20]
test bl, 2
je 0x40132a
test bl, 1
mov eax, 0x401440
jne 0x40131f
mov eax, 0x401740
push eax
push esi
call dword [sym.imp.LIBEXPAT.dll_Ordinal_38]
add esp, 8
test bl, 1
pop ebx
je 0x401359
lea ecx, [esp + 8]
lea eax, [esp + 0x18]
push ecx
push 0x401380
push edi
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], esi
call fcn.00401110
add esp, 0xc
test eax, eax
jne 0x401369
pop edi
pop esi
add esp, 8
ret
push esi
push edi
call fcn.004015f0
add esp, 8
pop edi
pop esi
add esp, 8
ret
mov eax, dword [esp + 0x18]
pop edi
pop esi
add esp, 8
ret
Function at 0x4015f0
Capabilities:
Read file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
test ebx, ebx
push edi
mov dword [esp + 0x10], 0
je 0x40162c
push 0x8000
push ebx
call fcn.00408525
add esp, 8
mov dword [esp + 0x10], eax
test eax, eax
jge 0x40162c
push ebx
call fcn.00403511
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
mov edi, dword [esp + 0x1c]
mov ebp, dword [sym.imp.LIBEXPAT.dll_Ordinal_7]
push 0x2000
push edi
call ebp
add esp, 8
test eax, eax
je 0x40168c
push 0x2000
push eax
mov eax, dword [esp + 0x18]
push eax
call fcn.0040918e
mov esi, eax
add esp, 0xc
test esi, esi
jl 0x4016bf
xor ecx, ecx
test esi, esi
sete cl
push ecx
push esi
push edi
call dword [sym.imp.LIBEXPAT.dll_Ordinal_17]
add esp, 0xc
test eax, eax
je 0x4016ec
test esi, esi
je 0x40171a
push 0x2000
push edi
call ebp
add esp, 8
test eax, eax
jne 0x401645
test ebx, ebx
je 0x40169f
mov edx, dword [esp + 0x10]
push edx
call fcn.0040680b
add esp, 4
jmp 0x4016a4
mov ebx, 0x40c0c8
push ebx
push 0x40c0b4
push 0x40c3e0
call fcn.00402e98
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
test ebx, ebx
mov eax, ebx
jne 0x4016ca
mov eax, 0x40c0ac
push eax
call fcn.00403511
add esp, 4
test ebx, ebx
je 0x401712
mov eax, dword [esp + 0x10]
push eax
call fcn.0040680b
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
test ebx, ebx
mov eax, ebx
jne 0x4016f7
mov eax, 0x40c0ac
push eax
push edi
call fcn.004013d0
add esp, 8
test ebx, ebx
je 0x401712
mov ecx, dword [esp + 0x10]
push ecx
call fcn.0040680b
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
test ebx, ebx
je 0x40172b
mov edx, dword [esp + 0x10]
push edx
call fcn.0040680b
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret
Function at 0x4071da
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x40eb00
cmp edx, dword [eax]
je 0x4071fc
add eax, 8
inc ecx
cmp eax, 0x40eb90
jl 0x4071ed
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x40eb00]
jne 0x40732a
mov eax, dword [0x40f25c]
cmp eax, 1
je 0x407304
test eax, eax
jne 0x40722d
cmp dword [0x40c624], 1
je 0x407304
cmp edx, 0xfc
je 0x40732a
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x407264
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004073d0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00406790
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4072a7
lea eax, [ebp - 0x1a4]
push eax
call fcn.00406790
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x40a8ec
push edi
call fcn.00408c10
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004073d0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004073e0
lea eax, [ebp - 0xa0]
push 0x40a8cc
push eax
call fcn.004073e0
push dword [esi + 0x40eb04]
lea eax, [ebp - 0xa0]
push eax
call fcn.004073e0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00408b85
add esp, 0x2c
pop edi
jmp 0x40732a
lea eax, [ebp + 8]
lea esi, [esi + 0x40eb04]
push 0
push eax
push dword [esi]
call fcn.00406790
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret

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

Disassembly:
pushal
nop
nop
nop
call 0x43300c
nop
nop
nop
pop eax
nop
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
jl 0x433030
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43301e
nop
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x41c998
Capabilities:
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x10
mov ebx, dword [ebp + 8]
push 0xf0000000
push 1
push 0
push 0
push ebx
call sub.ADVAPI32.DLL_CryptAcquireContextA
add esp, 0xc
test eax, eax
je 0x41c9d4
sub esp, 0xc
lea eax, [ebx + 4]
push eax
push 0
push 0
push 0x8003
push dword [ebx]
call sub.ADVAPI32.DLL_CryptCreateHash
add esp, 0xc
mov ebx, dword [ebp - 4]
leave
ret

Function at 0x401130
Capabilities:
Delete directory
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
push edi
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x24], 0
jmp loc.004e5600

Function at 0x401b99
Capabilities:
Terminate process

Disassembly:
cmp dword [0x4db144], 1
jne 0x401ba7
call fcn.00402848
push dword [esp + 4]
call fcn.00402881
jmp loc.004e2d00

Function at 0x402881
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x417890
cmp edx, dword [eax]
je 0x4028a3
add eax, 8
inc ecx
cmp eax, 0x417920
jl 0x402894
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x417890]
jne 0x4029d1
mov eax, dword [0x4db144]
cmp eax, 1
je 0x4029ab
test eax, eax
jne 0x4028d4
cmp dword [0x4177e4], 1
je 0x4029ab
cmp edx, 0xfc
je 0x4029d1
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40290b
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00403980
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
jmp 0x4e5200
lea eax, [ebp + 8]
lea esi, [esi + 0x417894]
push 0
push eax
push dword [esi]
call fcn.00403a70
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x86a4b0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x347000]
push edi
or ebp, 0xffffffff
jmp 0x86a4d2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x86a4d9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x86a4c8
mov eax, 1
add ebx, ebx
jne 0x86a4eb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x86a4fc
jne 0x86a51b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x86a51b
dec eax
add ebx, ebx
jne 0x86a508
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x86a4e0
add ebx, ebx
jne 0x86a517
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x86a56d
xor ecx, ecx
sub eax, 3
jb 0x86a533
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x86a5a2
sar eax, 1
mov ebp, eax
jmp 0x86a53e
add ebx, ebx
jne 0x86a53e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x86a50c
inc ecx
add ebx, ebx
jne 0x86a54c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x86a50c
add ebx, ebx
jne 0x86a559
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x86a54e
jne 0x86a56a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x86a54e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x86a58c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x86a57e
jmp 0x86a4ce
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x86a58c
add edi, ecx
jmp 0x86a4ce
pop esi
mov edi, esi
mov ecx, 0x113ed
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x86a5aa
cmp byte [edi], 0x96
jne 0x86a5aa
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 0x86a5af
lea edi, [esi + 0x467000]
mov eax, dword [edi]
or eax, eax
je 0x86a627
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x488354]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x488458]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x86a5dc
mov ecx, edi
jns 0x86a60b
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 + 0x48845c]
or eax, eax
je 0x86a621
mov dword [ebx], eax
add ebx, 4
jmp 0x86a5f9
call dword [esi + 0x48846c]
mov ebp, dword [esi + 0x488460]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x207]
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 0x86a65b
sub esp, 0xffffff80
jmp 0x702fad
Function at 0x1004c980
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1004c9ad
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1004c9ad
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x1004ccd0
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10056660
push 0x10056658
push str.FlsAlloc
push 0x1e
call fcn.1004cfb3
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1004cd04
push dword [ebp + 8]
mov ecx, esi
call dword [0x1005ad30]
call esi
jmp 0x1004cd0a
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1004cd4e
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10056670
push 0x10056668
push str.FlsGetValue
push 0x20
call fcn.1004cfb3
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1004cd85
push dword [ebp + 8]
mov ecx, esi
call dword [0x1005ad30]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x1004ffd4
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 0x10050071
push ebx
push esi
call fcn.10050074
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.1004ff1d
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1005001e
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10050070
push edi
push eax
call fcn.100502e5
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1005003e
call fcn.1004e288
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1005006f
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1004ff1d
add esp, 0x20
test eax, eax
jne 0x1005005d
push edi
call fcn.1004e288
jmp 0x10050065
push ebx
call fcn.1004e288
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 0x100010b6
Capabilities:
Check os version
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa8
lea eax, [ebp - 0xa8]
push ebx
push eax
mov dword [ebp - 0xa8], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x1000119e
cmp dword [ebp - 0x98], 2
jne 0x1000119e
cmp dword [ebp - 0xa4], 6
jb 0x1000119e
xor ebx, ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea ecx, [ebp - 8]
push ecx
push 0x18
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x1000119e
push esi
lea eax, [ebp - 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
push edi
push eax
push ebx
push ebx
push 0x19
push dword [ebp - 8]
call esi
test eax, eax
jne 0x1000118e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x1000118e
push dword [ebp - 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
cmp edi, ebx
je 0x1000118e
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0xc]
push edi
push 0x19
push dword [ebp - 8]
call esi
test eax, eax
je 0x10001187
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_GetSidSubAuthorityCount]
mov al, byte [eax]
dec al
movzx eax, al
push eax
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_GetSidSubAuthority]
cmp dword [eax], 0x3000
jb 0x10001187
mov dword [ebp - 4], 1
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 4], ebx
pop edi
pop esi
jne 0x100011a2
xor eax, eax
jmp 0x100011f6
lea eax, [ebp - 0x10]
push eax
push 1
push ebx
push str.SOFTWAREMicrosoftWindowsCurrentVersionPoliciesSystem
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100011f4
lea eax, [ebp - 0x14]
mov dword [ebp - 4], ebx
push eax
lea eax, [ebp - 4]
push eax
push ebx
push ebx
push 0x1000c2e0
push dword [ebp - 0x10]
mov dword [ebp - 0x14], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x100011eb
cmp dword [ebp - 4], ebx
je 0x100011eb
push 1
pop ebx
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
pop ebx
leave
ret

Function at 0x100019a5
Capabilities:
Encode data using xor

Disassembly:
push dword [esp + 4]
call fcn.10004b14
test eax, eax
pop ecx
jle 0x100019cc
mov ecx, dword [esp + 4]
mov dx, word [ecx]
xor dx, 0x4d
sub edx, 0xff
mov word [ecx], dx
inc ecx
inc ecx
dec eax
jne 0x100019b7
ret

Function at 0x100019cd
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 8]
push esi
call fcn.10004270
pop ecx
xor ecx, ecx
test eax, eax
jle 0x100019e8
xor byte [ecx + esi], 0xf
inc ecx
cmp ecx, eax
jl 0x100019df
pop esi
ret