joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44db10
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x44dc97
sub esp, 0x10
mov ecx, dword [esp + 0x18]
test ecx, ecx
jbe 0x44dc8d
mov edx, dword [esp + 0x14]
movzx ebx, byte [edx]
test ebx, ebx
jne 0x44db6c
movzx ebp, byte [esp + 0x28]
xchg ebp, eax
test al, al
xchg ebp, eax
jne 0x44db6c
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
mov byte [esp + 0x38], 0
add esp, 0x10
ret
test ebx, 0x80
je 0x44db7f
xor eax, eax
xor ebx, ebx
xor ebp, ebp
jmp 0x44dc62
mov eax, 1
mov ebp, ebx
and ebx, 1
neg ebx
shr ebp, 1
xor ebx, ebp
mov ebp, dword [esp + 0x24]
add dword [ebp], ebx
cmp ecx, eax
jb 0x44dc54
sub ecx, eax
mov ebx, dword [esp + 0x1c]
sub ebx, eax
mov ebp, ebx
neg ebx
sar ebx, 0x1f
and eax, ebx
lea ebx, [edx + eax]
test ecx, ecx
jbe 0x44dc4b
movzx edx, byte [edx + eax]
test edx, 0x80
je 0x44dbd6
mov dword [esp + 8], ecx
mov dword [esp + 0xc], ebp
xor eax, eax
xor edx, edx
xor esi, esi
jmp 0x44dc1f
mov eax, 1
cmp eax, ecx
ja 0x44dc0d
mov esi, dword [esp + 0x20]
add dword [esi], edx
sub ebp, eax
mov edx, ebp
xchg ebp, ebx
neg ebx
xchg ebp, ebx
sar ebp, 0x1f
and ebp, eax
add ebx, ebp
mov dword [esp + 0x2c], ebx
sub ecx, eax
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], edx
mov byte [esp + 0x38], 1
add esp, 0x10
ret
call dbg.runtime.panicSliceBU
lea esi, [ecx + 7]
mov ecx, dword [esp + 8]
mov eax, ebp
mov ebp, dword [esp + 0xc]
cmp eax, ecx
jae 0x44dc46
movzx edi, byte [eax + ebx]
lea ebp, [eax + 1]
mov eax, edi
and edi, 0x7f
mov ecx, esi
shl edi, cl
or edx, edi
test al, 0x80
jne 0x44dc12
mov ecx, dword [esp + 8]
mov eax, ebp
mov ebp, dword [esp + 0xc]
jmp 0x44dbdb
call dbg.runtime.panicIndexU
xor eax, eax
mov ecx, eax
call dbg.runtime.panicIndex
call dbg.runtime.panicSliceBU
lea ebp, [ecx + 7]
mov ecx, dword [esp + 0x18]
mov eax, edi
cmp ecx, eax
jbe 0x44dc88
movzx esi, byte [eax + edx]
lea edi, [eax + 1]
mov eax, esi
and esi, 0x7f
mov ecx, ebp
shl esi, cl
or ebx, esi
test al, 0x80
jne 0x44dc59
mov ecx, dword [esp + 0x18]
mov eax, edi
jmp 0x44db84
call dbg.runtime.panicIndexU
xor eax, eax
mov ecx, eax
call dbg.runtime.panicIndex
nop
call dbg.runtime.morestack_noctxt
jmp dbg.runtime.step
Function at 0x451c20
Capabilities:
Access peb ldr_data

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x451d20
sub esp, 0x28
mov eax, dword [esp + 0x2c]
mov dword [eax + 0x8c], 0
mov dword [eax + 0x90], 0
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
mov ecx, dword [ecx + 0x18]
mov ecx, dword [ecx + 0x58]
mov dword [eax + 0x94], ecx
mov ecx, dword [esp + 0x30]
mov dword [esp], ecx
call dbg.runtime.startPCforTrace
mov eax, dword [esp + 4]
mov dword [esp + 0x14], eax
lea ecx, [0x4bf3a0]
mov dword [esp], ecx
call fcn.0040b6c0
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x14]
inc ecx
mov dword [eax], ecx
lea ecx, [0x566850]
mov dword [esp], ecx
mov dword [esp + 4], eax
mov dword [esp + 8], 1
mov dword [esp + 0xc], 1
call dbg.runtime.(*traceStackTable).put
mov eax, dword [esp + 0x10]
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
mov ecx, dword [esp + 0x2c]
mov edx, dword [ecx + 0x50]
mov ecx, dword [ecx + 0x54]
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], eax
mov byte [esp], 0xd
mov dword [esp + 4], 2
lea eax, [esp + 0x18]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 2
mov dword [esp + 0x10], 2
call dbg.runtime.traceEvent
add esp, 0x28
ret
call dbg.runtime.morestack_noctxt
jmp dbg.runtime.traceGoCreate
Function at 0x455290
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x45532f
sub esp, 0x30
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
mov dword [esp + 8], ecx
mov dword [esp + 4], 0
lea edi, [esp + 0xc]
xor eax, eax
call fcn.0045ddc7
lea ecx, [0x455340]
mov dword [esp + 0xc], ecx
lea ecx, [esp + 4]
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x14], ecx
lea ecx, [esp + 0x34]
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 8]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x2c], ecx
lea ecx, [esp + 0xc]
mov dword [esp], ecx
call dbg.runtime.systemstack
mov ecx, dword [esp + 4]
mov dword [esp + 0x44], ecx
add esp, 0x30
ret
call dbg.runtime.morestack_noctxt
jmp dbg.runtime.callers
Function at 0x45da90
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
movd xmm0, dword [esp + 8]
pinsrw xmm0, ebx, 4
pshufhw xmm0, xmm0, 0
movdqa xmm1, xmm0
pxor xmm0, xmmword [0x582440]
aesenc xmm0, xmm0
cmp ebx, 0x10
jb 0x45c27b
je 0x45c2ce
cmp ebx, 0x20
jbe 0x45c2d4
cmp ebx, 0x40
jbe 0x45c31a
jmp 0x45c3bb
test ebx, ebx
je 0x45c2c4
add eax, 0x10
test ax, 0xff0
je 0x45c2b0
movdqu xmm1, xmmword [eax - 0x10]
add ebx, ebx
pand xmm1, xmmword [ebx*8 + 0x4f0460]
pxor xmm1, xmm0
aesenc xmm1, xmm1
aesenc xmm1, xmm1
aesenc xmm1, xmm1
movd dword [edx], xmm1
ret
movdqu xmm1, xmmword [eax + ebx - 0x20]
add ebx, ebx
pshufb xmm1, xmmword [ebx*8 + 0x4f0560]
jmp 0x45c298
aesenc xmm0, xmm0
movd dword [edx], xmm0
ret
movdqu xmm1, xmmword [eax]
jmp 0x45c298
pxor xmm1, xmmword [0x582450]
aesenc xmm1, xmm1
movdqu xmm2, xmmword [eax]
movdqu xmm3, xmmword [eax + ebx - 0x10]
pxor xmm2, xmm0
pxor xmm3, xmm1
aesenc xmm2, xmm2
aesenc xmm3, xmm3
aesenc xmm2, xmm2
aesenc xmm3, xmm3
aesenc xmm2, xmm2
aesenc xmm3, xmm3
pxor xmm2, xmm3
movd dword [edx], xmm2
ret
movdqa xmm2, xmm1
movdqa xmm3, xmm1
pxor xmm1, xmmword [0x582450]
pxor xmm2, xmmword [0x582460]
pxor xmm3, xmmword [0x582470]
aesenc xmm1, xmm1
aesenc xmm2, xmm2
aesenc xmm3, xmm3
movdqu xmm4, xmmword [eax]
movdqu xmm5, xmmword [eax + 0x10]
movdqu xmm6, xmmword [eax + ebx - 0x20]
movdqu xmm7, xmmword [eax + ebx - 0x10]
pxor xmm4, xmm0
pxor xmm5, xmm1
pxor xmm6, xmm2
pxor xmm7, xmm3
aesenc xmm4, xmm4
aesenc xmm5, xmm5
aesenc xmm6, xmm6
aesenc xmm7, xmm7
aesenc xmm4, xmm4
aesenc xmm5, xmm5
aesenc xmm6, xmm6
aesenc xmm7, xmm7
aesenc xmm4, xmm4
aesenc xmm5, xmm5
aesenc xmm6, xmm6
aesenc xmm7, xmm7
pxor xmm4, xmm6
pxor xmm5, xmm7
pxor xmm4, xmm5
movd dword [edx], xmm4
ret
movdqa xmm2, xmm1
movdqa xmm3, xmm1
pxor xmm1, xmmword [0x582450]
pxor xmm2, xmmword [0x582460]
pxor xmm3, xmmword [0x582470]
aesenc xmm1, xmm1
aesenc xmm2, xmm2
aesenc xmm3, xmm3
movdqu xmm4, xmmword [eax + ebx - 0x40]
movdqu xmm5, xmmword [eax + ebx - 0x30]
movdqu xmm6, xmmword [eax + ebx - 0x20]
movdqu xmm7, xmmword [eax + ebx - 0x10]
aesenc xmm4, xmm0
aesenc xmm5, xmm1
aesenc xmm6, xmm2
aesenc xmm7, xmm3
dec ebx
shr ebx, 6
movdqu xmm0, xmmword [eax]
movdqu xmm1, xmmword [eax + 0x10]
movdqu xmm2, xmmword [eax + 0x20]
movdqu xmm3, xmmword [eax + 0x30]
aesenc xmm4, xmm0
aesenc xmm5, xmm1
aesenc xmm6, xmm2
aesenc xmm7, xmm3
aesenc xmm4, xmm4
aesenc xmm5, xmm5
aesenc xmm6, xmm6
aesenc xmm7, xmm7
add eax, 0x40
dec ebx
jne 0x45c41a
aesenc xmm4, xmm4
aesenc xmm5, xmm5
aesenc xmm6, xmm6
aesenc xmm7, xmm7
aesenc xmm4, xmm4
aesenc xmm5, xmm5
aesenc xmm6, xmm6
aesenc xmm7, xmm7
aesenc xmm4, xmm4
aesenc xmm5, xmm5
aesenc xmm6, xmm6
aesenc xmm7, xmm7
pxor xmm4, xmm6
pxor xmm5, xmm7
pxor xmm4, xmm5
movd dword [edx], xmm4
ret
cmp byte [0x58216d], 0
je 0x45daaa
mov eax, dword [esp + 4]
mov ebx, dword [esp + 0xc]
lea edx, [esp + 0x10]
jmp 0x45c240
jmp dbg.runtime.memhashFallback
Function at 0x45dab0
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x402b0e
sub esp, 0x10
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp], ecx
mov ecx, dword [esp + 0x18]
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
call dbg.runtime.memhashFallback
mov eax, dword [esp + 0xc]
mov dword [esp + 0x1c], eax
add esp, 0x10
ret
call dbg.runtime.morestack_noctxt
jmp 0x402ad0
cmp byte [0x58216d], 0
je 0x45dacb
mov eax, dword [esp + 4]
mov ebx, dword [eax + 4]
mov eax, dword [eax]
lea edx, [esp + 0xc]
jmp 0x45c240
jmp 0x402ad0
Function at 0x4993d0
Capabilities:
Create thread

Disassembly:
push ebp
xor ebp, ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov ebx, dword [sym.imp.msvcrt.dll__errno]
mov edi, dword [esp + 0x30]
mov esi, dword [esp + 0x34]
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov dword [esp], edi
call dword [sym.imp.msvcrt.dll__beginthread]
cmp eax, 0xffffffff
jne 0x499438
call ebx
cmp dword [eax], 0xd
je 0x499440
call ebx
mov ebx, dword [eax]
mov dword [esp], 2
call dword [0x4b6a84]
mov dword [esp + 4], str.runtime:_failed_to_create_new_OS_thread___d__n
mov dword [esp + 8], ebx
mov dword [esp], eax
call dbg.fprintf
call sym._abort
lea esi, [esi]
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], ebp
add ebp, 1
call dword [sym.imp.KERNEL32.dll_Sleep]
sub esp, 4
cmp ebp, 0x14
jne 0x4993e7
jmp 0x499408
Function at 0x49eb50
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call dbg.__acrt_iob_func
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sym._fwrite
mov dword [esp], 2
call dbg.__acrt_iob_func
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x49ebb0
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x58694c]
test esi, esi
jle 0x49ecd0
mov eax, dword [0x586950]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp ebx, edx
jb 0x49ebe4
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x49ec67
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x49ebd0
mov dword [esp], ebx
call dbg.__mingw_GetSectionForAddress
mov edi, eax
test eax, eax
je 0x49ecf7
mov eax, dword [0x586950]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call dbg._GetPEImageBase
mov edx, dword [0x586950]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x49ecd7
mov eax, dword [esp + 0x28]
lea edx, [eax - 4]
and edx, 0xfffffffb
je 0x49ec60
lea edx, [eax - 0x40]
and edx, 0xffffffbf
jne 0x49ec70
add dword [0x58694c], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
cmp eax, 2
mov edx, 4
mov eax, 0x40
mov ecx, dword [esp + 0x20]
cmove eax, edx
mov edx, dword [esp + 0x14]
add ebx, dword [0x586950]
mov dword [ebx + 8], ecx
mov dword [ebx + 4], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x49ec60
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call dbg.__report_error
lea esi, cs:[esi]
nop
xor esi, esi
jmp 0x49ebee
mov eax, dword [0x586950]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call dbg.__report_error
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call dbg.__report_error
lea esi, cs:[esi]
nop
Function at 0x49f210
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x586968
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x586960]
sub esp, 4
test ebx, ebx
je 0x49f265
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
mov esi, eax
sub esp, 4
call edi
test esi, esi
je 0x49f25e
test eax, eax
jne 0x49f25e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x49f240
mov dword [esp], 0x586968
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x49f5a0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [0x400000], 0x5a4d
jne 0x49f5c5
mov ecx, dword [0x40003c]
cmp dword [ecx + 0x400000], 0x4550
lea edx, [ecx + 0x400000]
je 0x49f5d0
ret
cmp word [ecx + 0x400018], 0x10b
jne 0x49f5c5
push esi
movzx eax, word [ecx + 0x400014]
push ebx
movzx esi, word [ecx + 0x400006]
mov ebx, dword [esp + 0xc]
lea eax, [edx + eax + 0x18]
sub ebx, 0x400000
test si, si
je 0x49f618
xor ecx, ecx
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x49f60e
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x49f61a
add ecx, 1
add eax, 0x28
cmp esi, ecx
jne 0x49f600
xor eax, eax
pop ebx
pop esi
ret
Function at 0x40390c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x46b008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x20c]
push esi
push edi
mov edi, dword [ebp + 0x10]
push 0x208
push 0
push eax
call fcn.0042f710
add esp, 0xc
lea eax, [ebp - 0x20c]
mov esi, 0x104
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x403975
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x40396c
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x4039e2
mov esi, 0x80004005
jmp 0x4039e2
push 0x5c
pop ecx
cmp cx, word [ebp + eax*2 - 0x20e]
je 0x4039a1
push 1
push 0x44b7fc
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.00403779
mov esi, eax
test esi, esi
js 0x4039e2
mov esi, 0x104
push dword [ebp + 8]
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.004037c6
mov esi, eax
test esi, esi
js 0x4039e2
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebx], eax
test eax, eax
je 0x403955
test edi, edi
je 0x4039e2
push 0x104
lea eax, [ebp - 0x20c]
push eax
push edi
call fcn.004022c9
mov esi, eax
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042de30
leave
ret 0xc

Function at 0x403d89
Capabilities:
Check if file exists
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Get common file path
Get file attributes
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x674
mov eax, dword [0x46b008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
or dword [ebp - 0x66c], 0xffffffff
and eax, 1
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, 0x208
xor esi, esi
mov dword [ebp - 0x674], eax
and dword [ebp - 0x668], esi
lea eax, [ebp - 0x414]
push ebx
push esi
push eax
mov dword [ebp - 0x670], edi
call fcn.0042f710
push ebx
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.0042f710
add esp, 0x18
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x403e2d
call edi
mov esi, eax
cmp esi, 2
jne 0x403e07
push 3
pop esi
test esi, esi
jle 0x403e16
movzx esi, si
or esi, 0x80070000
test esi, esi
jns 0x403e2d
push esi
push 0xc8
push str.c:_agent_work138_s_srclibsdutildirutil.cpp
call fcn.004038f5
jmp 0x404173
invalid
Function at 0x43946a
Capabilities:
Encrypt data using chaskey

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
pushal
pushfd
or esi, 0xdf02524
dec esi
not eax
mov esi, eax
dec edx
add edi, edx
rol esi, 0x16
not esi
mov edx, edi
rol eax, 1
add ebx, eax
add ecx, eax
or eax, 0x2af9174c
xor edx, eax
mov esi, 0x4870f56
rol edx, 0x15
mov edi, dword [0x46b931]
add edi, esp
mov eax, eax
neg edx
rol eax, 0x10
or dword [0x46c9f0], esi
sub ecx, ebp
mov edi, ebp
rol esi, 0x14
and eax, eax
shl eax, 1
xor esi, eax
mov esi, 0x8db864
call fcn.0042e4bf
mov edi, edi
mov esi, eax
and esi, edi
sub esi, esi
test byte [esi + 0x47], 0x89
adc eax, 0x46cbc8
enter 0x46cb, 0
mov ecx, 0xa57b54
dec eax
xor dword [0x46cadc], ecx
neg eax
xchg eax, esi
neg ebx
shr esi, 6
xchg eax, eax
dec edx
test ebp, 0x8c4f2c
jo 0x4394d7
loop 0x4394e0
mov ecx, esp
test eax, ecx
jo 0x4394fb
xor ecx, edx
not edi
and esi, edi
dec ecx
and eax, 0x1ee5788
mov esi, ebx
and esi, edi
mov ebx, esp
mov ecx, 0x982840
xor dword [0x46cb1a], esi
inc eax
sub dword [0x46cb66], esi
sub edx, dword [0x46b3b0]
neg eax
inc edx
rol eax, 0x1a
dec esi
or edi, dword [0x46bb40]
shl esi, 5
xor dword [0x46cba8], ecx
ror eax, 0x1e
shr eax, 5
xor dword [0x46cbb7], edx
loop 0x43951b
xor esi, eax
xor eax, esi
and esi, edi
call fcn.0042def1
test ebp, ebp
jo 0x4395ad
not edx
mov esi, eax
mov ecx, 0x9a4658
test esp, esp
jb 0x43953e
shr esi, 5
inc eax
sub dword [0x46caa4], ecx
mov dword [0x46c9a2], edx
inc esi
neg eax
call fcn.004042ab
shr eax, 5
loop 0x43956a
mov esi, dword [0x46b586]
call fcn.0042e624
inc edi
sub esi, eax
sub esi, eax
call fcn.0042e624
not eax
add esi, eax
xor edx, edx
xor esi, 0x16461980
ror edi, 0xc
and esi, edi
xor ebx, 0x3a75f0
call fcn.0042e4bf
mov esi, 0x121fee1c
add eax, edx
mov ebx, dword [0x46b330]
inc esi
add cl, al
out dx, al
push cs
iretd
push 0
xor esi, edi
rol esi, 0x1c
call fcn.00402c28
add ebx, esp
xchg eax, edx
xor edi, dword [0x46b779]
inc esi
rol esi, 0x1e
dec eax
xor ebx, dword [0x46b7e9]
neg eax
sub ecx, dword [0x46b602]
or eax, 0x46b602
neg esi
call fcn.00413f03
mov dword [0x46cb4e], 0x756064
xchg eax, esi
call fcn.00413f03
xor dword [0x46c922], 0x27e8eee
Function at 0x4394d2
Capabilities:
Encode data using xor
Encrypt data using chaskey

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
pushal
pushfd
or esi, 0xdf02524
dec esi
not eax
mov esi, eax
dec edx
add edi, edx
rol esi, 0x16
not esi
mov edx, edi
rol eax, 1
add ebx, eax
add ecx, eax
or eax, 0x2af9174c
xor edx, eax
mov esi, 0x4870f56
rol edx, 0x15
mov edi, dword [0x46b931]
add edi, esp
mov eax, eax
neg edx
rol eax, 0x10
or dword [0x46c9f0], esi
sub ecx, ebp
mov edi, ebp
rol esi, 0x14
and eax, eax
shl eax, 1
xor esi, eax
mov esi, 0x8db864
call fcn.0042e4bf
mov edi, edi
mov esi, eax
and esi, edi
sub esi, esi
test byte [esi + 0x47], 0x89
adc eax, 0x46cbc8
enter 0x46cb, 0
mov ecx, 0xa57b54
dec eax
xor dword [0x46cadc], ecx
neg eax
xchg eax, esi
neg ebx
shr esi, 6
xchg eax, eax
dec edx
test ebp, 0x8c4f2c
jo 0x4394d7
loop 0x4394e0
mov ecx, esp
test eax, ecx
jo 0x4394fb
xor ecx, edx
not edi
and esi, edi
dec ecx
and eax, 0x1ee5788
mov esi, ebx
and esi, edi
mov ebx, esp
mov ecx, 0x982840
xor dword [0x46cb1a], esi
inc eax
sub dword [0x46cb66], esi
sub edx, dword [0x46b3b0]
neg eax
inc edx
rol eax, 0x1a
dec esi
or edi, dword [0x46bb40]
shl esi, 5
xor dword [0x46cba8], ecx
ror eax, 0x1e
shr eax, 5
xor dword [0x46cbb7], edx
loop 0x43951b
xor esi, eax
xor eax, esi
and esi, edi
call fcn.0042def1
test ebp, ebp
jo 0x4395ad
not edx
mov esi, eax
mov ecx, 0x9a4658
test esp, esp
jb 0x43953e
shr esi, 5
inc eax
sub dword [0x46caa4], ecx
mov dword [0x46c9a2], edx
inc esi
neg eax
call fcn.004042ab
shr eax, 5
loop 0x43956a
mov esi, dword [0x46b586]
call fcn.0042e624
inc edi
sub esi, eax
sub esi, eax
call fcn.0042e624
not eax
add esi, eax
xor edx, edx
xor esi, 0x16461980
ror edi, 0xc
and esi, edi
xor ebx, 0x3a75f0
call fcn.0042e4bf
mov esi, 0x121fee1c
add eax, edx
mov ebx, dword [0x46b330]
inc esi
add cl, al
out dx, al
push cs
iretd
push 0
xor esi, edi
rol esi, 0x1c
call fcn.00402c28
add ebx, esp
xchg eax, edx
xor edi, dword [0x46b779]
inc esi
rol esi, 0x1e
dec eax
xor ebx, dword [0x46b7e9]
neg eax
sub ecx, dword [0x46b602]
or eax, 0x46b602
neg esi
call fcn.00413f03
mov dword [0x46cb4e], 0x756064
xchg eax, esi
call fcn.00413f03
xor dword [0x46c922], 0x27e8eee
Function at 0x43a53d
Capabilities:
Encode data using xor

Disassembly:
mov dword [0x46caf8], ebx
xor edi, edx
or dword [0x46cab6], esi
xor edi, edx
not esi
add dword [eax], 0x57cb5620
neg edx
ror esi, 0x18
mov dword [0x46c956], edi
xchg esi, eax
sub ebx, dword [0x46cf8f]
not edx
rol ebx, 0xe
xor ebx, dword [0x46cc3d]
sub dword [0x46c8be], ecx
xchg esi, esi
dec eax
xor dword [0x46c884], edi
sub ebx, dword [0x46cfdc]
ror edx, 0x12
xor esi, 0x3dcdce0
xor esi, 0x3dcdce0
rol edx, 0x12
mov dword [0x46cba8], ecx
inc eax
xchg esi, esi
mov dword [0x46cadd], ecx
ror ebx, 0xe
not edx
xchg esi, eax
rol esi, 0x18
neg edx
add eax, 4
dec esi
neg eax
sub ebx, dword [0x46ced9]
xor ebx, 0xd916378
add ecx, dword [0x46cddc]
xor esi, edx
sub ebx, dword [0x46cd28]
rol eax, 0x14
sub ecx, dword [0x46cc2c]
xor edx, esi
neg ebx
add ecx, dword [0x46cdd4]
xor esi, eax
inc esi
xor edx, dword [0x46cc5a]
dec esi
xor esi, eax
neg ebx
xor edx, esi
ror eax, 0x14
xor esi, edx
xor ebx, 0xd916378
arpl word [ecx + 0x46d8f70d], dx
sub edi, 4
jne 0x43a237
cmc
xor al, 0xd
or esp, 0xffffffb2
iretd
Function at 0x402820
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffdf4
mov esi, edx
mov ebx, eax
test bl, bl
je 0x40285d
xor eax, eax
mov al, bl
add eax, 0x41
dec eax
mov byte [esp], al
mov byte [esp + 1], 0x3a
mov byte [esp + 2], 0
lea eax, [esp + 0x108]
push eax
push 0x104
call sub.kernel32.dll_GetCurrentDirectoryA
push esp
call sub.kernel32.dll_SetCurrentDirectoryA
lea eax, [esp + 4]
push eax
push 0x104
call sub.kernel32.dll_GetCurrentDirectoryA
test bl, bl
je 0x40287d
lea eax, [esp + 0x108]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x104
call fcn.00403d68
add esp, 0x20c
pop esi
pop ebx
ret

Function at 0x402988
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov esi, edx
mov ebx, eax
test ebx, ebx
jne 0x4029b7
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00403c20
jmp 0x4029d5
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, esi
mov eax, edi
call fcn.00402910
mov edi, eax
test ebx, ebx
je 0x4029d5
cmp dword [esi], 0
je 0x4029d5
dec ebx
jmp 0x4029be
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x402ce8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [section.DATA]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x402d80
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x402d60
xor eax, eax
push ebp
push 0x402d59
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x402d9c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402d60
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [section.DATA]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [section.DATA], ax
mov esp, ebp
pop ebp
ret