joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10019760
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
push eax
call fcn.10019830
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0xc]
jae 0x1001981c
cmp dword [ebp - 4], 0x50000000
jb 0x1001979c
cmp dword [ebp - 4], 0x80000000
ja 0x1001979c
mov dword [ebp - 4], 0x80010000
jmp 0x10019775
push 0x1c
push 0
lea edx, [ebp - 0x20]
push edx
call fcn.10010490
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.DLL_VirtualQuery]
test eax, eax
jne 0x100197c2
jmp 0x1001981c
cmp dword [ebp - 0x10], 0x10000
jne 0x10019805
cmp dword [ebp - 0x14], 0x10000
jb 0x10019805
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.DLL_VirtualAlloc]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x100197f8
mov eax, dword [ebp - 0x24]
jmp 0x1001981e
mov eax, dword [ebp - 4]
add eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x10019817
mov ecx, dword [ebp - 0x20]
add ecx, dword [ebp - 0x14]
push ecx
call fcn.10019830
add esp, 4
mov dword [ebp - 4], eax
jmp 0x10019775
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x10019860
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.10019930
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jbe 0x10019924
cmp dword [ebp - 4], 0x50000000
jb 0x100198a1
cmp dword [ebp - 4], 0x80000000
ja 0x100198a1
mov dword [ebp - 4], 0x4fff0000
jmp 0x1001987a
push 0x1c
push 0
lea edx, [ebp - 0x20]
push edx
call fcn.10010490
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.DLL_VirtualQuery]
test eax, eax
jne 0x100198c7
jmp 0x10019924
cmp dword [ebp - 0x10], 0x10000
jne 0x1001990a
cmp dword [ebp - 0x14], 0x10000
jb 0x1001990a
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.DLL_VirtualAlloc]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x100198fd
mov eax, dword [ebp - 0x24]
jmp 0x10019926
mov eax, dword [ebp - 4]
sub eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x1001991f
mov ecx, dword [ebp - 0x1c]
sub ecx, 0x10000
push ecx
call fcn.10019930
add esp, 4
mov dword [ebp - 4], eax
jmp 0x1001987a
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x10019960
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 0xc], 0
call dword [sym.imp.KERNEL32.DLL_GetCurrentThreadId]
cmp dword [0x10029248], eax
je 0x10019985
mov eax, 0x10dd
jmp 0x10019b1d
cmp dword [0x1002924c], 0
je 0x10019998
mov eax, dword [0x1002924c]
jmp 0x10019b1d
cmp dword [ebp + 8], 0
jne 0x100199a8
mov eax, 6
jmp 0x10019b1d
mov eax, dword [ebp + 8]
cmp dword [eax], 0
jne 0x100199d1
mov dword [ebp - 0xc], 6
mov ecx, dword [ebp - 0xc]
mov dword [0x1002924c], ecx
mov edx, dword [ebp + 8]
mov dword [0x10029250], edx
mov eax, dword [ebp - 0xc]
jmp 0x10019b1d
push 0x18
call fcn.10009839
add esp, 4
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x10019a2a
mov dword [ebp - 0xc], 8
mov ecx, dword [ebp - 0xc]
mov dword [0x1002924c], ecx
cmp dword [ebp - 0x18], 0
je 0x10019a19
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x20]
push eax
call fcn.10009504
add esp, 4
mov dword [ebp - 0x18], 0
mov ecx, dword [ebp + 8]
mov dword [0x10029250], ecx
mov eax, dword [ebp - 0xc]
jmp 0x10019b1d
push 0
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
call fcn.10018380
mov dword [ebp - 0x10], eax
push 0
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.10018380
mov dword [ebp + 0xc], eax
mov edx, dword [ebp - 0x10]
movzx eax, byte [edx + 0x36]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x40]
sub edx, dword [ebp - 8]
mov dword [ebp - 4], edx
cmp dword [ebp - 8], 0
je 0x10019a6a
cmp dword [ebp - 8], 0x1e
jbe 0x10019a86
mov dword [ebp - 0xc], 9
cmp dword [0x10029240], 0
je 0x10019a81
jmp 0x100199fa
jmp 0x100199f1
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x44]
cmp ecx, dword [ebp + 0xc]
je 0x10019aad
mov dword [ebp - 0xc], 9
cmp dword [0x10029240], 0
je 0x10019aa8
jmp 0x100199fa
jmp 0x100199f1
mov dword [ebp - 0x14], 0
lea edx, [ebp - 0x14]
push edx
push 0x40
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.DLL_VirtualProtect]
test eax, eax
jne 0x10019ada
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp - 0xc], eax
jmp 0x100199f1
mov edx, dword [ebp - 0x18]
mov dword [edx + 4], 1
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp + 8]
mov dword [eax + 8], ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x10]
mov dword [edx + 0x10], eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 4]
mov dword [ecx + 0xc], edx
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
mov dword [eax + 0x14], ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [0x10029258]
mov dword [edx], eax
mov ecx, dword [ebp - 0x18]
mov dword [0x10029258], ecx
xor eax, eax
mov esp, ebp
pop ebp
ret 8
Function at 0x1001f1d0
Capabilities:
Encrypt data using rc4 prga
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x10025a60
push 0x1000ca70
mov eax, dword fs:[0]
push eax
add esp, 0xffffff8c
mov eax, dword [0x10027070]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x3c], 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 0x1001f215
mov dword [ebp - 0x1c], 0x10000
jmp 0x1001f220
mov eax, dword [ebp + 0xc]
add eax, 0x10000
mov dword [ebp - 0x1c], eax
push 0x1c
push 0
lea ecx, [ebp - 0x38]
push ecx
call fcn.10010490
add esp, 0xc
jmp 0x1001f23b
mov edx, dword [ebp - 0x38]
add edx, dword [ebp - 0x2c]
mov dword [ebp - 0x1c], edx
push 0x1c
lea eax, [ebp - 0x38]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.DLL_VirtualQueryEx]
test eax, eax
jne 0x1001f258
jmp 0x1001f377
mov eax, dword [ebp - 0x2c]
and eax, 0xfff
cmp eax, 0xfff
jne 0x1001f26c
jmp 0x1001f377
mov ecx, dword [ebp - 0x38]
add ecx, dword [ebp - 0x2c]
cmp ecx, dword [ebp - 0x1c]
jae 0x1001f27c
jmp 0x1001f377
cmp dword [ebp - 0x28], 0x1000
jne 0x1001f29d
mov edx, dword [ebp - 0x24]
and edx, 0xff
cmp edx, 1
je 0x1001f29d
mov eax, dword [ebp - 0x24]
and eax, 0x100
je 0x1001f29f
jmp 0x1001f232
mov dword [ebp - 4], 0
push 0
push 0x40
lea ecx, [ebp - 0x80]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.DLL_ReadProcessMemory]
test eax, eax
jne 0x1001f2cc
mov dword [ebp - 4], 0xfffffffe
jmp 0x1001f232
movzx ecx, word [ebp - 0x80]
cmp ecx, 0x5a4d
jne 0x1001f2e6
mov edx, dword [ebp - 0x44]
cmp edx, dword [ebp - 0x2c]
ja 0x1001f2e6
cmp dword [ebp - 0x44], 0x40
jae 0x1001f2f2
mov dword [ebp - 4], 0xfffffffe
jmp 0x1001f232
push 0
push 0xf8
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 0x1c]
add ecx, dword [ebp - 0x44]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.DLL_ReadProcessMemory]
test eax, eax
jne 0x1001f31e
mov dword [ebp - 4], 0xfffffffe
jmp 0x1001f232
mov eax, dword [ebp + 0x10]
cmp dword [eax], 0x4550
je 0x1001f335
mov dword [ebp - 4], 0xfffffffe
jmp 0x1001f232
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x84], ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x84]
jmp 0x1001f379
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 - 0x3c]
xor ecx, ebp
call fcn.100090c2
mov esp, ebp
pop ebp
ret 0xc
Function at 0x100023a0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100077bf
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x64
push ebx
push esi
push edi
xor ebx, ebx
mov esi, 0x5c
mov edi, 0x65
mov eax, 0x73
mov edx, 0x72
mov ecx, 0x61
mov dword [ebp - 0x14], ebx
mov word [ebp - 0x70], si
mov word [ebp - 0x6e], 0x52
mov word [ebp - 0x6c], di
mov word [ebp - 0x6a], 0x67
mov word [ebp - 0x68], 0x69
mov word [ebp - 0x66], ax
mov word [ebp - 0x64], 0x74
mov word [ebp - 0x62], dx
mov word [ebp - 0x60], 0x79
mov word [ebp - 0x5e], si
mov word [ebp - 0x5c], 0x4d
mov word [ebp - 0x5a], cx
mov word [ebp - 0x58], 0x63
mov word [ebp - 0x56], 0x68
mov word [ebp - 0x54], 0x69
mov word [ebp - 0x52], 0x6e
mov word [ebp - 0x50], di
mov word [ebp - 0x4e], si
mov word [ebp - 0x4c], 0x53
mov word [ebp - 0x4a], 0x6f
mov word [ebp - 0x48], 0x66
mov word [ebp - 0x46], 0x74
mov word [ebp - 0x44], 0x77
mov word [ebp - 0x42], cx
mov word [ebp - 0x40], dx
mov word [ebp - 0x3e], di
mov word [ebp - 0x3c], si
mov word [ebp - 0x3a], 0x43
mov word [ebp - 0x38], 0x6c
mov word [ebp - 0x36], cx
mov word [ebp - 0x34], ax
mov word [ebp - 0x32], ax
mov word [ebp - 0x30], di
mov word [ebp - 0x2e], ax
mov word [ebp - 0x2c], bx
test edi, edi
lea eax, [ebp - 0x70]
lea ecx, [ebp - 0x10]
push eax
call sub.MFC42u.DLL_CString::CString_1
mov dword [ebp - 4], 1
mov cl, cl
mov word [ebp - 0x28], si
mov word [ebp - 0x26], 0x54
mov word [ebp - 0x24], 0x79
mov word [ebp - 0x22], 0x70
mov word [ebp - 0x20], di
mov word [ebp - 0x1e], 0x4c
mov word [ebp - 0x1c], 0x69
mov word [ebp - 0x1a], 0x62
mov word [ebp - 0x18], si
mov word [ebp - 0x16], bx
test dl, dl
lea ecx, [ebp - 0x28]
push ecx
lea ecx, [ebp - 0x10]
call sub.MFC42u.DLL_CString::operator
test edi, edi
mov edx, dword [0x1000a2e4]
lea ecx, [ebp - 0x10]
push edx
call sub.MFC42u.DLL_CString::operator
test eax, 0x1c98
mov esi, dword [ebp + 0xc]
push esi
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
test eax, eax
jbe 0x10002523
push 0x1000a020
lea ecx, [ebp - 0x10]
call sub.MFC42u.DLL_CString::operator
nop
push esi
lea ecx, [ebp - 0x10]
call sub.MFC42u.DLL_CString::operator
mov bl, bl
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
mov ecx, esi
call sub.MFC42u.DLL_CString::CString_2
mov dword [ebp - 0x14], 1
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], bl
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x10004140
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 0xc]
mov byte [edi], 0
mov ebx, ebx
mov eax, dword [ebp + 0x10]
mov dword [eax], 0
mov ah, ah
mov esi, dword [ebp + 8]
cmp byte [esi], 0
je 0x10004168
mov dword [eax], 1
mov ebp, ebp
mov byte [ebp + 0xc], 0
test ebx, ebx
mov al, byte [esi + 1]
test al, al
je 0x1000417f
xor al, 0x38
mov byte [ebp + 0xc], al
test eax, 0x4c49
test eax, eax
mov ecx, dword [ebp + 0xc]
xor eax, eax
and ecx, 0xff
jle 0x1000419f
mov dl, byte [esi + eax + 2]
xor dl, 0x38
mov byte [eax + edi], dl
test esi, esi
inc eax
cmp eax, ecx
jl 0x1000418e
mov byte [ecx + edi], 0
test ebx, ebx
pop edi
pop esi
pop ebp
ret

Function at 0x10004570
Capabilities:
Hash data with md5

Disassembly:
xor eax, eax
mov dword [ecx], 0x67452301
mov byte [ecx + 0x68], al
mov dword [ecx + 0x14], eax
mov dword [ecx + 0x10], eax
mov dword [ecx + 4], 0xefcdab89
mov dword [ecx + 8], 0x98badcfe
mov dword [ecx + 0xc], 0x10325476
ret

Function at 0x10005dd0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10008320
push 0x100076b6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push 0x1c
lea eax, [ebp - 0x34]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x38], ecx
cmp word [ecx], 0x5a4d
jne 0x10005e6b
mov eax, dword [ecx + 0x3c]
add eax, ecx
mov dword [ebp - 0x3c], eax
cmp dword [eax], 0x4550
jne 0x10005e6b
mov edx, dword [eax + 0xd8]
lea edi, [edx + ecx]
mov esi, dword [ebp + 0xc]
cmp esi, edi
jb 0x10005e6b
mov eax, dword [eax + 0xdc]
add eax, edx
add eax, ecx
cmp esi, eax
jae 0x10005e6b
mov dword [ebp - 4], 0xffffffff
mov al, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0xffffffff
xor al, al
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10005f20
Capabilities:
Resume thread

Disassembly:
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x1000cd1c], eax
je 0x10005f36
mov eax, 0x10dd
pop ecx
ret
push ebp
push esi
mov esi, dword [0x1000cd2c]
xor ebp, ebp
cmp esi, ebp
push edi
je 0x10005f89
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0x14]
lea eax, [esp + 0xc]
push eax
xor eax, eax
mov al, byte [edx + 0x17]
push ecx
mov ecx, dword [esi + 0xc]
push eax
push ecx
call fcn.10006ee0
cmp dword [esi + 4], ebp
jne 0x10005f78
mov eax, dword [esi + 0x10]
cmp eax, ebp
je 0x10005f78
push eax
call fcn.10006000
add esp, 4
mov dword [esi + 0x10], ebp
mov edi, dword [esi]
push esi
call sub.MFC42u.DLL_operatordelete
add esp, 4
cmp edi, ebp
mov esi, edi
jne 0x10005f45
mov dword [0x1000cd2c], ebp
call fcn.10005fd0
mov esi, dword [0x1000cd28]
cmp esi, ebp
je 0x10005fbd
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ResumeThread]
mov edx, dword [esi + 4]
push edx
call ebx
mov edi, dword [esi]
push esi
call sub.MFC42u.DLL_operatordelete
add esp, 4
cmp edi, ebp
mov esi, edi
jne 0x10005fa5
pop ebx
pop edi
mov dword [0x1000cd28], ebp
mov dword [0x1000cd1c], ebp
pop esi
xor eax, eax
pop ebp
pop ecx
ret
Function at 0x100062f0
Capabilities:
Suspend thread

Disassembly:
mov eax, dword [0x1000cd20]
push esi
test eax, eax
push edi
jne 0x10006366
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov edi, dword [esp + 0xc]
cmp edi, eax
je 0x10006364
push 8
call sub.MFC42u.DLL_operatornew
mov esi, eax
add esp, 4
test esi, esi
jne 0x10006320
mov edi, 8
jmp 0x1000633d
push edi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x10006354
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov edi, eax
call sub.MFC42u.DLL_operatordelete
add esp, 4
mov dword [0x1000cd20], edi
mov eax, edi
pop edi
mov dword [0x1000cd24], 0
pop esi
ret 4
mov dword [esi + 4], edi
mov eax, dword [0x1000cd28]
mov dword [esi], eax
mov dword [0x1000cd28], esi
xor eax, eax
pop edi
pop esi
ret 4
Function at 0x100068e0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10008330
push 0x100076b6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push 0x1c
lea eax, [ebp - 0x38]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x1000696a
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x34]
cmp word [eax], 0x5a4d
jne 0x10006963
mov ecx, dword [eax + 0x3c]
add ecx, eax
mov dword [ebp - 0x3c], ecx
cmp dword [ecx], 0x4550
jne 0x10006963
cmp word [ecx + 0x14], 0
mov dword [ebp - 4], 0xffffffff
je 0x1000696a
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0xffffffff
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10006ac0
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 4]
push ebx
push esi
push edi
mov eax, dword [ecx + 0x3c]
mov edi, dword [esp + 0x14]
add eax, ecx
xor ecx, ecx
mov cx, word [eax + 0x14]
mov edx, dword [ecx + eax + 0x24]
lea ecx, [ecx + eax + 0x18]
cmp edi, edx
jae 0x10006ae8
mov eax, edi
pop edi
pop esi
pop ebx
ret
xor edx, edx
xor esi, esi
mov dx, word [eax + 6]
test edx, edx
jbe 0x10006b0c
mov eax, dword [ecx + 0xc]
cmp edi, eax
jb 0x10006b04
mov ebx, dword [ecx + 8]
add ebx, eax
cmp edi, ebx
jb 0x10006b13
add ecx, 0x28
inc esi
cmp esi, edx
jb 0x10006af4
pop edi
pop esi
or eax, 0xffffffff
pop ebx
ret
mov eax, dword [ecx + 0x14]
mov edx, dword [ecx + 0xc]
sub eax, edx
add eax, edi
pop edi
pop esi
pop ebx
ret
Function at 0x10006bf0
Capabilities:
Get common file path
Read file on windows

Disassembly:
sub esp, 0x200
push ebx
mov ebx, dword [esp + 0x208]
push ebp
mov ebp, dword [esp + 0x210]
push esi
push edi
push 0x5c
push ebx
mov dword [ebp], 0
call dword [sym.imp.MSVCRT.dll_strchr]
add esp, 8
test eax, eax
jne 0x10006c83
lea eax, [esp + 0x10]
push 0x200
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edi, 0x1000a1c4
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x10]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
jmp 0x10006ca1
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
push 0x1000a1c0
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x10006d14
mov ebx, dword [sym.imp.MSVCRT.dll_fseek]
push 2
push 0
push esi
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_ftell]
push 0
push 0
push esi
mov edi, eax
call ebx
push edi
call dword [sym.imp.MSVCRT.dll_malloc]
mov ebx, eax
add esp, 0x20
test ebx, ebx
je 0x10006cfd
push esi
push edi
push 1
push ebx
mov dword [ebp], edi
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x200
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x200
ret
Function at 0x10006dc0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
mov eax, dword [0x1000cd9c]
push esi
test eax, eax
jne 0x10006e1d
push str.ZwProtectVirtualMemory
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 5
mov esi, eax
push 0x1000cd7c
push str.ntdll.dll
push esi
call fcn.10006d30
add esp, 0x10
test eax, eax
je 0x10006e3b
add esi, 5
mov byte [0x1000cd81], 0x68
mov dword [0x1000cd82], esi
mov byte [0x1000cd86], 0xc3
mov dword [0x1000cd9c], 1
push 0x40
push 0x3000
push 0xb
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x10006e4b
or eax, 0xffffffff
pop esi
ret 0x14
mov eax, dword [0x1000cd9c]
test eax, eax
jne 0x10006e1d
or eax, 0xffffffff
pop esi
ret 0x14
mov ecx, dword [0x1000cd7c]
mov eax, esi
push edi
mov dword [eax], ecx
mov edx, dword [0x1000cd80]
mov dword [eax + 4], edx
mov cx, word [0x1000cd84]
mov word [eax + 8], cx
mov dl, byte [0x1000cd86]
mov ecx, dword [esp + 0x18]
mov byte [eax + 0xa], dl
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
push eax
mov eax, dword [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x14]
push edx
push eax
push ecx
call esi
push 0x8000
push 0
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
pop edi
pop esi
ret 0x14

Function at 0x10006ee0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x204
lea eax, [esp + 0x104]
push ebx
push ebp
push esi
push edi
push eax
call fcn.10007000
add esp, 4
lea ecx, [esp + 0x114]
push 0
push 0x80
push 3
push 0
push 1
push 0xc0000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x10006fb1
mov ebx, dword [esp + 0x220]
mov ebp, dword [esp + 0x224]
lea edx, [esp + 0x218]
lea ecx, [esp + 0x10]
mov dword [esp + 0x19], edx
push 0
push ecx
lea edx, [esp + 0x1c]
push 0x15
lea eax, [esp + 0x228]
push edx
push esi
mov dword [esp + 0x24], 0
mov byte [esp + 0x28], 1
mov dword [esp + 0x29], 0xffffffff
mov dword [esp + 0x31], eax
mov dword [esp + 0x35], ebx
mov dword [esp + 0x39], ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edi, dword [esp + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, 2
jne 0x10006fe5
mov eax, dword [esp + 0x21c]
mov ecx, dword [esp + 0x218]
push ebp
push ebx
push eax
push ecx
push 0xffffffffffffffff
call fcn.10006eb0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x204
ret 0x10
mov edx, dword [esp + 0x224]
mov eax, dword [esp + 0x220]
mov ecx, dword [esp + 0x21c]
push edx
mov edx, dword [esp + 0x21c]
push eax
push ecx
push edx
push 0xffffffffffffffff
call fcn.10006eb0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x204
ret 0x10
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x204
ret 0x10
Function at 0x402ea0
Capabilities:
Hash data using sha1

Disassembly:
mov edx, dword [esp + 4]
push edi
mov ecx, 0x27
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
mov dword [edx + 8], 0x67452301
mov dword [edx + 0xc], 0xefcdab89
mov dword [edx + 0x10], 0x98badcfe
mov dword [edx + 0x14], 0x10325476
mov dword [edx + 0x18], 0xc3d2e1f0
mov dword [edx + 4], eax
mov dword [edx], eax
pop edi
ret

Function at 0x404380
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x406698
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push esi
push edi
xor eax, eax
mov edi, ecx
mov dword [esp + 0xd], eax
mov esi, 0xfffffd72
mov cl, byte [edi + 0x28f]
mov dword [esp + 0x11], eax
mov dword [esp + 0x15], eax
shr cl, 4
mov word [esp + 0x19], ax
add cl, 0x30
mov byte [esp + 0x1b], al
mov byte [esp + 0xc], cl
lea ecx, [esp + 0xe]
lea eax, [edi + 0x290]
sub esi, edi
mov dl, byte [eax]
add ecx, 2
and dl, 0xf
add dl, 0x30
mov byte [ecx - 3], dl
mov dl, byte [eax]
shr dl, 4
add dl, 0x30
inc eax
mov byte [ecx - 2], dl
lea edx, [esi + eax]
cmp edx, 9
jl 0x4043d4
mov byte [esp + 0x1b], 0
call sub.MFC42.DLL_AfxGetEmptyString
mov eax, dword [eax]
lea ecx, [esp + 0xc]
push ecx
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], eax
call sub.MFC42.DLL_CString::operator
mov edx, dword [esp + 8]
lea ecx, [edi + 0x1a0]
push edx
mov dword [esp + 0x28], 0
call sub.MFC42.DLL_CWnd::SetWindowTextA
lea ecx, [esp + 8]
mov dword [esp + 0x24], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x20
ret

Function at 0x404a60
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x406748
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebp
push esi
push edi
mov ebp, ecx
push 0x64
push 0x16
push 0xc
mov dword [esp + 0x30], 0
call fcn.00404210
mov esi, dword [esp + 0x2c]
xor eax, eax
mov dword [esp + 0x11], eax
mov byte [esp + 0x10], 0
mov dword [esp + 0x15], eax
lea edi, [esp + 0x10]
mov word [esp + 0x19], ax
mov byte [esp + 0x1b], al
mov ecx, dword [esi - 8]
mov edx, ecx
lea eax, [ebp + 0x286]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push eax
mov ax, word [ebp + 0x28c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp + 0x288]
lea edx, [esp + 0x14]
push ecx
mov ecx, dword [ebp + 0x27c]
push edx
push eax
push ecx
call dword [sym.imp.QMSL_MSVC6R.dll_QLIB_DIAG_NV_WRITE_F]
add esp, 0x10
mov ecx, esp
mov dword [esp + 0x10], esp
push 0x4091e0
call sub.MFC42.DLL_CString::CString_2
push 0
mov ecx, ebp
call fcn.00404550
lea ecx, [esp + 0x2c]
mov dword [esp + 0x24], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebp
add esp, 0x1c
ret 4