joyce8/EMBER2024-capa huggingface dataset:
Function at 0x413644
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 8], ecx
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404330
xor eax, eax
push ebp
push 0x4136c2
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.00403ea4
mov eax, dword [ebp - 4]
call fcn.00404140
mov ebx, eax
test ebx, ebx
jle 0x4136a7
mov edi, 1
lea eax, [ebp - 8]
mov edx, dword [ebp - 4]
mov dl, byte [edx + edi - 1]
xor dl, 0xff
call fcn.0040408c
mov edx, dword [ebp - 8]
mov eax, esi
call fcn.00404148
inc edi
dec ebx
jne 0x413687
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4136c9
lea eax, [ebp - 8]
mov edx, 2
call fcn.00403ec8
ret
Function at 0x433002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40de38
nop
mov ecx, 0x367b4f8d
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x433024
nop
nop
nop
nop
nop
mov eax, section..data
mov ebx, 0x4304d8
nop
mov ecx, 0x65a97c35
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x433084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
nop
jne 0x43306c
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x401ac0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x24]
xor ebx, ebx
mov eax, dword [edi + 0x3c]
mov ebp, dword [eax + edi + 0x78]
lea esi, [eax + edi + 0x78]
add ebp, edi
mov dword [esp + 0x1c], esi
mov edx, dword [ebp + 0x1c]
mov eax, dword [ebp + 0x24]
mov ecx, dword [ebp + 0x20]
add edx, edi
add eax, edi
add ecx, edi
test dword [esp + 0x28], 0xffff0000
mov dword [esp + 0x18], edx
jne 0x401b25
mov eax, dword [esp + 0x28]
mov ecx, dword [ebp + 0x10]
and eax, 0xffff
cmp eax, ecx
jb 0x401bbf
mov ebx, dword [ebp + 0x14]
add ebx, ecx
cmp eax, ebx
ja 0x401bbf
sub eax, ecx
mov ebx, dword [edx + eax*4]
add ebx, edi
jmp 0x401ba2
mov edx, dword [ebp + 0x18]
test edx, edx
jbe 0x401ba2
mov dword [esp + 0x24], eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
mov eax, dword [ecx]
mov esi, dword [esp + 0x28]
add eax, edi
mov dl, byte [esi]
mov cl, dl
cmp dl, byte [eax]
jne 0x401b64
test cl, cl
je 0x401b60
mov dl, byte [esi + 1]
mov cl, dl
cmp dl, byte [eax + 1]
jne 0x401b64
add esi, 2
add eax, 2
test cl, cl
jne 0x401b40
xor eax, eax
jmp 0x401b69
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x401b7d
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x18]
mov ax, word [ecx]
mov ebx, dword [edx + eax*4]
add ebx, edi
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x14]
add ecx, 4
add edx, 2
dec eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x24], edx
mov dword [esp + 0x14], eax
jne 0x401b38
mov esi, dword [esp + 0x1c]
cmp ebx, ebp
jb 0x401c08
mov eax, dword [esi + 4]
add eax, ebp
cmp ebx, eax
jae 0x401c08
push ebx
call dword [sym.imp.MSVCRT.dll__strdup]
mov esi, eax
add esp, 4
test esi, esi
jne 0x401bc9
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10
ret
push 0x2e
push esi
xor ebx, ebx
call dword [sym.imp.MSVCRT.dll_strchr]
add esp, 8
mov edi, eax
mov byte [edi], bl
push esi
inc edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
jne 0x401bf2
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
je 0x401bfe
push edi
push eax
call fcn.00401ac0
add esp, 8
mov ebx, eax
push esi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x404900
Capabilities:
Find taskbar

Disassembly:
sub esp, 0x30
push ebx
mov ebx, dword [esp + 0x38]
push ebp
push esi
mov ecx, dword [ebx + 0x20]
lea eax, [esp + 0x2c]
push edi
mov edi, dword [sym.imp.USER32.dll_GetWindowRect]
push eax
push ecx
call edi
xor ebp, ebp
push ebp
push str.Shell_TrayWnd
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebp
call dword [sym.imp.USER32.dll_FindWindowA]
push eax
call sub.MFC42.DLL_CWnd::FromHandle
mov esi, eax
cmp esi, ebp
je 0x404967
mov eax, dword [esi + 0x20]
lea edx, [esp + 0x10]
push edx
push eax
call edi
mov edx, dword [esi + 0x20]
lea ecx, [esp + 0x10]
push ecx
push 0x404860
push edx
call dword [sym.imp.USER32.dll_EnumChildWindows]
jmp 0x40498b
mov edi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push ebp
call edi
push 1
mov esi, eax
call edi
push eax
add eax, 0xffffffec
push esi
push eax
add esi, 0xffffffd8
lea eax, [esp + 0x1c]
push esi
push eax
call dword [sym.imp.USER32.dll_SetRect]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], eax
lea edx, [esp + 0x20]
lea eax, [esp + 0x30]
mov dword [esp + 0x2c], ecx
mov ecx, dword [ebx + 0x20]
push edx
push eax
push 3
push ecx
call dword [sym.imp.USER32.dll_DrawAnimatedRects]
mov edx, dword [0x409438]
push edx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x4049f8
push ebp
push ebp
push ebp
push ebp
push ebp
push ebp
push ebp
push 0x80000000
push 0x409404
push ebp
push ebp
push ebp
push ebp
call sub.MFC42.DLL_AfxRegisterWndClass
push eax
push ebp
mov ecx, 0x409418
call sub.MFC42.DLL_CWnd::CreateEx
mov edx, dword [0x409438]
mov eax, 0x409418
neg eax
sbb eax, eax
and eax, edx
push eax
mov eax, dword [ebx + 0x20]
push eax
call dword [sym.imp.USER32.dll_SetParent]
push eax
call sub.MFC42.DLL_CWnd::FromHandle
push ebp
push ebp
push 0x10000000
mov ecx, ebx
call sub.MFC42.DLL_CWnd::ModifyStyle
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret
Function at 0x404a30
Capabilities:
Find taskbar

Disassembly:
sub esp, 0x30
push ebx
mov ebx, dword [sym.imp.USER32.dll_GetWindowRect]
push ebp
push esi
mov esi, dword [esp + 0x40]
lea eax, [esp + 0x2c]
push edi
push eax
mov ecx, dword [esi + 0x20]
push ecx
call ebx
xor ebp, ebp
push ebp
push str.Shell_TrayWnd
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebp
call dword [sym.imp.USER32.dll_FindWindowA]
push eax
call sub.MFC42.DLL_CWnd::FromHandle
mov edi, eax
cmp edi, ebp
je 0x404a97
mov eax, dword [edi + 0x20]
lea edx, [esp + 0x10]
push edx
push eax
call ebx
mov edx, dword [edi + 0x20]
lea ecx, [esp + 0x10]
push ecx
push 0x404860
push edx
call dword [sym.imp.USER32.dll_EnumChildWindows]
jmp 0x404abb
mov ebx, dword [sym.imp.USER32.dll_GetSystemMetrics]
push ebp
call ebx
push 1
mov edi, eax
call ebx
push eax
add eax, 0xffffffec
push edi
push eax
add edi, 0xffffffd8
lea eax, [esp + 0x1c]
push edi
push eax
call dword [sym.imp.USER32.dll_SetRect]
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x24], edx
mov edx, dword [esi + 0x20]
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x1c]
push ebp
push edx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
call dword [sym.imp.USER32.dll_SetParent]
push eax
call sub.MFC42.DLL_CWnd::FromHandle
mov edx, dword [esi + 0x20]
lea eax, [esp + 0x30]
lea ecx, [esp + 0x20]
push eax
push ecx
push 3
push edx
call dword [sym.imp.USER32.dll_DrawAnimatedRects]
push ebp
push 0x10000000
push ebp
mov ecx, esi
call sub.MFC42.DLL_CWnd::ModifyStyle
mov eax, dword [esi + 0x20]
push 0x585
push ebp
push ebp
push eax
call dword [sym.imp.USER32.dll_RedrawWindow]
mov ecx, dword [0x409438]
push ecx
call dword [sym.imp.USER32.dll_IsWindow]
mov edi, dword [sym.imp.USER32.dll_SetActiveWindow]
test eax, eax
je 0x404b47
mov edx, dword [0x409438]
push edx
call edi
push eax
call sub.MFC42.DLL_CWnd::FromHandle
mov eax, dword [esi + 0x20]
push eax
call edi
push eax
call sub.MFC42.DLL_CWnd::FromHandle
mov ecx, dword [esi + 0x20]
push ecx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret

Function at 0x405010
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
sub esp, 0x108
mov ecx, dword [esp + 0x10c]
push esi
lea eax, [esp + 8]
push 0x104
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov ecx, dword [esp + 0x118]
xor eax, eax
test ecx, ecx
setne al
lea edx, [esp + 4]
add eax, 0x80000001
push edx
push 0x406ef8
push eax
mov dword [esp + 0x10], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov esi, eax
test esi, esi
jne 0x405098
push edi
lea edi, [esp + 0xc]
or ecx, 0xffffffff
mov edx, dword [esp + 8]
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0xc]
push ecx
mov ecx, dword [esp + 0x11c]
push eax
push 1
push esi
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
xor eax, eax
test esi, esi
sete al
pop esi
add esp, 0x108
ret
Function at 0x4050b0
Capabilities:
Delete registry value
Persist via run registry key

Disassembly:
mov edx, dword [esp + 8]
xor eax, eax
test edx, edx
setne al
lea ecx, [esp + 8]
push esi
add eax, 0x80000001
push ecx
push 0x406ef8
push eax
mov dword [esp + 0x18], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov esi, eax
test esi, esi
jne 0x4050fd
mov edx, dword [esp + 8]
mov eax, dword [esp + 0xc]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov ecx, dword [esp + 0xc]
mov esi, eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
sete al
pop esi
ret
Function at 0x407e15
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42e180]
jne 0x407e1f
repz ret
jmp fcn.0040bc0c

Function at 0x40ef4e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
pushal
call 0x40ef5d
pop dword [ebp - 0x44]
mov eax, 0x4a364b9e
add eax, 0xb60aa3bf
sub dword [ebp - 0x44], eax
mov dword [ebp - 0x54], 0xccd1c5e4
sub dword [ebp - 0x54], 0x7e7f8099
mov dword [ebp - 0x50], 0x73597299
sub dword [ebp - 0x50], 0x41262654
mov dword [ebp - 0x4c], 0x69f3b649
sub dword [ebp - 0x4c], 0x1da7721b
mov dword [ebp - 0x48], 0x5f4ee260
add dword [ebp - 0x48], 0xa0b11da0
lea eax, [ebp - 0x54]
push eax
mov eax, 0xb67438ad
sub eax, 0xb6320839
add eax, dword [ebp - 0x44]
call dword [eax]
mov dword [ebp - 0x54], 0x9c2aecb
sub dword [ebp - 0x54], 0x95504575
mov dword [ebp - 0x50], 0xdf92b44c
add dword [ebp - 0x50], 0x61d9ad29
mov dword [ebp - 0x4c], 0xc2231765
add dword [ebp - 0x4c], 0xa14c5507
mov dword [ebp - 0x48], 0xb09830dc
sub dword [ebp - 0x48], 0xb09830dc
lea ebx, [ebp - 0x54]
push ebx
push eax
mov eax, 0x332fbcb9
sub eax, 0x32ed8b95
add eax, dword [ebp - 0x44]
call dword [eax]
push 0x40
push 0x1000
push 0x3fb1a
push 0
call eax
mov ecx, 0x4fff
mov edi, eax
mov esi, 0xa8a23ee2
sub esi, 0xa85efae2
add esi, dword [ebp - 0x44]
mov ebx, 0xbfcf1ea5
sub dword [ebp - 0x3c], 0x95176c69
mov edx, dword [esi]
xor dword [ebp - 0x20], 0x51acc280
add edx, ebx
xor dword [ebp - 0x3c], esi
mov dword [edi], edx
add dword [ebp - 4], 0x2bc89245
add edi, 0xc97e75
sub edi, 0xc97e71
add esi, 4
loop 0x40f073
add eax, 0x701a2bb3
sub eax, 0x7018f8e4
xor ebx, ebx
add ebx, eax
add eax, 0x7069c39c
add eax, 0x8f963c69
mov ecx, 0x400000
add ecx, dword [ebp - 0x44]
call ebx
leave
ret
Function at 0x402d00
Capabilities:
Check mutex on windows
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x419008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
push 0
mov dword [0x41a424], esi
call dword [sym.imp.ole32.dll_CoInitialize]
mov edi, dword [sym.imp.USER32.dll_RegisterWindowMessageW]
push str.RECCAZR_R66
call edi
movups xmm0, xmmword [0x41608c]
push 0x41a468
push 1
movups xmmword [0x41a468], xmm0
push 0
movq xmm0, qword [0x41609c]
movq qword [0x41a478], xmm0
movups xmm0, xmmword [0x416074]
movups xmmword [0x41a47e], xmm0
movq xmm0, qword [0x416084]
movq qword [0x41a48e], xmm0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
test eax, eax
je 0x402d90
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x402ed3
movups xmm0, xmmword [0x416074]
push str.4695579F_999A_41d4_9FAF_EFFCE93EBE19
movq xmm1, qword [0x41609c]
movups xmm2, xmmword [0x41608c]
movq qword [0x41a878], xmm1
movups xmmword [0x41a87e], xmm0
movq xmm0, qword [0x416084]
movq qword [0x41a88e], xmm0
movups xmm0, xmmword [0x41605c]
movq qword [0x41a678], xmm1
movups xmmword [0x41a67e], xmm0
movq xmm0, qword [0x41606c]
movups xmmword [0x41a868], xmm2
movups xmmword [0x41a668], xmm2
movq qword [0x41a68e], xmm0
call edi
mov ecx, esi
mov dword [0x41aa6c], eax
call fcn.00402ef0
push 0
push esi
push 0
push 0
push 0
push 0x80000000
push 0
push 0x80000000
push 0xcf0000
push 0x41a868
push 0x41a668
push 0
mov dword [0x41aa68], esi
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov edi, eax
test edi, edi
je 0x402ed3
push 0
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
push edi
call dword [sym.imp.USER32.dll_UpdateWindow]
push 0x6d
push esi
call dword [sym.imp.USER32.dll_LoadAcceleratorsW]
mov esi, dword [sym.imp.USER32.dll_GetMessageW]
push 0
push 0
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x20]
push 0
push eax
call esi
test eax, eax
je 0x402eb8
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
push ebx
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageW]
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x24]
push dword [ebp - 0x20]
call dword [sym.imp.USER32.dll_TranslateAcceleratorW]
test eax, eax
jne 0x402ea7
lea eax, [ebp - 0x20]
push eax
call edi
lea eax, [ebp - 0x20]
push eax
call ebx
push 0
push 0
push 0
lea eax, [ebp - 0x20]
push eax
call esi
test eax, eax
jne 0x402e87
pop ebx
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, dword [ebp - 0x18]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040439d
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.0040439d
mov esp, ebp
pop ebp
ret 0x10
Function at 0x889910
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x340000]
push edi
jmp 0x88992a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x889931
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x889920
mov eax, 1
add ebx, ebx
jne 0x889943
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x889954
jne 0x889973
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x889973
dec eax
add ebx, ebx
jne 0x889960
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x889938
add ebx, ebx
jne 0x88996f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x8899c5
xor ecx, ecx
sub eax, 3
jb 0x88998b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x8899fa
sar eax, 1
mov ebp, eax
jmp 0x889996
add ebx, ebx
jne 0x889996
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x889964
inc ecx
add ebx, ebx
jne 0x8899a4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x889964
add ebx, ebx
jne 0x8899b1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x8899a6
jne 0x8899c2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x8899a6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x8899e4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x8899d6
jmp 0x889926
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x8899e4
add edi, ecx
jmp 0x889926
pop esi
mov edi, esi
mov ecx, 0x8d7f
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x889a02
cmp byte [edi], 0x29
jne 0x889a02
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x889a07
lea edi, [esi + 0x485000]
mov eax, dword [edi]
or eax, eax
je 0x889a7f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x49b0a4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x49b1e4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x889a34
mov ecx, edi
jns 0x889a63
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x49b1e8]
or eax, eax
je 0x889a79
mov dword [ebx], eax
add ebx, 4
jmp 0x889a51
call dword [esi + 0x49b1f8]
mov ebp, dword [esi + 0x49b1ec]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x31f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x889ab3
sub esp, 0xffffff80
jmp section.UPX0
Function at 0x401160
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x200
cmp byte [0x407e88], 0
push esi
mov esi, dword [esp + 0x208]
push esi
je 0x401192
lea eax, [esp + 8]
push 0x407e88
push str._s_s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
jmp 0x40119d
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [esp + 4]
push 0
push 0x407e88
push str._regserver
push eax
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x20
jle 0x4011d3
mov eax, dword [esp + 0x20c]
push esi
push 0
push 0x3400
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
pop esi
add esp, 0x200
ret

Function at 0x401720
Capabilities:
Get common file path

Disassembly:
sub esp, 0x104
lea eax, [esp]
push esi
xor esi, esi
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x401756
cmp byte [esp + 5], 0x3a
jne 0x401756
xor eax, eax
mov al, byte [esp + 4]
push eax
call fcn.00401e30
add esp, 4
lea esi, [eax - 0x40]
mov eax, esi
pop esi
add esp, 0x104
ret

Function at 0x401760
Capabilities:
Set current directory

Disassembly:
mov eax, dword [esp + 4]
sub esp, 4
cmp eax, 1
jl 0x4017ae
cmp eax, 0x1f
jg 0x4017ae
mov byte [esp + 1], 0x3a
mov byte [esp + 2], 0
add al, 0x40
mov byte [esp], al
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
je 0x401796
xor eax, eax
add esp, 4
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00402060
add esp, 4
mov eax, 0xffffffff
add esp, 4
ret
mov eax, 0xffffffff
add esp, 4
mov dword [0x4073e4], 0xd
mov dword [0x4073e8], 0xf
ret
Function at 0x401c70
Capabilities:
Accept command line arguments

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push section..rdata
push 0x403070
push eax
mov dword fs:[0], esp
sub esp, 0x60
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov dword [0x4073f0], eax
xor eax, eax
mov al, byte [0x4073f1]
mov dword [0x4073fc], eax
mov eax, dword [0x4073f0]
shr dword [0x4073f0], 0x10
and eax, 0xff
mov dword [0x4073f8], eax
shl eax, 8
add eax, dword [0x4073fc]
mov dword [0x4073f4], eax
call fcn.00403050
mov dword [ebp - 4], 0
call fcn.00402e70
call fcn.00402e60
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x408370], eax
call fcn.00402a00
mov dword [0x4073d0], eax
test eax, eax
je 0x401d09
cmp dword [0x408370], 0
jne 0x401d13
push 0xffffffffffffffff
call fcn.00401f50
add esp, 4
call fcn.00402780
call fcn.004026a0
call fcn.00401f20
mov esi, dword [0x408370]
mov al, byte [esi]
cmp al, 0x22
je 0x401d3a
cmp al, 0x20
jbe 0x401d67
inc esi
cmp byte [esi], 0x20
ja 0x401d32
jmp 0x401d67
inc esi
cmp byte [esi], 0x22
je 0x401d66
mov bl, byte [ebp - 0x28]
mov bl, byte [esi]
test bl, bl
je 0x401d61
xor eax, eax
mov al, bl
push eax
call fcn.00402640
add esp, 4
test eax, eax
je 0x401d5b
inc esi
inc esi
cmp byte [esi], 0x22
jne 0x401d43
cmp byte [esi], 0x22
jne 0x401d67
inc esi
cmp byte [esi], 0
je 0x401d77
cmp byte [esi], 0x20
ja 0x401d77
inc esi
cmp byte [esi], 0
jne 0x401d6c
mov dword [ebp - 0x44], 0
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x44], 1
mov eax, 0xa
je 0x401d9b
mov eax, dword [ebp - 0x40]
and eax, 0xffff
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
push eax
call fcn.00401f50
jmp 0x401ddc
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
pop edi
mov dword fs:[0], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x401f90
Capabilities:
Terminate process

Disassembly:
cmp dword [0x40742c], 1
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
jne 0x401fae
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x407428], 1
cmp dword [esp + 0x14], 0
mov ebx, dword [esp + 0x18]
mov byte [0x407424], bl
jne 0x402008
cmp dword [0x408368], 0
je 0x401ff6
mov edi, dword [0x408364]
sub edi, 4
cmp dword [0x408368], edi
ja 0x401ff6
mov eax, dword [edi]
test eax, eax
je 0x401feb
call eax
sub edi, 4
cmp dword [0x408368], edi
jbe 0x401fe3
push 0x407014
push 0x407010
call fcn.00402040
add esp, 8
push 0x40701c
push 0x407018
call fcn.00402040
add esp, 8
test ebx, ebx
jne 0x40202f
mov dword [0x40742c], 1
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop edi
pop esi
pop ebx
ret
Function at 0x402a00
Capabilities:
Query environment variable

Disassembly:
sub esp, 4
cmp dword [0x407640], 0
push ebx
push esi
push edi
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
push ebp
jne 0x402a4c
call esi
mov edi, eax
test edi, edi
je 0x402a2a
mov dword [0x407640], 1
jmp 0x402a50
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebx, eax
test ebx, ebx
je 0x402a42
mov dword [0x407640], 2
jmp 0x402a54
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov edi, dword [esp + 0x10]
mov ebx, dword [esp + 0x10]
cmp dword [0x407640], 1
jne 0x402b03
test edi, edi
jne 0x402a77
call esi
mov edi, eax
test edi, edi
jne 0x402a77
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp word [edi], 0
mov esi, edi
je 0x402a91
add esi, 2
cmp word [esi], 0
jne 0x402a7f
add esi, 2
cmp word [esi], 0
jne 0x402a7f
sub esi, edi
push 0
sar esi, 1
push 0
inc esi
push 0
push 0
push esi
push edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ebp, eax
test ebp, ebp
je 0x402af2
push ebp
call fcn.00403e10
add esp, 4
mov ebx, eax
test ebx, ebx
je 0x402af2
push 0
push 0
push ebp
push ebx
push esi
push edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x402ae1
push ebx
call fcn.00403ca0
add esp, 4
xor ebx, ebx
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp dword [0x407640], 2
jne 0x402b87
test ebx, ebx
jne 0x402b26
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebx, eax
test ebx, ebx
jne 0x402b26
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov ebp, ebx
cmp byte [ebx], 0
je 0x402b3b
inc ebp
cmp byte [ebp], 0
jne 0x402b2d
inc ebp
cmp byte [ebp], 0
jne 0x402b2d
sub ebp, ebx
inc ebp
push ebp
call fcn.00403e10
mov dword [esp + 0x14], eax
add esp, 4
test eax, eax
jne 0x402b60
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov edi, dword [esp + 0x10]
mov esi, ebx
mov ecx, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, dword [esp + 0x10]
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret