joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10002da0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x1000c00c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword fs:[0x2c]
mov ecx, dword [0x1000c698]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x1000c6c8]
cmp eax, dword [ecx + 4]
jle 0x10002e03
push 0x1000c6c8
call fcn.10006b21
add esp, 4
cmp dword [0x1000c6c8], 0xffffffff
jne 0x10002e03
push 0x10007c40
mov dword [0x1000c6cc], 0x1000886c
call fcn.10006efc
push 0x1000c6c8
call fcn.10006ad7
add esp, 8
push esi
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 8]
push eax
push 0x40
push 4
push 0x445f40
mov dword [ebp - 8], 0
call esi
test eax, eax
je 0x10002e3e
lea eax, [ebp - 8]
mov dword [0x445f40], 0x1000c7b8
push eax
push dword [ebp - 8]
push 4
push 0x445f40
call esi
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push 0x40
push 4
push 0x473096
call esi
test eax, eax
je 0x10002e72
lea eax, [ebp - 8]
mov dword [0x473096], 0x1000c7b8
push eax
push dword [ebp - 8]
push 4
push 0x473096
call esi
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push 0x40
push 4
push 0x565b54
call esi
test eax, eax
je 0x10002ea6
lea eax, [ebp - 8]
mov dword [0x565b54], 0x1000c7b8
push eax
push dword [ebp - 8]
push 4
push 0x565b54
call esi
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push 0x40
push 1
push 0x445f30
call esi
test eax, eax
je 0x10002ed7
lea eax, [ebp - 8]
mov byte [0x445f30], 0x32
push eax
push dword [ebp - 8]
push 1
push 0x445f30
call esi
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push 0x40
push 1
push 0x565b49
call esi
test eax, eax
je 0x10002f08
lea eax, [ebp - 8]
mov byte [0x565b49], 0x32
push eax
push dword [ebp - 8]
push 1
push 0x565b49
call esi
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push 0x40
push 1
push 0x472c84
call esi
test eax, eax
je 0x10002f39
lea eax, [ebp - 8]
mov byte [0x472c84], 0x32
push eax
push dword [ebp - 8]
push 1
push 0x472c84
call esi
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push 0x40
push 1
push 0x4ad834
call esi
test eax, eax
je 0x10002f6a
lea eax, [ebp - 8]
mov byte [0x4ad834], 0xeb
push eax
push dword [ebp - 8]
push 1
push 0x4ad834
call esi
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.100069a3
mov esp, ebp
pop ebp
ret
Function at 0x10002fd0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
push edi
cmp eax, 1
jne 0x100031fc
push str.ws2_32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push str.recv
push str.ws2_32.dll
call edi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call esi
push str.send
push str.ws2_32.dll
mov dword [0x1000ccd0], eax
call edi
push eax
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 0
push 6
push 0x1000ccd8
push dword [0x1000ccd0]
mov dword [0x1000ccd4], eax
call edi
mov esi, dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
push eax
call esi
push 0
push 6
push 0x1000ccc8
push dword [0x1000ccd4]
call edi
push eax
call esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateThread]
push 0
push 0
push 0
push 0x10001240
push 0
push 0
call esi
push 0
push 0
push 0
push 0x10003660
push 0
push 0
call esi
push 0
push 0
push 0
push 0x10001590
push 0
push 0
call esi
call fcn.10001700
push 0
push 0
push 0
push 0x100017d0
push 0
push 0
call esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
push str.shell32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp dword [ebp + 0x10], 0
mov byte [0x1000c6d1], 0
jne 0x100031f4
mov eax, dword fs:[0x2c]
mov ecx, dword [0x1000c698]
mov esi, dword [eax + ecx*4]
mov eax, dword [0x1000d1d0]
cmp eax, dword [esi + 4]
jle 0x1000311b
push 0x1000d1d0
call fcn.10006b21
add esp, 4
cmp dword [0x1000d1d0], 0xffffffff
jne 0x1000311b
push 0x10007c50
mov dword [0x1000d1d4], 0x100088c8
call fcn.10006efc
push 0x1000d1d0
call fcn.10006ad7
add esp, 8
mov eax, dword [0x1000d1c0]
cmp eax, dword [esi + 4]
jle 0x1000315f
push 0x1000d1c0
call fcn.10006b21
add esp, 4
cmp dword [0x1000d1c0], 0xffffffff
jne 0x1000315f
push 0x10007c30
mov dword [0x1000d1c4], 0x10008848
call fcn.10006efc
push 0x1000d1c0
call fcn.10006ad7
add esp, 8
call fcn.10002d20
mov edi, dword [sym.imp.USER32.dll_MessageBoxA]
test al, al
je 0x100031e4
mov eax, dword [0x1000d1cc]
cmp eax, dword [esi + 4]
jle 0x100031b2
push 0x1000d1cc
call fcn.10006b21
add esp, 4
cmp dword [0x1000d1cc], 0xffffffff
jne 0x100031b2
push 0x10007c20
mov dword [0x1000d1c8], 0x10008858
call fcn.10006efc
push 0x1000d1cc
call fcn.10006ad7
add esp, 8
call fcn.10003ac0
test al, al
je 0x100031e4
call fcn.10003270
test al, al
jne 0x100031d1
call fcn.10003320
test al, al
je 0x10003261
push 0x200030
push str.Info
push str.Detectado_Maquina_Virtual
push 0
call edi
push 0
push str.Erro:_ClientPatch.dll
push 0x10008890
push 0
call edi
pop edi
xor eax, eax
pop esi
pop ebp
ret 0xc
test eax, eax
jne 0x100031f4
cmp dword [ebp + 0x10], eax
je 0x100031f4
mov eax, dword fs:[0x2c]
mov ecx, dword [0x1000c698]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x1000d1d0]
cmp eax, dword [ecx + 4]
jle 0x10003258
push 0x1000d1d0
call fcn.10006b21
add esp, 4
cmp dword [0x1000d1d0], 0xffffffff
jne 0x10003258
push 0x10007c50
mov dword [0x1000d1d4], 0x100088c8
call fcn.10006efc
push 0x1000d1d0
call fcn.10006ad7
add esp, 8
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
mov eax, 1
pop esi
pop ebp
ret 0xc
Function at 0x10006840
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x4c
mov eax, dword [0x1000c00c]
xor eax, esp
mov dword [esp + 0x48], eax
cmp dword [ebp + 0x10], 0
push esi
mov esi, dword [ebp + 8]
jne 0x10006909
mov eax, 0x20d
cmp word [esi + 4], ax
jne 0x10006909
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.RPCRT4.dll_UuidCreateSequential]
movzx eax, byte [esp + 0x1f]
xorps xmm0, xmm0
push eax
movzx eax, byte [esp + 0x22]
push eax
movzx eax, byte [esp + 0x25]
push eax
movzx eax, byte [esp + 0x28]
push eax
movzx eax, byte [esp + 0x2b]
push eax
movzx eax, byte [esp + 0x2e]
push eax
lea eax, [esp + 0x38]
movaps xmmword [esp + 0x38], xmm0
push str._02X:_02X:_02X:_02X:_02X:_02X
push eax
mov word [esp + 0x50], 0
call fcn.10002c70
lea ecx, [esp + 0x40]
add esp, 0x20
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100068c8
sub ecx, edx
cmp ecx, 0xc
jge 0x100068de
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
lea edx, [esi + 0x54]
xorps xmm0, xmm0
lea eax, [esp + 0x20]
movups xmmword [edx], xmm0
mov ecx, eax
mov word [edx + 0x10], 0
sub edx, ecx
mov cl, byte [eax]
lea eax, [eax + 1]
mov byte [edx + eax - 1], cl
test cl, cl
jne 0x100068f5
mov dword [esi + 0x50], 0x7be75
mov ecx, dword [esp + 0x4c]
pop esi
xor ecx, esp
call fcn.100069a3
mov esp, ebp
pop ebp
ret
Function at 0x4010ae
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x458
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [eax + 4]
push esi
push edi
mov edi, dword [eax]
mov eax, dword [0x4ab618]
mov dword [ebp - 0x2c], eax
mov eax, dword [0x4ab61c]
xor esi, esi
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], esi
call fcn.004010a7
mov eax, dword [0x4ab620]
add dword [ebp - 0x14], 0x23f
mov dword [ebp - 0x28], eax
mov eax, dword [0x4ab624]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x24], 0x20
mov dword [ebp - 0xc], 2
add dword [ebp - 0xc], 3
mov eax, edi
shl eax, 4
cmp dword [0x1a9c1c4], 0xc
mov dword [ebp - 4], eax
jne 0x401130
push esi
lea eax, [ebp - 0x40]
push eax
push esi
lea eax, [ebp - 0x458]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadConsoleA]
mov eax, dword [ebp - 0x28]
add dword [ebp - 4], eax
mov eax, dword [0x1a9c1c4]
cmp eax, 0xfa9
jne 0x40114c
mov dword [0x1a9c1c0], 0xedeb2e40
cmp eax, 0x3eb
jne 0x401164
push esi
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
mov dword [0x1a9c114], esi
mov eax, dword [ebp - 0x14]
add eax, edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x18]
shr eax, 5
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x30]
add dword [ebp - 8], eax
mov eax, dword [ebp - 4]
mov dword [0x1a9c1bc], 0xf4ea3dee
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x20], esi
mov eax, dword [ebp - 0x1c]
add dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
xor dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
xor dword [ebp - 8], eax
sub ebx, dword [ebp - 8]
cmp dword [0x1a9c1c4], 0xc
mov dword [ebp - 4], eax
jne 0x4011e8
xor eax, eax
mov dword [ebp - 0x58], esi
lea edi, [ebp - 0x54]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x44]
push eax
push esi
lea eax, [ebp - 0x458]
push eax
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
lea eax, [ebp - 0x3c]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov edi, dword [ebp - 0x18]
mov eax, ebx
shl eax, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x2c]
add dword [ebp - 4], eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
add eax, ebx
mov dword [ebp - 0x1c], eax
mov eax, ebx
shr eax, cl
add eax, dword [ebp - 0x34]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x1c]
xor dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x10], esi
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 8]
xor dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
add dword [ebp - 0x14], 0x61c88647
sub edi, eax
dec dword [ebp - 0x24]
mov dword [ebp - 4], eax
mov dword [ebp - 0x18], edi
jne 0x401100
mov eax, dword [ebp + 8]
mov dword [eax], edi
pop edi
pop esi
mov dword [eax + 4], ebx
pop ebx
leave
ret 4
Function at 0x404ba7
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4aa33c]
jne 0x404bb1
repz ret
jmp fcn.0040ad86

Function at 0x40bdb4
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00404cac
and dword [ebp - 4], 0
cmp dword [0x4b49f4], 0
mov ebx, eax
jne 0x40be65
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40bf16
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40bf16
push eax
call fcn.00404c3a
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4b49f4], eax
call esi
push eax
call fcn.00404c3a
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4b49f8], eax
call esi
push eax
call fcn.00404c3a
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4b49fc], eax
call esi
push eax
call fcn.00404c3a
pop ecx
mov dword [0x4b4a04], eax
test eax, eax
je 0x40be65
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00404c3a
pop ecx
mov dword [0x4b4a00], eax
mov eax, dword [0x4b4a00]
cmp eax, ebx
je 0x40bebd
cmp dword [0x4b4a04], ebx
je 0x40bebd
push eax
call fcn.00404cb5
push dword [0x4b4a04]
mov esi, eax
call fcn.00404cb5
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40bebd
test edi, edi
je 0x40bebd
call esi
test eax, eax
je 0x40beb4
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40beb4
test byte [ebp - 0xc], 1
jne 0x40bebd
or dword [ebp + 0x10], 0x200000
jmp 0x40bef6
mov eax, dword [0x4b49f8]
cmp eax, ebx
je 0x40bef6
push eax
call fcn.00404cb5
pop ecx
test eax, eax
je 0x40bef6
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40bef6
mov eax, dword [0x4b49fc]
cmp eax, ebx
je 0x40bef6
push eax
call fcn.00404cb5
pop ecx
test eax, eax
je 0x40bef6
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4b49f4]
call fcn.00404cb5
pop ecx
test eax, eax
je 0x40bf16
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40bf18
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1001139d
Capabilities:
Accept command line arguments

Disassembly:
push 8
push 0x10011430
call fcn.1000ed82
xor edi, edi
mov eax, dword [ebp + 0xc]
cmp eax, 1
je 0x100265f7
test eax, eax
je 0x10031507
cmp eax, 2
jne 0x100116c7
push dword [0x100de7cc]
call sym.MSVCR120.dll__wexecve
pop ecx
test eax, eax
jne 0x1001141b
push 0x3bc
push 1
call sym.MSVCR120.dll__wexecve
pop ecx
pop ecx
mov esi, eax
test esi, esi
je 0x10031555
push esi
push dword [0x100de7cc]
call sym.MSVCR120.dll__wexecve
pop ecx
pop ecx
test eax, eax
je 0x10050453
push edi
push esi
call sym.MSVCR120.dll__initptd
pop ecx
pop ecx
call dword [sym.imp.kernel32.dll_GetCurrentThreadId]
mov dword [esi], eax
or dword [esi + 4], 0xffffffff
call fcn.10011398
xor eax, eax
inc eax
call fcn.1000edc7
ret
cmp eax, 3
jne 0x1001141b
push edi
call sym.MSVCR120.dll__wexecve
pop ecx
jmp 0x1001141b
call fcn.100261c8
test eax, eax
je 0x10031555
call fcn.10026580
test eax, eax
je 0x100503fe
call fcn.10026f4d
test eax, eax
js 0x10050408
call dword [sym.imp.kernel32.dll_GetCommandLineW]
mov dword [sym.MSVCR120.dll__wcmdln], eax
call sym.MSVCR120.dll__wexecve
jmp 0x100268e4
mov dword [0x100dfbbc], eax
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [sym.MSVCR120.dll__acmdln], eax
call fcn.10026c85
call fcn.10026928
test eax, eax
js 0x1003155c
push edi
call sym.MSVCR120.dll__wexecve
pop ecx
test eax, eax
jne 0x1003155c
test edi, edi
jne 0x1005040f
inc dword [0x100dfbb8]
jmp 0x1001141b
mov eax, dword [0x100dfbb8]
test eax, eax
jle 0x10031555
dec eax
mov dword [0x100dfbb8], eax
mov dword [ebp - 4], edi
cmp dword [0x100e0418], 0
je 0x10050416
call fcn.10031219
call fcn.10031260
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x10050420
mov dword [ebp - 4], 0xfffffffe
call fcn.1003154c
jmp 0x1001141b
xor eax, eax
jmp 0x10011423
xor edi, edi
inc edi
jmp 0x10026915
call fcn.1009f373
jmp 0x10031555
call fcn.100775db
jmp 0x100503fe
call fcn.1009f9c4
jmp 0x10050408
call sym.MSVCR120.dll__cexit
jmp 0x10031526
call fcn.1009f9c4
call fcn.100775db
call fcn.1009f373
jmp 0x1003153b
push esi
call sym.MSVCR120.dll__wexecve
pop ecx
jmp 0x10031555
Function at 0x1001f855
Capabilities:
Get common file path
Set current directory
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x100de7b8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
and dword [ebp - 0x21c], 0
push ebx
or ebx, 0xffffffff
push esi
lea esi, [ebp - 0x218]
test eax, eax
je 0x10051169
push edi
push eax
call dword [sym.imp.kernel32.dll_SetCurrentDirectoryW]
test eax, eax
je 0x1001f921
lea eax, [ebp - 0x218]
push eax
push 0x105
call dword [sym.imp.kernel32.dll_GetCurrentDirectoryW]
mov edi, eax
cmp edi, 0x104
jg 0x10051186
test edi, edi
je 0x1001f921
movzx eax, word [esi]
cmp eax, 0x5c
je 0x1001f919
cmp eax, 0x2f
je 0x1001f919
push 0x3d
pop eax
mov word [ebp - 0xc], ax
movzx eax, word [esi]
push eax
call sym.MSVCR120.dll__wexecve
pop ecx
push 0x3a
mov word [ebp - 0xa], ax
pop eax
mov word [ebp - 8], ax
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0xc]
push esi
push eax
call dword [sym.imp.kernel32.dll_SetEnvironmentVariableW]
test eax, eax
je 0x1001f921
xor ebx, ebx
cmp dword [ebp - 0x21c], 0
pop edi
jne 0x100511cd
mov ecx, dword [ebp - 4]
mov eax, ebx
pop esi
xor ecx, ebp
pop ebx
call fcn.10010cbc
mov esp, ebp
pop ebp
ret
cmp ax, word [esi + 2]
je 0x1001f8f7
jmp 0x1001f8c6
call dword [sym.imp.kernel32.dll_GetLastError]
jmp 0x100511c1
call sym.MSVCR120.dll___doserrno
and dword [eax], 0
call sym.MSVCR120.dll__errno
mov dword [eax], 0x16
call sym.MSVCR120.dll__invalid_parameter_noinfo
jmp 0x1001f907
lea eax, [edi + 1]
push 2
push eax
call sym.MSVCR120.dll__wexecve
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x1001f921
mov dword [ebp - 0x21c], 1
test edi, edi
je 0x1001f921
push esi
lea eax, [edi + 1]
push eax
call dword [sym.imp.kernel32.dll_GetCurrentDirectoryW]
mov edi, eax
jmp 0x1001f8b5
push eax
call sym.MSVCR120.dll__wexecve
pop ecx
jmp 0x1001f8f9
push esi
call sym.MSVCR120.dll__wexecve
pop ecx
jmp 0x1001f907

Function at 0x1001f985
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x100de7b8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp eax, 1
jl 0x1001f9d8
cmp eax, 0x1a
jg 0x1001f9d8
add eax, 0x40
mov word [ebp - 0xc], ax
push 0x3a
pop eax
mov word [ebp - 0xa], ax
xor eax, eax
mov word [ebp - 8], ax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.kernel32.dll_SetCurrentDirectoryW]
test eax, eax
je 0x100510c2
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10010cbc
mov esp, ebp
pop ebp
ret
call sym.MSVCR120.dll___doserrno
jmp 0x100510d1
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
call sym.MSVCR120.dll__wexecve
pop ecx
jmp 0x100510e7
mov dword [eax], 0xf
call sym.MSVCR120.dll__errno
mov dword [eax], 0xd
call sym.MSVCR120.dll__invalid_parameter_noinfo
or eax, 0xffffffff
jmp 0x1001f9ca

Function at 0x1002241a
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov edi, 0x811c9dc5
xor esi, esi
movzx eax, byte [esi + ecx]
xor eax, edi
imul edi, eax, 0x1000193
inc esi
cmp esi, 4
jb 0x10022426
mov eax, edi
xor edx, edx
div ebx
pop edi
pop esi
mov eax, edx
pop ebx
ret
Function at 0x10022fe7
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
push esi
push edi
push 0x800
push 0
mov esi, 0x10023094
mov ebx, ecx
push esi
call dword [sym.imp.kernel32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x10050052
mov esi, dword [sym.imp.kernel32.dll_GetProcAddress]
push 0x100230b0
push edi
call esi
mov ecx, dword [0x100def00]
push 0x100230c4
xor ecx, eax
push edi
mov dword [ebx], ecx
call esi
mov ecx, dword [0x100def00]
push 0x100230dc
xor ecx, eax
push edi
mov dword [ebx + 4], ecx
call esi
mov ecx, dword [0x100def00]
push 0x100230e8
xor ecx, eax
push edi
mov dword [ebx + 8], ecx
call esi
mov ecx, dword [0x100def00]
push 0x10023100
xor ecx, eax
push edi
mov dword [ebx + 0xc], ecx
call esi
mov ecx, dword [0x100def00]
push 0x10023114
xor ecx, eax
push edi
mov dword [ebx + 0x10], ecx
call esi
mov ecx, dword [0x100def00]
xor ecx, eax
mov dword [ebx + 0x14], ecx
pop edi
pop esi
mov eax, ebx
pop ebx
ret
mov edi, eax
test edi, edi
je 0x10023080
jmp 0x10023009
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x57
jne 0x10023080
push esi
call dword [sym.imp.kernel32.dll_LoadLibraryW]
jmp 0x10023086

Function at 0x1002541d
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0x10]
push edi
xor edi, edi
test ebx, ebx
je 0x10050778
push esi
push 0x3bc
push 1
call sym.MSVCR120.dll__wexecve
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x10050797
call sym.MSVCR120.dll__getptd
push dword [eax + 0x6c]
push esi
call sym.MSVCR120.dll__initptd
mov eax, dword [ebp + 0x14]
or dword [esi + 4], 0xffffffff
mov dword [esi + 0x58], eax
mov eax, dword [ebp + 0x1c]
mov dword [esi + 0x54], ebx
pop ecx
pop ecx
test eax, eax
jne 0x1002546f
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x18]
push esi
push 0x10025498
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_CreateThread]
test eax, eax
je 0x1005078f
pop esi
pop edi
pop ebx
pop ebp
ret
call sym.MSVCR120.dll__errno
mov dword [eax], 0x16
call sym.MSVCR120.dll__invalid_parameter_noinfo
xor eax, eax
jmp 0x1002548e
call dword [sym.imp.kernel32.dll_GetLastError]
mov edi, eax
push esi
call sym.MSVCR120.dll__wexecve
pop ecx
test edi, edi
je 0x100507a9
push edi
call sym.MSVCR120.dll__wexecve
pop ecx
xor eax, eax
jmp 0x1002548d
Function at 0x10031373
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x100313af
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x100313af
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x100313af
xor eax, eax
cmp dword [ecx + 0x74], 0xe
jbe 0x100313ae
cmp dword [ecx + 0xe8], eax
setne al
ret
xor eax, eax
ret

Function at 0x10068350
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push 0x24
mov eax, 0x100da940
call fcn.10021e72
mov ebx, ecx
mov dword [ebp - 0x30], ebx
mov edx, dword [ebx + 0x30]
lea eax, [edx + 1]
mov dword [ebx + 0x30], eax
test edx, edx
jne 0x1006846c
cmp dword [ebx + 0x1c], edx
mov ecx, dword [ebx + 0x14]
setne al
mov byte [ebp - 0x29], al
cmp dword [ebx + 0x18], edx
jne 0x1006843c
test al, al
sete al
movzx eax, al
push eax
push dword [ebx + 0x28]
push dword [ebx + 0x24]
call sym.MSVCR120.dll__wexecve
cmp byte [ebp - 0x29], 0
jne 0x10068448
call dword [sym.imp.kernel32.dll_GetCurrentThread]
mov ebx, eax
lea ecx, [ebp - 0x28]
push ebx
call sym.MSVCR120.dll__wexecve
mov edx, dword [ebp - 0x30]
lea edi, [ebp - 0x1c]
push ebx
mov cx, word [eax + 4]
mov word [edx + 0xc], cx
mov ecx, dword [eax]
mov dword [edx + 8], ecx
mov ecx, dword [edx + 0x14]
imul edx, dword [edx + 0x24], 0x34
mov eax, dword [ecx + 0x10]
movzx ecx, word [edx + eax + 0xc]
mov esi, dword [edx + eax]
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov word [ebp - 0x18], cx
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], esi
call sym.MSVCR120.dll__wexecve
mov ebx, dword [ebp - 0x30]
push ebx
mov ecx, dword [ebx + 0x14]
call sym.MSVCR120.dll__wexecve
mov edi, dword [ebx + 0x14]
lea esi, [edi + 0x20]
push esi
mov dword [ebp - 0x30], esi
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
and dword [ebp - 4], 0
mov ecx, ebx
mov eax, dword [ebx]
call dword [eax]
imul ecx, dword [ebx + 0x28], 0x34
imul edx, eax, 0x34
mov eax, dword [edi + 0x10]
push ebx
add ecx, 0xc
mov eax, dword [edx + eax + 0x30]
add ecx, eax
call sym.MSVCR120.dll__wexecve
or dword [ebp - 4], 0xffffffff
push esi
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
jmp 0x10068448
push ebx
add ecx, 0xc4
call sym.MSVCR120.dll__wexecve
mov eax, dword [ebx + 0x14]
mov eax, dword [eax + 0xc]
mov esi, dword [eax + 0x70]
push esi
call dword [sym.imp.kernel32.dll_TlsGetValue]
push ebx
push esi
mov dword [ebx + 0x20], eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
test eax, eax
jne 0x1006846c
call sym.MSVCR120.dll__wexecve
call fcn.10021eea
ret