joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1003c5b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
test ebx, 0xffff0000
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
jne 0x1003c5d0
cmp dword [edi + 0x54], 0
jne 0x1003c5d0
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.10044c5a
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.kernel32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.kernel32.dll_LoadResource]
push esi
push dword [esp + 0x18]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.1003c577
push ebx
mov esi, eax
call dword [sym.imp.kernel32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
ret 8

Function at 0x1003d41c
Capabilities:
Get graphical window text

Disassembly:
push ebp
lea ebp, [esp - 0x88]
sub esp, 0x108
mov eax, dword [0x1005a214]
xor eax, ebp
mov dword [ebp + 0x84], eax
mov eax, dword [ebp + 0x90]
test eax, eax
push ebx
push esi
mov esi, dword [ebp + 0x94]
push edi
mov dword [ebp - 0x80], eax
je 0x1003d451
test esi, esi
jne 0x1003d456
call fcn.10026178
push esi
call dword [sym.imp.kernel32.dll_lstrlenA]
mov ebx, eax
xor eax, eax
push 0x3f
mov byte [ebp - 0x7c], 0
pop ecx
lea edi, [ebp - 0x7b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, 0x100
cmp ebx, eax
ja 0x1003d49a
push eax
lea eax, [ebp - 0x7c]
push eax
push dword [ebp - 0x80]
call dword [sym.imp.USER32.dll_GetWindowTextA]
cmp eax, ebx
jne 0x1003d49a
push esi
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.kernel32.dll_lstrcmpA]
test eax, eax
je 0x1003d4a4
push esi
push dword [ebp - 0x80]
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov ecx, dword [ebp + 0x84]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000cef6
add ebp, 0x88
leave
ret 8
Function at 0x10045071
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov eax, 0x10048425
call fcn.1000cf04
sub esp, 0x10
push ebx
push esi
push edi
mov edi, ecx
lea esi, [edi + 0x1c]
mov dword [ebp - 0x10], esp
push esi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], esi
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov eax, dword [ebp + 8]
xor ebx, ebx
cmp eax, ebx
jle 0x10045192
cmp eax, dword [edi + 0xc]
jge 0x10045192
push dword [edi]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov esi, eax
cmp esi, ebx
je 0x100450e6
mov ecx, dword [ebp + 8]
cmp ecx, dword [esi + 8]
jl 0x1004517b
cmp dword [ebp + 0xc], ebx
je 0x1004517b
mov eax, dword [esi + 0xc]
cmp eax, ebx
jne 0x1004512b
mov eax, dword [edi + 0xc]
shl eax, 2
push eax
push ebx
call dword [sym.imp.kernel32.dll_LocalAlloc]
jmp 0x1004513b
push 0x10
mov dword [ebp - 4], ebx
call fcn.10044ccc
cmp eax, ebx
je 0x100450fe
mov dword [eax], vtable.CThreadData.0
mov esi, eax
jmp 0x10045100
xor esi, esi
or dword [ebp - 4], 0xffffffff
push esi
lea ecx, [edi + 0x14]
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
call fcn.10044f46
jmp 0x100450cf
mov ecx, dword [edi + 0xc]
push 2
shl ecx, 2
push ecx
push eax
call dword [sym.imp.kernel32.dll_LocalReAlloc]
cmp eax, ebx
jne 0x1004514d
push dword [ebp - 0x14]
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
call fcn.10026178
mov ecx, dword [esi + 8]
mov dword [esi + 0xc], eax
mov edx, dword [edi + 0xc]
sub edx, ecx
shl edx, 2
push edx
lea eax, [eax + ecx*4]
push ebx
push eax
call fcn.1000daa0
mov eax, dword [edi + 0xc]
add esp, 0xc
push esi
mov dword [esi + 8], eax
push dword [edi]
call dword [sym.imp.kernel32.dll_TlsSetValue]
mov ecx, dword [ebp + 8]
mov eax, dword [esi + 0xc]
cmp eax, ebx
je 0x1004518d
cmp ecx, dword [esi + 8]
jge 0x1004518d
mov edx, dword [ebp + 0xc]
mov dword [eax + ecx*4], edx
push dword [ebp - 0x14]
jmp 0x10045193
push esi
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 8
Function at 0x10045894
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
mov eax, 0x100484b4
call fcn.1000cf04
mov eax, 0x1024
call fcn.1000c560
mov eax, dword [0x1005a214]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
push edi
xor edi, edi
mov dword [ebp - 0x102c], edi
cmp dword [ecx + 0x54], edi
mov dword [ebp - 0x101c], ebx
mov dword [ebp - 0x1030], esi
mov dword [ebp - 0x1014], edx
je 0x100459cb
push eax
call fcn.10026178
cmp eax, edi
mov dword [ebp - 0x1020], eax
jne 0x100458ff
push dword [ebp - 0x1014]
jmp 0x100459fd
call fcn.10034457
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea ebx, [eax + 0x10]
mov dword [ebp - 0x1018], ebx
lea eax, [ebp - 0x1024]
push eax
push edi
lea eax, [ebp - 0x102c]
push eax
push edi
push esi
push dword [ebp - 0x1020]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 4], edi
call esi
cmp eax, edi
mov dword [ebp - 0x1028], eax
jne 0x10045988
push dword [ebp - 0x1024]
lea ecx, [ebp - 0x1018]
call fcn.10003c5f
lea ecx, [ebp - 0x1024]
push ecx
push eax
lea eax, [ebp - 0x102c]
push eax
push edi
push dword [ebp - 0x1030]
push dword [ebp - 0x1020]
call esi
push 0xffffffffffffffff
lea ecx, [ebp - 0x1018]
mov dword [ebp - 0x1028], eax
call fcn.10003f1e
mov ebx, dword [ebp - 0x1018]
push dword [ebp - 0x1020]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x1028], edi
mov ecx, dword [ebp - 0x101c]
jne 0x100459be
lea eax, [ebp - 0x1018]
push eax
call fcn.10003f43
lea ecx, [ebx - 0x10]
call fcn.1000398e
mov eax, dword [ebp - 0x101c]
jmp 0x10045a06
push dword [ebp - 0x1014]
call fcn.10003df1
jmp 0x100459ae
cmp edx, edi
jne 0x100459d9
mov dword [ebp - 0x1014], 0x1004aa90
push dword [ecx + 0x68]
lea ecx, [ebp - 0x1010]
push 0x1000
push ecx
push dword [ebp - 0x1014]
push esi
push eax
call dword [sym.imp.kernel32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x1010]
push eax
mov ecx, ebx
call fcn.10003df1
mov eax, ebx
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop esi
xor ecx, ebp
pop ebx
call fcn.1000cef6
leave
ret 0x10
Function at 0x401110
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
jmp 0x401130
push 0xffffffffffffffff
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x401700
Capabilities:
Create thread
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
mov eax, dword [0x450200]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
push 0x228
mov esi, eax
lea eax, [ebp - 0x22c]
push 0
push eax
call fcn.0042bad0
add esp, 0xc
mov dword [ebp - 0x230], 0x22c
lea eax, [ebp - 0x230]
push eax
push esi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x401779
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edi, eax
nop word [eax + eax]
cmp dword [ebp - 0x228], edi
je 0x401779
lea eax, [ebp - 0x230]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x401760
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x218]
push 0
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push 4
mov esi, eax
call fcn.0042a725
add esp, 4
test eax, eax
je 0x4017a7
mov dword [eax], esi
jmp 0x4017a9
xor eax, eax
lea ecx, [ebp - 0x238]
push ecx
push 0
push eax
push 0x4010d0
push 0
push 0
call fcn.00431140
add esp, 0x18
mov dword [ebp - 0x23c], eax
test eax, eax
je 0x40189e
mov ecx, dword [ebp - 0x238]
test ecx, ecx
je 0x4018af
push ecx
push eax
call fcn.00429951
add esp, 8
test eax, eax
jne 0x4018af
mov eax, dword [ebp + 8]
push 0x4c
mov dword [ebp - 0x234], eax
call fcn.0042a725
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x401841
push 1
sub esp, 0x24
xorps xmm0, xmm0
mov eax, esp
movups xmmword [eax], xmm0
movups xmmword [eax + 0x10], xmm0
mov dword [eax + 0x20], 0
call fcn.00401c00
mov edi, eax
mov esi, edi
test edi, edi
je 0x401845
mov ecx, dword [edi + 4]
mov ecx, dword [ecx + 4]
add ecx, 4
add ecx, edi
mov eax, dword [ecx]
call dword [eax]
jmp 0x401845
xor esi, esi
xor edi, edi
push 0
push ecx
mov eax, esp
mov dword [eax], esi
test esi, esi
je 0x40185f
mov eax, dword [edi + 4]
mov ecx, dword [eax + 4]
add ecx, 4
add ecx, esi
mov eax, dword [ecx]
call dword [eax]
lea eax, [ebp - 0x234]
push eax
call fcn.00407470
xor ebx, ebx
add esp, 0xc
test eax, eax
cmovns ebx, eax
test esi, esi
je 0x401889
mov ecx, dword [edi + 4]
mov ecx, dword [ecx + 4]
add ecx, 4
add ecx, esi
mov edx, dword [ecx]
call dword [edx + 4]
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042a763
mov esp, ebp
pop ebp
ret 0x10
push 6
mov dword [ebp - 0x238], 0
call fcn.00429b3d
push 1
call fcn.00429b3d
int3

Function at 0x42b3b6
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x42b3f5
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42b3f5
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42b3f5
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x42b3f5
cmp dword [ecx + 0x74], 0xe
jbe 0x42b3f5
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x4362f1
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4495f4
push 0x4495ec
push str.FlsAlloc
push 0x1e
call fcn.0043619a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x436325
push dword [ebp + 8]
mov ecx, esi
call dword [0x4431c4]
call esi
jmp 0x43632b
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x43636f
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x449604
push 0x4495fc
push str.FlsGetValue
push 0x20
call fcn.0043619a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4363a6
push dword [ebp + 8]
mov ecx, esi
call dword [0x4431c4]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x439e99
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x450200]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x439ee4
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0043a038
test al, al
jne 0x439ede
sub edx, 2
cmp edx, edi
jne 0x439ec4
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x439f06
lea eax, [edi + 2]
cmp edx, eax
je 0x439f06
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.00439de5
add esp, 0x10
jmp 0x43a000
push esi
lea ecx, [ebp - 0x255]
call fcn.0043a038
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x439f49
push dword [ebp - 0x25c]
jmp 0x439ef6
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x439f86
cmp word [ebp - 0x226], 0
je 0x439fa7
cmp word [ebp - 0x226], ax
jne 0x439f86
cmp word [ebp - 0x224], 0
je 0x439fa7
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.00439de5
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x439ff3
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x439f60
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x439fdb
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x43a000
push 0x439c15
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00440740
add esp, 0x10
jmp 0x439fd0
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042a763
leave
ret
Function at 0x442930
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x44295d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x44295d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4086b4
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x408706
test eax, edx
je 0x408709
movzx ecx, byte [edx]
cmp cl, byte [eax]
je 0x4086c9
movzx eax, byte [eax]
sub eax, ecx
ret
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x4086ef
add ecx, 4
js 0x4086df
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 3
add ecx, ebx
jns 0x4086ec
movzx eax, byte [ecx + eax]
movzx edx, byte [ecx + edx]
sub eax, edx
pop ebx
pop ebx
ret
xor eax, eax
ret
test eax, eax
je 0x408715
test edx, edx
jne 0x4086bc
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x42155c
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x421562
ret
Function at 0x42f51c
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff8c
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x70], ecx
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x42f6d7
push dword fs:[eax]
mov dword fs:[eax], esp
lea ecx, [ebp - 0x10]
mov edx, 0x1b
mov al, 0x2d
call fcn.00405214
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 4]
mov ecx, 0x42f6f0
call fcn.00404da8
mov eax, ebx
call fcn.0041b2b4
mov edi, eax
dec edi
test edi, edi
jl 0x42f5d4
inc edi
xor esi, esi
mov edx, esi
mov eax, ebx
call fcn.0041b288
mov edx, dword [0x42b6e8]
call fcn.00403dac
test al, al
je 0x42f5d0
push dword [ebp - 8]
mov edx, esi
mov eax, ebx
call fcn.0041b288
lea edx, [ebp - 0x14]
call fcn.0043df68
push dword [ebp - 0x14]
lea ecx, [ebp - 0x18]
mov edx, 3
mov al, 0x20
call fcn.00405214
push dword [ebp - 0x18]
lea eax, [ebp - 8]
mov edx, 3
call fcn.00404e24
inc esi
dec edi
jne 0x42f582
movzx eax, byte [0x42f6f4]
push eax
lea eax, [ebp - 0x1c]
push eax
xor ecx, ecx
mov edx, 0x42f700
mov eax, dword [ebp - 8]
call fcn.0040d6b4
mov edx, dword [ebp - 0x1c]
lea eax, [ebp - 8]
call fcn.00404b28
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x6c], eax
mov byte [ebp - 0x68], 0xb
lea edx, [ebp - 0x70]
mov eax, ebx
call fcn.0043df68
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x64], eax
mov byte [ebp - 0x60], 0xb
mov eax, 0x42f6f0
mov dword [ebp - 0x5c], eax
mov byte [ebp - 0x58], 0xb
mov eax, dword [ebp - 4]
mov dword [ebp - 0x54], eax
mov byte [ebp - 0x50], 0xb
lea edx, [ebp - 0x74]
mov eax, dword [ebx + 0x360]
call fcn.0043df68
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x4c], eax
mov byte [ebp - 0x48], 0xb
mov eax, 0x42f6f0
mov dword [ebp - 0x44], eax
mov byte [ebp - 0x40], 0xb
mov eax, dword [ebp - 4]
mov dword [ebp - 0x3c], eax
mov byte [ebp - 0x38], 0xb
mov eax, dword [ebp - 8]
mov dword [ebp - 0x34], eax
mov byte [ebp - 0x30], 0xb
mov eax, 0x42f6f0
mov dword [ebp - 0x2c], eax
mov byte [ebp - 0x28], 0xb
mov eax, dword [ebp - 4]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0xb
lea edx, [ebp - 0x6c]
mov ecx, 9
mov eax, 0x42f70c
call fcn.0040991c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42f6de
lea eax, [ebp - 0x74]
mov edx, 2
call fcn.00404ab4
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.00404ab4
lea eax, [ebp - 0x14]
call fcn.00404a90
lea eax, [ebp - 0x10]
call fcn.00404a90
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404ab4
ret
Function at 0x45fb50
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov ebx, dword [ebp - 4]
inc ebx
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov ecx, esi
mov edx, ebx
call fcn.004232c8
cmp ebx, dword [ebp - 8]
jge 0x45fbb3
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov ecx, esi
mov edx, ebx
call fcn.004234f0
mov edi, eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov ecx, esi
mov edx, ebx
call fcn.004234f0
xor edi, eax
push edi
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov ecx, esi
mov edx, ebx
call fcn.0042351c
add ebx, 2
cmp ebx, dword [ebp - 8]
jl 0x45fb79
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x45fbbc
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov esi, eax
mov ebx, dword [ebp - 4]
inc ebx
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov ecx, ebx
mov edx, esi
call fcn.004232c8
cmp ebx, dword [ebp - 8]
jge 0x45fc1f
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov ecx, ebx
mov edx, esi
call fcn.004234f0
mov edi, eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov ecx, ebx
mov edx, esi
call fcn.004234f0
xor edi, eax
push edi
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov ecx, ebx
mov edx, esi
call fcn.0042351c
add ebx, 2
cmp ebx, dword [ebp - 8]
jl 0x45fbe5
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x46a420
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov ebp, ecx
mov esi, edx
mov dword [esp], eax
mov eax, dword [esp]
call fcn.00404d50
mov edx, eax
mov eax, ebp
call fcn.004051b0
mov eax, dword [esp]
call fcn.00404d50
mov edi, eax
test edi, edi
jle 0x46a485
mov ebx, 1
mov eax, ebp
call fcn.00404f80
mov edx, dword [esp]
movzx edx, byte [edx + ebx - 1]
mov ecx, esi
shr ecx, 8
xor dl, cl
mov byte [eax + ebx - 1], dl
mov eax, dword [ebp]
movzx eax, byte [eax + ebx - 1]
add esi, eax
imul eax, esi, 0xce6d
add eax, 0x58bf
mov esi, eax
inc ebx
dec edi
jne 0x46a450
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x46a48c
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov dword [esp], ecx
mov esi, edx
mov edi, eax
mov eax, edi
call fcn.00404d50
mov edx, eax
mov eax, dword [esp]
call fcn.004051b0
mov eax, edi
call fcn.00404d50
mov ebp, eax
test ebp, ebp
jle 0x46a4eb
mov ebx, 1
mov eax, dword [esp]
call fcn.00404f80
movzx edx, byte [edi + ebx - 1]
mov ecx, esi
shr ecx, 8
xor dl, cl
mov byte [eax + ebx - 1], dl
movzx eax, byte [edi + ebx - 1]
add esi, eax
imul eax, esi, 0xce6d
add eax, 0x58bf
mov esi, eax
inc ebx
dec ebp
jne 0x46a4bb
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x403ef9
Capabilities:
Query environment variable
Terminate process

Disassembly:
push ecx
push ebp
push edi
mov ebp, 0x104
mov edi, 0x406040
push ebp
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x403f7f
push esi
push str.ShellExecuteA
push str.shell32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
mov dword [esp + 0xc], eax
je 0x403f76
push ebx
mov esi, 0x406144
push str._c_del__
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
push edi
push esi
call ebx
push str._____NUL
push esi
call ebx
push ebp
push edi
push str.ComSpec
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
pop ebx
je 0x403f76
xor eax, eax
push eax
push eax
push esi
push edi
push eax
push eax
call dword [esp + 0x24]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop edi
xor eax, eax
pop ebp
pop ecx
ret

Function at 0x4043f1
Capabilities:
Encode data using xor
Encrypt data using xtea

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
xor ecx, ecx
push ebx
push esi
mov ch, byte [eax + 3]
mov esi, dword [ebp + 8]
mov cl, byte [eax + 2]
push edi
movzx edx, byte [eax + 1]
shl ecx, 8
or ecx, edx
xor edi, edi
movzx edx, byte [eax]
movzx ebx, byte [eax + 5]
shl ecx, 8
or ecx, edx
xor edx, edx
mov dh, byte [eax + 7]
mov dl, byte [eax + 6]
movzx eax, byte [eax + 4]
shl edx, 8
or edx, ebx
shl edx, 8
or eax, edx
cmp dword [ebp + 0x14], edi
jne 0x40448e
mov edx, dword [esi]
test edx, edx
jle 0x4044e7
mov dword [ebp + 8], edx
mov edx, eax
mov ebx, eax
shr edx, 5
shl ebx, 4
xor edx, ebx
mov ebx, edi
and ebx, 3
add edx, eax
mov ebx, dword [esi + ebx*4 + 4]
add ebx, edi
sub edi, 0x61c88647
xor edx, ebx
add ecx, edx
mov edx, ecx
mov ebx, ecx
shr edx, 5
shl ebx, 4
xor edx, ebx
mov ebx, edi
shr ebx, 0xb
and ebx, 3
add edx, ecx
mov ebx, dword [esi + ebx*4 + 4]
add ebx, edi
xor edx, ebx
add eax, edx
dec dword [ebp + 8]
jne 0x404444
jmp 0x4044e7
mov edi, dword [esi]
mov edx, edi
imul edx, edx, 0x9e3779b9
test edi, edi
jle 0x4044e7
mov dword [ebp + 8], edi
mov edi, ecx
mov ebx, ecx
shr edi, 5
shl ebx, 4
xor edi, ebx
mov ebx, edx
shr ebx, 0xb
and ebx, 3
add edi, ecx
mov ebx, dword [esi + ebx*4 + 4]
add ebx, edx
add edx, 0x61c88647
xor edi, ebx
sub eax, edi
mov edi, eax
mov ebx, eax
shr edi, 5
shl ebx, 4
xor edi, ebx
mov ebx, edx
and ebx, 3
add edi, eax
mov ebx, dword [esi + ebx*4 + 4]
add ebx, edx
xor edi, ebx
sub ecx, edi
dec dword [ebp + 8]
jne 0x40449f
mov esi, dword [ebp + 0x10]
mov edx, ecx
shr edx, 8
mov byte [esi + 1], dl
mov byte [esi], cl
mov edx, ecx
mov byte [esi + 4], al
shr ecx, 0x18
mov byte [esi + 3], cl
mov ecx, eax
shr ecx, 8
mov byte [esi + 5], cl
mov ecx, eax
shr edx, 0x10
shr ecx, 0x10
shr eax, 0x18
mov byte [esi + 2], dl
mov byte [esi + 6], cl
mov byte [esi + 7], al
pop edi
pop esi
pop ebx
pop ebp
ret 0x10