joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4cf9a0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d76c7
mov eax, dword fs:[0]
push eax
sub esp, 0x264
mov eax, dword [0x503454]
xor eax, ebp
mov dword [ebp - 0x18], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x250], 0
mov eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0x14]
call fcn.00423484
mov dword [ebp - 4], 0
mov dword [ebp - 0x24c], 0
push 0x228
push 0
lea ecx, [ebp - 0x248]
push ecx
call fcn.004857c0
add esp, 0xc
push 0
push 2
call sub.KERNEL32.DLL_CreateToolhelp32Snapshot
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
jne 0x4cfa1c
jmp 0x4cfa85
mov dword [ebp - 0x24c], 0x22c
lea edx, [ebp - 0x24c]
push edx
mov eax, dword [ebp - 0x10]
push eax
call sub.KERNEL32.DLL_Process32FirstW
mov dword [ebp - 0x254], eax
cmp dword [ebp - 0x254], 0
jne 0x4cfa47
jmp 0x4cfa85
lea ecx, [ebp - 0x228]
push ecx
lea eax, [ebp - 0x14]
call fcn.00406db2
test eax, eax
jne 0x4cfa71
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x244]
mov dword [edx], eax
mov dword [ebp - 0x250], 1
jmp 0x4cfa85
lea ecx, [ebp - 0x24c]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call sub.KERNEL32.DLL_Process32NextW
test eax, eax
jne 0x4cfa47
cmp dword [ebp - 0x10], 0xffffffff
je 0x4cfa95
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov ecx, dword [ebp - 0x250]
mov dword [ebp - 0x258], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.004011f0
mov eax, dword [ebp - 0x258]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.0048bcc6
mov esp, ebp
pop ebp
ret
Function at 0x4cfad0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d7702
mov eax, dword fs:[0]
push eax
sub esp, 0x254
mov eax, dword [0x503454]
xor eax, ebp
mov dword [ebp - 0x18], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x234], 0
mov dword [ebp - 0x228], 0
lea eax, [ebp - 0x230]
call fcn.0042b009
mov dword [ebp - 4], 0
mov dword [ebp - 0x22c], 0
mov word [ebp - 0x224], 0
push 0x206
push 0
lea eax, [ebp - 0x222]
push eax
call fcn.004857c0
add esp, 0xc
lea eax, [ebp - 0x14]
call fcn.004234d5
mov byte [ebp - 4], 1
push 0
push 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jge 0x4cfbbf
push 2
push 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jge 0x4cfbbf
push 0x4e6b0c
mov eax, dword [ebp + 8]
call fcn.00423484
mov ecx, dword [ebp - 0x234]
or ecx, 1
mov dword [ebp - 0x234], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.004011f0
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x230]
call fcn.00434d50
mov eax, dword [ebp + 8]
jmp 0x4cfca7
lea edx, [ebp - 0x22c]
push edx
mov eax, dword [ebp + 0xc]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
cmp dword [ebp - 0x22c], 0
jne 0x4cfbe0
jmp 0x4cfc66
lea ecx, [ebp - 0x224]
push ecx
mov edx, dword [ebp - 0x22c]
push edx
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
lea eax, [ebp - 0x224]
push eax
call fcn.00483779
add esp, 4
test eax, eax
je 0x4cfc24
lea ecx, [ebp - 0x224]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea edx, [ebp - 0x224]
push edx
lea eax, [ebp - 0x14]
push eax
call fcn.00414f90
lea eax, [ebp - 0x230]
call fcn.0042458e
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jl 0x4cfc66
lea eax, [ebp - 0x230]
call fcn.00423e27
mov dword [ebp - 0x260], eax
mov ecx, dword [ebp - 0x22c]
push ecx
mov edx, dword [ebp - 0x260]
push edx
mov eax, dword [ebp - 0x260]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x14]
call edx
call dword [sym.imp.ole32.dll_CoUninitialize]
lea eax, [ebp - 0x14]
mov esi, dword [ebp + 8]
call fcn.004244e3
mov eax, dword [ebp - 0x234]
or eax, 1
mov dword [ebp - 0x234], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.004011f0
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x230]
call fcn.00434d50
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.0048bcc6
mov esp, ebp
pop ebp
ret
Function at 0x4d0980
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d7ce0
mov eax, dword fs:[0]
push eax
sub esp, 0x254
mov eax, dword [0x503454]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x260], ecx
mov eax, dword [ebp - 0x260]
add eax, 0xc
call fcn.00414f57
movzx eax, al
test eax, eax
jne 0x4d09f1
mov eax, dword [ebp - 0x260]
add eax, 8
call fcn.00414f57
movzx ecx, al
test ecx, ecx
jne 0x4d09f1
mov eax, dword [ebp - 0x260]
add eax, 0x10
call fcn.00414f57
movzx edx, al
test edx, edx
je 0x4d09f8
xor eax, eax
jmp 0x4d0b93
mov dword [ebp - 0x230], 0
lea eax, [ebp - 0x230]
push eax
mov ecx, dword [ebp + 8]
or ecx, 0x20019
push ecx
push 0
mov eax, dword [ebp - 0x260]
add eax, 0xc
call fcn.00423e27
push eax
mov edx, dword [ebp - 0x260]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x22c], eax
cmp dword [ebp - 0x22c], 0
je 0x4d0a57
mov ecx, dword [ebp - 0x230]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x4d0b93
mov dword [ebp - 0x10], 2
mov dword [ebp - 0x228], 0x105
mov word [ebp - 0x224], 0
push 0x208
push 0
lea edx, [ebp - 0x222]
push edx
call fcn.004857c0
add esp, 0xc
lea eax, [ebp - 0x228]
push eax
lea ecx, [ebp - 0x224]
push ecx
lea edx, [ebp - 0x10]
push edx
push 0
mov eax, dword [ebp - 0x260]
add eax, 8
call fcn.00423e27
push eax
mov eax, dword [ebp - 0x230]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x22c], eax
mov ecx, dword [ebp - 0x230]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x22c], 0
jne 0x4d0b91
cmp dword [ebp - 0x10], 1
jne 0x4d0b91
lea edx, [ebp - 0x224]
push edx
lea eax, [ebp - 0x234]
call fcn.00423484
mov dword [ebp - 4], 0
lea eax, [ebp - 0x234]
push eax
call fcn.004cfcd0
add esp, 4
push 0x105
lea esi, [ebp - 0x234]
call fcn.004010cd
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
or eax, 0xffffffff
lea esi, [ebp - 0x234]
call fcn.004147f4
mov eax, dword [ebp - 0x260]
add eax, 0x10
call fcn.00423e27
push eax
push 0x105
lea esi, [ebp - 0x234]
call fcn.004010cd
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
or eax, 0xffffffff
lea esi, [ebp - 0x234]
call fcn.004147f4
lea ecx, [ebp - 0x234]
push ecx
call fcn.004ce730
add esp, 4
mov dword [ebp - 0x238], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x234]
call fcn.004011f0
mov eax, dword [ebp - 0x238]
jmp 0x4d0b93
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0048bcc6
mov esp, ebp
pop ebp
ret 4
Function at 0x4d1170
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
add eax, 4
call fcn.00414f57
movzx eax, al
test eax, eax
je 0x4d118f
xor eax, eax
jmp 0x4d11e2
mov eax, dword [ebp - 8]
add eax, 4
call fcn.00423e27
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x4d11ae
xor eax, eax
jmp 0x4d11e2
mov ecx, dword [ebp - 4]
and ecx, 0x10
jne 0x4d11ce
mov eax, dword [ebp - 8]
add eax, 4
call fcn.00423e27
push eax
call fcn.004d0f30
add esp, 4
jmp 0x4d11e2
mov eax, dword [ebp - 8]
add eax, 4
call fcn.00423e27
push eax
call fcn.004cf570
add esp, 4
mov esp, ebp
pop ebp
ret

Function at 0x4d25f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x14], ecx
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0xffffffff
push 0
push 0
push 2
push 0
push 1
push 0x40000000
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x4d2634
jmp 0x4d266f
mov dword [ebp - 0x10], 0
push 0
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.DLL_WriteFile]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4d2664
mov edx, dword [ebp - 0x10]
cmp edx, dword [ebp + 0x10]
je 0x4d2668
jmp 0x4d266f
mov dword [ebp - 4], 1
cmp dword [ebp - 0xc], 0xffffffff
je 0x4d267f
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4d3640
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d801a
mov eax, dword fs:[0]
push eax
sub esp, 0x26c
mov eax, dword [0x503454]
xor eax, ebp
mov dword [ebp - 0x18], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x10], 0
mov word [ebp - 0x224], 0
push 0x206
push 0
lea eax, [ebp - 0x222]
push eax
call fcn.004857c0
add esp, 0xc
lea eax, [ebp - 0x14]
call fcn.004234d5
mov dword [ebp - 4], 0
push 1
push 0x23
lea ecx, [ebp - 0x224]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x4d3763
push 0x104
lea edx, [ebp - 0x224]
push edx
call dword [sym.imp.KERNEL32.DLL_GetWindowsDirectoryW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x4d36eb
jmp 0x4d37ea
lea eax, [ebp - 0x224]
push eax
lea ecx, [ebp - 0x14]
push ecx
call fcn.00414f90
lea edx, [ebp - 0x22c]
push edx
mov ecx, 1
lea eax, [ebp - 0x14]
call fcn.00406de1
mov dword [ebp - 0x274], eax
push 0x4e7804
mov eax, dword [ebp - 0x274]
push eax
call fcn.00406e6f
add esp, 8
mov byte [ebp - 0x225], al
lea ecx, [ebp - 0x22c]
call fcn.004011f0
movzx ecx, byte [ebp - 0x225]
test ecx, ecx
je 0x4d3753
push 0x4e7808
lea edx, [ebp - 0x14]
push edx
call fcn.00401000
push 0x4e780c
lea eax, [ebp - 0x14]
push eax
call fcn.00401000
jmp 0x4d37cb
lea ecx, [ebp - 0x224]
push ecx
lea edx, [ebp - 0x14]
push edx
call fcn.00414f90
lea eax, [ebp - 0x234]
push eax
mov ecx, 1
lea eax, [ebp - 0x14]
call fcn.00406de1
mov dword [ebp - 0x278], eax
push 0x4e7844
mov ecx, dword [ebp - 0x278]
push ecx
call fcn.00406e6f
add esp, 8
mov byte [ebp - 0x22d], al
lea ecx, [ebp - 0x234]
call fcn.004011f0
movzx edx, byte [ebp - 0x22d]
test edx, edx
je 0x4d37cb
push 0x4e7848
lea eax, [ebp - 0x14]
push eax
call fcn.00401000
push 0x4e784c
lea ecx, [ebp - 0x14]
push ecx
call fcn.00401000
lea eax, [ebp - 0x14]
call fcn.00423e27
push eax
call fcn.0046b4cd
add esp, 4
lea eax, [ebp - 0x14]
mov esi, dword [ebp + 8]
call fcn.004244e3
mov edx, dword [ebp - 0x238]
or edx, 1
mov dword [ebp - 0x238], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.004011f0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.0048bcc6
mov esp, ebp
pop ebp
ret
Function at 0x4d4570
Capabilities:
Get common file path
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d7326
mov eax, dword fs:[0]
push eax
sub esp, 0x69c
mov eax, dword [0x503454]
xor eax, ebp
mov dword [ebp - 0x10], eax
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x104
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryW]
lea ecx, [ebp - 0x224]
push ecx
lea eax, [ebp - 0x228]
call fcn.00423484
mov dword [ebp - 4], 0
lea eax, [ebp - 0x228]
call fcn.00414d43
cmp eax, 3
jl 0x4d4623
mov ecx, 3
lea edx, [ebp - 0x66c]
lea eax, [ebp - 0x228]
call fcn.00414dd1
mov dword [ebp - 0x6a4], eax
mov edx, dword [ebp - 0x6a4]
mov dword [ebp - 0x6a8], edx
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x6a8]
lea edi, [ebp - 0x228]
call fcn.0042454d
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x66c]
call fcn.004011f0
mov dword [ebp - 0x668], 0x104
mov dword [ebp - 0x44c], 0
mov dword [ebp - 0x448], 0
mov dword [ebp - 0x440], 0
mov dword [ebp - 0x444], 0x104
mov eax, dword [ebp - 0x444]
push eax
lea ecx, [ebp - 0x664]
push ecx
lea edx, [ebp - 0x440]
push edx
lea eax, [ebp - 0x448]
push eax
lea ecx, [ebp - 0x44c]
push ecx
mov edx, dword [ebp - 0x668]
push edx
lea eax, [ebp - 0x43c]
push eax
lea eax, [ebp - 0x228]
call fcn.00423e27
push eax
call dword [sym.imp.KERNEL32.DLL_GetVolumeInformationW]
mov dword [ebp - 0x450], eax
cmp dword [ebp - 0x450], 0
jne 0x4d46cb
mov dword [ebp - 0x670], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x228]
call fcn.004011f0
mov eax, dword [ebp - 0x670]
jmp 0x4d4704
mov ecx, dword [ebp - 0x44c]
push ecx
push 0x4e68cc
mov eax, dword [ebp + 8]
call fcn.00422cb5
add esp, 8
mov dword [ebp - 0x674], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x228]
call fcn.004011f0
mov eax, dword [ebp - 0x674]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0048bcc6
mov esp, ebp
pop ebp
ret
Function at 0x4d4bc0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d7860
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x503454]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0x4e528c
push 0x4e529c
push 0x4e52b4
push reloc.OLEAUT32.dll_SysReAllocString
lea eax, [ebp - 0x18]
push eax
call fcn.004d4ad0
add esp, 0x10
mov dword [ebp - 4], 0
lea eax, [ebp - 0x18]
call fcn.00414f57
movzx ecx, al
test ecx, ecx
je 0x4d4c35
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.004011f0
jmp 0x4d4ca7
lea eax, [ebp - 0x18]
call fcn.00423e27
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4d4c59
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.004011f0
jmp 0x4d4ca7
mov dword [ebp - 0x1c], 0
jmp 0x4d4c6b
mov edx, dword [ebp - 0x1c]
add edx, 1
mov dword [ebp - 0x1c], edx
cmp dword [ebp - 0x1c], 1
jae 0x4d4c90
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp + eax*4 - 0x10]
push ecx
call fcn.004729f2
add esp, 4
test eax, eax
je 0x4d4c8e
mov dword [ebp - 0x14], 1
jmp 0x4d4c90
jmp 0x4d4c62
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.004011f0
xor edx, edx
jne 0x4d4bf3
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x4d55a0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d8273
mov eax, dword fs:[0]
push eax
sub esp, 0x50
push esi
mov eax, dword [0x503454]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x24], 0
lea ecx, [ebp - 0x20]
call fcn.004ceec0
mov dword [ebp - 4], 0
cmp dword [ebp + 8], 0
je 0x4d55ec
mov eax, dword [ebp + 8]
movzx ecx, word [eax]
test ecx, ecx
jne 0x4d55f1
jmp 0x4d56b4
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4d5604
jmp 0x4d56b4
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x20]
call fcn.004ced20
test eax, eax
jne 0x4d5619
jmp 0x4d56b4
lea eax, [ebp - 0x34]
call fcn.0046b951
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x34]
push ecx
lea ecx, [ebp - 0x20]
call fcn.004d1ac0
test eax, eax
jne 0x4d5643
mov byte [ebp - 4], 0
lea esi, [ebp - 0x34]
call fcn.0042caeb
jmp 0x4d56b4
sub esp, 0x10
mov ecx, esp
mov dword [ebp - 0x3c], esp
lea edx, [ebp - 0x34]
push edx
call fcn.0047a930
mov dword [ebp - 0x58], eax
lea eax, [ebp - 0x38]
push eax
call fcn.004d5400
add esp, 0x14
mov dword [ebp - 0x5c], eax
mov byte [ebp - 4], 2
lea eax, [ebp - 0x38]
call fcn.00414d43
push eax
lea eax, [ebp - 0x38]
call fcn.00423e27
push eax
push pe_nt_image_headers32
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.00487869
add esp, 0x10
mov dword [ebp - 0x24], 1
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x38]
call fcn.004011f0
mov byte [ebp - 4], 0
lea esi, [ebp - 0x34]
call fcn.0042caeb
xor edx, edx
jne 0x4d55dc
lea ecx, [ebp - 0x20]
call fcn.004ce890
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x40], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.004ce9e0
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x401000
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x401090
push ebp
mov ebp, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x10]
push ebx
cmp byte [esi], 0
je 0x40108d
push 0x5c
push esi
call dword [sym.imp.MSVCRT.dll_strchr]
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x40108d
push edi
mov byte [esi], 0
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x401066
push 0
push edi
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
test eax, eax
jne 0x40105f
test ebp, ebp
je 0x40105f
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
jmp 0x401066
push edi
push 1
call ebp
pop ecx
pop ecx
test bl, 0x10
jne 0x401087
push 0xb7
call dword [sym.imp.kernel32.dll_SetLastError]
test ebp, ebp
je 0x401087
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
mov byte [esi], 0x5c
inc esi
jne 0x401018
pop ebx
pop edi
pop ebp
xor eax, eax
inc eax
pop esi
ret

Function at 0x402bf1
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
pushal
call 0x402c00
pop dword [ebp - 0x38]
mov eax, 0x9db8d08f
add eax, 0x62875b71
sub dword [ebp - 0x38], eax
mov dword [ebp - 0x48], 0x535ab666
add dword [ebp - 0x48], 0xfaf78ee5
mov dword [ebp - 0x44], 0xfc21a260
add dword [ebp - 0x44], 0x3611a9e5
mov dword [ebp - 0x40], 0xd010384e
sub dword [ebp - 0x40], 0x83c3f420
mov dword [ebp - 0x3c], 0x2eac5832
sub dword [ebp - 0x3c], 0x2eac5832
lea eax, [ebp - 0x48]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x38]
call dword [eax]
mov dword [ebp - 0x48], 0xf011c3ab
sub dword [ebp - 0x48], 0x7b9f5a55
mov dword [ebp - 0x44], 0xdd313f75
sub dword [ebp - 0x44], 0x9bc4de00
mov dword [ebp - 0x40], 0xdc5c0c03
add dword [ebp - 0x40], 0x87136069
mov dword [ebp - 0x3c], 0x85a926da
sub dword [ebp - 0x3c], 0x85a926da
lea ebx, [ebp - 0x48]
push ebx
push eax
mov eax, 0x5827b458
sub eax, 0x57e743b0
add eax, dword [ebp - 0x38]
call dword [eax]
push 0x40
push 0x1000
push 0x3631e
push 0
call eax
mov ecx, 0x4606
xor esi, esi
add esi, eax
mov edi, 0x1ffe4b09
add edi, 0xe042b4f7
add edi, dword [ebp - 0x38]
mov edx, 0xfa639a43
add dword [ebp - 0x20], edi
mov ebx, dword [edi]
add dword [ebp - 0x30], ecx
sub ebx, edx
xor dword [ebp - 4], 0xe6c51782
mov dword [esi], ebx
add dword [ebp - 0x1c], 0x163fa23f
add esi, 0x4dac1aee
add esi, 0xb253e516
add edi, 0x760e1e91
add edi, 0x89f1e173
loop 0x402d13
add eax, 0x444cfda7
add eax, 0xbbb40d44
mov ebx, eax
add eax, 5
mov ecx, 0x23d76a1f
add ecx, 0xdc6895e1
add ecx, dword [ebp - 0x38]
call ebx
leave
ret
Function at 0x1001fb3
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
lea eax, [esp]
push eax
push 2
call sub.WS2_32.dll_WSAStartup
test eax, eax
je 0x1001fdd
push eax
push 0x1001568
call fcn.0100241e
pop ecx
pop ecx
add esp, 0x190
ret
push esi
mov esi, dword [sym.imp.msvcrt.dll_printf]
push 0x1001548
call esi
pop ecx
call fcn.01001cce
push 0x1001524
call esi
pop ecx
pop esi
add esp, 0x190
jmp fcn.01001eff

Function at 0x100222a
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push eax
push ecx
push edx
push ebx
push esp
push ebp
push esi
push edi
push ebp
mov ebp, esp
sub esp, 0x68
push ebx
push esi
push edi
mov dword [ebp - 4], 0xb
mov dword [ebp - 0x10], 0xe
mov dword [ebp - 0x50], 4
mov dword [ebp - 0x48], 4
mov dword [ebp - 8], 5
mov dword [ebp - 0x18], 2
mov eax, dword [ebp - 0x10]
add eax, dword [ebp - 4]
sub eax, 0x19
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x40], 0x5b5c
jmp 0x1002453
add dword [ebp - 0x40], 0xfff720
jmp 0x1002314
mov dword [ebp - 0x1c], 0x102a000
mov eax, dword [ebp - 0x10]
sub eax, 0xb
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
cmp dword [ebp - 0x44], eax
jbe 0x10022b7
mov eax, dword [ebp - 0x3c]
add eax, dword [ebp - 0x40]
movzx edx, byte [eax]
movzx ecx, byte [ebp - 0x4c]
xor edx, ecx
mov byte [eax], dl
inc dword [ebp - 0x3c]
jmp 0x1002299
mov dword [ebp - 0x20], 0x100567c
mov dword [ebp - 0x24], 0x101f87c
mov ebx, dword [ebp - 4]
sub ebx, 0xb
cmp ebx, 0x1a05c
jae 0x10022e2
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x20]
mov dl, byte [edx + ebx]
mov byte [eax + ebx], dl
inc ebx
jmp 0x10022cb
mov dword [ebp - 0x28], 0x105f000
mov dword [ebp - 0x2c], 0x10000000
mov dword [ebp - 0xc], 0x102667c
mov edi, dword [ebp - 0x10]
sub edi, 0xe
cmp edi, 0x66b0
jae 0x1002320
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x24]
mov dl, byte [edx + edi]
mov byte [eax + edi], dl
inc edi
jmp 0x10022fd
mov dword [ebp - 0x44], 0x5b66
jmp 0x100245f
mov dword [ebp - 0x54], 0x36000
mov dword [ebp - 0x30], 0x1000
mov esi, dword [ebp - 0x18]
sub esi, 2
jmp 0x10023f4
cmp dword [ebp - 0xc], 0x1028f18
jb 0x1002320
mov eax, dword [ebp - 8]
add eax, 0x1383
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x48]
inc ebp
mov eax, 0x4000848d
Function at 0x4019fc
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
xor edx, edx
push ebp
push 0x401ab2
push dword fs:[edx]
mov dword fs:[edx], esp
push 0x46a5c8
call sub.KERNEL32.DLL_VirtualQuery
cmp byte [0x46a049], 0
je 0x401a2a
push 0x46a5c8
call sub.KERNEL32.DLL_WaitForSingleObject
mov eax, 0x46a5e8
call fcn.004013c0
mov eax, 0x46a5f8
call fcn.004013c0
mov eax, 0x46a624
call fcn.004013c0
push 0xff8
push 0
call sub.KERNEL32.DLL_SetThreadLocale
mov dword [0x46a620], eax
cmp dword [0x46a620], 0
je 0x401a91
mov eax, 3
mov edx, dword [0x46a620]
xor ecx, ecx
mov dword [edx + eax*4 - 0xc], ecx
inc eax
cmp eax, 0x401
jne 0x401a67
mov eax, 0x46a608
mov dword [eax + 4], eax
mov dword [eax], eax
mov dword [0x46a614], eax
mov byte [0x46a5c0], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x401ab9
cmp byte [0x46a049], 0
je 0x401ab1
push 0x46a5c8
call sub.KERNEL32.DLL_WriteFile
ret

Function at 0x401ac0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
cmp byte [0x46a5c0], 0
je 0x401b9d
xor edx, edx
push ebp
push 0x401b96
push dword fs:[edx]
mov dword fs:[edx], esp
cmp byte [0x46a049], 0
je 0x401af2
push 0x46a5c8
call sub.KERNEL32.DLL_WaitForSingleObject
mov byte [0x46a5c0], 0
mov eax, dword [0x46a620]
push eax
call sub.KERNEL32.DLL_SizeofResource
xor eax, eax
mov dword [0x46a620], eax
mov ebx, dword [0x46a5e8]
jmp 0x401b25
push 0x8000
push 0
mov eax, dword [ebx + 8]
push eax
call sub.KERNEL32.DLL_VirtualAlloc
mov ebx, dword [ebx]
cmp ebx, 0x46a5e8
jne 0x401b13
mov eax, 0x46a5e8
call fcn.004013c0
mov eax, 0x46a5f8
call fcn.004013c0
mov eax, 0x46a624
call fcn.004013c0
mov eax, dword [0x46a5e0]
test eax, eax
je 0x401b6b
mov edx, dword [eax]
mov dword [0x46a5e0], edx
push eax
call sub.KERNEL32.DLL_SizeofResource
mov eax, dword [0x46a5e0]
test eax, eax
jne 0x401b54
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x401b9d
cmp byte [0x46a049], 0
je 0x401b8b
push 0x46a5c8
call sub.KERNEL32.DLL_WriteFile
push 0x46a5c8
call sub.KERNEL32.DLL_lstrcpyA
ret
pop ebx
pop ebp
ret