joyce8/EMBER2024-capa huggingface dataset:
Function at 0x30041306
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14c
mov eax, dword [section..cdata]
xor eax, ebp
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x148], 0
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x32]
push ecx
lea edx, [ebp - 0x34]
push edx
lea eax, [ebp - 0x36]
push eax
lea ecx, [ebp - 0x38]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 8]
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 8]
mov edx, dword [eax]
mov eax, dword [edx + 0xc]
call eax
mov dword [ebp - 0x14c], eax
cmp dword [ebp - 0x14c], 0
je 0x3004138b
mov ecx, dword [ebp - 0x14c]
push ecx
push 0x30006708
push 4
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x14]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x14]
mov eax, dword [eax]
push edx
mov ecx, dword [eax + 4]
call ecx
add esp, 0x10
mov eax, dword [ebp - 0x14c]
jmp 0x300414d9
mov edx, dword [ebp + 8]
mov al, byte [edx + 0x44]
mov byte [ebp - 0x31], al
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x34]
mov dword [ebp - 0x30], edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x38]
mov dword [ebp - 0x2c], ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x40]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x30]
mov dword [ebp - 0x24], edx
mov eax, dword [ebp + 8]
mov cx, word [eax + 0x46]
mov word [ebp - 0x1c], cx
mov word [ebp - 0x1a], 0
push 0x80
lea edx, [ebp - 0x140]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
mov edx, dword [ebp + 8]
mov eax, dword [edx + 8]
mov edx, dword [ecx]
mov ecx, eax
mov eax, dword [edx + 0x28]
call eax
mov dword [ebp - 0x14c], eax
cmp dword [ebp - 0x14c], 0
je 0x30041429
mov ecx, dword [ebp - 0x14c]
push ecx
push 0x300066d8
push 4
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x14]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x14]
mov eax, dword [eax]
push edx
mov ecx, dword [eax + 4]
call ecx
add esp, 0x10
mov eax, dword [ebp - 0x14c]
jmp 0x300414d9
lea edx, [ebp - 0x140]
push edx
call fcn.30048194
lea eax, [eax + eax + 2]
mov dword [ebp - 0x144], eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x144]
cmp edx, dword [ecx + 0x1c]
je 0x3004146e
mov eax, 1
test eax, eax
je 0x30041467
push 0x300064f0
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call dword [sym.imp.KERNEL32.dll_DebugBreak]
mov eax, 0x80070057
jmp 0x300414d9
lea ecx, [ebp - 0x148]
push ecx
lea edx, [ebp - 0x140]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.3003f5f6
mov dword [ebp - 0x14c], eax
cmp dword [ebp - 0x14c], 0
je 0x300414a0
mov eax, dword [ebp - 0x14c]
jmp 0x300414d9
mov edx, dword [ebp - 0x148]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x18], 0x38
je 0x300414c3
push 0x300064f0
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call dword [sym.imp.KERNEL32.dll_DebugBreak]
push 0x38
lea ecx, [ebp - 0x38]
push ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x14]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.3003f151
mov ecx, dword [ebp - 0x3c]
xor ecx, ebp
call fcn.30062195
mov esp, ebp
pop ebp
ret 8
Function at 0x30041b55
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 0x24], 0x504d444d
mov dword [ebp - 0x20], 0x6501a793
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0xc]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x6c]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x18]
xor edx, edx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 8]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
mov edx, dword [edx]
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x30041bda
mov ecx, dword [ebp - 4]
push ecx
push 0x3000679c
push 4
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x14]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x14]
mov eax, dword [eax]
push edx
mov ecx, dword [eax + 4]
call ecx
add esp, 0x10
mov eax, dword [ebp - 4]
jmp 0x30041c0a
mov edx, dword [ebp + 0xc]
cmp dword [edx + 8], 0x20
je 0x30041bf4
push 0x300064f0
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call dword [sym.imp.KERNEL32.dll_DebugBreak]
push 0x20
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 4]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.3003f151
mov esp, ebp
pop ebp
ret 8

Function at 0x30042079
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0xc]
mov edx, dword [eax + 0x68]
cmp edx, dword [ecx + 0x70]
je 0x300420a0
push 0x300064f0
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call dword [sym.imp.KERNEL32.dll_DebugBreak]
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x6c]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
sub edx, 4
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
xor edx, edx
mov ecx, 0x10
div ecx
test edx, edx
je 0x300420d3
push 0x300064f0
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call dword [sym.imp.KERNEL32.dll_DebugBreak]
mov edx, dword [ebp - 4]
shr edx, 4
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
mov dword [ebp - 0x10], eax
push 4
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x68]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.3003f151
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x30042106
mov eax, dword [ebp - 0xc]
jmp 0x30042117
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x70]
add eax, 4
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 0x70], eax
xor eax, eax
mov esp, ebp
pop ebp
ret 8
Function at 0x30043cad
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xa0
mov eax, dword [section..cdata]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0xa0], 0x94
lea eax, [ebp - 0xa0]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x30043d11
cmp dword [ebp - 0x90], 2
jne 0x30043d11
cmp dword [ebp - 0x9c], 6
ja 0x30043cf8
cmp dword [ebp - 0x9c], 6
jne 0x30043d11
cmp dword [ebp - 0x94], 0x13ba
jb 0x30043d11
push 0x30006cd4
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
jmp 0x30043d13
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.30062195
mov esp, ebp
pop ebp
ret
Function at 0x3004a993
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
cmp dword [eax + 0x50], 1
jne 0x3004aab3
push 0x30007a08
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x54], eax
mov edx, dword [ebp - 4]
cmp dword [edx + 0x54], 0
jne 0x3004aa19
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x3004aa04
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jg 0x3004a9e4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
jmp 0x3004a9fc
call dword [sym.imp.KERNEL32.dll_GetLastError]
and eax, 0xffff
or eax, 0x70000
or eax, 0x80000000
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0xc], eax
jmp 0x3004aa0b
mov dword [ebp - 0xc], 0x80004005
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0xc]
mov dword [ecx + 0x50], edx
jmp 0x3004aab3
push 0x300079f0
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x54]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, dword [ebp - 4]
mov dword [edx + 0x58], eax
push 0x300079d8
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x54]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, dword [ebp - 4]
mov dword [edx + 0x5c], eax
push 0x300079c4
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x54]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, dword [ebp - 4]
mov dword [edx + 0x60], eax
push 0x300079b0
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x54]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, dword [ebp - 4]
mov dword [edx + 0x64], eax
push 0x300079a0
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x54]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, dword [ebp - 4]
mov dword [edx + 0x68], eax
push 0x30007990
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x54]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, dword [ebp - 4]
mov dword [edx + 0x6c], eax
mov eax, dword [ebp - 4]
mov dword [eax + 0x50], 0
mov ecx, dword [ebp - 4]
mov eax, dword [ecx + 0x50]
mov esp, ebp
pop ebp
ret
Function at 0x3004b2ac
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x30062788
push 0x3006251e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x1c], 0
cmp dword [ebp + 8], 0
je 0x3004b392
cmp dword [ebp + 8], 0xffffffff
je 0x3004b392
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
movzx ecx, word [eax]
cmp ecx, 0x5a4d
jne 0x3004b372
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 8]
add eax, dword [edx + 0x3c]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
cmp dword [ecx], 0x4550
jne 0x3004b338
mov edx, dword [ebp - 0x1c]
movzx eax, word [edx + 0x18]
cmp eax, 0x10b
je 0x3004b341
mov ecx, dword [ebp - 0x1c]
movzx edx, word [ecx + 0x18]
cmp edx, 0x20b
je 0x3004b341
mov dword [ebp - 0x1c], 0
jmp 0x3004b372
cmp dword [ebp + 0xc], 0
je 0x3004b372
mov eax, dword [ebp - 0x1c]
movzx ecx, word [eax + 0x18]
cmp ecx, 0x10b
jne 0x3004b365
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0x1c]
push eax
call fcn.3004b0a4
jmp 0x3004b372
mov ecx, 0x42
mov esi, dword [ebp - 0x1c]
mov edi, dword [ebp + 0xc]
rep movsd dword es:[edi], dword [esi]
mov dword [ebp - 4], 0xffffffff
jmp 0x3004b392
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x3004b3a8
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
movzx ecx, word [eax + 0x14]
mov edx, dword [ebp + 8]
lea eax, [edx + ecx + 0x18]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0
jmp 0x3004b3d3
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
mov edx, dword [ebp + 8]
movzx eax, word [edx + 6]
cmp dword [ebp - 8], eax
jae 0x3004b40b
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0x10]
cmp edx, dword [ecx + 0xc]
jb 0x3004b400
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xc]
mov edx, dword [ebp - 4]
add ecx, dword [edx + 0x10]
cmp dword [ebp + 0x10], ecx
jae 0x3004b400
mov eax, dword [ebp - 4]
jmp 0x3004b40d
mov eax, dword [ebp - 4]
add eax, 0x28
mov dword [ebp - 4], eax
jmp 0x3004b3ca
xor eax, eax
mov esp, ebp
pop ebp
ret 0xc
Function at 0x3004b801
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xe4
mov eax, dword [section..cdata]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
cmp dword [0x300a329c], 0
je 0x3004b82b
mov eax, 1
jmp 0x3004b994
push 0x30003388
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x3004b850
push 0x300064f0
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call dword [sym.imp.KERNEL32.dll_DebugBreak]
cmp dword [ebp - 4], 0
jne 0x3004b85d
xor eax, eax
jmp 0x3004b994
mov eax, dword [ebp - 4]
push eax
call fcn.3004b7ca
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x3004b880
push 0x300064f0
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call dword [sym.imp.KERNEL32.dll_DebugBreak]
push 0x30007b28
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0xe4], eax
cmp dword [ebp - 0xe4], 0
jne 0x3004b8a5
xor eax, eax
jmp 0x3004b994
mov edx, dword [ebp - 0xe4]
cmp edx, dword [ebp - 4]
jb 0x3004b8be
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0xc]
cmp dword [ebp - 0xe4], eax
jbe 0x3004b8cd
mov ecx, dword [ebp - 0xe4]
mov edx, dword [ecx + 1]
mov dword [ebp - 0xe4], edx
mov eax, dword [ebp - 0xe4]
cmp eax, dword [ebp - 4]
jb 0x3004b8e6
mov ecx, dword [ebp - 4]
add ecx, dword [ebp - 0xc]
cmp dword [ebp - 0xe4], ecx
jbe 0x3004b8ed
xor eax, eax
jmp 0x3004b994
mov ecx, 0x32
mov esi, dword [ebp - 0xe4]
lea edi, [ebp - 0xd8]
rep movsd dword es:[edi], dword [esi]
mov dword [ebp - 8], 0
jmp 0x3004b912
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
cmp dword [ebp - 8], 2
jae 0x3004b97b
lea eax, [ebp - 0xe0]
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx*8 + 0x30065bbc]
push edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax*8 + 0x30065bb8]
push ecx
mov edx, dword [ebp - 0xe4]
push edx
lea eax, [ebp - 0xd8]
push eax
call fcn.3004b761
mov dword [ebp - 0xdc], eax
cmp dword [ebp - 0xdc], 0
je 0x3004b909
mov ecx, dword [ebp - 0xe0]
cmp ecx, dword [ebp - 4]
jbe 0x3004b909
mov edx, dword [ebp - 4]
add edx, dword [ebp - 0xc]
cmp dword [ebp - 0xe0], edx
jae 0x3004b909
mov eax, dword [ebp - 0xe0]
mov dword [0x300a329c], eax
cmp dword [ebp - 0xdc], 0
jne 0x3004b98e
mov dword [0x300a329c], 0
mov eax, dword [ebp - 0xdc]
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.30062195
mov esp, ebp
pop ebp
ret
Function at 0x3004ba3d
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x30062798
push 0x3006251e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
cmp dword [0x300a329c], 0
jne 0x3004ba7f
push 0x300064f0
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call dword [sym.imp.KERNEL32.dll_DebugBreak]
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.3004ba0a
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x3004ba99
xor eax, eax
jmp 0x3004baeb
mov dword [ebp - 4], 0
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.3004ba1f
push eax
call dword [0x300a329c]
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], 0xffffffff
jmp 0x3004badb
cmp dword [ebp - 0x20], 0xffffffff
jne 0x3004bae8
mov dword [ebp - 0x20], 0
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x3004bb05
Capabilities:
Create thread
Resume thread
Suspend thread
Terminate thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x300627a8
push 0x3006251e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xfffffa40
mov eax, dword [section..cdata]
xor eax, ebp
mov dword [ebp - 0x28], eax
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x2fc], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
lea eax, [ebp - 0x24]
push eax
push 0
push 0
push 0x3004bafe
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x3004bb79
xor eax, eax
jmp 0x3004bcb6
mov ecx, dword [ebp - 0x24]
push ecx
push 0
push 0x1f03ff
mov edx, dword [ebp + 8]
push edx
call fcn.3004ba3d
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x3004bba5
mov dword [ebp - 0x300], 0
jmp 0x3004bc6e
mov dword [ebp - 0x300], 1
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_SuspendThread]
mov dword [ebp - 0x2fc], eax
cmp dword [ebp - 0x2fc], 0xffffffff
jne 0x3004bbdb
mov dword [ebp - 0x300], 0
jmp 0x3004bc4b
mov dword [ebp - 0x5d0], 0x10007
lea ecx, [ebp - 0x5d0]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
mov dword [ebp - 0x300], eax
cmp dword [ebp - 0x300], 0
jne 0x3004bc07
jmp 0x3004bc4b
mov dword [ebp - 0x2f8], 0x10007
lea eax, [ebp - 0x2f8]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
mov dword [ebp - 0x300], eax
cmp dword [ebp - 0x300], 0
jne 0x3004bc33
jmp 0x3004bc4b
mov edx, dword [ebp - 0x518]
cmp edx, dword [ebp - 0x240]
je 0x3004bc4b
mov dword [ebp - 0x300], 0
mov dword [ebp - 4], 0xffffffff
jmp 0x3004bc6e
cmp dword [ebp - 0x2fc], 0
jle 0x3004bc81
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push 0xdead
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
cmp dword [ebp - 0x20], 0
je 0x3004bca0
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x1c], 0
je 0x3004bcb0
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x300]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x28]
xor ecx, ebp
call fcn.30062195
mov esp, ebp
pop ebp
ret 4
Function at 0x3004dcd9
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
test eax, 3
je 0x3004dd0d
cmp byte [eax], 0
je 0x3004dd51
lea eax, [eax + 1]
test eax, 3
je 0x3004dd0d
cmp byte [eax], 0
je 0x3004dd51
lea eax, [eax + 1]
test eax, 3
je 0x3004dd0d
cmp byte [eax], 0
je 0x3004dd51
lea eax, [eax + 1]
mov edx, dword [eax]
lea eax, [eax + 4]
mov ecx, edx
sub edx, 0x1010101
xor edx, ecx
and edx, 0x80808080
je 0x3004dd0d
test cl, cl
lea eax, [eax - 4]
je 0x3004dd51
test ecx, 0xff00
lea eax, [eax + 1]
je 0x3004dd51
test ecx, 0xff0000
lea eax, [eax + 1]
je 0x3004dd51
test ecx, 0xff000000
lea eax, [eax + 1]
je 0x3004dd51
lea eax, [eax + 1]
jmp 0x3004dd0d
sub eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 4

Function at 0x3004dd60
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
test eax, 3
je 0x3004dd87
cmp word [eax], 0
je 0x3004dd80
lea eax, [eax + 2]
test eax, 3
je 0x3004dd87
jmp 0x3004dd6e
sub eax, dword [ebp + 8]
shr eax, 1
jmp 0x3004ddc2
mov edx, dword [eax]
lea eax, [eax + 4]
mov ecx, edx
sub edx, 0x10001
xor edx, ecx
and edx, 0x80008000
je 0x3004dd87
sub eax, dword [ebp + 8]
shr eax, 1
test cx, cx
lea eax, [eax - 2]
je 0x3004ddc2
test ecx, 0xffff0000
lea eax, [eax + 1]
je 0x3004ddc2
lea eax, [eax*2 + 2]
add eax, dword [ebp + 8]
jmp 0x3004dd87
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 4
Function at 0x300521be
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov ecx, dword [0x30065bd4]
mov eax, dword [esp + 4]
push ebp
push esi
push edi
mov edi, dword [esp + 0x14]
add edi, 1
push ecx
and edi, 0xfffffffe
mov dword [eax], 0
call sub.KERNEL32.dll_TlsGetValue
mov ebp, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x30052251
push 1
push 0x2000
push 0x10000
push 0
call ebp
mov esi, eax
test esi, esi
je 0x30052223
push 4
push 0x1000
push 0x1000
push esi
call ebp
test eax, eax
jne 0x30052236
push 0x8000
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
push 0xe004000e
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
xor eax, eax
pop ebp
ret 8
mov edx, dword [0x30065bd4]
push esi
push edx
call sub.KERNEL32.dll_TlsSetValue
lea eax, [esi + 0x1000]
lea ecx, [esi + 8]
mov dword [esi + 4], eax
mov dword [esi], ecx
mov edx, dword [esi]
mov eax, dword [esi + 4]
add edx, edi
cmp edx, eax
push ebx
jbe 0x30052290
mov ecx, eax
sub ecx, esi
lea ebx, [ecx + edi + 0xfff]
and ebx, 0xfffff000
cmp ebx, 0x10000
jg 0x300522a8
push 4
mov edx, ebx
sub edx, eax
push 0x1000
add edx, esi
push edx
push eax
call ebp
test eax, eax
je 0x300522a8
add ebx, esi
mov dword [esi + 4], ebx
mov eax, dword [esi]
mov ecx, dword [esp + 0x14]
pop ebx
mov dword [ecx], eax
add eax, edi
pop edi
mov dword [esi], eax
pop esi
mov eax, 1
pop ebp
ret 8
push 0xe004000e
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop ebx
pop edi
pop esi
xor eax, eax
pop ebp
ret 8

Function at 0x3005241a
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x14]
movzx eax, word [esi]
add eax, esi
push edi
mov dword [esp + 0x18], esi
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
xor edi, edi
cmp eax, esi
mov ebp, esi
je 0x30052495
mov edx, dword [0x300bb9b0]
cmp eax, ebp
jne 0x30052451
movzx ecx, byte [pe_dos_header]
test ecx, ecx
je 0x30052495
test dl, 1
je 0x3005246b
mov ecx, eax
and cl, 7
neg cl
mov ebx, edx
sbb ecx, ecx
add ecx, 1
and ebx, 2
xor ecx, ebx
je 0x30052475
movzx ecx, word [eax + 2]
cmp ecx, dword [esp + 0x1c]
jge 0x300524c7
mov dword [esp + 0x18], eax
movzx eax, word [eax]
xor ecx, ecx
add eax, esi
test edi, edi
sete cl
mov edi, ecx
test edi, edi
je 0x30052491
movzx ebp, word [ebp]
add ebp, esi
cmp eax, esi
jne 0x30052442
mov ax, word [esi + 6]
cmp ax, 0xfffe
je 0x300524be
movzx eax, ax
cmp word [eax*2 + 0x300a39a8], 5
jne 0x300524be
push eax
call fcn.300590bd
add esp, 4
test eax, eax
jne 0x30052430
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
pop ecx
ret
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x300525ca
Capabilities:
Encrypt data using rc4 prga

Disassembly:
test byte [0x300bb9b0], 1
mov edx, dword [esp + 8]
mov eax, dword [esp + 4]
jne 0x300525f9
mov cx, word [eax]
test cx, cx
je 0x300525f9
movzx ecx, cx
add ecx, eax
movzx ecx, word [ecx + 2]
push esi
lea esi, [edx + 4]
cmp ecx, esi
pop esi
jae 0x30052606
cmp ecx, edx
je 0x30052606
mov dword [esp + 8], edx
mov dword [esp + 4], eax
jmp fcn.3005241a
ret