joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406e50
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x423034]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push ecx
push 0x24
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x28], 0
push ecx
xorps xmm0, xmm0
mov dword [ebp - 0x2c], 0
push 0
push eax
movdqu xmmword [ebp - 0x24], xmm0
movdqu xmmword [ebp - 0x14], xmm0
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x406f2c
mov eax, dword [ebp - 0x24]
cmp eax, 1
jne 0x406ea8
mov ecx, str.SERVICE_STOPPED
jmp 0x406ef4
cmp eax, 2
jne 0x406eb4
mov ecx, str.SERVICE_START_PENDING
jmp 0x406ef4
cmp eax, 3
jne 0x406ec0
mov ecx, str.SERVICE_STOP_PENDING
jmp 0x406ef4
cmp eax, 4
jne 0x406ecc
mov ecx, str.SERVICE_RUNNING
jmp 0x406ef4
cmp eax, 5
jne 0x406ed8
mov ecx, str.SERVICE_CONTINUE_PENDING
jmp 0x406ef4
cmp eax, 6
jne 0x406ee4
mov ecx, str.SERVICE_PAUSE_PENDING
jmp 0x406ef4
cmp eax, 7
mov ecx, str.SERVICE_PAUSED
mov edx, str.UNKNOWN_SERVICE_STATE
cmovne ecx, edx
push ecx
push eax
push str.QueryServiceStatus:0x_x__s_
push 1
push 0xf8
push 0x41a3c0
push 0x41a408
call fcn.00409fb0
add esp, 0x1c
cmp dword [ebp - 0x24], 4
jne 0x406f51
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00414a82
mov esp, ebp
pop ebp
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ERR:QueryServiceStatusEx_fail_0x_x
push 1
push 0x100
push 0x41a468
push str.CServiceObj::ServiceIsRunning
call fcn.00409c20
add esp, 0x18
mov ecx, dword [ebp - 4]
xor al, al
xor ecx, ebp
call fcn.00414a82
mov esp, ebp
pop ebp
ret 4
Function at 0x406f70
Capabilities:
Start service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x415b28
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x423034]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push str._DoInstall__begin...
push 1
push 0x107
push 0x41a4c4
push 0x41a4e8
mov dword [ebp - 4], 1
call fcn.00409c20
add esp, 0x14
lea eax, [ebp + 8]
cmp dword [ebp + 0x1c], 8
cmovae eax, dword [ebp + 8]
push 0xf01ff
push eax
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 4], eax
test eax, eax
jne 0x4070ae
call edi
cmp eax, 0x424
jne 0x407093
push 0x41a500
push 1
push 0x10d
push 0x41a52c
push 0x41a550
call fcn.00409c20
push ecx
mov ecx, esp
mov dword [ebp - 0x10], esp
xor eax, eax
push 0xffffffffffffffff
push eax
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
mov word [ecx], ax
lea eax, [ebp + 0x20]
push eax
call fcn.00401600
sub esp, 0x18
mov byte [ebp - 4], 2
mov ecx, esp
xor eax, eax
push 0xffffffffffffffff
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push eax
mov word [ecx], ax
lea eax, [ebp + 8]
push eax
call fcn.00401600
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.00406c30
mov dword [esi + 4], eax
test eax, eax
jne 0x4070ae
push 0x41a568
push 1
push 0x111
push 0x41a584
push 0x41a5a8
call fcn.00409c20
add esp, 0x14
jmp 0x407130
call edi
push eax
push 0x41a5c0
push 1
push 0x117
push 0x41a608
push 0x41a62c
jmp 0x407128
push dword [esi + 4]
call fcn.00406e50
test al, al
je 0x4070dc
push 0x41a644
push 1
push 0x11f
push 0x41a664
push 0x41a688
call fcn.00409c20
add esp, 0x14
mov bl, 1
jmp 0x407132
push 0
push 0
push dword [esi + 4]
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
je 0x40710f
push 0x41a6a0
push 1
push 0x125
push 0x41a6b8
push 0x41a6dc
call fcn.00409c20
add esp, 0x14
mov bl, 1
jmp 0x407132
call edi
push eax
push 0x41a6f4
push 1
push 0x12a
push 0x41a70c
push str.CServiceObj::DoInstall
call fcn.00409c20
add esp, 0x18
xor bl, bl
cmp dword [ebp + 0x1c], 8
mov esi, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
jb 0x407146
push dword [ebp + 8]
call esi
add esp, 4
xor eax, eax
mov dword [ebp + 0x1c], 7
cmp dword [ebp + 0x34], 8
mov dword [ebp + 0x18], 0
mov word [ebp + 8], ax
jb 0x407168
push dword [ebp + 0x20]
call esi
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x30
Function at 0x407180
Capabilities:
Delete service
Stop service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x415b58
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x423034]
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 edi, ecx
push str.DoUninstall...
push 1
push 0x175
push 0x41ab90
push 0x41abb4
mov dword [ebp - 4], 0
call fcn.00409c20
add esp, 0x14
lea eax, [ebp + 8]
cmp dword [ebp + 0x1c], 8
cmovae eax, dword [ebp + 8]
push 0xf01ff
push eax
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [edi + 4], eax
test eax, eax
jne 0x407244
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0x424
jne 0x407226
push str.WARN:The_specified_service_does_not_exist_as_an_installed_service.
push 1
push 0x17b
push 0x41ac14
push 0x41ac38
call fcn.00409c20
add esp, 0x14
mov bl, 1
jmp 0x4072fa
call esi
push eax
push str.ERR:OpenService_fail_0x_x_n
push 1
push 0x17e
push 0x41ac70
push 0x41ac94
jmp 0x4072f0
push eax
call fcn.00406e50
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
test al, al
je 0x4072a8
lea eax, [ebp - 0x2c]
push eax
push 1
push dword [edi + 4]
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x407287
push str.SERVICE_CONTROL_STOP_SUCCESS
push 1
push 0x188
push 0x41acd0
push 0x41acf4
call fcn.00409c20
add esp, 0x14
jmp 0x4072a8
call esi
push eax
push str.ERR:ControlService_fail_0x_x_n
push 1
push 0x18c
push 0x41ad30
push 0x41ad54
call fcn.00409c20
add esp, 0x18
push dword [edi + 4]
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
je 0x4072d7
push str.DeleteService__SUCCESS
push 1
push 0x191
push 0x41ad88
push 0x41adac
call fcn.00409c20
add esp, 0x14
mov bl, 1
jmp 0x4072fa
call esi
push eax
push str.ERR:DeleteService_fail_0x_x
push 1
push 0x196
push 0x41ade4
push str.CServiceObj::DoUninstall
call fcn.00409c20
add esp, 0x18
xor bl, bl
cmp dword [ebp + 0x1c], 8
jb 0x40730c
push dword [ebp + 8]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov al, bl
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.00414a82
mov esp, ebp
pop ebp
ret 0x18
Function at 0x407510
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, ecx
cmp dword [ebx + 0x14], 8
jb 0x407521
mov eax, dword [ebx]
jmp 0x407523
mov eax, ebx
push 0x407720
push eax
call dword [sym.imp.ADVAPI32.dll_RegisterServiceCtrlHandlerW]
mov dword [ebx + 0x34], eax
test eax, eax
jne 0x40755d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._SVC___ERR:RegisterServiceCtrlHandler_fail__0x_x_n
push 1
push 0x3d
push 0x41b508
push 0x41b530
call fcn.00409c20
add esp, 0x18
pop ebx
mov esp, ebp
pop ebp
ret
push esi
push edi
push str._SVC___initial_status_to_SERVICE_START_PENDING...
push 1
push 0x46
push 0x41b588
lea edi, [ebx + 0x18]
mov dword [ebx + 0x28], 0
mov dword [edi], 0x10
push 0x41b5b0
call fcn.00409c20
mov eax, dword [0x42304c]
add esp, 0x14
mov esi, dword [sym.imp.ADVAPI32.dll_SetServiceStatus]
mov dword [ebx + 0x2c], eax
inc eax
mov dword [ebx + 0x1c], 2
push edi
push dword [ebx + 0x34]
mov dword [ebx + 0x24], 0
mov dword [ebx + 0x30], 0xbb8
mov dword [ebx + 0x20], 0
mov dword [0x42304c], eax
call esi
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0
push ebx
push 0x4076b0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push dword [ebp - 4]
mov dword [ebx + 0x38], eax
push str._SVC___Success_create_work_thread_:__d
push 1
push 0x4e
push 0x41b5fc
push 0x41b624
call fcn.00409c20
push str._SVC___initialization_is_complete__set_status_SERVICE_RUNNING
push 1
push 0x51
push 0x41b688
push 0x41b6b0
call fcn.00409c20
add esp, 0x2c
mov dword [ebx + 0x1c], 4
mov dword [ebx + 0x24], 0
mov dword [ebx + 0x30], 0
mov dword [ebx + 0x20], 1
push edi
push dword [ebx + 0x34]
mov dword [ebx + 0x2c], 0
call esi
push str._SVC___Perform_work_until_service_stops...
push 1
push 0x55
push 0x41b700
push 0x41b728
call fcn.00409c20
add esp, 0x14
push 0xffffffffffffffff
push dword [ebx + 0x38]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push str._SVC___Work_thread_has_exit__set_status_SERVICE_STOPPED
push 1
push 0x58
push 0x41b784
push str.CServiceTemplate::OnMainCallback
call fcn.00409c20
add esp, 0x14
mov dword [ebx + 0x1c], 1
mov dword [ebx + 0x24], 0
mov dword [ebx + 0x30], 0
mov dword [ebx + 0x20], 1
push edi
push dword [ebx + 0x34]
mov dword [ebx + 0x2c], 0
call esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x407760
Capabilities:
Terminate thread

Disassembly:
push esi
push str._SVC__handle_SERVICE_CONTROL_STOP...
push 1
push 0x81
push 0x41b9a4
push 0x41b9cc
mov esi, ecx
call fcn.00409c20
add esp, 0x14
call fcn.00407330
mov ecx, dword [0x42304c]
mov dword [eax + 0x2c], ecx
inc ecx
mov dword [0x42304c], ecx
lea ecx, [eax + 0x18]
push ecx
push dword [eax + 0x34]
mov dword [eax + 0x1c], 3
mov dword [eax + 0x24], 0
mov dword [eax + 0x30], 0
mov dword [eax + 0x20], 1
call dword [sym.imp.ADVAPI32.dll_SetServiceStatus]
mov eax, dword [esi + 0x40]
test eax, eax
je 0x4077c8
call eax
cmp dword [esi + 0x38], 0
je 0x4077fe
push str.kill_work_thread...
push 1
push 0x8d
push str..._srcServiceUtilServiceTemplate.cpp
push str.CServiceTemplate::OnHandleServiceStop
call fcn.00409c20
add esp, 0x14
push 0xfffffffffffffffe
push dword [esi + 0x38]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov dword [esi + 0x38], 0
push 0
push ecx
push dword [esi + 0x1c]
call fcn.00407330
mov ecx, eax
call fcn.00407820
pop esi
ret

Function at 0x407e20
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x415bf6
mov eax, dword fs:[0]
push eax
sub esp, 0x444
mov eax, dword [0x423034]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x444], 0
push str.C:Program_Files__x86_Windows_Assistant_AppMVConfiguration.ini
lea ecx, [ebp - 0x428]
call fcn.00402ca0
mov dword [ebp - 4], 0
mov byte [ebp - 0x410], 0
push 0x3ff
push 0
lea eax, [ebp - 0x40f]
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x428]
call fcn.00402ed0
push eax
push 0x400
lea ecx, [ebp - 0x410]
push ecx
push 0
push str.UniquePC
push str.Setting
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea edx, [ebp - 0x410]
push edx
lea ecx, [ebp - 0x440]
call fcn.00402ca0
mov byte [ebp - 4], 1
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x44c], esp
lea eax, [ebp - 0x440]
push eax
call fcn.004037d0
mov dword [ebp - 0x450], eax
mov ecx, dword [ebp + 8]
call fcn.00405040
add esp, 0x18
mov dword [ebp - 0x448], eax
mov ecx, dword [ebp - 0x444]
or ecx, 1
mov dword [ebp - 0x444], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x440]
call fcn.00402d00
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x428]
call fcn.00402d00
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00414a82
mov esp, ebp
pop ebp
ret
Function at 0x409a00
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x415ddb
mov eax, dword fs:[0]
push eax
sub esp, 0x138
mov eax, dword [0x423034]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x144]
push 0
push eax
call fcn.0040a0a0
add esp, 8
cmp byte [0x423919], 0
mov dword [ebp - 4], 0
je 0x409b25
push 0x103
lea eax, [ebp - 0x113]
mov byte [ebp - 0x114], 0
push 0
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
lea eax, [ebp - 0x114]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
cmp dword [esi + 0x14], 0x10
jb 0x409a90
mov ecx, dword [esi]
jmp 0x409a92
mov ecx, esi
cmp dword [ebp - 0x130], 0x10
lea eax, [ebp - 0x144]
push ecx
cmovae eax, dword [ebp - 0x144]
push eax
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea eax, [ebp - 0x12c]
push str.__d._d._s._s___s_n
push eax
call fcn.0040a6b0
add esp, 0x1c
lea eax, [ebp - 0x12c]
cmp dword [ebp - 0x118], 0x10
cmovae eax, dword [ebp - 0x12c]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp dword [ebp - 0x118], 0x10
jb 0x409b0a
push dword [ebp - 0x12c]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [ebp - 0x118], 0xf
mov dword [ebp - 0x11c], 0
mov byte [ebp - 0x12c], 0
mov eax, dword [0x423920]
test eax, eax
jne 0x409b55
push 0x18
call sub.MSVCR120.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [0x423920], eax
xorps xmm0, xmm0
movdqu xmmword [eax], xmm0
push eax
movq qword [eax + 0x10], xmm0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, dword [0x423920]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call fcn.0040f940
lea ecx, [ebp - 0x144]
push ecx
mov ecx, eax
mov edx, dword [eax]
mov eax, dword [edx + 0x20]
call eax
test eax, eax
jne 0x409b7f
push eax
push eax
call fcn.00409650
add esp, 8
push dword [0x423920]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.0040f940
cmp dword [esi + 0x10], 0
mov edi, eax
je case.default.0x409bad
mov edx, dword [edi]
mov ecx, edi
mov edx, dword [edx + 0xc]
call edx
mov ecx, dword [ebp + 8]
cmp ecx, eax
jg case.default.0x409bad
cmp ecx, 3
ja case.default.0x409bad
jmp dword [ecx*4 + 0x409c0c]
push esi
mov ecx, edi
call fcn.0040f400
jmp case.default.0x409bad
push esi
mov ecx, edi
call fcn.0040fa10
jmp case.default.0x409bad
push esi
mov ecx, edi
call fcn.0040fee0
jmp case.default.0x409bad
push esi
mov ecx, edi
call fcn.0040f740
cmp dword [ebp - 0x130], 0x10
jb 0x409bf1
push dword [ebp - 0x144]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00414a82
mov esp, ebp
pop ebp
ret
Function at 0x411fd0
Capabilities:
Get number of processors
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x416b49
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x423034]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
push 0xffffffffffffffff
push 0
push dword [ebp + 8]
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
mov byte [esi], 0
call fcn.00402d30
push 0xffffffffffffffff
lea ecx, [esi + 0x18]
mov dword [ebp - 4], 0
mov dword [ecx + 0x14], 0xf
push 0
push dword [ebp + 0xc]
mov dword [ecx + 0x10], 0
mov byte [ecx], 0
call fcn.00402d30
push 0xffffffffffffffff
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 1
mov dword [ecx + 0x14], 0xf
push 0
push dword [ebp + 0x10]
mov dword [ecx + 0x10], 0
mov byte [ecx], 0
call fcn.00402d30
mov eax, dword [ebp + 0x14]
mov dword [esi + 0x48], eax
lea eax, [esi + 0x4c]
push eax
mov byte [ebp - 4], 2
call fcn.00414930
add esp, 4
lea ecx, [esi + 0x64]
mov byte [ebp - 4], 3
call fcn.004146a0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 0x10

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

Disassembly:
push dword [0x423a14]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
jne 0x4141d4
push esi
push 0x10
call sub.MSVCR120.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
test eax, eax
je 0x4141aa
mov ecx, eax
call fcn.00413940
mov esi, eax
jmp 0x4141ac
xor esi, esi
push dword [0x423a14]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4141c4
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
push esi
push dword [0x423a14]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, esi
pop esi
ret
Function at 0x407281
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x461124], 0
jne 0x4072bf
xor ecx, ecx
push esi
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
movzx edx, dl
neg edx
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x407295
mov dword [ecx*4 + 0x461120], eax
inc ecx
cmp ecx, 0x100
jl 0x407290
pop esi
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp + 8]
not eax
jbe 0x4072ec
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
dec dword [ebp + 0x10]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x461120]
inc ecx
cmp dword [ebp + 0x10], 0
ja 0x4072cd
not eax
pop ebp
ret 0xc

Function at 0x433002
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
call 0x43300c
nop
nop
nop
pop eax
nop
nop
add eax, 0x40a063
nop
nop
sub eax, 0x40a009
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
add ebx, 4
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x433030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43301e
nop
popal
nop
nop
nop
nop
nop
jmp fcn.00431219

Function at 0x433003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
mov eax, section..text
nop
nop
nop
push 4
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x433072
nop
mov ebx, 0x40de38
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x52c828d1
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x433060
nop
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
nop
je 0x4330d2
nop
mov ebx, 0x4304d8
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x15890f14
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
loop 0x4330c0
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x402ce4
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffdf0
mov esi, edx
mov ebx, eax
test bl, bl
je 0x402d21
xor eax, eax
mov al, bl
add eax, 0x41
dec eax
mov byte [esp], al
mov byte [esp + 1], 0x3a
mov byte [esp + 2], 0
lea eax, [esp + 0x109]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
push esp
call sub.kernel32.dll_SetCurrentDirectoryA
lea eax, [esp + 4]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
test bl, bl
je 0x402d41
lea eax, [esp + 0x109]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.00404ee8
add esp, 0x210
pop esi
pop ebx
ret

Function at 0x402f20
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x402f79
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
call sub.kernel32.dll_GetCommandLineA
lea edx, [ebp - 8]
call fcn.00402dbc
mov dword [ebp - 4], eax
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00402dbc
mov dword [ebp - 4], eax
cmp dword [ebp - 8], 0
je 0x402f63
inc ebx
jmp 0x402f4c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402f80
lea eax, [ebp - 8]
call fcn.00404c68
ret

Function at 0x402f88
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
add esp, 0xfffffef4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00404c68
test esi, esi
jne 0x402fbf
push 0x105
lea eax, [esp + 8]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
lea edx, [esp + 4]
mov eax, ebx
call fcn.00404d58
jmp 0x402fe0
call sub.kernel32.dll_GetCommandLineA
mov dword [esp], eax
mov edx, ebx
mov eax, dword [esp]
call fcn.00402dbc
mov dword [esp], eax
test esi, esi
je 0x402fe0
cmp dword [ebx], 0
je 0x402fe0
dec esi
jmp 0x402fc7
add esp, 0x10c
pop esi
pop ebx
ret

Function at 0x403d40
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x488020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403dd8
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403db8
xor eax, eax
push ebp
push 0x403db1
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x403df4
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403db8
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x488020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x488020], ax
mov esp, ebp
pop ebp
ret
Function at 0x404ae4
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x48b04c], 0
je 0x404b45
cmp word [0x48b220], 0xd7b2
jne 0x404b0d
cmp dword [0x48b228], 0
jbe 0x404b0d
mov eax, 0x48b21c
call dword [0x48b238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x488090
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x404b6c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x488030], 0
jne 0x404b61
push 0
push 0x488088
push 0x488090
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret