joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401840
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov eax, dword [edi]
lea ecx, [esp]
push ecx
push esi
add eax, eax
lea edx, [esp + 0x10]
push edx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
push 0
push str.LocalService
push ecx
mov dword [edi], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4018ae
mov eax, dword [esp + 8]
cmp eax, 1
je 0x40187f
cmp eax, 2
jne 0x40189a
mov eax, dword [esp]
test esi, esi
je 0x4018a8
test eax, eax
je 0x4018a3
test al, 1
jne 0x40189a
mov edx, eax
shr edx, 1
cmp word [esi + edx*2 - 2], 0
je 0x4018a8
mov eax, 0xd
pop ecx
ret 4
xor ecx, ecx
mov word [esi], cx
shr eax, 1
mov dword [edi], eax
xor eax, eax
pop ecx
ret 4

Function at 0x4018f0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, dword [esp + 0x10]
test ebp, ebp
jne 0x401900
lea eax, [ebp + 0xd]
pop ebp
ret 0xc
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
push edi
xor edi, edi
mov esi, ebp
lea ecx, [ecx]
push esi
call ebx
inc eax
lea esi, [esi + eax*2]
lea edi, [edi + eax*2]
cmp eax, 1
jne 0x401910
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
push edi
push ebp
push 7
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
pop ebp
ret 0xc

Function at 0x401940
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x228
mov eax, dword [0x42365c]
xor eax, esp
mov dword [esp + 0x224], eax
push ebx
mov ebx, dword [esp + 0x230]
push ebp
push esi
push edi
mov edi, ecx
mov ecx, dword [edi]
mov eax, dword [edi + 4]
xor esi, esi
push ecx
lea edx, [esp + 0x18]
or eax, 0x2001f
push edx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
call fcn.00401790
mov ebp, eax
cmp ebp, esi
je 0x4019a4
mov eax, dword [esp + 0x14]
cmp eax, esi
je 0x40199d
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebp
jmp 0x401a3d
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea eax, [esp + 0x28]
push eax
mov eax, dword [esp + 0x18]
push esi
push esi
push esi
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x44]
push edx
push esi
push eax
mov dword [esp + 0x40], 0x100
call ebx
test eax, eax
jne 0x401a0a
lea ecx, [esp + 0x30]
push ecx
lea ecx, [esp + 0x18]
call fcn.00401940
mov ebp, eax
cmp ebp, esi
jne 0x40198e
lea edx, [esp + 0x28]
push edx
mov edx, dword [esp + 0x18]
push esi
push esi
push esi
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x44]
push ecx
push esi
push edx
mov dword [esp + 0x40], 0x100
call ebx
test eax, eax
je 0x4019d0
mov eax, dword [esp + 0x14]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, esi
je 0x401a1f
push eax
call ebp
mov dword [esp + 0x14], esi
mov ebx, dword [esp + 0x24]
mov eax, edi
mov dword [esp + 0x18], esi
call fcn.00401660
mov edi, eax
mov eax, dword [esp + 0x14]
cmp eax, esi
je 0x401a3b
push eax
call ebp
mov eax, edi
mov ecx, dword [esp + 0x234]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004089bc
add esp, 0x228
ret 4
Function at 0x402000
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41a436
mov eax, dword fs:[0]
push eax
sub esp, 0x430
mov eax, dword [0x42365c]
xor eax, ebp
mov dword [ebp - 0x18], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
xor edi, edi
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x43c], edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x434], edx
mov dword [ebp - 0x438], edi
mov dword [ebp - 0x424], edi
push 2
push edi
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
mov dword [ebp - 0x430], esi
cmp esi, edi
jne 0x402080
call fcn.00401360
mov edi, eax
jmp 0x402199
mov eax, dword [ebp - 0x428]
push eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
cmp ebx, edi
jne 0x40209f
call fcn.00401360
jmp 0x402190
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x42c], eax
cmp eax, edi
jne 0x4020bb
call fcn.00401360
jmp 0x402190
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
lea eax, [ebx + 1]
mov dword [ebp - 0x428], ebx
cmp eax, ebx
jae 0x4020dc
mov edi, 0x8007000e
jmp 0x402192
xor ecx, ecx
shld ecx, eax, 1
add eax, eax
mov byte [ebp - 4], 2
cmp ecx, edi
ja 0x4020f1
cmp eax, 0xffffffff
jbe 0x4020fb
push 0x80070216
call fcn.004010b0
cmp eax, 0x400
jbe 0x40212d
lea ecx, [ebp - 0x424]
push ecx
call fcn.004052d0
jmp 0x402139
lea edx, [ebp - 0x420]
mov dword [ebp - 0x424], edx
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x424]
cmp eax, edi
jne 0x402151
mov edi, 0x8007000e
jmp 0x402192
push ebx
push eax
mov eax, dword [ebp - 0x42c]
push ebx
push eax
push edi
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, edi
jne 0x40216f
call fcn.00401360
jmp 0x402190
mov edx, dword [ebp - 0x424]
xor ecx, ecx
mov word [edx + eax*2], cx
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x424]
push eax
lea edx, [ebp - 0x438]
call fcn.00402d30
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [ebp - 0x420]
cmp dword [ebp - 0x424], ecx
je 0x4021b2
lea eax, [ebp - 0x424]
call fcn.00404f20
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.004089bc
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4042d0
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
push esi
push edi
call fcn.00404c30
test eax, eax
jne 0x4042f3
mov eax, 0x80004005
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
xor esi, esi
push 1
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], str.APPID
mov dword [esp + 0x20], str.F0E5712C_95FA_453C_8F40_DAB3A33846A0
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
call fcn.00403610
cmp eax, esi
jl 0x40441e
push 0x80000000
lea eax, [esp + 0x1c]
push eax
mov eax, 0x20006
mov ebx, str.AppID
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
call fcn.00401790
xor ebx, ebx
cmp eax, ebx
je 0x40436c
call fcn.00401380
mov esi, eax
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x404361
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov esi, dword [esp + 0x18]
lea ecx, [esp + 0xc]
push ecx
mov eax, str.F0E5712C_95FA_453C_8F40_DAB3A33846A0
mov ecx, esi
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
call fcn.00401710
cmp eax, ebx
je 0x4043bd
call fcn.00401380
mov edi, eax
mov eax, dword [esp + 0xc]
cmp eax, ebx
je 0x4043a7
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, ebx
je 0x40441c
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov edx, dword [esp + 0xc]
push str.LocalService
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
cmp byte [ebp + 8], bl
jne 0x4043ef
lea esi, [esp + 0xc]
call fcn.00401640
lea esi, [esp + 0x18]
call fcn.00401640
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push str.LocalService
lea eax, [esp + 0x10]
push eax
mov esi, 0x41def4
call fcn.004018c0
call fcn.00404430
lea esi, [esp + 0xc]
mov edi, eax
call fcn.00401640
lea esi, [esp + 0x18]
call fcn.00401640
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x404430
Capabilities:
Create service
Modify service
Persist via windows service

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x41a4b6
mov eax, dword fs:[0]
push eax
sub esp, 0x240
mov eax, dword [0x42365c]
xor eax, esp
mov dword [esp + 0x238], eax
push ebx
push esi
push edi
mov eax, dword [0x42365c]
xor eax, esp
push eax
lea eax, [esp + 0x250]
mov dword fs:[0], eax
xor ebx, ebx
push 0xf003f
push ebx
mov dword [esp + 0x1c], ebx
mov edi, dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
push ebx
call edi
mov esi, eax
test esi, esi
je 0x4044bd
push 1
push 0x425d4c
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
test eax, eax
je 0x4044a9
push eax
mov ebx, 1
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
test ebx, ebx
je 0x4044c3
xor eax, eax
jmp 0x404606
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor ebx, ebx
push 0xf003f
push ebx
push ebx
call edi
test eax, eax
je 0x404601
cmp eax, 0xffffffff
je 0x4044dd
mov ebx, eax
mov dword [esp + 0x14], 0
xor eax, eax
push 0x20c
push eax
lea ecx, [esp + 0x3e]
push ecx
mov word [esp + 0x40], ax
call fcn.0040b5c0
add esp, 0xc
push 0x104
lea edx, [esp + 0x3a]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x4045fa
cmp eax, 0x104
je 0x4045fa
mov ecx, 0x22
mov word [esp + 0x34], cx
mov edx, ecx
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
mov word [esp + eax*2 + 0x4a], dx
lea edx, [esp + 0x48]
push edx
push 1
push 2
push 0x10
push 0xf01ff
push 0x41def4
push 0x41def4
push ebx
mov word [esp + eax*2 + 0x6c], cx
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
test eax, eax
je 0x4045fa
mov edi, eax
lea esi, [esp + 0x14]
call fcn.00404f00
mov esi, dword [esp + 0x14]
xor eax, eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
lea ecx, [esp + 0x18]
mov eax, 1
push ecx
xor edi, edi
mov dword [esp + 0x28], eax
mov dword [esp + 0x30], eax
push 2
lea eax, [esp + 0x34]
push esi
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x3c], 0x3e8
mov dword [esp + 0x34], eax
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
test eax, eax
jne 0x4045e0
cmp esi, edi
je 0x4045d3
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp ebx, edi
je 0x404601
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x404601
cmp esi, edi
je 0x4045eb
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp ebx, edi
je 0x4045f6
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
jmp 0x404606
test ebx, ebx
je 0x404601
push ebx
call esi
mov eax, 0x80004005
mov ecx, dword [esp + 0x250]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x238]
xor ecx, esp
call fcn.004089bc
mov esp, ebp
pop ebp
ret
Function at 0x404630
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x41a46b
mov eax, dword fs:[0]
push eax
sub esp, 0x894
mov eax, dword [0x42365c]
xor eax, esp
mov dword [esp + 0x890], eax
push esi
push edi
mov eax, dword [0x42365c]
xor eax, esp
push eax
lea eax, [esp + 0x8a0]
mov dword fs:[0], eax
xor edi, edi
push 0x206
mov esi, ecx
lea ecx, [esp + 0x492]
xor eax, eax
push edi
mov dword [esp + 0x18], edi
push ecx
mov word [esp + 0x498], ax
call fcn.0040b5c0
mov eax, dword [0x424a64]
add esp, 0xc
push 0x104
lea edx, [esp + 0x490]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x206
lea edx, [esp + 0x69a]
xor ecx, ecx
push edi
push edx
mov word [esp + 0x6a0], cx
call fcn.0040b5c0
add esp, 0xc
push 0x206
lea ecx, [esp + 0x28a]
xor eax, eax
push edi
push ecx
mov word [esp + 0x290], ax
call fcn.0040b5c0
add esp, 0xc
push 0x206
lea eax, [esp + 0x82]
xor edx, edx
push edi
push eax
mov word [esp + 0x88], dx
call fcn.0040b5c0
add esp, 0xc
push edi
push edi
push edi
push edi
push 0x104
lea ecx, [esp + 0x90]
push ecx
push 0x104
lea edx, [esp + 0x2a0]
push edx
lea eax, [esp + 0x4ac]
push eax
call fcn.0040918f
add esp, 0x24
test eax, eax
je 0x404747
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40484f
push 0x41edc0
push str.GoogleInputHandler.exe
lea ecx, [esp + 0x84]
push ecx
lea edx, [esp + 0x290]
push edx
lea eax, [esp + 0x6a4]
push 0x104
push eax
call fcn.0040953d
add esp, 0x18
test eax, eax
jne 0x40473c
mov dword [esp + 0x14], vtable.ATL::CAccessToken.0
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
mov ecx, esi
mov dword [esp + 0x8a8], 2
call fcn.00404880
mov esi, eax
mov dword [esp + 0x18], esi
cmp esi, edi
je 0x404846
push edi
push esi
lea ecx, [esp + 0x18]
push ecx
mov dword [esp + 0x1c], edi
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
test eax, eax
jne 0x4047cb
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x404846
push 0x40
xor eax, eax
lea edx, [esp + 0x3c]
push edi
push edx
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
call fcn.0040b5c0
mov edx, dword [esp + 0x1c]
add esp, 0xc
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x38]
push ecx
push edi
push edx
push 0x400
push edi
push edi
push edi
push edi
lea eax, [esp + 0x6b8]
push eax
push esi
mov dword [esp + 0x60], 0x44
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
jne 0x404827
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x24]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [esp + 0x28]
push edx
call esi
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
lea ecx, [esp + 0x14]
call fcn.00403ad0
mov ecx, dword [esp + 0x8a0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x890]
xor ecx, esp
call fcn.004089bc
add esp, 0x8a0
ret
Function at 0x404c30
Capabilities:
Delete service
Stop service

Disassembly:
mov eax, 0x1020
call fcn.0040e5a0
mov eax, dword [0x42365c]
xor eax, esp
mov dword [esp + 0x101c], eax
push ebx
push ebp
push esi
push edi
push 0xf003f
xor edi, edi
push edi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
test esi, esi
je 0x404c8a
mov ebp, dword [sym.imp.ADVAPI32.dll_OpenServiceW]
push 1
push 0x425d4c
push esi
call ebp
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test eax, eax
je 0x404c83
push eax
mov edi, 1
call ebx
push esi
call ebx
test edi, edi
jne 0x404c94
mov eax, 1
jmp 0x404de8
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
jne 0x404cde
lea eax, [esp + 0x2c]
push eax
push 0xd80a
call fcn.00401310
add esp, 8
test eax, eax
jne 0x404ccd
mov eax, str.Could_not_open_Service_Manager
lea ecx, [esp + 0x2c]
call fcn.00401180
push 0
push 0x425d4c
lea ecx, [esp + 0x34]
push ecx
jmp 0x404dde
push 0x10020
push 0x425d4c
push edi
call ebp
mov esi, eax
test esi, esi
jne 0x404d29
push edi
call ebx
lea edx, [esp + 0x2c]
push edx
push 0xd80c
call fcn.00401310
add esp, 8
test eax, eax
jne 0x404d18
mov eax, str.Could_not_open_service
lea ecx, [esp + 0x2c]
call fcn.00401180
push 0
push 0x425d4c
lea eax, [esp + 0x34]
push eax
jmp 0x404dde
lea ecx, [esp + 0x10]
push ecx
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x404d8e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x426
je 0x404d8e
cmp eax, 0x425
jne 0x404d56
cmp dword [esp + 0x14], 3
je 0x404d8e
lea edx, [esp + 0x2c]
push edx
push 0xd80e
call fcn.00401310
add esp, 8
test eax, eax
jne 0x404d7a
mov eax, str.Could_not_stop_service
lea ecx, [esp + 0x2c]
call fcn.00401180
push 0
push 0x425d4c
lea eax, [esp + 0x34]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
mov ebp, eax
call ebx
push edi
call ebx
test ebp, ebp
jne 0x404c8a
lea ecx, [esp + 0x82c]
push ecx
push 0xd80d
call fcn.00401310
add esp, 8
test eax, eax
jne 0x404dcf
mov eax, str.Could_not_delete_service
lea ecx, [esp + 0x82c]
call fcn.00401180
push 0
push 0x425d4c
lea edx, [esp + 0x834]
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
mov ecx, dword [esp + 0x102c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004089bc
add esp, 0x1020
ret
Function at 0x406790
Capabilities:
Print debug messages
Terminate process

Disassembly:
push 0xffffffffffffffff
push 0x41a3b3
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x42365c]
xor eax, esp
mov dword [esp + 0x3c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x42365c]
xor eax, esp
push eax
lea eax, [esp + 0x54]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x64]
mov dword [esp + 0x14], ebp
mov dword [esp + 0x5c], 0
mov eax, dword [ebp]
cmp eax, dword [0x425bd4]
jl 0x4069a1
lea esi, [esp + 0x18]
lea ecx, [ebp + 8]
call fcn.00406d70
mov ebx, 1
push 2
mov eax, 0x41f460
mov ecx, esi
mov byte [esp + 0x60], bl
call fcn.00405650
cmp dword [0x425bd8], 0
je 0x406821
cmp dword [esp + 0x2c], 0x10
mov eax, dword [esp + 0x18]
jae 0x40681a
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp dword [0x425bd8], ebx
je 0x406899
call fcn.00406440
test al, al
je 0x406899
cmp byte [0x425ce6], 0
jne 0x40684c
push 0x425ba0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov byte [0x425ce6], bl
push 0x425ba0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [0x425bdc]
push 2
push 0
push ecx
call fcn.0040a8b7
mov eax, dword [esp + 0x24]
add esp, 0xc
cmp dword [esp + 0x2c], 0x10
jae 0x406879
lea eax, [esp + 0x18]
mov edx, dword [0x425bdc]
push eax
push 0x41f464
push edx
call fcn.0040a6e5
add esp, 0xc
push 0x425ba0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [ebp], 3
jne 0x406973
mov eax, dword [0x425bdc]
push eax
call fcn.0040a416
add esp, 4
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x4068c6
call dword [sym.imp.KERNEL32.dll_DebugBreak]
jmp 0x406973
cmp dword [0x425ce8], 0
lea esi, [esp + 0x34]
je 0x4068f7
lea ecx, [ebp + 8]
call fcn.00406d70
push eax
mov byte [esp + 0x60], 2
call dword [0x425ce8]
add esp, 4
mov ecx, esi
mov byte [esp + 0x5c], bl
call fcn.00404b90
jmp 0x406973
mov ecx, dword [0x424a3c]
cmp byte [ecx], 0
lea ecx, [ebp + 8]
jne 0x406927
call fcn.00406d70
push eax
mov byte [esp + 0x60], 3
call fcn.00406500
add esp, 4
lea ecx, [esp + 0x34]
mov byte [esp + 0x5c], bl
call fcn.00404b90
jmp 0x406965
call fcn.00406d70
cmp dword [eax + 0x14], 0x10
jb 0x406934
mov eax, dword [eax]
push eax
push 0x41f468
call fcn.0040a0d7
add eax, 0x40
push eax
call fcn.0040a6e5
add esp, 0xc
lea ecx, [esp + 0x34]
call fcn.00404b90
call fcn.0040a0d7
add eax, 0x40
push eax
call fcn.0040a416
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov byte [esp + 0x5c], 0
cmp dword [esp + 0x2c], 0x10
jb 0x40698c
mov edx, dword [esp + 0x18]
push edx
call fcn.004089b1
add esp, 4
mov dword [esp + 0x2c], 0xf
mov dword [esp + 0x28], 0
mov byte [esp + 0x18], 0
lea ecx, [ebp + 8]
mov dword [esp + 0x5c], 0xffffffff
call fcn.004066f0
mov ecx, dword [esp + 0x54]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x3c]
xor ecx, esp
call fcn.004089bc
add esp, 0x4c
ret 4
Function at 0x40595e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
pushal
call 0x40596d
pop dword [ebp - 0x1c]
mov eax, 0x56363b89
add eax, 0xaa0a1de4
sub dword [ebp - 0x1c], eax
mov dword [ebp - 0x2c], 0x573400ec
add dword [ebp - 0x2c], 0xf71e445f
mov dword [ebp - 0x28], 0xa43ae75a
add dword [ebp - 0x28], 0x8df864eb
mov dword [ebp - 0x24], 0xb477377c
add dword [ebp - 0x24], 0x97d50cb2
mov dword [ebp - 0x20], 0xb5e3ac14
sub dword [ebp - 0x20], 0xb5e3ac14
lea eax, [ebp - 0x2c]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x1c]
call dword [eax]
mov dword [ebp - 0x2c], 0x9699f828
add dword [ebp - 0x2c], 0xddd8712e
mov dword [ebp - 0x28], 0xab54784e
sub dword [ebp - 0x28], 0x69e816d9
mov dword [ebp - 0x24], 0xd9f3dc94
sub dword [ebp - 0x24], 0x76847028
mov dword [ebp - 0x20], 0xcfeb42ea
add dword [ebp - 0x20], 0x3014bd16
lea ebx, [ebp - 0x2c]
push ebx
push eax
mov eax, 0xb849cd87
sub eax, 0xb8095c87
add eax, dword [ebp - 0x1c]
call dword [eax]
push 0x40
push 0x1000
push 0x3b86b
push 0
call eax
mov ecx, 0xe2a2213c
add ecx, 0x1d5e3a01
mov edx, eax
mov ebx, 0x410000
add ebx, dword [ebp - 0x1c]
mov edi, 0x2b261c89
sub dword [ebp - 0xc], ebx
mov esi, dword [ebx]
xor dword [ebp - 0x14], edi
add esi, edi
sub dword [ebp - 0x18], 0x71a6ee15
mov dword [edx], esi
mov dword [ebp - 8], 0xf8ad9bdd
add edx, 0xf3d35560
sub edx, 0xf3d3555c
add ebx, 4
loop 0x405a7e
add eax, 0x349388ab
add eax, 0xcb6dd71c
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x400000
add ecx, dword [ebp - 0x1c]
call ebx
leave
ret

Function at 0x4065b0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40c17c]
jne 0x4065ba
repz ret
jmp fcn.00406941
Function at 0x401140
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41e20d
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x42b00c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [0x42caf8], 0x10
jl 0x401198
push 0x42cafc
call fcn.0040c2c0
mov ecx, dword [0x42caf4]
add esp, 4
test ecx, ecx
je 0x40118a
mov eax, dword [ecx]
mov dword [0x42caf4], eax
mov dword [0x42cafc], 1
test ecx, ecx
jne 0x4011af
push 0x10
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, eax
test ecx, ecx
je 0x401200
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], 0
mov dword [ecx], vtable.CVolObject.0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
mov byte [ebp - 4], 1
mov dword [ecx], vtable.CVolBaseDataType.0
mov byte [ebp - 4], 2
mov dword [ecx], vtable.rg_n::rg_n2306.0
mov dword [ecx + 0xc], 0
mov dword [ebp - 4], 0xffffffff
mov eax, ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
push 0xffffffffffffffff
call fcn.00410943
int3

Function at 0x401290
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41e255
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x42b00c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [0x42caf8], 0x10
jl 0x4012eb
push 0x42cafc
call fcn.0040c2c0
mov ecx, dword [0x42caf4]
add esp, 4
test ecx, ecx
je 0x4012dd
mov eax, dword [ecx]
mov dword [0x42caf4], eax
mov dword [0x42cafc], 1
test ecx, ecx
jne 0x401302
push 0x10
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, eax
test ecx, ecx
je 0x401370
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], 0
mov dword [ecx], vtable.CVolObject.0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
mov byte [ebp - 4], 1
mov dword [ecx], vtable.CVolBaseDataType.0
mov byte [ebp - 4], 2
mov dword [ecx], vtable.rg_n::rg_n2306.0
mov dword [ecx + 0xc], 0
mov byte [ebp - 4], 3
mov dword [ecx], vtable.rg_n::rg_n2306.0
mov eax, dword [esi + 4]
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov dword [ecx + 8], eax
mov eax, dword [esi + 0xc]
mov dword [ecx + 0xc], eax
mov dword [ebp - 4], 0xffffffff
mov eax, ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
push 0xffffffffffffffff
call fcn.00410943
int3