joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49e5b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50b733
mov eax, dword fs:[0]
push eax
sub esp, 0x84
mov eax, dword [0x54c39c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x80], 0
mov dword [edi], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x7c], 0
lea eax, [ebp - 0x7c]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x80]
push eax
call fcn.00424120
mov eax, dword [ebp - 0x80]
add esp, 8
test eax, eax
je 0x49e7c3
mov esi, dword [sym.imp.OLEAUT32.dll_VariantInit]
push eax
call esi
test eax, eax
je 0x49e7c3
mov eax, dword [ebp - 0x7c]
test eax, eax
je 0x49e7c3
push eax
call esi
test eax, eax
je 0x49e7c3
mov dword [ebp - 0x90], 0
mov dword [ebp - 0x8c], 0
mov dword [ebp - 0x88], 0
push 0x201
push dword [ebp - 0x80]
lea ecx, [ebp - 0x90]
mov byte [ebp - 4], 2
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.00423620
mov esi, dword [ebp - 0x90]
test eax, eax
jne 0x49e7b4
push 0x64
lea eax, [ebp - 0x74]
push 0
push eax
call fcn.004dbe40
add esp, 0xc
mov dword [ebp - 0x78], 0x64
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x84]
push eax
push 0
push dword [ebp - 0x7c]
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x49e7b4
mov eax, dword [ebp - 0x84]
cmp eax, 1
je 0x49e6db
cmp eax, 2
jne 0x49e7b4
mov ecx, dword [ebp - 0x78]
test ecx, ecx
je 0x49e6fc
test cl, 1
jne 0x49e7b4
mov eax, ecx
shr eax, 1
cmp word [ebp + eax*2 - 0x76], 0
je 0x49e702
jmp 0x49e7b4
xor eax, eax
mov word [ebp - 0x74], ax
shr ecx, 1
cmp ecx, 0x2d
jne 0x49e7b4
lea ecx, [ebp - 0x78]
call fcn.0049c970
lea eax, [ebp - 0x74]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x78]
call fcn.0049ca30
lea eax, [ebp - 0x84]
mov dword [ebp - 0x84], 0
push eax
lea eax, [ebp - 0x20]
push 0x522cb8
push eax
call fcn.0049ebc0
push 0x2a
push dword [ebp - 0x78]
call fcn.0049cef0
movzx eax, al
add esp, 0x14
cmp dword [ebp - 0x84], eax
jne 0x49e7ac
lea edx, [ebp - 0x74]
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x49e762
sub edx, ecx
lea eax, [ebp - 0x74]
sar edx, 1
mov ecx, ebx
push edx
push eax
call fcn.0049c7c0
push dword [0x54c3cc]
lea eax, [ebp - 0x74]
push dword [0x54c3c8]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpNIW]
test eax, eax
jne 0x49e79d
mov dword [edi], 1
lea ecx, [ebp - 0x78]
call fcn.0049bce0
mov edi, 1
jmp 0x49e7b6
lea ecx, [ebp - 0x78]
call fcn.0049bce0
xor edi, edi
test esi, esi
je 0x49e7c5
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x49e7c5
xor edi, edi
push dword [ebp - 0x7c]
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
call esi
push dword [ebp - 0x80]
call esi
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049a1fc
mov esp, ebp
pop ebp
ret
Function at 0x49e800
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push esi
mov esi, ecx
test edx, edx
jne 0x49e815
lea eax, [edx + 0xd]
pop esi
pop ebp
ret 0xc
mov eax, edx
push edi
lea edi, [eax + 2]
nop dword [eax + eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x49e820
sub eax, edi
sar eax, 1
lea eax, [eax*2 + 2]
push eax
push edx
push dword [ebp + 0x10]
push 0
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x4a1a60
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
add eax, eax
mov dword [edi], 0
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0x10]
push eax
push esi
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 8]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4a1ad1
mov eax, dword [ebp + 0xc]
cmp eax, 1
je 0x4a1a9f
cmp eax, 2
jne 0x4a1abb
mov ecx, dword [ebp + 0x10]
test esi, esi
je 0x4a1acb
test ecx, ecx
je 0x4a1ac6
test cl, 1
jne 0x4a1abb
mov eax, ecx
shr eax, 1
cmp word [esi + eax*2 - 2], 0
je 0x4a1acb
pop edi
mov eax, 0xd
pop esi
pop ebp
ret 0xc
xor eax, eax
mov word [esi], ax
shr ecx, 1
xor eax, eax
mov dword [edi], ecx
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x4a5902
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret
Function at 0x4f85ed
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
and eax, 0x3f
mov edx, dword [ebp + 0xc]
push ebx
sar ecx, 6
push esi
push edi
imul edi, eax, 0x30
mov eax, dword [ecx*4 + 0x558550]
mov dword [ebp - 0xc], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4f862e
cmp byte [edx], 0xa
jne 0x4f862e
or byte [eax + edi + 0x28], 4
jmp 0x4f8633
and byte [eax + edi + 0x28], 0xfb
lea eax, [edx + ecx]
mov ebx, edx
mov dword [ebp - 8], eax
mov esi, edx
cmp edx, eax
jae 0x4f8724
mov al, byte [ebx]
cmp al, 0x1a
je 0x4f8705
cmp al, 0xd
je 0x4f865c
mov byte [esi], al
inc esi
inc ebx
jmp 0x4f86fa
lea eax, [ebx + 1]
cmp eax, dword [ebp - 8]
jae 0x4f867c
cmp byte [eax], 0xa
jne 0x4f8671
push 2
mov byte [esi], 0xa
pop eax
jmp 0x4f8677
xor eax, eax
mov byte [esi], 0xd
inc eax
add ebx, eax
inc esi
jmp 0x4f86fa
push 0
mov ebx, eax
lea eax, [ebp - 0x14]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4f86f3
cmp dword [ebp - 0x14], 0
je 0x4f86f3
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x558550]
test byte [eax + edi + 0x28], 0x48
je 0x4f86ca
mov dl, byte [ebp - 1]
cmp dl, 0xa
jne 0x4f86ba
mov byte [esi], dl
jmp 0x4f86f6
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x558550]
mov byte [eax + edi + 0x2a], dl
jmp 0x4f86f6
cmp byte [ebp - 1], 0xa
jne 0x4f86dc
mov edx, dword [ebp + 0xc]
cmp esi, edx
jne 0x4f86dc
mov byte [esi], 0xa
jmp 0x4f8679
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004e56d4
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4f86f7
mov byte [esi], 0xd
inc esi
mov edx, dword [ebp + 0xc]
cmp ebx, dword [ebp - 8]
jb 0x4f8645
jmp 0x4f8724
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x558550]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4f871f
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4f8724
mov cl, byte [ebx]
mov byte [esi], cl
inc esi
sub esi, edx
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4f872f
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
and eax, 0x3f
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
sar ecx, 6
imul edi, eax, 0x30
mov dword [ebp - 8], ecx
push 0xa
mov eax, dword [ecx*4 + 0x558550]
pop ebx
mov edx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], edx
mov edx, dword [ebp + 0xc]
test esi, esi
je 0x4f8773
cmp word [edx], bx
jne 0x4f8773
or byte [edi + eax + 0x28], 4
jmp 0x4f8778
and byte [edi + eax + 0x28], 0xfb
lea eax, [edx + esi*2]
mov ebx, edx
mov dword [ebp - 0xc], eax
mov esi, edx
cmp edx, eax
jae 0x4f88cc
mov dword [ebp - 0x10], 0xd
movzx eax, word [ebx]
cmp eax, 0x1a
je 0x4f88ac
cmp ax, word [ebp - 0x10]
je 0x4f87b1
mov word [esi], ax
add esi, 2
add ebx, 2
jmp 0x4f88a1
lea eax, [ebx + 2]
cmp eax, dword [ebp - 0xc]
jae 0x4f87d7
push 0xa
pop ecx
cmp word [eax], cx
jne 0x4f87c7
push ecx
pop eax
push 4
jmp 0x4f87cc
push 0xd
pop eax
push 2
mov word [esi], ax
pop eax
add ebx, eax
jmp 0x4f889b
push 0
mov ebx, eax
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4f8892
cmp dword [ebp - 0x18], 0
je 0x4f8892
mov ecx, dword [ebp - 8]
push 0xa
mov eax, dword [ecx*4 + 0x558550]
test byte [edi + eax + 0x28], 0x48
pop eax
je 0x4f885e
mov dx, word [ebp - 4]
cmp dx, ax
jne 0x4f8822
mov word [esi], ax
jmp 0x4f8856
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ecx*4 + 0x558550]
mov word [ebp - 0x20], dx
push 0xa
mov byte [edi + eax + 0x2a], dl
mov ecx, dword [ecx*4 + 0x558550]
mov al, byte [ebp - 0x1f]
pop edx
mov byte [edi + ecx + 0x2b], al
mov ecx, dword [ebp - 8]
mov eax, dword [ecx*4 + 0x558550]
mov byte [edi + eax + 0x2c], dl
mov edx, dword [ebp + 0xc]
add esi, 2
jmp 0x4f88a1
cmp word [ebp - 4], ax
jne 0x4f8873
mov edx, dword [ebp + 0xc]
cmp esi, edx
jne 0x4f8873
mov word [esi], ax
add esi, 2
jmp 0x4f88a1
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004e56d4
mov edx, dword [ebp + 0xc]
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x4f889e
jmp 0x4f8895
mov edx, dword [ebp + 0xc]
push 0xd
pop eax
mov word [esi], ax
add esi, 2
mov ecx, dword [ebp - 8]
cmp ebx, dword [ebp - 0xc]
jb 0x4f8791
jmp 0x4f88cc
mov ecx, dword [ecx*4 + 0x558550]
mov al, byte [edi + ecx + 0x28]
test al, 0x40
jne 0x4f88c3
or al, 2
mov byte [edi + ecx + 0x28], al
jmp 0x4f88cc
mov cx, word [ebx]
mov word [esi], cx
add esi, 2
sub esi, edx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4fe032
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004fdcd4
Function at 0xef082c
Capabilities:
Encode data using xor

Disassembly:
jmp 0xef0836
pushal
call 0xef083c
pop ebp
sub ebp, 0x10
sub ebp, 0xaf082c
jmp 0xef0852
mov eax, 0xaf082c
add eax, ebp
add eax, 0x4c
mov ecx, 0x5ba
mov edx, 0x4e7a9540
xor byte [eax], dl
inc eax
dec ecx
jne 0xef0869
jmp 0xef087c
retf
Function at 0x10001c60
Capabilities:
Link many functions at runtime

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 0x24], 0
jne 0x10001cf8
push str.avifil32.dll
call fcn.10007645
test al, al
jne 0x10001c7d
pop esi
ret
push str.AVIFileInit
push dword [esi + 4]
call dword [sym.imp.kernel32.dll_GetProcAddress]
push str.AVIFileExit
push dword [esi + 4]
mov dword [esi + 8], eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
push str.AVIFileRelease
push dword [esi + 4]
mov dword [esi + 0xc], eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
push str.AVIFileOpen
push dword [esi + 4]
mov dword [esi + 0x10], eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
push str.AVIStreamInfo
push dword [esi + 4]
mov dword [esi + 0x14], eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
push str.AVIStreamOpenFromFile
push dword [esi + 4]
mov dword [esi + 0x18], eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
push str.AVIStreamRelease
push dword [esi + 4]
mov dword [esi + 0x1c], eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
mov dword [esi + 0x20], eax
mov byte [esi + 0x24], 1
mov al, 1
pop esi
ret

Function at 0x10001d40
Capabilities:
Link many functions at runtime

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 0x24], 0
jne 0x10001dd8
push str.winmm.dll
call fcn.10007645
test al, al
jne 0x10001d5d
pop esi
ret
push str.mmioInstallIOProcA
push dword [esi + 4]
call dword [sym.imp.kernel32.dll_GetProcAddress]
push str.mmioOpenA
push dword [esi + 4]
mov dword [esi + 8], eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
push str.mmioClose
push dword [esi + 4]
mov dword [esi + 0xc], eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
push str.mmioAscend
push dword [esi + 4]
mov dword [esi + 0x10], eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
push str.mmioRead
push dword [esi + 4]
mov dword [esi + 0x14], eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
push str.mmioDescend
push dword [esi + 4]
mov dword [esi + 0x18], eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
push str.mciSendCommandA
push dword [esi + 4]
mov dword [esi + 0x1c], eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
mov dword [esi + 0x20], eax
mov byte [esi + 0x24], 1
mov al, 1
pop esi
ret
Function at 0x10005770
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0x14]
sub esp, 0x10
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 0x20]
mov dword [ecx], eax
mov eax, dword [ebp + 0x18]
push edi
mov dword [esi], eax
mov ecx, dword [ecx]
cmp ecx, dword [ebp + 0x10]
je 0x100058cf
mov eax, ecx
mov dword [ebp - 0xc], eax
mov edx, dword [ebp + 0x1c]
xor ebx, ebx
inc ebx
mov edi, 0x3ff
mov ecx, eax
cmp dword [esi], edx
je 0x100058cf
mov edx, dword [ebp + 8]
movzx ecx, word [eax]
mov eax, ecx
mov byte [ebp - 1], 0
movzx edx, word [edx]
cmp bx, dx
jae 0x100057ef
lea eax, [ecx + 0x2400]
cmp ax, di
ja 0x100058de
mov eax, edx
lea ebx, [ecx - 0xdc00]
shl eax, 0xa
or ebx, eax
mov cl, byte [ebp - 1]
cmp ebx, 0x80
jae 0x1000580c
mov dl, bl
xor edi, edi
jmp 0x1000583c
mov ebx, eax
lea eax, [ecx + 0x2800]
cmp ax, di
ja 0x100057de
add ebx, 0xffff2840
mov cl, 1
shl ebx, 0xa
mov byte [ebp - 1], cl
jmp 0x100057e1
mov edx, ebx
cmp ebx, 0x800
jae 0x10005821
shr edx, 6
xor edi, edi
or dl, 0xc0
inc edi
jmp 0x1000583c
cmp ebx, 0x10000
jae 0x10005833
shr edx, 0xc
or dl, 0xe0
push 2
jmp 0x1000583b
shr edx, 0x12
or dl, 0xf0
push 3
pop edi
movzx eax, cl
mov ecx, dword [ebp - 0xc]
xor eax, 1
add eax, eax
cmp edi, 3
cmovb eax, edi
mov dword [ebp - 0x10], eax
inc eax
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x1c]
sub eax, dword [esi]
cmp eax, dword [ebp - 8]
jl 0x100058cf
mov eax, ecx
mov ecx, dword [ebp + 0x14]
add eax, 2
cmp byte [ebp - 1], 0
mov dword [ecx], eax
jne 0x10005873
cmp edi, 3
jae 0x1000587e
mov eax, dword [esi]
mov byte [eax], dl
inc dword [esi]
mov eax, dword [ebp - 0x10]
jmp 0x10005881
mov eax, dword [ebp - 8]
test eax, eax
je 0x100058a6
imul ecx, edi, 6
sub ecx, 6
mov edx, ebx
dec eax
shr edx, cl
mov dword [ebp - 8], eax
and dl, 0x3f
mov eax, dword [esi]
or dl, 0x80
mov byte [eax], dl
inc dword [esi]
mov eax, dword [ebp - 8]
test eax, eax
jg 0x10005888
xor ecx, ecx
shr ebx, 0xa
inc ecx
movzx eax, bx
cmp byte [ebp - 1], 0
cmovne ecx, eax
mov eax, dword [ebp + 8]
mov word [eax], cx
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax]
mov eax, ecx
mov dword [ebp - 0xc], eax
cmp ecx, dword [ebp + 0x10]
jne 0x10005799
xor eax, eax
cmp dword [ebp + 0xc], ecx
sete al
pop edi
pop esi
pop ebx
leave
ret 0x1c
push 2
pop eax
jmp 0x100058d7

Function at 0x1000b1e0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
mov eax, dword [esi + 0xc]
sub eax, dword [esi + 4]
cmp eax, 0x1a
jl 0x1000b238
mov eax, dword [esi + 8]
cmp eax, dword [esi]
jl 0x1000b238
push 0
push dword [edi + 0x18]
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [esi + 0xc]
sub eax, dword [esi + 4]
push 0x10
push eax
mov eax, dword [esi + 8]
sub eax, dword [esi]
push eax
push dword [esi + 4]
push dword [esi]
push 0
push dword [edi + 0x18]
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, edi
call fcn.10007645
push 1
push dword [edi + 0x18]
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
pop esi
pop ebp
ret 4
Function at 0x40a2c0
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0xc
push ebx
push esi
push 0xb5
push ecx
mov esi, edx
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ebx, eax
mov eax, dword [0x5c39d4]
test eax, eax
mov dword [esp + 0x10], ebx
jne 0x40a30d
cmp dword [0x5f02cc], esi
je 0x40a307
mov esi, dword [0x5f002c]
test esi, esi
je 0x40a307
mov edx, esi
xor ecx, ecx
call fcn.004f72f0
mov esi, dword [esi + 0x2500]
test esi, esi
jne 0x40a2f4
pop esi
pop ebx
add esp, 0xc
ret
push ebp
mov ebp, dword [0x5f002c]
test ebp, ebp
je 0x40a448
push edi
lea ecx, [ecx]
mov ecx, ebp
call fcn.004f5350
mov ecx, ebx
call fcn.004d58b0
mov edi, eax
test edi, edi
mov dword [esp + 0x14], edi
jle 0x40a430
xor esi, esi
test edi, edi
mov dword [esp + 0x10], esi
jle 0x40a430
lea ebx, [ebx]
push 2
push 0x5f14f8
mov edx, esi
mov ecx, ebx
call fcn.004d58d0
mov al, byte [0x5f14f8]
test al, al
je 0x40a423
push str.DEFSNDS:
push 0x5f14f8
call fcn.00591d90
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x40a394
mov byte [ebx], 0
mov al, byte [ebx + 8]
add ebx, 8
cmp al, 0x31
je 0x40a394
xor ebx, ebx
push str.WAVE2:
push 0x5f14f8
call fcn.00591d90
mov edi, eax
add esp, 8
test edi, edi
je 0x40a3bb
mov byte [edi], 0
mov al, byte [edi + 6]
add edi, 6
test al, al
jne 0x40a3bb
xor edi, edi
push str.WAVE:
push 0x5f14f8
call fcn.00591d90
mov esi, eax
add esp, 8
test esi, esi
je 0x40a3e2
mov byte [esi], 0
mov al, byte [esi + 5]
add esi, 5
test al, al
jne 0x40a3e2
xor esi, esi
push str.NOTE:
push 0x5f14f8
call fcn.00591d90
add esp, 8
test eax, eax
je 0x40a407
mov byte [eax], 0
mov cl, byte [eax + 5]
add eax, 5
test cl, cl
jne 0x40a407
xor eax, eax
push ebp
push ebx
push edi
push esi
mov edx, eax
mov ecx, 0x5f14f8
call fcn.004f6620
mov esi, dword [esp + 0x10]
mov edi, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
inc esi
cmp esi, edi
mov dword [esp + 0x10], esi
jl 0x40a350
mov edx, ebp
xor ecx, ecx
call fcn.004f72f0
mov ebp, dword [ebp + 0x2500]
test ebp, ebp
jne 0x40a320
pop edi
mov ecx, dword [0x5f002c]
pop ebp
pop esi
pop ebx
add esp, 0xc
jmp fcn.004f5040

Function at 0x40ada0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push edi
mov edi, ecx
push 0xb5
push edi
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, eax
mov ecx, esi
call fcn.004d5890
cmp eax, 0xffffffff
jne 0x40adc7
pop edi
xor ecx, ecx
pop esi
jmp fcn.0041f0a0
push 1
mov edx, eax
mov ecx, esi
call fcn.004d5940
push 0
mov edx, 2
mov ecx, esi
call fcn.004d5350
mov ecx, esi
call fcn.004d5d60
mov ecx, edi
call fcn.0040a240
pop edi
mov dword [0x5c39d4], 1
pop esi
ret
Function at 0x411890
Capabilities:
Get common file path

Disassembly:
push ecx
push ebx
push esi
mov esi, ecx
lea ecx, [esp + 0x18]
mov ebx, edx
mov dword [esp + 8], esi
call fcn.004f11b0
test eax, eax
je 0x4118b8
push 0x180
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
jne 0x4118c0
pop esi
xor eax, eax
pop ebx
pop ecx
ret 0xc
push ebp
push edi
mov edi, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4118c5
mov eax, dword [str.msagentchars_]
mov dword [edi], eax
mov ecx, dword [0x5a52e8]
mov dword [edi + 4], ecx
mov edx, dword [0x5a52ec]
mov dword [edi + 8], edx
mov eax, dword [0x5a52f0]
mov edx, 2
mov ecx, esi
mov dword [edi + 0xc], eax
call fcn.00421f20
test eax, eax
jne 0x411908
pop edi
pop ebp
pop esi
xor eax, eax
pop ebx
pop ecx
ret 0xc
mov ecx, dword [esp + 0x20]
push ecx
xor ebp, ebp
push ebp
push ebp
push ebp
mov byte [ebx], 0
call fcn.0055cf60
push eax
push ebp
push ebp
push ebp
push ebp
push ebp
push ebp
push ebp
push ebp
push ebp
push ebp
push ebp
push ebp
push 0x3e7
push ebp
push ebp
push ebp
push 1
push ebx
mov edx, str..acs
mov ecx, esi
call fcn.00484ff0
cmp byte [ebx], 0
je 0x411a2b
test eax, eax
jle 0x411a2b
push 0x5c5d18
push 0x5c5c18
push 0x5c5b18
push 0x5c5b14
push ebx
inc ebp
call fcn.00591920
mov eax, 0x5c5c18
mov edx, ebx
add esp, 0x14
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x411976
mov eax, 0x5c5d18
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x411987
mov edi, ebx
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x411993
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0x1c]
and ecx, 3
test eax, eax
rep movsb byte es:[edi], byte [esi]
jle 0x4119db
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x4119d2
cmp eax, 0x270f
jne 0x4119d2
push ecx
push ebx
call fcn.005a299c
add esp, 8
test eax, eax
je 0x411a3a
jmp 0x4119db
dec eax
test eax, eax
mov dword [esp + 0x1c], eax
jle 0x411a2f
mov edx, dword [esp + 0x20]
push edx
push 0
push 0
push 0
call fcn.0055cf60
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0
mov ecx, dword [esp + 0x40]
push 0
push 0
push 0
push 0
push 0
push 0x3e7
push 0
push 0
push 0
lea eax, [ebp + 1]
push eax
push ebx
mov edx, str..acs
call fcn.00484ff0
cmp byte [ebx], 0
jne 0x411947
mov eax, dword [esp + 0x1c]
cmp eax, 0x270f
je 0x4118fe
pop edi
mov eax, ebp
pop ebp
pop esi
pop ebx
pop ecx
ret 0xc
Function at 0x41bc70
Capabilities:
Encrypt data using blowfish
Encrypt data using rc4 prga

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
mov ebx, edx
cmp ebx, 0x48
mov edx, ecx
push edi
mov ecx, 0x412
mov esi, 0x5be258
mov edi, edx
rep movsd dword es:[edi], dword [esi]
jle 0x41bc93
mov ebx, 0x48
mov ebp, dword [esp + 0x1c]
mov eax, ebp
lea esi, [ebx + ebp]
xor edi, edi
mov edi, edi
movzx ecx, byte [eax]
inc eax
cmp eax, esi
jb 0x41bcaa
mov eax, ebp
movzx ebx, byte [eax]
shl ecx, 8
or ecx, ebx
inc eax
cmp eax, esi
jb 0x41bcb9
mov eax, ebp
movzx ebx, byte [eax]
shl ecx, 8
or ecx, ebx
inc eax
cmp eax, esi
jb 0x41bcc8
mov eax, ebp
movzx ebx, byte [eax]
shl ecx, 8
or ecx, ebx
inc eax
cmp eax, esi
jb 0x41bcd7
mov eax, ebp
xor dword [edx + edi*4], ecx
inc edi
cmp edi, 0x12
jl 0x41bca0
xor edi, edi
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], edi
xor esi, esi
lea esp, [esp]
push 1
lea ecx, [esp + 0x14]
call fcn.0041b540
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov dword [edx + esi*4], eax
mov dword [edx + esi*4 + 4], ecx
add esi, 2
cmp esi, 0x12
jl 0x41bcf0
xor esi, esi
push 1
lea ecx, [esp + 0x14]
call fcn.0041b540
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov dword [edx + esi*4 + 0x48], eax
mov dword [edx + esi*4 + 0x4c], ecx
add esi, 2
cmp esi, 0x400
jl 0x41bd14
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 4
Function at 0x41dcc0
Capabilities:
Clear file content

Disassembly:
sub esp, 0xc
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 4]
test eax, eax
mov ebx, edx
mov dword [esp + 0xc], ebx
mov edx, 1
je 0x41dce3
cmp byte [eax], 0x2d
jne 0x41dce3
mov edx, 2
cmp dword [esi + edx*4], 0
jne 0x41dcfc
mov edx, dword [esi]
push 0
push 0
xor ecx, ecx
call fcn.004803b0
pop esi
pop ebx
add esp, 0xc
ret
push ebp
push edi
push 0
push 0x104
push ebx
mov ecx, esi
call fcn.00504590
mov edi, eax
test edi, edi
jge 0x41dd28
mov edx, dword [esi]
push 3
push 0
xor ecx, ecx
call fcn.004803b0
pop edi
pop ebp
pop esi
pop ebx
add esp, 0xc
ret
mov edx, ebx
mov ecx, ebx
call fcn.0041f5c0
test eax, eax
je 0x41dd13
mov eax, dword [esi + edi*4 + 4]
inc edi
test eax, eax
jne 0x41dd51
mov edx, dword [esi]
push eax
push eax
xor ecx, ecx
call fcn.004803b0
pop edi
pop ebp
pop esi
pop ebx
add esp, 0xc
ret
push eax
call fcn.0059164b
mov ebp, eax
mov eax, dword [esi + edi*4]
push eax
mov dword [esp + 0x20], ebp
call fcn.00591650
add esp, 8
test ebp, ebp
mov edi, eax
mov ebx, edx
jge 0x41dd7b
test ebx, ebx
jg 0x41dd7b
jl 0x41dd13
test edi, edi
jb 0x41dd13
mov ecx, dword [esp + 0x14]
push 0x180
push 0x40
push 0x8109
push ecx
call fcn.005a0f11
mov ebp, eax
add esp, 0x10
cmp ebp, 0xffffffff
jne 0x41ddb3
mov edx, dword [esp + 0x14]
push 4
push edx
mov edx, dword [esi]
xor ecx, ecx
call fcn.004803b0
pop edi
pop ebp
pop esi
pop ebx
add esp, 0xc
ret
push ebp
mov dword [esp + 0x14], 1
call fcn.00592d42
mov esi, eax
add esp, 4
cmp esi, 0xffffffff
je 0x41ddf2
test ebx, ebx
jl 0x41ddf2
jg 0x41ddd5
test edi, edi
jb 0x41ddf2
push ebx
push edi
xor edx, edx
mov ecx, esi
call fcn.00490410
and eax, edx
cmp eax, 0xffffffff
je 0x41ddf2
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x41de09
mov eax, dword [esp + 0x18]
test eax, eax
jl 0x41de11
push eax
push ebp
call fcn.005a2bbf
add esp, 8
cmp eax, 0xffffffff
je 0x41de11
mov dword [esp + 0x10], 0
push ebp
call fcn.005992bf
mov eax, dword [esp + 0x14]
add esp, 4
test eax, eax
je 0x41de4c
mov eax, dword [esp + 0x14]
push eax
xor edx, edx
mov ecx, 0x1260
call fcn.0041f1a0
push eax
push 0x5cbac0
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
pop edi
pop ebp
pop esi
xor eax, eax
pop ebx
add esp, 0xc
ret
pop edi
pop ebp
pop esi
mov eax, 1
pop ebx
add esp, 0xc
ret