joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4f88d4
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff8
mov ebx, eax
movzx eax, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
movzx eax, byte [eax]
dec al
je 0x4f8905
dec al
je 0x4f8940
dec al
je 0x4f8985
dec al
je 0x4f89ee
jmp 0x4f8a78
mov esi, dword [ebx + 0x24]
inc esi
mov edi, dword [ebx + 0x20]
sub edi, esi
jb 0x4f8a78
inc edi
mov edx, esi
sub edx, dword [ebx + 0x24]
movzx ecx, byte [ebx + 0x48]
mov ecx, dword [ebx + ecx*4 + 0x40]
movzx edx, byte [ecx + edx]
movzx eax, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
add dl, byte [eax + esi]
and dl, 0xff
mov byte [eax + esi], dl
inc esi
dec edi
jne 0x4f8915
jmp 0x4f8a78
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x4f8a78
mov esi, 1
movzx eax, byte [ebx + 0x48]
mov edx, eax
xor dl, 1
and edx, 0x7f
mov edx, dword [ebx + edx*4 + 0x40]
movzx edx, byte [edx + esi]
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
add dl, byte [eax + esi]
and dl, 0xff
movzx eax, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
mov byte [eax + esi], dl
inc esi
dec edi
jne 0x4f8950
jmp 0x4f8a78
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x4f8a78
mov esi, 1
movzx eax, byte [ebx + 0x48]
xor al, 1
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
movzx eax, byte [eax + esi]
mov ecx, esi
dec ecx
mov edx, dword [ebx + 0x24]
cmp ecx, edx
jae 0x4f89b4
xor ebp, ebp
jmp 0x4f89c4
mov ecx, esi
sub ecx, edx
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
movzx ebp, byte [edx + ecx]
add eax, ebp
sar eax, 1
jns 0x4f89cd
adc eax, 0
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
add al, byte [edx + esi]
and al, 0xff
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
mov byte [edx + esi], al
inc esi
dec edi
jne 0x4f8995
jmp 0x4f8a78
xor ebp, ebp
xor eax, eax
mov dword [esp + 4], eax
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x4f8a78
mov esi, 1
movzx eax, byte [ebx + 0x48]
xor al, 1
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
movzx eax, byte [eax + esi]
mov edx, esi
dec edx
cmp edx, dword [ebx + 0x24]
jb 0x4f8a47
mov edx, esi
sub edx, dword [ebx + 0x24]
movzx ecx, byte [ebx + 0x48]
mov ecx, dword [ebx + ecx*4 + 0x40]
movzx ebp, byte [ecx + edx]
movzx edx, byte [ebx + 0x48]
xor dl, 1
and edx, 0x7f
mov edx, dword [ebx + edx*4 + 0x40]
mov ecx, esi
sub ecx, dword [ebx + 0x24]
movzx edx, byte [edx + ecx]
mov dword [esp + 4], edx
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
movzx edx, byte [edx + esi]
mov dword [esp], edx
movzx ecx, byte [esp + 4]
push eax
mov eax, ebp
pop edx
call fcn.004f5948
add al, byte [esp]
and al, 0xff
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
mov byte [edx + esi], al
inc esi
dec edi
jne 0x4f8a02
pop ecx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x51abb0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
mov ebx, eax
cmp eax, 0xffffffff
jne 0x51abcc
call fcn.0051bd28
pop ebx
pop ebp
ret
test byte [ebp + 0xc], 2
je 0x51abeb
test bl, 1
je 0x51abeb
call fcn.0052176c
mov dword [eax], 5
or eax, 0xffffffff
pop ebx
pop ebp
ret
xor eax, eax
pop ebx
pop ebp
ret
Function at 0x51df54
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push ebx
push esi
push edi
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea eax, [ebp - 0x200]
push eax
push 0x1001
mov edx, dword [ebx + 4]
push edx
call sub.KERNEL32.DLL_GetLocaleInfoA
push str._._n
lea ecx, [ebp - 0x200]
push ecx
call fcn.005196e0
add esp, 8
lea ecx, [ebp - 0x200]
push ecx
call fcn.00519790
pop ecx
mov edx, pe_nt_image_headers32
sub edx, eax
push edx
lea eax, [ebp - 0x200]
push eax
call fcn.00519790
pop ecx
lea edx, [ebp - 0x200]
add eax, edx
push eax
push 0x1002
mov eax, dword [ebx + 4]
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
push 0x53b23d
lea ecx, [ebp - 0x200]
push ecx
call fcn.005196e0
add esp, 8
push 0xa
lea ecx, [ebp - 0x200]
push ecx
call fcn.00519790
pop ecx
lea edx, [ebp - 0x200]
add eax, edx
push eax
mov eax, dword [ebx]
push eax
call fcn.0051f3f4
add esp, 0xc
cmp dword [ebx + 0x24], 0
jne 0x51e065
push esi
call fcn.00519790
pop ecx
mov edi, eax
lea eax, [ebp - 0x200]
push eax
call fcn.00519790
pop ecx
add edi, eax
add edi, 3
push edi
call fcn.0051895c
pop ecx
mov edi, eax
mov dword [ebx + 0x24], edi
test edi, edi
jne 0x51e03c
xor eax, eax
jmp 0x51e0ec
push esi
call fcn.00519790
pop ecx
push eax
lea edx, [ebp - 0x200]
push edx
call fcn.00519790
pop ecx
pop ecx
add ecx, eax
add ecx, 3
push ecx
push 0
push edi
call fcn.0051960f
add esp, 0xc
jmp 0x51e0a5
mov edi, dword [ebx + 0x24]
push edi
call fcn.00519790
pop ecx
push eax
push esi
call fcn.00519790
pop ecx
pop edx
add edx, eax
push edx
lea eax, [ebp - 0x200]
push eax
call fcn.00519790
pop ecx
pop ecx
add ecx, eax
add ecx, 3
push ecx
push edi
call fcn.0051897c
add esp, 8
mov dword [ebx + 0x24], eax
cmp dword [ebx + 0x24], 0
jne 0x51e0a5
xor eax, eax
jmp 0x51e0ec
push esi
mov edx, dword [ebx + 0x24]
push edx
call fcn.005196e0
add esp, 8
push 0x53b23f
mov ecx, dword [ebx + 0x24]
push ecx
call fcn.005196e0
add esp, 8
lea ecx, [ebp - 0x200]
push ecx
mov eax, dword [ebx + 0x24]
push eax
call fcn.005196e0
add esp, 8
push 0x53b241
mov edx, dword [ebx + 0x24]
push edx
call fcn.005196e0
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x521700
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_CreateFileA
mov ebx, eax
test eax, eax
jne 0x52172d
jmp 0x521764
call fcn.005216b0
mov esi, eax
lea eax, [ebp - 4]
push 0
push eax
push esi
call fcn.00519790
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push edi
call fcn.00519790
pop ecx
push eax
push edi
push ebx
call sub.KERNEL32.DLL_WriteFile
push ebx
call sub.KERNEL32.DLL_CloseHandle
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x5217e8
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff7c
cmp dword [0x53b880], 0
push ebx
push esi
mov esi, dword [ebp + 8]
jne 0x5218c2
cmp dword [0x53b87c], 0
jne 0x5218c2
cmp dword [0x53baa4], 0
je 0x52187c
push 0x80
lea eax, [ebp - 0x84]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
push 0x5c
lea edx, [ebp - 0x84]
push edx
call fcn.00521160
add esp, 8
mov ebx, eax
test eax, eax
jne 0x521862
push 0x3a
lea edx, [ebp - 0x84]
push edx
call fcn.00521160
add esp, 8
mov ebx, eax
test eax, eax
jne 0x521862
lea ebx, [ebp - 0x84]
jmp 0x521863
inc ebx
call fcn.005217a0
or eax, 0x10010
push eax
push ebx
push esi
push 0
call sub.USER32.DLL_MessageBoxA
jmp 0x5218fd
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
mov ebx, eax
lea eax, [ebp - 4]
push 0
push eax
push 2
push 0x53b884
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push esi
call fcn.00519790
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea ecx, [ebp - 4]
push ecx
push 2
push 0x53b887
push ebx
call sub.KERNEL32.DLL_WriteFile
jmp 0x5218fd
cmp dword [0x53b87c], 0
je 0x5218dc
cmp dword [0x53b87c], 0xffffffff
je 0x5218fd
push esi
call dword [0x53b87c]
pop ecx
mov eax, dword [0x53b880]
test eax, eax
je 0x5218fd
cmp dword [0x53b880], 0xffffffff
je 0x5218fd
cmp byte [eax], 0
je 0x5218fd
push esi
push eax
call fcn.00521700
add esp, 8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x522214
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
cmp dword [0x543d20], 0
jne 0x5222a0
cmp dword [0x543d54], 0
jne 0x522244
call sub.KERNEL32.DLL_GetEnvironmentStringsW
mov dword [0x543d54], eax
test eax, eax
jne 0x522244
push str.GetEnvironmentStrings_failed
call fcn.00521914
pop ecx
xor ebp, ebp
xor esi, esi
mov ebx, dword [0x543d54]
jmp 0x52225d
lea eax, [edi + 1]
add edi, edi
add edi, 2
add ebp, eax
inc esi
add ebx, edi
push ebx
call fcn.00519a50
pop ecx
mov edi, eax
test eax, eax
jne 0x522250
lea edi, [ebp + 1]
mov eax, edi
add eax, eax
push eax
call fcn.0051895c
pop ecx
mov ebx, eax
mov dword [0x543d24], ebx
test ebx, ebx
jne 0x52228b
xor eax, eax
jmp 0x522367
add edi, edi
mov edx, dword [0x543d54]
push edi
push edx
push ebx
call fcn.00519428
add esp, 0xc
jmp 0x5222c0
xor esi, esi
mov ebx, dword [0x543d20]
jmp 0x5222ba
push eax
call fcn.00519a50
pop ecx
test eax, eax
jne 0x5222b6
dec esi
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x5222aa
lea ebx, [esi + 4]
push 4
mov dword [0x543d28], ebx
inc ebx
push ebx
call fcn.005188c0
add esp, 8
test eax, eax
mov dword [esp], eax
jne 0x5222e3
xor eax, eax
jmp 0x522367
cmp dword [0x543d20], 0
jne 0x522318
xor esi, esi
mov ebx, dword [0x543d24]
mov eax, dword [esp]
mov ebp, eax
jmp 0x522309
mov dword [ebp], ebx
add edi, edi
add ebp, 4
add edi, 2
inc esi
add ebx, edi
push ebx
call fcn.00519a50
pop ecx
mov edi, eax
test eax, eax
jne 0x5222fb
jmp 0x522349
xor esi, esi
mov ebx, dword [0x543d20]
mov eax, dword [esp]
mov edi, eax
jmp 0x522343
push eax
call fcn.00519a50
pop ecx
test eax, eax
je 0x522338
mov eax, dword [ebx]
mov dword [edi], eax
jmp 0x52233c
dec esi
add edi, 0xfffffffc
add edi, 4
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x522327
mov eax, dword [0x543d20]
test eax, eax
je 0x522359
push eax
call fcn.0051896c
pop ecx
mov edx, dword [esp]
mov eax, 1
mov dword [0x543d20], edx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x401bc0
Capabilities:
Access peb ldr_data
Contain obfuscated stackstrings
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x423be8
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [0x43506c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x7c], esi
mov dword [ebp - 0x8c], 0
mov dword [ebp - 0x88], 0
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x14]
mov eax, dword [eax]
mov eax, dword [eax]
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x88], eax
mov edi, dword [ebp - 0x88]
mov ecx, edi
call fcn.00401a40
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x80], eax
push ecx
push edi
mov dword [ebp - 0x2c], 0x64616f4c
mov dword [ebp - 0x28], 0x7262694c
mov dword [ebp - 0x24], 0x41797261
mov byte [ebp - 0x20], 0
call eax
mov edi, eax
mov dword [ebp - 0x1c], 0x72657375
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x7c], edi
push eax
mov dword [ebp - 0x18], 0x642e3233
mov word [ebp - 0x14], 0x6c6c
mov byte [ebp - 0x12], 0
call edi
movaps xmm0, xmmword [0x431980]
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x3c], 0x6e65704f
push eax
mov dword [ebp - 0x38], 0x70696c43
mov dword [ebp - 0x34], 0x72616f62
mov word [ebp - 0x30], 0x64
mov dword [ebp - 0x4c], 0x736f6c43
mov dword [ebp - 0x48], 0x696c4365
mov dword [ebp - 0x44], 0x616f6270
mov word [ebp - 0x40], 0x6472
mov byte [ebp - 0x3e], 0
movups xmmword [ebp - 0x60], xmm0
mov byte [ebp - 0x50], 0
call edi
push eax
call dword [ebp - 0x80]
mov edi, eax
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x1c]
push eax
call dword [ebp - 0x7c]
push eax
call dword [ebp - 0x80]
mov dword [ebp - 0x84], eax
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x1c]
push eax
call dword [ebp - 0x7c]
push eax
call dword [ebp - 0x80]
push 0
mov dword [ebp - 0x7c], eax
call edi
test eax, eax
je 0x401d0b
push 1
call dword [ebp - 0x7c]
mov edi, eax
test edi, edi
jne 0x401d2f
call dword [ebp - 0x84]
mov dword [esi + 0x10], 0
mov ecx, esi
push 0
mov dword [esi + 0x14], 0xf
push 0x4311d8
mov byte [esi], 0
call fcn.00404f40
jmp 0x401db7
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edx, eax
test edx, edx
je 0x401d05
mov ecx, edx
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x64], 0xf
mov byte [ebp - 0x78], 0
lea eax, [ecx + 1]
mov dword [ebp - 0x7c], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x401d56
sub ecx, dword [ebp - 0x7c]
push ecx
push edx
lea ecx, [ebp - 0x78]
call fcn.00404f40
push edi
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [ebp - 0x84]
movups xmm0, xmmword [ebp - 0x78]
mov dword [esi + 0x10], 0
lea ecx, [ebp - 0x78]
mov dword [esi + 0x14], 0
movups xmmword [esi], xmm0
mov byte [ebp - 0x78], 0
movq xmm0, qword [ebp - 0x68]
movq qword [esi + 0x10], xmm0
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x64], 0xf
call fcn.00404e80
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040eca6
mov esp, ebp
pop ebp
ret
Function at 0x401de0
Capabilities:
Access peb ldr_data
Contain obfuscated stackstrings
Get number of processors

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x74
mov eax, dword [0x43506c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0x68], 0
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x14]
mov eax, dword [eax]
mov eax, dword [eax]
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x68], eax
mov esi, dword [ebp - 0x68]
mov ecx, esi
call fcn.00401a40
mov ebx, eax
mov dword [ebp - 0x20], 0x64616f4c
lea eax, [ebp - 0x20]
mov dword [ebp - 0x1c], 0x7262694c
push eax
push esi
mov dword [ebp - 0x18], 0x41797261
mov byte [ebp - 0x14], 0
call ebx
mov edi, eax
mov dword [ebp - 0x10], 0x72657375
lea eax, [ebp - 0x10]
mov dword [ebp - 0xc], 0x642e3233
push eax
mov word [ebp - 8], 0x6c6c
mov byte [ebp - 6], 0
call edi
movaps xmm0, xmmword [0x431990]
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0x30], 0x6e65704f
push eax
mov dword [ebp - 0x2c], 0x70696c43
mov dword [ebp - 0x28], 0x72616f62
mov word [ebp - 0x24], 0x64
mov dword [ebp - 0x40], 0x736f6c43
mov dword [ebp - 0x3c], 0x696c4365
mov dword [ebp - 0x38], 0x616f6270
mov word [ebp - 0x34], 0x6472
mov byte [ebp - 0x32], 0
mov dword [ebp - 0x50], 0x74706d45
mov dword [ebp - 0x4c], 0x696c4379
mov dword [ebp - 0x48], 0x616f6270
mov word [ebp - 0x44], 0x6472
mov byte [ebp - 0x42], 0
movups xmmword [ebp - 0x64], xmm0
mov byte [ebp - 0x54], 0
call edi
push eax
call ebx
mov esi, eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x10]
push eax
call edi
push eax
call ebx
mov dword [ebp - 0x6c], eax
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x10]
push eax
call edi
push eax
call ebx
mov dword [ebp - 0x70], eax
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x10]
push eax
call edi
push eax
call ebx
push 0
mov edi, eax
call esi
test eax, eax
je 0x401f59
call dword [ebp - 0x70]
mov ebx, dword [ebp - 0x74]
mov ecx, dword [ebx + 0x10]
inc ecx
push ecx
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x401f56
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, eax
test ecx, ecx
je 0x401f56
cmp dword [ebx + 0x14], 0x10
mov eax, dword [ebx + 0x10]
jb 0x401f3e
mov ebx, dword [ebx]
inc eax
push eax
push ebx
push ecx
call fcn.004116a0
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
push 1
call edi
call dword [ebp - 0x6c]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040eca6
mov esp, ebp
pop ebp
ret
Function at 0x405480
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
mov edx, 0x811c9dc5
push edi
mov edi, dword [ebp + 8]
mov ecx, 0
sub esi, edi
je 0x4054b1
nop dword [eax]
movzx eax, byte [ecx + edi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, esi
jb 0x4054a0
pop edi
mov eax, edx
pop esi
pop ebp
ret 8
Function at 0x413c5c
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
push esi
push 0x428160
push 0x428158
push str.FlsAlloc
push 0
call fcn.00413bdc
mov esi, eax
add esp, 0x10
test esi, esi
je 0x413c8e
push dword [ebp + 8]
mov ecx, esi
call fcn.0040f1d6
call esi
pop esi
pop ebp
ret
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsAlloc]

Function at 0x413cd0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
push 0x428170
push 0x428168
push str.FlsGetValue
push 2
call fcn.00413bdc
add esp, 0x10
mov esi, eax
push dword [ebp + 8]
test esi, esi
je 0x413d01
mov ecx, esi
call fcn.0040f1d6
call esi
jmp 0x413d07
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
pop esi
pop ebp
ret

Function at 0x413d0a
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
push 0x428178
push 0x428170
push str.FlsSetValue
push 3
call fcn.00413bdc
add esp, 0x10
mov esi, eax
push dword [ebp + 0xc]
push dword [ebp + 8]
test esi, esi
je 0x413d3e
mov ecx, esi
call fcn.0040f1d6
call esi
jmp 0x413d44
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop esi
pop ebp
ret

Function at 0x41d5ff
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041d2bf
Function at 0x188954e
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
lea esp, [esp + 4]
je 0x28d6c6b
bt si, 0xc
clc
call fcn.0188c941
mov esp, 0x2c5c354e
inc eax
adc al, 0x9b
dec esi
xor eax, 0x14402c5c
wait
adc dword [esi - 0xc], ebp
enter 0x47c7, 0x24
inc ebp
sub dword [ebp + 0x49], ecx
insd dword es:[edi], dx
jbe 0x1889564
bound edx, qword [ebp - 0x70985480]
invalid

Function at 0x189e6c3
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
cmc
add edi, eax
cmc
mov edi, dword [edi + ecx*4]
test ch, al
test edi, edi
push edx
push 0x4dfd89e8
mov word [esp], di
lea esp, [esp + 0x34]
je 0x28d6c6b
pushal
mov byte [esp], dl
stc
bt ax, 2
add eax, edi
call fcn.028deaad
xchg esp, eax
invalid

Function at 0x28d6c28
Capabilities:
Encode data using xor

Disassembly:
imul sp, word [ebp - 0x49dae41f], 0xff99
pushal
push ds
je 0x189e7de
scasd eax, dword es:[edi]
lodsd eax, dword [esi]
dec ecx
invalid
ror al, cl
pushal
add edi, 1
add al, ch
stc
bt sp, 0xb
mov al, byte [edi]
mov word [esp], sp
pushal
test ebx, 0x48dbc827
test al, al
push dword [esp]
call fcn.028db2cb
loopne 0x189e7e7
add eax, esp
mov ss, word [ecx + 0x488a174f]
xor eax, dword [esi - 0x65]
xchg ecx, eax
dec edi
pop ss
mov cl, byte [eax + 0x33]
inc esi
wait
adc dh, byte [ecx + eax*4]
cmp al, 0xb0
pushfd
stosd dword es:[edi], eax
ja 0x189e856
add byte [esi + 0x43250005], 0x4d
sub edx, dword [ebx + 0x19e8e504]
in eax, dx
jl 0x189e883
jg 0x189e8ea
invalid
pop edx
mov ecx, 0x310ec134
ret
push cs
xor ebx, eax
ja 0x189e89d
pop edx
push ecx
sbb al, 0x61
mov al, byte [0x902d3b86]
fcom st(0)
out 0x8e, eax
mov dl, ah
sub al, 0x4d
xchg dword [eax], ebp
fcmovnbe st(0), st(1)
inc ecx
jne 0x189e908
cli
pop edx
mov byte [ebx + 0x6cdf5e63], dh
out dx, al
mov al, 0x23
shl dword [eax + edx - 0x77], cl
inc ebx
je 0x189e87f
xor eax, eax
rcl word [edi]
add dword [edi + 0x71], 0x5c
pop ebp
inc ebx
out dx, eax
mov word [ebx + 7], es
and dword [ebp*2 - 0x104bbe99], edx
sbb al, 0xdc
out 0xe9, eax
jmp 0x1c0a2e95
inc dword [0x12a38a2b]
out 0x45, al
sub ecx, dword [edx + 0x45e612a3]
adc bh, al
ret
aas
cmp al, 0x5d
jle 0x189e8e8
jge 0x189e98d
jle 0x189e983
jae 0x189e987
jbe 0x189e8f3
loope 0x189e8b7
movsb byte es:[edi], byte [esi]
pushfd
jo 0x189e90e
invalid
ror al, cl
lodsd eax, dword [esi]
cmp dword [edi + 8], ebp
or al, 0x18
outsd dx, dword [esi]
or byte [eax + ebx], cl
cmp al, 0xd5
pop ebp
inc esi
cmp dword [ebx], eax
xchg edx, eax
inc esp
invalid
shl eax, cl
xor edx, edx
bswap ax
or al, 0x58
xor ah, 0xb0
mov eax, edx
jmp 0x189e832
Function at 0x28db2cb
Capabilities:
Encrypt data using rc4 prga

Disassembly:
jns 0x18896c9
mov edi, edx
pushfd
mov ecx, edi
lea esp, [esp + 4]
mov al, 0x53
push ecx
setle al
call fcn.028d3c9c
and al, 0x1c
pushal
out dx, al
aam 0x88
or al, 0x24
push 0xb0854ab7
pushal
lea esp, [esp + 0x40]
jmp 0x28e85a8
cld
add eax, 0x40c0e855
sar bh, cl
lea ecx, [ebp + 0x3b66e825]
mov edi, edx
bswap cx
mov al, bl
setnp cl
mov ecx, edi
not al
dec al
pushfd
mov al, byte [ecx]
mov byte [esp], ah
mov ah, al
call fcn.01886423
push ds
inc esi
adc eax, 0x8dfdd9e1
ja 0x1889675
test ecx, edx
sub bh, byte [ebp - 0x17]
jns 0x18896c1
invalid
lea esp, [esp + 0x4c]
je 0x15ad573
cmc
sub al, 0x30
cmc
bt sp, 2
cmp al, 9
push ebp
push 0x9bed4f13
call fcn.0189eb84
hlt
stc
stc
sub ebp, 4
stc
cmc
imul edx
pushal
lea esp, [esp + 0x20]
jg 0x28e7c46
pushfd
mov dword [ebp + 4], edx
push 0xa17e7681
lea esp, [esp + 8]
jno 0x28e7af1
pushfd
mov dword [ebp + 8], eax
call fcn.028e8b3a
call fcn.028e8d89
pushfd
pop dword [esp + 0x1c]
call fcn.028e87ee
pushfd
jmp 0x28e7da8
push ebp
mov dword [esp], eax
pushfd
mov word [esp], 0x32a8
mov dword [esp], ebp
pushfd
mov dword [esp], edx
call fcn.028e840f
xchg al, dl
xor dx, di
movsx dx, cl
shr eax, 0x12
mov edx, dword [ebp]
das
mov eax, dword [ebp + 4]
cmc
jmp 0x28e6dd2
pushal
pushfd
pushfd
mov dword [ebp + 8], eax
call fcn.028e6954
mov dword [esp + 0x44], 0x28e82da
mov word [esp + 4], 0xb277
mov byte [esp + 8], cl
push edx
mov dword [esp + 0x44], edx
mov byte [esp + 4], dh
push dword [esp + 4]
push ebx
mov byte [esp + 4], 0x7d
push dword [esp + 0x4c]
ret 0x50
push 0xd73adbae
mov dword [ebp + 4], edx
call fcn.028e8157
pushfd
pushal
mov dword [esp + 0x24], eax
push dword [esp + 0xc]
pushfd
mov dword [esp + 0x28], ebp
call fcn.028e6aaf
pushal
mov eax, dword [ebp + 4]
jmp 0x28e9031
push dword [esp + 0x28]
pop dword [ebp]
mov word [esp], 0xd1b
lea esp, [esp + 0x2c]
jmp 0x28e7f86
jmp 0x28e810d
mov dword [ebp + 8], eax
call 0x28e6e07
jmp 0x28e6fff
pushfd
pushfd
div dword [ebp + 8]
push esp
call fcn.028e7a6e
jmp 0x28e7d6e
jmp 0x28e8ee8
Function at 0x102e8021
Capabilities:
Execute anti-debugging instructions

Disassembly:
push eax
cbw
push ebx
not al
push edx
setl al
rdtsc
push ebp
movzx eax, sp
push esi
cbw
push edi
push ecx
cwde
bswap bx
pushfd
bswap edi
ror ebp, 0xac
mov ecx, 0
dec eax
bt bp, 0x87
rcl si, 0x19
push ecx
mov ebp, dword [esp + 0x28]
neg ebp
xchg dh, dh
rdtsc
setbe al
dec ebp
bswap ebp
not bx
dec ebp
sub si, sp
btr esi, 0xb5
lea ebp, [ebp + ecx]
mov si, 0x620b
inc bl
mov edi, esp
sub esp, 0xc0
rol esi, 0xc0
mov ebx, ebp
mov edx, 0
shld eax, ebp, 0x46
movzx ax, ah
sub ebx, edx
mov eax, 0x3bda7509
xchg esi, eax
clc
lea esi, [0x102e8098]
movsx ax, bh
cmovno eax, esp
or ax, 0x4f1b
sub ebp, 4
shr ax, cl
mov eax, dword [ebp]
xor eax, ebx
cmc
clc
rol eax, 3
jmp 0x1031d1b5
sub eax, 0x36214cc0
cmc
rol eax, 1
neg eax
test cx, sp
clc
add eax, 0x3d425b0a
stc
cmp sp, 0x1f9d
xor eax, 0x11ab55ce
xor ebx, eax
cmc
add esi, eax
jmp 0x1063c588
jmp esi
Function at 0x401910
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401929
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401964
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x401960
lea ebx, [ebx]
cmp esi, eax
jae 0x401964
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401950
cmp esi, eax
jb 0x40196a
pop esi
pop edi
xor eax, eax
pop ebx
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x401a30
Capabilities:
Acquire debug privileges

Disassembly:
sub esp, 0x14
push esi
lea eax, [esp + 4]
push eax
xor esi, esi
push 0x20
mov dword [esp + 0xc], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x401aa2
lea ecx, [esp + 0xc]
push ecx
push str.SeDebugPrivilege
push esi
mov dword [esp + 0x14], 1
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov eax, dword [esp + 4]
push esi
push esi
push 0x10
lea edx, [esp + 0x14]
push edx
push esi
push eax
mov dword [esp + 0x2c], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 4]
mov esi, eax
neg esi
sbb esi, esi
push ecx
add esi, 1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
add esp, 0x14
ret