joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408a30
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42fc36
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x447854]
xor eax, ebp
mov dword [ebp - 0x14], 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 edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
xor edx, edx
mov dword [ebp - 0x430], edx
mov dword [ebp - 4], edx
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], edx
mov dword [ebp - 0x418], edx
push 2
push edx
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
mov dword [ebp - 0x420], esi
test esi, esi
jne 0x408aad
call fcn.00402fd0
mov edi, eax
jmp 0x408b92
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x408ac6
call fcn.00402fd0
jmp 0x408b89
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x424], ebx
test ebx, ebx
jne 0x408ae4
call fcn.00402fd0
jmp 0x408b89
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
lea eax, [edi + 1]
mov dword [ebp - 0x41c], edi
cmp eax, edi
jae 0x408b05
mov edi, 0x8007000e
jmp 0x408b8b
push eax
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.00405110
mov dword [ebp - 4], 1
jmp 0x408b3d
mov eax, dword [ebp - 0x418]
test eax, eax
jne 0x408b4e
mov edi, 0x8007000e
jmp 0x408b8b
push edi
push eax
push edi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x408b67
call fcn.00402fd0
jmp 0x408b89
mov edx, dword [ebp - 0x418]
xor ecx, ecx
mov word [edx + eax*2], cx
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x418]
push eax
push ecx
lea ecx, [ebp - 0x42c]
call fcn.00407280
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea edx, [ebp - 0x414]
cmp dword [ebp - 0x418], edx
je 0x408bb0
lea ecx, [ebp - 0x418]
call fcn.00403bd0
jmp 0x408bb0
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 - 0x14]
xor ecx, ebp
call fcn.00423a19
mov esp, ebp
pop ebp
ret 0x10

Function at 0x40b7b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
add eax, eax
lea edx, [ebp + 0x10]
push edx
mov edx, dword [ebp + 8]
push esi
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0xc]
push eax
push 0
mov dword [edi], 0
mov eax, dword [ecx]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40b822
mov eax, dword [ebp + 0xc]
cmp eax, 1
je 0x40b7f1
cmp eax, 2
jne 0x40b80c
mov eax, dword [ebp + 0x10]
test esi, esi
je 0x40b81c
test eax, eax
je 0x40b817
test al, 1
jne 0x40b80c
mov ecx, eax
shr ecx, 1
cmp word [esi + ecx*2 - 2], 0
je 0x40b81c
pop edi
mov eax, 0xd
pop esi
pop ebp
ret 0xc
xor edx, edx
mov word [esi], dx
shr eax, 1
mov dword [edi], eax
xor eax, eax
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x40bc80
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
mov eax, dword [0x447854]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp + 0x10]
push eax
push ecx
push 0xff
lea edx, [ebp - 0x204]
push 0x100
push edx
call fcn.0042454e
xor eax, eax
add esp, 0x14
lea ecx, [ebp - 0x204]
mov word [ebp - 6], ax
mov dword [ebp - 0x208], ecx
cmp dword [esi + 0x260], eax
jne 0x40bcdd
mov edx, ecx
push edx
call fcn.004241f7
add esp, 4
add esi, 0x40
push esi
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov esi, eax
test esi, esi
je 0x40bd12
push 0
lea eax, [ebp - 0x208]
push eax
push 0
push 1
push 0
push 0
push 0
push 4
push esi
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00423a19
mov esp, ebp
pop ebp
ret
Function at 0x40c2a0
Capabilities:
Create service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa10
mov eax, dword [0x447854]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0xf003f
xor edi, edi
push edi
push edi
mov ebx, ecx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
test esi, esi
je 0x40c2f9
push 1
lea eax, [ebx + 0x40]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
test eax, eax
je 0x40c2ea
push eax
mov edi, 1
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test edi, edi
jne 0x40c434
push 0x104
lea ecx, [ebp - 0x20e]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x40c39a
cmp eax, 0x104
je 0x40c39a
mov edx, 0x22
mov word [ebp - 0x210], dx
mov ecx, edx
xor edx, edx
push 0xf003f
push edx
push edx
mov word [ebp + eax*2 - 0x20e], cx
mov word [ebp + eax*2 - 0x20c], dx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
test esi, esi
jne 0x40c3ad
push 0x400
lea eax, [ebp - 0xa10]
push eax
push 0xd80a
call fcn.0040b5a0
add esp, 0xc
test eax, eax
jne 0x40c385
push str.Could_not_open_Service_Manager
lea ecx, [ebp - 0xa10]
push 0x400
push ecx
call fcn.0040b380
add esp, 0xc
push 0
add ebx, 0x40
push ebx
lea edx, [ebp - 0xa10]
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00423a19
mov esp, ebp
pop ebp
ret
push 0
push 0
push str.RPCSS
push 0
push 0
lea eax, [ebp - 0x210]
push eax
push 1
push 3
push 0x10
push 0xf01ff
lea edi, [ebx + 0x40]
push edi
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
test eax, eax
jne 0x40c428
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push 0x400
lea ecx, [ebp - 0xa10]
push ecx
push 0xd80b
call fcn.0040b5a0
add esp, 0xc
test eax, eax
jne 0x40c419
push str.Could_not_start_service
lea edx, [ebp - 0xa10]
push 0x400
push edx
call fcn.0040b380
add esp, 0xc
push 0
push edi
lea eax, [ebp - 0xa10]
push eax
jmp 0x40c392
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push eax
call edi
push esi
call edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.00423a19
mov esp, ebp
pop ebp
ret
Function at 0x40c450
Capabilities:
Delete service
Stop service

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1024
call fcn.00423e30
mov eax, dword [0x447854]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0xf003f
push 0
push 0
mov edi, ecx
mov dword [ebp - 0x1024], 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
test esi, esi
je 0x40c4bb
push 1
lea ebx, [edi + 0x40]
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
test eax, eax
je 0x40c4aa
push eax
mov edi, 1
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x40c4b0
mov edi, dword [ebp - 0x1024]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test edi, edi
jne 0x40c4d1
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00423a19
mov esp, ebp
pop ebp
ret
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
jne 0x40c52b
push 0x400
lea eax, [ebp - 0x804]
push eax
push 0xd80a
call fcn.0040b5a0
add esp, 0xc
test eax, eax
jne 0x40c51c
push str.Could_not_open_Service_Manager
lea ecx, [ebp - 0x804]
push 0x400
push ecx
call fcn.0040b380
add esp, 0xc
push 0
push ebx
lea edx, [ebp - 0x804]
push edx
jmp 0x40c668
push 0x10020
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
jne 0x40c589
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push 0x400
lea eax, [ebp - 0x804]
push eax
push 0xd80c
call fcn.0040b5a0
add esp, 0xc
test eax, eax
jne 0x40c51c
push str.Could_not_open_service
lea ecx, [ebp - 0x804]
push 0x400
push ecx
call fcn.0040b380
add esp, 0xc
push esi
push ebx
lea edx, [ebp - 0x804]
push edx
jmp 0x40c668
lea eax, [ebp - 0x1020]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x40c602
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x426
je 0x40c602
cmp eax, 0x425
jne 0x40c5ba
cmp dword [ebp - 0x101c], 3
je 0x40c602
push 0x400
lea ecx, [ebp - 0x804]
push ecx
push 0xd80e
call fcn.0040b5a0
add esp, 0xc
test eax, eax
jne 0x40c5f0
push str.Could_not_stop_service
lea edx, [ebp - 0x804]
push 0x400
push edx
call fcn.0040b380
add esp, 0xc
push 0
push ebx
lea eax, [ebp - 0x804]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov dword [ebp - 0x1024], eax
call esi
push edi
call esi
cmp dword [ebp - 0x1024], 0
jne 0x40c4bb
push 0x400
lea ecx, [ebp - 0x1004]
push ecx
push 0xd80d
call fcn.0040b5a0
add esp, 0xc
test eax, eax
jne 0x40c65e
push str.Could_not_delete_service
lea edx, [ebp - 0x1004]
push 0x400
push edx
call fcn.0040b380
add esp, 0xc
push 0
push ebx
lea eax, [ebp - 0x1004]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.00423a19
mov esp, ebp
pop ebp
ret
Function at 0x40cfe0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 0
push 0
push 0
push 0
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x30], eax
test eax, eax
jne 0x40d001
pop esi
mov esp, ebp
pop ebp
ret
push edi
lea eax, [ebp - 4]
push eax
push 0
push esi
push 0x40c260
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
test edi, edi
jne 0x40d028
mov ecx, dword [esi + 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x41d3d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [ebp + 8]
push edi
xor edi, edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edi
cmp ebx, edi
je 0x41d485
mov eax, dword [ebp + 0xc]
cmp eax, edi
je 0x41d485
mov edx, dword [ebp + 0x10]
push esi
lea ecx, [ebp - 4]
push ecx
push edi
push edx
push edi
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
jne 0x41d475
mov eax, dword [ebp - 4]
add eax, 2
push eax
call fcn.00423fb4
mov edi, eax
add esp, 4
test edi, edi
je 0x41d470
mov ecx, dword [ebp - 4]
add ecx, 2
push ecx
push esi
push edi
call fcn.00423fc0
add esp, 0xc
cmp dword [ebp - 4], esi
jbe 0x41d475
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
lea edx, [ebp - 4]
push edx
push edi
push eax
push esi
push ecx
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
je 0x41d475
push edi
call fcn.00423c61
mov edx, dword [ebp - 8]
add esp, 4
xor edi, edi
mov dword [edx], esi
pop esi
mov eax, edi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov esi, 0xe
mov edx, dword [ebp - 8]
mov dword [edx], esi
pop esi
mov eax, edi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, edi
pop edi
mov dword [ecx], 0x57
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x41d610
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x432030
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x447854]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp dword [esi + 4], ebx
je 0x41d658
push 0x441b04
lea eax, [ebp - 0x11]
push eax
mov byte [ebp - 0x11], bl
call fcn.004232df
mov eax, dword [esi + 8]
push eax
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi + 4], eax
cmp eax, ebx
jne 0x41d67c
push 0x441b04
lea ecx, [ebp - 0x12]
push ecx
mov byte [ebp - 0x12], bl
call fcn.004232df
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x41d6c2
mov edx, dword [esi]
mov eax, dword [edx + 0x14]
mov ecx, esi
call eax
push 0x441b04
lea ecx, [ebp - 0x13]
push ecx
mov byte [ebp - 0x13], bl
call fcn.004232df
mov byte [ebp - 0x14], 0
mov eax, 0x41d6ad
ret
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41d6e0
Capabilities:
Check mutex on windows

Disassembly:
push ebx
push esi
mov esi, ecx
xor bl, bl
cmp dword [esi + 4], 0
jne 0x41d6fd
mov eax, dword [esi + 8]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi + 4], eax
mov eax, dword [esi + 4]
test eax, eax
je 0x41d73e
mov ecx, dword [esi + 0xc]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push ecx
push eax
call edi
test eax, eax
je 0x41d738
cmp eax, 0x80
jne 0x41d729
mov ecx, dword [esi + 4]
push 0
push ecx
call edi
test eax, eax
je 0x41d732
mov edx, dword [esi]
mov eax, dword [edx + 0x14]
mov ecx, esi
call eax
pop edi
pop esi
mov al, bl
pop ebx
ret
pop edi
pop esi
mov al, 1
pop ebx
ret
pop esi
mov al, bl
pop ebx
ret

Function at 0x41d980
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4320c9
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x447854]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor edi, edi
mov dword [ebp - 0x10], edi
mov eax, dword [0x447820]
mov edx, dword [eax + 0xc]
mov ecx, 0x447820
mov dword [ebp - 4], edi
call edx
mov esi, dword [ebp + 8]
add eax, 0x10
mov dword [esi], eax
mov edx, dword [ebp + 0xc]
mov ecx, 1
mov dword [ebp - 0x10], ecx
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, 0x201
or eax, ecx
mov dword [ebp - 4], edi
mov edi, dword [edx]
jge 0x41d9ef
push 0x201
mov ecx, esi
call fcn.004013a0
mov eax, dword [esi]
mov ecx, dword [ebp + 0x10]
mov ecx, dword [ecx]
mov edx, dword [0x448d3c]
push edi
push 0x200
push eax
push 0x4377c8
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov eax, dword [esi]
cmp dword [eax - 8], 0x201
jl 0x41da42
mov dword [eax - 0xc], 0x201
mov eax, dword [esi]
xor ecx, ecx
mov word [eax + 0x402], cx
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
push 0x80070057
call fcn.00401010
int3
Function at 0x41dcc0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4321d1
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x447854]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x20], ecx
xor esi, esi
mov dword [ebp - 0x1c], esi
mov eax, dword [0x447820]
mov edx, dword [eax + 0xc]
mov ecx, 0x447820
mov dword [ebp - 4], esi
call edx
mov ecx, dword [ebp + 8]
add eax, 0x10
mov dword [ecx], eax
mov ebx, dword [ebp + 0x10]
mov eax, 1
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], eax
mov esi, 0x2710
xor ecx, ecx
mov eax, esi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00423fb4
mov edi, eax
add esp, 4
mov dword [ebp - 0x18], edi
test edi, edi
jne 0x41dd58
mov byte [ebp - 0x11], al
push 0x441b04
lea eax, [ebp - 0x11]
push eax
call fcn.004232df
mov ecx, dword [ebp + 0xc]
mov dword [edi], 0
mov eax, dword [ecx]
mov ecx, dword [ebx]
push eax
push esi
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionW]
lea edx, [esi - 2]
cmp eax, edx
je 0x41de2d
mov ecx, dword [ebp - 0x20]
push eax
push edi
lea eax, [ebp + 0xc]
push eax
call fcn.0041da50
mov edx, dword [ebp + 8]
mov eax, dword [eax]
mov esi, dword [edx]
lea ecx, [eax - 0x10]
sub esi, 0x10
mov byte [ebp - 4], 2
cmp ecx, esi
je 0x41dde8
cmp dword [esi + 0xc], 0
lea ebx, [esi + 0xc]
jl 0x41dddb
mov edx, dword [ecx]
cmp edx, dword [esi]
jne 0x41dddb
push ecx
call fcn.00401330
mov dword [ebp + 0x10], eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x41ddce
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 8]
add ecx, 0x10
mov dword [edx], ecx
jmp 0x41dde8
mov ecx, dword [eax - 0xc]
push ecx
mov ecx, dword [ebp + 8]
push eax
call fcn.004015c0
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41de0b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
cmp dword [edx - 0xc], 0
sete al
cmp al, 1
jne 0x41de5e
push 0x441b04
lea eax, [ebp - 0x12]
push eax
mov byte [ebp - 0x12], 0
call fcn.004232df
push edi
call fcn.00423c61
add esp, 4
mov dword [ebp - 0x18], 0
add esi, 0x3e8
jmp 0x41dd23
test edi, edi
je 0x41de6b
push edi
call fcn.00423c61
add esp, 4
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x41e840
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4322b1
mov eax, dword fs:[0]
push eax
sub esp, 0x920
mov eax, dword [0x447854]
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 ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
lea eax, [ebp + 0x14]
push eax
push ecx
push edx
lea ecx, [esi + 4]
call fcn.0041f1a0
cmp byte [esi + 0x10], 0
je 0x41ea5f
mov eax, dword [0x447820]
mov edx, dword [eax + 0xc]
mov ecx, 0x447820
call edx
add eax, 0x10
mov dword [ebp - 0x928], eax
mov ecx, dword [ebp + 0x10]
lea eax, [ebp + 0x14]
push eax
push ecx
lea edx, [ebp - 0x890]
push 0x3ff
push edx
mov dword [ebp - 4], 0
call fcn.00424d5a
add esp, 0x10
test eax, eax
js 0x41e8e2
cmp eax, 0x3ff
ja 0x41e8e2
jne 0x41e8eb
xor eax, eax
mov word [ebp - 0x92], ax
jmp 0x41e8eb
xor ecx, ecx
mov word [ebp - 0x92], cx
lea eax, [ebp - 0x890]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41e8f4
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp - 0x890]
push edx
lea ecx, [ebp - 0x928]
call fcn.004015c0
mov ecx, dword [ebp - 0x928]
push 3
lea eax, [ebp - 0x920]
push ecx
lea ecx, [ebp - 0x924]
mov dword [ebp - 0x924], eax
call fcn.0041e1e0
mov eax, dword [ebp - 0x924]
mov byte [ebp - 4], 1
test eax, eax
je 0x41ea23
mov edx, SysReAllocString
mov ecx, eax
nop
cmp byte [ecx], 0
je 0x41e95e
inc ecx
dec edx
jne 0x41e950
jmp 0x41ea23
test edx, edx
je 0x41ea23
push eax
lea ecx, [ebp - 0x92c]
call fcn.0041e630
lea edx, [ebp - 0x8a0]
push edx
mov byte [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
push 0x80
lea eax, [ebp - 0x90]
push eax
push 0
lea ecx, [ebp - 0x8a0]
push ecx
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTimeFormatA]
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
sub esp, 0x84
mov edi, esp
push eax
push ebx
lea edx, [ebp - 0x90]
push edx
lea eax, [ebp - 0x92c]
push str._s_:__0x_X_0x_X___s
mov ecx, 0x21
lea esi, [ebp - 0x924]
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.0041e610
mov ecx, dword [ebp - 0x92c]
add esp, 0x98
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [ebp - 0x92c]
add eax, 0xfffffff0
mov byte [ebp - 4], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41ea1d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x924]
lea ecx, [ebp - 0x920]
cmp eax, ecx
je 0x41ea36
push eax
call fcn.00423be7
add esp, 4
mov eax, dword [ebp - 0x928]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41ea5f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
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.00423a19
mov esp, ebp
pop ebp
ret
Function at 0x41ec00
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, ecx
cmp dword [esi + 4], 0
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
jne 0x41ec78
mov ebx, dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [esi + 4], eax
test ebx, ebx
je 0x41ec74
test eax, eax
je 0x41ec74
push str.DebugOpen
push eax
call edi
mov dword [esi + 0xc], eax
mov eax, dword [esi + 4]
push str.DebugClose
push eax
call edi
mov ecx, dword [esi + 4]
push str.TraceWrite
push ecx
mov dword [esi + 0x10], eax
call edi
mov edx, dword [esi + 4]
push str.DumpWrite
push edx
mov dword [esi + 0x14], eax
call edi
cmp dword [esi + 0xc], 0
mov dword [esi + 0x18], eax
je 0x41ec74
cmp dword [esi + 0x10], 0
je 0x41ec74
cmp dword [esi + 0x14], 0
je 0x41ec74
test eax, eax
jne 0x41ec78
xor ebx, ebx
jmp 0x41ec7d
mov ebx, 1
cmp dword [esi + 8], 0
jne 0x41ece3
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [esi + 8], eax
test eax, eax
je 0x41ecdf
push str.DebugOpen
push eax
call edi
mov ecx, dword [esi + 8]
push str.DebugClose
push ecx
mov dword [esi + 0x1c], eax
call edi
mov edx, dword [esi + 8]
push str.TraceWrite
push edx
mov dword [esi + 0x20], eax
call edi
mov dword [esi + 0x24], eax
mov eax, dword [esi + 8]
push str.DumpWrite
push eax
call edi
cmp dword [esi + 0x1c], 0
mov dword [esi + 0x28], eax
je 0x41ecdf
cmp dword [esi + 0x20], 0
je 0x41ecdf
cmp dword [esi + 0x24], 0
je 0x41ecdf
test eax, eax
jne 0x41ece3
xor eax, eax
jmp 0x41ece8
mov eax, 1
test ebx, ebx
je 0x41ecee
mov eax, ebx
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x41ee90
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x18]
push esi
lea edx, [ebp - 4]
push edx
push 0x20019
xor esi, esi
lea ecx, [eax + eax]
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp + 0x18], ecx
mov ecx, dword [ebp + 8]
push eax
push ecx
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
jne 0x41eeed
mov eax, dword [ebp + 0x14]
lea edx, [ebp + 0x18]
push edx
mov edx, dword [ebp + 0x10]
push eax
mov eax, dword [ebp - 4]
lea ecx, [ebp - 8]
push ecx
push esi
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [ebp - 4]
push ecx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 0x14