joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404392
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
xor edi, edi
cmp ebx, edi
je 0x4043ac
mov eax, dword [ebp + 0x14]
mov dword [ebp - 8], eax
jmp 0x4043b3
mov dword [ebp - 8], 0x8000
cmp ebx, edi
mov dword [ebp - 4], edi
jne 0x4043bf
mov ebx, 0x4100a4
mov eax, dword [ebp + 8]
cmp eax, edi
jl 0x4043dd
mov ecx, dword [0x4180a4]
push edi
add ecx, eax
push edi
push ecx
push dword [0x421fa8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [ebp - 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
push eax
lea eax, [ebp + 8]
push 4
push eax
push dword [0x421fa8]
call esi
test eax, eax
je 0x404565
test byte [ebp + 0xb], 0x80
je 0x4044eb
push 0x40c088
call fcn.00401d00
and dword [ebp + 8], 0x7fffffff
pop ecx
jle 0x404570
mov edi, 0x40c0a4
jmp 0x40442d
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, 0x4000
cmp dword [ebp + 8], eax
jge 0x40443a
mov eax, dword [ebp + 8]
lea ecx, [ebp + 0x14]
push 0
push ecx
push eax
push edi
push dword [0x421fa8]
call esi
test eax, eax
je 0x404565
mov eax, dword [ebp + 0x14]
mov dword [0x40c088], edi
sub dword [ebp + 8], eax
mov dword [0x40c08c], eax
mov eax, dword [ebp - 8]
push 0x40c088
mov dword [0x40c094], ebx
mov dword [0x40c098], eax
call fcn.00401d5b
test eax, eax
pop ecx
mov dword [ebp - 0x10], eax
jl 0x4044e0
mov eax, dword [0x40c094]
mov esi, eax
sub esi, ebx
je 0x4044d1
cmp dword [ebp + 0x10], 0
jne 0x4044b3
lea eax, [ebp + 0x14]
push 0
push eax
push esi
push ebx
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4044e7
cmp dword [ebp + 0x14], esi
jne 0x4044e7
add dword [ebp - 4], esi
jmp 0x4044c5
sub dword [ebp - 8], esi
add dword [ebp - 4], esi
cmp dword [ebp - 8], 1
mov ebx, eax
jl 0x404570
cmp dword [ebp - 0x10], 1
je 0x404570
jmp 0x404463
cmp dword [ebp + 8], 0
jg 0x404427
jmp 0x404570
push 0xfffffffffffffffc
jmp 0x404567
push 0xfffffffffffffffe
jmp 0x404567
cmp dword [ebp + 0x10], edi
jne 0x404545
cmp dword [ebp + 8], edi
jle 0x404570
mov edi, 0x40c0a4
mov eax, dword [ebp - 8]
cmp dword [ebp + 8], eax
jge 0x404505
mov eax, dword [ebp + 8]
xor ebx, ebx
lea ecx, [ebp - 0xc]
push ebx
push ecx
push eax
push edi
push dword [0x421fa8]
call esi
test eax, eax
je 0x404565
lea eax, [ebp + 0x10]
push ebx
push eax
push dword [ebp - 0xc]
push edi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4044e7
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 0x10]
jne 0x4044e7
add dword [ebp - 4], eax
sub dword [ebp + 8], eax
cmp dword [ebp + 8], ebx
jg 0x4044fa
jmp 0x404570
mov eax, dword [ebp + 0x14]
cmp dword [ebp + 8], eax
jge 0x404550
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0xc]
push edi
push ecx
push eax
push dword [ebp + 0x10]
push dword [0x421fa8]
call esi
test eax, eax
jne 0x40456a
push 0xfffffffffffffffd
pop eax
jmp 0x404573
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x404b67
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [0x421774]
push ebx
xor ebx, ebx
push ebp
mov cl, byte [eax + 0x63]
push esi
and cl, 4
push edi
mov byte [0x421768], cl
mov al, byte [eax + 0x63]
and al, 1
cmp dword [0x42177c], ebx
mov byte [0x421788], al
jne 0x404c8d
mov ebp, 0x420360
mov dword [0x409440], 3
push ebp
mov dword [0x409444], ebx
call fcn.004066c5
test eax, eax
pop ecx
jne 0x404c6f
mov eax, dword [0x421774]
cmp dword [eax + 0xa4], ebx
jl 0x404c6f
mov esi, 0x420f60
push esi
push dword [eax + 0xa8]
call fcn.00404366
pop ecx
push eax
mov eax, dword [0x421774]
push dword [eax + 0xa4]
call fcn.00404366
pop ecx
push eax
mov eax, dword [0x421774]
push dword [eax + 0xa0]
call fcn.00406aa6
mov al, byte [0x420f60]
add esp, 0x10
cmp al, bl
je 0x404c6f
cmp al, 0x22
jne 0x404c2b
mov edi, dword [sym.imp.USER32.dll_CharNextA]
push esi
call edi
mov esi, eax
mov cl, byte [eax]
cmp cl, bl
je 0x404c29
cmp cl, 0x22
je 0x404c29
push eax
call edi
jmp 0x404c19
mov byte [eax], bl
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [eax + esi - 4]
cmp eax, esi
jbe 0x404c67
push str..exe
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x404c67
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x404c5a
test al, 0x10
jne 0x404c67
push esi
call fcn.0040665e
cmp eax, esi
pop ecx
jb 0x404c67
mov byte [eax], bl
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push ebp
call fcn.004066c5
test eax, eax
pop ecx
jne 0x404c8d
mov eax, dword [0x421774]
push dword [eax + 0xcc]
push ebp
call fcn.00406b08
pop ecx
pop ecx
mov eax, dword [0x421774]
mov edi, 0x4217a0
push dword [eax + 0x18]
push edi
call fcn.00406b08
mov eax, dword [0x421774]
pop ecx
pop ecx
cmp byte [eax + 0x62], bl
jne 0x404d1c
call dword [sym.imp.USER32.dll_GetDesktopWindow]
mov esi, eax
mov eax, dword [0x421774]
mov ecx, dword [eax + 0x38]
cmp ecx, 0xffffffff
je 0x404cde
push dword [eax + 0x40]
push dword [eax + 0x3c]
push ecx
push edi
push dword [0x41af54]
call fcn.004023af
mov esi, eax
mov eax, dword [0x421774]
add esp, 0x14
push ebx
mov dword [0x421fa4], esi
push dword [eax + 0x4c]
push dword [0x421770]
call fcn.004026b6
add esp, 0xc
test eax, eax
je 0x404cff
push 1
pop eax
jmp 0x404d76
push ebx
push 0x404d7b
push esi
push 0x69
push dword [0x41af54]
mov dword [0x421fa4], ebx
call dword [sym.imp.USER32.dll_DialogBoxParamA]
jmp 0x404d76
push ebx
push dword [eax + 0x4c]
push dword [0x421770]
call fcn.004026b6
add esp, 0xc
test eax, eax
jne 0x404cfa
push ebx
call fcn.00406177
test eax, eax
je 0x404d5d
cmp dword [0x421764], ebx
jne 0x404cfa
mov eax, dword [0x421774]
push ebx
push dword [eax + 0x54]
push dword [0x421770]
call fcn.004026b6
add esp, 0xc
jmp 0x404cfa
mov eax, dword [0x421774]
push ebx
push dword [eax + 0x50]
push dword [0x421770]
call fcn.004026b6
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x405331
Capabilities:
Hide graphical window

Disassembly:
cmp byte [0x421768], 0
push edi
je 0x40537b
mov edi, dword [esp + 8]
push esi
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0
push 0x407
push edi
call esi
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0x3ee
push edi
call esi
push eax
push edi
call fcn.0040537d
mov eax, dword [0x421784]
pop ecx
pop ecx
pop esi
test eax, eax
je 0x40537b
push eax
push edi
call fcn.0040537d
pop ecx
pop ecx
pop edi
ret

Function at 0x4065b6
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push esi
push edi
xor esi, esi
xor eax, eax
lea edi, [ebp - 0xc]
mov dword [ebp - 0x10], esi
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0x10
xor eax, eax
pop ecx
lea edi, [ebp - 0x50]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0x54], 0x44
push eax
lea eax, [ebp - 0x54]
push eax
push dword [ebp + 0xc]
push esi
push esi
push esi
push esi
push esi
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x40660b
cmp dword [ebp - 0xc], esi
je 0x406608
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
pop edi
pop esi
leave
ret
Function at 0x4067a7
Capabilities:
Get common file path
Get file size

Disassembly:
sub esp, 0xc
and dword [esp], 0
push ebx
push ebp
push esi
push edi
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, dword [esp + 0x24]
mov esi, eax
test esi, esi
je 0x4067f7
push str.MoveFileExA
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4067e5
push 5
push edi
push dword [esp + 0x28]
call eax
mov dword [esp + 0x10], eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [esp + 0x10], 0
jne 0x40699d
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov esi, 0x400
test edi, edi
mov ebp, 0x41ab54
je 0x406812
push esi
push ebp
push edi
call ebx
jmp 0x40681c
mov eax, dword [0x407364]
mov dword [0x41ab54], eax
push esi
mov esi, 0x41a754
push esi
push dword [esp + 0x28]
call ebx
push esi
push ebp
push str._s_s_r_n
push 0x41a354
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov edi, eax
mov dword [esp + 0x24], edi
push 0x3f0
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push str.wininit.ini
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
xor ebx, ebx
push ebx
push 0x8000080
push 4
push ebx
push ebx
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 0x14], esi
je 0x40699d
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebp, eax
push ebx
lea eax, [edi + ebp + 0xa]
push eax
push ebx
push 4
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
cmp eax, ebx
mov dword [esp + 0x18], eax
je 0x406985
push ebx
push ebx
push ebx
push 2
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebx, eax
test ebx, ebx
je 0x406979
push 0xffffffffffffffff
push str._Rename__r_n
push ebx
call fcn.004069a9
add esp, 0xc
test eax, eax
jne 0x4068ea
lea eax, [ebx + ebp]
push str._Rename__r_n
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add ebp, 0xa
mov eax, ebp
jmp 0x406951
push 0xffffffffffffffff
push 0x4094dc
push eax
call fcn.004069a9
mov esi, eax
mov edi, ebx
inc esi
sub edi, esi
add edi, ebp
push edi
push 0x41a354
push esi
call fcn.004069a9
add esp, 0x18
test eax, eax
jne 0x406966
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push edi
push esi
push eax
mov dword [esp + 0x2c], eax
call fcn.00406765
mov eax, dword [esp + 0x30]
push edi
push dword [esp + 0x30]
add eax, esi
push eax
call fcn.00406765
add esp, 0x18
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov edi, dword [esp + 0x24]
sub esi, ebx
mov eax, esi
mov esi, dword [esp + 0x14]
push edi
add eax, ebx
push 0x41a354
push eax
call fcn.00406765
add esp, 0xc
add ebp, edi
jmp 0x40696a
mov esi, dword [esp + 0x14]
push ebx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [esp + 0x10], 1
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebx, ebx
push ebx
push ebx
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x406a01
Capabilities:
Create directory

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [sym.imp.USER32.dll_CharNextA]
cmp byte [esi], 0x20
jne 0x406a1e
push esi
call edi
mov esi, eax
cmp byte [esi], 0x20
je 0x406a14
cmp byte [esi], 0
je 0x406aa1
push esi
call edi
cmp byte [eax], 0x3a
mov bl, 0x5c
jne 0x406a37
cmp byte [eax + 1], bl
jne 0x406a37
lea esi, [eax + 2]
jmp 0x406a61
cmp byte [esi], bl
jne 0x406aa1
cmp byte [esi + 1], bl
jne 0x406aa1
push 2
pop ebp
mov al, byte [esi]
cmp al, bl
je 0x406a54
test al, al
je 0x406a54
push esi
call edi
mov esi, eax
jmp 0x406a43
cmp byte [esi], 0
je 0x406a5e
push esi
call edi
mov esi, eax
dec ebp
jne 0x406a43
mov al, byte [esi]
test al, al
je 0x406aa1
mov ebp, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
cmp al, bl
je 0x406a7e
test al, al
je 0x406a7e
push esi
call edi
mov esi, eax
mov al, byte [esi]
jmp 0x406a6d
cmp byte [esi], 0
jne 0x406a8d
push 0
push dword [esp + 0x18]
call ebp
jmp 0x406a9b
and byte [esi], 0
push 0
push dword [esp + 0x18]
call ebp
mov byte [esi], bl
inc esi
mov al, byte [esi]
test al, al
jne 0x406a6d
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x406aa6
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
lea eax, [ebp + 0x14]
push esi
mov esi, dword [ebp + 0x14]
xor ebx, ebx
push eax
push 0x20019
push ebx
push dword [ebp + 0xc]
mov byte [esi], bl
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x406b04
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0x400
push eax
lea eax, [ebp + 8]
push esi
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x406af3
cmp dword [ebp + 8], 1
je 0x406af5
mov byte [esi], bl
push dword [ebp + 0x14]
mov byte [esi + 0x3ff], bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
pop ebp
ret
Function at 0x406c15
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0x10]
push esi
mov esi, dword [esp + 0x10]
push edi
mov al, byte [ebp]
mov dword [esp + 0x14], esi
test al, al
je 0x406d76
mov edi, 0x400
mov ecx, esi
sub ecx, dword [esp + 0x14]
cmp ecx, edi
jge 0x406d76
movzx ebx, al
inc ebp
cmp ebx, 0xdc
jge 0x406c57
mov byte [esi], bl
inc esi
jmp 0x406d6b
cmp ebx, 0xff
jne 0x406c6b
mov al, byte [ebp]
mov byte [esi], al
inc esi
inc ebp
jmp 0x406d6b
lea eax, [ebx - 0xdc]
cmp eax, 0x22
ja case.default.0x406c81
movzx eax, byte [eax + 0x406da2]
jmp dword [eax*4 + 0x406d7e]
push dword [0x421fa4]
push 0x4097ac
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
jmp case.default.0x406c81
lea eax, [ebx - 0xdd]
shl eax, 0xa
add eax, 0x41af60
push eax
jmp 0x406d37
push esi
push str.ProgramFilesDir
push str.SOFTWAREMicrosoftWindowsCurrentVersion
push 0x80000002
call fcn.00406aa6
add esp, 0x10
cmp byte [esi], 0
jne 0x406d43
push str.C:Program_Files
jmp 0x406d37
push esi
push dword [ebx*4 + 0x4090cc]
call fcn.00406dc5
pop ecx
pop ecx
jmp case.default.0x406c81
push esi
push str.AppData
call fcn.00406dc5
pop ecx
pop ecx
push str.MicrosoftInternet_ExplorerQuick_Launch
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je case.0x406c81.251
test al, 0x10
jne case.default.0x406c81
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
jmp case.default.0x406c81
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
jmp case.default.0x406c81
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
jmp case.default.0x406c81
push str.PPDONCHANNGKGAPNFNOEBOOAGJOILAHGGODBJBEAJEGAANHGCNPOLMCLBMMAIKNMGACKMMDAJMAMEDOFJMLKDNHIKMPPFNJEAHGPLJLLJKONFFBNNCOFPAPCBJEAHMGBismembertrueJHBLNMBBDGNMCNOPADEEAAGOBAFDFELJCLHGHPICPPOOFGJFPL2125551212_peoplepc.comnotalternatenumber
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
cmp byte [esi], 0
je 0x406d52
push esi
call dword [sym.imp.USER32.dll_CharNextA]
cmp byte [eax], 0
je 0x406d52
inc esi
jmp case.default.0x406c81
cmp ebx, 0xf1
jle 0x406d62
cmp byte [esi], 0x5c
jne 0x406d62
and byte [esi], 0
push esi
call dword [sym.imp.USER32.dll_CharNextA]
mov esi, eax
mov al, byte [ebp]
test al, al
jne 0x406c35
and byte [esi], 0
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x406dc5
Capabilities:
Get common file path
Persist via run registry key

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push esi
push dword [esp + 0xc]
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
push 0x80000001
call fcn.00406aa6
add esp, 0x10
cmp byte [esi], 0
jne 0x406df2
push esi
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
pop esi
ret
Function at 0x406df4
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80c
push ebx
push esi
push 1
xor esi, esi
pop ebx
push esi
mov dword [ebp - 0xc], ebx
call dword [sym.imp.ole32.dll_OleInitialize]
cmp eax, ebx
je 0x406e1d
cmp eax, esi
je 0x406e1d
mov eax, ebx
jmp 0x406f07
lea eax, [ebp - 4]
push eax
push 0x407368
push ebx
push esi
push 0x407378
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x406efe
mov eax, dword [ebp - 4]
lea edx, [ebp - 8]
push edx
push 0x407388
mov ecx, dword [eax]
push eax
call dword [ecx]
test eax, eax
jl 0x406ef5
mov eax, dword [ebp - 4]
push edi
push dword [ebp + 0x18]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x50]
push dword [ebp + 0x20]
mov edi, eax
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
cmp dword [ebp + 0x24], esi
je 0x406e80
mov eax, dword [ebp - 4]
push dword [ebp + 0x24]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x3c]
cmp dword [ebp + 0x28], esi
je 0x406e91
mov eax, dword [ebp - 4]
push dword [ebp + 0x28]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x34]
cmp dword [ebp + 0x10], esi
je 0x406ea5
push dword [ebp + 0x14]
mov eax, dword [ebp - 4]
push dword [ebp + 0x10]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x44]
cmp dword [ebp + 0x1c], esi
je 0x406eb6
mov eax, dword [ebp - 4]
push dword [ebp + 0x1c]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x2c]
cmp edi, esi
pop edi
jl 0x406eec
lea eax, [ebp - 0x80c]
push 0x400
push eax
push 0xffffffffffffffff
push dword [ebp + 0xc]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [ebp - 8]
lea edx, [ebp - 0x80c]
push ebx
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
test eax, eax
jl 0x406eec
mov dword [ebp - 0xc], esi
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_OleUninitialize]
mov eax, dword [ebp - 0xc]
pop esi
pop ebx
leave
ret
Function at 0x42d150
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x5a03c0]
xor edx, edx
cmp eax, edx
jne 0x42d176
xor eax, eax
mov byte [eax + 0x5a02c0], al
inc eax
cmp eax, 0x100
jl 0x42d15e
mov dword [0x5a03c0], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x5a02c0
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x42d207
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x42d1da
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x42d1a8
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x42d280
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x42d2d3
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x42d2ba
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x431660
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x68
mov eax, dword [esp + 0x78]
push ebx
push esi
cmp eax, 1
push edi
mov dword [esp + 0x14], ecx
jl 0x431881
cmp eax, 8
jg 0x431881
cmp dword [esp + 0x8c], 2
jl 0x431881
mov eax, dword [esp + 0x7c]
mov esi, dword [eax]
mov edi, dword [eax + 4]
mov ecx, dword [eax + 8]
mov dword [esp + 0x6c], ecx
sub ecx, esi
mov ebx, dword [eax + 0xc]
mov dword [esp + 0x7c], ecx
test ecx, ecx
mov dword [esp + 0x70], ebx
jle 0x431881
sub ebx, edi
test ebx, ebx
mov dword [esp + 0x20], ebx
jle 0x431881
mov eax, dword [esp + 0x80]
test eax, eax
je 0x4316e7
mov edx, dword [eax]
mov dword [esp + 0x44], edx
mov edx, dword [eax + 4]
mov dword [esp + 0x48], edx
mov edx, dword [eax + 8]
mov dword [esp + 0x4c], edx
mov eax, dword [eax + 0xc]
mov dword [esp + 0x50], eax
xor edx, edx
push ebp
test ebx, ebx
mov dword [esp + 0x1c], 1
mov dword [esp + 0x14], edx
jle 0x43186a
mov ebp, dword [0x49b594]
mov eax, ebx
mov dword [esp + 0x10], 0x32
sub eax, edx
cmp eax, 0x32
jg 0x431719
mov dword [esp + 0x10], eax
xor eax, eax
test ecx, ecx
jle 0x431851
mov ebx, dword [esp + 0x10]
add ebx, edx
mov dword [esp + 0x20], ebx
sub ecx, eax
cmp ecx, 0x32
jle 0x431739
mov ecx, 0x32
lea ebx, [ecx + eax]
mov ecx, dword [esp + 0x20]
push ecx
push ebx
push edx
lea edx, [esp + 0x34]
push eax
push edx
call dword [0x49b584]
push edi
lea eax, [esp + 0x2c]
push esi
push eax
call ebp
mov eax, dword [esp + 0x84]
test eax, eax
je 0x431778
lea ecx, [esp + 0x48]
lea edx, [esp + 0x28]
push ecx
lea eax, [esp + 0x2c]
push edx
push eax
call dword [0x49b588]
lea ecx, [esp + 0x28]
push ecx
call dword [0x49b5c8]
test eax, eax
jne 0x431838
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x38], edx
mov edx, dword [esp + 0x34]
mov dword [esp + 0x40], ecx
mov eax, edi
mov ecx, esi
mov dword [esp + 0x44], edx
neg eax
neg ecx
push eax
lea edx, [esp + 0x3c]
push ecx
push edx
call ebp
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x60], edx
lea edx, [esp + 0x58]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x44]
push edx
mov edx, dword [esp + 0x94]
mov dword [esp + 0x60], ecx
mov ecx, dword [esp + 0x78]
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x74]
push edx
mov edx, dword [esp + 0x94]
sub ecx, edi
sub eax, esi
push edx
push ecx
mov ecx, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x9c]
push eax
call fcn.00430c70
cmp eax, 1
jne 0x431862
mov ecx, dword [esp + 0x94]
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x80]
push edx
push eax
push ecx
mov ecx, dword [esp + 0x28]
call fcn.00431520
mov ecx, dword [esp + 0x80]
mov edx, dword [esp + 0x14]
mov eax, ebx
cmp eax, ecx
jl 0x43172d
mov ebx, dword [esp + 0x24]
add edx, dword [esp + 0x10]
cmp edx, ebx
mov dword [esp + 0x14], edx
jge 0x43186a
jmp 0x431704
mov dword [esp + 0x1c], 0
mov ecx, dword [esp + 0x18]
call fcn.00430870
mov eax, dword [esp + 0x1c]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x68
ret 0x1c
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x68
ret 0x1c