joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4371b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x30
mov eax, dword [esp + 0x54]
mov esi, dword [esp + 0x50]
mov edx, dword [esp + 0x4c]
mov edi, dword [esp + 0x44]
mov ebx, 0xfffffffe
nop
nop
nop
nop
cmp word [edi + ebx + 2], 0
lea ebx, [ebx + 2]
jne 0x4371d0
sar ebx, 1
mov ebp, ebx
and ebp, 0xfffd
mov ecx, ebx
and ecx, 2
or ebx, 2
imul ebx, ecx
xor ecx, 2
imul ecx, ebp
lea ebp, [ecx + ebx]
mov word [esp + 0xc], bp
add ecx, ebx
add ecx, 2
mov word [esp + 0xe], cx
mov dword [esp + 0x10], edi
mov dword [esp + 0x18], 0x18
mov dword [esp + 0x1c], eax
mov dword [esp + 0x24], 0x40
lea eax, [esp + 0xc]
mov dword [esp + 0x20], eax
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 4], 0x20272625
mov dword [esp + 8], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 7
ja 0x43728e
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp]
mov ecx, dword [esp]
movzx ecx, byte [esp + ecx + 4]
add eax, 0x6bdf809
xor eax, ecx
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x14]
add al, 0xd3
mov ecx, dword [esp]
mov byte [esp + ecx + 4], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 8
jb 0x437260
mov eax, dword [esp + 4]
mov edi, dword [0x441cf0]
test edi, edi
je 0x4372e5
xor ebx, ebx
mov ebp, dword [0x441cf4]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [ebp + ebx*8], 0x81105f7a
je 0x4372c1
inc ebx
cmp edi, ebx
jne 0x4372b0
jmp 0x4372e5
mov edi, dword [ebp + ebx*8 + 4]
cmp edi, eax
je 0x4372e5
lea eax, [esp + 0x18]
push esi
push eax
push edx
push dword [esp + 0x54]
push 4
push dword [0x441cf8]
push edi
call fcn.004347b0
add esp, 0x1c
add esp, 0x30
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4078c0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
xor eax, eax
sub esp, 0x54
cmp dword [ebp + 0xc], eax
jne 0x40792f
mov word [ebp - 0x12], ax
xorps xmm0, xmm0
mov word [ebp - 0x24], ax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
movlpd qword [ebp - 0x50], xmm0
push eax
push 0
push 0
push 0x20
push 0
push 0
push 0
push dword [ebp + 8]
movlpd qword [ebp - 0x48], xmm0
push 0
movlpd qword [ebp - 0x40], xmm0
movlpd qword [ebp - 0x38], xmm0
movlpd qword [ebp - 0x30], xmm0
movlpd qword [ebp - 0x22], xmm0
movlpd qword [ebp - 0x1a], xmm0
mov dword [ebp - 0x54], 0x44
mov dword [ebp - 0x28], 1
movups xmmword [ebp - 0x10], xmm0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret

Function at 0x407ef0
Capabilities:
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x47a540]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x194]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
push eax
push 0x202
mov byte [esi], 0
call dword [sym.imp.WSOCK32.dll_WSAStartup]
test eax, eax
jne 0x407f54
push ebx
call dword [sym.imp.WSOCK32.dll_gethostbyname]
test eax, eax
je 0x407f54
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
test eax, eax
je 0x407f54
push dword [eax]
call dword [sym.imp.WSOCK32.dll_inet_ntoa]
push edi
push eax
push esi
call fcn.0043e4d0
add esp, 0xc
mov byte [edi + esi - 1], 0
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041305e
mov esp, ebp
pop ebp
ret

Function at 0x407f70
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2f8
mov eax, dword [0x47a540]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x2f8]
push eax
push 0x101
call dword [sym.imp.WSOCK32.dll_WSAStartup]
test eax, eax
jne 0x40802d
push 0xff
lea eax, [ebp - 0x168]
push eax
call dword [sym.imp.WSOCK32.dll_gethostname]
test eax, eax
jne 0x40802d
lea eax, [ebp - 0x168]
push eax
call dword [sym.imp.WSOCK32.dll_gethostbyname]
mov edi, eax
test edi, edi
je 0x40802d
mov ecx, dword [edi + 0xc]
xor esi, esi
cmp dword [ecx], esi
je 0x40802d
mov ebx, dword [ebp + 8]
xor eax, eax
nop word [eax + eax]
mov eax, dword [eax + ecx]
push dword [eax]
call dword [sym.imp.WSOCK32.dll_inet_ntoa]
cmp byte [eax], 0
je 0x40801c
push 0x32
push eax
push 0x47ce58
call fcn.0043e4d0
push 0x64
lea eax, [ebp - 0x68]
mov byte [0x47ce89], 0
push eax
push 0x47ce58
push ebx
call fcn.00408060
add esp, 0x1c
test eax, eax
jne 0x408043
mov ecx, dword [edi + 0xc]
inc esi
lea eax, [esi*4]
cmp dword [eax + ecx], 0
jne 0x407fe0
pop edi
pop esi
mov eax, 0x46b2c8
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041305e
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 0x47ce58
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041305e
mov esp, ebp
pop ebp
ret
Function at 0x408370
Capabilities:
Get local ipv4 addresses
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
mov eax, dword [0x47a540]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_LocalAlloc]
push 0x288
push 0x40
mov dword [ebp - 0x88], eax
mov dword [ebp - 0x84], 0
call edi
mov esi, dword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
mov ebx, eax
lea eax, [ebp - 0x7c]
mov dword [ebp - 0x78], ebx
push eax
push ebx
mov dword [ebp - 0x7c], 0x288
call esi
test eax, eax
je 0x4083d8
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
push dword [ebp - 0x7c]
push 0x40
call edi
mov ebx, eax
mov dword [ebp - 0x78], eax
lea eax, [ebp - 0x7c]
push eax
push ebx
call esi
test eax, eax
jne 0x40852e
cmp dword [ebp - 0x78], eax
je 0x40852b
lea edi, [eax + 0xa]
push 0x63
lea eax, [ebp - 0x73]
mov byte [ebp - 0x74], 0
push 0
push eax
call fcn.004143a0
lea eax, [ebx + 8]
push eax
push str._tAdapter_Name:__t_s_n
call fcn.00405c20
lea eax, [ebx + 0x10c]
push eax
push str._tAdapter_Desc:__t_s_n
call fcn.00405c20
push str._tAdapter_Addr:__t
call fcn.00405c20
mov eax, dword [ebx + 0x190]
xor esi, esi
add esp, 0x20
mov dword [ebp - 0x80], esi
test eax, eax
je 0x4084bc
dec eax
mov ecx, 0x2d
cmp esi, eax
movzx eax, byte [ebx + esi + 0x194]
cmove ecx, edi
push ecx
push eax
push str._x_c
call fcn.00405c20
movzx eax, byte [ebx + esi + 0x194]
push eax
lea eax, [ebp - 0x10]
push str._02x
push eax
call fcn.00406df0
lea eax, [ebp - 0x10]
add esp, 0x18
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x408481
lea edi, [ebp - 0x74]
sub eax, esi
dec edi
nop
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x408490
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [ebx + 0x190]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp - 0x80]
mov edi, 0xa
inc esi
mov dword [ebp - 0x80], esi
cmp esi, eax
jb 0x408443
lea eax, [ebx + 0x1b0]
push eax
push str._tIP_Address:__t_s_n
call fcn.00405c20
mov esi, dword [ebp - 0x88]
lea ecx, [ebp - 0x74]
add esp, 8
mov eax, esi
nop dword [eax + eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x408500
test dl, dl
je 0x4084fc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x408500
add eax, 2
add ecx, 2
test dl, dl
jne 0x4084e0
xor eax, eax
jmp 0x408505
sbb eax, eax
or eax, 1
test eax, eax
jne 0x408521
push esi
push str.VERIFYIED_ADDDRESS__s_n
call fcn.00405c20
add esp, 8
mov dword [ebp - 0x84], 1
mov ebx, dword [ebx]
test ebx, ebx
jne 0x4083f3
mov ebx, dword [ebp - 0x78]
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x84]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0041305e
mov esp, ebp
pop ebp
ret
Function at 0x40bd60
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
mov eax, dword [0x47a540]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor edi, edi
push edi
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x40bdd8
lea eax, [ebp - 0x12c]
mov dword [ebp - 0x12c], 0x128
push eax
push esi
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x40bdd1
lea eax, [ebp - 0x108]
push ebx
push eax
call fcn.0040bb80
add esp, 8
test eax, eax
jne 0x40bdcc
lea eax, [ebp - 0x12c]
push eax
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jg 0x40bda5
jmp 0x40bdd1
mov edi, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041305e
mov esp, ebp
pop ebp
ret

Function at 0x40bdf0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 1
push 0
push 0
push dword [ebp + 8]
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
xor eax, eax
pop ebp
ret

Function at 0x40cc10
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x47a540]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x10]
lea eax, [ebp - 0x103]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
push 0xfe
push 0
push eax
mov byte [ebp - 0x104], 0
call fcn.004143a0
add esp, 0xc
mov dword [ebp - 0x108], 0xff
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x104]
push eax
push 0
push 0xffff
push esi
push edi
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegGetValueA]
test eax, eax
jne 0x40cca2
push dword [ebp + 0x14]
lea eax, [ebp - 0x104]
push eax
push ebx
call fcn.0040b920
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041305e
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041305e
mov esp, ebp
pop ebp
ret

Function at 0x40ccc0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
jne 0x40cd32
mov edx, dword [ebp + 0x10]
xor eax, eax
dec edx
test edx, edx
jle 0x40cd32
push esi
mov esi, dword [ebp + 0xc]
cmp edx, 0x10
jb 0x40cd21
mov ecx, edx
push edi
and ecx, 0x8000000f
jns 0x40ccec
dec ecx
or ecx, 0xfffffff0
inc ecx
movups xmm2, xmmword [0x46dc40]
mov edi, edx
sub edi, ecx
nop word [eax + eax]
movups xmm0, xmmword [eax + esi]
movaps xmm1, xmmword [0x46dc10]
xorps xmm1, xmm0
andnps xmm1, xmm2
movups xmmword [eax + esi], xmm1
add eax, 0x10
cmp eax, edi
jl 0x40cd00
pop edi
cmp eax, edx
jge 0x40cd31
mov cl, byte [eax + esi]
xor cl, 0x10
not cl
mov byte [eax + esi], cl
inc eax
cmp eax, edx
jl 0x40cd21
pop esi
pop ebp
ret
Function at 0x40cd40
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
jne 0x40cdae
mov edx, dword [ebp + 0x10]
xor eax, eax
dec edx
test edx, edx
jle 0x40cdae
push esi
mov esi, dword [ebp + 0xc]
cmp edx, 0x10
jb 0x40cda4
mov ecx, edx
push edi
and ecx, 0x8000000f
jns 0x40cd6c
dec ecx
or ecx, 0xfffffff0
inc ecx
movaps xmm2, xmmword [0x46dc30]
mov edi, edx
movups xmm3, xmmword [0x46dc40]
sub edi, ecx
nop
movups xmm0, xmmword [eax + esi]
movaps xmm1, xmm2
andnps xmm1, xmm3
xorps xmm1, xmm0
xorps xmm1, xmmword [str.eeeeeeeeeeeeeeeeuuuuuuuuuuuuuuuu]
movups xmmword [eax + esi], xmm1
add eax, 0x10
cmp eax, edi
jl 0x40cd80
pop edi
cmp eax, edx
jge 0x40cdad
xor byte [eax + esi], 0xef
inc eax
cmp eax, edx
jl 0x40cda4
pop esi
pop ebp
ret
Function at 0x40f1c0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x47a540]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
lea eax, [ebp - 0x194]
push eax
push 0x101
call dword [sym.imp.WSOCK32.dll_WSAStartup]
test eax, eax
je 0x40f233
sub esp, 0x190
lea esi, [ebp - 0x194]
mov edi, esp
mov ecx, 0x64
rep movsd dword es:[edi], dword [esi]
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
push eax
push str.Error___during_WSAStartup__d.
push 0x46b2c8
push 2
push 3
call fcn.00406fa0
add esp, 0x1a4
or eax, 0xffffffff
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041305e
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.0041305e
mov esp, ebp
pop ebp
ret

Function at 0x40f560
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.WSOCK32.dll_send]
cmp eax, 0xffffffff
jne 0x40f5ad
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x40f5a8
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
push eax
push str.SystemSocketWrite_error__d_socket.
push 0x46b2c8
push 1
push 3
call fcn.00406fa0
add esp, 0x14
or eax, 0xffffffff
pop ebp
ret
mov eax, dword [ebp + 0x10]
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x411e20
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0x10]
push edi
xor edi, edi
test ebx, ebx
jle 0x411e70
mov eax, dword [ebp + 0xc]
add eax, 2
push esi
movzx ecx, byte [eax - 1]
lea eax, [eax + 4]
movzx edx, byte [eax - 3]
mov esi, dword [ecx*4 + 0x479688]
movzx ecx, byte [eax - 6]
xor esi, dword [edx*4 + 0x479e88]
xor esi, dword [ecx*4 + 0x479288]
movzx ecx, byte [eax - 4]
xor esi, dword [ecx*4 + 0x479a88]
mov ecx, dword [ebp + 8]
mov dword [ecx + edi*4], esi
inc edi
cmp edi, ebx
jl 0x411e35
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x411e80
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0x14]
sub esp, 0x18
xor ecx, ecx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
test edx, edx
jle 0x411fe7
push ebx
mov ebx, dword [ebp + 0x10]
cmp edx, 2
jb 0x411fcb
lea eax, [edx - 1]
lea eax, [ebx + eax*4]
cmp edi, eax
ja 0x411ec0
lea eax, [edx - 1]
lea eax, [edi + eax*4]
cmp eax, ebx
jae 0x411fcb
lea eax, [edx - 1]
lea eax, [esi + eax*4]
cmp edi, eax
ja 0x411ed8
lea eax, [edx - 1]
lea eax, [edi + eax*4]
cmp eax, esi
jae 0x411fcb
cmp edx, 0x10
jb 0x411f89
mov eax, edx
add ebx, 0x10
and eax, 0xfffffff0
mov dword [ebp - 4], ebx
mov dword [ebp - 0x18], eax
mov edx, edi
sub edx, dword [ebp + 0x10]
lea eax, [edi + 0x20]
mov dword [ebp - 8], eax
mov ebx, esi
sub ebx, dword [ebp + 0x10]
mov eax, esi
sub eax, edi
mov dword [ebp - 0xc], edx
mov edx, dword [ebp + 0x14]
mov edi, dword [ebp - 8]
mov dword [ebp - 0x10], eax
lea eax, [esi + 0x30]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 4]
nop dword [eax + eax]
movups xmm1, xmmword [esi + ecx*4]
mov esi, dword [ebp - 0xc]
lea eax, [eax + 0x40]
movups xmm0, xmmword [eax - 0x50]
lea edi, [edi + 0x40]
xorps xmm1, xmm0
movups xmmword [edi - 0x60], xmm1
movups xmm0, xmmword [eax - 0x40]
movups xmm1, xmmword [ebx + eax - 0x40]
xorps xmm1, xmm0
movups xmmword [esi + eax - 0x40], xmm1
mov esi, dword [ebp - 0x10]
movups xmm0, xmmword [eax - 0x30]
movups xmm1, xmmword [esi + edi - 0x40]
mov esi, dword [ebp - 0x14]
xorps xmm1, xmm0
movups xmmword [edi - 0x40], xmm1
movups xmm1, xmmword [esi + ecx*4]
mov esi, dword [ebp + 0xc]
add ecx, 0x10
movups xmm0, xmmword [eax - 0x20]
xorps xmm1, xmm0
movups xmmword [edi - 0x30], xmm1
cmp ecx, dword [ebp - 0x18]
jl 0x411f20
mov edi, dword [ebp + 8]
mov eax, edx
and al, 0xf
cmp al, 2
jb 0x411fc4
mov eax, dword [ebp + 0x10]
jmp 0x411f90
mov eax, dword [ebp + 0x10]
mov ebx, esi
sub ebx, eax
mov esi, dword [ebp + 0xc]
lea eax, [eax + ecx*4]
mov dword [ebp + 0x14], edx
and dword [ebp + 0x14], 0xfffffffe
sub edi, dword [ebp + 0x10]
mov dword [ebp - 0x18], edi
movq xmm1, qword [eax + ebx]
lea eax, [eax + 8]
movq xmm0, qword [eax - 8]
add ecx, 2
xorps xmm1, xmm0
movq qword [eax + edi - 8], xmm1
cmp ecx, dword [ebp + 0x14]
jl 0x411fa3
mov edi, dword [ebp + 8]
cmp ecx, edx
jge 0x411fe6
mov ebx, dword [ebp + 0x10]
sub esi, ebx
lea eax, [ebx + ecx*4]
sub edi, ebx
sub edx, ecx
mov ecx, dword [esi + eax]
lea eax, [eax + 4]
xor ecx, dword [eax - 4]
mov dword [edi + eax - 4], ecx
sub edx, 1
jne 0x411fd4
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x411ff0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0x14]
test ebx, ebx
jle 0x412053
mov eax, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
add eax, 2
sub dword [ebp + 0x10], edi
nop dword [eax]
movzx ecx, byte [eax - 1]
lea eax, [eax + 4]
movzx edx, byte [eax - 3]
lea edi, [edi + 4]
mov esi, dword [ecx*4 + 0x478688]
movzx ecx, byte [eax - 6]
xor esi, dword [edx*4 + 0x478e88]
xor esi, dword [ecx*4 + 0x478288]
movzx ecx, byte [eax - 4]
xor esi, dword [ecx*4 + 0x478a88]
mov ecx, dword [ebp + 0x10]
xor esi, dword [ecx + edi - 4]
mov dword [edi - 4], esi
sub ebx, 1
jne 0x412010
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4121f0
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x47a540]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov ebx, dword [eax]
lea esi, [eax + 0x2c]
mov edi, dword [ebp + 8]
lea ecx, [eax + 0xc]
push ebx
push esi
mov dword [ebp - 0x2c], ecx
mov ecx, dword [eax + 8]
push edi
push edi
mov dword [ebp - 0x28], ecx
call fcn.00411e80
lea eax, [ebx*4]
add esp, 0x10
add esi, eax
mov eax, dword [ebp - 0x28]
cmp eax, 1
jle 0x412271
dec eax
mov dword [ebp - 0x28], eax
nop dword [eax + eax]
push str.cw
push ebx
push dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
push edi
push eax
call fcn.00412060
push ebx
push esi
lea eax, [ebp - 0x24]
push eax
push edi
call fcn.00411ff0
lea eax, [ebx*4]
add esp, 0x24
add esi, eax
sub dword [ebp - 0x28], 1
jne 0x412240
push str.cw
push ebx
push dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
push edi
push eax
call fcn.00412060
push ebx
push esi
lea eax, [ebp - 0x24]
push eax
push edi
call fcn.00411e80
mov ecx, dword [ebp - 4]
add esp, 0x24
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0041305e
mov esp, ebp
pop ebp
ret
Function at 0x4129b0
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
push 0x64
push 0x47dd00
call fcn.0040aef0
add esp, 8
test eax, eax
je 0x4129dd
push dword [ebp + 0xc]
push 0x47dd00
push dword [ebp + 8]
call fcn.0040b920
add esp, 0xc
xor eax, eax
pop ebp
ret
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
xor eax, eax
pop ebp
ret

Function at 0x413943
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x413982
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x413982
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x413982
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x413982
cmp dword [ecx + 0x74], 0xe
jbe 0x413982
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x439822
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x439861
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x439861
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x439861
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x439861
cmp dword [ecx + 0x74], 0xe
jbe 0x439861
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x43f32d
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x47ec18]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x43f36d
cmp byte [ebx], 0xa
jne 0x43f36d
or byte [edi + eax + 0x28], 4
jmp 0x43f372
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x43f471
mov dl, byte [eax]
cmp dl, 0x1a
je 0x43f454
inc eax
cmp dl, 0xd
je 0x43f39e
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x43f3c4
cmp eax, ecx
jae 0x43f3d2
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x43f386
jmp 0x43f471
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x43f44f
cmp dword [ebp - 0x10], 0
je 0x43f44f
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x47ec18]
test byte [eax + edi + 0x28], 0x48
je 0x43f429
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x43f414
mov byte [esi], dl
jmp 0x43f425
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x47ec18]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x43f471
cmp byte [ebp - 1], 0xa
jne 0x43f438
cmp esi, ebx
jne 0x43f438
mov byte [esi], 0xa
jmp 0x43f470
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0044edbc
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x43f471
mov byte [esi], 0xd
jmp 0x43f470
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x47ec18]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x43f46e
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x43f471
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x43f47a
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x47ec18]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x43f4c0
cmp word [ebx], dx
jne 0x43f4c0
or byte [eax + edi + 0x28], 4
jmp 0x43f4c5
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x43f628
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x43f608
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x43f506
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x43f53c
cmp eax, edx
jae 0x43f54a
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x43f4e1
jmp 0x43f628
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x43f603
cmp dword [ebp - 0x18], 0
je 0x43f603
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x47ec18]
test byte [eax + edi + 0x28], 0x48
je 0x43f5d9
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x43f59d
mov word [esi], cx
jmp 0x43f5d4
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x47ec18]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x47ec18]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x47ec18]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x43f628
pop eax
cmp word [ebp - 4], ax
jne 0x43f5e9
cmp esi, ebx
jne 0x43f5e9
mov word [esi], ax
jmp 0x43f625
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0044edbc
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x43f628
push 0xd
pop eax
jmp 0x43f5e4
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x47ec18]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x43f622
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x43f628
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret