joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10019c20
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
movaps xmm0, xmmword [0x1004a4d0]
push esi
mov esi, ecx
mov dword [ebp - 0x10], 0x1309251f
push edi
movups xmmword [ebp - 0x20], xmm0
mov dword [ebp - 0xc], 0xe1b0f0e
xor ecx, ecx
mov dword [ebp - 8], 0x141513
nop dword [eax]
mov al, byte [ebp - 0x20]
xor byte [ebp + ecx - 0x1f], al
inc ecx
cmp ecx, 0x1a
jb 0x10019c50
sub esp, 0x18
mov byte [ebp - 5], 0
mov edx, esp
mov dword [edx + 0x14], 0xf
mov dword [edx + 0x10], 0
mov byte [edx], 0
cmp byte [ebp - 0x1f], 0
jne 0x10019c81
xor ecx, ecx
jmp 0x10019c90
lea ecx, [ebp - 0x1f]
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10019c87
sub ecx, edi
push ecx
lea eax, [ebp - 0x1f]
mov ecx, edx
push eax
call fcn.10004e90
mov ecx, dword [esi]
call fcn.1000e840
add esp, 0x18
mov dword [esi + 4], eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1002af90
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10043770
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x10051018]
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 edi, ecx
mov eax, dword [edi]
mov esi, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
mov dword [0x10053594], eax
mov ebx, dword [edi]
push 4
push ebx
call esi
test eax, eax
jne 0x1002b147
push 4
add ebx, 0xe5
push ebx
call esi
test eax, eax
jne 0x1002b147
mov al, byte [ebx]
test al, al
je 0x1002b147
cmp byte [ebp + 8], 0
jne 0x1002b147
movaps xmm0, xmmword [0x1004a270]
xor ecx, ecx
movups xmmword [ebp - 0x54], xmm0
nop dword [eax]
mov al, byte [ebp - 0x54]
xor byte [ebp + ecx - 0x53], al
inc ecx
cmp ecx, 0xe
jb 0x1002b010
lea eax, [ebp - 0x53]
mov byte [ebp - 0x45], 0
push eax
lea ecx, [ebp - 0x28]
call fcn.10004560
lea eax, [ebp - 0x2b]
mov dword [ebp - 4], 0
mov word [ebp - 0x2c], 0x20
lea ecx, [ebp - 0x44]
push eax
mov byte [ebp - 0x2b], 0
call fcn.10004560
mov byte [ebp - 4], 1
mov ebx, dword [edi + 0x10]
test ebx, ebx
je 0x1002b06a
push 4
push ebx
call esi
test eax, eax
jne 0x1002b06a
lea eax, [ebp - 0x44]
mov ecx, ebx
push eax
call dword [0x1004a000]
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x30]
cmp eax, 0x10
jb 0x1002b080
inc eax
push eax
push dword [ebp - 0x44]
call fcn.10005600
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0x44]
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.10004560
mov byte [ebp - 4], 2
mov ebx, dword [edi + 0x10]
test ebx, ebx
je 0x1002b0b4
push 4
push ebx
call esi
test eax, eax
jne 0x1002b0b4
lea eax, [ebp - 0x44]
mov ecx, ebx
push eax
call dword [0x1004a044]
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x30]
cmp eax, 0x10
jb 0x1002b0ca
inc eax
push eax
push dword [ebp - 0x44]
call fcn.10005600
mov ebx, dword [edi + 0x10]
test ebx, ebx
je 0x1002b0e2
push 4
push ebx
call esi
test eax, eax
jne 0x1002b0e2
mov ecx, ebx
call dword [0x1004a008]
lea eax, [ebp - 0x2b]
mov word [ebp - 0x2c], 0x53
push eax
lea ecx, [ebp - 0x44]
mov byte [ebp - 0x2b], 0
call fcn.10004560
mov byte [ebp - 4], 3
mov ebx, dword [edi + 0x20]
test ebx, ebx
je 0x1002b118
push 4
push ebx
call esi
test eax, eax
jne 0x1002b118
lea eax, [ebp - 0x44]
mov ecx, ebx
push eax
call dword [0x1004a048]
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x30]
cmp eax, 0x10
jb 0x1002b12e
inc eax
push eax
push dword [ebp - 0x44]
call fcn.10005600
mov ecx, edi
call fcn.1002c6c0
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x1002b147
inc eax
push eax
push dword [ebp - 0x28]
call fcn.10005600
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.100406c0
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1003c720
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10044218
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x10051018]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x80], esi
mov dword [ebp - 0x84], 0
mov dword [ebp - 4], 0
lea eax, [ebp + 8]
cmp dword [ebp + 0x1c], 0x10
lea ecx, [ebp - 0x7c]
push dword [ebp + 0x18]
cmovae eax, dword [ebp + 8]
push eax
mov byte [ebp - 0x7c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0x67452301
mov dword [ebp - 0x2c], 0xefcdab89
mov dword [ebp - 0x28], 0x98badcfe
mov dword [ebp - 0x24], 0x10325476
call fcn.1003c4b0
lea ecx, [ebp - 0x7c]
call fcn.1003c560
push esi
lea ecx, [ebp - 0x7c]
call fcn.1003c650
mov ecx, dword [ebp + 0x1c]
cmp ecx, 0x10
jb 0x1003c7c7
inc ecx
push ecx
push dword [ebp + 8]
call fcn.10005600
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100406c0
mov esp, ebp
pop ebp
ret
Function at 0x1003d620
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004431e
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x10051018]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [section..data]
cmp eax, 0xffffffff
jne 0x1003d656
xor ebx, ebx
jmp 0x1003d65f
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], 0
test ebx, ebx
je 0x1003d6a1
nop dword [eax]
cmp dword [ebx + 0x18], 0
mov esi, dword [ebx + 0xc]
jne 0x1003d6e0
test esi, esi
jne 0x1003d6e4
push 0x1003cea0
push 0x10052b10
call fcn.1003cb90
mov eax, dword [section..data]
add esp, 8
cmp eax, 0xffffffff
je 0x1003d6a1
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [ebp - 4], 1
test ebx, ebx
je 0x1003d6ce
or eax, 0xffffffff
lock xadd dword [ebx + 4], eax
jne 0x1003d6ce
mov eax, dword [ebx]
mov ecx, ebx
push 0
call dword [eax]
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x1003d726
mov eax, dword [esi + 4]
mov dword [ebx + 0xc], eax
mov ecx, dword [esi]
test ecx, ecx
je 0x1003d70f
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [esi]
mov ecx, edi
push 0
mov eax, dword [edi]
call dword [eax]
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov esi, dword [ebx + 0xc]
test esi, esi
jne 0x1003d6e4
cmp dword [ebx + 0x18], 0
je 0x1003d670
mov esi, dword [ebx + 0x14]
mov esi, dword [esi]
mov ecx, dword [esi + 0x18]
test ecx, ecx
je 0x1003d74d
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x1003d74d
push eax
mov eax, dword [esi + 0x14]
push ecx
call eax
add esp, 8
push esi
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebx + 0x14]
call fcn.1003cec0
cmp dword [ebx + 0x18], 0
jne 0x1003d730
jmp 0x1003d670
Function at 0x1003d9f0
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.1003dbc0
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jbe 0x1003dacd
mov edx, dword [ebp - 4]
cmp edx, dword [0x10051004]
jb 0x1003da3a
mov eax, dword [ebp - 4]
cmp eax, dword [0x10051008]
ja 0x1003da3a
mov ecx, dword [ebp - 4]
sub ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x1003da0a
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
call sub.KERNEL32.dll_VirtualQuery
test eax, eax
jne 0x1003da5f
jmp 0x1003dacd
cmp dword [ebp - 0x14], 0x10000
jne 0x1003dab3
cmp dword [ebp - 0x18], 0x10000
jb 0x1003dab3
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call sub.KERNEL32.dll_VirtualAlloc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x1003da96
mov eax, dword [ebp - 8]
jmp 0x1003dacf
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x1003daa6
xor eax, eax
jmp 0x1003dacf
mov eax, dword [ebp - 4]
sub eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x1003dac8
mov ecx, dword [ebp - 0x20]
sub ecx, 0x10000
push ecx
call fcn.1003dbc0
add esp, 4
mov dword [ebp - 4], eax
jmp 0x1003da0a
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x1003dae0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
push eax
call fcn.1003dbf0
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0xc]
jae 0x1003dbb5
mov edx, dword [ebp - 4]
cmp edx, dword [0x10051004]
jb 0x1003db25
mov eax, dword [ebp - 4]
cmp eax, dword [0x10051008]
ja 0x1003db25
mov ecx, dword [ebp - 4]
add ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x1003daf5
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
call sub.KERNEL32.dll_VirtualQuery
test eax, eax
jne 0x1003db4a
jmp 0x1003dbb5
cmp dword [ebp - 0x14], 0x10000
jne 0x1003db9e
cmp dword [ebp - 0x18], 0x10000
jb 0x1003db9e
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call sub.KERNEL32.dll_VirtualAlloc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x1003db81
mov eax, dword [ebp - 8]
jmp 0x1003dbb7
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x1003db91
xor eax, eax
jmp 0x1003dbb7
mov eax, dword [ebp - 4]
add eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x1003dbb0
mov ecx, dword [ebp - 0x24]
add ecx, dword [ebp - 0x18]
push ecx
call fcn.1003dbf0
add esp, 4
mov dword [ebp - 4], eax
jmp 0x1003daf5
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x1003dc20
Capabilities:
Hook routines via microsoft detours

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.1003e010
add esp, 0xc
mov dword [ebp - 4], 0
cmp dword [0x10052b24], 0
jne 0x1003dc5d
cmp dword [0x10052b20], 0
je 0x1003dc5d
mov eax, dword [0x10052b20]
mov dword [0x10052b24], eax
cmp dword [0x10052b24], 0
je 0x1003dcda
mov ecx, dword [0x10052b24]
cmp dword [ecx + 8], 0
je 0x1003dcda
mov edx, dword [0x10052b24]
mov eax, dword [edx + 8]
cmp eax, dword [ebp - 0x10]
jb 0x1003dcda
mov ecx, dword [0x10052b24]
mov edx, dword [ecx + 8]
cmp edx, dword [ebp - 0xc]
ja 0x1003dcda
mov eax, dword [0x10052b24]
mov ecx, dword [eax + 8]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 0x10]
jb 0x1003dca9
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0xc]
jbe 0x1003dcb0
xor eax, eax
jmp 0x1003ddf9
mov ecx, dword [0x10052b24]
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x40]
mov dword [ecx + 8], eax
push 0x48
push 0xcc
mov ecx, dword [ebp - 4]
push ecx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov eax, dword [ebp - 4]
jmp 0x1003ddf9
mov edx, dword [0x10052b20]
mov dword [0x10052b24], edx
jmp 0x1003dcf6
mov eax, dword [0x10052b24]
mov ecx, dword [eax + 4]
mov dword [0x10052b24], ecx
cmp dword [0x10052b24], 0
je 0x1003dd36
cmp dword [0x10052b24], 0
je 0x1003dd34
mov edx, dword [0x10052b24]
cmp dword [edx + 8], 0
je 0x1003dd34
mov eax, dword [0x10052b24]
mov ecx, dword [eax + 8]
cmp ecx, dword [ebp - 0x10]
jb 0x1003dd34
mov edx, dword [0x10052b24]
mov eax, dword [edx + 8]
cmp eax, dword [ebp - 0xc]
ja 0x1003dd34
jmp 0x1003dc8e
jmp 0x1003dce8
mov ecx, dword [ebp + 8]
and ecx, 0xffff
mov edx, dword [ebp + 8]
sub edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.1003de00
add esp, 0xc
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x1003ddf7
mov eax, dword [ebp - 0x18]
mov dword [0x10052b24], eax
mov ecx, dword [0x10052b24]
mov dword [ecx], 0x52727464
mov edx, dword [0x10052b24]
mov dword [edx + 8], 0
mov eax, dword [0x10052b24]
mov ecx, dword [0x10052b20]
mov dword [eax + 4], ecx
mov edx, dword [0x10052b24]
mov dword [0x10052b20], edx
mov dword [ebp - 0x14], 0
mov eax, dword [0x10052b24]
add eax, 0x48
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0x38c
jmp 0x1003ddc7
mov ecx, dword [ebp - 8]
sub ecx, 1
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 1
jle 0x1003dde7
imul edx, dword [ebp - 8], 0x48
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x14]
mov dword [eax + edx + 0x40], ecx
imul edx, dword [ebp - 8], 0x48
add edx, dword [ebp - 4]
mov dword [ebp - 0x14], edx
jmp 0x1003ddbe
mov eax, dword [0x10052b24]
mov ecx, dword [ebp - 0x14]
mov dword [eax + 8], ecx
jmp 0x1003dc8e
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x1003eb40
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x10052b20]
mov dword [ebp - 4], eax
jmp 0x1003eb59
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
je 0x1003eb80
lea eax, [ebp - 8]
push eax
push 0x40
push 0x10000
mov ecx, dword [ebp - 4]
push ecx
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
jne 0x1003eb7e
call sub.KERNEL32.dll_GetLastError
jmp 0x1003eb82
jmp 0x1003eb50
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x1003f020
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 8], 0
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [0x10052b30], eax
je 0x1003f044
mov eax, 0x10dd
jmp 0x1003f1ec
cmp dword [0x10052b34], 0
je 0x1003f057
mov eax, dword [0x10052b34]
jmp 0x1003f1ec
cmp dword [ebp + 0xc], 0
jne 0x1003f067
mov eax, 0x57
jmp 0x1003f1ec
cmp dword [ebp + 8], 0
jne 0x1003f077
mov eax, 6
jmp 0x1003f1ec
mov eax, dword [ebp + 8]
cmp dword [eax], 0
jne 0x1003f0a0
mov dword [ebp - 8], 6
mov ecx, dword [ebp - 8]
mov dword [0x10052b34], ecx
mov edx, dword [ebp + 8]
mov dword [0x10052b38], edx
mov eax, dword [ebp - 8]
jmp 0x1003f1ec
push 0x18
call fcn.10040926
add esp, 4
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x1003f0fb
mov dword [ebp - 8], 8
mov ecx, dword [ebp - 8]
mov dword [0x10052b34], ecx
cmp dword [ebp - 4], 0
je 0x1003f0ea
mov edx, dword [ebp - 4]
mov dword [ebp - 0x20], edx
push 0x18
mov eax, dword [ebp - 0x20]
push eax
call fcn.10040c8e
add esp, 8
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 8]
mov dword [0x10052b38], ecx
mov eax, dword [ebp - 8]
jmp 0x1003f1ec
push 0
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
call fcn.1003f000
mov dword [ebp - 0x10], eax
push 0
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.1003f000
mov dword [ebp + 0xc], eax
mov edx, dword [ebp - 0x10]
movzx eax, byte [edx + 0x36]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x40]
sub edx, dword [ebp - 0xc]
mov dword [ebp - 0x14], edx
cmp dword [ebp - 0xc], 0
je 0x1003f13b
cmp dword [ebp - 0xc], 0x1e
jbe 0x1003f157
mov dword [ebp - 8], 9
cmp dword [0x10052b28], 0
je 0x1003f152
jmp 0x1003f0c9
jmp 0x1003f0c0
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x44]
cmp ecx, dword [ebp + 0xc]
je 0x1003f17e
mov dword [ebp - 8], 9
cmp dword [0x10052b28], 0
je 0x1003f179
jmp 0x1003f0c9
jmp 0x1003f0c0
mov dword [ebp - 0x18], 0
lea edx, [ebp - 0x18]
push edx
push 0x40
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
jne 0x1003f1a9
call sub.KERNEL32.dll_GetLastError
mov dword [ebp - 8], eax
jmp 0x1003f0c0
mov edx, dword [ebp - 4]
mov dword [edx + 4], 1
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov dword [eax + 8], ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
mov dword [edx + 0x10], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x14]
mov dword [ecx + 0xc], edx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x18]
mov dword [eax + 0x14], ecx
mov edx, dword [ebp - 4]
mov eax, dword [0x10052b40]
mov dword [edx], eax
mov ecx, dword [ebp - 4]
mov dword [0x10052b40], ecx
xor eax, eax
mov esp, ebp
pop ebp
ret 8
Function at 0x1003f200
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [0x10052b30], eax
je 0x1003f21d
mov eax, 0x10dd
jmp 0x1003f300
mov eax, dword [0x10052b40]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x1003f29c
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 sub.KERNEL32.dll_VirtualProtect
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
jne 0x1003f278
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x10], 0
je 0x1003f278
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x10]
push eax
call fcn.1003e0a0
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
push 0x18
mov edx, dword [ebp - 0xc]
push edx
call fcn.10040c8e
add esp, 8
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], eax
jmp 0x1003f225
mov dword [0x10052b40], 0
call fcn.1003e980
mov ecx, dword [0x10052b3c]
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0
je 0x1003f2ea
mov edx, dword [ebp - 8]
mov eax, dword [edx + 4]
push eax
call sub.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
push 8
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.10040c8e
add esp, 8
mov edx, dword [ebp - 0x18]
mov dword [ebp - 8], edx
jmp 0x1003f2b4
mov dword [0x10052b3c], 0
mov dword [0x10052b30], 0
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x1003f7e0
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [0x10052b34], 0
je 0x1003f7f9
mov eax, dword [0x10052b34]
jmp 0x1003f898
call sub.KERNEL32.dll_GetCurrentThread
cmp dword [ebp + 8], eax
jne 0x1003f80a
xor eax, eax
jmp 0x1003f898
push 8
call fcn.10040926
add esp, 4
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x1003f862
mov dword [ebp - 8], 8
cmp dword [ebp - 4], 0
je 0x1003f84b
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x10], ecx
push 8
mov edx, dword [ebp - 0x10]
push edx
call fcn.10040c8e
add esp, 8
mov dword [ebp - 4], 0
mov eax, dword [ebp - 8]
mov dword [0x10052b34], eax
mov dword [0x10052b38], 0
mov eax, dword [ebp - 8]
jmp 0x1003f898
mov ecx, dword [ebp + 8]
push ecx
call sub.KERNEL32.dll_SuspendThread
cmp eax, 0xffffffff
jne 0x1003f87a
call sub.KERNEL32.dll_GetLastError
mov dword [ebp - 8], eax
jmp 0x1003f82a
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
mov dword [edx + 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [0x10052b3c]
mov dword [ecx], edx
mov eax, dword [ebp - 4]
mov dword [0x10052b3c], eax
xor eax, eax
mov esp, ebp
pop ebp
ret 4
Function at 0x4823a1
Capabilities:
Parse pe header

Disassembly:
pushal
xor edx, edx
mov esi, dword fs:[edx]
lodsd eax, dword [esi]
cmp eax, 0xffffffff
je 0x4823b1
mov esi, eax
jmp 0x4823a7
mov edi, dword [esi + 4]
and edi, 0xffff0000
cmp word [edi], 0x5a4d
je 0x4823c9
sub edi, 0x10000
jmp 0x4823ba
mov ebx, edi
add ebx, dword [ebx + 0x3c]
cmp word [ebx], 0x4550
je 0x4823d7
jmp 0x4823ba
mov dword [esp + 0x1c], edi
popal
ret

Function at 0x4823dd
Capabilities:
Encode data using xor
Resolve function by parsing pe exports

Disassembly:
pushal
mov ebx, dword [esp + 0x24]
mov ecx, ebx
add ebx, dword [ebx + 0x3c]
mov ebx, dword [ebx + 0x78]
add ebx, ecx
mov edi, dword [ebx + 0x20]
add edi, ecx
xor esi, esi
lea edx, [edi + esi*4]
mov edx, dword [edx]
add edx, ecx
xor eax, eax
rol eax, 7
xor al, byte [edx]
inc edx
cmp byte [edx], 0
jne 0x4823fc
cmp eax, dword [esp + 0x28]
je 0x482413
inc esi
cmp esi, dword [ebx + 0x18]
jb 0x4823f3
mov edx, dword [ebx + 0x24]
add edx, ecx
movzx edx, word [edx + esi*2]
mov eax, dword [ebx + 0x1c]
add eax, ecx
mov eax, dword [eax + edx*4]
add eax, ecx
mov dword [esp + 0x1c], eax
popal
ret 8

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x408e84
nop
nop
mov ecx, 0x7561925
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43004e
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x430024
nop
mov eax, section..data
nop
nop
mov ebx, 0x42e1d0
mov ecx, 0x3cbe7166
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x430084
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
nop
cmp eax, ebx
jne 0x43006c
nop
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x413099
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 8], 0
push ebx
push esi
mov esi, dword [ebp + 0x14]
mov eax, dword [esi + 4]
mov dword [ebp - 4], eax
mov eax, dword [esi]
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
push edi
lea ebx, [ecx + eax + 0x18]
jbe 0x41317b
add ebx, 0x10
mov eax, dword [ebx]
test eax, eax
jne 0x413116
mov eax, dword [ebp + 0x10]
mov edi, dword [eax + 0x38]
test edi, edi
jle 0x413166
push dword [esi + 0x34]
mov eax, dword [ebx - 4]
add eax, dword [ebp - 4]
push 4
push 0x1000
push edi
push eax
call dword [esi + 0x1c]
test eax, eax
je 0x413185
mov edx, dword [ebx - 4]
add edx, dword [ebp - 4]
mov ecx, edi
mov dword [ebx - 8], edx
mov edi, edx
mov edx, ecx
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
jmp 0x413166
mov ecx, dword [ebx + 4]
add ecx, eax
mov eax, dword [ebp + 0xc]
push ecx
call fcn.00413081
test eax, eax
je 0x413185
push dword [esi + 0x34]
mov eax, dword [ebx - 4]
add eax, dword [ebp - 4]
push 4
push 0x1000
push dword [ebx]
push eax
call dword [esi + 0x1c]
test eax, eax
je 0x413185
mov eax, dword [ebx - 4]
mov ecx, dword [ebx]
add eax, dword [ebp - 4]
mov esi, dword [ebx + 4]
add esi, dword [ebp + 8]
mov edx, ecx
shr ecx, 2
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp + 0x14]
mov dword [ebx - 8], eax
mov eax, dword [esi]
movzx eax, word [eax + 6]
inc dword [ebp - 8]
add ebx, 0x28
cmp dword [ebp - 8], eax
jl 0x4130c6
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0x10
xor eax, eax
jmp 0x41317e