joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4071c0
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 0x40725d
push ebx
push esi
call fcn.00407189
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.004070d2
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x40720a
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40725c
push edi
push eax
call fcn.00407a38
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x40722a
call fcn.00405ce1
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40725b
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.004070d2
add esp, 0x20
test eax, eax
jne 0x407249
push edi
call fcn.00405ce1
jmp 0x407251
push ebx
call fcn.00405ce1
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 0x408144
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x40ff68
push 0x40ff60
push str.FlsAlloc
push 0x1e
call fcn.00408062
mov esi, eax
add esp, 0x10
test esi, esi
je 0x408178
push dword [ebp + 8]
mov ecx, esi
call dword [0x40e10c]
call esi
jmp 0x40817e
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4081c2
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x40ff78
push 0x40ff70
push str.FlsGetValue
push 0x20
call fcn.00408062
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4081f9
push dword [ebp + 8]
mov ecx, esi
call dword [0x40e10c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x40d0e0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40d10d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40d10d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4017cf
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40180e
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40180e
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40180e
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40180e
cmp dword [ecx + 0x74], 0xe
jbe 0x40180e
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x40b43d
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 0x40b4da
push ebx
push esi
call fcn.0040b406
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.0040b39c
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x40b487
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40b4d9
push edi
push eax
call fcn.00408260
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x40b4a7
call fcn.00407880
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40b4d8
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0040b39c
add esp, 0x20
test eax, eax
jne 0x40b4c6
push edi
call fcn.00407880
jmp 0x40b4ce
push ebx
call fcn.00407880
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 0x40fabb
Capabilities:
Get file size

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x18
mov eax, dword [eax + 0xc]
nop
shr eax, 3
test al, 1
je 0x40fad5
mov al, 1
leave
ret
mov eax, dword [ebp + 8]
push ebx
push esi
mov eax, dword [eax + 0xc]
nop
test al, 0xc0
mov eax, dword [ebp + 8]
je 0x40faec
mov ecx, dword [eax]
cmp ecx, dword [eax + 4]
je 0x40fb44
mov eax, dword [eax + 0x10]
nop
push eax
call fcn.0040bb76
mov esi, eax
pop ecx
cmp esi, 0xffffffff
je 0x40fb44
xor ebx, ebx
lea eax, [ebp - 0x10]
inc ebx
xorps xmm0, xmm0
push ebx
push eax
movlpd qword [ebp - 8], xmm0
push dword [ebp - 4]
push dword [ebp - 8]
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x40fb44
lea eax, [ebp - 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x40fb44
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x18]
jne 0x40fb3e
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x14]
je 0x40fb40
xor bl, bl
mov al, bl
jmp 0x40fb46
xor al, al
pop esi
pop ebx
leave
ret

Function at 0x4138a0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4138cd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4138cd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x5630a8
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1d4
push edi
push esi
and dword [ebp - 0x28], 0
push ebx
push 2
call dword [sym.imp.MSVCRT.dll___set_app_type]
pop ecx
push ebp
lea ebx, [ebp - 0xc]
mov dword [ebp - 0xc], 0xffffffff
push ebx
push ebx
push 0
call dword [sym.imp.WININET.dll_FtpRenameFileW]
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
xor edi, edi
sub edi, eax
mov ebx, 0xffffd074
xor edi, ebx
and dword [ebp - 0x18], edi
mov dword [ebp - 4], edi
push edi
popfd
xor ebx, ebx
xor ebx, section..rdata
neg ebx
sub edi, ebx
add edi, dword [ebp - 0x18]
mov dword [ebp - 0xc], edi
mov esi, ebp
mov ebx, 0x1a8
neg ebx
add esi, ebx
mov dword [ebp - 0x10], esi
xor ebx, ebx
or ebx, section..data
mov dword [ebp - 0x28], ebx
mov edi, dword [ebp - 0x10]
sub edi, 0xfffffff0
mov dword [ebp - 0x1c], edi
sub dword [ebp - 4], 0x30
not dword [ebp - 4]
sub dword [ebp - 4], 0xffffffff
push dword [ebp - 0x28]
push dword [ebp - 4]
push dword [ebp - 0xc]
lea eax, [ebp - 0x1a8]
push eax
call section..text
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 4]
mov edi, dword [ebp - 0x10]
add eax, dword [edi]
mov dword [ebp - 0x24], eax
mov eax, 0x40
push eax
and dword [ebp - 0x18], 0
push 0x3000
push dword [ebp - 0x24]
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 8], eax
mov dword [ebp - 0x20], 0x400000
and dword [ebp - 0x1ac], 0
jmp 0x563197
mov ebx, dword [ebp - 0x1ac]
inc ebx
mov dword [ebp - 0x1ac], ebx
mov edx, dword [ebp - 0x1c]
add edx, 8
mov dword [ebp - 0x1c], edx
mov esi, dword [ebp - 0x10]
mov eax, dword [ebp - 0x1ac]
mov edi, dword [esi + 8]
cmp eax, edi
jae 0x5631d3
push dword [ebp - 0x28]
mov ebx, dword [ebp - 0x1c]
push dword [ebx + 4]
mov esi, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x20]
add ebx, dword [esi]
push ebx
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0x18]
push eax
call section..text
mov edx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x18]
add esi, dword [edx + 4]
mov dword [ebp - 0x18], esi
jmp 0x563181
mov eax, dword [ebp - 0x20]
push eax
mov ebx, dword [ebp - 8]
mov esi, 0x1370
add ebx, esi
mov dword [ebp - 0x14], ebx
mov ecx, dword [ebp - 0x19c]
push ecx
mov edx, dword [ebp - 0x10]
mov ebx, dword [ebp - 8]
add ebx, dword [edx + 4]
push ebx
mov ebx, dword [ebp - 0x14]
push ebx
push 0x48000000
mov eax, dword [ebp - 0x14]
push eax
ret 4
Function at 0x10001780
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x10076e00
push 0x10064135
mov eax, dword fs:[0]
push eax
add esp, 0xffffffc0
mov eax, dword [0x1007c040]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x50], 0
xor eax, eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0
lea ecx, [ebp - 0x48]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
push 0x40
push 0x3000
mov edx, dword [ebp - 0x44]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x10001815
xor al, al
jmp 0x1000189e
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x50], eax
mov ecx, dword [ebp - 0x50]
mov byte [ecx], 0xc3
lea edx, [ebp - 0x20]
push edx
push 0x140
mov eax, dword [ebp - 0x44]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x10001840
xor al, al
jmp 0x1000189e
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x24]
push 0x1000188b
jmp eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.10064164
mov esp, ebp
pop ebp
ret
Function at 0x10002480
Capabilities:
Hash data using crc32b

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0x400
push 0
push 0x1007f460
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
xor ecx, ecx
mov dword [ebp - 4], ecx
push ebx
nop
xor eax, eax
test cl, 1
je 0x100024ab
bts eax, 7
shr ecx, 1
test cl, 1
je 0x100024b6
bts eax, 6
shr ecx, 1
test cl, 1
je 0x100024c1
bts eax, 5
shr ecx, 1
test cl, 1
je 0x100024cc
bts eax, 4
shr ecx, 1
test cl, 1
je 0x100024d7
bts eax, 3
shr ecx, 1
test cl, 1
je 0x100024e2
bts eax, 2
shr ecx, 1
test cl, 1
je 0x100024ed
bts eax, 1
test cl, 2
je 0x100024f6
bts eax, 0
shl eax, 0x18
mov ecx, eax
add eax, eax
sar ecx, 0x1f
and ecx, 0x4c11db7
xor ecx, eax
mov edx, ecx
sar edx, 0x1f
and edx, 0x4c11db7
lea eax, [ecx + ecx]
xor edx, eax
mov ecx, edx
sar ecx, 0x1f
and ecx, 0x4c11db7
lea eax, [edx + edx]
xor ecx, eax
mov edx, ecx
sar edx, 0x1f
and edx, 0x4c11db7
lea eax, [ecx + ecx]
xor edx, eax
mov ecx, edx
sar ecx, 0x1f
and ecx, 0x4c11db7
lea eax, [edx + edx]
xor ecx, eax
mov edx, ecx
sar edx, 0x1f
and edx, 0x4c11db7
lea eax, [ecx + ecx]
xor edx, eax
mov ecx, edx
sar ecx, 0x1f
and ecx, 0x4c11db7
lea eax, [edx + edx]
xor ecx, eax
mov ebx, ecx
sar ebx, 0x1f
and ebx, 0x4c11db7
lea eax, [ecx + ecx]
xor ebx, eax
xor edx, edx
lea ecx, [edx + 1]
nop dword [eax]
test bl, 1
je 0x1000258f
mov eax, 0x20
sub eax, ecx
bts edx, eax
inc ecx
shr ebx, 1
cmp ecx, 0x21
jl 0x10002580
mov ecx, dword [ebp - 4]
mov dword [ecx*4 + 0x1007f460], edx
inc ecx
mov dword [ebp - 4], ecx
cmp ecx, 0xff
jle 0x100024a0
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x100025c0
Capabilities:
Encode data using xor
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
mov eax, dword [0x1007c040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push 0x1006a834
push eax
lea eax, [ebp - 0x408]
mov dword [ebp - 0x408], 0
push eax
or ebx, 0xffffffff
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen_s]
add esp, 0xc
test eax, eax
jne 0x1000269b
mov eax, dword [ebp - 0x408]
test eax, eax
je 0x1000269b
push eax
push 0x400
lea eax, [ebp - 0x404]
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov edx, eax
add esp, 0x10
test edx, edx
je 0x10002677
push esi
push edi
lea esi, [ebp - 0x404]
movzx eax, byte [esi]
lea esi, [esi + 1]
movzx ecx, bl
xor ecx, eax
shr ebx, 8
xor ebx, dword [ecx*4 + 0x1007f460]
mov edi, ebx
sub edx, 1
jne 0x10002636
push dword [ebp - 0x408]
lea eax, [ebp - 0x404]
push 0x400
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x10002630
pop edi
pop esi
push dword [ebp - 0x408]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
not ebx
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10064164
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
xor ecx, ebp
pop ebx
call fcn.10064164
mov esp, ebp
pop ebp
ret 4
Function at 0x10006ea0
Capabilities:
Create thread
Encode data using xor
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
call fcn.10002480
call fcn.10001d70
test al, al
je 0x10006f2a
movaps xmm0, xmmword [0x10074dd0]
xor ecx, ecx
movups xmmword [ebp - 0x14], xmm0
mov word [ebp - 4], 0x40a
mov byte [ebp - 2], 0
nop dword [eax + eax]
mov al, byte [ebp - 0x14]
xor byte [ebp + ecx - 0x13], al
inc ecx
cmp ecx, 0x11
jb 0x10006ed0
lea eax, [ebp - 0x13]
mov byte [ebp - 2], 0
push eax
call fcn.100025c0
cmp eax, 0xba2d38a3
jne 0x10006f2a
movaps xmm0, xmmword [str._kN_N]
xor ecx, ecx
movups xmmword [ebp - 0x14], xmm0
nop
mov al, byte [ebp - 0x14]
xor byte [ebp + ecx - 0x13], al
inc ecx
cmp ecx, 0xe
jb 0x10006f00
lea eax, [ebp - 0x13]
mov byte [ebp - 5], 0
push eax
call fcn.100025c0
cmp eax, 0x27b35bb1
jne 0x10006f2a
call fcn.10002200
test al, al
jne 0x10006fa5
push ebx
push esi
push edi
call fcn.10013310
call dword [sym.imp.KERNEL32.dll_GetTickCount64]
mov esi, dword [sym.imp.KERNEL32.dll_CreateThread]
push 0
push 0
push 0
push 0x10006760
push 0
push 0
mov dword [0x1007f870], eax
mov dword [0x1007f874], edx
mov dword [0x1007f878], eax
mov dword [0x1007f87c], edx
call esi
mov ebx, eax
test ebx, ebx
je 0x10006fa5
push 0
push 0
push 0
push 0x10006a50
push 0
push 0
call esi
mov edi, eax
test edi, edi
je 0x10006fa5
mov esi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x64
push ebx
call esi
push 0x64
push edi
call esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call esi
push edi
call esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 1
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
Function at 0x1000d310
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10066392
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x170
mov eax, dword [0x1007c040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
mov dword [ebp - 0x160], esi
mov dword [ebp - 0x180], esi
lea ecx, [ebp - 0x15f]
mov dword [ebp - 0x160], 1
lea edx, [ecx + 1]
xorps xmm0, xmm0
mov word [ebp - 0x160], 0xd
movups xmmword [esi], xmm0
mov byte [ebp - 0x15f], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1000d398
sub ecx, edx
lea eax, [ebp - 0x15f]
push ecx
push eax
mov ecx, esi
call fcn.100051a0
mov dword [ebp - 4], 0
mov dword [ebp - 0x160], 1
test edi, edi
je 0x1000d516
movaps xmm0, xmmword [0x10075830]
xor ecx, ecx
movups xmmword [ebp - 0x17c], xmm0
mov dword [ebp - 0x16c], 0x777f3f77
mov dword [ebp - 0x168], 0x1a777236
mov dword [ebp - 0x164], 0x1f7768
nop word [eax + eax]
mov al, byte [ebp - 0x17c]
xor byte [ebp + ecx - 0x17b], al
inc ecx
cmp ecx, 0x1a
jb 0x1000d400
xorps xmm0, xmm0
mov byte [ebp - 0x161], 0
lea ecx, [ebp - 0x17b]
mov dword [ebp - 0x128], 0
movups xmmword [ebp - 0x138], xmm0
mov dword [ebp - 0x124], 0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1000d441
sub ecx, edx
lea eax, [ebp - 0x17b]
push ecx
push eax
lea ecx, [ebp - 0x138]
call fcn.100051a0
lea eax, [ebp - 0x120]
mov dword [ebp - 4], 1
push eax
lea eax, [ebp - 0x15c]
mov dword [ebp - 0x120], edi
push eax
mov dword [ebp - 0x11c], 0
call dword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__localtime64_s]
cmp dword [ebp - 0x124], 0xf
lea ecx, [ebp - 0x15c]
push ecx
lea eax, [ebp - 0x138]
cmova eax, dword [ebp - 0x138]
push eax
lea eax, [ebp - 0x118]
push 0x100
push eax
call dword [sym.imp.api_ms_win_crt_time_l1_1_0.dll_strftime]
lea ecx, [ebp - 0x118]
add esp, 0x18
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1000d4c2
sub ecx, edx
lea eax, [ebp - 0x118]
push ecx
push eax
mov ecx, esi
call fcn.10004eb0
mov ecx, dword [ebp - 0x124]
cmp ecx, 0xf
jbe 0x1000d516
mov edx, dword [ebp - 0x138]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1000d50c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1000d50c
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.100641c5
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.10064164
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x100103e0
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
mov eax, dword [0x1007c040]
xor eax, esp
mov dword [esp + 0x18], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
jne 0x1001042a
mov dword [edi], 0
mov eax, edi
mov dword [edi + 4], 0
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.10064164
mov esp, ebp
pop ebp
ret
cmp dword [esp + 0x1c], 0
jg 0x1001043a
jl 0x10010409
cmp dword [esp + 0x18], 0
jbe 0x10010409
mov ebx, dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
lea eax, [esp + 0x10]
push eax
xor esi, esi
call ebx
test eax, eax
jne 0x10010461
nop dword [eax]
inc esi
cmp esi, 3
ja 0x10010409
lea eax, [esp + 0x10]
push eax
call ebx
test eax, eax
je 0x10010450
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
call fcn.10064f70
mulsd xmm0, qword [0x10074728]
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
movsd qword [esp + 0x10], xmm0
call fcn.10064f70
movsd xmm1, qword [esp + 0x10]
divsd xmm1, xmm0
movaps xmm0, xmm1
call fcn.10064e70
mov ecx, dword [esp + 0x24]
mov dword [edi], eax
mov eax, edi
mov dword [edi + 4], edx
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10064164
mov esp, ebp
pop ebp
ret

Function at 0x10010870
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
mov eax, 1
mov dword [0x1007c0ec], edx
mov ecx, edx
shr ecx, 0x1e
xor ecx, edx
imul edx, ecx, 0x6c078965
add edx, eax
mov dword [eax*4 + 0x1007c0ec], edx
inc eax
cmp eax, 0x270
jb 0x10010881
mov dword [0x1007c0e8], 0x270
pop ebp
ret 8
Function at 0x100108b0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
push edi
mov dword [ebp - 4], esi
mov eax, dword [esi]
cmp eax, 0x270
jne 0x1001090d
lea edx, [esi + 8]
mov edi, eax
nop dword [eax]
mov ecx, dword [edx]
lea edx, [edx + 4]
xor ecx, dword [edx - 8]
and ecx, 0x7fffffff
xor ecx, dword [edx - 8]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edx + 0x62c]
xor eax, ecx
mov dword [edx + 0x9b8], eax
sub edi, 1
jne 0x100108d0
mov eax, dword [esi]
jmp 0x100109eb
cmp eax, 0x4e0
jb 0x100109eb
lea edi, [esi + 0x9c4]
mov esi, 0xe3
push ebx
mov ebx, dword [edi]
lea edx, [edi]
mov eax, ebx
mov ebx, dword [edx + 4]
lea edi, [edx + 4]
mov ecx, ebx
xor ecx, eax
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edx + 0x634]
xor eax, ecx
mov dword [edx - 0x9c0], eax
sub esi, 1
jne 0x10010926
mov edi, dword [ebp - 4]
mov esi, 0x18c
add edi, 0xd50
mov ebx, dword [edi]
mov eax, ebx
lea edx, [edi]
mov ebx, dword [edx + 4]
lea edi, [edx + 4]
mov ecx, eax
xor ecx, ebx
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edx - 0xd4c]
xor eax, ecx
mov dword [edx - 0x9c0], eax
sub esi, 1
jne 0x10010971
mov esi, dword [ebp - 4]
pop ebx
mov eax, dword [esi + 0x1380]
mov ecx, dword [esi + 4]
xor ecx, eax
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [esi + 0x634]
xor eax, ecx
mov dword [esi + 0x9c0], eax
xor eax, eax
mov dword [esi], 0
mov edx, dword [esi + eax*4 + 4]
inc eax
mov dword [esi], eax
mov ecx, edx
mov eax, dword [esi + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
pop edi
xor eax, edx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10011870
Capabilities:
Encode data using xor
Encrypt data using rc4 via winapi
Hash data using sha1
Hash data using sha1 via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
movaps xmm0, xmmword [0x10074e50]
xor ecx, ecx
movups xmmword [ebp - 0x34], xmm0
push esi
movaps xmm0, xmmword [0x10074d70]
movups xmmword [ebp - 0x24], xmm0
movaps xmm0, xmmword [0x10074870]
movups xmmword [ebp - 0x14], xmm0
nop word [eax + eax]
mov al, byte [ebp - 0x34]
xor byte [ebp + ecx - 0x33], al
inc ecx
cmp ecx, 0x2e
jb 0x100118a0
push 0
push 1
lea eax, [ebp - 0x33]
mov byte [ebp - 5], 0
push eax
push 0
push 0x1007f8c4
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x1001198c
push 0x1007f8c0
push 0
push 0
push 0x8004
push dword [0x1007f8c4]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x1001198c
movaps xmm0, xmmword [0x100753e0]
xor ecx, ecx
movups xmmword [ebp - 0x40], xmm0
mov dword [ebp - 0x10], 0x4d154344
movaps xmm0, xmmword [str.uscBsV]
movups xmmword [ebp - 0x30], xmm0
mov dword [ebp - 0xc], 0x47115765
movaps xmm0, xmmword [0x10074b50]
movups xmmword [ebp - 0x20], xmm0
mov dword [ebp - 8], 0x4555f70
mov word [ebp - 4], 0x58
nop
mov al, byte [ebp - 0x40]
xor byte [ebp + ecx - 0x3f], al
inc ecx
cmp ecx, 0x3c
jb 0x10011930
push 1
push 0x3c
lea eax, [ebp - 0x3f]
mov byte [ebp - 3], 0
push eax
push dword [0x1007f8c0]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x1001198c
push 0x1007f8bc
push 0x800000
push dword [0x1007f8c0]
push 0x6801
push dword [0x1007f8c4]
call dword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
test eax, eax
jne 0x1001198c
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [0x1007f8b8], eax
call fcn.10062d80
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentThread]
call esi
push eax
call fcn.10063250
push 0x10011730
push 0x1007f8b4
call fcn.10062a90
call fcn.10062de0
push 4
push 0x60f6e0
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x100119fa
mov dword [0x1007f8b4], 0x60f6e0
call fcn.10062d80
call esi
push eax
call fcn.10063250
push 0x10011730
push 0x1007f8b4
call fcn.10062600
call fcn.10062de0
call fcn.10062d80
call esi
push eax
call fcn.10063250
push 0x10011760
push 0x1007f8b0
call fcn.10062a90
call fcn.10062de0
push 4
push 0x60eab0
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x10011a57
mov dword [0x1007f8b0], 0x60eab0
call fcn.10062d80
call esi
push eax
call fcn.10063250
push 0x10011760
push 0x1007f8b0
call fcn.10062600
call fcn.10062de0
pop esi
mov esp, ebp
pop ebp
ret