joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4ccc15
Capabilities:
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50e69b
mov eax, dword fs:[0]
push eax
mov eax, 0x2994
call fcn.004fb440
mov eax, dword [0x56600c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2998], edx
mov esi, ecx
mov dword [ebp - 0x299c], esi
mov edi, 0x536e9c
mov dword [ebp - 0x29a0], esi
xor ebx, ebx
mov edx, 0xe6
mov ecx, edi
mov dword [ebp - 0x2994], ebx
call fcn.004cb7ef
lea eax, [ebp - 0x299c]
mov dword [ebp - 0x299c], 0x2880
push eax
lea eax, [ebp - 0x2990]
push eax
call dword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
test eax, eax
je 0x4cccb3
mov edx, 0xf1
mov ecx, edi
call fcn.004cb7ef
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], 0xf
mov byte [esi], bl
jmp 0x4ccde8
mov edx, 0xf7
lea edi, [ebp - 0x2990]
mov ecx, 0x536e9c
call fcn.004cb7ef
cmp byte [edi + 0x196], 0
jne 0x4ccd34
cmp byte [edi + 0x197], 0
jne 0x4ccd34
cmp byte [edi + 0x198], 0
jne 0x4ccd34
cmp byte [edi + 0x199], 0
jne 0x4ccd34
mov edx, 0x10d
mov ecx, 0x536e9c
call fcn.004cb7ef
cmp dword [ebp - 0x2998], ebx
jne 0x4ccd51
mov edx, 0x110
mov ecx, 0x536e9c
call fcn.004cb7ef
mov edx, 0x119
mov ecx, 0x536e9c
call fcn.004cb7ef
xor ebx, ebx
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
mov byte [esi], bl
jmp 0x4ccde8
mov edx, 0xff
mov ecx, 0x536e9c
call fcn.004cb7ef
mov eax, dword [ebp - 0x2998]
test eax, eax
js 0x4ccd5e
cmp eax, ebx
je 0x4ccd5e
mov edi, dword [edi]
inc ebx
test edi, edi
jne 0x4cccc8
jmp 0x4ccd12
mov edx, 0x102
mov ecx, 0x536e9c
call fcn.004cb7ef
movzx eax, byte [edi + 0x199]
push eax
movzx eax, byte [edi + 0x198]
push eax
movzx eax, byte [edi + 0x197]
push eax
movzx eax, byte [edi + 0x196]
push eax
movzx eax, byte [edi + 0x195]
push eax
movzx eax, byte [edi + 0x194]
push eax
push str._02X__02X__02X__02X__02X__02X
lea eax, [ebp - 0x110]
push 0x100
push eax
call fcn.004cdf34
add esp, 0x24
mov dword [esi + 0x14], 0xf
xor ebx, ebx
lea ecx, [ebp - 0x110]
mov dword [esi + 0x10], ebx
lea edx, [ecx + 1]
mov byte [ebp - 0x11], bl
mov byte [esi], bl
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4ccdd0
sub ecx, edx
lea eax, [ebp - 0x110]
push ecx
push eax
mov ecx, esi
call fcn.004592f7
mov dword [ebp - 4], ebx
mov dword [ebp - 0x2994], 1
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00478339
leave
ret
Function at 0x4d002b
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, ecx
sub esp, 0xc
cmp byte [edx], 0
je 0x4d0061
push esi
xor esi, esi
cmp dword [edx + 0x3c8], esi
jle 0x4d005c
mov ecx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
sub edi, ecx
mov al, byte [edi + ecx]
xor byte [ecx], al
inc ecx
inc esi
cmp esi, dword [edx + 0x3c8]
jl 0x4d004c
pop edi
pop esi
leave
ret 8
push dword [0x56717c]
lea ecx, [ebp - 0xc]
call fcn.004589e1
push 0x56125c
lea eax, [ebp - 0xc]
push eax
call fcn.004d4a8e
int3

Function at 0x4d2a34
Capabilities:
Parse pe header

Disassembly:
push 0x144
mov eax, 0x50f138
call fcn.004fb730
mov edi, ecx
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push eax
call fcn.004d321f
and dword [ebp - 4], 0
lea eax, [ebp - 0x124]
push eax
push 0x40
lea ecx, [ebp - 0x2c]
call fcn.004d3362
mov eax, 0x5a4d
cmp word [ebp - 0x124], ax
jne 0x4d2b8f
push dword [ebp - 0xe8]
lea ecx, [ebp - 0x2c]
call fcn.004d334c
lea esi, [edi + 0x10]
push esi
push 0xf8
lea ecx, [ebp - 0x2c]
call fcn.004d3362
cmp dword [esi], 0x4550
je 0x4d2acd
push str.WT::System::PEUtils::PEFile::Parse
push 0x32
push str.E:_bamboo_agent_home_2xml_data_build_dirPGSC_MON_JOB1monolith_sourcePhoenixWtSystemPEUtilsPEFile.cpp
push ecx
push ecx
mov ecx, esp
push str.Not_a_PE_file
call fcn.004591ee
lea ecx, [ebp - 0x88]
call fcn.004b3e15
mov byte [ebp - 4], 2
jmp 0x4d2bb8
movzx eax, word [edi + 0x28]
mov ecx, 0x10b
cmp ax, cx
je 0x4d2b48
mov ecx, 0x20b
cmp ax, cx
je 0x4d2b13
push str.WT::System::PEUtils::PEFile::Parse
push 0x40
push str.E:_bamboo_agent_home_2xml_data_build_dirPGSC_MON_JOB1monolith_sourcePhoenixWtSystemPEUtilsPEFile.cpp
push ecx
push ecx
mov ecx, esp
push str.Not_an_NT_image
call fcn.004591ee
lea ecx, [ebp - 0x88]
call fcn.004b3e15
mov byte [ebp - 4], 3
jmp 0x4d2bb8
push dword [ebp - 0xe8]
lea ecx, [ebp - 0x2c]
mov byte [edi + 0xc], 0
call fcn.004d334c
lea eax, [edi + 0x108]
push eax
push 0x108
lea ecx, [ebp - 0x2c]
call fcn.004d3362
cmp byte [edi + 0xc], 0
jne 0x4d2b4c
movzx eax, word [edi + 0x10e]
jmp 0x4d2b50
mov byte [edi + 0xc], 1
movzx eax, word [edi + 0x16]
movzx esi, ax
test esi, esi
je 0x4d2b7b
lea eax, [ebp - 0x14c]
push eax
push 0x28
lea ecx, [ebp - 0x2c]
call fcn.004d3362
lea eax, [ebp - 0x14c]
mov ecx, edi
push eax
call fcn.004d28ca
sub esi, 1
jne 0x4d2b57
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.004d32fd
call fcn.004fb6da
ret 4
push str.WT::System::PEUtils::PEFile::Parse
push 0x2a
push str.E:_bamboo_agent_home_2xml_data_build_dirPGSC_MON_JOB1monolith_sourcePhoenixWtSystemPEUtilsPEFile.cpp
push ecx
push ecx
mov ecx, esp
push str.Not_a_PE_file
call fcn.004591ee
lea ecx, [ebp - 0x88]
call fcn.004b3e15
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x88]
call fcn.004b4228
lea eax, [ebp - 0x88]
push eax
lea ecx, [ebp - 0xe4]
call fcn.004b3c43
push 0x5626ac
lea eax, [ebp - 0xe4]
push eax
call fcn.004d4a8e
int3
Function at 0x4d3362
Capabilities:
Read file on windows

Disassembly:
push 0xdc
mov eax, 0x50f28b
call fcn.004fb730
mov esi, ecx
push dword [esi]
mov eax, dword [ebp + 0xc]
push dword [ebp + 8]
push 1
push eax
call fcn.004da12b
add esp, 0x10
cmp eax, dword [ebp + 8]
jne 0x4d3393
call fcn.004fb6da
ret 8
lea eax, [esi + 4]
mov edx, str.Could_not_read_the_desired_number_of_bytes:
push eax
lea ecx, [ebp - 0x28]
call fcn.004ad389
and dword [ebp - 4], 0
lea ecx, [ebp - 0xe8]
push ecx
mov ecx, eax
call fcn.00457f7a
push str.WT::System::PEUtils::FileReader::ReadBytes
push 0x24
push str.E:_bamboo_agent_home_2xml_data_build_dirPGSC_MON_JOB1monolith_sourcePhoenixWtSystemPEUtilsFileReader.cpp
push dword [eax + 4]
lea ecx, [ebp - 0x84]
push dword [eax]
call fcn.004b3ef8
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x28]
call fcn.00455362
lea ecx, [ebp - 0x84]
call fcn.004b4228
lea eax, [ebp - 0x84]
push eax
lea ecx, [ebp - 0xe0]
call fcn.004b3c43
push 0x5626ac
lea eax, [ebp - 0xe0]
push eax
call fcn.004d4a8e
int3

Function at 0x4ec22a
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004ebedb

Function at 0x4ec235
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004ec065
Function at 0x404020
Capabilities:
Get file size

Disassembly:
sub esp, 0x10
push ebx
mov ebx, dword [esp + 0x18]
push esi
mov esi, dword [esp + 0x24]
push edi
lea eax, [esi + 4]
push eax
push ebx
mov edi, ecx
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edx, dword [esi + 4]
push 0
mov dword [esi], eax
mov ecx, dword [edi + 0x2c]
push ecx
push edx
push eax
call fcn.00406f00
push 0
add eax, 2
push 0x10
adc edx, 0
push edx
push eax
call fcn.00406d20
mov esi, eax
push esi
mov dword [esp + 0x1c], edx
call fcn.00406e31
mov edi, dword [esp + 0x28]
add esp, 4
test eax, eax
mov dword [edi], eax
je 0x4040c3
push 0
lea ecx, [esp + 0x2c]
push ecx
push esi
push eax
push 8
lea edx, [esp + 0x20]
push edx
push 0x90073
push ebx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x4040b2
pop edi
pop esi
mov al, 1
pop ebx
add esp, 0x10
ret 0xc
mov eax, dword [edi]
push eax
call fcn.00406d54
add esp, 4
mov dword [edi], 0
pop edi
pop esi
xor al, al
pop ebx
add esp, 0x10
ret 0xc
Function at 0x4044e0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x2c
push ebx
mov ebx, dword [esp + 0x38]
push ebp
mov ebp, dword [esp + 0x40]
push esi
push edi
mov edi, dword [esp + 0x40]
mov eax, dword [edi]
mov esi, ecx
mov ecx, dword [edi + 4]
mov edx, dword [esi + 0x24]
mov dword [esp + 0x2c], eax
mov eax, dword [esi + 0x50]
test eax, eax
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebp
mov dword [esp + 0x30], ecx
mov dword [esp + 0x24], 1
mov dword [esp + 0x28], edx
je 0x40454e
mov ecx, dword [esp + 0x4c]
push 0
push ecx
push 0
push 0
push 0x18
lea edx, [esp + 0x38]
push edx
push 0x800c008
push eax
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x40454e
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x2c
ret 0x10
mov ecx, dword [edi + 4]
xor eax, eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x20], eax
mov eax, dword [edi]
lea edx, [esp + 0x10]
push edx
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x50]
push eax
push ebp
mov dword [esp + 0x28], ecx
mov ecx, dword [esi + 0x24]
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
pop edi
pop esi
test eax, eax
pop ebp
setne al
pop ebx
add esp, 0x2c
ret 0x10

Function at 0x4045a0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x2c
push ebx
mov ebx, dword [esp + 0x38]
push ebp
mov ebp, dword [esp + 0x40]
push esi
push edi
mov edi, dword [esp + 0x40]
mov eax, dword [edi]
mov esi, ecx
mov ecx, dword [edi + 4]
mov edx, dword [esi + 0x24]
mov dword [esp + 0x2c], eax
mov eax, dword [esi + 0x50]
test eax, eax
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebp
mov dword [esp + 0x30], ecx
mov dword [esp + 0x24], 2
mov dword [esp + 0x28], edx
je 0x40460e
mov ecx, dword [esp + 0x4c]
push 0
push ecx
push 0
push 0
push 0x18
lea edx, [esp + 0x38]
push edx
push 0x800c008
push eax
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x40460e
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x2c
ret 0x10
mov ecx, dword [edi + 4]
xor eax, eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x20], eax
mov eax, dword [edi]
lea edx, [esp + 0x10]
push edx
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x50]
push eax
push ebp
mov dword [esp + 0x28], ecx
mov ecx, dword [esi + 0x24]
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
test eax, eax
pop ebp
setne al
pop ebx
add esp, 0x2c
ret 0x10
Function at 0x404b10
Capabilities:
Stop service

Disassembly:
sub esp, 0x1c
push ebx
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
test ebx, ebx
jne 0x404b2e
pop ebx
add esp, 0x1c
ret
mov eax, dword [esp + 0x24]
push edi
push 0xf01ff
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
test edi, edi
jne 0x404b65
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
cmp eax, 0x4db
sete cl
pop edi
pop ebx
mov eax, ecx
add esp, 0x1c
ret
push esi
lea edx, [esp + 0xc]
push edx
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov esi, eax
test esi, esi
jne 0x404b8c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x426
jne 0x404b8c
mov esi, 1
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call edi
push ebx
call edi
mov eax, esi
pop esi
pop edi
pop ebx
add esp, 0x1c
ret

Function at 0x404c10
Capabilities:
Create service
Manipulate safe mode programs

Disassembly:
sub esp, 8
push edi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
jne 0x404c2e
pop edi
add esp, 8
ret
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
lea eax, [esp + 0xc]
push eax
push 0x401320
push 0x80000002
call esi
test eax, eax
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jne 0x404c58
mov ecx, dword [esp + 0xc]
push ecx
call ebx
lea edx, [esp + 0xc]
push edx
push 0x401298
push 0x80000002
call esi
test eax, eax
jne 0x404c74
mov eax, dword [esp + 0xc]
push eax
call ebx
mov ebx, dword [esp + 0x1c]
push ebp
mov ebp, dword [esp + 0x28]
mov esi, dword [esp + 0x1c]
push 0
push 0
push 0
push 0
push 0x4013a4
push ebx
push 1
push ebp
push 1
push 0xf01ff
push esi
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
test eax, eax
je 0x404cbf
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push eax
call esi
push edi
call esi
pop ebp
pop esi
pop ebx
mov eax, 1
pop edi
add esp, 8
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov dword [esp + 0x18], eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp dword [esp + 0x14], 0x431
jne 0x404cff
cmp dword [esp + 0x24], 0
je 0x404cff
push esi
call fcn.00404bb0
add esp, 4
test eax, eax
je 0x404cff
push ebp
push 0
push ebx
push esi
call fcn.00404c10
add esp, 0x10
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x14]
pop ebp
pop esi
pop ebx
pop edi
add esp, 8
ret
Function at 0x404d10
Capabilities:
Acquire debug privileges

Disassembly:
sub esp, 0x1c
lea eax, [esp]
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x404d89
lea ecx, [esp + 4]
push ecx
push 0x40151c
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x404d89
mov edx, dword [esp + 4]
mov eax, dword [esp + 8]
push 0
push 0
push 0x10
lea ecx, [esp + 0x18]
push ecx
mov dword [esp + 0x20], edx
mov edx, dword [esp + 0x10]
push 0
push edx
mov dword [esp + 0x24], 1
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
neg eax
sbb eax, eax
add eax, 1
add esp, 0x1c
ret
xor eax, eax
add esp, 0x1c
ret

Function at 0x404d90
Capabilities:
Delete file
Get common file path

Disassembly:
sub esp, 0x61c
mov eax, dword [0x4141b0]
xor eax, esp
mov dword [esp + 0x618], eax
push esi
mov esi, dword [esp + 0x624]
push esi
call fcn.00404a00
add esp, 4
cmp eax, 0xffffffff
mov dword [section..data], eax
jne 0x404ed2
lea eax, [esp + 4]
push eax
push 0x208
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x404ea2
push 0x401568
push 0
lea ecx, [esp + 0x41c]
push 0x104
push ecx
call fcn.00406780
add esp, 0x10
test eax, eax
je 0x404f0d
push edi
lea edx, [esp + 0x418]
push edx
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
mov edi, 0x401554
call fcn.00406670
test eax, eax
je 0x404e26
mov edi, 0x401540
lea ecx, [esp + 8]
push edi
push ecx
call fcn.004066b0
add esp, 8
test eax, eax
pop edi
je 0x404f0d
push 3
push 1
lea edx, [esp + 0xc]
push edx
push esi
call fcn.00404c10
add esp, 0x10
test eax, eax
je 0x404ef5
push esi
call fcn.00404a70
add esp, 4
test eax, eax
push esi
je 0x404eed
call fcn.00404a00
add esp, 4
cmp eax, 0xffffffff
mov dword [section..data], eax
jne 0x404eba
push esi
call fcn.00404b10
push esi
call fcn.00404bb0
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
add esp, 8
lea eax, [esp + 4]
push eax
call esi
test eax, eax
jne 0x404ea2
lea ecx, [esp + 4]
push ecx
call esi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x618]
xor ecx, esp
call fcn.00406f68
add esp, 0x61c
ret
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea edx, [esp + 4]
push edx
call esi
test eax, eax
jne 0x404ed2
lea eax, [esp + 4]
push eax
call esi
mov eax, 1
pop esi
mov ecx, dword [esp + 0x618]
xor ecx, esp
call fcn.00406f68
add esp, 0x61c
ret
call fcn.00404bb0
add esp, 4
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [esp + 4]
push ecx
call esi
test eax, eax
jne 0x404f0d
lea edx, [esp + 4]
push edx
call esi
mov ecx, dword [esp + 0x61c]
pop esi
xor ecx, esp
xor eax, eax
call fcn.00406f68
add esp, 0x61c
ret

Function at 0x404f60
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x404f89
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 2
je 0x404f85
call esi
cmp eax, 3
jne 0x404f89
xor eax, eax
pop esi
ret
mov eax, 1
pop esi
ret
Function at 0x404f90
Capabilities:
Check if file exists
Get common file path
Get file attributes
Set current directory

Disassembly:
sub esp, 0x218
mov eax, dword [0x4141b0]
xor eax, esp
mov dword [esp + 0x214], eax
push 0x401720
call fcn.004073c8
add esp, 4
cmp byte [0x4151a4], 0
je 0x404fc1
mov eax, 0x79
jmp 0x404fc6
call fcn.00407618
add eax, 0xffffffb2
cmp eax, 0x2b
ja case.0x404fd5.79
movzx eax, byte [eax + 0x4051f0]
jmp dword [eax*4 + 0x4051e4]
push 0x40171c
call fcn.004073c8
mov eax, dword [section..data]
add esp, 4
cmp eax, 0xffffffff
je 0x4051b6
push 0
lea ecx, [esp + 8]
push ecx
push 0
push 0
push 0
push 0
push 0x800c004
push eax
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x4051b6
push 0x105
lea edx, [esp + 0x110]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x4051ca
lea eax, [esp + 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
jne 0x405051
push 0x4016f0
jmp 0x4051c2
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov byte [esp + 0x13], 0
xor esi, esi
mov edi, edi
mov eax, dword [esi + 0x4013e0]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4050a0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x405139
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
je 0x405139
mov ecx, dword [esi + 0x4013e4]
push ecx
call fcn.00404f60
add esp, 4
test eax, eax
je 0x405139
mov edx, dword [esi + 0x4013e0]
push edx
lea eax, [esp + 0x1c]
push eax
mov byte [esp + 0x20], 0
call ebp
push 0x4016e8
lea ecx, [esp + 0x1c]
push ecx
call ebx
lea edx, [esp + 0x18]
push edx
call fcn.00406c40
mov eax, dword [esi + 0x4013e0]
push eax
call fcn.00406c40
mov ecx, dword [esi + 0x4013e4]
push ecx
call fcn.00406c40
add esp, 0xc
lea edx, [esp + 0x18]
push edx
call edi
test eax, eax
jne 0x40510d
lea eax, [esp + 0x18]
push eax
call edi
mov edx, dword [esi + 0x4013e0]
lea ecx, [esp + 0x18]
push ecx
push edx
call fcn.00406800
mov eax, dword [esi + 0x4013e0]
mov ecx, dword [esi + 0x4013e4]
push eax
push ecx
call fcn.00406800
add esp, 0x10
mov byte [esp + 0x13], 1
add esi, 8
cmp esi, 0x10
jb 0x405070
cmp byte [esp + 0x13], 0
pop edi
pop esi
pop ebp
pop ebx
je 0x405177
push 0x4016ac
call fcn.004073c8
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x214]
xor ecx, esp
call fcn.00406f68
add esp, 0x218
ret
push 0x401648
mov byte [0x4151a7], 0
call fcn.004073c8
push 0x4015f8
call fcn.004073c8
push 0x4015a8
call fcn.004073c8
add esp, 0xc
xor eax, eax
mov ecx, dword [esp + 0x214]
xor ecx, esp
call fcn.00406f68
add esp, 0x218
ret
push 0x401570
jmp 0x4051c2
push 0x40171c
call fcn.004073c8
add esp, 4
mov ecx, dword [esp + 0x214]
xor ecx, esp
xor eax, eax
call fcn.00406f68
add esp, 0x218
ret
Function at 0x406040
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x810
mov eax, dword [0x4141b0]
xor eax, esp
mov dword [esp + 0x80c], eax
push ebx
lea eax, [esp + 4]
push eax
push 0x2001f
push 0
push 0x401c28
push 0x80000002
xor bl, bl
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40610e
lea ecx, [esp + 8]
push ecx
mov ecx, dword [esp + 8]
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x14]
push eax
push 0
push 0x401c14
push ecx
mov dword [esp + 0x20], 0x800
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x406103
push esi
lea esi, [esp + 0x14]
lea ecx, [ecx]
push 0x401bfc
push esi
call fcn.0040736a
add esp, 8
test eax, eax
je 0x406102
lea ecx, [eax + 0x14]
movzx eax, word [ecx]
test ax, ax
mov esi, ecx
je 0x4060ea
movzx eax, ax
cmp ax, 0x2c
je 0x4060ea
cmp ax, 0x3a
je 0x4060ea
movzx eax, word [esi + 2]
add esi, 2
test ax, ax
jne 0x4060d2
push 6
push 0x401bec
push ecx
call fcn.004128ec
add esp, 0xc
test eax, eax
jne 0x4060b0
mov bl, 1
jmp 0x4060b0
pop esi
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x810]
mov al, bl
pop ebx
xor ecx, esp
call fcn.00406f68
add esp, 0x810
ret
Function at 0x406610
Capabilities:
Shutdown system

Disassembly:
sub esp, 8
lea eax, [esp + 4]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x40665e
mov edx, dword [esp + 4]
lea ecx, [esp]
push ecx
push 0x402030
push edx
mov dword [esp + 0xc], 1
call fcn.00406550
add esp, 0xc
test eax, eax
je 0x40665e
push 0x100
push 0x12
call dword [sym.imp.USER32.dll_ExitWindowsEx]
add esp, 8
ret
xor eax, eax
add esp, 8
ret

Function at 0x4066b0
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
sub esp, 8
push ebx
push esi
push edi
xor ebx, ebx
push ebx
mov dword [esp + 0x14], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov esi, eax
mov eax, dword [esp + 0x1c]
push 0x402078
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x406777
push ebp
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebp, eax
test ebp, ebp
je 0x40676d
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push ebp
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x406758
test esi, esi
je 0x406758
mov ecx, dword [esp + 0x1c]
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x406758
push 0
lea edx, [esp + 0x14]
push edx
push esi
push ebx
push edi
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x10], esi
mov esi, 1
je 0x40675c
mov esi, dword [esp + 0x14]
push ebp
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop ebp
pop edi
mov eax, esi
pop esi
pop ebx
add esp, 8
ret
pop ebp
pop edi
pop esi
mov eax, ebx
pop ebx
add esp, 8
ret
pop edi
pop esi
mov eax, ebx
pop ebx
add esp, 8
ret

Function at 0x406800
Capabilities:
Move file

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
jne 0x40684b
push 4
push edi
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
je 0x406838
push edi
push esi
push 0x4020e0
call fcn.004073c8
add esp, 0xc
pop edi
mov al, 1
pop esi
ret
push esi
push 0x4020c0
call fcn.004073c8
add esp, 8
pop edi
xor al, al
pop esi
ret
push edi
push esi
push 0x40209c
call fcn.004073c8
add esp, 0xc
pop edi
mov al, 1
pop esi
ret

Function at 0x406860
Capabilities:
Move file

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x4068ab
push 4
push edi
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x406898
push edi
push esi
push 0x40214c
call fcn.004073c8
add esp, 0xc
pop edi
mov al, 1
pop esi
ret
push esi
push 0x402130
call fcn.004073c8
add esp, 8
pop edi
xor al, al
pop esi
ret
push edi
push esi
push 0x402110
call fcn.004073c8
add esp, 0xc
pop edi
mov al, 1
pop esi
ret