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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53793c
mov eax, dword fs:[0]
push eax
sub esp, 0x17c
push ebx
push esi
push edi
mov eax, dword [0x583d10]
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.00422b30
test eax, eax
jg 0x4ee2c2
push ebx
push 0x1b2
push str.RepairService_repair.cc
lea ecx, [ebp - 0xd8]
call fcn.00422b40
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 0x4ee2b8
mov edi, dword [edi]
push edi
push eax
call fcn.00423160
add esp, 8
mov dword [ebp - 4], 0xffffffff
test bl, 1
je 0x4ee2dc
lea ecx, [ebp - 0xd8]
and ebx, 0xfffffffe
call fcn.00422b90
lea eax, [esi + 0x44]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.004efd20
add esp, 8
mov ecx, eax
cmp dword [ecx + 0x14], 8
mov dword [ebp - 4], 1
jb 0x4ee2fd
mov ecx, dword [ecx]
cmp dword [esi + 0x34], 8
lea eax, [esi + 0x20]
jb 0x4ee308
mov eax, dword [eax]
cmp dword [esi + 0x1c], 8
lea edx, [esi + 8]
jb 0x4ee313
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 0x4ee37e
test eax, eax
je 0x4ee372
call fcn.0042a570
push dword [esi + 4]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov dword [ebp - 4], 1
test bl, 8
je 0x4ee36b
lea ecx, [ebp - 0x188]
and ebx, 0xfffffff7
call fcn.00422b90
mov dword [esi + 4], 0
test edi, edi
je 0x4ee37e
mov dword [esi + 4], edi
call fcn.0042a570
cmp dword [ebp - 0x14], 8
mov dword [ebp - 4], 0xffffffff
jb 0x4ee396
push dword [ebp - 0x28]
call fcn.004b217d
add esp, 4
cmp dword [esi + 4], 0
jne 0x4ee416
call fcn.00422b30
cmp eax, 2
jg 0x4ee3eb
push 2
push 0x1c3
push str.RepairService_repair.cc
lea ecx, [ebp - 0xd8]
call fcn.00422b40
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 0x4ee402
lea ecx, [ebp - 0xd8]
call fcn.00422b90
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.00422b30
test eax, eax
jg 0x4ee454
push 0
push 0x1c7
push str.RepairService_repair.cc
lea ecx, [ebp - 0x188]
call fcn.00422b40
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 0x4ee46b
lea ecx, [ebp - 0x188]
call fcn.00422b90
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 0x4ee790
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x537a44
mov eax, dword fs:[0]
push eax
sub esp, 0xcc
mov eax, dword [0x583d10]
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.004ee8e0
add esp, 4
test al, al
jne 0x4ee7da
lea eax, [ebx + 2]
jmp 0x4ee8c1
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 0x4ee829
cmp dword [ebp - 0x14], 0
setne byte [ebp - 0x15]
lea ecx, [ebp - 0x88]
call fcn.0043b283
cmp byte [ebp - 0x15], 0
jne 0x4ee88f
call fcn.00422b30
cmp eax, 2
jg 0x4ee878
push 2
push 0xf2
push str.RepairService_repair.cc
lea ecx, [ebp - 0xd8]
call fcn.00422b40
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 0x4ee88f
lea ecx, [ebp - 0xd8]
call fcn.00422b90
call fcn.004eea80
test al, al
jne 0x4ee89f
mov esi, 3
jmp 0x4ee8b5
push esi
call fcn.004eecd0
add esp, 4
test al, al
jne 0x4ee8b3
mov esi, 7
jmp 0x4ee8b5
xor esi, esi
push 0
call fcn.004b217d
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.004f225b
mov esp, ebp
pop ebp
ret
Function at 0x4ef170
Capabilities:
Modify service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x537c48
mov eax, dword fs:[0]
push eax
sub esp, 0x180
push ebx
push esi
push edi
mov eax, dword [0x583d10]
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.00422b30
test eax, eax
jg 0x4ef1f2
push ebx
push 0x1ce
push str.RepairService_repair.cc
lea ecx, [ebp - 0xdc]
call fcn.00422b40
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 0x4ef1e8
mov edi, dword [edi]
push edi
push eax
call fcn.00423160
add esp, 8
mov dword [ebp - 4], 0xffffffff
test bl, 1
je 0x4ef20c
lea ecx, [ebp - 0xdc]
and ebx, 0xfffffffe
call fcn.00422b90
lea eax, [esi + 0x44]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.004efd20
lea ecx, [esi + 0x20]
add esp, 8
cmp dword [ecx + 0x14], 8
jb 0x4ef227
mov ecx, dword [ecx]
cmp dword [eax + 0x14], 8
jb 0x4ef22f
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 0x4ef269
push dword [ebp - 0x2c]
call fcn.004b217d
mov al, byte [ebp - 0xd]
add esp, 4
test al, al
je 0x4ef2e7
call fcn.00422b30
cmp eax, 2
jg 0x4ef2bc
push 2
push 0x1dc
push str.RepairService_repair.cc
lea ecx, [ebp - 0x18c]
call fcn.00422b40
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 0x4ef2d3
lea ecx, [ebp - 0x18c]
call fcn.00422b90
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 0x4ef300
Capabilities:
Start service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x537cc4
mov eax, dword fs:[0]
push eax
sub esp, 0x164
push ebx
push esi
push edi
mov eax, dword [0x583d10]
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.00422b30
test eax, eax
jg 0x4ef382
push ebx
push 0x250
push str.RepairService_repair.cc
lea ecx, [ebp - 0xc0]
call fcn.00422b40
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 0x4ef378
mov esi, dword [esi]
push esi
push eax
call fcn.00423160
add esp, 8
mov dword [ebp - 4], 0xffffffff
test bl, 1
je 0x4ef39c
lea ecx, [ebp - 0xc0]
and ebx, 0xfffffffe
call fcn.00422b90
push 0
push 0
push dword [edi + 4]
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x4ef426
call fcn.00422b30
test eax, eax
jg 0x4ef3fb
push 0
push 0x253
push str.RepairService_repair.cc
lea ecx, [ebp - 0xc0]
call fcn.00422b40
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 0x4ef412
lea ecx, [ebp - 0xc0]
call fcn.00422b90
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.00422b30
test eax, eax
jg 0x4ef484
push 0
push 0x257
push str.RepairService_repair.cc
lea ecx, [ebp - 0x170]
call fcn.00422b40
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 0x4ef46f
mov esi, dword [esi]
push esi
push eax
call fcn.00423160
push str._start_pending...
push eax
call fcn.004189b0
add esp, 0x10
mov dword [ebp - 4], 0xffffffff
test bl, 4
je 0x4ef49b
lea ecx, [ebp - 0x170]
call fcn.00422b90
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 0x4ef710
Capabilities:
Stop service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x537d9c
mov eax, dword fs:[0]
push eax
sub esp, 0xd4
mov eax, dword [0x583d10]
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.00422b30
test eax, eax
jg 0x4ef7b2
push 0
push 0x20e
push str.RepairService_repair.cc
lea ecx, [ebp - 0xe0]
call fcn.00422b40
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 0x4ef7a8
mov esi, dword [esi]
push esi
push eax
call fcn.00423160
add esp, 8
test byte [ebp - 0x30], 1
mov dword [ebp - 4], 0xffffffff
je 0x4ef7ca
lea ecx, [ebp - 0xe0]
call fcn.00422b90
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 0x4ef7f6
push 0x1f4
call esi
cmp dword [ebp - 0x28], 1
jne 0x4ef7d6
mov al, 1
jmp 0x4ef7f8
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.004f225b
mov esp, ebp
pop ebp
ret

Function at 0x4ef820
Capabilities:
Delete service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x537dec
mov eax, dword fs:[0]
push eax
sub esp, 0x164
push ebx
push esi
push edi
mov eax, dword [0x583d10]
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.00422b30
test eax, eax
jg 0x4ef8a2
push ebx
push 0x1e6
push str.RepairService_repair.cc
lea ecx, [ebp - 0xc0]
call fcn.00422b40
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 0x4ef898
mov edi, dword [edi]
push edi
push eax
call fcn.00423160
add esp, 8
mov dword [ebp - 4], 0xffffffff
test bl, 1
je 0x4ef8bc
lea ecx, [ebp - 0xc0]
and ebx, 0xfffffffe
call fcn.00422b90
mov ecx, esi
call fcn.004ef710
test al, al
jne 0x4ef8ce
mov ecx, esi
call fcn.004edef0
push dword [esi + 4]
call dword [sym.imp.ADVAPI32.dll_DeleteService]
cmp dword [esi + 4], 0
je 0x4ef909
call fcn.0042a570
push dword [esi + 4]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov dword [ebp - 4], 0xffffffff
test bl, 2
je 0x4ef902
lea ecx, [ebp - 0x170]
call fcn.00422b90
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 0x4efda0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x537f1b
mov eax, dword fs:[0]
push eax
sub esp, 0x224
mov eax, dword [0x583d10]
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 0x4efe1e
xor bl, bl
jmp 0x4efe94
push 0x208
xor esi, esi
lea eax, [ebp - 0x218]
push esi
push eax
call fcn.004f2e30
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
add esp, 0xc
jmp 0x4efe40
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 0x4efe92
lea eax, [ebp - 0x218]
mov dword [ebp - 0x21c], edi
push eax
lea eax, [ebp - 0x21c]
inc esi
push eax
call fcn.004efda0
add esp, 8
test al, al
jne 0x4efe40
xor bl, bl
jmp 0x4efe94
mov bl, 1
test edi, edi
je 0x4efe9f
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.004f225b
mov esp, ebp
pop ebp
ret
Function at 0x4efec0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x537f5b
mov eax, dword fs:[0]
push eax
sub esp, 0x230
mov eax, dword [0x583d10]
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 0x4eff5e
lea eax, [ebp - 0x230]
push eax
push 0x60000
push 0
push edi
push dword [esi]
call ebx
test eax, eax
je 0x4eff5e
xor al, al
jmp 0x4f0035
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.004f2e30
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 0x4f0026
lea eax, [ebp - 0x218]
mov dword [ebp - 0x21c], 0x208
push eax
lea eax, [ebp - 0x230]
inc esi
push eax
call fcn.004efec0
add esp, 8
jmp 0x4effe0
mov bl, 1
test edi, edi
je 0x4f0033
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.004f225b
mov esp, ebp
pop ebp
ret
Function at 0x512d31
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x583d10]
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.004ffaa5
mov dword [ebp - 0x14], eax
cmp dword [0x5afc80], esi
jne 0x512e24
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x512db1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x512f04
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x512f04
push 0x54bf90
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x512f04
push eax
call ebx
push 0x54bf9c
push edi
mov dword [0x5afc80], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x5afc84], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x5afc88], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x5afc90], eax
test eax, eax
je 0x512e21
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x5afc8c], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x512e49
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x512e3c
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x512e5e
push 4
pop eax
jmp 0x512f06
cmp dword [ebp - 0x14], esi
je 0x512e5e
push dword [0x5afc80]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x512e43
mov eax, dword [0x5afc8c]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x512ebc
cmp dword [0x5afc90], edi
je 0x512ebc
push eax
call ebx
push dword [0x5afc90]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x512ebc
test eax, eax
je 0x512ebc
call ecx
test eax, eax
je 0x512eb1
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 0x512eb1
test byte [ebp - 8], 1
jne 0x512ebc
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x512eec
mov eax, dword [0x5afc84]
cmp eax, edi
je 0x512ee9
push eax
call ebx
test eax, eax
je 0x512ee9
call eax
mov esi, eax
test esi, esi
je 0x512ee9
mov eax, dword [0x5afc88]
cmp eax, edi
je 0x512ee9
push eax
call ebx
test eax, eax
je 0x512ee9
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x5afc80]
call ebx
test eax, eax
je 0x512f04
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x512f06
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004f225b
mov esp, ebp
pop ebp
ret
Function at 0x520a5e
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 0x520b6e
test esi, esi
je 0x520b6e
xor edx, edx
mov dword [ebp - 4], edx
test esi, esi
je 0x520aaf
mov edi, edx
movzx ecx, byte [edi + ebx]
imul eax, eax, 0x21
add eax, ecx
inc edi
cmp edi, esi
jb 0x520a9b
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 0x520b6e
sub ecx, ebx
cmp ecx, esi
jbe 0x520b6e
mov eax, dword [edi + 0x80]
sub eax, 0x106
cmp ecx, eax
jae 0x520b6e
cmp esi, dword [edi + 0x4cc]
ja 0x520b6e
test esi, esi
je 0x520b44
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 0x520b6e
lea eax, [ebx + edx]
push eax
push edi
call fcn.0052097a
pop ecx
pop ecx
cmp eax, 1
jne 0x520b6e
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 0x520b11
mov eax, dword [edi + 0x8c]
lea ecx, [ebx + esi]
cmp byte [ecx + eax - 1], 0x3b
je 0x520b64
lea eax, [ebx + esi]
push eax
push edi
call fcn.0052097a
pop ecx
pop ecx
test eax, eax
jne 0x520b6e
mov dword [edi + 0x4c8], ebx
mov eax, esi
jmp 0x520b70
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x5217bb
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0
jne 0x5217c8
xor eax, eax
pop ebp
ret
pop ebp
jmp fcn.00521827
Function at 0x406de0
Capabilities:
Hide graphical window

Disassembly:
push 0
mov eax, dword [0x40a930]
push eax
call sub.user32.dll_ShowWindow
push 0xffffffffffffffec
mov eax, dword [0x40a930]
push eax
call sub.user32.dll_GetWindowLongA
or eax, 0x80
push eax
push 0xffffffffffffffec
mov eax, dword [0x40a930]
push eax
call sub.user32.dll_SetWindowLongA
push 5
mov eax, dword [0x40a930]
push eax
call sub.user32.dll_ShowWindow
ret

Function at 0x401219
Capabilities:
Terminate process

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40501c
push 0x40109a
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push eax
fnstcw word [esp]
or word [esp], 0x300
fldcw word [esp]
add esp, 4
push 0
push 0
push 0x405028
push 0x405024
push 0x405020
call sub.CRTDLL.DLL___GetMainArgs
push dword [0x405028]
push dword [0x405024]
push dword [0x405020]
mov dword [0x405014], esp
call fcn.0040129c
add esp, 0x18
xor ecx, ecx
mov dword [ebp - 4], ecx
push eax
call sub.CRTDLL.DLL_exit
leave
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
nop
pop eax
nop
nop
add eax, 0x403d6f
nop
sub eax, 0x403d15
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
add ebx, 4
nop
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x430030
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
popal
jmp loc.00401219