joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4edcc0
Capabilities:
Create service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53728c
mov eax, dword fs:[0]
push eax
sub esp, 0x17c
push ebx
push esi
push edi
mov eax, dword [0x581d10]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x10], ebx
call fcn.00422a40
test eax, eax
jg 0x4edd42
push ebx
push 0x1b2
push str.RepairService_repair.cc
lea ecx, [ebp - 0xd8]
call fcn.00422a50
mov dword [ebp - 4], ebx
lea edi, [esi + 8]
add eax, 8
mov ebx, 1
push str.Installing_service
push eax
mov dword [ebp - 0x10], ebx
call fcn.004189b0
add esp, 8
cmp dword [edi + 0x14], 8
jb 0x4edd38
mov edi, dword [edi]
push edi
push eax
call fcn.00423070
add esp, 8
mov dword [ebp - 4], 0xffffffff
test bl, 1
je 0x4edd5c
lea ecx, [ebp - 0xd8]
and ebx, 0xfffffffe
call fcn.00422aa0
lea eax, [esi + 0x44]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.004ef7a0
add esp, 8
mov ecx, eax
cmp dword [ecx + 0x14], 8
mov dword [ebp - 4], 1
jb 0x4edd7d
mov ecx, dword [ecx]
cmp dword [esi + 0x34], 8
lea eax, [esi + 0x20]
jb 0x4edd88
mov eax, dword [eax]
cmp dword [esi + 0x1c], 8
lea edx, [esi + 8]
jb 0x4edd93
mov edx, dword [edx]
push 0
push 0
push 0
push 0
push 0
push ecx
push dword [esi + 0x40]
push dword [esi + 0x3c]
push dword [esi + 0x38]
push 0xf01ff
push eax
push edx
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov edi, eax
mov eax, dword [esi + 4]
cmp eax, edi
je 0x4eddfe
test eax, eax
je 0x4eddf2
call fcn.0042a570
push dword [esi + 4]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov dword [ebp - 4], 1
test bl, 8
je 0x4eddeb
lea ecx, [ebp - 0x188]
and ebx, 0xfffffff7
call fcn.00422aa0
mov dword [esi + 4], 0
test edi, edi
je 0x4eddfe
mov dword [esi + 4], edi
call fcn.0042a570
cmp dword [ebp - 0x14], 8
mov dword [ebp - 4], 0xffffffff
jb 0x4ede16
push dword [ebp - 0x28]
call fcn.004b1ca1
add esp, 4
cmp dword [esi + 4], 0
jne 0x4ede96
call fcn.00422a40
cmp eax, 2
jg 0x4ede6b
push 2
push 0x1c3
push str.RepairService_repair.cc
lea ecx, [ebp - 0xd8]
call fcn.00422a50
mov esi, eax
or ebx, 2
mov dword [ebp - 4], 3
mov dword [ebp - 0x10], ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esi + 8]
push str.CreateService_failed:
push eax
call fcn.004189b0
add esp, 8
mov ecx, eax
call fcn.0041c1a0
mov dword [ebp - 4], 0xffffffff
test bl, 2
je 0x4ede82
lea ecx, [ebp - 0xd8]
call fcn.00422aa0
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.00422a40
test eax, eax
jg 0x4eded4
push 0
push 0x1c7
push str.RepairService_repair.cc
lea ecx, [ebp - 0x188]
call fcn.00422a50
add eax, 8
mov dword [ebp - 4], 4
push str.Service_installed_successfully
or ebx, 4
push eax
mov dword [ebp - 0x10], ebx
call fcn.004189b0
add esp, 8
mov dword [ebp - 4], 0xffffffff
test bl, 4
je 0x4edeeb
lea ecx, [ebp - 0x188]
call fcn.00422aa0
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 0x4ee210
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x537394
mov eax, dword fs:[0]
push eax
sub esp, 0xcc
mov eax, dword [0x581d10]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor ebx, ebx
push esi
mov dword [ebp - 0x14], ebx
call fcn.004ee360
add esp, 4
test al, al
jne 0x4ee25a
lea eax, [ebx + 2]
jmp 0x4ee341
xor eax, eax
mov byte [ebp - 0x15], bl
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x28], vtable.ATL::CAccessToken.0
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x88]
push eax
call fcn.0044830a
add esp, 4
lea ecx, [ebp - 0x14]
add eax, 4
push ecx
push eax
push 0
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
je 0x4ee2a9
cmp dword [ebp - 0x14], 0
setne byte [ebp - 0x15]
lea ecx, [ebp - 0x88]
call fcn.0043b283
cmp byte [ebp - 0x15], 0
jne 0x4ee30f
call fcn.00422a40
cmp eax, 2
jg 0x4ee2f8
push 2
push 0xf2
push str.RepairService_repair.cc
lea ecx, [ebp - 0xd8]
call fcn.00422a50
add eax, 8
mov byte [ebp - 4], 1
push str.User_seems_not_in_Administrators_group__continue_anyway
mov ebx, 1
push eax
mov dword [ebp - 0x14], ebx
call fcn.004189b0
add esp, 8
mov dword [ebp - 4], 0
test bl, 1
je 0x4ee30f
lea ecx, [ebp - 0xd8]
call fcn.00422aa0
call fcn.004ee500
test al, al
jne 0x4ee31f
mov esi, 3
jmp 0x4ee335
push esi
call fcn.004ee750
add esp, 4
test al, al
jne 0x4ee333
mov esi, 7
jmp 0x4ee335
xor esi, esi
push 0
call fcn.004b1ca1
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004f1cdb
mov esp, ebp
pop ebp
ret
Function at 0x4eebf0
Capabilities:
Modify service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x537598
mov eax, dword fs:[0]
push eax
sub esp, 0x180
push ebx
push esi
push edi
mov eax, dword [0x581d10]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x14], ebx
call fcn.00422a40
test eax, eax
jg 0x4eec72
push ebx
push 0x1ce
push str.RepairService_repair.cc
lea ecx, [ebp - 0xdc]
call fcn.00422a50
mov dword [ebp - 4], ebx
lea edi, [esi + 8]
add eax, 8
mov ebx, 1
push str.Restoring_configuration_for_service
push eax
mov dword [ebp - 0x14], ebx
call fcn.004189b0
add esp, 8
cmp dword [edi + 0x14], 8
jb 0x4eec68
mov edi, dword [edi]
push edi
push eax
call fcn.00423070
add esp, 8
mov dword [ebp - 4], 0xffffffff
test bl, 1
je 0x4eec8c
lea ecx, [ebp - 0xdc]
and ebx, 0xfffffffe
call fcn.00422aa0
lea eax, [esi + 0x44]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.004ef7a0
lea ecx, [esi + 0x20]
add esp, 8
cmp dword [ecx + 0x14], 8
jb 0x4eeca7
mov ecx, dword [ecx]
cmp dword [eax + 0x14], 8
jb 0x4eecaf
mov eax, dword [eax]
push ecx
push 0
push 0
push 0
push 0
push 0
push eax
push dword [esi + 0x40]
push dword [esi + 0x3c]
push dword [esi + 0x38]
push dword [esi + 4]
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
test eax, eax
sete al
cmp dword [ebp - 0x18], 8
mov byte [ebp - 0xd], al
jb 0x4eece9
push dword [ebp - 0x2c]
call fcn.004b1ca1
mov al, byte [ebp - 0xd]
add esp, 4
test al, al
je 0x4eed67
call fcn.00422a40
cmp eax, 2
jg 0x4eed3c
push 2
push 0x1dc
push str.RepairService_repair.cc
lea ecx, [ebp - 0x18c]
call fcn.00422a50
mov esi, eax
or ebx, 2
mov dword [ebp - 4], 1
mov dword [ebp - 0x14], ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esi + 8]
push str.ChangeServiceConfig_failed:
push eax
call fcn.004189b0
add esp, 8
mov ecx, eax
call fcn.0041c1a0
mov dword [ebp - 4], 0xffffffff
test bl, 2
je 0x4eed53
lea ecx, [ebp - 0x18c]
call fcn.00422aa0
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
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 0x4eed80
Capabilities:
Start service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x537614
mov eax, dword fs:[0]
push eax
sub esp, 0x164
push ebx
push esi
push edi
mov eax, dword [0x581d10]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 0x10], ebx
call fcn.00422a40
test eax, eax
jg 0x4eee02
push ebx
push 0x250
push str.RepairService_repair.cc
lea ecx, [ebp - 0xc0]
call fcn.00422a50
mov dword [ebp - 4], ebx
lea esi, [edi + 8]
add eax, 8
mov ebx, 1
push str.Asynchronously_starting_service
push eax
mov dword [ebp - 0x10], ebx
call fcn.004189b0
add esp, 8
cmp dword [esi + 0x14], 8
jb 0x4eedf8
mov esi, dword [esi]
push esi
push eax
call fcn.00423070
add esp, 8
mov dword [ebp - 4], 0xffffffff
test bl, 1
je 0x4eee1c
lea ecx, [ebp - 0xc0]
and ebx, 0xfffffffe
call fcn.00422aa0
push 0
push 0
push dword [edi + 4]
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x4eeea6
call fcn.00422a40
test eax, eax
jg 0x4eee7b
push 0
push 0x253
push str.RepairService_repair.cc
lea ecx, [ebp - 0xc0]
call fcn.00422a50
mov esi, eax
or ebx, 2
mov dword [ebp - 4], 1
mov dword [ebp - 0x10], ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esi + 8]
push str.StartService_failed:
push eax
call fcn.004189b0
add esp, 8
mov ecx, eax
call fcn.0041c1a0
mov dword [ebp - 4], 0xffffffff
test bl, 2
je 0x4eee92
lea ecx, [ebp - 0xc0]
call fcn.00422aa0
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.00422a40
test eax, eax
jg 0x4eef04
push 0
push 0x257
push str.RepairService_repair.cc
lea ecx, [ebp - 0x170]
call fcn.00422a50
add eax, 8
mov dword [ebp - 4], 2
push str.Service
or ebx, 4
lea esi, [edi + 8]
push eax
mov dword [ebp - 0x10], ebx
call fcn.004189b0
add esp, 8
cmp dword [esi + 0x14], 8
jb 0x4eeeef
mov esi, dword [esi]
push esi
push eax
call fcn.00423070
push str._start_pending...
push eax
call fcn.004189b0
add esp, 0x10
mov dword [ebp - 4], 0xffffffff
test bl, 4
je 0x4eef1b
lea ecx, [ebp - 0x170]
call fcn.00422aa0
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 0x4ef190
Capabilities:
Stop service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5376ec
mov eax, dword fs:[0]
push eax
sub esp, 0xd4
mov eax, dword [0x581d10]
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 ebx, ecx
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
call fcn.00422a40
test eax, eax
jg 0x4ef232
push 0
push 0x20e
push str.RepairService_repair.cc
lea ecx, [ebp - 0xe0]
call fcn.00422a50
add eax, 8
mov dword [ebp - 4], 0
push str.Stopping_service
push eax
mov dword [ebp - 0x30], 1
lea esi, [ebx + 8]
call fcn.004189b0
add esp, 8
cmp dword [esi + 0x14], 8
jb 0x4ef228
mov esi, dword [esi]
push esi
push eax
call fcn.00423070
add esp, 8
test byte [ebp - 0x30], 1
mov dword [ebp - 4], 0xffffffff
je 0x4ef24a
lea ecx, [ebp - 0xe0]
call fcn.00422aa0
mov edi, dword [sym.imp.ADVAPI32.dll_ControlService]
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x2c]
push eax
push 1
push dword [ebx + 4]
call edi
test eax, eax
je 0x4ef276
push 0x1f4
call esi
cmp dword [ebp - 0x28], 1
jne 0x4ef256
mov al, 1
jmp 0x4ef278
xor al, al
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.004f1cdb
mov esp, ebp
pop ebp
ret

Function at 0x4ef2a0
Capabilities:
Delete service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53773c
mov eax, dword fs:[0]
push eax
sub esp, 0x164
push ebx
push esi
push edi
mov eax, dword [0x581d10]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x10], ebx
call fcn.00422a40
test eax, eax
jg 0x4ef322
push ebx
push 0x1e6
push str.RepairService_repair.cc
lea ecx, [ebp - 0xc0]
call fcn.00422a50
mov dword [ebp - 4], ebx
lea edi, [esi + 8]
add eax, 8
mov ebx, 1
push str.Uninstalling_service
push eax
mov dword [ebp - 0x10], ebx
call fcn.004189b0
add esp, 8
cmp dword [edi + 0x14], 8
jb 0x4ef318
mov edi, dword [edi]
push edi
push eax
call fcn.00423070
add esp, 8
mov dword [ebp - 4], 0xffffffff
test bl, 1
je 0x4ef33c
lea ecx, [ebp - 0xc0]
and ebx, 0xfffffffe
call fcn.00422aa0
mov ecx, esi
call fcn.004ef190
test al, al
jne 0x4ef34e
mov ecx, esi
call fcn.004ed970
push dword [esi + 4]
call dword [sym.imp.ADVAPI32.dll_DeleteService]
cmp dword [esi + 4], 0
je 0x4ef389
call fcn.0042a570
push dword [esi + 4]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov dword [ebp - 4], 0xffffffff
test bl, 2
je 0x4ef382
lea ecx, [ebp - 0x170]
call fcn.00422aa0
mov dword [esi + 4], 0
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 0x4ef820
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53786b
mov eax, dword fs:[0]
push eax
sub esp, 0x224
mov eax, dword [0x581d10]
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 + 8]
xor edx, edx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x230], edx
mov dword [ebp - 0x22c], edx
mov dword [ebp - 0x228], edx
mov dword [ebp - 0x230], edx
mov dword [ebp - 0x22c], edx
mov dword [ebp - 0x228], edx
push 0x2001f
push eax
push dword [ecx]
lea ecx, [ebp - 0x230]
mov dword [ebp - 4], edx
call fcn.0043c6fa
mov edi, dword [ebp - 0x230]
test eax, eax
je 0x4ef89e
xor bl, bl
jmp 0x4ef914
push 0x208
xor esi, esi
lea eax, [ebp - 0x218]
push esi
push eax
call fcn.004f28b0
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
add esp, 0xc
jmp 0x4ef8c0
lea eax, [ebp - 0x224]
mov dword [ebp - 0x21c], 0x208
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x218]
push eax
push esi
push edi
call ebx
test eax, eax
jne 0x4ef912
lea eax, [ebp - 0x218]
mov dword [ebp - 0x21c], edi
push eax
lea eax, [ebp - 0x21c]
inc esi
push eax
call fcn.004ef820
add esp, 8
test al, al
jne 0x4ef8c0
xor bl, bl
jmp 0x4ef914
mov bl, 1
test edi, edi
je 0x4ef91f
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
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.004f1cdb
mov esp, ebp
pop ebp
ret
Function at 0x4ef940
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5378ab
mov eax, dword fs:[0]
push eax
sub esp, 0x230
mov eax, dword [0x581d10]
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 esi, dword [ebp + 8]
xor eax, eax
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x23c], eax
mov dword [ebp - 0x238], eax
mov dword [ebp - 0x234], eax
mov dword [ebp - 0x23c], eax
mov dword [ebp - 0x238], eax
mov dword [ebp - 0x234], eax
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 4], eax
mov dword [ebp - 0x230], eax
lea eax, [ebp - 0x230]
push eax
push 0x60000
push 4
push edi
push dword [esi]
call ebx
test eax, eax
je 0x4ef9de
lea eax, [ebp - 0x230]
push eax
push 0x60000
push 0
push edi
push dword [esi]
call ebx
test eax, eax
je 0x4ef9de
xor al, al
jmp 0x4efab5
mov edi, dword [ebp - 0x230]
xor eax, eax
push 2
mov dword [ebp - 0x224], eax
mov dword [ebp - 0x220], eax
lea eax, [ebp - 0x224]
push 8
push eax
mov dword [ebp - 0x23c], edi
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 0
call dword [sym.imp.ADVAPI32.dll_InitializeAcl]
push 0
lea eax, [ebp - 0x224]
push eax
push 0
push 0
push 0x20000004
push 4
push edi
call dword [sym.imp.ADVAPI32.dll_SetSecurityInfo]
push 0x208
xor esi, esi
lea eax, [ebp - 0x218]
push esi
push eax
call fcn.004f28b0
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
add esp, 0xc
mov dword [ebp - 0x21c], 0x208
nop
lea eax, [ebp - 0x22c]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x218]
push eax
push esi
push edi
call ebx
test eax, eax
jne 0x4efaa6
lea eax, [ebp - 0x218]
mov dword [ebp - 0x21c], 0x208
push eax
lea eax, [ebp - 0x230]
inc esi
push eax
call fcn.004ef940
add esp, 8
jmp 0x4efa60
mov bl, 1
test edi, edi
je 0x4efab3
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
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.004f1cdb
mov esp, ebp
pop ebp
ret
Function at 0x5127a1
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x581d10]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.004ff525
mov dword [ebp - 0x14], eax
cmp dword [0x5adc80], esi
jne 0x512894
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x512821
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x512974
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x512974
push 0x54ac00
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x512974
push eax
call ebx
push 0x54ac0c
push edi
mov dword [0x5adc80], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x5adc84], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x5adc88], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x5adc90], eax
test eax, eax
je 0x512891
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x5adc8c], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x5128b9
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x5128ac
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x5128ce
push 4
pop eax
jmp 0x512976
cmp dword [ebp - 0x14], esi
je 0x5128ce
push dword [0x5adc80]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x5128b3
mov eax, dword [0x5adc8c]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x51292c
cmp dword [0x5adc90], edi
je 0x51292c
push eax
call ebx
push dword [0x5adc90]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x51292c
test eax, eax
je 0x51292c
call ecx
test eax, eax
je 0x512921
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x512921
test byte [ebp - 8], 1
jne 0x51292c
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x51295c
mov eax, dword [0x5adc84]
cmp eax, edi
je 0x512959
push eax
call ebx
test eax, eax
je 0x512959
call eax
mov esi, eax
test esi, esi
je 0x512959
mov eax, dword [0x5adc88]
cmp eax, edi
je 0x512959
push eax
call ebx
test eax, eax
je 0x512959
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x5adc80]
call ebx
test eax, eax
je 0x512974
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x512976
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004f1cdb
mov esp, ebp
pop ebp
ret
Function at 0x5204be
Capabilities:
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov ecx, dword [ebp + 0xc]
mov eax, 0x1505
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 8]
mov ebx, dword [edi + 0x8c]
add ebx, ecx
cmp esi, 0x102
jae 0x5205ce
test esi, esi
je 0x5205ce
xor edx, edx
mov dword [ebp - 4], edx
test esi, esi
je 0x52050f
mov edi, edx
movzx ecx, byte [edi + ebx]
imul eax, eax, 0x21
add eax, ecx
inc edi
cmp edi, esi
jb 0x5204fb
mov edi, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
and eax, 0xff
mov ebx, dword [edi + eax*4 + 0xb4]
mov dword [edi + eax*4 + 0xb4], ecx
mov dword [edi + 0x4c8], edx
test ebx, ebx
je 0x5205ce
sub ecx, ebx
cmp ecx, esi
jbe 0x5205ce
mov eax, dword [edi + 0x80]
sub eax, 0x106
cmp ecx, eax
jae 0x5205ce
cmp esi, dword [edi + 0x4cc]
ja 0x5205ce
test esi, esi
je 0x5205a4
mov ecx, dword [ebp + 0xc]
mov edx, ebx
mov eax, dword [edi + 0x8c]
add eax, ecx
sub edx, ecx
mov dword [ebp + 8], edx
mov edx, dword [ebp - 4]
mov dword [ebp + 0xc], eax
mov esi, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov al, byte [eax]
cmp al, byte [esi + ecx]
mov esi, dword [ebp + 0x10]
jne 0x5205ce
lea eax, [ebx + edx]
push eax
push edi
call fcn.005203da
pop ecx
pop ecx
cmp eax, 1
jne 0x5205ce
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 0xc]
inc edx
inc eax
mov dword [ebp - 4], edx
mov dword [ebp + 0xc], eax
cmp edx, esi
jb 0x520571
mov eax, dword [edi + 0x8c]
lea ecx, [ebx + esi]
cmp byte [ecx + eax - 1], 0x3b
je 0x5205c4
lea eax, [ebx + esi]
push eax
push edi
call fcn.005203da
pop ecx
pop ecx
test eax, eax
jne 0x5205ce
mov dword [edi + 0x4c8], ebx
mov eax, esi
jmp 0x5205d0
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x52121b
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0
jne 0x521228
xor eax, eax
pop ebp
ret
pop ebp
jmp fcn.00521287
Function at 0x41c50b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x41c54d
call fcn.004204a8
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x41c54d
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x41c544
xor eax, eax
jmp 0x41c555
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0041c55b
pop edi
pop esi
pop ebx
ret 4

Function at 0x4214b0
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4214de
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4214fc
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00421416
jmp 0x4214fc
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4214fc
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00421416
test edi, edi
mov eax, edi
jne 0x4214e6
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx