joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6893e7
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x210]
sub esp, 0x210
push 0xffffffffffffffff
push 0x6a33b1
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x79b544]
xor eax, ebp
mov dword [ebp + 0x20c], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
and dword [ebp - 4], 0
lea eax, [ebp]
push eax
mov dword [ebp - 0x18], esi
and dword [ebp - 0x10], 0
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
call fcn.00474f38
push eax
mov ecx, esi
call fcn.00451c1b
and dword [ebp - 4], 0
lea eax, [ebp]
push eax
push 0x75734c
push esi
mov dword [ebp - 0x10], 1
call fcn.00452465
add esp, 0xc
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp + 0x20c]
xor ecx, ebp
call fcn.0049b511
add ebp, 0x210
leave
ret

Function at 0x689499
Capabilities:
Create directory
Set current directory

Disassembly:
push 0x14
mov eax, 0x6a3409
call fcn.0049be25
xor ebx, ebx
mov dword [ebp - 4], ebx
call fcn.00474f38
push eax
lea ecx, [ebp - 0x10]
call fcn.00451c1b
mov byte [ebp - 4], 1
call fcn.00474f38
push eax
lea ecx, [ebp - 0x14]
call fcn.00451c1b
lea ecx, [ebp + 8]
mov byte [ebp - 4], 2
call fcn.00455aa7
test al, al
je 0x6894e8
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x10]
call fcn.00451d78
jmp 0x68953a
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov ecx, eax
call fcn.00689946
test eax, eax
lea ecx, [ebp - 0x18]
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x20]
push eax
je 0x689514
push 0x23
pop edx
call fcn.0068a4ce
pop ecx
pop ecx
mov byte [ebp - 4], 3
jmp 0x689522
push 0x1c
pop edx
call fcn.0068a4ce
pop ecx
pop ecx
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x10]
call fcn.00451d78
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
call fcn.0044ec01
push 0x770aa0
lea ecx, [ebp - 0x10]
call fcn.00454ba8
lea eax, [ebp - 0x20]
push eax
call fcn.00670e3b
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x10]
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
call fcn.0045234c
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x20]
lea ecx, [ecx - 0x10]
call fcn.0044ec01
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x14]
call fcn.00451d78
mov esi, dword [ebp - 0x14]
push esi
call fcn.0051621b
pop ecx
test eax, eax
je 0x6895a2
call fcn.005123f4
cmp dword [eax], 0x11
je 0x6895a2
push esi
push str.Unable_to_create_directory:___s
call fcn.006778de
pop ecx
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
jne 0x6895ba
push str.Unable_to_set_working_directory
call fcn.006778de
pop ecx
jmp 0x6895bc
mov bl, 1
lea ecx, [esi - 0x10]
call fcn.0044ec01
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.0044ec01
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.0044ec01
mov al, bl
call fcn.0049bdee
ret
Function at 0x6895e2
Capabilities:
Copy file

Disassembly:
push esi
push edi
push 0
push dword [esp + 0x10]
mov esi, ecx
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0xc]
add ecx, 0xfffffff0
mov dword [esi], eax
call fcn.0044ec01
mov ecx, dword [esp + 0x10]
add ecx, 0xfffffff0
call fcn.0044ec01
mov eax, edi
pop edi
pop esi
ret
Function at 0x689b73
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x138c]
mov eax, 0x138c
call fcn.0049bfd0
push 0xffffffffffffffff
push 0x6a350b
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x79b544]
xor eax, ebp
mov dword [ebp + 0x1388], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x14], ebx
push 2
pop eax
xor edi, edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x1c], eax
mov ax, word [0x750660]
push 0x1386
mov word [ebp], ax
lea eax, [ebp + 2]
push edi
push eax
call fcn.00506c70
add esp, 0xc
mov dword [ebp - 0x10], 0x9c4
call fcn.00474f38
push eax
lea ecx, [ebp - 0x18]
call fcn.00451c1b
mov byte [ebp - 4], 1
lea eax, [ebp - 0x18]
push dword [ebp + 0x1394]
push str.SYSTEMCurrentControlSetServices_s
push eax
call fcn.00452465
mov esi, dword [ebp - 0x18]
lea eax, [ebp - 0x14]
add esp, 0xc
push eax
push 1
push edi
push esi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x689c44
push edi
mov ecx, ebx
call fcn.004514db
lea ecx, [esi - 0x10]
call fcn.0044ec01
mov ecx, dword [ebp + 0x1394]
add ecx, 0xfffffff0
jmp 0x689cb5
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp]
push eax
lea eax, [ebp - 0x1c]
push eax
push edi
push str.ImagePath
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [ebp - 0x10]
xor ecx, ecx
push 2
inc eax
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00474c39
mov ecx, dword [ebp - 0x10]
mov edi, eax
lea ecx, [ecx*2 + 2]
push ecx
push 0
push edi
call fcn.00506c70
push dword [ebp - 0x10]
lea eax, [ebp]
push eax
push edi
call fcn.00506640
add esp, 0x1c
mov ecx, ebx
push edi
call fcn.004514db
lea ecx, [esi - 0x10]
call fcn.0044ec01
mov ecx, dword [ebp + 0x1394]
lea ecx, [ecx - 0x10]
call fcn.0044ec01
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x1388]
xor ecx, ebp
call fcn.0049b511
add ebp, 0x138c
leave
ret
Function at 0x689de4
Capabilities:
Check os version
Get token membership

Disassembly:
push 0x18c
mov eax, 0x6a3538
call fcn.0049bec7
xor edi, edi
mov dword [ebp - 0x178], 0x114
push 0x110
lea eax, [ebp - 0x174]
mov dword [ebp - 0x188], edi
push edi
push eax
mov dword [ebp - 0x17c], edi
mov dword [ebp - 0x180], edi
mov dword [ebp - 0x184], edi
call fcn.00506c70
add esp, 0xc
lea ecx, [ebp - 0x198]
call fcn.004750e4
lea eax, [ebp - 0x17c]
mov dword [ebp - 4], edi
push eax
push 0xa
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x689f43
lea eax, [ebp - 0x178]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x689f43
cmp dword [ebp - 0x174], 6
jb 0x689ecb
mov esi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea eax, [ebp - 0x184]
push eax
push 4
lea eax, [ebp - 0x18c]
push eax
push 0x12
push dword [ebp - 0x17c]
call esi
test eax, eax
je 0x689f43
cmp dword [ebp - 0x18c], 3
jne 0x689ee4
lea eax, [ebp - 0x184]
push eax
push 4
lea eax, [ebp - 0x180]
push eax
push 0x13
push dword [ebp - 0x17c]
call esi
test eax, eax
jne 0x689ee4
jmp 0x689f43
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
push eax
push str.Os_below_vista_IsAdmin_d
mov dword [ebp - 0x188], eax
call fcn.006778de
pop ecx
pop ecx
cmp dword [ebp - 0x180], 0
jne 0x689f06
lea eax, [ebp - 0x180]
push eax
push 1
push dword [ebp - 0x17c]
call dword [sym.imp.ADVAPI32.dll_DuplicateToken]
test eax, eax
je 0x689f43
lea eax, [ebp - 0x184]
mov dword [ebp - 0x184], 0x44
push eax
lea eax, [ebp - 0x60]
push eax
push edi
push 0x1a
call dword [sym.imp.ADVAPI32.dll_CreateWellKnownSid]
test eax, eax
je 0x689f43
lea eax, [ebp - 0x188]
push eax
lea eax, [ebp - 0x60]
push eax
push dword [ebp - 0x180]
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x689f49
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp - 0x17c], 0
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x689f66
push dword [ebp - 0x17c]
call esi
mov dword [ebp - 0x17c], edi
cmp dword [ebp - 0x180], 0
je 0x689f7d
push dword [ebp - 0x180]
call esi
mov dword [ebp - 0x180], edi
mov dword [ebp - 4], 4
call fcn.004751c7
mov eax, dword [ebp - 0x188]
jmp 0x689fc2
call fcn.0049be14
ret
Function at 0x68a4ce
Capabilities:
Get common file path

Disassembly:
sub esp, 0x21c
mov eax, dword [0x79b544]
xor eax, esp
mov dword [esp + 0x214], eax
push ebx
push ebp
mov ebp, dword [esp + 0x228]
lea eax, [esp + 0x10]
push esi
mov esi, dword [esp + 0x230]
mov ebx, ecx
push edi
push eax
xor edi, edi
mov dword [esp + 0x18], ebx
push edi
push edi
push edx
push edi
mov dword [esp + 0x28], ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov dword [esi], eax
test eax, eax
jne 0x68a518
inc edi
jmp 0x68a525
push eax
push str.SHGetFolderPath_returned_error_:__d
call fcn.00677763
pop ecx
pop ecx
lea eax, [esp + 0x18]
mov dword [ebp], edi
push eax
mov ecx, ebx
call fcn.004514db
mov ecx, dword [esp + 0x224]
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0049b511
add esp, 0x21c
ret

Function at 0x68b007
Capabilities:
Delete service

Disassembly:
push 0
mov eax, 0x6a3745
call fcn.0049be25
xor edi, edi
push 1
push edi
push edi
mov dword [ebp - 4], edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
test esi, esi
jne 0x68b040
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._UninstallService_OpenSCManager_failed___d_
call fcn.006778de
pop ecx
pop ecx
jmp 0x68b0c2
push 0x10000
push dword [ebp + 8]
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebx, eax
test ebx, ebx
jne 0x68b071
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._UninstallService_OpenService_failed___d_
call fcn.006778de
pop ecx
pop ecx
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x68b0c2
push ebx
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x68b08f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._UninstallService_DeleteService_failed_with_errorcode_d
call fcn.006778de
jmp 0x68b0b4
mov eax, dword [ebp + 8]
cmp dword [eax - 4], 1
jle 0x68b0a6
push dword [eax - 0xc]
lea ecx, [ebp + 8]
call fcn.00451ca4
mov eax, dword [ebp + 8]
push eax
push str._UninstallService__s_Service_deleted_Succesfully
call fcn.006778de
xor edi, edi
inc edi
pop ecx
pop ecx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push ebx
call esi
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.0044ec01
mov eax, edi
call fcn.0049bdee
ret
Function at 0x68b0d5
Capabilities:
Check for time delay via gettickcount
Query service status
Stop service

Disassembly:
push 0x30
mov eax, 0x6a3768
call fcn.0049be59
xor ebx, ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0xd
pop edi
push 1
push ebx
push ebx
mov dword [ebp - 0x3c], eax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
test ebx, ebx
jne 0x68b11c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push edi
push str.OpenSCManager_failed___d_
call fcn.006778de
pop ecx
pop ecx
jmp 0x68b27b
push 0x24
push dword [ebp + 8]
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
jne 0x68b14f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push edi
push str.OpenService_failed___d_
call fcn.006778de
pop ecx
pop ecx
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x68b27b
lea eax, [ebp - 0x38]
push eax
push 0x24
lea eax, [ebp - 0x34]
push eax
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
jne 0x68b17f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push edi
push str.QueryServiceStatusEx_failed___d_
call fcn.006778de
pop ecx
jmp 0x68b26e
cmp dword [ebp - 0x30], 1
jne 0x68b1ec
push str.Service_is_already_stopped.
jmp 0x68b269
push str.Service_stop_pending...
call fcn.006778de
mov eax, dword [ebp - 0x1c]
xor edx, edx
pop ecx
push 0xa
pop ecx
div ecx
mov ecx, 0x3e8
cmp eax, ecx
jb 0x68b1b6
mov ecx, 0x2710
cmp eax, ecx
jbe 0x68b1b8
mov eax, ecx
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x38]
push eax
push 0x24
lea eax, [ebp - 0x34]
push eax
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x68b166
cmp dword [ebp - 0x30], 1
je 0x68b21d
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x3c]
cmp eax, 0x7530
ja 0x68b216
cmp dword [ebp - 0x30], 3
je 0x68b18f
lea eax, [ebp - 0x34]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x68b25e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push edi
push str.ControlService_failed___d_
jmp 0x68b174
push str.Service_stop_timed_out.
jmp 0x68b269
push str.Service_stopped_successfully.
jmp 0x68b269
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x38]
push eax
push 0x24
lea eax, [ebp - 0x34]
push eax
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x68b166
cmp dword [ebp - 0x30], 1
je 0x68b264
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x3c]
cmp eax, 0x7530
ja 0x68b28e
cmp dword [ebp - 0x30], 1
jne 0x68b224
push str.Service_stopped_successfully
call fcn.006778de
pop ecx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push ebx
call esi
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
call fcn.0044ec01
mov eax, edi
call fcn.0049be03
ret
push str.Wait_timed_out
jmp 0x68b269
Function at 0x68b295
Capabilities:
Query service status

Disassembly:
push 0x20
mov eax, 0x6a3795
call fcn.0049be59
push 0xd
pop edi
xor eax, eax
push 1
push eax
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
test esi, esi
jne 0x68b2cc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.OpenSCManager_failed___d_
call fcn.006778de
pop ecx
pop ecx
push str.Service_mgr_opened
call fcn.006778de
pop ecx
push 4
push dword [ebp + 8]
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebx, eax
test ebx, ebx
jne 0x68b307
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push edi
push str.OpenService_failed___d_
call fcn.006778de
pop ecx
pop ecx
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x68b349
push str.Service_opened
call fcn.006778de
pop ecx
lea eax, [ebp - 0x2c]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x68b326
mov edi, dword [ebp - 0x28]
jmp 0x68b339
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.QueryService_failed___d_
call fcn.006778de
pop ecx
pop ecx
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call ebx
test esi, esi
je 0x68b349
push esi
call ebx
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.0044ec01
mov eax, edi
call fcn.0049be03
ret
Function at 0x68cb3d
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
cmp byte [ebp + 0xc], 0
push ebx
push esi
mov esi, ecx
je 0x68cb5e
and byte [esi + 0xc], 1
mov al, byte [esi + 0xc]
je 0x68cb5e
cmp byte [esi + 0x12], 0
je 0x68cb5e
or al, 6
mov byte [esi + 0xc], al
cmp dword [esi + 4], 0
mov ebx, dword [sym.imp.USER32.dll_IsWindow]
je 0x68cbbf
push dword [esi + 4]
call ebx
test eax, eax
je 0x68cba5
cmp dword [ebp + 8], 0
je 0x68cba5
push dword [ebp + 8]
call ebx
test eax, eax
je 0x68cba5
cmp byte [ebp + 0xc], 0
je 0x68cba5
test byte [esi + 0xc], 2
je 0x68cba5
push 8
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [ebp + 8]
mov ecx, esi
call fcn.0068cbc5
jmp 0x68cbbf
cmp dword [esi + 4], 0
je 0x68cbbf
push dword [esi + 4]
call ebx
test eax, eax
je 0x68cbbf
push 0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
pop ebx
pop ebp
ret 8
Function at 0x403793
Capabilities:
Contain obfuscated stackstrings
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov byte [ebp - 0x224], 0x12
mov byte [ebp - 0x223], 0x34
mov byte [ebp - 0x222], 0x56
mov byte [ebp - 0x221], 0x78
mov byte [ebp - 0x220], 0x87
mov byte [ebp - 0x21f], 0x65
mov byte [ebp - 0x21e], 0x34
mov byte [ebp - 0x21d], 0x21
mov byte [ebp - 0x234], 0x12
mov byte [ebp - 0x233], 0x34
mov byte [ebp - 0x232], 0x56
mov byte [ebp - 0x231], 0x79
mov byte [ebp - 0x230], 0x97
mov byte [ebp - 0x22f], 0x65
mov byte [ebp - 0x22e], 0x34
mov byte [ebp - 0x22d], 0x21
mov dword [0x40efe0], 1
push 0x208
lea eax, [ebp - 0x210]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0
push 0
push 3
push 0
push 3
push 0x80000000
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x228], eax
cmp dword [ebp - 0x228], 0xffffffff
je 0x4039c1
push 0
mov edx, dword [ebp - 0x228]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x22c], eax
push 2
push 0
push 0xfffffffffffffff8
mov eax, dword [ebp - 0x228]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea ecx, [ebp - 0x218]
push ecx
push 8
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp - 0x228]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x214], eax
cmp dword [ebp - 0x214], 0
jne 0x4038c0
mov ecx, dword [ebp - 0x228]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x4039c3
push 8
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 0x234]
push eax
call fcn.0040bbd0
add esp, 0xc
test eax, eax
je 0x4038e0
xor eax, eax
jmp 0x4039c3
push 2
push 0
push 0xfffffffffffffff4
mov ecx, dword [ebp - 0x228]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea edx, [ebp - 0x218]
push edx
push 4
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x228]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x214], eax
cmp dword [ebp - 0x214], 0
jne 0x403932
mov edx, dword [ebp - 0x228]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x4039c3
push 4
push 0x1000
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [0x411684], eax
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x22c]
sub eax, dword [edx]
sub eax, 0xc
mov dword [ebp - 0x21c], eax
push 0
push 0
mov ecx, dword [ebp - 0x21c]
push ecx
mov edx, dword [ebp - 0x228]
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 0x218]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push edx
mov eax, dword [0x411684]
push eax
mov ecx, dword [ebp - 0x228]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x214], eax
cmp dword [ebp - 0x214], 0
jne 0x4039ba
mov edx, dword [ebp - 0x228]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x4039c3
mov eax, 1
jmp 0x4039c3
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x403b1b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2464
call fcn.0040bc80
push 0x2350
push 0x69
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 0x2464], eax
cmp dword [ebp - 0x2464], 0
jne 0x403b5e
mov ecx, dword [ebp + 0x14]
push ecx
call fcn.00403793
add esp, 4
test eax, eax
je 0x403b5a
jmp 0x403bbe
xor eax, eax
jmp 0x403bc0
mov edx, dword [ebp - 0x2464]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x2358], eax
cmp dword [ebp - 0x2358], 0
jne 0x403b82
xor eax, eax
jmp 0x403bc0
mov ecx, dword [ebp - 0x2358]
push ecx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [0x411684], eax
cmp dword [0x411684], 0
jne 0x403ba1
xor eax, eax
jmp 0x403bc0
mov edx, dword [ebp - 0x2464]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
mov eax, 1
jmp 0x403bc0
jmp 0x403bb7
mov esp, ebp
pop ebp
ret
Function at 0x404ffa
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0xc]
xor ecx, ecx
mov cx, word [eax + 0x14]
mov edx, dword [ebp + 0xc]
lea eax, [edx + ecx + 0x18]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0
jmp 0x40502e
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 4]
add edx, 0x28
mov dword [ebp - 4], edx
mov eax, dword [ebp + 0xc]
xor ecx, ecx
mov cx, word [eax + 6]
cmp dword [ebp - 8], ecx
jae 0x405074
mov edx, dword [ebp - 4]
mov eax, dword [edx + 8]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x405054
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x10]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
cmp ecx, dword [eax + 0xc]
jb 0x405072
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0xc]
add eax, dword [ebp - 0xc]
cmp dword [ebp + 8], eax
jae 0x405072
mov eax, dword [ebp - 4]
jmp 0x405076
jmp 0x40501c
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x405537
Capabilities:
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x1c], 0x9e3779b9
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
mov dword [ebp - 0x20], eax
mov dword [ebp - 8], 0
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
mov dword [ebp - 4], edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 4]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 8]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0xc]
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x24], 0x20
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x24]
sub ecx, 1
mov dword [ebp - 0x24], ecx
test eax, eax
jle 0x4055ef
mov edx, dword [ebp - 8]
sub edx, 0x61c88647
mov dword [ebp - 8], edx
mov eax, dword [ebp - 0x20]
shl eax, 4
add eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x20]
add ecx, dword [ebp - 8]
xor eax, ecx
mov edx, dword [ebp - 0x20]
shr edx, 5
add edx, dword [ebp - 0xc]
xor eax, edx
mov ecx, dword [ebp - 0x18]
add ecx, eax
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x18]
shl edx, 4
add edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x18]
add eax, dword [ebp - 8]
xor edx, eax
mov ecx, dword [ebp - 0x18]
shr ecx, 5
add ecx, dword [ebp - 0x14]
xor edx, ecx
mov eax, dword [ebp - 0x20]
add eax, edx
mov dword [ebp - 0x20], eax
jmp 0x405589
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x18]
mov dword [ecx], edx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x20]
mov dword [eax + 4], ecx
mov esp, ebp
pop ebp
ret 8
Function at 0x405606
Capabilities:
Decrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x1c], 0x9e3779b9
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
mov dword [ebp - 0x20], eax
mov dword [ebp - 8], 0xc6ef3720
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
mov dword [ebp - 4], edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 4]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 8]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0xc]
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x24], 0x20
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x24]
sub ecx, 1
mov dword [ebp - 0x24], ecx
test eax, eax
jle 0x4056bd
mov edx, dword [ebp - 0x18]
shl edx, 4
add edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x18]
add eax, dword [ebp - 8]
xor edx, eax
mov ecx, dword [ebp - 0x18]
shr ecx, 5
add ecx, dword [ebp - 0x14]
xor edx, ecx
mov eax, dword [ebp - 0x20]
sub eax, edx
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
shl ecx, 4
add ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x20]
add edx, dword [ebp - 8]
xor ecx, edx
mov eax, dword [ebp - 0x20]
shr eax, 5
add eax, dword [ebp - 0xc]
xor ecx, eax
mov edx, dword [ebp - 0x18]
sub edx, ecx
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 8]
add eax, 0x61c88647
mov dword [ebp - 8], eax
jmp 0x405658
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x18]
mov dword [ecx], edx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x20]
mov dword [eax + 4], ecx
mov esp, ebp
pop ebp
ret 8