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

Disassembly:
push 0x424
mov eax, 0x418bac
call fcn.004176af
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
xor esi, esi
mov edi, edx
mov dword [ebp - 0x430], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], esi
mov dword [ebp - 0x418], esi
push 2
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [ebp - 0x41c], eax
cmp eax, esi
jne 0x402582
call fcn.00401979
mov esi, eax
jmp 0x40268c
push ebx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
cmp edi, esi
jne 0x40259b
call fcn.00401979
jmp 0x40267e
push edi
push dword [ebp - 0x41c]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x420], eax
cmp eax, esi
je 0x402591
push edi
push dword [ebp - 0x41c]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
lea eax, [edi + 1]
mov dword [ebp - 0x424], edi
cmp eax, edi
jae 0x4025d8
mov esi, 0x8007000e
jmp 0x402680
xor ecx, ecx
shld ecx, eax, 1
add eax, eax
mov byte [ebp - 4], 2
cmp ecx, esi
ja 0x4025ed
cmp eax, 0xffffffff
jbe 0x4025f7
push 0x80070216
call fcn.004018e1
cmp eax, 0x400
jbe 0x402624
push eax
lea eax, [ebp - 0x418]
push eax
call fcn.0040560b
jmp 0x402630
lea eax, [ebp - 0x414]
mov dword [ebp - 0x418], eax
mov dword [ebp - 4], 1
cmp dword [ebp - 0x418], esi
je 0x4025ce
push edi
push dword [ebp - 0x418]
push edi
push dword [ebp - 0x420]
push esi
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, esi
je 0x402591
mov edx, dword [ebp - 0x418]
push dword [ebp + 0x10]
xor ecx, ecx
mov word [edx + eax*2], cx
mov ecx, dword [ebp - 0x418]
lea edx, [ebp - 0x42c]
call fcn.00403099
mov esi, eax
push dword [ebp - 0x41c]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x4026a5
lea eax, [ebp - 0x418]
call fcn.004052bc
mov eax, esi
call fcn.0041770b
ret 0xc
Function at 0x404955
Capabilities:
Check if file exists
Read .ini file

Disassembly:
push 0x298
mov eax, 0x41881e
call fcn.00417679
xor eax, eax
push 7
pop ebx
mov word [ebp - 0x234], ax
xor esi, esi
mov eax, 0x41e798
lea ecx, [ebp - 0x234]
mov dword [ebp - 0x220], ebx
mov dword [ebp - 0x224], esi
call fcn.004054f2
mov dword [ebp - 4], esi
xor eax, eax
mov word [ebp - 0x250], ax
mov eax, 0x41e7b0
lea ecx, [ebp - 0x250]
mov dword [ebp - 0x23c], ebx
mov dword [ebp - 0x240], esi
call fcn.004054f2
lea ecx, [ebp - 0x2a4]
mov byte [ebp - 4], 1
call fcn.00406d86
push eax
lea eax, [ebp - 0x26c]
mov byte [ebp - 4], 2
call fcn.00405fd0
pop ecx
push 1
xor edi, edi
lea esi, [ebp - 0x2a4]
mov byte [ebp - 4], 4
call fcn.00405574
mov eax, dword [ebp - 0x26c]
push 8
pop edi
cmp dword [ebp - 0x258], edi
jae 0x404a00
lea eax, [ebp - 0x26c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x404b5e
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
call fcn.0040d730
and dword [ebp - 0x278], 0
xor eax, eax
mov word [ebp - 0x288], ax
mov esi, 0x41e7d4
add esp, 0xc
mov eax, esi
lea ecx, [ebp - 0x288]
mov dword [ebp - 0x274], ebx
call fcn.004054f2
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x26c]
cmp dword [ebp - 0x258], edi
jae 0x404a6d
lea edx, [ebp - 0x26c]
mov ecx, dword [ebp - 0x250]
cmp dword [ebp - 0x23c], edi
jae 0x404a81
lea ecx, [ebp - 0x250]
mov eax, dword [ebp - 0x234]
cmp dword [ebp - 0x220], edi
jae 0x404a95
lea eax, [ebp - 0x234]
push edx
push 0x104
lea edx, [ebp - 0x218]
push edx
push esi
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x218]
lea ecx, [ebp - 0x288]
call fcn.004054f2
lea eax, [ebp - 0x288]
call fcn.00406054
mov edx, dword [ebp - 0x26c]
test al, al
je 0x404b0f
cmp dword [ebp - 0x258], edi
jae 0x404adf
lea edx, [ebp - 0x26c]
mov ecx, dword [ebp - 0x250]
cmp dword [ebp - 0x23c], edi
jae 0x404af3
lea ecx, [ebp - 0x250]
mov eax, dword [ebp - 0x234]
cmp dword [ebp - 0x220], edi
jae 0x404b07
lea eax, [ebp - 0x234]
push edx
push 0x41e7d8
jmp 0x404b47
cmp dword [ebp - 0x258], edi
jae 0x404b1d
lea edx, [ebp - 0x26c]
mov ecx, dword [ebp - 0x250]
cmp dword [ebp - 0x23c], edi
jae 0x404b31
lea ecx, [ebp - 0x250]
mov eax, dword [ebp - 0x234]
cmp dword [ebp - 0x220], edi
jae 0x404b45
lea eax, [ebp - 0x234]
push edx
push esi
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
push 1
xor edi, edi
lea esi, [ebp - 0x288]
call fcn.00405574
push 1
xor edi, edi
lea esi, [ebp - 0x26c]
call fcn.00405574
push 1
lea esi, [ebp - 0x250]
call fcn.00405574
push 1
lea esi, [ebp - 0x234]
call fcn.00405574
call fcn.004176fc
ret
Function at 0x4063c5
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1038
call fcn.0040dc40
mov eax, dword [0x4222bc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push ebx
push 0x80000000
mov esi, ecx
push eax
mov dword [ebp - 0x1038], esi
mov dword [ebp - 0x1030], eax
mov byte [ebp - 0x1029], bl
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x1034], eax
cmp eax, 0xffffffff
jne 0x40641f
xor al, al
jmp 0x40651e
push edi
push 8
pop ecx
push dword [ebp - 0x1030]
xor eax, eax
mov dword [ebp - 0x1028], ebx
lea edi, [ebp - 0x1024]
rep stosd dword es:[edi], eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
push 9
push 8
push ebx
push ebx
push ebx
push ebx
push ebx
lea ecx, [ebp - 0x1028]
push ecx
push eax
push dword [esi + 4]
call fcn.0040bca0
add esp, 0x28
test eax, eax
jne 0x406501
push 0xfff
lea eax, [ebp - 0x1003]
push ebx
push eax
mov byte [ebp - 0x1004], bl
call fcn.0040d730
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
add esp, 0xc
mov dword [ebp - 0x1030], ebx
mov edi, 0x1000
jmp 0x4064ca
cmp dword [ebp - 0x1030], ebx
je 0x4064e6
push dword [ebp - 0x1030]
lea eax, [ebp - 0x1004]
push eax
mov eax, dword [ebp - 0x1038]
push dword [eax + 4]
call fcn.0040af10
add esp, 0xc
test eax, eax
jne 0x4064ca
cmp dword [ebp - 0x1030], edi
jae 0x4064ca
mov byte [ebp - 0x1029], 1
push ebx
lea eax, [ebp - 0x1030]
push eax
push edi
lea eax, [ebp - 0x1004]
push eax
push dword [ebp - 0x1034]
call esi
test eax, eax
jne 0x406491
mov eax, dword [ebp - 0x1038]
push dword [eax + 4]
call fcn.0040b2e0
neg eax
sbb al, al
inc al
and byte [ebp - 0x1029], al
pop ecx
push dword [ebp - 0x1034]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
test eax, eax
jne 0x406518
mov byte [ebp - 0x1029], bl
mov al, byte [ebp - 0x1029]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0040be5f
leave
ret 4
Function at 0x4065db
Capabilities:
Connect to http server
Create http request
Send file using ftp

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
mov eax, dword [0x4222bc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
push ebx
push ebx
push ebx
push ebx
push str.crash_report
mov dword [ebp - 0x40c], eax
mov byte [ebp - 0x405], bl
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [ebp - 0x410], eax
cmp eax, ebx
je 0x4066b4
push esi
push 1
push 0x8000000
push 1
push str.ZhiMaKaiMenC
push str.FunshionSoftC
push 0x15
push str.service_ftp.funshion.com
push eax
call dword [sym.imp.WININET.dll_InternetConnectA]
mov esi, eax
cmp esi, ebx
mov ebx, dword [sym.imp.WININET.dll_InternetCloseHandle]
je 0x4066ab
push dword [ebp - 0x40c]
push esi
call dword [sym.imp.WININET.dll_FtpSetCurrentDirectoryA]
test eax, eax
je 0x4066a8
cmp dword [edi + 0x14], 0x10
jb 0x406666
mov eax, dword [edi]
jmp 0x406668
mov eax, edi
push eax
lea eax, [ebp - 0x404]
push 0x400
push eax
call fcn.0040d957
add esp, 0xc
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
push 1
push 2
push eax
lea eax, [ebp - 0x404]
push eax
push esi
call dword [sym.imp.WININET.dll_FtpPutFileA]
test eax, eax
je 0x4066a8
mov byte [ebp - 0x405], 1
push esi
call ebx
push dword [ebp - 0x410]
call ebx
pop esi
mov ecx, dword [ebp - 4]
mov al, byte [ebp - 0x405]
xor ecx, ebp
pop ebx
call fcn.0040be5f
leave
ret
Function at 0x4066c7
Capabilities:
Delete file

Disassembly:
push 0x88
mov eax, 0x418954
call fcn.00417679
mov eax, dword [ebp + 8]
mov dword [ebp - 0x90], eax
mov eax, dword [ebp + 0xc]
push 0xf
mov dword [ebp - 0x94], eax
pop edi
xor ebx, ebx
mov eax, 0x41b435
lea esi, [ebp - 0x48]
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], ebx
mov byte [ebp - 0x48], bl
call fcn.004053b1
mov eax, esi
push eax
lea eax, [ebp - 0x80]
push eax
mov dword [ebp - 4], ebx
call fcn.004068cb
pop ecx
pop ecx
mov dword [ebp - 0x88], eax
mov eax, dword [ebp - 0x90]
mov byte [ebp - 4], 1
lea esi, [ebp - 0x64]
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x54], ebx
mov byte [ebp - 0x64], bl
call fcn.004053b1
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x88]
mov ecx, esi
lea edi, [ebp - 0x2c]
call fcn.00405f88
push 1
xor edi, edi
call fcn.00405421
push 1
lea esi, [ebp - 0x80]
call fcn.00405421
push 1
lea esi, [ebp - 0x48]
mov byte [ebp - 4], 6
call fcn.00405421
cmp byte [ebp + 0x10], bl
je 0x40677f
mov eax, dword [ebp - 0x90]
lea esi, [ebp - 0x2c]
call fcn.004053b1
jmp 0x4067f3
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x8c], vtable.CZLib.0
jae 0x406795
lea eax, [ebp - 0x2c]
push ebx
push eax
call fcn.0040ae00
cmp eax, ebx
mov dword [ebp - 0x88], eax
pop ecx
setne al
pop ecx
lea ecx, [ebp - 0x8c]
cmp al, bl
jne 0x4067c8
call fcn.00406399
push 1
xor edi, edi
lea esi, [ebp - 0x2c]
call fcn.00405421
xor eax, eax
jmp 0x406825
push dword [ebp - 0x90]
call fcn.004063c5
lea esi, [ebp - 0x8c]
mov byte [ebp - 0x81], al
call fcn.004063af
mov ecx, esi
call fcn.00406399
cmp byte [ebp - 0x81], bl
je 0x4067b8
push dword [ebp - 0x94]
lea edi, [ebp - 0x2c]
call fcn.004065db
cmp dword [ebp - 0x18], 0x10
mov bl, al
mov eax, dword [ebp - 0x2c]
pop ecx
jae 0x40680f
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 1
xor edi, edi
lea esi, [ebp - 0x2c]
call fcn.00405421
movzx eax, bl
call fcn.004176fc
ret
Function at 0x4068cb
Capabilities:
Read .ini file

Disassembly:
push 0x690
mov eax, 0x41890c
call fcn.00417679
mov eax, dword [ebp + 8]
mov dword [ebp - 0x694], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x698], eax
lea eax, [ebp - 0x620]
xor ebx, ebx
push eax
mov dword [ebp - 0x69c], ebx
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
lea ecx, [ebp - 0x658]
call fcn.00406ddf
mov esi, str._funshion.ini
push esi
mov dword [ebp - 4], ebx
call fcn.0040c030
pop ecx
mov edi, eax
push esi
lea eax, [ebp - 0x658]
call fcn.0040562e
cmp dword [ebp - 0x644], 0x10
mov eax, dword [ebp - 0x658]
jae 0x40693e
lea eax, [ebp - 0x658]
push eax
push 0x200
lea eax, [ebp - 0x210]
push eax
push 0x41e9b0
push str.currentfile
push str.PlayerTrace
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov byte [ebp + eax - 0x210], bl
mov eax, 0x41e9cc
lea esi, [ebp - 0x63c]
mov dword [ebp - 0x628], 0xf
mov dword [ebp - 0x62c], ebx
mov byte [ebp - 0x63c], bl
call fcn.004053b1
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x62c]
dec eax
push eax
mov eax, esi
push eax
lea esi, [ebp - 0x674]
call fcn.00406c9c
push 1
xor edi, edi
call fcn.00405421
lea eax, [ebp - 0x63c]
push eax
lea eax, [ebp - 0x690]
push eax
call fcn.00406cc5
push str.__u_02u_02u__02u_02u_02u_03u__s__s.zip
push eax
lea eax, [ebp - 0x674]
mov byte [ebp - 4], 2
call fcn.00405f57
add esp, 0x10
mov ebx, eax
lea eax, [ebp - 0x63c]
mov byte [ebp - 4], 3
call fcn.00405363
push 1
lea esi, [ebp - 0x674]
call fcn.00405421
push 1
lea esi, [ebp - 0x690]
mov byte [ebp - 4], 1
call fcn.00405421
lea ebx, [ebp - 0x690]
call fcn.0040652e
cmp dword [eax + 0x14], 0x10
jb 0x406a1d
mov eax, dword [eax]
cmp dword [ebp - 0x628], 0x10
mov ecx, dword [ebp - 0x63c]
jae 0x406a32
lea ecx, [ebp - 0x63c]
lea edx, [ebp - 0x210]
push edx
push eax
movzx eax, word [ebp - 0x612]
push eax
movzx eax, word [ebp - 0x614]
push eax
movzx eax, word [ebp - 0x616]
push eax
movzx eax, word [ebp - 0x618]
push eax
movzx eax, word [ebp - 0x61a]
push eax
movzx eax, word [ebp - 0x61e]
push eax
movzx eax, word [ebp - 0x620]
push eax
push ecx
lea eax, [ebp - 0x610]
push 0x400
push eax
call fcn.0040d939
add esp, 0x30
push 1
xor edi, edi
lea esi, [ebp - 0x690]
call fcn.00405421
mov ecx, dword [ebp - 0x698]
lea eax, [ebp - 0x610]
push eax
push dword [ebp - 0x694]
call fcn.00405eeb
pop ecx
pop ecx
push 1
lea esi, [ebp - 0x63c]
call fcn.00405421
push 1
lea esi, [ebp - 0x658]
call fcn.00405421
mov eax, dword [ebp - 0x694]
call fcn.004176fc
ret
Function at 0x407b45
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [esi + 0x2c]
push edi
mov edi, dword [esi + 0x3c]
sub edi, dword [esi + 0x74]
mov eax, dword [esi + 0x6c]
mov ecx, dword [esi + 0x2c]
sub edi, eax
lea ecx, [ebx + ecx - 0x106]
mov dword [ebp - 8], edi
cmp eax, ecx
jb 0x407bd4
mov eax, dword [esi + 0x38]
push ebx
lea ecx, [eax + ebx]
push ecx
push eax
call fcn.0040cbe0
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x44]
sub dword [esi + 0x70], ebx
sub dword [esi + 0x6c], ebx
add esp, 0xc
sub dword [esi + 0x5c], ebx
mov dword [ebp - 4], eax
lea eax, [ecx + eax*2]
sub eax, 2
movzx ecx, word [eax]
mov edx, ecx
sub edx, ebx
cmp ecx, ebx
sbb ecx, ecx
not ecx
and ecx, edx
dec dword [ebp - 4]
mov word [eax], cx
jne 0x407b92
mov eax, dword [esi + 0x40]
mov dword [ebp - 4], ebx
lea eax, [eax + ebx*2]
sub eax, 2
movzx ecx, word [eax]
mov edx, ecx
sub edx, ebx
cmp ecx, ebx
sbb ecx, ecx
not ecx
and ecx, edx
dec dword [ebp - 4]
mov word [eax], cx
jne 0x407bb5
add edi, ebx
mov dword [ebp - 8], edi
mov edi, dword [esi]
cmp dword [edi + 4], 0
je 0x407c90
mov eax, dword [esi + 0x74]
add eax, dword [esi + 0x6c]
mov ecx, dword [edi + 4]
add eax, dword [esi + 0x38]
mov edx, dword [ebp - 8]
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], ecx
cmp ecx, edx
jbe 0x407bfc
mov dword [ebp - 4], edx
mov edx, dword [ebp - 4]
test edx, edx
jne 0x407c07
xor eax, eax
jmp 0x407c54
sub ecx, edx
mov dword [edi + 4], ecx
mov ecx, dword [edi + 0x1c]
mov ecx, dword [ecx + 0x18]
cmp ecx, 1
jne 0x407c25
mov ecx, dword [edi]
mov eax, dword [edi + 0x30]
push edx
call fcn.00409e28
pop ecx
jmp 0x407c38
cmp ecx, 2
jne 0x407c3e
push edx
push dword [edi]
push dword [edi + 0x30]
call fcn.00408491
add esp, 0xc
mov dword [edi + 0x30], eax
mov eax, dword [ebp - 0xc]
push dword [ebp - 4]
push dword [edi]
push eax
call fcn.0040cbe0
mov eax, dword [ebp - 4]
add dword [edi], eax
add esp, 0xc
add dword [edi + 8], eax
add dword [esi + 0x74], eax
mov edi, dword [esi + 0x74]
cmp edi, 3
jb 0x407c7c
mov edx, dword [esi + 0x6c]
add edx, dword [esi + 0x38]
mov ecx, dword [esi + 0x58]
movzx eax, byte [edx]
mov dword [esi + 0x48], eax
shl eax, cl
movzx ecx, byte [edx + 1]
xor eax, ecx
and eax, dword [esi + 0x54]
mov dword [esi + 0x48], eax
cmp edi, 0x106
jae 0x407c90
mov eax, dword [esi]
cmp dword [eax + 4], 0
jne 0x407b50
pop edi
pop ebx
leave
ret
Function at 0x40a070
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push edi
mov edi, 0x34567890
mov dword [ecx], 0x12345678
mov dword [ecx + 4], 0x23456789
mov dword [ecx + 8], edi
mov dl, byte [eax]
test dl, dl
je 0x40a0e0
push esi
mov esi, dword [ecx + 4]
mov eax, dword [ecx]
movsx edx, dl
xor edx, eax
and edx, 0xff
mov edx, dword [ebx + edx*4]
shr eax, 8
xor edx, eax
movzx eax, dl
add esi, eax
mov eax, dword [ebp + 8]
imul esi, esi, 0x8088405
mov dword [ecx], edx
inc esi
mov edx, esi
shr edx, 0x18
xor edx, edi
and edx, 0xff
shr edi, 8
mov dword [ecx + 4], esi
xor edi, dword [ebx + edx*4]
inc eax
mov dword [ecx + 8], edi
mov dl, byte [eax]
mov dword [ebp + 8], eax
test dl, dl
jne 0x40a096
pop esi
pop edi
pop ebp
ret
Function at 0x40ae20
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [esi + 0x4090], 0
je 0x40aed0
cmp dword [esi + 0x6c], 0
jbe 0x40aed0
mov eax, 0xffffff78
push ebx
sub eax, esi
push edi
lea edi, [esi + 0x88]
mov dword [ebp - 4], eax
lea ecx, [ecx]
movzx ecx, byte [edi]
mov eax, dword [esi + 0x4094]
mov ebx, dword [esi + 0x40a0]
xor ecx, eax
mov edx, dword [esi + 0x409c]
shr eax, 8
and ecx, 0xff
mov ecx, dword [ebx + ecx*4]
xor ecx, eax
movzx eax, cl
add eax, dword [esi + 0x4098]
mov dword [esi + 0x4094], ecx
mov ecx, dword [esi + 0x409c]
imul eax, eax, 0x8088405
inc eax
mov dword [esi + 0x4098], eax
shr eax, 0x18
xor eax, ecx
and eax, 0xff
shr ecx, 8
xor ecx, dword [ebx + eax*4]
and edx, 0xfffd
or edx, 2
mov eax, edx
xor eax, 1
imul eax, edx
mov dword [esi + 0x409c], ecx
mov ecx, dword [ebp - 4]
shr eax, 8
xor byte [edi], al
inc edi
add ecx, edi
cmp ecx, dword [esi + 0x6c]
jb 0x40ae50
pop edi
pop ebx
mov edx, dword [esi + 0x6c]
mov ecx, dword [esi + 0x20]
push edx
mov edx, dword [esi + 0x1c]
lea eax, [esi + 0x88]
push eax
mov eax, dword [esi + 8]
push ecx
push edx
call eax
add esp, 0x10
cmp eax, dword [esi + 0x6c]
mov dword [esi + 0x6c], 0
je 0x40aefe
or eax, 0xffffffff
mov esp, ebp
pop ebp
ret
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x40be5f
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4222bc]
jne 0x40be69
repz ret
jmp fcn.0040e3ca

Function at 0x412d77
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4222bc]
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.00410a96
and dword [ebp - 0x14], 0
cmp dword [0x423fc0], 0
mov dword [ebp - 0x18], eax
jne 0x412e2a
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x412ed2
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x412ed2
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x423fc0], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x423fc4], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x423fc8], eax
call edi
push eax
call esi
mov dword [0x423fd0], eax
test eax, eax
je 0x412e2a
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x423fcc], eax
mov eax, dword [0x423fcc]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x412e83
cmp dword [0x423fd0], ecx
je 0x412e83
push eax
call esi
push dword [0x423fd0]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x412e83
test ebx, ebx
je 0x412e83
call edi
test eax, eax
je 0x412e7a
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x412e7a
test byte [ebp - 8], 1
jne 0x412e83
or dword [ebp + 0x10], 0x200000
jmp 0x412eb6
mov eax, dword [0x423fc4]
cmp eax, dword [ebp - 0x18]
je 0x412eb6
push eax
call esi
test eax, eax
je 0x412eb6
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x412eb6
mov eax, dword [0x423fc8]
cmp eax, dword [ebp - 0x18]
je 0x412eb6
push eax
call esi
test eax, eax
je 0x412eb6
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x423fc0]
call esi
test eax, eax
je 0x412ed2
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x412ed4
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040be5f
leave
ret
Function at 0x416f1e
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x424040], 0
push esi
push edi
jne 0x416e94
call fcn.00416e00
test eax, eax
je 0x416ed9
mov eax, dword [0x424040]
cmp eax, 1
jne 0x416eb5
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x416ed9
jmp 0x416f1b
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedPopEntrySList]
push eax
call edi
test eax, eax
jne 0x416f1b
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x416edd
xor eax, eax
jmp 0x416f1b
mov eax, dword [esi]
push dword [0x424040]
call edi
mov edi, eax
test edi, edi
je 0x416eff
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x416f1b
lea edi, [esi + 0xff0]
push esi
push dword [0x424040]
call dword [sym.imp.KERNEL32.dll_InterlockedPushEntrySList]
add esi, 0x10
cmp esi, edi
jb 0x416f05
mov eax, esi
pop edi
pop esi
ret
jmp 0x416e80
Function at 0x40ba00
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x46e76b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.0046321e
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x40ba82
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.00460f9d
mov eax, dword [eax]
push 0x4b11c0
push eax
call fcn.00453e24
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.004634a9
test bl, bl
je 0x40ba82
push 0x4b11c0
lea ecx, [esp + 0xc]
call fcn.00463839
push 0x4b4d3c
lea ecx, [esp + 0xc]
call fcn.00463839
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x40babe
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.004634a9
jmp 0x40bb89
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x40bb42
lea edx, [esp + 0x7c]
push 0x4b4d38
push edx
call fcn.00453e24
add esp, 8
test eax, eax
je 0x40bb42
lea eax, [esp + 0x7c]
push 0x4b4d34
push eax
call fcn.00453e24
add esp, 8
test eax, eax
je 0x40bb42
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40bad2
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.004634a9
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x40c380
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x40c3e2
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc