joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406388
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1000
call fcn.0040daf0
push esi
mov esi, dword [ebp + 8]
cmp word [esi], 0
jne 0x4063a6
xor al, al
jmp 0x406530
push ebx
push edi
push esi
call fcn.00406205
push esi
call fcn.0040da7a
pop ecx
push esi
mov ebx, eax
call fcn.004062fd
test al, al
je 0x406450
push esi
call fcn.00406205
test al, al
je 0x4063fd
add ebx, 4
cmp dword [ebp + 0x10], ebx
jbe 0x40652c
mov edi, dword [ebp + 0xc]
push 4
push 0x41d654
push edi
call fcn.0040ea04
push esi
add edi, 8
push edi
call fcn.0040dac2
add esp, 0x14
jmp 0x406528
cmp word [esi], 0x5c
jne 0x40652c
add esi, 2
cmp word [esi], 0x5c
jne 0x40652c
add ebx, 6
cmp dword [ebp + 0x10], ebx
jbe 0x40652c
mov edi, dword [ebp + 0xc]
push 4
push 0x41d654
push edi
call fcn.0040ea04
lea eax, [edi + 8]
push 0x41d64c
push eax
call fcn.0040dac2
push esi
add edi, 0xe
push edi
call fcn.0040dac2
add esp, 0x1c
jmp 0x406528
lea eax, [ebp - 0x1000]
push eax
mov edi, 0x7ff
push edi
call dword [sym.imp.KERNEL32.DLL_GetCurrentDirectoryW]
test eax, eax
je 0x40652c
cmp eax, edi
ja 0x40652c
movzx eax, word [esi]
push eax
call fcn.004061ed
test al, al
je 0x4064bd
add ebx, 6
cmp dword [ebp + 0x10], ebx
jbe 0x40652c
mov edi, dword [ebp + 0xc]
push 4
push 0x41d654
push edi
call fcn.0040ea04
push 2
lea eax, [ebp - 0x1000]
push eax
lea eax, [edi + 8]
push eax
call fcn.0040ea04
push esi
add edi, 0xc
push edi
call fcn.0040dac2
add esp, 0x20
jmp 0x406528
push 0x800
lea eax, [ebp - 0x1000]
push eax
call fcn.00406231
lea eax, [ebp - 0x1000]
push eax
call fcn.0040da7a
lea eax, [eax + ebx + 4]
pop ecx
cmp dword [ebp + 0x10], eax
jbe 0x40652c
mov edi, dword [ebp + 0xc]
push 4
push 0x41d654
push edi
call fcn.0040ea04
lea eax, [ebp - 0x1000]
push eax
lea eax, [edi + 8]
push eax
call fcn.0040dac2
add esp, 0x14
cmp word [esi], 0x2e
jne 0x40651e
movzx eax, word [esi + 2]
push eax
call fcn.004061ed
test al, al
je 0x40651e
add esi, 4
push dword [ebp + 0x10]
push esi
push edi
call fcn.0040b540
mov al, 1
jmp 0x40652e
xor al, al
pop edi
pop ebx
pop esi
leave
ret 0xc
Function at 0x40832e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
push esi
cmp dword [0x42747c], ebx
jne 0x408347
mov ecx, 0x427474
call fcn.004082ef
mov esi, dword [ebp + 0xc]
mov ecx, esi
and ecx, 0xf
mov eax, esi
xor edx, edx
sub eax, ecx
cmp byte [ebp + 0x14], bl
setne dl
cmp byte [ebp + 0x10], bl
je 0x408399
mov ecx, dword [0x42747c]
cmp ecx, ebx
je 0x4083b5
push edx
push eax
push dword [ebp + 8]
call ecx
test eax, eax
jne 0x4083d6
push str.CryptProtectMemory_failed
mov esi, 0x4325fc
push esi
call fcn.00401729
pop ecx
pop ecx
mov ecx, esi
call fcn.00416cc5
push 2
mov ecx, esi
call fcn.00401677
jmp 0x4083d6
mov ecx, dword [0x427480]
cmp ecx, ebx
je 0x4083b5
push edx
push eax
push dword [ebp + 8]
call ecx
test eax, eax
jne 0x4083d6
push str.CryptUnprotectMemory_failed
jmp 0x40837a
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcessId]
xor ecx, ecx
cmp esi, ebx
jbe 0x4083d6
mov dl, al
add dl, 0x4b
mov eax, dword [ebp + 8]
add eax, ecx
mov bl, dl
add bl, cl
xor byte [eax], bl
inc ecx
cmp ecx, esi
jb 0x4083c6
pop esi
pop ebx
pop ebp
ret 0x10

Function at 0x408526
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
cmp dword [0x422038], 0
push ebx
push esi
push edi
mov edi, 0x400
jne 0x408571
push 0x64
lea eax, [ebp - 0x12c]
push eax
push 0xf
push edi
call dword [sym.imp.KERNEL32.DLL_GetLocaleInfoW]
mov ax, word [ebp - 0x12c]
mov word [0x43bbc4], ax
xor eax, eax
mov word [0x43bbc6], ax
mov dword [0x422038], 0x43bbc4
push 0x32
lea eax, [ebp - 0x64]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040b56e
mov ebx, dword [ebp + 0x14]
mov esi, dword [ebp + 0x10]
push ebx
push esi
xor eax, eax
push 0x422028
mov word [esi], ax
lea eax, [ebp - 0x64]
push eax
push 0
push edi
call dword [sym.imp.KERNEL32.DLL_GetNumberFormatW]
xor eax, eax
pop edi
mov word [esi + ebx*2 - 2], ax
pop esi
pop ebx
leave
ret 0x10
Function at 0x40868d
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
push ebx
push esi
push edi
push 0x68
push dword [0x4304c4]
call dword [sym.imp.USER32.dll_GetDlgItem]
cmp byte [0x4304c8], 0
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
mov edi, eax
mov dword [ebp - 4], edi
mov ebx, 0xb1
jne 0x4086ef
mov ecx, dword [0x42748c]
call fcn.0040ca17
push 5
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
push 0xffffffffffffffff
push 0
push ebx
push edi
call esi
push 0x41d43c
push 0
push 0xc2
push edi
call esi
mov byte [0x4304c8], 1
mov edi, 0x5f5e100
push edi
push edi
push ebx
push dword [ebp - 4]
call esi
lea eax, [ebp - 0x60]
push eax
push 0
push 0x43a
push dword [ebp - 4]
mov dword [ebp - 0x60], 0x5c
call esi
xor eax, eax
inc eax
cmp byte [ebp + 8], 0
mov byte [ebp - 0x47], 0
mov dword [ebp - 0x5c], eax
je 0x40873f
mov ecx, dword [ebp - 0x58]
and ecx, 0xbfffffff
or ecx, eax
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x4c], 0xa0
mov dword [ebp - 0x5c], 0x40000001
lea ecx, [ebp - 0x60]
push ecx
push eax
push 0x444
push dword [ebp - 4]
call esi
push dword [ebp + 0xc]
push 0
push 0xc2
push dword [ebp - 4]
call esi
push edi
push edi
push ebx
push dword [ebp - 4]
call esi
cmp byte [ebp + 8], 0
je 0x408789
mov eax, dword [ebp - 0x58]
and eax, 0xfffffffe
or eax, 0x40000000
mov dword [ebp - 0x58], eax
lea eax, [ebp - 0x60]
push eax
push 1
push 0x444
push dword [ebp - 4]
call esi
push 0x41d788
push 0
push 0xc2
push dword [ebp - 4]
call esi
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x408c18
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2000
call fcn.0040daf0
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 8]
test ebx, ebx
je 0x408c33
mov byte [ebx], 0
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x408c3d
mov byte [eax], 0
test edi, edi
je 0x408ce6
movzx eax, word [edi]
test ax, ax
je 0x408ce6
push esi
xor esi, esi
xor ecx, ecx
movzx eax, ax
inc edi
inc edi
cmp ax, 0x3d
jne 0x408c76
cmp dword [ebp + 0xc], 0
je 0x408c82
test esi, esi
jne 0x408c82
test ebx, ebx
je 0x408c72
mov byte [ebx], 1
mov esi, edx
jmp 0x408c91
cmp ax, 0xd
je 0x408ca4
cmp ax, 0xa
je 0x408ca6
mov word [edx], ax
mov eax, dword [ebp + 0x14]
inc edx
add eax, 0xfffffffe
inc edx
cmp ecx, eax
jge 0x408c9c
movzx eax, word [edi]
inc ecx
test ax, ax
jne 0x408c56
jmp 0x408ca6
mov eax, dword [ebp + 0x10]
mov byte [eax], 1
jmp 0x408ca6
inc edi
inc edi
mov ebx, dword [ebp + 0xc]
xor eax, eax
mov word [edx], ax
test ebx, ebx
je 0x408ce1
mov word [ebx], ax
test esi, esi
je 0x408ce1
push 0x1000
lea eax, [ebp - 0x2000]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_ExpandEnvironmentStringsW]
push dword [ebp + 0x14]
lea eax, [ebp - 0x2000]
push eax
push ebx
call fcn.0040b513
xor eax, eax
mov word [esi], ax
mov eax, edi
pop esi
jmp 0x408ce8
xor eax, eax
pop edi
pop ebx
leave
ret 0x10
Function at 0x409897
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1044
call fcn.0040daf0
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp word [esi], bx
je 0x409a95
push esi
call fcn.0040da7a
pop ecx
cmp eax, 0x7f6
jae 0x409a95
push edi
push 0x3c
pop edi
push edi
lea eax, [ebp - 0x44]
push ebx
push eax
call fcn.0040da00
movzx ecx, word [esi]
add esp, 0xc
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x40], 0x1c0
cmp cx, 0x22
jne 0x4098f2
lea eax, [esi + 2]
mov dword [ebp - 0x34], eax
jmp 0x4098f5
mov dword [ebp - 0x34], esi
xor eax, eax
cmp cx, bx
je 0x40994b
mov ecx, esi
cmp word [ecx], 0x22
jne 0x40991d
jmp 0x40990d
cmp word [esi + eax*2], 0x22
je 0x409916
inc eax
cmp word [esi + eax*2], bx
jne 0x409906
jmp 0x40991d
push 0x20
pop ecx
mov word [esi + eax*2], cx
cmp word [esi + eax*2], 0x20
je 0x409937
cmp word [esi + eax*2 + 2], 0x2f
je 0x409937
inc eax
lea ecx, [esi + eax*2]
cmp word [ecx], bx
jne 0x4098fe
jmp 0x40994b
lea eax, [esi + eax*2]
cmp word [eax], 0x20
jne 0x409945
xor ecx, ecx
mov word [eax], cx
add eax, 2
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
cmp eax, ebx
je 0x409957
cmp word [eax], bx
jne 0x40996c
cmp byte [ebp + 0xc], bl
jne 0x40996c
cmp word [0x4314fa], bx
je 0x40996c
mov dword [ebp - 0x30], 0x4314fa
push dword [ebp - 0x34]
mov dword [ebp - 0x28], 1
call fcn.00406716
mov edi, eax
cmp edi, ebx
je 0x409997
push str..inf
push edi
call fcn.0040c3c9
test eax, eax
jne 0x409997
mov dword [ebp - 0x38], 0x41d870
push dword [ebp - 0x34]
call fcn.00403af6
test al, al
je 0x4099c0
push 0x800
lea eax, [ebp - 0x1044]
push eax
push dword [ebp - 0x34]
call fcn.004067a4
lea eax, [ebp - 0x1044]
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x409a94
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
mov byte [ebp - 1], bl
cmp byte [0x4304f0], bl
jne 0x4099f0
cmp byte [ebp + 0xc], bl
jne 0x4099f0
cmp byte [0x4304dd], bl
je 0x409a50
cmp dword [ebp + 8], ebx
je 0x409a0c
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x409a0c
push ebx
push dword [ebp + 8]
call esi
mov byte [ebp - 1], 1
push 0x7d0
push dword [ebp - 0xc]
call dword [sym.imp.USER32.dll_WaitForInputIdle]
push dword [ebp - 0xc]
call fcn.00408cee
cmp byte [0x4304dd], bl
je 0x409a50
lea eax, [ebp - 8]
push eax
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.DLL_GetExitCodeProcess]
test eax, eax
je 0x409a50
mov eax, dword [ebp - 8]
add eax, 0x3e8
cmp eax, dword [0x4304e0]
jbe 0x409a50
mov dword [0x4304e0], eax
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
cmp edi, ebx
je 0x409a6c
push 0x41d864
push edi
call fcn.0040c3c9
test eax, eax
je 0x409a83
cmp byte [0x4304f0], bl
je 0x409a83
cmp byte [ebp + 0xc], bl
jne 0x409a83
mov dword [0x4304e4], 0x1b58
cmp byte [ebp - 1], bl
je 0x409a94
cmp byte [ebp + 0xc], bl
je 0x409a94
push 1
push dword [ebp + 8]
call esi
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x40ce5f
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
mov ebx, dword [sym.imp.KERNEL32.DLL_GetTickCount]
push esi
xor esi, esi
push edi
mov edi, ecx
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
call ebx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
lea edx, [ebp - 4]
push edx
push eax
call dword [ecx + 0x48]
test eax, eax
jl 0x40ce93
cmp dword [ebp - 4], esi
jne 0x40ced4
call ebx
sub eax, dword [ebp - 0xc]
cmp eax, 0x7d0
ja 0x40ced4
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x40ce7d
push esi
push esi
push esi
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
jmp 0x40ce7d
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
lea edx, [ebp - 4]
push edx
push eax
call dword [ecx + 0x48]
cmp eax, esi
mov dword [ebp + 8], eax
jl 0x40cf3f
mov eax, dword [ebp - 4]
cmp eax, esi
je 0x40cf35
mov ecx, dword [eax]
lea edx, [ebp - 8]
push edx
push 0x41df08
push eax
call dword [ecx]
cmp eax, esi
mov dword [ebp + 8], eax
jl 0x40cf2c
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x20]
cmp eax, esi
mov dword [ebp + 8], eax
jl 0x40cf23
mov eax, dword [ebp - 8]
push dword [ebp + 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov dword [ebp + 8], eax
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp dword [ebp + 8], esi
jl 0x40cf3f
cmp dword [ebp - 4], esi
jne 0x40cf8e
cmp dword [edi + 8], esi
je 0x40cf8e
cmp dword [edi + 0x18], esi
jne 0x40cf8e
mov eax, dword [edi + 0x14]
cmp eax, esi
je 0x40cf8e
push eax
mov ecx, edi
call fcn.0040cc8d
mov ebx, eax
cmp ebx, esi
je 0x40cf8e
push 0x204
push esi
push esi
push esi
push esi
push 1
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SetWindowPos]
push 5
push dword [edi + 8]
call dword [sym.imp.USER32.dll_ShowWindow]
push ebx
push dword [edi + 8]
call dword [sym.imp.USER32.dll_SetWindowTextW]
push ebx
call fcn.0040db1b
pop ecx
xor eax, eax
cmp dword [ebp + 8], esi
pop edi
pop esi
setge al
pop ebx
leave
ret 8
Function at 0x40d3ce
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
lea eax, [ebp - 4]
push eax
push 0x41def8
push 1
xor ebx, ebx
push ebx
push 0x41dfb8
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x40d49f
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
lea edx, [ebp - 8]
push edx
push 0x41dfa8
push eax
call dword [ecx]
test eax, eax
jl 0x40d496
cmp byte [ebp + 8], bl
je 0x40d421
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push 2
push dword [ebp + 0x10]
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 4]
push dword [ebp + 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x50]
cmp dword [ebp + 0x18], ebx
je 0x40d43e
mov eax, dword [ebp - 4]
push dword [ebp + 0x18]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x1c]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push ebx
cmp dword [ebp + 0x1c], ebx
jne 0x40d450
push 0x41d43c
jmp 0x40d453
push dword [ebp + 0x1c]
push eax
call dword [ecx + 0x44]
cmp dword [ebp + 0x20], ebx
je 0x40d468
mov eax, dword [ebp - 4]
push dword [ebp + 0x20]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x2c]
cmp dword [ebp + 0x14], ebx
je 0x40d479
mov eax, dword [ebp - 4]
push dword [ebp + 0x14]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x24]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push 1
push dword [ebp + 0x10]
push eax
call dword [ecx + 0x18]
test eax, eax
jl 0x40d48d
mov bl, 1
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov al, bl
pop ebx
leave
ret 0x1c

Function at 0x40d4b9
Capabilities:
Get common file path

Disassembly:
push dword [esp + 4]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.DLL_GetCurrentDirectoryW]
neg eax
sbb eax, eax
neg eax
ret 8

Function at 0x412ee5
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4223ec]
jne 0x412eef
repz ret
jmp fcn.00417835
Function at 0x418e57
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00412f66
and dword [ebp - 4], 0
cmp dword [0x44fcdc], 0
mov ebx, eax
jne 0x418f08
push str.USER32.DLL
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x418fb9
mov esi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x418fb9
push eax
call fcn.00412ef4
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x44fcdc], eax
call esi
push eax
call fcn.00412ef4
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x44fce0], eax
call esi
push eax
call fcn.00412ef4
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x44fce4], eax
call esi
push eax
call fcn.00412ef4
pop ecx
mov dword [0x44fcec], eax
test eax, eax
je 0x418f08
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00412ef4
pop ecx
mov dword [0x44fce8], eax
mov eax, dword [0x44fce8]
cmp eax, ebx
je 0x418f60
cmp dword [0x44fcec], ebx
je 0x418f60
push eax
call fcn.00412f6f
push dword [0x44fcec]
mov esi, eax
call fcn.00412f6f
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x418f60
test edi, edi
je 0x418f60
call esi
test eax, eax
je 0x418f57
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x418f57
test byte [ebp - 0xc], 1
jne 0x418f60
or dword [ebp + 0x10], 0x200000
jmp 0x418f99
mov eax, dword [0x44fce0]
cmp eax, ebx
je 0x418f99
push eax
call fcn.00412f6f
pop ecx
test eax, eax
je 0x418f99
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x418f99
mov eax, dword [0x44fce4]
cmp eax, ebx
je 0x418f99
push eax
call fcn.00412f6f
pop ecx
test eax, eax
je 0x418f99
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x44fcdc]
call fcn.00412f6f
pop ecx
test eax, eax
je 0x418fb9
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x418fbb
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40c7d0
mov ecx, 0x26d3367f
nop
nop
nop
nop
nop
test eax, eax
je 0x43204e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
cmp eax, ebx
nop
nop
jne 0x432024
nop
nop
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x42f314
mov ecx, 0x23fa44be
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x432084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x43206c
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0xf9e058
Capabilities:
Decompress data using aplib

Disassembly:
call 0xf9e1a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, pe_nt_image_headers32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0xf9e07e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xf9e06a
add dl, dl
jne 0xf9e089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xf9e0dc
xor eax, eax
add dl, dl
jne 0xf9e096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xf9e17d
add dl, dl
jne 0xf9e0a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xf9e0b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xf9e0bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xf9e0c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0xf9e0d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0xf9e075
mov eax, 1
add dl, dl
jne 0xf9e0ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xf9e0f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xf9e0e1
sub eax, ebx
mov ebx, 1
jne 0xf9e128
mov ecx, 1
add dl, dl
jne 0xf9e10e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xf9e119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xf9e105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xf9e075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xf9e13f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xf9e14a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xf9e136
cmp eax, 0x7d00
jae 0xf9e16d
cmp eax, 0x500
jb 0xf9e168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xf9e075
cmp eax, 0x7f
ja 0xf9e170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xf9e075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0xf9e19e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0xf9e075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x402abf
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 8]
mov dword [ebp - 4], 0x208
push eax
push 0
push 0x401414
push ecx
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x402b20
mov eax, dword [ebp - 4]
cmp eax, 2
jb 0x402b1b
shr eax, 1
xor ecx, ecx
cmp cx, word [esi + eax*2 - 2]
jne 0x402b1b
mov eax, dword [ebp - 8]
sub eax, 1
je 0x402b17
sub eax, 1
jne 0x402b1b
mov ecx, esi
call fcn.004029ca
test eax, eax
jne 0x402b20
xor eax, eax
jmp 0x402b20
mov eax, 0x3f7
pop esi
leave
ret 8

Function at 0x402ef0
Capabilities:
Terminate process

Disassembly:
push 0xc
push 0x403500
call fcn.00403278
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov edi, ebx
mov edx, 0x4043c0
mov ecx, esi
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
je 0x402d18
cmp eax, esi
jne 0x402d0b
xor esi, esi
inc esi
mov edi, esi
jmp 0x402d1b
push 0x3e8
call dword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
jmp 0x402cef
xor esi, esi
inc esi
cmp dword [0x4043c4], esi
jne 0x402d2d
push 0x1f
call fcn.0057c000
pop ecx
jmp 0x402d67
cmp dword [0x4043c4], ebx
jne 0x402d61
mov dword [0x4043c4], esi
push 0x4011a8
push 0x40119c
call fcn.00402e4c
pop ecx
pop ecx
test eax, eax
je 0x402d67
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x402e3c
mov dword [0x404034], esi
cmp dword [0x4043c4], esi
jne 0x402d8a
push 0x401198
push 0x40118c
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x4043c4], 2
test edi, edi
jne 0x402d97
xor eax, eax
mov ecx, 0x4043c0
xchg dword [ecx], eax
cmp dword [0x4043c8], 0
je 0x402dc3
push 0x4043c8
call fcn.004030d0
pop ecx
test eax, eax
je 0x402dc3
push ebx
push 2
push ebx
mov esi, dword [0x4043c8]
mov ecx, esi
call dword [0x405168]
call esi
push dword [0x404040]
push dword [0x40403c]
push dword [0x404038]
call fcn.00401ae1
add esp, 0xc
mov dword [0x404030], eax
cmp dword [0x404048], 0
jne 0x402e21
push eax
call dword [sym.imp.msvcrt.dll_exit]
mov ecx, dword [ebp - 0x14]
mov eax, dword [ecx]
mov eax, dword [eax]
mov dword [ebp - 0x1c], eax
push ecx
push eax
call sub.msvcrt.dll__XcptFilter
pop ecx
pop ecx
ret
cmp dword [0x404034], 0
jne 0x402e35
call dword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x404030]
mov dword [ebp - 4], 0xfffffffe
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret
call fcn.004031c5
jmp 0x402cd3
Function at 0x404810
Capabilities:
Hash data with crc32

Disassembly:
test ecx, ecx
jne 0x404817
xor eax, eax
ret
mov eax, dword [esp + 4]
jmp fcn.00404820