joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4e1120
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0x34
mov eax, dword [ebp + 8]
mov esi, ecx
mov ecx, dword [ebp + 0xc]
mov edi, edx
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0x103
lea edx, [ebp - 0x14]
push 0
push 0
push ecx
push eax
push edx
push 0
push 0
push 0
push edi
call sub.ntdll.dll_NtReadFile
cmp eax, 0x103
jne 0x4e1168
push 0xffffffffffffffff
push edi
call sub.kernel32.dll_WaitForSingleObject
mov eax, dword [ebp - 0x14]
cmp eax, 0xc0000011
jne 0x4e1178
mov dword [esi + 4], 0
jmp 0x4e1189
cmp eax, 0x103
je 0x4e11a1
test eax, eax
js 0x4e1193
mov eax, dword [ebp - 0x10]
mov dword [esi + 4], eax
mov byte [esi], 4
add esp, 0x34
pop esi
pop edi
pop ebp
ret
push eax
call sub.ntdll.dll_RtlNtStatusToDosError
mov byte [esi], 0
mov dword [esi + 4], eax
jmp 0x4e118c
lea eax, [ebp - 0xc]
mov dword [ebp - 0x3c], 0x515978
mov dword [ebp - 0x38], 1
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x18], 0
lea ecx, [ebp - 0x24]
lea edx, [ebp - 0x1c]
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x30], 0
push eax
call fcn.004ba8f0
add esp, 4
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x20]
call fcn.004ba9f0
mov ecx, 7
int 0x29
ud2

Function at 0x4e1be0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x24
mov esi, ecx
lea ecx, [ebp - 0x24]
push dword [ebp + 8]
call fcn.004de200
add esp, 4
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
cmp edx, 0x80000000
je 0x4e1c2f
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x28], ecx
lea ecx, [ebp - 0x18]
lea edx, [ebp - 0x30]
mov dword [ebp - 0x2c], eax
call fcn.004de470
mov ebx, dword [ebp - 0x18]
cmp ebx, 0x80000000
jne 0x4e1c3c
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
mov dword [esi], eax
mov dword [esi + 4], ecx
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret
mov edi, dword [ebp - 0x14]
push 0
push edi
call sub.kernel32.dll_CreateDirectoryW
test eax, eax
je 0x4e1c54
mov byte [esi], 4
test ebx, ebx
jne 0x4e1c63
jmp 0x4e1c34
call sub.kernel32.dll_GetLastError
mov byte [esi], 0
mov dword [esi + 4], eax
test ebx, ebx
je 0x4e1c34
mov ecx, edi
mov edx, 2
call fcn.0044dba0
jmp 0x4e1c34
Function at 0x4f7440
Capabilities:
Allocate thread local storage

Disassembly:
sub esp, 0xc
call dword [sym.imp.kernel32.dll_TlsAlloc]
mov dword [0x4ff074], eax
cmp eax, 0xffffffff
je 0x4fd1d4
add esp, 0xc
ret

Function at 0x4f7950
Capabilities:
Print debug messages

Disassembly:
test eax, eax
je 0x4f7980
push edi
push esi
push ebx
mov ebx, eax
add esp, 0xffffff80
mov dword [esp], eax
call fcn.004faaa0
cmp eax, 1
je 0x4f7981
mov dword [ebx], 0xffffffff
sub esp, 0xffffff80
pop ebx
pop esi
pop edi
ret
ret
lea ebx, [esp + 0x15]
xor eax, eax
mov esi, str.Error_cleaning_up_spin_keys_for_thread
mov ecx, 0xa
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
lea edi, [esp + 0x3d]
mov ecx, 0x43
rep stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea edx, [esp + 0x3c]
mov dword [esp + 8], 0xa
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.msvcrt.dll__ultoa]
cmp byte [esp + 0x3c], 0
mov eax, 0x27
jne 0x4f79d5
jmp 0x4f79e3
cmp eax, 0x6a
je 0x4f79ed
add eax, 1
cmp byte [ebx + eax], 0
jne 0x4f79d0
cmp eax, 0x6a
je 0x4f79ed
mov byte [esp + eax + 0x15], 0xa
mov byte [esp + eax + 0x16], 0
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push eax
call sub.msvcrt.dll_abort
lea esi, [esi]

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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x2c
cmp dword [0x53717c], 1
je 0x4f7aa5
call fcn.004f7a00
mov eax, dword [0x4ff074]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
sub esp, 4
mov esi, eax
test eax, eax
je 0x4f7ad0
add esp, 0x2c
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
call fcn.004f78a0
mov ebx, eax
mov eax, dword [entry4]
test eax, eax
je 0x4f7abc
test ebx, ebx
je 0x4f7abc
mov dword [ebx + 0x24], 1
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebx + 0x3c], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [ebx + 0x1c], 0xffffffff
mov dword [ebx + 0x18], eax
sub esp, 0x10
lea eax, [ebx + 0x38]
call fcn.004f7950
mov esi, dword [sym.imp.kernel32.dll_GetCurrentProcess]
mov dword [ebx + 0x64], 0
mov dword [ebx + 0x14], 0
call esi
mov ebp, eax
call dword [sym.imp.kernel32.dll_GetCurrentThread]
mov edi, eax
call esi
lea edx, [ebx + 0x14]
mov dword [esp + 8], ebp
mov dword [esp + 0x18], 2
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], edx
mov dword [esp + 4], edi
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_DuplicateHandle]
sub esp, 0x1c
test eax, eax
je 0x4fd1d9
mov eax, dword [ebx + 0x14]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov dword [ebx + 0x68], 0
mov dword [ebx + 0x6c], eax
movzx eax, byte [ebx + 0x20]
sub esp, 4
and eax, 0xffffffcf
or eax, 0x10
mov byte [ebx + 0x20], al
mov eax, dword [0x4ff074]
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
sub esp, 8
test eax, eax
je 0x4fd1d9
add esp, 0x2c
mov esi, ebx
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x4f7d10
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push edi
push esi
push ebx
sub esp, 0x10
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x4f7d40
mov ecx, dword [esp + 0x28]
test ecx, ecx
je 0x4f7df0
add esp, 0x10
mov eax, 1
pop ebx
pop esi
pop edi
ret 0xc
cmp eax, 1
je 0x4f7e20
cmp eax, 3
jne 0x4f7d2a
mov eax, dword [0x4ff074]
cmp eax, 0xffffffff
je 0x4f7d2a
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
test eax, eax
je 0x4f7d2a
test byte [eax + 0x20], 0x30
je 0x4f7e50
mov eax, dword [eax + 0xb4]
test eax, eax
je 0x4f7d83
call fcn.004f7c20
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x4f7db5
mov dword [esp], eax
mov esi, dword [sym.imp.kernel32.dll_CloseHandle]
call esi
mov eax, dword [ebx + 0x18]
sub esp, 4
test eax, eax
je 0x4f7da7
mov dword [esp], eax
call esi
sub esp, 4
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x14], 0
lea eax, [ebx + 0x1c]
mov dword [esp], eax
call fcn.004f71c0
lea eax, [ebx + 0x38]
call fcn.004f7950
mov eax, ebx
call fcn.004f7630
mov eax, dword [0x4ff074]
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
sub esp, 8
jmp 0x4f7d2a
mov eax, dword [0x537158]
test eax, eax
je 0x4f7d2a
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_RemoveVectoredExceptionHandler]
mov dword [0x537158], 0
sub esp, 4
jmp 0x4f7d2a
mov dword [esp + 4], 0x4f7370
mov dword [esp], 1
call dword [sym.imp.kernel32.dll_AddVectoredExceptionHandler]
sub esp, 8
mov dword [0x537158], eax
mov eax, 1
add esp, 0x10
pop ebx
pop esi
pop edi
ret 0xc
mov edx, dword [ebx + 0x68]
mov eax, dword [eax + 0x18]
test edx, edx
jne 0x4f7ec2
test eax, eax
je 0x4f7e6a
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_CloseHandle]
sub esp, 4
mov eax, dword [ebx + 0xb4]
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x68], 1
test eax, eax
je 0x4f7e87
call fcn.004f7c20
lea edi, [ebx + 0x1c]
lea esi, [ebx + 0x38]
test byte [ebx + 0x24], 4
je 0x4f7ef1
mov eax, dword [ebx + 0x14]
mov dword [ebx], 0xdeadbeef
test eax, eax
je 0x4f7eac
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_CloseHandle]
sub esp, 4
mov dword [ebx + 0x14], 0
mov dword [esp], edi
call fcn.004f71c0
mov eax, esi
jmp 0x4f7dc3
test eax, eax
je 0x4f7ed2
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_CloseHandle]
sub esp, 4
lea eax, [ebx + 0x1c]
mov dword [ebx + 0x18], 0
mov dword [esp], eax
call fcn.004f71c0
lea eax, [ebx + 0x38]
call fcn.004f7950
jmp 0x4f7d2a
mov dword [esp], edi
call fcn.004f71c0
mov eax, esi
call fcn.004f7950
jmp 0x4f7d2a
Function at 0x4f8880
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov esi, dword [esp + 0x20]
call fcn.004f7a90
mov ebx, eax
mov dword [eax + 4], esi
mov eax, dword [eax + 0xb4]
test eax, eax
je 0x4f88a2
call fcn.004f7c20
test byte [ebx + 0x20], 0x30
jne 0x4f88bb
add ebx, 0x70
mov dword [esp + 4], 1
mov dword [esp], ebx
call sub.msvcrt.dll_longjmp
mov eax, dword [0x4ff074]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov ebx, eax
push edx
test eax, eax
je 0x4f88fe
cmp dword [ebx + 0x14], 0
mov eax, dword [eax + 0x18]
je 0x4f8942
mov esi, dword [ebx + 4]
mov dword [ebx + 0x68], 1
test eax, eax
je 0x4f88f1
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_CloseHandle]
push ecx
mov dword [ebx + 0x18], 0
test byte [ebx + 0x24], 4
jne 0x4f8907
mov dword [esp], esi
call dword [sym.imp.msvcrt.dll__endthreadex]
mov eax, dword [ebx + 0x14]
mov dword [ebx], 0xdeadbeef
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_CloseHandle]
push edx
mov dword [ebx + 0x14], 0
mov eax, ebx
call fcn.004f7630
mov eax, dword [0x4ff074]
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
push eax
push eax
jmp 0x4f88fe
mov dword [ebx], 0xdeadbeef
test eax, eax
je 0x4f8956
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_CloseHandle]
push esi
mov dword [ebx + 0x18], 0
mov esi, dword [ebx + 4]
jmp 0x4f8921

Function at 0x4fc430
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call fcn.004fc110
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call fcn.004fc110
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
lea esi, [esi]
Function at 0x4fc490
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
sub esp, 0x30
mov esi, dword [0x5371bc]
test esi, esi
jle 0x4fc5b0
mov edi, dword [0x5371c0]
xor ebx, ebx
lea edx, [edi + 0xc]
nop
mov ecx, dword [edx]
cmp ecx, eax
ja 0x4fc4c4
mov edi, dword [edx + 4]
add ecx, dword [edi + 8]
cmp eax, ecx
jb 0x4fc549
add ebx, 1
add edx, 0x14
cmp ebx, esi
jne 0x4fc4b0
mov dword [esp], eax
mov ebx, eax
call fcn.004fce90
mov edi, eax
test eax, eax
je 0x4fc5d7
mov eax, dword [0x5371c0]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call fcn.004fcfa0
mov edx, dword [0x5371c0]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x4fc5b7
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x4fc542
lea edx, [eax - 4]
and edx, 0xfffffffb
jne 0x4fc550
add dword [0x5371bc], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
cmp eax, 2
mov edx, 0x40
mov eax, 4
mov ecx, dword [esp + 0x20]
cmovne eax, edx
mov edx, dword [esp + 0x14]
add ebx, dword [0x5371c0]
mov dword [ebx + 8], ecx
mov dword [ebx + 4], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x4fc542
call dword [sym.imp.kernel32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.004fc430
lea esi, [esi]
lea edi, [edi]
xor esi, esi
jmp 0x4fc4ce
mov eax, dword [0x5371c0]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call fcn.004fc430
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call fcn.004fc430
mov esi, esi
lea edi, [edi]

Function at 0x4fcad0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x5371d8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x5371d0]
sub esp, 4
test ebx, ebx
je 0x4fcb25
mov ebp, dword [sym.imp.kernel32.dll_TlsGetValue]
mov edi, dword [sym.imp.kernel32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x4fcb1e
test esi, esi
je 0x4fcb1e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x4fcb00
mov dword [esp], 0x5371d8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x40459f
Capabilities:
Hide graphical window

Disassembly:
push 0x98
mov eax, 0x4bdc8c
call fcn.00435eee
mov ebx, ecx
push 0
call fcn.00404fdd
push 1
mov ecx, ebx
call fcn.00405532
lea eax, [ebp - 0x1c]
push 0x198
push eax
call fcn.0040395a
pop ecx
pop ecx
push dword [eax]
push 2
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
push dword [ebp - 0x1c]
call fcn.00435fca
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
pop ecx
push 1
push 1
push 0xf4
push 2
push dword [ebx + 4]
call edi
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
push 0x1bc
push dword [ebx + 4]
call edi
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
push 0
push eax
call esi
push 0x1be
push dword [ebx + 4]
call edi
push 0
push eax
call esi
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x38]
lea ecx, [ebp - 0xa4]
call fcn.00403bc6
and dword [ebp - 4], 0
lea esi, [ebx + 0x280]
push esi
mov dword [ebp - 0x10], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [ebx + 0x1d4]
lea eax, [ebx + 0x1e0]
push eax
lea ecx, [ebp - 0xa4]
mov byte [ebp - 4], 1
call fcn.00403d56
push esi
mov byte [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [ebp - 0x94], 0
je 0x4046ad
cmp dword [ebp - 0xa0], 0
mov byte [ebx + 0x29b], 1
jne 0x40469d
push str.GoodZip
lea ecx, [ebp - 0xa4]
call fcn.0040e6d3
push 0x10
push dword [ebp - 0xa4]
push dword [ebp - 0x98]
jmp 0x4046d7
test edi, edi
jne 0x4046e4
mov byte [ebx + 0x29b], 1
cmp dword [ebp - 0x70], edi
je 0x4046e0
cmp dword [ebp - 0x7c], edi
jne 0x4046cf
push str.GoodZip
lea ecx, [ebp - 0x80]
call fcn.0040e6d3
push 0
push dword [ebp - 0x80]
push dword [ebp - 0x74]
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_MessageBoxW]
test edi, edi
je 0x4046fd
cmp byte [ebx + 0x136], 0
jne 0x4046fd
mov ecx, ebx
mov byte [ebx + 0x135], 1
call fcn.004053ed
jmp 0x404708
push 0
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_EndDialog]
lea ecx, [ebp - 0x80]
call fcn.00402c26
lea ecx, [ebp - 0xa4]
call fcn.00402c26
mov al, 1
call fcn.00435eb7
ret
Function at 0x405fcc
Capabilities:
Check for time delay via gettickcount

Disassembly:
push 0x44
mov eax, 0x4bddb7
call fcn.00435f59
mov edi, ecx
mov dword [ebp - 0x14], edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x18], eax
call fcn.0040e64e
and dword [ebp - 4], 0
mov dword [ebp - 0x1c], edi
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 1
call fcn.0040e64e
mov eax, dword [edi]
mov ecx, edi
mov byte [ebp - 4], 3
call dword [eax + 0x3c]
mov dword [edi + 0x3b8], eax
jmp 0x406028
mov eax, dword [edi + 0x3b8]
mov dword [ebp - 4], 2
cmp eax, 0x80004004
je 0x406078
cmp dword [ebp - 0x34], 0
jne 0x406078
test eax, eax
je 0x406078
push eax
lea eax, [ebp - 0x50]
push eax
call fcn.00405f5a
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 6
call fcn.0040e672
push dword [ebp - 0x50]
mov byte [ebp - 4], 2
call fcn.00435fca
pop ecx
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x38]
call fcn.0040e672
lea eax, [edi + 0x33c]
push eax
lea eax, [ebp - 0x38]
push eax
call fcn.00405e79
xor esi, esi
pop ecx
pop ecx
cmp dword [edi + 0x324], esi
jbe 0x4060b6
cmp esi, 0x20
jae 0x4060b6
mov eax, dword [edi + 0x320]
push dword [eax + esi*4]
lea eax, [ebp - 0x38]
push eax
call fcn.00405e79
inc esi
pop ecx
pop ecx
cmp esi, dword [edi + 0x324]
jb 0x406094
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x18]
cmp eax, 0x3e8
ja 0x4060e0
cmp byte [edi + 0x318], 0
jne 0x4060d5
cmp dword [ebp - 0x40], 0
je 0x4060e0
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
lea esi, [edi + 0x280]
push esi
mov dword [ebp - 0x18], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [edi + 0x378]
mov byte [ebp - 4], 7
push eax
lea ecx, [edi + 0x1e0]
call fcn.00405ea3
mov ecx, edi
call fcn.00402e05
cmp dword [ebp - 0x34], 0
jne 0x4061b6
cmp dword [edi + 0x364], 0
je 0x406275
lea eax, [edi + 0x354]
push eax
lea ecx, [edi + 0x204]
call fcn.00403d87
jmp 0x406275
lea ecx, [ebp - 0x50]
call fcn.0040e64e
xor ebx, ebx
mov byte [ebp - 4], 8
cmp dword [edi + 0x1d4], ebx
jbe 0x4061e6
mov eax, dword [edi + 0x1d0]
lea ecx, [ebp - 0x50]
push dword [eax + ebx*4]
call fcn.0040e816
inc ebx
cmp ebx, dword [edi + 0x1d4]
jb 0x4061cc
cmp dword [ebp - 0x4c], 0
lea ebx, [edi + 0x1ec]
mov ecx, ebx
lea eax, [ebp - 0x44]
je 0x4061fa
lea eax, [ebp - 0x50]
push eax
call fcn.0040e672
cmp dword [edi + 0x324], 0
jbe 0x406245
lea eax, [edi + 0x33c]
mov ecx, ebx
push eax
call fcn.0040e816
push 0x4c5c70
mov ecx, ebx
call fcn.0040e8a3
mov eax, dword [edi + 0x320]
mov ecx, ebx
push dword [eax]
call fcn.0040e816
mov eax, dword [edi + 0x320]
lea ecx, [edi + 0x1f8]
push dword [eax]
call fcn.0040e672
cmp dword [edi + 0x1f0], 0
jne 0x406259
lea eax, [ebp - 0x38]
mov ecx, ebx
push eax
call fcn.0040e672
cmp dword [edi + 0x3b8], 0
jne 0x40626c
mov dword [edi + 0x3b8], 0x80004005
push dword [ebp - 0x50]
call fcn.00435fca
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push dword [ebp - 0x38]
call fcn.00435fca
pop ecx
mov eax, dword [edi]
mov ecx, edi
mov byte [ebp - 4], 9
call dword [eax + 0x34]
push dword [ebp - 0x44]
call fcn.00435fca
pop ecx
call fcn.00435eb7
ret
Function at 0x406344
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x228
mov eax, 0x4bdddd
call fcn.00435f22
mov edi, ecx
mov dword [ebp - 0x224], edi
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x228], eax
call fcn.0040629f
push 0x208
xor ebx, ebx
lea eax, [ebp - 0x218]
push ebx
push eax
call fcn.0047a570
push esi
lea eax, [ebp - 0x218]
push str.LANG__s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x18
lea eax, [ebp - 0x218]
push 0x4c5c98
push eax
push dword [0x4f8c70]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x4063bb
xor al, al
jmp 0x4064a7
push esi
push dword [0x4f8c70]
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push dword [0x4f8c70]
mov dword [ebp - 0x220], eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
cmp dword [ebp - 0x220], ebx
je 0x4063b4
cmp esi, 0x100000
ja 0x4063b4
lea ecx, [ebp - 0x234]
call fcn.0040e486
push esi
lea ecx, [ebp - 0x234]
mov dword [ebp - 4], ebx
call fcn.00406320
push esi
push dword [ebp - 0x220]
mov dword [ebp - 0x21c], eax
push eax
call fcn.00479630
mov edx, dword [ebp - 0x21c]
add esp, 0xc
mov eax, edx
mov ecx, ebx
test esi, esi
je 0x406454
mov edi, eax
mov dl, byte [ecx + edi]
test dl, dl
je 0x406448
cmp dl, 0xd
je 0x406443
mov byte [eax], dl
inc eax
inc ecx
cmp ecx, esi
jb 0x406434
mov edi, dword [ebp - 0x224]
mov edx, dword [ebp - 0x21c]
mov byte [eax], bl
mov ecx, edi
sub eax, edx
mov dword [ebp - 0x230], eax
lea eax, [ebp - 0x234]
push eax
call fcn.004064af
test al, al
je 0x406492
push ebx
mov ecx, edi
call fcn.004062f0
test eax, eax
je 0x406492
push dword [ebp - 0x228]
push eax
call fcn.0040f13d
pop ecx
pop ecx
test al, al
je 0x406492
mov bl, 1
jmp 0x406499
mov ecx, edi
call fcn.0040629f
push dword [ebp - 0x234]
call fcn.00435fca
pop ecx
mov al, bl
call fcn.00435ecc
ret 8
Function at 0x406ca4
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
xor esi, esi
lea ecx, [edi + 0x1c]
shr edi, 2
mov eax, edi
mov dword [ebp - 0xc], ecx
shr eax, 1
add eax, 3
mov dword [ebx], eax
add ebx, 0x10
test edi, edi
je 0x406cda
mov eax, dword [edx]
lea edx, [edx + 4]
mov dword [ebx + esi*4], eax
inc esi
cmp esi, edi
jb 0x406ccd
cmp esi, ecx
jae 0x406dbd
mov eax, esi
sub eax, edi
lea eax, [ebx + eax*4]
mov dword [ebp - 4], eax
xor edx, edx
mov ecx, dword [ebx + esi*4 - 4]
mov eax, esi
mov dword [ebp + 8], ecx
div edi
mov dword [ebp - 8], eax
test edx, edx
jne 0x406d53
movzx ecx, cl
movzx edx, byte [ecx + 0x4c5cc0]
mov ecx, dword [ebp + 8]
shr ecx, 0x18
shl edx, 8
movzx eax, byte [ecx + 0x4c5cc0]
mov ecx, dword [ebp + 8]
or edx, eax
mov eax, ecx
shl edx, 8
shr eax, 0x10
movzx eax, al
shr ecx, 8
movzx eax, byte [eax + 0x4c5cc0]
or edx, eax
movzx eax, cl
shl edx, 8
movzx ecx, byte [eax + 0x4c5cc0]
mov eax, dword [ebp - 8]
movzx eax, byte [eax + 0x4c5dc0]
xor ecx, eax
or ecx, edx
jmp 0x406da3
cmp edi, 6
jbe 0x406da3
cmp edx, 4
jne 0x406da3
mov edx, dword [ebp + 8]
mov eax, ecx
shr eax, 0x10
movzx eax, al
movzx ecx, byte [eax + 0x4c5cc0]
mov eax, edx
shr eax, 0x18
movzx eax, byte [eax + 0x4c5cc0]
shl eax, 8
or ecx, eax
mov eax, edx
shr eax, 8
movzx eax, al
shl ecx, 8
movzx eax, byte [eax + 0x4c5cc0]
or ecx, eax
movzx eax, dl
shl ecx, 8
movzx eax, byte [eax + 0x4c5cc0]
or ecx, eax
mov edx, dword [ebp - 4]
mov eax, dword [edx]
add edx, 4
xor eax, ecx
mov dword [ebp - 4], edx
mov dword [ebx + esi*4], eax
inc esi
cmp esi, dword [ebp - 0xc]
jb 0x406cec
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4081fc
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp + 0xc]
push edi
xor edi, edi
mov edx, dword [edx]
and edx, 7
cmp eax, 5
jae 0x408219
xor eax, eax
jmp 0x408336
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [eax - 4]
add ecx, ebx
push esi
mov dword [ebp + 0xc], ecx
lea esi, [edi + ebx]
jmp 0x408234
mov al, byte [esi]
and al, 0xfe
cmp al, 0xe8
je 0x408238
inc esi
cmp esi, ecx
jb 0x40822b
mov ecx, esi
sub ecx, edi
mov edi, esi
sub ecx, ebx
sub edi, ebx
cmp esi, dword [ebp + 0xc]
jae 0x408323
cmp ecx, 2
jbe 0x40828e
xor edx, edx
movzx ebx, byte [esi + 4]
lea eax, [ebx + 1]
test al, 0xfe
jne 0x408314
movzx eax, byte [esi + 3]
shl ebx, 8
or ebx, eax
movzx eax, byte [esi + 2]
shl ebx, 8
or ebx, eax
movzx eax, byte [esi + 1]
shl ebx, 8
or ebx, eax
mov eax, dword [ebp + 0x10]
add eax, 5
add eax, edi
cmp dword [ebp + 0x18], 0
je 0x4082ba
add ebx, eax
jmp 0x4082bc
shr edx, cl
test edx, edx
je 0x408252
cmp edx, 4
ja 0x4082ac
cmp edx, 3
je 0x4082ac
mov eax, edx
shr eax, 1
movzx eax, byte [eax + esi + 1]
inc eax
test al, 0xfe
jne 0x408252
or edx, 8
shr edx, 1
inc edi
mov ecx, dword [ebp + 0xc]
jmp 0x408226
sub ebx, eax
test edx, edx
je 0x4082f1
and edx, 6
mov eax, ebx
shl edx, 2
mov ecx, edx
shr eax, cl
inc eax
test al, 0xfe
jne 0x4082ef
mov eax, 0x100
shl eax, cl
dec eax
xor ebx, eax
mov eax, dword [ebp + 0x10]
add eax, 5
add eax, edi
cmp dword [ebp + 0x18], 0
je 0x4082ed
add ebx, eax
jmp 0x4082ef
sub ebx, eax
xor edx, edx
mov eax, ebx
mov byte [esi + 1], bl
shr eax, 8
mov byte [esi + 2], al
mov eax, ebx
shr ebx, 0x18
shr eax, 0x10
and bl, 1
neg bl
mov byte [esi + 3], al
push 5
mov byte [esi + 4], bl
pop eax
jmp 0x40831c
or edx, 8
xor eax, eax
shr edx, 1
inc eax
mov ebx, dword [ebp + 8]
add edi, eax
jmp 0x4082b2
xor eax, eax
shr edx, cl
cmp ecx, 2
pop esi
cmova edx, eax
mov eax, dword [ebp + 0x14]
pop ebx
mov dword [eax], edx
mov eax, edi
pop edi
pop ebp
ret

Function at 0x408425
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x13c
mov eax, dword [0x4f230c]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x118]
mov dword [ebp - 0x118], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x408480
cmp dword [ebp - 0x114], 5
sbb eax, eax
add eax, 1
je 0x408480
lea eax, [ebp - 0x13c]
push eax
call fcn.0040857d
pop ecx
test eax, eax
je 0x408480
mov eax, dword [ebp - 0x124]
shr eax, 0x19
and eax, 1
jmp 0x408482
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00435ea6
mov esp, ebp
pop ebp
ret