joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401e5c
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
sub esp, 0x214
mov eax, dword [0x43205c]
xor eax, esp
mov dword [esp + 0x210], eax
push ebx
push ebp
push esi
push edi
push str.CopyServiceToRemoteMachine_Starts_n
mov esi, 0x429310
push esi
push dword [0x4331fc]
call fcn.004010f4
add esp, 0xc
xor ebp, ebp
push ebp
mov dword [esp + 0x18], ebp
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.RemComSVC
mov edi, eax
push 0x65
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
cmp ebx, ebp
jne 0x401ecb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.FindResource_RemComSvc__::__d_n
push esi
push dword [0x4331fc]
call fcn.004010f4
add esp, 0x10
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebp
mov dword [esp + 0x10], eax
jne 0x401ef6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.LoadResource_RemComSvc__::__d_n
push esi
push dword [0x4331fc]
call fcn.004010f4
add esp, 0x10
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_LockResource]
cmp eax, ebp
mov dword [esp + 0x10], eax
jne 0x401f2a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.LoadResource_RemComSvc__::__d_n
push esi
push dword [0x4331fc]
call fcn.004010f4
add esp, 0x10
xor eax, eax
jmp 0x402022
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
push edi
push str.SIZE_of_RemComSvc_::__d_n
push esi
push dword [0x4331fc]
call fcn.004010f4
push str.RemComSvc.exe
push dword [0x435f30]
lea eax, [esp + 0x30]
push dword [0x433604]
push str._sADMIN__s_s
push eax
call fcn.00406585
lea eax, [esp + 0x3c]
push eax
push str.RemComSvc.exe_absolute_path_::__ws_n
push esi
push dword [0x4331fc]
call fcn.004010f4
add esp, 0x34
push ebp
push 0x80
push 2
push ebp
push ebp
push 0x40000000
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x401fb9
push str.Failed_at_CreateFile_RemComSvc__n
push esi
push dword [0x4331fc]
call fcn.004010f4
add esp, 0xc
jmp 0x401f23
push ebp
lea eax, [esp + 0x18]
push eax
push edi
push dword [esp + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x401fea
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.WriteFile_RemComSvc.exe__Failed_::__d_n
push esi
push dword [0x4331fc]
call fcn.004010f4
add esp, 0x10
push str.WriteFile_of_RemComSvc.exe__completed_n
push esi
push dword [0x4331fc]
call fcn.004010f4
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.CopyServiceToRemoteMachine_Ends_n
push esi
push dword [0x4331fc]
call fcn.004010f4
xor eax, eax
add esp, 0xc
cmp dword [esp + 0x14], edi
sete al
mov ecx, dword [esp + 0x220]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00405d58
add esp, 0x214
ret
Function at 0x40203b
Capabilities:
Create service
Start service

Disassembly:
push ecx
push edi
push str.InstallAndStartRemoteService_Starts_n
mov edi, 0x429310
push edi
push dword [0x4331fc]
call fcn.004010f4
add esp, 0xc
push 0xf003f
push 0
push dword [0x433604]
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
test eax, eax
mov dword [esp + 4], eax
jne 0x402093
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Failed_in_OpenSCManager_::__d_n
push edi
push dword [0x4331fc]
call fcn.004010f4
add esp, 0x10
xor eax, eax
jmp 0x402220
push ebx
push ebp
push esi
push 0xf01ff
push 0x42a030
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
push dword [0x435f30]
mov ebp, eax
call fcn.004064f7
mov esi, eax
mov dword [esp], str.RemComSvc.exe
call fcn.004064f7
add esi, eax
mov dword [esp], 0x42a02c
call fcn.004064f7
mov ebx, str._SystemRoot__
push ebx
add esi, eax
call fcn.004064f7
xor ecx, ecx
push 2
lea eax, [eax + esi + 1]
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00405952
mov esi, eax
push ebx
push esi
call fcn.00406537
push dword [0x435f30]
push esi
call fcn.0040650d
push 0x42a02c
push esi
call fcn.0040650d
push str.RemComSvc.exe
push esi
call fcn.0040650d
xor ebx, ebx
add esp, 0x2c
cmp ebp, ebx
jne 0x40218f
push str.CreateService_RemComSvc_is_getting_called._n
push edi
push dword [0x4331fc]
call fcn.004010f4
add esp, 0xc
push ebx
push ebx
push ebx
push ebx
push ebx
push esi
push 1
push 3
push 0x10
push 0xf01ff
push str.RemCom_Service
push 0x42a030
push dword [esp + 0x40]
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov ebp, eax
cmp ebp, ebx
jne 0x40218f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CreateService_Failed_::__d_n
push edi
push dword [0x4331fc]
call fcn.004010f4
add esp, 0x10
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x4021e2
push esi
call fcn.004058ef
mov dword [esp], str.StartService_RemComSvc__is_getting_called_n
push edi
push dword [0x4331fc]
call fcn.004010f4
add esp, 0xc
push ebx
push ebx
push ebp
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x4021e6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.StartService_Failed_::__d__n
push edi
push dword [0x4331fc]
call fcn.004010f4
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
add esp, 0x10
push ebp
call esi
push dword [esp + 0x10]
call esi
xor eax, eax
jmp 0x40221d
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebp
call esi
push dword [esp + 0x10]
call esi
push str.RemComSvc_service_started.__n
push edi
push dword [0x4331fc]
call fcn.004010f4
push str.InstallAndStartRemoteService_Ends_n
push edi
push dword [0x4331fc]
call fcn.004010f4
xor eax, eax
add esp, 0x18
inc eax
pop esi
pop ebp
pop ebx
pop edi
pop ecx
ret
Function at 0x4023b6
Capabilities:
Set console window title

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x610
mov eax, dword [0x43205c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
push str.BuildMessageStructure_Starts_n
mov esi, 0x429310
push esi
push dword [0x4331fc]
call fcn.004010f4
push 0x42a5cc
call fcn.00401690
push eax
push str.Working_Dir_Set_::__ws_n
push esi
push dword [0x4331fc]
mov dword [ebp - 0x610], eax
call fcn.004010f4
add esp, 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [edi + 0x220c], eax
lea eax, [edi + 0x2210]
push 0x433200
push eax
call fcn.00406537
push 0x429a50
call fcn.00401642
add esp, 0xc
test eax, eax
jne 0x402479
push str.IsCmdLineParameter__T__c___is_false_n
push esi
push dword [0x4331fc]
call fcn.004010f4
push dword [0x433600]
push dword [0x435f2c]
push str._s__s
push edi
call fcn.00406585
push edi
push str.The_Command_to_RemComCOMM_::__ws_n
push esi
push dword [0x4331fc]
call fcn.004010f4
add esp, 0x2c
jmp 0x402536
push ebx
push str.IsCmdLineParameter__T__c___is_true_n
push esi
push dword [0x4331fc]
call fcn.004010f4
push dword [0x435f30]
call fcn.004064f7
push str._SystemRoot__
mov ebx, eax
call fcn.004064f7
xor ecx, ecx
push 2
lea eax, [ebx + eax + 1]
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00405952
mov ebx, eax
push str._SystemRoot__
push ebx
call fcn.00406537
push dword [0x435f30]
push ebx
call fcn.0040650d
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x40c]
push eax
lea eax, [ebp - 0x60c]
push eax
lea eax, [ebp - 0xc]
push eax
push dword [0x435f2c]
call fcn.00405be5
push dword [0x433600]
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x40c]
push eax
push ebx
push str._s_s_s__s
push edi
call fcn.00406585
add esp, 0x54
push edi
push str.The_Command_to_RemComCOMM_::__ws_n
push esi
push dword [0x4331fc]
call fcn.004010f4
push ebx
call fcn.004058ef
add esp, 0x14
pop ebx
push str.realtime
call fcn.00401642
test eax, eax
pop ecx
je 0x402551
mov dword [edi + 0x2208], 0x100
jmp 0x402587
push str.high
call fcn.00401642
test eax, eax
pop ecx
je 0x40256c
mov dword [edi + 0x2208], 0x80
jmp 0x402587
push str.idle
call fcn.00401642
neg eax
sbb eax, eax
and eax, 0x20
add eax, 0x20
pop ecx
mov dword [edi + 0x2208], eax
push str.nowait
call fcn.00401642
cmp dword [ebp - 0x610], 0
pop ecx
mov dword [edi + 0x2418], eax
je 0x4025b5
push dword [ebp - 0x610]
lea eax, [edi + 0x2000]
push eax
call fcn.00406537
pop ecx
pop ecx
push edi
push dword [0x433604]
mov edi, 0x433608
push str._s_:__s
push edi
call fcn.00406585
add esp, 0x10
push edi
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleW]
push str.BuildMessageStructure_Ends_n
push esi
push dword [0x4331fc]
call fcn.004010f4
mov ecx, dword [ebp - 4]
add esp, 0xc
xor eax, eax
pop edi
xor ecx, ebp
inc eax
pop esi
call fcn.00405d58
leave
ret
Function at 0x402944
Capabilities:
Create thread

Disassembly:
push esi
push edi
push str.ListenToRemoteNamedPipes_Starts_n
mov esi, 0x429310
push esi
push dword [0x4331fc]
call fcn.004010f4
xor edi, edi
push edi
push edi
push 0x4025fb
call fcn.004068b8
push edi
push edi
push 0x40275e
call fcn.004068b8
push edi
push edi
push 0x40285f
call fcn.004068b8
push str.ListenToRemoteNamedPipes_Ends_n
push esi
push dword [0x4331fc]
call fcn.004010f4
add esp, 0x3c
pop edi
pop esi
ret

Function at 0x402cf7
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x23ac]
mov eax, 0x242c
call fcn.00406a90
mov eax, dword [0x43205c]
xor eax, ebp
mov dword [ebp + 0x23a8], eax
push ebx
push esi
push edi
push str.ExecuteRemoteCommand_Starts_n
mov esi, 0x429310
push esi
push dword [0x4331fc]
call fcn.004010f4
mov edi, 0x241c
xor ebx, ebx
push edi
lea eax, [ebp - 0x74]
push ebx
push eax
mov dword [ebp - 0x80], ebx
call fcn.00406740
push 8
lea eax, [ebp - 0x7c]
push ebx
push eax
call fcn.00406740
lea eax, [ebp - 0x74]
push eax
call fcn.004023b6
add esp, 0x28
push ebx
lea eax, [ebp - 0x80]
push eax
push edi
lea eax, [ebp - 0x74]
push eax
push dword [0x43200c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
jne 0x402d93
call edi
push eax
push str.WriteFile_on_RemComCOMM_Failed_::__d_n
push esi
push dword [0x4331fc]
call fcn.004010f4
add esp, 0x10
push 0x3e8
push 5
call fcn.00402999
test eax, eax
pop ecx
pop ecx
je 0x402e13
push str.ConnectToRemotePipes_Success_n
push esi
push dword [0x4331fc]
call fcn.004010f4
add esp, 0xc
push str.Ok_n_n
push 0x429378
call fcn.00405dc6
add eax, 0x20
push eax
call fcn.004051d3
call fcn.00405dc6
add eax, 0x20
push eax
call fcn.00405177
add esp, 0x10
push ebx
lea eax, [ebp - 0x80]
push eax
push 8
lea eax, [ebp - 0x7c]
push eax
push dword [0x43200c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x402e53
call edi
push eax
push str.ReadFile_Failed_::__d_n
push esi
push dword [0x4331fc]
call fcn.004010f4
jmp 0x402e50
call edi
push eax
push str.ConnectToRemotePipes_Failed_::__d_n
push esi
push dword [0x4331fc]
call fcn.004010f4
add esp, 0x10
push str.Failed_n_n
push 0x429378
call fcn.00405dc6
add eax, 0x20
push eax
call fcn.004051d3
call fcn.00405dc6
add eax, 0x20
push eax
call fcn.00405177
add esp, 0x10
cmp dword [ebp - 0x7c], ebx
jne 0x402e75
push dword [ebp - 0x78]
push dword [ebp - 0x78]
push str._nRemote_command_returned__d_0x_X__n
call fcn.0040696f
push dword [ebp - 0x78]
push dword [ebp - 0x78]
push str.Remote_Command_Returned__d_0x_X__n
jmp 0x402e90
push dword [ebp - 0x7c]
push dword [ebp - 0x7c]
push str._nRemote_command_failed_to_start._Returned_error_code_is__d_0x_X__n
call fcn.0040696f
push dword [ebp - 0x78]
push dword [ebp - 0x78]
push str.Remote_command_Failed_to_start_::__d_0x_X__n
push 0x42af1c
push dword [0x4331fc]
call fcn.004010f4
add esp, 0x20
push str.ExecuteRemoteCommand_Ends_n
push esi
push dword [0x4331fc]
call fcn.004010f4
mov ecx, dword [ebp + 0x23a8]
add esp, 0xc
pop edi
xor eax, eax
pop esi
xor ecx, ebp
inc eax
pop ebx
call fcn.00405d58
add ebp, 0x23ac
leave
ret
Function at 0x403bdc
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
push esi
push 0xc
xor esi, esi
lea eax, [ebp - 0xc]
push esi
push eax
call fcn.00406740
push 0x44
lea eax, [ebp - 0x60]
push esi
push eax
mov dword [ebp - 0xc], 0xc
mov dword [ebp - 4], 1
call fcn.00406740
push 0x10
lea eax, [ebp - 0x1c]
push esi
push eax
mov dword [ebp - 0x60], 0x44
call fcn.00406740
mov eax, dword [0x432014]
add esp, 0x24
mov dword [ebp - 0x28], eax
mov eax, dword [0x432010]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x60]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x403c59
call fcn.004012a7
xor eax, eax
jmp 0x403c77
push 0xffffffffffffffff
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x1c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x18]
call esi
xor eax, eax
inc eax
pop esi
leave
ret

Function at 0x403db1
Capabilities:
Query service status
Start service

Disassembly:
push ecx
push ecx
push edi
push 0xf003f
xor edi, edi
push edi
push dword [0x433604]
mov dword [esp + 0x10], edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
cmp eax, edi
mov dword [esp + 8], eax
je 0x403e51
push esi
push 0xf01ff
push dword [esp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
cmp esi, edi
je 0x403e46
push edi
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
je 0x403e3f
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
push ebx
push ebp
push 0x3e8
call edi
mov ebx, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
mov ebp, 0x4331e0
jmp 0x403e24
cmp dword [0x4331e4], 2
jne 0x403e2c
push 0x3e8
call edi
push ebp
push esi
call ebx
test eax, eax
jne 0x403e14
cmp dword [0x4331e4], 4
pop ebp
pop ebx
jne 0x403e3f
mov dword [esp + 8], 1
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
mov eax, dword [esp + 4]
pop edi
pop ecx
pop ecx
ret

Function at 0x403e59
Capabilities:
Query service status
Stop service

Disassembly:
push ecx
push 0xf003f
push 0
push dword [0x433604]
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
test eax, eax
mov dword [esp], eax
je 0x403ee3
push edi
push 0xf01ff
push dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
test edi, edi
je 0x403ed8
push esi
mov esi, 0x4331e0
push esi
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x403ed0
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
push ebp
push 0x3e8
call ebx
mov ebp, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
jmp 0x403ec6
cmp dword [0x4331e4], 3
jne 0x403ece
push 0x3e8
call ebx
push esi
push edi
call ebp
test eax, eax
jne 0x403eb6
pop ebp
pop ebx
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
push dword [esp + 4]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
pop ecx
ret
Function at 0x403ee5
Capabilities:
Get cpu information
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x18c]
sub esp, 0x20c
mov eax, dword [0x43205c]
xor eax, ebp
mov dword [ebp + 0x188], eax
and dword [ebp - 0x7c], 0
push ebx
push esi
push edi
push 0x800
mov dword [ebp - 0x80], 0xfa
call fcn.00405952
mov esi, dword [sym.imp.ADVAPI32.dll_RegConnectRegistryW]
pop ecx
mov dword [ebp - 0x74], eax
lea eax, [ebp - 0x70]
push eax
mov edi, 0x80000002
push edi
push dword [0x433604]
call esi
mov ebx, eax
test ebx, ebx
je 0x403f5f
push str.RemoteRegistry
call fcn.00403db1
test eax, eax
pop ecx
mov dword [ebp - 0x7c], eax
je 0x403f5b
lea eax, [ebp - 0x70]
push eax
push edi
push dword [0x433604]
call esi
mov ebx, eax
test ebx, ebx
jne 0x403fd5
lea eax, [ebp - 0x78]
push eax
push 1
push 0
push str.HARDWAREDESCRIPTIONSystemCentralProcessor0
push dword [ebp - 0x70]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x403fca
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x6c]
push eax
push 0
push 0
push str.Identifier
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x403fc1
lea eax, [ebp - 0x6c]
push 0x42c598
push eax
call fcn.00405d67
test eax, eax
pop ecx
pop ecx
je 0x403fb2
push str.SysWOW64
jmp 0x403fb7
push str.system32
push dword [ebp - 0x74]
call fcn.00406537
pop ecx
pop ecx
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x70]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x403fe4
push str.system32
push dword [ebp - 0x74]
call fcn.00406537
pop ecx
pop ecx
xor edi, edi
cmp dword [ebp - 0x7c], edi
je 0x403ff6
push str.RemoteRegistry
call fcn.00403e59
pop ecx
cmp dword [ebp - 0x70], edi
je 0x404010
push dword [ebp - 0x70]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
cmp dword [ebp - 0x70], edi
je 0x404010
push dword [ebp - 0x78]
call esi
mov ecx, dword [ebp + 0x188]
mov eax, dword [ebp - 0x74]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00405d58
add ebp, 0x18c
leave
ret
Function at 0x405d58
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x43205c]
jne 0x405d62
repz ret
jmp fcn.0040ecbf

Function at 0x417015
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0040dc0f
xor ebx, ebx
cmp dword [0x436adc], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x4170ea
push 0x42db28
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x417055
xor eax, eax
jmp 0x4171ae
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x42db1c
push edi
call esi
cmp eax, ebx
je 0x41704e
push eax
call fcn.0040dbac
mov dword [esp], 0x42db0c
push edi
mov dword [0x436adc], eax
call esi
push eax
call fcn.0040dbac
mov dword [esp], 0x42daf8
push edi
mov dword [0x436ae0], eax
call esi
push eax
call fcn.0040dbac
mov dword [0x436ae4], eax
lea eax, [ebp - 8]
push eax
call fcn.00405fea
test eax, eax
pop ecx
pop ecx
je 0x4170b8
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040801f
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x4170ea
push 0x42dadc
push edi
call esi
push eax
call fcn.0040dbac
cmp eax, ebx
pop ecx
mov dword [0x436aec], eax
je 0x4170ea
push 0x42dac4
push edi
call esi
push eax
call fcn.0040dbac
pop ecx
mov dword [0x436ae8], eax
mov eax, dword [0x436ae8]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x417163
cmp dword [0x436aec], esi
je 0x417163
push eax
call fcn.0040dc18
pop ecx
call eax
cmp eax, ebx
je 0x417130
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x436aec]
call fcn.0040dc18
pop ecx
call eax
test eax, eax
je 0x417130
test byte [ebp - 0x18], 1
jne 0x417163
lea eax, [ebp - 0xc]
push eax
call fcn.00406099
test eax, eax
pop ecx
je 0x41714b
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040801f
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x41715a
or dword [ebp + 0x10], 0x200000
jmp 0x417194
or dword [ebp + 0x10], 0x40000
jmp 0x417194
mov eax, dword [0x436ae0]
cmp eax, esi
je 0x417194
push eax
call fcn.0040dc18
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x417194
mov eax, dword [0x436ae4]
cmp eax, esi
je 0x417194
push dword [ebp - 4]
push eax
call fcn.0040dc18
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x436adc]
call fcn.0040dc18
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401ee2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x411280]
jne 0x401eec
repz ret
jmp fcn.00404369

Function at 0x4025e7
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
push 0x14
push 0x40f530
call fcn.00403770
mov eax, 0x5a4d
cmp word [0x400000], ax
jne 0x4024e7
mov eax, dword [0x40003c]
cmp dword [eax + 0x400000], 0x4550
jne 0x4024e7
mov ecx, 0x10b
cmp word [eax + 0x400018], cx
jne 0x4024e7
cmp dword [eax + 0x400074], 0xe
jbe 0x4024e7
xor ecx, ecx
cmp dword [eax + 0x4000e8], ecx
setne cl
mov dword [ebp - 0x1c], ecx
jmp 0x4024eb
and dword [ebp - 0x1c], 0
push 1
call fcn.0040a7e3
pop ecx
test eax, eax
jne 0x4024ff
push 0x1c
call fcn.0040a7e3
pop ecx
call fcn.00405287
test eax, eax
jne 0x402510
push 0x10
call fcn.0040a7e3
pop ecx
call fcn.00405952
and dword [ebp - 4], 0
call fcn.004032ff
test eax, eax
jge 0x40252a
push 0x1b
call fcn.0040a7e3
pop ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x412ba0], eax
call fcn.0040a7e3
mov dword [0x41203c], eax
call fcn.0040a7e3
test eax, eax
jge 0x402550
push 8
call fcn.0040a7e3
pop ecx
call fcn.00405fde
test eax, eax
jge 0x402561
push 9
call fcn.0040a7e3
pop ecx
push 1
call fcn.0040a7e3
pop ecx
test eax, eax
je 0x402574
push eax
call fcn.0040a7e3
pop ecx
mov eax, dword [0x412018]
mov dword [0x41201c], eax
push eax
push dword [0x412010]
push dword [0x41200c]
call main
add esp, 0xc
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x1c], 0
jne 0x4025a2
push eax
call fcn.0040a7e3
call fcn.00402400
jmp 0x4025d7
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x20]
call fcn.004037b5
ret
call fcn.0040a7e3
jmp 0x402495

Function at 0x40a7e3
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
pushal
call 0x40a7f2
pop dword [ebp - 0x4c]
mov eax, 0x40a7f2
sub dword [ebp - 0x4c], eax
push 0x40
push 0x1000
push 0x39eef
push 0
mov eax, 0xc048b240
add eax, 0x3ff82e98
add eax, dword [ebp - 0x4c]
call dword [eax]
mov ecx, 0x4ae6
mov ebx, eax
mov esi, 0xc9eea4c
add esi, 0xf3a25178
add esi, dword [ebp - 0x4c]
mov edx, 0xc410ab95
add edx, 0xecc2f61d
xor dword [ebp - 0x14], 0xb36fd970
mov edi, dword [esi]
add dword [ebp - 0x38], 0x8de001fb
sub edi, edx
xor dword [ebp - 0x24], ecx
mov dword [ebx], edi
add dword [ebp - 0x28], 0x8229337
add ebx, 4
add esi, 0x3c663b15
sub esi, 0x3c663b11
loop 0x40a846
add eax, 0x1c2bf331
sub eax, 0x1c2ad4c6
mov ebx, eax
add eax, 0x274ed5db
add eax, 0xd8b12a2a
mov ecx, 0x400000
add ecx, dword [ebp - 0x4c]
call ebx
leave
ret
Function at 0x404d70
Capabilities:
Delete file
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x314
mov eax, dword [0x5294ac]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
cmp dword [ebx], 0
jne 0x404e31
push 0x104
lea eax, [ebp - 0x108]
push 0
push eax
call fcn.004711f0
add esp, 0xc
lea eax, [ebp - 0x108]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x404e1b
push edi
push 0x104
lea edi, [ebx + 4]
push 0
push edi
call fcn.004711f0
add esp, 0xc
lea eax, [ebp - 0x108]
push edi
push 0
push 0x4f28f0
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push str..bat
push edi
call dword [sym.imp.SHLWAPI.dll_PathRenameExtensionA]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
push 0x80
push 4
push 0
push 7
push 0xc01200a0
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebx], eax
pop edi
cmp dword [ebx], 0
jne 0x404e31
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004641d8
mov esp, ebp
pop ebp
ret
push 0x208
lea eax, [ebp - 0x310]
push 0
push eax
call fcn.004711f0
add esp, 0xc
mov dword [ebp - 0x314], 0
lea eax, [ebp + 0x10]
push eax
push 0
push dword [ebp + 0xc]
lea eax, [ebp - 0x310]
push 0x207
push eax
call fcn.00404f00
mov ecx, dword [eax]
push dword [eax + 4]
or ecx, 1
push ecx
call fcn.0048c1e1
or ecx, 0xffffffff
add esp, 0x1c
test eax, eax
cmovs eax, ecx
test eax, eax
js 0x404e91
cmp eax, 0x207
ja 0x404e91
jne 0x404e98
mov byte [ebp - 0x109], 0
lea ecx, [ebp - 0x310]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x404ea1
push 0
lea eax, [ebp - 0x314]
sub ecx, edx
push eax
push ecx
lea eax, [ebp - 0x310]
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004641d8
mov esp, ebp
pop ebp
ret
Function at 0x407550
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4075a9
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4075a9
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x40759a
cmp esi, edx
jae 0x4075a9
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x407588
cmp esi, edx
jae 0x4075a9
cmp word [esi], 0
je 0x4075a9
mov eax, esi
pop esi
pop ebp
ret
xor eax, eax
pop esi
pop ebp
ret