joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48c080
Capabilities:
Capture webcam image

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, ecx
mov eax, dword [eax + 4]
cmp dword [esi + 0xec], 1
jne 0x48c123
test eax, eax
jbe 0x48c123
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x48c123
mov ecx, dword [esi + 0x1c]
push edi
push 0
push eax
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
mov eax, dword [esi + 0xbc]
inc edi
test eax, eax
jne 0x48c0ce
xor esi, esi
jmp 0x48c0d4
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x48c0ff
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.0048e020
add esi, eax
push esi
mov ebx, esi
call fcn.0048e020
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x48c0e0
pop ebp
test edi, edi
pop edi
jne 0x48c123
test ebx, ebx
je 0x48c123
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.004c2770
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc

Function at 0x48c245
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x48c35d
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x48c35d
mov eax, dword [esi + 0x3c]
push eax
call fcn.004e72c3
mov esi, eax
test esi, esi
je 0x48c35d
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x48c35d
mov ecx, esi
call fcn.0048c1d0
cmp edi, eax
jge 0x48c35d
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x48c2e3
mov dword [esp + 0x34], 1
jmp 0x48c33e
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x48c35d
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.0048b7a0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc
Function at 0x493050
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4f73f8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
mov eax, dword [esp + 0x40]
push ebx
push esi
lea ecx, [esp + 8]
push eax
push ecx
mov ecx, dword [esp + 0x4c]
call fcn.00493450
mov esi, eax
lea edx, [esp + 0x48]
xor ebx, ebx
push edx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x40], ebx
mov dword [esp + 0x4c], 0x6f980c
call fcn.004c3fd8
mov ecx, dword [0x5bd4a0]
mov al, byte [esi]
push ecx
push ebx
push esi
lea ecx, [esp + 0x30]
mov byte [esp + 0x48], 1
mov byte [esp + 0x30], al
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
call fcn.004907c0
mov esi, 0x5bd4f8
mov dword [esp + 0x18], esi
mov eax, dword [esp + 0xc]
mov byte [esp + 0x3c], 3
cmp eax, ebx
je 0x4930f7
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x4930ee
cmp al, 0xff
je 0x4930ee
dec al
mov byte [ecx], al
jmp 0x4930f7
push ecx
call fcn.004e5517
add esp, 4
lea ecx, [esp + 0x18]
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
call fcn.004e1360
mov eax, dword [esp + 0x28]
mov dword [esp + 0x3c], 0xffffffff
cmp eax, ebx
mov dword [esp + 0x18], esi
je 0x49313d
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x493134
cmp al, 0xff
je 0x493134
dec al
mov byte [ecx], al
jmp 0x49313d
push ecx
call fcn.004e5517
add esp, 4
lea ecx, [esp + 0x18]
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
call fcn.004c405f
mov ecx, dword [esp + 0x34]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x499c30
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x6f9920]
xor edx, edx
cmp eax, edx
jne 0x499c56
xor eax, eax
mov byte [eax + 0x6f9820], al
inc eax
cmp eax, 0x100
jl 0x499c3e
mov dword [0x6f9920], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x6f9820
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x499ce7
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 0x499cba
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 0x499c88
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x499d60
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 0x499db3
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 0x499d9a
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 0x4a0730
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4f76be
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.004a1050
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0x5bd724
call fcn.004e54ee
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x4a07c3
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.004e54ee
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x4a07bc
push 0
mov ecx, eax
call fcn.00497870
mov dword [esi + 0xc], eax
jmp 0x4a07c5
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x4a07c5
xor esi, esi
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], 0
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8
Function at 0x4db9a0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x4f8cf0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
mov al, byte [esp + 0x3c]
push ebx
xor ebx, ebx
push esi
mov esi, ecx
mov byte [esp + 0x10], al
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov ecx, dword [esp + 0x44]
push ebx
mov dword [esp + 0x40], ebx
mov byte [esp + 0x28], al
mov edx, dword [ecx]
lea ecx, [esp + 0x28]
mov dword [esp + 0x24], edx
call fcn.004d08b9
mov eax, dword [0x6894f0]
lea ecx, [esp + 0x10]
push eax
push ebx
push ecx
lea ecx, [esp + 0x30]
call fcn.004d07eb
lea edx, [esp + 0x20]
lea eax, [esp + 8]
push edx
push eax
mov ecx, esi
mov byte [esp + 0x44], 1
call fcn.004dc480
mov esi, dword [eax]
mov ecx, dword [eax + 4]
mov eax, dword [esp + 0x28]
cmp eax, ebx
mov dword [esp + 0xc], ecx
je 0x4dba47
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x4dba3e
cmp al, 0xff
je 0x4dba3e
dec al
mov byte [ecx], al
jmp 0x4dba47
push ecx
call fcn.004e5517
add esp, 4
mov eax, dword [esp + 0x14]
mov dword [esp + 0x28], ebx
cmp eax, ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
je 0x4dba78
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x4dba6f
cmp al, 0xff
je 0x4dba6f
dec al
mov byte [ecx], al
jmp 0x4dba78
push ecx
call fcn.004e5517
add esp, 4
mov ecx, dword [esp + 0x34]
lea eax, [esi + 0x10]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x38
ret 4
Function at 0x4e7c67
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4e7c9f
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004e5c54
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004e5c2c
jmp 0x4e7cab
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4e9358
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4e939a
call fcn.004ef304
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4e939a
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4e9391
xor eax, eax
jmp 0x4e93a2
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004e93a8
pop edi
pop esi
pop ebx
ret 4

Function at 0x4ef834
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4ef862
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4ef880
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004ef79a
jmp 0x4ef880
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4ef880
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004ef79a
test edi, edi
mov eax, edi
jne 0x4ef86a
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x40ac2c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x8c
mov dword [esp + 4], 0x487400
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov dword [esp], eax
call sub.msvcrt.dll_fopen
mov esi, eax
test eax, eax
je 0x40ad24
lea eax, [ebp - 0x84]
mov dword [esp], eax
call fcn.00419690
mov dword [esp], 0xc800
call fcn.00477528
mov ebx, eax
jmp 0x40ac8e
mov dword [esp + 8], eax
mov dword [esp + 4], ebx
lea eax, [ebp - 0x84]
mov dword [esp], eax
call fcn.0041a020
mov edi, ebx
mov ecx, 0xc800
xor eax, eax
rep stosb byte es:[edi], al
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0xc800
mov dword [esp + 4], 1
mov dword [esp], ebx
call sub.msvcrt.dll_fread
test eax, eax
jg 0x40ac78
mov dword [esp], esi
call sub.msvcrt.dll_fclose
mov dword [ebp - 0x2a], 0
lea edi, [ebp - 0x26]
mov ecx, 0xc
xor eax, eax
rep stosb byte es:[edi], al
lea esi, [ebp - 0x2a]
mov dword [esp + 4], esi
lea eax, [ebp - 0x84]
mov dword [esp], eax
call fcn.0041a0e8
test ebx, ebx
je 0x40acf5
mov dword [esp], ebx
call fcn.00477504
lea eax, [ebp - 0x1a]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x10
mov dword [esp + 4], esi
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.00452098
mov eax, dword [ebp + 8]
add esp, 0x8c
pop ebx
pop esi
pop edi
leave
ret 4
lea eax, [ebp - 0x19]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x487403
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.0045204c
mov eax, dword [ebp + 8]
add esp, 0x8c
pop ebx
pop esi
pop edi
leave
ret 4
Function at 0x413c34
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x14
mov ebx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x413c6b
cmp dword [eax + 0x10], ebx
jne 0x413c85
mov edx, dword [eax + 0x28]
test edx, edx
je 0x413c74
mov ecx, dword [eax + 0x24]
mov dword [edx + 0x24], ecx
mov ecx, dword [eax + 0x24]
test ecx, ecx
je 0x413c80
mov dword [ecx + 0x28], edx
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 4]
mov al, 1
add esp, 0x14
pop ebx
leave
ret
mov ecx, dword [eax + 0x24]
mov dword [ebx + 0x1c], ecx
test ecx, ecx
jne 0x413c5e
nop
mov dword [ebx + 0x18], edx
jmp 0x413c61
mov dword [esp + 8], 0x153
mov dword [esp + 4], str...CommonTinyXML_tinyxml.cpp
mov dword [esp], 0x487dc2
call sub.msvcrt.dll__assert
nop
nop
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2c
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
test edi, edi
jle 0x413ce5
xor ebx, ebx
nop
mov dword [esp + 0xc], esi
mov dword [esp + 8], 4
mov dword [esp + 4], 1
mov dword [esp], str.
call sub.msvcrt.dll_fwrite
inc ebx
cmp edi, ebx
jg 0x413cc0
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 0x20]
mov dword [ebp + 0x10], eax
mov dword [ebp + 0xc], str.__s_
mov dword [ebp + 8], esi
add esp, 0x2c
pop ebx
pop esi
pop edi
leave
jmp sub.msvcrt.dll_fprintf
Function at 0x4146a8
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x3c
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
test ebx, ebx
je 0x414752
mov dword [esp], esi
call fcn.004132b4
mov dword [esi + 8], 0xffffffff
mov dword [esi + 4], 0xffffffff
mov dword [esp + 8], 2
mov dword [esp + 4], 0
mov dword [esp], ebx
call sub.msvcrt.dll_fseek
mov dword [esp], ebx
call sub.msvcrt.dll_ftell
mov dword [ebp - 0x1c], eax
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], ebx
call sub.msvcrt.dll_fseek
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
jle 0x41480c
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [esp], eax
call fcn.00477528
mov edi, eax
mov byte [eax], 0
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 1
mov eax, dword [ebp - 0x1c]
mov dword [esp + 4], eax
mov dword [esp], edi
call sub.msvcrt.dll_fread
dec eax
je 0x414784
mov dword [esp], edi
call fcn.00477504
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 2
mov dword [esp], esi
call fcn.00410e8c
xor eax, eax
add esp, 0x3c
pop ebx
pop esi
pop edi
leave
ret
mov eax, dword [ebp - 0x1c]
lea ebx, [edi + eax]
mov byte [ebx], 0
mov cl, byte [edi]
mov edx, edi
mov eax, edi
test cl, cl
je 0x4147bf
nop
cmp eax, ebx
jae 0x41485a
cmp ebx, edx
jb 0x414876
cmp eax, edx
jb 0x41483e
cmp cl, 0xd
je 0x4147fc
mov byte [edx], cl
inc eax
mov cl, byte [eax]
inc edx
test cl, cl
jne 0x414798
cmp ebx, edx
jb 0x414892
mov byte [edx], 0
mov eax, dword [esi]
mov edx, dword [ebp + 0x10]
mov dword [esp + 0xc], edx
mov dword [esp + 8], 0
mov dword [esp + 4], edi
mov dword [esp], esi
call dword [eax + 0xc]
mov dword [esp], edi
call fcn.00477504
mov al, byte [esi + 0x2c]
xor eax, 1
add esp, 0x3c
pop ebx
pop esi
pop edi
leave
ret
mov byte [edx], 0xa
inc eax
mov cl, byte [eax]
cmp cl, 0xa
je 0x4147b7
inc edx
jmp 0x4147bb
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0xc
mov dword [esp], esi
call fcn.00410e8c
xor eax, eax
add esp, 0x3c
pop ebx
pop esi
pop edi
leave
ret
mov dword [esp + 8], 0x3f8
mov dword [esp + 4], str...CommonTinyXML_tinyxml.cpp
mov dword [esp], str.q___p
call sub.msvcrt.dll__assert
mov dword [esp + 8], 0x3f6
mov dword [esp + 4], str...CommonTinyXML_tinyxml.cpp
mov dword [esp], str.p____buflength_
call sub.msvcrt.dll__assert
mov dword [esp + 8], 0x3f7
mov dword [esp + 4], str...CommonTinyXML_tinyxml.cpp
mov dword [esp], str.q____buflength_
call sub.msvcrt.dll__assert
mov dword [esp + 8], 0x405
mov dword [esp + 4], str...CommonTinyXML_tinyxml.cpp
mov dword [esp], str.q____buflength_
call sub.msvcrt.dll__assert
nop

Function at 0x419690
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0x67452301
mov dword [eax + 0xc], 0xefcdab89
mov dword [eax + 0x10], 0x98badcfe
mov dword [eax + 0x14], 0x10325476
leave
ret
Function at 0x41fc10
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 0xc
mov ecx, dword [esp + 0x14]
mov dword [esp], ebx
mov ebx, dword [esp + 0x18]
mov dword [esp + 4], esi
mov esi, dword [esp + 0x10]
test ebx, ebx
mov dword [esp + 8], edi
sete al
cmp esi, ecx
sete dl
or eax, edx
xor edi, edi
test al, 1
jne 0x41fc70
test esi, esi
setne al
test ecx, ecx
setne dl
xor eax, edx
test al, 1
jne 0x41fc81
test ebx, ebx
je 0x41fc64
movzx eax, word [esi]
movzx edx, word [ecx]
cmp ax, dx
jne 0x41fc9d
add esi, 2
add ecx, 2
dec ebx
jne 0x41fc50
xor edi, edi
lea esi, [esi]
lea edi, [edi]
mov eax, edi
mov ebx, dword [esp]
mov esi, dword [esp + 4]
mov edi, dword [esp + 8]
add esp, 0xc
ret
cmp ecx, 1
mov ebx, dword [esp]
sbb eax, eax
and eax, 2
mov esi, dword [esp + 4]
lea edi, [eax - 1]
mov eax, edi
mov edi, dword [esp + 8]
add esp, 0xc
ret
movzx edi, ax
movzx eax, dx
sub edi, eax
jmp 0x41fc70
Function at 0x454bf4
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
mov dword [esp + 8], esi
mov dword [esp + 4], edi
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov eax, dword [eax + 0x10]
mov dword [esp], eax
call sub.msvcrt.dll__read
mov ebx, eax
cmp eax, 0xffffffff
je 0x454c2c
mov eax, ebx
add esp, 0x1c
pop ebx
pop esi
pop edi
leave
ret
call sub.msvcrt.dll__errno
cmp dword [eax], 4
je 0x454c03
mov eax, ebx
add esp, 0x1c
pop ebx
pop esi
pop edi
leave
ret
Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43200c
nop
nop
nop
pop eax
nop
nop
nop
add eax, 0x40729f
nop
sub eax, 0x407245
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x432030
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43201e
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x401110
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
xor ecx, ecx
push esi
push edi
lea edi, [ecx + 0x31]
lea esi, [ecx + 0x15]
test ebx, ebx
je 0x401190
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x401190
cmp ebx, eax
jae 0x401190
mov ebx, 0x7423
mov eax, 0x2c0b02c1
imul ebx
sar edx, 5
mov ebx, edx
shr ebx, 0x1f
add ebx, edx
jne 0x401135
mov ebx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
sub edx, ebx
je 0x401160
mov al, byte [ecx + ebx + 1]
add al, 0x1b
xor byte [ecx + ebx], al
inc ecx
cmp ecx, edx
jb 0x401152
mov eax, 0x64a5
mov ecx, 0x4f
lea ebx, [ebx]
cmp edi, ecx
cmovg edi, ecx
dec eax
jne 0x401170
mov eax, 0xbea
mov ecx, 0xa9
cmp esi, ecx
cmovl esi, ecx
dec eax
jne 0x401182
pop edi
pop esi
pop ebx
pop ebp
ret
inc ecx
mov eax, 0x2aaaaaab
imul ecx
mov eax, edx
shr eax, 0x1f
add eax, edx
lea edx, [eax + eax*2]
add edx, edx
mov eax, ecx
sub eax, edx
jne 0x4011ab
inc ecx
cmp ecx, 0x71d7
jl 0x401190
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x402e90
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, 0x1398
mov ebx, 0x1017
mov edi, 0x34fc
jmp 0x402eb0
mov eax, 0x8d3dcb09
imul esi
add edx, esi
sar edx, 6
mov esi, edx
shr esi, 0x1f
add esi, edx
jne 0x402eb0
mov esi, dword [ebp + 8]
inc byte [esi + 0x110]
movzx eax, byte [esi + 0x110]
lea edx, [esi + 0xc]
add eax, edx
mov dword [ebp - 4], eax
mov dword [ebp - 8], edx
movzx edx, byte [eax]
movzx eax, byte [esi + 0xa]
add eax, edx
mov byte [esi + 0xa], al
movzx eax, al
add esi, 0xc
add eax, esi
mov esi, dword [ebp - 4]
mov dword [ebp + 8], eax
movzx eax, byte [eax]
mov dl, byte [esi]
mov byte [esi], al
mov eax, dword [ebp + 8]
mov dword [ebp - 4], 0xff
mov byte [eax], dl
mov edx, 0x76b6
mov eax, 0x55
jmp 0x402f20
cmp eax, 0xff
cmovl eax, dword [ebp - 4]
dec edx
jne 0x402f20
lea esp, [esp]
mov eax, 0xb92143fb
imul ebx
add edx, ebx
sar edx, 7
mov ebx, edx
shr ebx, 0x1f
add ebx, edx
jne 0x402f30
mov ecx, 0x1bb1
lea ebx, [ebx]
mov eax, 0x13e22cbd
imul ecx
sar edx, 3
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
jne 0x402f50
mov eax, dword [ebp + 8]
mov ecx, 0x18e0
mov bl, byte [eax]
add bl, byte [esi]
nop
mov eax, 0xa80a80a9
imul edi
add edx, edi
sar edx, 7
mov edi, edx
shr edi, 0x1f
add edi, edx
jne 0x402f70
mov edx, dword [ebp - 8]
movzx eax, bl
mov bl, byte [eax + edx]
mov edi, edi
mov eax, 0xb21642c9
imul ecx
add edx, ecx
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
jne 0x402f90
movzx ecx, byte [ebp + 0xc]
movzx eax, bl
pop edi
pop esi
xor eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4097b2
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x43a008]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0xffffffffffffffff
push ecx
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00405ef7
mov esp, ebp
pop ebp
ret

Function at 0x409a41
Capabilities:
Query environment variable
Set environment variable

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
push esi
push 0
push 0
push str.PATH
call ebx
mov esi, eax
test esi, esi
je 0x409ad2
push edi
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00405f45
pop ecx
push esi
mov edi, eax
push edi
push str.PATH
call ebx
lea ecx, [esi - 1]
cmp ecx, eax
jne 0x409aca
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov ebx, eax
test ebx, ebx
je 0x409aca
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00405f45
pop ecx
push ebx
mov esi, eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x409ac3
push esi
push str.PATH
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push esi
call fcn.00405f08
pop ecx
push edi
call fcn.00405f08
pop ecx
pop edi
pop esi
pop ebx
ret

Function at 0x40cd8e
Capabilities:
Parse pe header

Disassembly:
mov ecx, dword [ecx + 4]
mov eax, 0x5a4d
cmp word [ecx], ax
je 0x40cd9e
xor al, al
ret
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x40cd9b
mov ecx, 0xe0
cmp word [eax + 0x14], cx
jne 0x40cd9b
add ecx, 0x2b
cmp word [eax + 0x18], cx
sete al
ret