joyce8/EMBER2024-capa huggingface dataset:
Function at 0x422e00
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x10]
push edi
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push esi
call fcn.00422fe0
mov ebp, eax
add esp, 0xc
xor ebx, ebx
lea edi, [ebp*4]
test edi, edi
jle 0x422e79
mov ecx, dword [esp + 0x14]
lea esi, [esi + edi*4]
add esi, 8
add ecx, 8
mov edx, dword [ecx - 8]
lea ecx, [ecx + 0x10]
mov eax, dword [esi - 8]
lea esi, [esi - 0x10]
mov dword [ecx - 0x18], eax
add ebx, 4
mov eax, dword [esi + 0xc]
sub edi, 4
mov dword [esi + 8], edx
mov edx, dword [ecx - 0x14]
mov dword [ecx - 0x14], eax
mov eax, dword [esi + 0x10]
mov dword [esi + 0xc], edx
mov edx, dword [ecx - 0x10]
mov dword [ecx - 0x10], eax
mov eax, dword [esi + 0x14]
mov dword [esi + 0x10], edx
mov edx, dword [ecx - 0xc]
mov dword [ecx - 0xc], eax
mov dword [esi + 0x14], edx
cmp ebx, edi
jl 0x422e35
mov esi, dword [esp + 0x14]
cmp ebp, 1
jle 0x422fd9
add esi, 2
lea edi, [ebp - 1]
mov edx, dword [esi + 0xe]
lea esi, [esi + 0x10]
mov eax, edx
shr eax, 0x18
movzx ecx, byte [eax*4 + str.ccccwwww]
movzx eax, byte [esi - 1]
mov ecx, dword [ecx*4 + 0x42e9a0]
movzx eax, byte [eax*4 + str.ccccwwww]
xor ecx, dword [eax*4 + 0x42f1a0]
movzx eax, byte [esi]
movzx eax, byte [eax*4 + str.ccccwwww]
xor ecx, dword [eax*4 + 0x42eda0]
movzx eax, dl
mov edx, dword [esi + 2]
movzx eax, byte [eax*4 + str.ccccwwww]
xor ecx, dword [eax*4 + 0x42f5a0]
mov eax, edx
shr eax, 0x18
mov dword [esi - 2], ecx
movzx ecx, byte [eax*4 + str.ccccwwww]
movzx eax, byte [esi + 3]
mov ecx, dword [ecx*4 + 0x42e9a0]
movzx eax, byte [eax*4 + str.ccccwwww]
xor ecx, dword [eax*4 + 0x42f1a0]
movzx eax, byte [esi + 4]
movzx eax, byte [eax*4 + str.ccccwwww]
xor ecx, dword [eax*4 + 0x42eda0]
movzx eax, dl
mov edx, dword [esi + 6]
movzx eax, byte [eax*4 + str.ccccwwww]
xor ecx, dword [eax*4 + 0x42f5a0]
mov eax, edx
shr eax, 0x18
mov dword [esi + 2], ecx
movzx ecx, byte [eax*4 + str.ccccwwww]
movzx eax, byte [esi + 7]
mov ecx, dword [ecx*4 + 0x42e9a0]
movzx eax, byte [eax*4 + str.ccccwwww]
xor ecx, dword [eax*4 + 0x42f1a0]
movzx eax, byte [esi + 8]
movzx eax, byte [eax*4 + str.ccccwwww]
xor ecx, dword [eax*4 + 0x42eda0]
movzx eax, dl
mov edx, dword [esi + 0xa]
movzx eax, byte [eax*4 + str.ccccwwww]
xor ecx, dword [eax*4 + 0x42f5a0]
mov eax, edx
shr eax, 0x18
mov dword [esi + 6], ecx
movzx ecx, byte [eax*4 + str.ccccwwww]
movzx eax, byte [esi + 0xb]
mov ecx, dword [ecx*4 + 0x42e9a0]
movzx eax, byte [eax*4 + str.ccccwwww]
xor ecx, dword [eax*4 + 0x42f1a0]
movzx eax, byte [esi + 0xc]
movzx eax, byte [eax*4 + str.ccccwwww]
xor ecx, dword [eax*4 + 0x42eda0]
movzx eax, dl
movzx eax, byte [eax*4 + str.ccccwwww]
xor ecx, dword [eax*4 + 0x42f5a0]
mov dword [esi + 0xa], ecx
dec edi
jne 0x422e88
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
ret
Function at 0x4234d0
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 0x10]
sub esp, 0x34
cdq
and edx, 0xf
push ebx
mov ebx, dword [esp + 0x40]
push ebp
mov ebp, dword [esp + 0x4c]
push esi
push edi
lea edi, [edx + eax]
sar edi, 4
and ebp, 0x8000000f
jns 0x4234fa
dec ebp
or ebp, 0xfffffff0
inc ebp
mov dword [esp + 0x1c], ebp
je 0x42350f
test edi, edi
jne 0x42350e
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x34
ret
dec edi
mov eax, dword [esp + 0x58]
mov esi, dword [eax + 8]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [esp + 0x4c], esi
mov esi, dword [eax + 0xc]
mov dword [esp + 0x10], esi
mov esi, dword [esp + 0x50]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], edx
test edi, edi
je 0x4235a2
mov ebp, dword [esp + 0x48]
mov eax, ebx
sub eax, esi
mov dword [esp + 0x50], eax
push esi
push ebx
push dword [ebp + 4]
lea eax, [ebp + 0xf8]
push eax
call fcn.00422230
mov eax, dword [esp + 0x24]
add esp, 0x10
xor dword [esi], eax
mov eax, dword [esp + 0x18]
xor dword [esi + 4], eax
mov eax, dword [esp + 0x4c]
xor dword [esi + 8], eax
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x10]
xor dword [esi + 0xc], ecx
mov ecx, dword [ebx]
mov eax, dword [eax + esi + 8]
add esi, 0x10
mov edx, dword [ebx + 4]
mov dword [esp + 0x4c], eax
mov eax, dword [ebx + 0xc]
add ebx, 0x10
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], edx
mov dword [esp + 0x10], eax
dec edi
jne 0x423542
mov ebp, dword [esp + 0x1c]
mov eax, dword [esp + 0x58]
test ebp, ebp
je 0x42366a
mov edi, dword [ebx]
mov edx, dword [ebx + 4]
mov ecx, dword [ebx + 8]
mov eax, dword [ebx + 0xc]
mov ebp, dword [esp + 0x58]
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edx
mov dword [esp + 0x30], eax
mov dword [ebp], edi
mov edi, ebp
mov dword [esp + 0x2c], ecx
mov dword [edi + 4], edx
lea edx, [esp + 0x34]
push edx
mov dword [edi + 0xc], eax
lea edx, [esp + 0x28]
mov eax, dword [esp + 0x4c]
push edx
mov dword [edi + 8], ecx
push dword [eax + 4]
lea ecx, [eax + 0xf8]
push ecx
mov dword [esp + 0x30], ecx
call fcn.00422230
mov ebp, dword [esp + 0x2c]
add esp, 0x10
test ebp, ebp
je 0x42362a
mov eax, esi
lea edi, [ebx + 0x10]
sub eax, ebx
lea edx, [esp + 0x34]
mov dword [esp + 0x50], eax
mov ebx, eax
mov al, byte [edi]
lea edi, [edi + 1]
mov cl, byte [edx]
lea edx, [edx + 1]
xor cl, al
mov byte [edx - 1], al
mov byte [ebx + edi - 1], cl
dec ebp
jne 0x423614
push esi
lea eax, [esp + 0x38]
push eax
mov eax, dword [esp + 0x50]
push dword [eax + 4]
push dword [esp + 0x2c]
call fcn.00422230
mov eax, dword [esp + 0x24]
add esp, 0x10
xor dword [esi], eax
mov eax, dword [esp + 0x18]
xor dword [esi + 4], eax
mov eax, dword [esp + 0x4c]
xor dword [esi + 8], eax
mov ecx, dword [esp + 0x10]
xor dword [esi + 0xc], ecx
mov eax, dword [esp + 0x54]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret
pop edi
mov dword [eax], ecx
mov ecx, dword [esp + 0x48]
pop esi
mov dword [eax + 8], ecx
mov ecx, dword [esp + 8]
pop ebp
mov dword [eax + 4], edx
mov dword [eax + 0xc], ecx
mov eax, dword [esp + 0x48]
pop ebx
add esp, 0x34
ret
Function at 0x423690
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 0x10]
sub esp, 0x20
cdq
and edx, 0xf
push ebp
mov ebp, dword [esp + 0x30]
push esi
lea esi, [edx + eax]
mov eax, dword [esp + 0x38]
sar esi, 4
push edi
mov edi, dword [esp + 0x34]
and eax, 0x8000000f
jns 0x4236bc
dec eax
or eax, 0xfffffff0
inc eax
mov dword [esp + 0x34], eax
je 0x4236d0
test esi, esi
jne 0x4236cf
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x20
ret
dec esi
push ebx
mov ebx, dword [esp + 0x44]
test esi, esi
je 0x42372e
mov ecx, dword [esp + 0x34]
lea edx, [ecx + 8]
mov eax, dword [edi]
xor eax, dword [ebx]
mov dword [esp + 0x10], eax
mov eax, dword [ebx + 4]
xor eax, dword [edi + 4]
mov dword [esp + 0x14], eax
mov eax, dword [ebx + 8]
xor eax, dword [edi + 8]
mov dword [esp + 0x18], eax
mov eax, dword [ebx + 0xc]
xor eax, dword [edi + 0xc]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x10]
push ebp
push eax
push dword [ecx + 4]
push edx
call fcn.00422810
mov ecx, dword [esp + 0x44]
mov ebx, ebp
add esp, 0x10
add edi, 0x10
add ebp, 0x10
lea edx, [ecx + 8]
dec esi
jne 0x4236e0
mov eax, dword [esp + 0x38]
test eax, eax
je 0x4237e2
mov edx, dword [edi + 8]
xor edx, dword [ebx + 8]
mov eax, dword [edi]
xor eax, dword [ebx]
mov ecx, dword [edi + 4]
xor ecx, dword [ebx + 4]
mov esi, dword [edi + 0xc]
xor esi, dword [ebx + 0xc]
mov dword [esp + 0x18], edx
lea edx, [esp + 0x20]
push edx
mov dword [esp + 0x14], eax
lea edx, [esp + 0x14]
mov eax, dword [esp + 0x38]
push edx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x24], esi
push dword [eax + 4]
lea ecx, [eax + 8]
push ecx
mov dword [esp + 0x4c], ecx
call fcn.00422810
mov ebx, dword [esp + 0x48]
add esp, 0x10
xor esi, esi
test ebx, ebx
je 0x4237a9
lea edx, [ebp + 0x10]
sub edi, ebp
lea esp, [esp]
mov cl, byte [esp + esi + 0x20]
lea edx, [edx + 1]
mov al, byte [edi + edx - 1]
xor al, cl
mov byte [edx - 1], cl
mov byte [esp + esi + 0x20], al
inc esi
cmp esi, ebx
jb 0x423790
lea eax, [esp + 0x20]
push eax
push eax
mov eax, dword [esp + 0x3c]
push dword [eax + 4]
push dword [esp + 0x48]
call fcn.00422810
mov eax, dword [esp + 0x30]
lea ebx, [esp + 0x30]
mov dword [ebp], eax
add esp, 0x10
mov eax, dword [esp + 0x24]
mov dword [ebp + 4], eax
mov eax, dword [esp + 0x28]
mov dword [ebp + 8], eax
mov eax, dword [esp + 0x2c]
mov dword [ebp + 0xc], eax
mov eax, dword [esp + 0x44]
mov ecx, dword [ebx]
mov dword [eax], ecx
mov ecx, dword [ebx + 4]
mov dword [eax + 4], ecx
mov ecx, dword [ebx + 8]
mov dword [eax + 8], ecx
mov ecx, dword [ebx + 0xc]
pop ebx
pop edi
pop esi
mov dword [eax + 0xc], ecx
mov eax, dword [esp + 0x34]
pop ebp
add esp, 0x20
ret
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
nop
pop eax
nop
nop
nop
add eax, 0x403d6f
nop
sub eax, 0x403d15
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp fcn.00401219
Function at 0x10009ff4
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
movzx eax, byte [ebp + 0xc]
test eax, eax
je 0x1000a06a
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x10], eax
lea eax, [ebp + 8]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax]
test eax, eax
je 0x1000a024
push 0
push 0
call dword [sym.imp.USER32.dll_CopyRect]
jmp 0x1000a068
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov dword [eax], 2
jmp 0x1000a046
mov eax, dword [ebp - 8]
mov eax, dword [eax]
dec eax
mov ecx, dword [ebp - 8]
mov dword [ecx], eax
mov eax, dword [ebp - 8]
cmp dword [eax], 0
jl 0x1000a068
mov byte [ebp - 1], 0
movzx eax, byte [ebp - 1]
test eax, eax
je 0x1000a066
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumResourceTypesW]
jmp 0x1000a03b
jmp 0x1000a072
push 0
call fcn.1000968b
pop ecx
mov esp, ebp
pop ebp
ret

Function at 0x1000b3ea
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
movzx eax, byte [ebp + 8]
test eax, eax
je 0x1000b43c
mov eax, dword [ebp + 0x10]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x10], eax
push 0x1a8a
push 0
push 0x43ad
push dword [ebp - 4]
push 0x460c
push dword [ebp - 8]
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push 0x1562
call fcn.10020b18
add esp, 0x24
jmp 0x1000b462
lea eax, [ebp + 0xc]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
movzx eax, byte [eax]
test eax, eax
je 0x1000b458
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x1000b462
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov esp, ebp
pop ebp
ret

Function at 0x1000d015
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
movzx eax, byte [ebp + 0xc]
test eax, eax
je 0x1000d061
lea eax, [ebp + 0x10]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
test eax, eax
je 0x1000d04e
mov byte [ebp - 1], 0
movzx eax, byte [ebp - 1]
test eax, eax
je 0x1000d04c
push 0x1981
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
jmp 0x1000d05f
push 0
push 0
push 0x19a5
push 0
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
jmp 0x1000d083
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
push 0x7b67
push dword [ebp - 0xc]
push 0x17d0
push 0x4e5c
push 0
call fcn.10023c35
add esp, 0x14
mov esp, ebp
pop ebp
ret
Function at 0x10012da2
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
movzx eax, byte [ebp + 0x10]
test eax, eax
je 0x10012de9
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0xc], eax
push dword [ebp - 8]
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push 1
push dword [ebp - 0x18]
call fcn.10012e2f
add esp, 0x18
jmp 0x10012e2b
lea eax, [ebp + 0x14]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
movzx eax, byte [eax]
test eax, eax
je 0x10012e17
push 0x2586
push 0x1d1a
push 0x18cb
push 0x213d
push 0
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
jmp 0x10012e2b
mov byte [ebp - 1], 0
movzx eax, byte [ebp - 1]
test eax, eax
je 0x10012e2b
push 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov esp, ebp
pop ebp
ret
Function at 0x100131b1
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10065d44
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x48
movzx eax, byte [ebp + 0x18]
test eax, eax
je 0x100131ff
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x24], eax
push 0x2047
push 0x53e0
push 1
push dword [ebp - 0x24]
push dword [ebp - 0x28]
call fcn.10013325
add esp, 0x14
jmp 0x10013317
lea eax, [ebp + 0xc]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x2c]
movzx eax, byte [eax]
test eax, eax
je 0x1001330a
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x34], 0x1a29
cmp dword [ebp - 0x34], 0x692
jge 0x100132fc
lea eax, [ebp - 0x18]
push eax
push 0x1000774c
call fcn.1004e57b
pop ecx
pop ecx
push dword [ebp - 0x18]
lea ecx, [ebp - 0x54]
call fcn.100243cd
and dword [ebp - 4], 0
and dword [ebp - 0x10], 0
jmp 0x1001325f
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x18]
jge 0x1001328e
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x48]
push eax
push 0x10007790
call fcn.1004e57b
add esp, 0xc
push dword [ebp - 0x10]
lea ecx, [ebp - 0x54]
call fcn.100244e6
mov ecx, dword [ebp - 0x38]
mov dword [eax], ecx
jmp 0x10013258
lea eax, [ebp - 0x3c]
push eax
push 0x1000774c
call fcn.1004e57b
pop ecx
pop ecx
and dword [ebp - 0x1c], 0
and dword [ebp - 0x14], 0
jmp 0x100132af
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x18]
jge 0x100132e1
push dword [ebp - 0x14]
lea ecx, [ebp - 0x54]
call fcn.100244e6
mov eax, dword [eax]
cmp eax, dword [ebp - 0x3c]
jl 0x100132d2
mov dword [ebp - 0x20], 1
jmp 0x100132d6
and dword [ebp - 0x20], 0
mov eax, dword [ebp - 0x1c]
add eax, dword [ebp - 0x20]
mov dword [ebp - 0x1c], eax
jmp 0x100132a8
push dword [ebp - 0x1c]
push 0x10007754
call fcn.1004eb95
pop ecx
pop ecx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x54]
call fcn.10024565
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
and dword [eax], 0
jmp 0x10013317
push 0x1981
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x10037a61
Capabilities:
Get file attributes

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
ret
Function at 0x1003f3ba
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
mov esi, ecx
mov edi, edx
push 3
lea ecx, [ebp - 0x1c]
call fcn.100243cd
xor ebx, ebx
mov dword [ebp - 8], 7
mov dword [ebp - 8], ebx
jmp 0x1003f3ef
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 0x1c]
mov dword [eax + ecx*4], 1
inc dword [ebp - 8]
cmp dword [ebp - 8], 3
jl 0x1003f3df
mov dword [ebp - 8], 2
cmp dword [ebp - 8], ebx
jl 0x1003f417
mov byte [ebp - 1], bl
cmp byte [ebp - 1], bl
je 0x1003f412
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_EnumResourceTypesW]
dec dword [ebp - 8]
jns 0x1003f401
mov dword [ebp - 8], ebx
jmp 0x1003f42c
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 0x1c]
mov dword [eax + ecx*4], 0xd23b6182
inc dword [ebp - 8]
cmp dword [ebp - 8], 3
jl 0x1003f41c
lea ecx, [ebp - 0x1c]
call fcn.100244a4
mov dword [ebp - 8], ebx
mov dword [ebp - 0x10], 0xb4dfecbe
mov dword [ebp - 8], ebx
jmp 0x1003f457
mov eax, dword [ebp - 8]
mov dword [ebp + eax*4 - 0xc], 0x4a8c6a53
inc dword [ebp - 8]
cmp dword [ebp - 8], 1
jl 0x1003f449
mov byte [ebp - 1], bl
cmp byte [ebp - 1], bl
je 0x1003f47d
push 0x1a2b
push ebx
push 0x2327
push ebx
push 0x1a6e
push ebx
call dword [sym.imp.KERNEL32.dll_CompareStringW]
mov dword [ebp - 8], ebx
jmp 0x1003f4fd
mov eax, dword [ebp - 8]
mov eax, dword [ebp + eax*4 - 0xc]
neg eax
je 0x1003f4b7
cmp dword [ebp - 8], ebx
je 0x1003f49c
mov eax, dword [ebp - 8]
mov eax, dword [ebp + eax*4 - 0xc]
mov eax, dword [ebp - 8]
mov eax, dword [ebp - 8]
mov eax, dword [ebp - 8]
mov eax, dword [ebp + eax*4 - 0xc]
mov eax, dword [ebp - 8]
mov eax, dword [ebp + eax*4 - 0xc]
cmp dword [ebp - 0x10], ebx
je 0x1003f4b7
xor eax, eax
inc eax
jmp 0x1003f4b9
mov eax, ebx
imul ecx, eax, 0xe3f9
xor edx, edx
mov eax, dword [ebp - 0x10]
cmp ecx, eax
setge dl
cmp edx, 0x2e58
jg 0x1003f4da
mov eax, dword [ebp - 8]
cmp dword [ebp + eax*4 - 0xc], ebx
je 0x1003f4e4
cmp dword [ebp - 8], ebx
je 0x1003f4e4
xor ecx, ecx
inc ecx
jmp 0x1003f4e6
mov ecx, ebx
xor eax, eax
test ecx, ecx
setle al
sub eax, 0x836ccb03
neg eax
sbb eax, eax
inc eax
mov dword [ebp - 0x10], eax
inc dword [ebp - 8]
cmp dword [ebp - 8], ebx
jle 0x1003f482
mov dword [esi], ebx
jmp 0x1003f513
mov ecx, dword [esi]
mov eax, dword [edi]
mov dword [eax + ecx*4], 1
inc dword [esi]
cmp dword [esi], 3
jl 0x1003f506
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10046903
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x10066dd7
call fcn.100655b8
push ecx
push ecx
push ebx
push esi
mov dword [ebp - 0x14], 0x6093
cmp dword [ebp - 0x14], 0x63c5
push edi
mov dword [ebp - 0x10], esp
jle 0x1004694c
xor esi, esi
xor edi, edi
mov eax, edi
mov ecx, 0x10656db8
xor eax, esi
cdq
push edx
push eax
call fcn.100242ab
inc edi
cmp edi, 0x60d2
jl 0x10046929
inc esi
cmp esi, 0x6844
jl 0x10046927
and dword [ebp - 4], 0
cmp dword [ebp - 0x14], 0x5e64
jge 0x10046968
mov edx, 0x10007bf0
mov ecx, 0x10656db8
call fcn.10028af2
mov ecx, dword [ebp - 0xc]
xor al, al
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10061ab5
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1006b750]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.10052be8
mov dword [ebp - 0x14], eax
cmp dword [0x10657ed8], esi
jne 0x10061ba8
push 0x800
push esi
push 0x100075e0
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x10061b35
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x10061c88
push esi
push esi
push 0x100075e0
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x10061c88
push 0x100075f8
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10061c88
push eax
call ebx
push 0x10007604
push edi
mov dword [0x10657ed8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x10007614
push edi
mov dword [0x10657edc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x10007628
push edi
mov dword [0x10657ee0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x10657ee8], eax
test eax, eax
je 0x10061ba5
push 0x10007644
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x10657ee4], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x10061bcd
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x10061bc0
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x10061be2
push 4
pop eax
jmp 0x10061c8a
cmp dword [ebp - 0x14], esi
je 0x10061be2
push dword [0x10657ed8]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x10061bc7
mov eax, dword [0x10657ee4]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x10061c40
cmp dword [0x10657ee8], edi
je 0x10061c40
push eax
call ebx
push dword [0x10657ee8]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x10061c40
test eax, eax
je 0x10061c40
call ecx
test eax, eax
je 0x10061c35
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x10061c35
test byte [ebp - 8], 1
jne 0x10061c40
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x10061c70
mov eax, dword [0x10657edc]
cmp eax, edi
je 0x10061c6d
push eax
call ebx
test eax, eax
je 0x10061c6d
call eax
mov esi, eax
test esi, esi
je 0x10061c6d
mov eax, dword [0x10657ee0]
cmp eax, edi
je 0x10061c6d
push eax
call ebx
test eax, eax
je 0x10061c6d
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x10657ed8]
call ebx
test eax, eax
je 0x10061c88
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x10061c8a
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10050358
mov esp, ebp
pop ebp
ret