joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401000
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4146d9
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x41b024]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov dword [0x41cf30], edi
xor ebx, ebx
mov dword [ebp - 4], ebx
lea eax, [edi + 0x3c]
push 0x15
mov dword [edi], 0x4172c8
mov dword [edi + 4], 0x4172d4
mov dword [edi + 8], str.WJNews.exe
mov dword [edi + 0xc], 0x4172f0
mov dword [edi + 0x10], 0x4172fc
mov dword [edi + 0x2c], 0xa
mov byte [edi + 0x30], 1
mov dword [edi + 0x34], ebx
push str.C:Program_FilesWuji
push eax
mov dword [edi + 0x38], eax
mov byte [eax], bl
call fcn.00408c27
mov eax, dword [edi + 0x38]
mov byte [eax + 0x15], bl
lea esi, [edi + 0x8c]
lea eax, [esi + 4]
push 0x2c
mov dword [edi + 0x7c], 0x1010101
mov byte [edi + 0x80], 1
mov dword [edi + 0x84], ebx
mov dword [edi + 0x88], ebx
push str.huvs__.uts.icl522__km.wj3_32513__77_keord
push eax
mov dword [esi], eax
mov byte [eax], bl
call fcn.00408c27
mov ecx, dword [esi]
add esp, 0x18
mov byte [ecx + 0x2c], bl
mov byte [ebp - 4], 2
mov eax, dword [esi]
xor ecx, ecx
mov edx, eax
cmp byte [eax], bl
je 0x4010df
jmp 0x4010d0
xor byte [edx], cl
inc ecx
inc edx
cmp ecx, 5
jne 0x4010db
xor ecx, ecx
cmp byte [edx], bl
jne 0x4010d0
call fcn.00402360
push 0xa0
call fcn.004086aa
add esp, 4
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 3
cmp eax, ebx
je 0x401104
push eax
call fcn.00402990
jmp 0x401106
xor eax, eax
push ebx
lea edx, [ebp - 0x24]
mov dword [edi + 0x34], eax
push edx
lea eax, [edi + 0x14]
push eax
mov dword [ebp - 0x24], 1
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
call dword [sym.imp.gdiplus.dll_GdiplusStartup]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4042e8
Capabilities:
Encode data using xor

Disassembly:
push 0x140119a0
mov ecx, 0x1441c820
pop edx
xor esi, esi
add esi, esi
jmp 0x404002

Function at 0x4051fc
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA
test eax, eax
jle 0x405235
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403278
jmp 0x40523e
mov eax, ebx
mov edx, esi
call fcn.0040322c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x405248
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA
test eax, eax
jle 0x405269
mov al, byte [esp]
jmp 0x40526b
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x4069dc
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x406a24
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 4]
mov eax, ebx
call fcn.00406978
mov eax, dword [ebp - 4]
call fcn.00403414
push eax
call sub.kernel32.dll_GetFileAttributesA
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406a2b
lea eax, [ebp - 4]
call fcn.00403198
ret

Function at 0x406c2c
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x406cba
push dword fs:[eax]
mov dword fs:[eax], esp
test ebx, ebx
jne 0x406c77
push 0x104
lea eax, [ebp - 0x108]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
lea edx, [ebp - 0x108]
mov eax, esi
call fcn.00403278
jmp 0x406ca4
call sub.kernel32.dll_GetCommandLineA_1
cmp byte [eax], 0
jne 0x406c8b
lea eax, [ebp - 4]
call fcn.00403198
jmp 0x406c9a
lea edx, [ebp - 4]
call fcn.00406af0
test ebx, ebx
je 0x406c9a
dec ebx
jmp 0x406c7c
mov eax, esi
mov edx, dword [ebp - 4]
call fcn.0040322c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406cc1
lea eax, [ebp - 4]
call fcn.00403198
ret

Function at 0x406cc8
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffefc
mov ebx, eax
push 0x104
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
mov edx, ebx
mov eax, esp
call fcn.00404dd0
add esp, 0x104
pop ebx
ret
Function at 0x405870
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, eax
movsx eax, byte [esi]
test eax, eax
jne 0x4058a4
push 0x104
lea eax, [ebp - 0x10c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea esi, [ebp - 0x10c]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 0
push 0
push esi
call fcn.00405680
add esp, 0x14
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
lea eax, [edx + eax*4]
push eax
call fcn.00405dc0
pop ecx
mov ebx, eax
test eax, eax
jne 0x4058d7
push 1
call fcn.00405360
pop ecx
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 4]
lea eax, [ebx + eax*4]
push eax
push ebx
push esi
call fcn.00405680
add esp, 0x14
mov eax, dword [ebp - 4]
dec eax
mov dword [0x447274], eax
mov dword [0x447270], ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x405910
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov dword [ebp - 8], eax
mov dword [ebp - 4], 0
mov ebx, dword [ebp - 8]
jmp 0x405948
or eax, 0xffffffff
inc eax
cmp byte [ebx + eax], 0
jne 0x405931
inc eax
mov esi, eax
movsx eax, byte [ebx]
cmp eax, 0x3d
je 0x405946
add dword [ebp - 4], esi
add ebx, esi
cmp byte [ebx], 0
jne 0x40592e
mov eax, dword [ebp - 4]
inc eax
push eax
call fcn.00405dc0
pop ecx
mov edi, eax
mov dword [0x44737c], eax
test eax, eax
jne 0x40596b
push 1
call fcn.00405360
pop ecx
mov ebx, dword [ebp - 8]
jmp 0x405992
or eax, 0xffffffff
inc eax
cmp byte [ebx + eax], 0
jne 0x405973
inc eax
mov esi, eax
movsx eax, byte [ebx]
cmp eax, 0x3d
je 0x405990
push ebx
push edi
call fcn.00406640
pop ecx
pop ecx
add edi, esi
add ebx, esi
movsx eax, byte [ebx]
test eax, eax
jne 0x405970
mov byte [edi], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x402e9a
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
lea eax, [ebp - 4]
push edi
push eax
mov eax, dword [0x4263b0]
or al, 8
xor ebx, ebx
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x402f2e
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov edi, 0x105
jmp 0x402eeb
cmp dword [ebp + 0x10], ebx
jne 0x402f22
lea eax, [ebp - 0x10c]
push ebx
push eax
push dword [ebp - 4]
call fcn.00402e9a
test eax, eax
jne 0x402efd
lea eax, [ebp - 0x10c]
push edi
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x402ed2
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 2
call fcn.004065cd
cmp eax, ebx
je 0x402f35
push ebx
push dword [0x4263b0]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x402f2e
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
cmp dword [0x4263b0], ebx
jne 0x402f2b
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x402f2b
jmp 0x402f2e
Function at 0x4034a7
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [0x41889c]
sub esi, dword [0x40c808]
push edi
add esi, dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor ebx, ebx
add eax, 0x1f4
cmp esi, ebx
mov dword [0x42630c], eax
jle 0x403611
push dword [0x4208ac]
call fcn.00403655
push ebx
push ebx
push dword [0x40c808]
push dword [0x40a674]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [0x4208a8], esi
mov dword [0x418898], ebx
mov ebp, 0x40c898
mov eax, dword [0x4188a0]
mov edi, 0x4000
sub eax, dword [0x4208ac]
cmp eax, edi
jg 0x40351c
mov edi, eax
mov esi, 0x414898
push edi
push esi
call fcn.00403623
test eax, eax
je 0x403603
add dword [0x4208ac], edi
mov dword [0x40c828], esi
mov dword [0x40c82c], edi
cmp dword [0x426310], ebx
je 0x403573
cmp dword [0x4263a0], ebx
jne 0x403573
mov eax, dword [0x4208a8]
push ebx
sub eax, dword [0x41889c]
sub eax, dword [esp + 0x1c]
add eax, dword [0x40c808]
mov dword [0x418898], eax
call fcn.00403037
pop ecx
mov ecx, 0x40c810
mov dword [0x40c830], ebp
mov dword [0x40c834], 0x8000
call fcn.004066c7
test eax, eax
jl 0x40360c
mov esi, dword [0x40c830]
sub esi, ebp
je 0x4035cd
lea eax, [esp + 0x10]
push ebx
push eax
push esi
push ebp
push dword [0x40a674]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x403608
cmp esi, dword [esp + 0x10]
jne 0x403608
add dword [0x40c808], esi
cmp dword [0x40c82c], ebx
jne 0x403542
jmp 0x4035d9
cmp dword [0x40c82c], ebx
jne 0x40360c
cmp edi, ebx
je 0x40360c
mov eax, dword [0x41889c]
mov ecx, eax
sub ecx, dword [0x40c808]
add ecx, dword [esp + 0x18]
test ecx, ecx
jg 0x403506
push ebx
push ebx
push eax
push dword [0x40a674]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x403611
or eax, 0xffffffff
jmp 0x40361b
push 0xfffffffffffffffe
jmp 0x40360e
push 0xfffffffffffffffd
pop eax
jmp 0x40361b
push 1
call fcn.00403037
pop ecx
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4
Function at 0x405cd6
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x4230f8
push esi
call fcn.00406102
push esi
call fcn.00405c89
mov edi, eax
test edi, edi
jne 0x405cf7
xor eax, eax
jmp 0x405d49
push edi
call fcn.00406360
test byte [0x426318], 0x80
je 0x405d10
mov al, byte [edi]
test al, al
je 0x405cf3
cmp al, 0x5c
je 0x405cf3
sub edi, esi
jmp 0x405d28
call fcn.004065a6
test eax, eax
je 0x405d22
test byte [eax], 0x10
je 0x405cf3
push esi
call fcn.00405c3c
push esi
call sub.KERNEL32.dll_lstrlenA
cmp eax, edi
push esi
jg 0x405d14
call fcn.00405bf5
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

Function at 0x405dba
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x405dd6
and al, 0xfe
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
ret 4

Function at 0x405dd9
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, eax
push 0
inc ecx
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
ret 0xc

Function at 0x405e08
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
dec edi
mov dword [ebp + 8], 0x61736e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
xor edx, edx
pop ecx
div ecx
push esi
lea eax, [ebp + 8]
push 0
push eax
push dword [ebp + 0xc]
add byte [ebp + 0xa], dl
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x405e4c
test edi, edi
jne 0x405e13
and byte [esi], 0
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x405e46
Function at 0x405e50
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebx
push ebp
push esi
push edi
push 1
call fcn.004065cd
test eax, eax
mov esi, dword [esp + 0x18]
je 0x405e74
push 5
push esi
push dword [esp + 0x1c]
call eax
test eax, eax
jne 0x405fad
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov dword [0x423e80], 0x4c554e
test esi, esi
mov edi, 0x400
mov ebp, 0x423e80
je 0x405eb8
push 1
push 0
push esi
call fcn.00405dd9
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x405fb3
cmp eax, edi
jg 0x405fb3
mov esi, 0x4238f8
push edi
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x405fb3
cmp eax, edi
jg 0x405fb3
push esi
push ebp
push str._s_s_r_n
push 0x4234f8
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x426310]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.00406124
push 4
push 0xc0000000
push esi
call fcn.00405dd9
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x14], ebp
je 0x405fad
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x405fa6
lea eax, [esp + 0x18]
push 0
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x405fa6
cmp edi, dword [esp + 0x18]
jne 0x405fa6
push str._Rename__r_n
push esi
call fcn.00405d4e
test eax, eax
jne 0x405fba
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call fcn.00406102
add edi, 0xa
mov eax, edi
push ebx
add eax, esi
push 0x4234f8
push eax
call fcn.00405d9a
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [esp + 0x18]
push 0
add edi, ebx
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [0x426390]
pop edi
pop esi
pop ebp
pop ebx
ret 8
add eax, 0xa
push 0x40aaf8
push eax
call fcn.00405d4e
test eax, eax
je 0x405f71
inc eax
lea ecx, [esi + edi]
cmp eax, ecx
mov ebp, eax
jae 0x405fe1
mov dl, byte [ebp]
mov byte [ebx + ebp], dl
inc ebp
cmp ebp, ecx
jb 0x405fd6
mov ebp, dword [esp + 0x14]
sub eax, esi
jmp 0x405f73
Function at 0x4063f9
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x40641e
mov eax, dword [0x40a8c8]
cmp eax, 0xffffffff
je 0x406415
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [0x40a8c8], 0xffffffff
jmp 0x406491
cmp dword [0x424a80], ebx
je 0x406491
cmp byte [0x424680], bl
je 0x40645d
cmp dword [0x40a8c8], 0xffffffff
jne 0x406466
push 4
push 0x40000000
push 0x424680
call fcn.00405dd9
cmp eax, 0xffffffff
mov dword [0x40a8c8], eax
je 0x406491
push 2
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [0x40a8c8], 0xffffffff
je 0x406491
push esi
mov esi, 0x4252a0
push 0x40ab10
push esi
call sub.KERNEL32.dll_lstrcatA
lea eax, [ebp + 8]
push ebx
push eax
push esi
call sub.KERNEL32.dll_lstrlenA
push eax
push esi
push dword [0x40a8c8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
pop ebx
pop ebp
ret 4

Function at 0x406639
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x424284], 0
push esi
jne 0x406670
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x40664a
mov dword [ecx*4 + 0x424280], eax
inc ecx
cmp ecx, 0x100
jl 0x406645
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x4066a1
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x424280]
xor eax, esi
inc ecx
dec edx
jne 0x406683
pop edi
not eax
pop esi
ret 0xc
Function at 0x407010
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40704e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407046
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407050
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407036
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407120
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x407151
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407151
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407151
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x10003cfb
Capabilities:
Encode data using xor

Disassembly:
push esi
mov eax, 0xffffffff
push edi
mov esi, edx
add edx, eax
test esi, esi
je 0x10003d2e
movzx esi, byte [ecx]
movzx edi, ax
shr eax, 8
xor esi, edi
and esi, 0xff
inc ecx
mov esi, dword [esi*4 + 0x1000fc70]
xor esi, eax
mov eax, esi
mov esi, edx
dec edx
test esi, esi
jne 0x10003d0a
not eax
pop edi
pop esi
ret

Function at 0x10003d33
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov byte [ebp - 1], 0
push ebx
push esi
push edi
mov esi, edx
mov edi, ecx
push esi
call dword [0x100114fc]
xor cx, cx
mov dl, al
sub dl, byte [ebp - 1]
dec dl
movzx ebx, dl
mov dl, byte [ebx + esi]
movzx ebx, byte [ebp - 1]
sub dl, cl
mov bl, byte [ebx + esi]
dec dl
mov byte [ebp - 8], bl
movzx ebx, cx
add byte [ebp - 8], cl
xor dl, byte [ebp - 8]
mov byte [ebx + edi], dl
movzx ebx, byte [ebp - 1]
movzx edx, ax
sub ebx, edx
cmp ebx, 0xffffffff
jne 0x10003d89
mov byte [ebp - 1], 0
jmp 0x10003d8c
inc byte [ebp - 1]
inc cx
cmp cx, 0x100
jb 0x10003d4e
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x410f8e
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x50
push ebp
lea eax, [esp + 0x28]
push edi
push eax
call fcn.0041113e
mov ecx, dword [esp + 0x5c]
xor edx, edx
xor ebp, ebp
mov dword [esp + 0xc], 1
mov edi, dword [ecx]
mov dword [esp + 0x10], 8
mov dword [esp + 0x14], 2
mov dword [esp + 0x18], 4
mov dx, word [edi + 0x14]
cmp word [edi + 6], bp
mov dword [esp + 0x1c], 0x10
mov dword [esp + 0x20], 0x80
mov dword [esp + 0x24], 0x20
mov dword [esp + 0x28], 0x40
lea eax, [edx + edi + 0x18]
jbe 0x41108c
push ebx
push esi
lea ebx, [eax + 0x24]
mov eax, dword [ebx]
mov ecx, eax
mov edx, eax
shr ecx, 0x1d
shr edx, 0x1e
mov esi, eax
and ecx, 1
and edx, 1
shr esi, 0x1f
test eax, 0x2000000
je 0x41102f
mov eax, dword [ebx - 0x14]
mov ecx, dword [ebx - 0x1c]
push 0x4000
push eax
push ecx
call dword [esp + 0x4c]
jmp 0x411072
lea edx, [edx + ecx*2]
test eax, 0x4000000
lea ecx, [esi + edx*2]
mov esi, dword [esp + ecx*4 + 0x14]
je 0x411046
or esi, 0x200
mov edx, dword [ebx - 0x14]
mov ecx, edx
test ecx, ecx
jne 0x411061
test al, 0x40
je 0x411058
mov ecx, dword [edi + 0x20]
jmp 0x41105f
test al, 0x80
je 0x411072
mov ecx, dword [edi + 0x24]
test ecx, ecx
jbe 0x411072
mov ecx, dword [ebx - 0x1c]
lea eax, [esp + 0x10]
push eax
push esi
push edx
push ecx
call dword [esp + 0x44]
mov edx, dword [esp + 0x64]
xor eax, eax
inc ebp
add ebx, 0x28
mov edi, dword [edx]
mov ax, word [edi + 6]
cmp ebp, eax
jl 0x410ffe
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x50
ret
Function at 0x43f0e0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x4b575b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.004a7dca
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x43f162
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.004a52a0
mov eax, dword [eax]
push 0xb2a244
push eax
call fcn.00497d14
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.004a8055
test bl, bl
je 0x43f162
push 0xb2a244
lea ecx, [esp + 0xc]
call fcn.004a8431
push 0xb2ddcc
lea ecx, [esp + 0xc]
call fcn.004a8431
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x43f19e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.004a8055
jmp 0x43f269
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x43f222
lea edx, [esp + 0x7c]
push 0xb2ddc8
push edx
call fcn.00497d14
add esp, 8
test eax, eax
je 0x43f222
lea eax, [esp + 0x7c]
push 0xb2ddc4
push eax
call fcn.00497d14
add esp, 8
test eax, eax
je 0x43f222
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x43f1b2
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.004a8055
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x43fa60
Capabilities:
Query or enumerate registry value

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