joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403d5b
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.Py_Initialize
push edi
call esi
push str.Py_SetProgramName
push edi
mov ebx, eax
call esi
push str.Py_Finalize
push edi
mov dword [ebp - 4], eax
call esi
push str.PyRun_SimpleString
push edi
mov dword [ebp - 0xc], eax
call esi
push str.PySys_GetObject
push edi
mov dword [ebp - 8], eax
call esi
push str.Py_OptimizeFlag
push edi
mov dword [ebp - 0x10], eax
call esi
xor esi, esi
cmp dword [0x40c2ac], esi
jne 0x403db5
xor eax, eax
jmp 0x403dff
cmp ebx, esi
je 0x403dfc
cmp dword [ebp - 4], esi
je 0x403dfc
cmp dword [ebp - 0xc], esi
je 0x403dfc
cmp dword [ebp - 8], esi
je 0x403dfc
cmp dword [ebp - 0x10], esi
je 0x403dfc
cmp eax, esi
je 0x403dfc
xor ecx, ecx
cmp dword [ebp + 8], esi
push 0x40c800
setne cl
mov dword [eax], ecx
call dword [ebp - 4]
call ebx
push dword [ebp + 8]
push dword [ebp - 8]
call fcn.00403c3a
add esp, 0xc
mov esi, eax
call dword [ebp - 0xc]
mov eax, esi
jmp 0x403dff
or eax, 0xffffffff
pop esi
pop ebx
leave
ret

Function at 0x404257
Capabilities:
Delete file
Read .ini file

Disassembly:
mov eax, 0x1004
call fcn.00406600
mov eax, dword [0x40c17c]
xor eax, esp
mov dword [esp + 0x1000], eax
push ebx
push ebp
push esi
push edi
push dword [0x40dbec]
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov ebp, 0x1000
push ebp
lea eax, [esp + 0x18]
push eax
mov ebx, 0x4074e8
push ebx
push str.title
mov esi, str.Setup
push esi
call edi
push 0x50
pop ecx
lea eax, [esp + 0x10]
mov edx, 0x40c620
call fcn.0040159b
push dword [0x40dbec]
lea eax, [esp + 0x14]
push ebp
push eax
push ebx
push str.info
push esi
call edi
mov ecx, ebp
lea eax, [esp + 0x10]
mov edx, 0x40ca40
call fcn.0040159b
push dword [0x40dbec]
push 0x50
push 0x40da80
push ebx
push str.build_info
push esi
call edi
push dword [0x40dbec]
mov ebp, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push 1
push str.target_compile
push esi
call ebp
push dword [0x40dbec]
mov dword [0x40c674], eax
push 1
push str.target_optimize
push esi
call ebp
push dword [0x40dbec]
mov dword [0x40c670], eax
push 0xa
push 0x40da50
push ebx
push str.target_version
push esi
call edi
push dword [0x40dbec]
push 0x50
push 0x40c7a0
push ebx
push str.name
push str.metadata
call edi
push dword [0x40dbec]
push 0x104
push 0x40c680
push ebx
push str.install_script
push esi
call edi
push 0x40c620
call fcn.00402490
push eax
mov dword [0x40da40], eax
call fcn.0040415b
pop ecx
pop ecx
push dword [0x40dad4]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [0x40dbec]
test eax, eax
pop edi
pop esi
pop ebp
pop ebx
je 0x404399
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [0x40dbf0]
test eax, eax
je 0x4043a9
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov ecx, dword [esp + 0x1000]
xor ecx, esp
xor eax, eax
call fcn.004065b0
add esp, 0x1004
ret
Function at 0x4065b0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40c17c]
jne 0x4065ba
repz ret
jmp fcn.00406941
Function at 0x30001b8d
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
xor edi, edi
push edi
lea eax, [ebp - 4]
push eax
push edi
push 0x20006
push edi
push edi
push edi
push dword [ebp + 0xc]
mov dword [ebp - 4], edi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, edi
je 0x30001bc3
jle 0x30001c24
and eax, 0xffff
or eax, 0x80070000
jmp 0x30001c24
cmp dword [ebp + 0x10], edi
push esi
je 0x30001c0a
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
push dword [ebp + 0x10]
push 1
push edi
push edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
cmp esi, edi
je 0x30001c0a
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, edi
jle 0x30001c06
and esi, 0xffff
or esi, 0x80070000
mov eax, esi
jmp 0x30001c23
mov eax, dword [ebp + 0x14]
cmp eax, edi
jne 0x30001c1c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x30001c21
mov ecx, dword [ebp - 4]
mov dword [eax], ecx
xor eax, eax
pop esi
pop edi
leave
ret 0x10

Function at 0x30001c68
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x1a0]
sub esp, 0x220
mov eax, dword [section..cdata]
push esi
mov dword [ebp + 0x19c], eax
lea eax, [ebp - 0x74]
push eax
push 0x2000e
xor esi, esi
push esi
push dword [ebp + 0x1ac]
push dword [ebp + 0x1a8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
je 0x30001cb9
jle 0x30001d3d
and eax, 0xffff
or eax, 0x80070000
jmp 0x30001d3d
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
push edi
jmp 0x30001cd5
lea eax, [ebp - 0x70]
push eax
push dword [ebp - 0x74]
call fcn.30001c68
mov edi, eax
cmp edi, esi
jne 0x30001d20
lea eax, [ebp - 0x80]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x70]
push eax
push esi
push dword [ebp - 0x74]
mov dword [ebp - 0x78], 0x105
call ebx
test eax, eax
je 0x30001cc3
push dword [ebp - 0x74]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp + 0x1ac]
push dword [ebp + 0x1a8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
cmp eax, esi
jle 0x30001d3b
and eax, 0xffff
or eax, 0x80070000
jmp 0x30001d3b
push dword [ebp - 0x74]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, esi
jle 0x30001d39
and edi, 0xffff
or edi, 0x80070000
mov eax, edi
pop edi
pop ebx
mov ecx, dword [ebp + 0x19c]
pop esi
call fcn.300063f9
add ebp, 0x1a0
leave
ret 8

Function at 0x30002221
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp + 0xc]
push eax
push 0x20019
push 0
push dword [ebp + 0xc]
xor esi, esi
push dword [ebp + 8]
inc esi
mov dword [ebp - 4], 4
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x3000224f
xor eax, eax
jmp 0x30002277
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x14]
push 0
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x3000226c
xor esi, esi
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret 0x10
Function at 0x3000227c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
ret 4

Function at 0x30002322
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [section..cdata]
push esi
push edi
xor edi, edi
cmp dword [ebp + 8], edi
mov dword [ebp - 4], eax
mov esi, 0x104
lea eax, [ebp - 0x20c]
je 0x3000235f
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryW]
cmp eax, edi
je 0x30002357
cmp eax, esi
jbe 0x30002373
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x3000236f
push 1
push 0x1c
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jne 0x30002373
xor eax, eax
jmp 0x300023d4
push esi
lea eax, [ebp - 0x20c]
push eax
push 0x30001450
call fcn.30004ba2
cmp dword [ebp + 8], edi
jne 0x300023a2
push 0x30001478
lea eax, [ebp - 0x20c]
push eax
call fcn.30002293
test eax, eax
je 0x300023a2
xor edi, edi
inc edi
push 0x3000148c
lea eax, [ebp - 0x20c]
push eax
call fcn.30002293
test eax, eax
je 0x300023ba
or edi, 2
push 0x300014a0
lea eax, [ebp - 0x20c]
push eax
call fcn.30002293
test eax, eax
je 0x300023d2
or edi, 4
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
call fcn.300063f9
leave
ret 4

Function at 0x30002406
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [section..cdata]
push ebx
xor ebx, ebx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x14]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
push eax
mov byte [ebp - 0xc], bl
mov byte [ebp - 0xb], bl
mov byte [ebp - 0xa], bl
mov byte [ebp - 9], bl
mov byte [ebp - 8], bl
mov byte [ebp - 7], 5
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
cmp eax, ebx
mov dword [ebp - 0x10], eax
je 0x3000246b
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x14]
push ebx
call sub.ADVAPI32.dll_CheckTokenMembership
test eax, eax
jne 0x30002462
mov dword [ebp - 0x10], ebx
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
pop ebx
call fcn.300063f9
leave
ret
Function at 0x300025fb
Capabilities:
Create process on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3e8]
sub esp, 0x468
mov eax, dword [section..cdata]
push esi
push edi
mov dword [ebp + 0x3e4], eax
push 0x10
xor eax, eax
pop ecx
push dword [ebp + 0x3f0]
mov dword [ebp - 0x80], 0x44
lea edi, [ebp - 0x7c]
rep stosd dword es:[edi], eax
xor esi, esi
mov dword [ebp - 0x3c], esi
lea edi, [ebp - 0x38]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.30004a52
cmp eax, 0x104
jg 0x3000269a
push dword [ebp + 0x3f4]
lea eax, [ebp - 0x2c]
push 0x6b
push dword [ebp + 0x3f0]
push 0x300015f0
push 0x208
push eax
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
add esp, 0x18
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x80]
push eax
push esi
push esi
push 0x4000020
push esi
push esi
push esi
lea eax, [ebp - 0x2c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x3000269a
push dword [ebp - 0x3c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x38]
call esi
mov ecx, dword [ebp + 0x3e4]
pop edi
pop esi
call fcn.300063f9
add ebp, 0x3e8
leave
ret 8
Function at 0x30002f3a
Capabilities:
Create process on windows

Disassembly:
push ebp
lea ebp, [esp - 0x5f4]
sub esp, 0x674
mov eax, dword [section..cdata]
push ebx
push esi
mov esi, dword [ebp + 0x600]
push edi
mov dword [ebp + 0x5f0], eax
push 0x10
xor eax, eax
pop ecx
mov dword [ebp - 0x80], 0x44
lea edi, [ebp - 0x7c]
rep stosd dword es:[edi], eax
xor ebx, ebx
mov dword [ebp - 0x3c], ebx
lea edi, [ebp - 0x38]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
neg esi
sbb esi, esi
push 0x300016a0
stosd dword es:[edi], eax
and esi, 0x3a980
call fcn.300025bc
test eax, eax
je 0x30003047
cmp esi, ebx
jbe 0x30002fa7
cmp dword [ebp + 0x600], ebx
je 0x30002fa7
push esi
call dword [sym.imp.KERNEL32.dll_Sleep]
push ebx
push 0x104
lea eax, [ebp + 0x3e8]
push eax
call fcn.30002ce3
test eax, eax
je 0x30003047
push dword [ebp + 0x5fc]
lea eax, [ebp + 0x3e8]
push 0x71
push eax
push 0x300015f0
lea eax, [ebp - 0x28]
push 0x208
push eax
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
add esp, 0x18
push ebx
lea eax, [ebp - 0x2c]
push eax
push ebx
push 0x72
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
test eax, eax
je 0x30002ffe
cmp dword [ebp - 0x2c], ebx
jne 0x30003047
xor edi, edi
inc edi
cmp dword [ebp + 0x600], ebx
je 0x30003012
mov dword [ebp - 0x54], edi
mov word [ebp - 0x50], 7
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x80]
push eax
push ebx
push ebx
push 0x4000020
push ebx
push ebx
push ebx
lea eax, [ebp - 0x28]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x30003047
push dword [ebp - 0x3c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x38]
call esi
mov eax, edi
jmp 0x30003049
xor eax, eax
mov ecx, dword [ebp + 0x5f0]
pop edi
pop esi
pop ebx
call fcn.300063f9
add ebp, 0x5f4
leave
ret 8
Function at 0x300030bf
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
mov esi, dword [ebp + 0xc]
shl esi, 2
push esi
lea eax, [ebp - 0xc]
push eax
call fcn.30003653
test eax, eax
je 0x3000325b
mov ecx, esi
mov edx, ecx
push ebx
shr ecx, 2
push edi
mov edi, dword [ebp - 0xc]
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
xor ebx, ebx
xor esi, esi
cmp dword [ebp + 0xc], ebx
rep stosb byte es:[edi], al
mov dword [ebp - 0x14], esi
jle 0x30003251
mov edi, dword [ebp + 8]
add edi, 0x10
mov dword [ebp - 0x10], edi
cmp dword [edi - 0x10], ebx
jne 0x3000323e
mov eax, dword [ebp - 0xc]
cmp dword [eax + esi*4], ebx
jne 0x3000323e
mov eax, dword [edi]
cmp byte [eax], 0
jne 0x30003132
mov eax, dword [ebp + 0x10]
mov dword [ebp - 8], eax
jmp 0x3000314d
lea ecx, [ebp - 8]
push ecx
push 0x20019
push ebx
push eax
push dword [ebp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x3000314d
mov dword [ebp - 8], ebx
cmp esi, dword [ebp + 0xc]
mov dword [ebp - 4], esi
jge 0x3000322b
lea esi, [edi - 8]
push dword [edi]
push dword [esi + 8]
call fcn.30002c45
test eax, eax
jne 0x30003213
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
xor edi, edi
inc edi
mov dword [eax + ecx*4], edi
cmp dword [esi - 8], ebx
jne 0x30003213
mov ecx, dword [ebp - 8]
cmp ecx, ebx
je 0x30003213
mov eax, dword [esi + 4]
sub eax, ebx
je 0x30003279
dec eax
je 0x30003276
dec eax
je 0x30003260
dec eax
jne 0x30003213
push edi
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp + 8]
push eax
push dword [esi + 0xc]
mov dword [ebp + 8], ebx
push ecx
call fcn.30002bb5
test eax, eax
je 0x30003213
push ebx
push ebx
push 0xffffffffffffffff
push dword [ebp + 8]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ebx, eax
push 0x106
lea edi, [ebx + ebx]
push edi
call fcn.300048d1
test eax, eax
mov dword [esi - 4], eax
je 0x30003203
push ebx
push eax
push 0xffffffffffffffff
push dword [ebp + 8]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [esi], edi
mov dword [esi - 8], 1
cmp dword [ebp + 8], 0
je 0x30003211
push dword [ebp + 8]
call fcn.300047e6
xor ebx, ebx
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
mov edi, dword [ebp - 0x10]
add esi, 0x18
cmp eax, dword [ebp + 0xc]
jl 0x3000315c
mov esi, dword [ebp - 0x14]
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 0x10]
je 0x3000323e
cmp eax, ebx
je 0x3000323e
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc esi
add edi, 0x18
cmp esi, dword [ebp + 0xc]
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], edi
jl 0x3000310e
push dword [ebp - 0xc]
call fcn.3000374e
pop edi
pop ebx
pop esi
leave
ret 0xc
push 3
push esi
lea eax, [esi - 4]
push eax
push dword [esi + 0xc]
push ecx
call fcn.30002bb5
test eax, eax
je 0x30003213
jmp 0x3000329c
push edi
jmp 0x30003262
lea eax, [ebp - 0x18]
push eax
lea eax, [esi - 4]
push eax
push ebx
push ebx
push dword [esi + 0xc]
mov dword [ebp - 0x18], 4
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x30003213
mov dword [esi - 8], edi
jmp 0x30003213
Function at 0x300033da
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call fcn.300032a4
test eax, eax
je 0x3000344b
lea eax, [ebp + 8]
push eax
push 0x20019
push 0
push dword [ebp - 4]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x3000344b
mov eax, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0xc]
add eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push esi
lea eax, [ebp - 0x10]
push eax
push 0
push 0x30001758
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x30003441
cmp dword [ebp - 0x10], 1
je 0x30003441
and word [esi], ax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
leave
ret 0xc

Function at 0x30003653
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov eax, dword [esp + 8]
push ebx
lea ebx, [eax + 1]
push edi
mov edi, dword [esp + 0xc]
and ebx, 0xfffffffe
test eax, eax
mov dword [edi], 0
jge 0x3000367a
mov dword [edi], 0
pop edi
xor eax, eax
pop ebx
ret 8
mov eax, dword [0x30008060]
push ebp
push esi
push eax
call sub.KERNEL32.dll_TlsGetValue
mov ebp, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x300036f8
push 1
push 0x2000
push 0x10000
push 0
call ebp
mov esi, eax
test esi, esi
je 0x300036c9
push 4
push 0x1000
push 0x1000
push esi
call ebp
test eax, eax
jne 0x300036dd
push 0x8000
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
push 0xe004000e
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop esi
pop ebp
pop edi
xor eax, eax
pop ebx
ret 8
mov ecx, dword [0x30008060]
push esi
push ecx
call sub.KERNEL32.dll_TlsSetValue
lea edx, [esi + 0x1000]
lea eax, [esi + 8]
mov dword [esi + 4], edx
mov dword [esi], eax
mov ecx, dword [esi]
mov eax, dword [esi + 4]
add ecx, ebx
cmp ecx, eax
jbe 0x3000373a
mov edx, eax
sub edx, esi
lea edi, [edx + ebx + 0xfff]
and edi, 0xfffff000
cmp edi, 0x10000
jg 0x300036c9
push 4
mov ecx, edi
sub ecx, eax
push 0x1000
add ecx, esi
push ecx
push eax
call ebp
test eax, eax
je 0x300036c9
add edi, esi
mov dword [esi + 4], edi
mov edi, dword [esp + 0x14]
mov eax, dword [esi]
mov dword [edi], eax
add eax, ebx
mov dword [esi], eax
pop esi
pop ebp
pop edi
mov eax, 1
pop ebx
ret 8
Function at 0x300038ac
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 0x30003927
mov edx, dword [0x300200f0]
cmp eax, ebp
jne 0x300038e3
movzx ecx, byte [pe_dos_header]
test ecx, ecx
je 0x30003927
test dl, 1
je 0x300038fd
mov ecx, eax
and cl, 7
neg cl
mov ebx, edx
sbb ecx, ecx
add ecx, 1
and ebx, 2
xor ecx, ebx
je 0x30003907
movzx ecx, word [eax + 2]
cmp ecx, dword [esp + 0x1c]
jge 0x30003959
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 0x30003923
movzx ebp, word [ebp]
add ebp, esi
cmp eax, esi
jne 0x300038d4
mov ax, word [esi + 6]
cmp ax, 0xfffe
je 0x30003950
movzx eax, ax
cmp word [eax*2 + 0x300080e8], 5
jne 0x30003950
push eax
call fcn.300051f3
add esp, 4
test eax, eax
jne 0x300038c2
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 0x30003a5c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
test byte [0x300200f0], 1
mov edx, dword [esp + 8]
mov eax, dword [esp + 4]
jne 0x30003a8b
mov cx, word [eax]
test cx, cx
je 0x30003a8b
movzx ecx, cx
add ecx, eax
movzx ecx, word [ecx + 2]
push esi
lea esi, [edx + 4]
cmp ecx, esi
pop esi
jae 0x30003a98
cmp ecx, edx
je 0x30003a98
mov dword [esp + 8], edx
mov dword [esp + 4], eax
jmp fcn.300038ac
ret

Function at 0x300049cb
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
test eax, 3
je 0x300049ff
cmp byte [eax], 0
je 0x30004a43
lea eax, [eax + 1]
test eax, 3
je 0x300049ff
cmp byte [eax], 0
je 0x30004a43
lea eax, [eax + 1]
test eax, 3
je 0x300049ff
cmp byte [eax], 0
je 0x30004a43
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 0x300049ff
test cl, cl
lea eax, [eax - 4]
je 0x30004a43
test ecx, 0xff00
lea eax, [eax + 1]
je 0x30004a43
test ecx, 0xff0000
lea eax, [eax + 1]
je 0x30004a43
test ecx, 0xff000000
lea eax, [eax + 1]
je 0x30004a43
lea eax, [eax + 1]
jmp 0x300049ff
sub eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 4

Function at 0x30004a52
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
test eax, 3
je 0x30004a79
cmp word [eax], 0
je 0x30004a72
lea eax, [eax + 2]
test eax, 3
je 0x30004a79
jmp 0x30004a60
sub eax, dword [ebp + 8]
shr eax, 1
jmp 0x30004ab4
mov edx, dword [eax]
lea eax, [eax + 4]
mov ecx, edx
sub edx, 0x10001
xor edx, ecx
and edx, 0x80008000
je 0x30004a79
sub eax, dword [ebp + 8]
shr eax, 1
test cx, cx
lea eax, [eax - 2]
je 0x30004ab4
test ecx, 0xffff0000
lea eax, [eax + 1]
je 0x30004ab4
lea eax, [eax*2 + 2]
add eax, dword [ebp + 8]
jmp 0x30004a79
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 4
Function at 0x30004c3b
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40c
mov eax, dword [section..cdata]
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
mov dword [ebp - 4], eax
push esi
je 0x30004d71
mov esi, dword [ebp + 8]
cmp esi, ebx
je 0x30004d71
push edi
mov edi, dword [ebp + 0x20]
push edi
push dword [ebp + 0xc]
lea eax, [ebp - 0x404]
push 0x400
push eax
mov dword [ebp - 0x40c], 1
mov dword [esi], ebx
call fcn.30005e72
mov dword [ebp - 0x408], eax
mov dword [ebp + 0xc], ebx
mov dword [ebp + 8], ebx
cmp dword [ebp - 0x408], ebx
je 0x30004cb9
push dword [ebp - 0x408]
mov eax, edi
shr eax, 0x17
and eax, 1
push eax
push 0x120001
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
mov dword [esi], eax
cmp dword [esi], ebx
jne 0x30004d30
mov eax, edi
shr eax, 0x1a
not eax
test al, 1
je 0x30004d30
lea eax, [ebp + 0x1c]
push eax
push edi
call fcn.30006033
test eax, eax
je 0x30004d1b
push dword [ebp - 0x408]
mov eax, edi
shr eax, 0x19
and eax, 1
push eax
push dword [ebp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea eax, [ebp + 0x1c]
push eax
push edi
call fcn.30005e1a
cmp ebx, 5
jne 0x30004d1b
cmp dword [ebp + 8], 0
jne 0x30004d1b
mov dword [ebp + 8], 1
xor ebx, ebx
jmp 0x30004c95
cmp dword [esi], 0
je 0x30004d2e
xor eax, eax
cmp ebx, 0xb7
setne al
mov dword [ebp + 0xc], eax
xor ebx, ebx
mov eax, dword [esi]
cmp eax, ebx
pop edi
je 0x30004d3c
cmp eax, 0xffffffff
jne 0x30004d47
mov dword [esi], ebx
mov dword [ebp + 0xc], ebx
mov dword [ebp - 0x40c], ebx
cmp dword [ebp + 0x10], ebx
je 0x30004d5d
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp - 0x408]
call fcn.30004b82
mov eax, dword [ebp + 0x18]
cmp eax, ebx
je 0x30004d69
mov ecx, dword [ebp + 0xc]
mov dword [eax], ecx
mov eax, dword [ebp - 0x40c]
jmp 0x30004d73
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.300063f9
leave
ret 0x1c
Function at 0x30006139
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x28
push 0x300017b0
call fcn.300064c6
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x30006174
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x30006174
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x3000618c
cmp eax, 0x20b
je 0x30006179
mov dword [ebp - 0x1c], edi
jmp 0x300061a0
cmp dword [ecx + 0x84], 0xe
jbe 0x30006174
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x3000619a
cmp dword [ecx + 0x74], 0xe
jbe 0x30006174
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], edi
push 1
call dword [sym.imp.MSVCRT.dll___set_app_type]
pop ecx
or dword [0x300201e4], 0xffffffff
or dword [0x300201e8], 0xffffffff
call dword [sym.imp.MSVCRT.dll___p__fmode]
mov ecx, dword [0x300201cc]
mov dword [eax], ecx
call dword [sym.imp.MSVCRT.dll___p__commode]
mov ecx, dword [0x300201c8]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCRT.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x300201e0], eax
call fcn.3000643e
call fcn.3000654b
cmp dword [0x300080c0], edi
jne 0x30006200
push 0x30006548
call dword [sym.imp.MSVCRT.dll___setusermatherr]
pop ecx
call fcn.30006536
push 0x30008028
push 0x30008024
call sub.MSVCRT.dll__initterm
push 0x30006482
call fcn.3000642c
mov eax, dword [0x300201c4]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [0x300201c0]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.MSVCRT.dll___wgetmainargs]
add esp, 0x20
mov dword [ebp - 0x34], eax
cmp eax, edi
jge 0x30006254
push 8
call sub.MSVCRT.dll__amsg_exit
pop ecx
push 0x30008020
push 0x30008014
call sub.MSVCRT.dll__initterm
call dword [sym.imp.MSVCRT.dll___p___winitenv]
mov ecx, dword [ebp - 0x20]
mov dword [eax], ecx
push dword [ebp - 0x20]
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
call fcn.30002101
add esp, 0x14
mov esi, eax
mov dword [ebp - 0x38], esi
cmp dword [ebp - 0x1c], edi
jne 0x30006290
push esi
call dword [sym.imp.MSVCRT.dll_exit]
call dword [sym.imp.MSVCRT.dll__cexit]
jmp 0x300062c5
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.30006501
ret