joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406960
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x5000]
push edi
or ebp, 0xffffffff
jmp 0x406977
movsb byte es:[edi], byte [esi]
add ebx, ebx
jne 0x40697e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x406972
xor eax, eax
inc eax
add ebx, ebx
jne 0x40698e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jne 0x40699b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4069ad
dec eax
add ebx, ebx
jne 0x4069a9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x406983
xor ecx, ecx
sub eax, 3
jb 0x4069c5
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x406a15
sar eax, 1
mov ebp, eax
jmp 0x4069d0
add ebx, ebx
jne 0x4069d0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x4069dd
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x4069fe
inc ecx
add ebx, ebx
jne 0x4069ed
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x4069fa
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4069e2
inc ecx
inc ecx
cmp ebp, 0xfffffb00
adc ecx, 1
mov edx, esi
lea esi, [edi + ebp]
rep movsb byte es:[edi], byte [esi]
mov esi, edx
jmp 0x406973
pop esi
lea edi, [esi + 0x4000]
mov eax, dword [edi]
or eax, eax
je 0x406a67
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x66dc]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x6718]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x406a1c
mov ecx, edi
jns 0x406a4b
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 + 0x671c]
or eax, eax
je 0x406a61
mov dword [ebx], eax
add ebx, 4
jmp 0x406a39
call dword [esi + 0x672c]
mov ebp, dword [esi + 0x6720]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1df]
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 0x406a9b
sub esp, 0xffffff80
jmp 0x4011e8

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
Function at 0x417c10
Capabilities:
Accept command line arguments

Disassembly:
sub esp, 8
push esi
push edi
push str.Shell32.lib
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push str.SetCurrentProcessExplicitAppUserModelID
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov esi, eax
mov eax, dword [esp + 8]
push eax
call sub.MPR.dll_WNetCloseEnum
mov dword [esp + 8], 0
call dword [sym.imp.USER32.dll_GetForegroundWindow]
lea ecx, [esp + 0xc]
mov edi, eax
push ecx
push esi
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetACP]
test edi, edi
mov dword [0x4c6cdc], eax
je 0x417c92
test esi, esi
je 0x417c81
mov edx, dword [0x4c5abc]
push 0x4c57ac
push edx
call dword [sym.imp.KERNEL32.dll_GetConsoleMode]
lea eax, [esp + 8]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov eax, dword [0x4c6cdc]
pop edi
pop esi
add esp, 8
ret

Function at 0x49608a
Capabilities:
Encode data using xor

Disassembly:
cmp al, 0xa9
push ebx
mov edx, dword [ebx + 0x79]
add dh, byte [edx + 0x4e]
sbb ebx, ebx
imul ecx, dword [eax], 0x3d8a31dd
or ch, bl
xor dword [edx + 0x1b5963d], ecx
or ch, bl
xor dword [edx + 0x1b5963d], ecx
mov ebp, 0xa2425b6e
push 0x2a6708f
and edi, dword [eax + 0x3c]
adc byte [ebx], dl
cmp byte [ebx + 0x6a], bh
push ds
or al, 0xc9
lds edx, [edx + 0xc0ec41e]
or esi, dword [edx]
enter 0x2803, 0xffffffffffffffa1
stosd dword es:[edi], eax
and bl, dl
rcl dword [edi - 0x67a3d604], 0xb9
les ecx, [esi]
or al, 0xb
xor cl, al
add ebp, dword [eax]
mov eax, dword [0xc1da22ab]
xchg edi, eax
cld
sub dword [eax + ebx*4 - 0x47], ebx
div byte [edx + 0x37cfe3d2]
or byte [esi + esi*8 + 0x70942214], dl
and edi, esp
add eax, 0x20e4ae38
mov cs, word [edx]
dec eax
jne 0x49607e
loop 0x4960ee
stc
cmp dword [edi], ebp
jbe 0x496120
aad 0x46
jmp 0xee4bae8e
int 0xf0
and ecx, dword [eax + 0x1888a6ec]
wait
enter 0x4c18, 0xffffffffffffffb1
inc edi
pop ebx
sar byte [ebx], cl
std
mov dl, 0x1f
dec esp
push 0x32
jmp 0x4960aa
invalid
Function at 0x4ba3b5
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4c2378
cmp edx, dword [eax]
je 0x4ba3d7
add eax, 8
inc ecx
cmp eax, 0x4c2408
jl 0x4ba3c8
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4c2378]
jne 0x4ba505
mov eax, dword [0x4c6cfc]
cmp eax, 1
je 0x4ba4df
test eax, eax
jne 0x4ba408
cmp dword [0x4c22a4], 1
je 0x4ba4df
cmp edx, 0xfc
je 0x4ba505
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4ba43f
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004bada0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004bb230
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4ba482
lea eax, [ebp - 0x1a4]
push eax
call fcn.004bb230
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4bf90c
push edi
call fcn.004bd100
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004bada0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004badb0
lea eax, [ebp - 0xa0]
push 0x4bf8ec
push eax
call fcn.004badb0
push dword [esi + 0x4c237c]
lea eax, [ebp - 0xa0]
push eax
call fcn.004badb0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004bd074
add esp, 0x2c
pop edi
jmp 0x4ba505
lea eax, [ebp + 8]
lea esi, [esi + 0x4c237c]
push 0
push eax
push dword [esi]
call fcn.004bb230
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x406d30
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x43aa18
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x447170]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0xc], edi
push dword [esp + 0x28]
push dword [esp + 0x24]
call fcn.00401530
push str.Service_host
push 4
push 0x21
push str.C:dvsp4_build_swgcompdev_srcNvContainercontainerNvcServiceHost.cpp
push dword [edi + 8]
mov dword [esp + 0x2c], 0
mov dword [edi], vtable.nvc::ServiceHost.0
mov dword [edi + 0x360], 0
mov dword [edi + 0x3e4], 0
mov dword [edi + 0x3e8], 0
call fcn.0040d470
add esp, 0x14
xorps xmm0, xmm0
movdqu xmmword [edi + 0x344], xmm0
movq qword [edi + 0x354], xmm0
push 0
push 0
push 1
mov dword [edi + 0x35c], 0
push 0
mov dword [edi + 0x344], 0x10
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push dword [esp + 0x24]
mov dword [edi + 0x3e4], eax
lea eax, [edi + 0x364]
push 0x40
push eax
call fcn.0040f8b3
add esp, 0xc
mov ecx, edi
push 0x200
call fcn.00407580
test al, al
je 0x406e0f
or dword [edi + 4], 4
push 0x100
mov ecx, edi
call fcn.00407580
test al, al
je 0x406e23
or dword [edi + 4], 4
push 0
push 0
push 0
push 0x407ad0
push 0
push 0
mov dword [0x4493d4], edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x406e8b
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
push eax
push str.Service_host:_failed_to_create_ServiceThread._Error__lu
push 1
push 0x3e
push str.C:dvsp4_build_swgcompdev_srcNvContainercontainerNvcServiceHost.cpp
push dword [edi + 8]
call fcn.0040d470
add esp, 0x18
call esi
push eax
push str.Service_host:_failed_to_create_ServiceThread._Error__lu
push 0x11
call fcn.00403680
push 0x80
lea eax, [edi + 0x364]
push 0
push eax
call fcn.0040e4b0
add esp, 0x18
jmp 0x406e92
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [edi + 0x3e4]
test eax, eax
je 0x406ec4
push 0x2710
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push eax
push str.Service_host:_wait_completed_with__lu
push 3
push 0x52
push str.C:dvsp4_build_swgcompdev_srcNvContainercontainerNvcServiceHost.cpp
push dword [edi + 8]
call fcn.0040d470
add esp, 0x18
jmp 0x406ee9
push str.Service_host_failed
push 1
push 0x58
push str.C:dvsp4_build_swgcompdev_srcNvContainercontainerNvcServiceHost.cpp
push dword [edi + 8]
call fcn.0040d470
push str.Service_host_failed
push 0x12
call fcn.00403680
add esp, 0x1c
mov eax, edi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 0xc
Function at 0x407580
Capabilities:
Delete registry value
Query or enumerate registry value

Disassembly:
sub esp, 0x24
mov eax, dword [0x447170]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
lea eax, [esp + 8]
mov esi, ecx
push eax
mov eax, dword [esp + 0x34]
xor bl, bl
or eax, 0x2001f
push eax
call fcn.004074c0
test eax, eax
jne 0x407649
mov ax, word [0x43d7b4]
movdqu xmm0, xmmword [str.Recovery]
mov word [esp + 0x24], ax
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0
push eax
push 0
push 0x10
lea eax, [esp + 0x24]
mov dword [esp + 0x20], 4
push eax
push 0
push dword [esp + 0x20]
movdqu xmmword [esp + 0x30], xmm0
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
lea eax, [esp + 0x14]
push eax
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [esp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [esp + 0xc], 0
je 0x407649
push str.Safe_mode_is_ON._Optional_plugins_will_not_be_loaded
push 2
push 0x99
push str.C:dvsp4_build_swgcompdev_srcNvContainercontainerNvcServiceHost.cpp
push dword [esi + 8]
call fcn.0040d470
add esp, 0x14
mov al, 1
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.0040e49c
add esp, 0x24
ret 4
mov ecx, dword [esp + 0x28]
mov al, bl
pop esi
pop ebx
xor ecx, esp
call fcn.0040e49c
add esp, 0x24
ret 4

Function at 0x407980
Capabilities:
Set registry value

Disassembly:
sub esp, 0x30
mov eax, dword [0x447170]
xor eax, esp
mov dword [esp + 0x2c], eax
mov ax, word [0x43d810]
movdqu xmm0, xmmword [str.ServiceAutoStart]
push ebx
mov word [esp + 0x2c], ax
mov ebx, ecx
push edi
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 0x40]
movdqu xmmword [esp + 0x14], xmm0
or eax, 0x20006
movdqu xmm0, xmmword [0x43d800]
push eax
movdqu xmmword [esp + 0x28], xmm0
call fcn.004074c0
mov edi, eax
test edi, edi
jne 0x407a04
push 4
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 1
push eax
push 4
push edi
lea eax, [esp + 0x20]
push eax
push dword [esp + 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [esp + 8]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
je 0x407a42
push esi
push edi
lea esi, [ebx + 0x364]
push esi
lea eax, [esp + 0x1c]
push eax
push str.Failed_to_save_auto_start_flag__S_to_registry_for_service__S._Error__ld
push 1
push 0xbd
push str.C:dvsp4_build_swgcompdev_srcNvContainercontainerNvcServiceHost.cpp
push dword [ebx + 8]
call fcn.0040d470
push edi
push esi
lea eax, [esp + 0x3c]
push eax
push str.Failed_to_save_auto_start_flag__S_to_registry_for_service__S._Error__ld
push 0x13
call fcn.00403680
add esp, 0x34
pop esi
mov ecx, dword [esp + 0x34]
pop edi
pop ebx
xor ecx, esp
call fcn.0040e49c
add esp, 0x30
ret 4
Function at 0x4365d6
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push esi
push edi
xor edi, edi
movzx eax, word [ecx + 0x14]
movzx esi, word [ecx + 6]
test esi, esi
lea eax, [eax + ecx + 0x18]
jbe 0x436611
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x4365f8
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp dword [esp + 0xc], edx
jb 0x436609
add edx, ecx
cmp dword [esp + 0xc], edx
jb 0x436613
inc edi
add eax, 0x28
cmp edi, esi
jb 0x4365ee
xor eax, eax
pop edi
pop esi
ret

Function at 0x438747
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov ch, 0
cld
invalid
xor byte [eax], al
add byte [eax], al
mov eax, dword [eax + 0xc]
mov esi, dword [eax + 0x1c]
lodsd eax, dword [esi]
cmp byte [eax + 0x1c], 0x18
je 0x43875a
xchg esi, eax
lodsd eax, dword [esi]
mov eax, dword [eax + 8]
push eax
call fcn.00436596
loop 0x438705
push es
lodsb al, byte [esi]
mov edi, eax
mov eax, dword [edi + 0x3c]
mov edx, dword [edi + eax + 0x78]
add edx, edi
mov ecx, dword [edx + 0x18]
mov ebx, dword [edx + 0x20]
add ebx, edi
call fcn.00436596
fld xword [eax + edi*2 + 0x348b4992]
mov eax, dword [ebx]
idiv dword [eax + 0x50746547]
dec ecx
mov esi, dword [ebx + ecx*4]
add esi, edi
mov eax, 0x50746547
cmp dword [esi], eax
jne 0x438783
mov eax, 0x41636f72
cmp dword [esi + 4], eax
jne 0x438783
call fcn.00436596
jns 0x438809
scasb al, byte es:[edi]
mov cl, byte [ebx - 0x20fcdba6]
mov cx, word [ebx + ecx*2]
mov ebx, dword [edx + 0x1c]
add ebx, edi
mov eax, dword [ebx + ecx*4]
add eax, edi
push eax
call fcn.00436596
je 0x4387e9
das
jne 0x4387c2
push dword [ebp + 8]
jne 0x4387cd
push dword [ebp + 4]
push dword [ebp]
call fcn.00436d96
mov ebx, dword [ebp + 8]
mov dword [ebx + 4], esi
mov dword [ebx], ecx
test esi, esi
js 0x438802
in eax, 0xff
dec dword [ebx + 0x7389085d]
add al, 0x89
or eax, dword [ebp - 0x74d9870a]
clc
mov edi, eax
mov edx, dword [ebx]
add esi, esi
mov ecx, edx
add edi, 0xffff
shr ecx, 0x1f
or esi, ecx
lea eax, [edx + edx]
mov dword [ebx], eax
jns 0x4387de
add cl, al
jmp 0x8e34930f
mov dword [ebp + 0xc], edi
mov edi, dword [ebp - 8]
mov eax, dword [ebp + 0xc]
mov dword [ebx + 4], esi
or edi, eax
mov word [ebx + 8], di
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4fff90
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xa4000]
push edi
jmp 0x4fffaa
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4fffb1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4fffa0
mov eax, 1
add ebx, ebx
jne 0x4fffc3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4fffd4
jne 0x4ffff3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4ffff3
dec eax
add ebx, ebx
jne 0x4fffe0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4fffb8
add ebx, ebx
jne 0x4fffef
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x500045
xor ecx, ecx
sub eax, 3
jb 0x50000b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x50007a
sar eax, 1
mov ebp, eax
jmp 0x500016
add ebx, ebx
jne 0x500016
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4fffe4
inc ecx
add ebx, ebx
jne 0x500024
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4fffe4
add ebx, ebx
jne 0x500031
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x500026
jne 0x500042
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x500026
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x500064
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x500056
jmp 0x4fffa6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x500064
add edi, ecx
jmp 0x4fffa6
pop esi
mov edi, esi
mov ecx, 0x3b6c
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x500082
cmp byte [edi], 0x17
jne 0x500082
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 0x500087
lea edi, [esi + 0xf9000]
mov eax, dword [edi]
or eax, eax
je 0x5000f6
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x11d5b4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x11d648]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x5000b4
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x11d650]
or eax, eax
je 0x5000f0
mov dword [ebx], eax
add ebx, 4
jmp 0x5000d1
call dword [esi + 0x11d64c]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x500127
cmp al, 0xef
ja 0x50011a
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x5000fc
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x500109
mov ebp, dword [esi + 0x11d654]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x22f]
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 0x50015b
sub esp, 0xffffff80
jmp 0x435126
Function at 0x401237
Capabilities:
Encode data using xor
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
and dword [ebp - 0x10], 0
push ebx
push esi
mov esi, ecx
lea ecx, [ebp - 0x10]
push edi
mov dword [ebp - 0x30], esi
mov eax, dword [esi + 4]
mov edi, dword [esi]
mov dword [ebp - 0x14], eax
mov eax, dword [0x41b2f8]
mov dword [ebp - 0x20], eax
mov eax, dword [0x41b2fc]
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x24], eax
call fcn.00401230
mov ebx, dword [ebp - 0x10]
mov ecx, dword [0x41b300]
add ebx, 0x23f
mov edx, dword [0x41b304]
mov esi, dword [ebp - 0x14]
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x18], 0x20
mov dword [ebp - 0x14], 2
add dword [ebp - 0x14], 3
mov eax, edi
mov dword [ebp - 0x10], 0xedeb2e40
shl eax, 4
add eax, ecx
cmp dword [0xec638c], 0xfa9
mov dword [ebp - 4], eax
mov eax, dword [0xec6388]
cmove eax, dword [ebp - 0x10]
and dword [ebp - 0x10], 0
cmp dword [0xec638c], 0x3eb
mov dword [0xec6388], eax
mov eax, dword [0xec62e0]
cmove eax, dword [ebp - 0x10]
mov dword [0xec62e0], eax
lea eax, [ebx + edi]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0xc]
shr eax, 5
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
add dword [ebp - 8], edx
and dword [ebp - 0xc], 0
mov dword [0xec6384], 0xf4ea3dee
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x1c]
add dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
xor dword [ebp - 0x10], eax
mov eax, dword [ebp - 8]
xor eax, dword [ebp - 0x10]
sub esi, eax
mov dword [ebp - 8], eax
mov eax, esi
shl eax, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x20]
add dword [ebp - 4], eax
mov ecx, dword [ebp - 0x14]
lea eax, [ebx + esi]
mov edx, esi
lea ebx, [ebx + 0x61c88647]
shr edx, cl
add edx, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 8], edx
xor edx, eax
mov eax, dword [ebp - 4]
xor eax, edx
mov edx, dword [ebp - 0x2c]
sub edi, eax
mov dword [ebp - 4], eax
dec dword [ebp - 0x18]
mov dword [ebp - 0xc], edi
jne 0x401291
mov dword [ebp - 0x14], esi
mov esi, dword [ebp - 0x30]
mov eax, dword [ebp - 0x14]
mov dword [esi], edi
pop edi
mov dword [esi + 4], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40d3fe
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41af20]
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.00409c0e
mov dword [ebp - 0x14], eax
cmp dword [0x821b7c], esi
jne 0x40d4f1
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40d47e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40d5d1
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40d5d1
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40d5d1
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x821b7c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x821b80], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x821b84], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x821b8c], eax
test eax, eax
je 0x40d4ee
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x821b88], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40d516
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40d509
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40d52b
push 4
pop eax
jmp 0x40d5d3
cmp dword [ebp - 0x14], esi
je 0x40d52b
push dword [0x821b7c]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40d510
mov eax, dword [0x821b88]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40d589
cmp dword [0x821b8c], edi
je 0x40d589
push eax
call ebx
push dword [0x821b8c]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40d589
test eax, eax
je 0x40d589
call ecx
test eax, eax
je 0x40d57e
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 0x40d57e
test byte [ebp - 8], 1
jne 0x40d589
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40d5b9
mov eax, dword [0x821b80]
cmp eax, edi
je 0x40d5b6
push eax
call ebx
test eax, eax
je 0x40d5b6
call eax
mov esi, eax
test esi, esi
je 0x40d5b6
mov eax, dword [0x821b84]
cmp eax, edi
je 0x40d5b6
push eax
call ebx
test eax, eax
je 0x40d5b6
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x821b7c]
call ebx
test eax, eax
je 0x40d5d1
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40d5d3
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00404247
mov esp, ebp
pop ebp
ret