joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a073b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x4a077e
call fcn.0049a770
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4a077e
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x4a0799
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.004a02f5
test ebx, ebx
mov esi, eax
je 0x4a0797
test edi, edi
je 0x4a0797
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x4a3862
Capabilities:
Get geographical location

Disassembly:
push ebp
lea ebp, [esp - 0x1f4]
sub esp, 0x274
mov eax, dword [0x51c080]
xor eax, ebp
mov dword [ebp + 0x1f0], eax
cmp dword [ebp + 0x200], 0x800
mov eax, dword [ebp + 0x1fc]
push esi
mov dword [ebp - 0x40], eax
mov esi, ecx
lea eax, [ebp + 0x1e8]
jne 0x4a3900
push 0x4d75c4
push 4
push eax
call fcn.004a9ecb
push eax
call fcn.004171a0
add esp, 0x10
push ebx
push edi
call fcn.004ad1f1
mov edi, dword [eax]
call fcn.004ad1f1
xor ebx, ebx
mov dword [eax], ebx
lea eax, [ebp + 0x1e8]
push eax
push dword [ebp - 0x40]
lea eax, [ebp - 0x3c]
push esi
push 0x111
mov esi, 0x112
push esi
push eax
call fcn.004a9cc5
add esp, 0x18
mov dword [ebp - 0x40], eax
call fcn.004ad1f1
cmp dword [eax], ebx
je 0x4a3917
call fcn.004ad1f1
push dword [eax]
call fcn.0049b58c
pop ecx
jmp 0x4a391e
push 4
push eax
push 3
push dword [ebp + 0x200]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x4a38b1
jmp 0x4a3990
call fcn.004ad1f1
mov dword [eax], edi
cmp dword [ebp - 0x40], 0xffffffff
je 0x4a398c
cmp dword [ebp - 0x40], esi
jae 0x4a398c
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push 0x3c
mov esi, eax
lea eax, [ebp - 0x7c]
push ebx
push eax
mov dword [ebp - 0x80], 0x40
call fcn.004ab450
add esp, 0xc
push 0x4d5954
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp eax, ebx
je 0x4a397e
push str.FindActCtxSectionStringW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x4a397e
lea ecx, [ebp - 0x80]
push ecx
push esi
push 2
push ebx
push ebx
call eax
test eax, eax
je 0x4a397e
push ebx
push ebx
push esi
jmp 0x4a3984
push ebx
push ebx
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
jmp 0x4a398e
xor eax, eax
pop edi
pop ebx
mov ecx, dword [ebp + 0x1f0]
xor ecx, ebp
pop esi
call fcn.004a998e
add ebp, 0x1f4
leave
ret
Function at 0x4a998e
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x51c080]
jne 0x4a9998
repz ret
jmp fcn.004b2405
Function at 0x4ac755
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
je 0x4ac792
cmp dword [ebp + 0x14], edi
je 0x4ac792
cmp ecx, edi
jne 0x4ac799
call fcn.004ad1f1
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.004aa2dc
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x4ac7ad
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x4ac7ce
cmp ebx, 0xffffffff
je 0x4ac7bd
push ebx
push edi
push ecx
call fcn.004ab450
add esp, 0xc
cmp esi, edi
je 0x4ac77a
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x4ac77a
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x4ac7ea
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x4ac7f1
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x4ac8e2
test word [esi + 0xc], 0x10c
je 0x4ac845
mov eax, dword [esi + 4]
test eax, eax
je 0x4ac845
jl 0x4ac943
cmp ebx, eax
mov edi, ebx
jb 0x4ac816
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x4ac8ea
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.004a9d14
sub dword [esi + 4], edi
add dword [esi], edi
add dword [ebp - 8], edi
sub ebx, edi
add esp, 0x10
sub dword [ebp - 4], edi
mov edi, dword [ebp - 0x10]
jmp 0x4ac8da
cmp ebx, dword [ebp - 0xc]
jb 0x4ac8b2
cmp dword [ebp - 0xc], 0
je 0x4ac86f
mov ecx, bind
xor edx, edx
cmp ebx, ecx
jbe 0x4ac864
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x4ac86b
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x4ac87a
mov eax, bind
cmp ebx, eax
ja 0x4ac87a
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x4ac916
push eax
push dword [ebp - 8]
push esi
call fcn.004b8502
pop ecx
push eax
call fcn.004b8269
add esp, 0xc
test eax, eax
je 0x4ac955
cmp eax, 0xffffffff
je 0x4ac943
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x4ac8da
push esi
call fcn.004b8d83
cmp eax, 0xffffffff
pop ecx
je 0x4ac947
cmp dword [ebp - 4], 0
je 0x4ac916
mov ecx, dword [ebp - 8]
inc dword [ebp - 8]
mov byte [ecx], al
mov eax, dword [esi + 0x18]
dec ebx
dec dword [ebp - 4]
mov dword [ebp - 0xc], eax
test ebx, ebx
jne 0x4ac7f9
mov eax, dword [ebp + 0x14]
jmp 0x4ac794
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x4ac901
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.004ab450
add esp, 0xc
call fcn.004ad1f1
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x4ac78a
cmp dword [ebp + 0xc], 0xffffffff
je 0x4ac92c
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.004ab450
add esp, 0xc
call fcn.004ad1f1
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x4ac78a
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x4ac794
or dword [esi + 0xc], 0x10
jmp 0x4ac947
Function at 0x4af9be
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x51c210]
je 0x4af9d9
inc edi
cmp edi, 0x17
jb 0x4af9ca
cmp edi, 0x17
jae 0x4afb59
push ebp
push 3
call fcn.004bb81f
cmp eax, 1
pop ecx
je 0x4afb25
push 3
call fcn.004bb81f
test eax, eax
pop ecx
jne 0x4afa0d
cmp dword [0x51c018], 1
je 0x4afb25
cmp ebx, 0xfc
je 0x4afb58
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x5200d8
push ebp
call fcn.004ab87b
add esp, 0xc
test eax, eax
je 0x4afa43
push esi
push esi
push esi
push esi
push esi
call fcn.004aa1e0
add esp, 0x14
push 0x104
mov esi, 0x5200f1
push esi
push 0
mov byte [0x5201f5], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4afa87
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.004ab87b
add esp, 0xc
test eax, eax
je 0x4afa87
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.004aa1e0
add esp, 0x14
push esi
call fcn.004aef50
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x4afacc
push esi
call fcn.004aef50
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x5203ec
push 0x4d884c
sub ecx, eax
push ecx
push eax
call fcn.004aba3d
add esp, 0x14
test eax, eax
je 0x4afacc
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.004aa1e0
add esp, 0x14
jmp 0x4aface
xor esi, esi
push 0x4d8848
push ebx
push ebp
call fcn.004aabef
add esp, 0xc
test eax, eax
je 0x4afaee
push esi
push esi
push esi
push esi
push esi
call fcn.004aa1e0
add esp, 0x14
push dword [edi*8 + 0x51c214]
push ebx
push ebp
call fcn.004aabef
add esp, 0xc
test eax, eax
je 0x4afb10
push esi
push esi
push esi
push esi
push esi
call fcn.004aa1e0
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.004bb662
add esp, 0xc
jmp 0x4afb58
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x4afb58
cmp ebp, 0xffffffff
je 0x4afb58
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x51c214]
push dword [esi]
call fcn.004aef50
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x4bb662
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.004b0582
xor ebx, ebx
cmp dword [0x520bd8], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x4bb738
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4bb818
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x4bb818
push eax
call fcn.004b0514
mov dword [esp], 0x4d8bd0
push edi
mov dword [0x520bd8], eax
call esi
push eax
call fcn.004b0514
mov dword [esp], 0x4d8bbc
push edi
mov dword [0x520bdc], eax
call esi
push eax
call fcn.004b0514
mov dword [0x520be0], eax
lea eax, [ebp - 0xc]
push eax
call fcn.004aebf2
test eax, eax
pop ecx
pop ecx
je 0x4bb706
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004aa1e0
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x4bb738
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.004b0514
cmp eax, ebx
pop ecx
mov dword [0x520be8], eax
je 0x4bb738
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004b0514
pop ecx
mov dword [0x520be4], eax
mov eax, dword [0x520be4]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x4bb7bd
cmp dword [0x520be8], ecx
je 0x4bb7bd
push eax
call fcn.004b058b
push dword [0x520be8]
mov esi, eax
call fcn.004b058b
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x4bb7bd
cmp edi, ebx
je 0x4bb7bd
call esi
cmp eax, ebx
je 0x4bb78a
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4bb78a
test byte [ebp - 0x18], 1
jne 0x4bb7bd
lea eax, [ebp - 0x10]
push eax
call fcn.004aec29
test eax, eax
pop ecx
je 0x4bb7a5
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004aa1e0
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x4bb7b4
or dword [ebp + 0x10], 0x200000
jmp 0x4bb7f8
or dword [ebp + 0x10], 0x40000
jmp 0x4bb7f8
mov eax, dword [0x520bdc]
cmp eax, dword [ebp - 8]
je 0x4bb7f8
push eax
call fcn.004b058b
cmp eax, ebx
pop ecx
je 0x4bb7f8
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x4bb7f8
mov eax, dword [0x520be0]
cmp eax, dword [ebp - 8]
je 0x4bb7f8
push eax
call fcn.004b058b
cmp eax, ebx
pop ecx
je 0x4bb7f8
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x520bd8]
call fcn.004b058b
cmp eax, ebx
pop ecx
je 0x4bb818
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4bb81a
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4c534c
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x51c080]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.004c52e1
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.004ab450
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x4c539b
cmp dword [ebp - 0x1c], 5
jb 0x4c53b3
jmp 0x4c53af
cmp dword [ebp - 0x10], 1
jne 0x4c53b3
cmp dword [ebp - 0x1c], 4
ja 0x4c53af
jne 0x4c53b3
cmp dword [ebp - 0x18], 0
jbe 0x4c53b3
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x4da5c8
call fcn.004c51d2
test eax, eax
jge 0x4c53d4
mov byte [0x53235c], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004a998e
add ebp, 0x78
leave
ret
Function at 0x10001000
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x3c
push esi
push edi
push 0x38
lea eax, [esp + 0x10]
push 0
push eax
mov esi, edx
mov edi, ecx
call sub.ntdll.dll_memset
add esp, 0xc
lea eax, [esp + 8]
push eax
mov dword [esp + 0xc], 0x3c
mov dword [esp + 0x10], 0x4200
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x28], 5
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
pop edi
pop esi
add esp, 0x3c
ret

Function at 0x10001f00
Capabilities:
Create thread

Disassembly:
dec dword [esp + 8]
jne 0x10001f2e
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
push 0
push 0
push dword [esp + 0xc]
push 0x10001bb0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
ret 0xc

Function at 0x10002f20
Capabilities:
Enumerate threads
Resume thread
Suspend thread

Disassembly:
sub esp, 0x24
push ebp
push esi
push edi
mov byte [esp + 0xf], cl
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push 0
mov esi, eax
push 4
mov dword [esp + 0x18], esi
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, 0xffffffff
je 0x10002fc1
push ebx
lea eax, [esp + 0x18]
push eax
push edi
mov dword [esp + 0x20], 0x1c
call dword [sym.imp.KERNEL32.dll_Thread32First]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ebx, [ebx]
mov eax, dword [esp + 0x20]
cmp eax, ebp
je 0x10002fad
cmp dword [esp + 0x24], esi
jne 0x10002fad
push eax
push 0
push 2
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov esi, eax
cmp esi, 0xffffffff
je 0x10002fa9
cmp byte [esp + 0x13], 0
push esi
je 0x10002fa0
call dword [sym.imp.KERNEL32.dll_ResumeThread]
jmp 0x10002fa6
call dword [sym.imp.KERNEL32.dll_SuspendThread]
push esi
call ebx
mov esi, dword [esp + 0x14]
lea eax, [esp + 0x18]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x10002f70
push edi
call ebx
pop ebx
pop edi
pop esi
pop ebp
add esp, 0x24
ret
Function at 0x42fb71
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov eax, 0x43757a
call fcn.004339e0
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x10], esi
mov dword [esi], 0x43c770
mov dword [esi + 4], 0x43c758
mov dword [esi + 8], ebx
mov dword [ebp - 4], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
lea ecx, [esi + 0x18]
mov byte [ebp - 4], 1
call fcn.004028e9
mov ecx, dword [ebp - 0xc]
mov byte [esi + 0x24], 1
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x40], ebx
mov dword [esi + 0x44], ebx
mov dword [esi + 0x48], ebx
mov byte [esi + 0x4c], bl
mov byte [esi + 0x4d], bl
mov dword [esi], 0x43c73c
mov dword [esi + 4], 0x43c724
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x430a10
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
pushal
call 0x430a1f
pop dword [ebp - 0x24]
mov eax, 0x84318cea
sub eax, 0x83ee82cb
sub dword [ebp - 0x24], eax
push 0x40
push 0x1000
push 0x3875f
push 0
mov eax, 0x801492f
add eax, 0xf8423701
add eax, dword [ebp - 0x24]
call dword [eax]
mov ecx, 0xcd2609b7
add ecx, 0x32da3557
mov edx, eax
mov esi, 0xbbe6f3f7
sub esi, 0xbba22df7
add esi, dword [ebp - 0x24]
mov ebx, 0xd5665912
sub dword [ebp - 0xc], 0x6548ba65
mov edi, dword [esi]
mov dword [ebp - 0x20], 0x3f11b1a6
add edi, ebx
mov dword [ebp - 4], 0xc55319de
mov dword [edx], edi
xor dword [ebp - 0x20], 0xee37b697
add edx, 0x9c35f45c
sub edx, 0x9c35f458
add esi, 0x1b33a8c0
sub esi, 0x1b33a8bc
loop 0x430a78
add eax, 0xef0b
mov ebx, eax
add eax, 0x182a124e
add eax, 0xe7d5edb7
mov ecx, 0xc90ac63e
add ecx, 0x373539c2
add ecx, dword [ebp - 0x24]
call ebx
leave
ret

Function at 0x433770
Capabilities:
Create thread

Disassembly:
push esi
lea eax, [esp + 8]
push eax
push 0
mov esi, ecx
mov ecx, dword [esp + 0x10]
push ecx
push edx
push 0
push 0
call dword [sym.imp.msvcrt.dll__beginthreadex]
add esp, 0x18
mov dword [esi], eax
pop esi
test eax, eax
je 0x433799
xor eax, eax
ret 4
call dword [sym.imp.kernel32.dll_GetLastError]
test eax, eax
jne 0x4337a8
mov eax, 1
ret 4
Function at 0x10002eb8
Capabilities:
Encode data using xor

Disassembly:
add byte [eax], dl
sbb al, 0x5f
sal byte [edi - 0x39cff000], 0
adc byte [eax], dh
mov esi, 0xd9001000
add byte [eax], dl
loopne 0x10002ea2
add byte [eax], dl
mov al, byte [0x801000d9]
fld dword [eax]
adc byte [eax], al
fild dword [eax]
adc al, dh
fiadd dword [eax]
adc byte [eax], al
aam 0
adc al, dh
rol dword [eax], cl
adc al, cl
pop edi
add byte [eax], dl
Function at 0x1000d560
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 0x20]
push edi
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0x18], ecx
mov dword [edi], eax
mov eax, dword [ebp + 0x18]
mov dword [esi], eax
jmp 0x1000d6fa
mov ecx, dword [esi]
mov dword [ebp - 0x10], ecx
cmp ecx, dword [ebp + 0x1c]
je 0x1000d705
mov edx, dword [ebp + 8]
movzx ecx, word [eax]
mov eax, ecx
mov byte [ebp - 1], 0
movzx ebx, word [edx]
xor edx, edx
inc edx
mov dword [ebp - 0x14], ebx
cmp dx, bx
jae 0x1000d5df
lea eax, [ecx + 0x2400]
mov edx, 0x3ff
cmp ax, dx
ja 0x1000d716
movzx eax, bx
lea edx, [ecx - 0xdc00]
shl eax, 0xa
or edx, eax
mov bl, byte [ebp - 1]
xor eax, eax
inc eax
cmp edx, 0x80
jae 0x1000d604
mov cl, dl
xor eax, eax
jmp 0x1000d627
mov edx, eax
lea eax, [ecx + 0x2800]
mov ecx, 0x3ff
cmp ax, cx
ja 0x1000d5cb
add edx, 0xffff2840
xor eax, eax
shl edx, 0xa
inc eax
mov bl, al
mov byte [ebp - 1], bl
jmp 0x1000d5d1
mov ecx, edx
cmp edx, 0x800
jae 0x1000d616
shr ecx, 6
or cl, 0xc0
jmp 0x1000d627
cmp edx, 0x10000
jae 0x1000d62e
shr ecx, 0xc
push 2
or cl, 0xe0
pop eax
mov dword [ebp - 8], eax
mov ebx, eax
jmp 0x1000d645
xor eax, eax
movzx ebx, bl
inc eax
shr ecx, 0x12
xor ebx, eax
mov dword [ebp - 8], 3
or cl, 0xf0
add ebx, ebx
mov edi, dword [ebp + 0x1c]
lea eax, [ebx + 1]
mov dword [ebp - 0xc], edi
mov edi, dword [ebp - 0x10]
sub dword [ebp - 0xc], edi
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0xc], eax
jl 0x1000d705
cmp word [ebp - 0x14], 0
jne 0x1000d698
mov esi, dword [ebp - 0x18]
test byte [esi + 0xc], 2
mov esi, dword [ebp + 0x20]
je 0x1000d698
add eax, 3
cmp dword [ebp - 0xc], eax
jl 0x1000d705
mov eax, dword [ebp - 0x10]
mov byte [eax], 0xef
inc dword [esi]
mov eax, dword [esi]
mov byte [eax], 0xbb
inc dword [esi]
mov eax, dword [esi]
mov byte [eax], 0xbf
inc dword [esi]
add dword [edi], 2
cmp byte [ebp - 1], 0
jne 0x1000d6b3
mov eax, dword [ebp - 8]
cmp eax, 3
jb 0x1000d6b3
mov ecx, dword [esi]
mov ebx, dword [ebp - 0x1c]
mov dword [ebp - 0x10], ecx
jmp 0x1000d6c1
mov eax, dword [esi]
mov byte [eax], cl
inc dword [esi]
mov eax, dword [esi]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 8]
test ebx, ebx
jle 0x1000d6e4
mov edi, dword [ebp - 0x10]
imul ecx, eax, 6
sub ecx, 6
mov eax, edx
shr eax, cl
dec ebx
and al, 0x3f
or al, 0x80
mov byte [edi], al
inc dword [esi]
mov edi, dword [esi]
test ebx, ebx
jg 0x1000d6cb
mov edi, dword [ebp + 0x14]
cmp byte [ebp - 1], 0
je 0x1000d6ef
shr edx, 0xa
jmp 0x1000d6f4
xor eax, eax
lea edx, [eax + 1]
mov eax, dword [ebp + 8]
mov word [eax], dx
mov eax, dword [edi]
cmp eax, dword [ebp + 0x10]
jne 0x1000d581
mov ecx, dword [ebp + 0xc]
xor eax, eax
cmp ecx, dword [edi]
sete al
pop edi
pop esi
pop ebx
leave
ret 0x1c
push 2
pop eax
jmp 0x1000d70f
Function at 0x1000f6d0
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x10063250]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x28]
push eax
xor esi, esi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
jne 0x1000f6fc
or eax, 0xffffffff
jmp 0x1000f724
test byte [ebp + 0xc], 0x92
mov ecx, dword [ebp - 0x28]
mov eax, ecx
jne 0x1000f70c
or eax, 1
jmp 0x1000f70f
and eax, 0xfffffffe
cmp eax, ecx
je 0x1000f722
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x1000f722
or esi, 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.1003bcc0
leave
ret

Function at 0x10014e3b
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 2
lea eax, [ebp - 4]
push eax
push 0x20000001
push 0x10003f8c
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov esi, dword [ebp + 0xc]
neg eax
sbb eax, eax
xor ecx, ecx
and eax, dword [ebp - 4]
push ecx
push ecx
push esi
push eax
push dword [ebp + 8]
mov dword [ebp - 4], eax
push ecx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push eax
push dword [esi]
call fcn.10014e17
pop esi
leave
ret 8

Function at 0x10015340
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
lea eax, [esi + 4]
push eax
xor eax, eax
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
push eax
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov dword [esi], eax
add esp, 0x18
neg eax
sbb eax, eax
and eax, 0xfffffffc
add eax, 4
pop esi
pop ebp
ret

Function at 0x10025460
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push 2
push eax
push 0x22
call dword [sym.imp.api_ms_win_crt_locale_l1_1_0.dll____lc_locale_name_func]
push dword [eax + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
movzx eax, word [ebp - 4]
sub eax, 0x30
je 0x1002549f
sub eax, 1
je 0x1002549a
sub eax, 1
je 0x10025496
xor eax, eax
leave
ret
push 3
jmp 0x100254a1
xor eax, eax
inc eax
leave
ret
push 2
pop eax
leave
ret
Function at 0x10025ac0
Capabilities:
Enumerate pe sections

Disassembly:
call fcn.100259b6
mov word [edi - 0x55], cs
dec edi
mov eax, dword [esi + 0x20]
add eax, edi
mov edi, dword [esi + 0x1c]
add edi, dword [ebp + 8]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
shr eax, 0x10
test ax, ax
je 0x10025b58
and dword [ebp - 4], 0
mov eax, dword [edi]
mov dword [ebp - 0x10], eax
call fcn.100259b6
sahf
mov cl, dh
cmp dword gs:[ebp - 0x10], 0
je 0x10025b3d
mov eax, dword [ebp - 0x14]
and dword [ebp - 0x10], 0
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
movzx eax, word [eax]
cmp eax, dword [ebp - 4]
jne 0x10025b29
mov eax, dword [ebp - 0xc]
push dword [ebp + 0xc]
mov eax, dword [eax]
add eax, dword [ebp + 8]
push eax
call fcn.1002594c
call [ecx - 0x7b]
rcr byte [ecx + 0x74], 0x27
mov eax, dword [esi + 0x18]
inc dword [ebp - 0x10]
inc ebp
lock add dword [ebp - 8], 2
add dword [ebp - 0xc], 4
dec eax
cmp dword [ebp - 0x10], eax
jbe 0x10025b07
mov eax, dword [esi + 0x14]
inc dword [ebp - 4]
dec eax
cmp dword [ebp - 4], eax
jbe 0x10025ae6
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov eax, dword [ebp - 4]
mov eax, dword [edi + eax*4]
jmp 0x10025b8d
xor ebx, ebx
mov dword [ebp - 0x10], edi
mov eax, dword [esi + 0x10]
add eax, ebx
cmp dword [ebp + 0xc], eax
jne 0x10025b78
call fcn.100259b6
dec ebp
push esi
jno 0x10025bb7
mov eax, dword [ebp - 0x10]
cmp dword [eax], 0
jne 0x10025b87
mov eax, dword [esi + 0x14]
add dword [ebp - 0x10], 4
inc ebx
dec eax
cmp ebx, eax
jbe 0x10025b5d
jmp 0x10025b49
mov eax, dword [edi + ebx*4]
shl eax, 6
add eax, dword [ebp + 8]
jmp 0x10025b4b
movzx eax, word [edi + 0x14]
lea esi, [eax + edi + 0x18]
mov dword [ebp - 0x44], esi
call fcn.100259b6
enter 0xffffffffffffa71d, 0x6f
movzx eax, word [edi + 6]
lea eax, [eax + eax*4]
shl eax, 3
sub eax, dword [ebp + 0x10]
add eax, esi
mov dword [ebp - 0xb4], eax
mov dword [ebp - 8], eax
call fcn.100259b6
and ah, byte [ecx - 5]
retf