joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4dcbb0
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x50], 0xffffffff
je 0x4dcbe4
push dword [esi + 0x4c]
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0xffffffffffffffff
push dword [esi + 0x50]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esi + 0x50]
cmp eax, 0xffffffff
je 0x4dcbe4
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x50], 0xffffffff
push dword [esi + 0x4c]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push 0
push 0
push esi
push 0x4dadc0
push 0
push 0
call fcn.0050ec18
mov edi, eax
add esp, 0x18
test edi, edi
je 0x4dcc1b
mov ecx, dword [esi + 0x50]
cmp ecx, 0xffffffff
je 0x4dcc18
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x50], edi
pop edi
pop esi
ret

Function at 0x4ddc90
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push dword [ecx + 0x10]
push dword [ebp + 0xc]
push 1
push dword [ebp + 8]
call fcn.0050be9b
add esp, 0x10
cmp eax, dword [ebp + 0xc]
sete al
pop ebp
ret 8

Function at 0x4dddb0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x588eb0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
mov eax, ecx
push edi
mov edi, eax
mov dword [ebp - 0x210], eax
mov edx, esi
sub edi, esi
nop word [eax + eax]
movzx eax, word [edx]
lea edx, [edx + 2]
mov word [edi + edx - 2], ax
test ax, ax
jne 0x4ddde0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp eax, 0xffffffff
je 0x4dde06
test al, 0x10
jne 0x4dde13
push 0
push esi
call edi
test eax, eax
je 0x4ddeba
lea ecx, [ebp - 0x20c]
sub ecx, esi
nop dword [eax + eax]
movzx eax, word [esi]
lea esi, [esi + 2]
mov word [ecx + esi - 2], ax
test ax, ax
jne 0x4dde20
lea ecx, [ebp - 0x20c]
add ecx, 0xfffffffe
nop dword [eax]
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x4dde40
mov eax, dword [str.SSL]
mov dword [ecx], eax
mov eax, dword [0x52bec8]
mov dword [ecx + 4], eax
mov ax, word [0x52becc]
mov word [ecx + 8], ax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4dde7b
test al, 0x10
jne 0x4dde8a
push 0
lea eax, [ebp - 0x20c]
push eax
call edi
test eax, eax
je 0x4ddeba
mov ecx, dword [ebp - 0x210]
lea eax, [ebp - 0x20c]
push eax
add ecx, 0x208
call fcn.004db660
test al, al
je 0x4ddeba
pop edi
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004fbc95
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
xor al, al
pop edi
xor ecx, ebp
pop esi
call fcn.004fbc95
mov esp, ebp
pop ebp
ret 4

Function at 0x4e0000
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ecx + 4]
sub esp, 8
cmp eax, 0xffffffff
jne 0x4e0016
xor eax, eax
xor edx, edx
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edx, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x4e29e0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x526b28
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x588eb0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
jb 0x4e2a13
mov eax, dword [eax]
push 0x52bca4
push eax
call fcn.0050a7e8
add esp, 8
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4e2b3e
xor edi, edi
xor ebx, ebx
xor esi, esi
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x20], edi
push eax
push 1
lea eax, [ebp + 0xb]
mov dword [ebp - 4], edi
push 1
push eax
call fcn.0050b4f5
add esp, 0x10
test eax, eax
je 0x4e2a9d
mov ebx, dword [ebp - 0x14]
nop dword [eax]
cmp edi, esi
je 0x4e2a6f
mov al, byte [ebp + 0xb]
mov byte [esi], al
inc esi
mov dword [ebp - 0x24], esi
jmp 0x4e2a82
lea eax, [ebp + 0xb]
push eax
push esi
lea ecx, [ebp - 0x28]
call fcn.004e0140
mov edi, dword [ebp - 0x20]
mov esi, dword [ebp - 0x24]
push ebx
push 1
lea eax, [ebp + 0xb]
push 1
push eax
call fcn.0050b4f5
add esp, 0x10
test eax, eax
jne 0x4e2a60
mov ebx, dword [ebp - 0x28]
mov dword [ebp - 0x18], edi
push dword [ebp - 0x14]
call fcn.0050a8d3
mov eax, dword [ebp + 0xc]
add esp, 4
mov ecx, dword [eax + 0x10]
mov eax, esi
sub eax, ebx
mov dword [ebp - 0x1c], ecx
cmp eax, ecx
ja 0x4e2ac2
mov byte [ebp - 0xd], 0
jmp 0x4e2b56
xor edx, edx
mov dword [ebp - 0x14], edx
xor eax, eax
test ecx, ecx
je 0x4e2aff
mov esi, dword [ebp + 0xc]
cmp dword [esi + 0x14], 8
mov edi, esi
jb 0x4e2ada
mov edi, dword [esi]
lea ecx, [ebx + eax]
movsx edx, byte [ecx + edx]
movzx ecx, word [edi + eax*2]
cmp edx, ecx
jne 0x4e2af6
mov ecx, dword [esi + 0x10]
inc eax
mov edx, dword [ebp - 0x14]
cmp eax, ecx
jb 0x4e2ad0
jmp 0x4e2af9
mov ecx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x24]
mov edx, dword [ebp - 0x14]
cmp eax, ecx
je 0x4e2b52
mov eax, esi
inc edx
sub eax, ecx
mov dword [ebp - 0x14], edx
sub eax, ebx
cmp edx, eax
jbe 0x4e2ac7
test ebx, ebx
je 0x4e2b3e
mov ecx, dword [ebp - 0x18]
mov eax, ebx
sub ecx, ebx
cmp ecx, 0x1000
jb 0x4e2b34
mov ebx, dword [ebx - 4]
add ecx, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4e2b98
push ecx
push ebx
call fcn.004fbca6
add esp, 8
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov byte [ebp - 0xd], 1
test ebx, ebx
je 0x4e2b83
mov ecx, dword [ebp - 0x18]
mov eax, ebx
sub ecx, ebx
cmp ecx, 0x1000
jb 0x4e2b79
mov ebx, dword [ebx - 4]
add ecx, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4e2b9d
push ecx
push ebx
call fcn.004fbca6
add esp, 8
mov al, byte [ebp - 0xd]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.00501cb1
call fcn.00501cb1
int3
Function at 0x4efa50
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5277ae
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x588eb0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov word [esi + 4], 0x100
mov eax, dword [ebp + 8]
lea ecx, [esi + 0x14]
mov dword [esi + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], 0
mov dword [esi], vtable.ProtocolFilters::POP3Filter.0
mov dword [esi + 0xc], eax
call fcn.004d41d0
push 1
push 1
push 0x12c
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 1
call fcn.004d3320
mov ecx, dword [esi + 8]
lea eax, [esi + 0x44]
push eax
mov byte [ebp - 4], 2
call fcn.004e4440
mov dword [esi + 0x10], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0x2c], eax
mov eax, esi
mov byte [esi + 5], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x4f08f0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5277ae
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x588eb0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov word [esi + 4], 0x100
mov eax, dword [ebp + 8]
lea ecx, [esi + 0x14]
mov dword [esi + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], 0
mov dword [esi], vtable.ProtocolFilters::SMTPFilter.0
mov dword [esi + 0xc], eax
call fcn.004d41d0
push 1
push 1
push 0x190
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 1
call fcn.004d3320
mov ecx, dword [esi + 8]
lea eax, [esi + 0x44]
push eax
mov byte [ebp - 4], 2
call fcn.004e4440
mov dword [esi + 0x10], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0x2c], eax
mov eax, esi
mov byte [esi + 5], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x4f50f0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5277ae
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x588eb0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov word [esi + 4], 0x100
mov eax, dword [ebp + 8]
lea ecx, [esi + 0x14]
mov dword [esi + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], 0
mov dword [esi], vtable.ProtocolFilters::NNTPFilter.0
mov dword [esi + 0xc], eax
call fcn.004d41d0
push 1
push 1
push 0x384
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 1
call fcn.004d3320
mov ecx, dword [esi + 8]
lea eax, [esi + 0x44]
push eax
mov byte [ebp - 4], 2
call fcn.004e4440
mov dword [esi + 0x10], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0x2c], eax
mov eax, esi
mov byte [esi + 5], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x4f7650
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x527e49
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x588eb0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov word [edi + 4], 0x100
mov esi, dword [ebp + 0xc]
lea ecx, [edi + 8]
mov eax, esi
mov dword [ebp - 4], 0
shr eax, 3
and al, 1
mov dword [edi], vtable.ProtocolFilters::XMPPFilter.0
movzx eax, al
push eax
push 0x44c
call fcn.004f7710
mov eax, esi
mov byte [ebp - 4], 1
shr eax, 2
lea ecx, [edi + 0x30]
and al, 1
movzx eax, al
push eax
push 0x44d
call fcn.004f7710
mov eax, dword [ebp + 8]
lea ecx, [edi + 0x64]
mov byte [ebp - 4], 2
mov byte [edi + 0x58], 1
mov dword [edi + 0x5c], eax
mov dword [edi + 0x60], esi
call fcn.004df7e0
lea ecx, [edi + 0xa0]
mov byte [ebp - 4], 3
call fcn.004df7e0
mov byte [edi + 5], 0
mov eax, edi
mov byte [edi + 0xdc], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x4f7fe0
Capabilities:
Compute adler32 checksum

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
movzx ecx, si
shr esi, 0x10
test edi, edi
jne 0x4f7ffc
lea eax, [edi + 1]
pop edi
pop esi
pop ebp
ret
push ebx
mov ebx, dword [ebp + 0x10]
test ebx, ebx
je 0x4f8101
nop dword [eax + eax]
mov edx, 0x15b0
cmp ebx, edx
cmovb edx, ebx
sub ebx, edx
mov dword [ebp + 0x10], ebx
cmp edx, 0x10
jl 0x4f80c4
mov ebx, edx
shr ebx, 4
mov eax, ebx
neg eax
shl eax, 4
add edx, eax
movzx eax, byte [edi]
add ecx, eax
movzx eax, byte [edi + 1]
add esi, ecx
add ecx, eax
movzx eax, byte [edi + 2]
add esi, ecx
add ecx, eax
movzx eax, byte [edi + 3]
add esi, ecx
add ecx, eax
movzx eax, byte [edi + 4]
add esi, ecx
add ecx, eax
movzx eax, byte [edi + 5]
add esi, ecx
add ecx, eax
movzx eax, byte [edi + 6]
add esi, ecx
add ecx, eax
movzx eax, byte [edi + 7]
add esi, ecx
add ecx, eax
movzx eax, byte [edi + 8]
add esi, ecx
add ecx, eax
movzx eax, byte [edi + 9]
add esi, ecx
add ecx, eax
movzx eax, byte [edi + 0xa]
add esi, ecx
add ecx, eax
movzx eax, byte [edi + 0xb]
add esi, ecx
add ecx, eax
movzx eax, byte [edi + 0xc]
add esi, ecx
add ecx, eax
movzx eax, byte [edi + 0xd]
add esi, ecx
add ecx, eax
movzx eax, byte [edi + 0xe]
add esi, ecx
add ecx, eax
movzx eax, byte [edi + 0xf]
add esi, ecx
add edi, 0x10
add ecx, eax
add esi, ecx
sub ebx, 1
jne 0x4f8036
mov ebx, dword [ebp + 0x10]
test edx, edx
je 0x4f80d5
movzx eax, byte [edi]
inc edi
add ecx, eax
add esi, ecx
sub edx, 1
jne 0x4f80c8
mov eax, 0x80078071
mul ecx
shr edx, 0xf
imul eax, edx, 0xffff000f
add ecx, eax
mov eax, 0x80078071
mul esi
shr edx, 0xf
imul edx, edx, 0xffff000f
add esi, edx
test ebx, ebx
jne 0x4f8010
shl esi, 0x10
pop ebx
or esi, ecx
pop edi
mov eax, esi
pop esi
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x4f811c
pop ebp
ret
mov dword [ebp + 0xc], eax
pop ebp
jmp fcn.004f8130
Function at 0x5163d6
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00516255

Function at 0x51ce0c
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0051cacc
Function at 0x4fc070
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xa1000]
push edi
jmp 0x4fc08a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4fc091
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4fc080
mov eax, 1
add ebx, ebx
jne 0x4fc0a3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4fc0b4
jne 0x4fc0d3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4fc0d3
dec eax
add ebx, ebx
jne 0x4fc0c0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4fc098
add ebx, ebx
jne 0x4fc0cf
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4fc125
xor ecx, ecx
sub eax, 3
jb 0x4fc0eb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4fc15a
sar eax, 1
mov ebp, eax
jmp 0x4fc0f6
add ebx, ebx
jne 0x4fc0f6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4fc0c4
inc ecx
add ebx, ebx
jne 0x4fc104
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4fc0c4
add ebx, ebx
jne 0x4fc111
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4fc106
jne 0x4fc122
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4fc106
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4fc144
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4fc136
jmp 0x4fc086
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4fc144
add edi, ecx
jmp 0x4fc086
pop esi
mov edi, esi
mov ecx, 0x3b6c
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4fc162
cmp byte [edi], 0x17
jne 0x4fc162
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x4fc167
lea edi, [esi + 0xf6000]
mov eax, dword [edi]
or eax, eax
je 0x4fc1d6
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x117178]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x11720c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4fc194
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x117214]
or eax, eax
je 0x4fc1d0
mov dword [ebx], eax
add ebx, 4
jmp 0x4fc1b1
call dword [esi + 0x117210]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x4fc207
cmp al, 0xef
ja 0x4fc1fa
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x4fc1dc
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x4fc1e9
mov ebp, dword [esi + 0x117218]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x22f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4fc23b
sub esp, 0xffffff80
jmp 0x435126
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x426008]
jne 0x40100a
repz ret
jmp fcn.00401cf1

Function at 0x40773b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00402a1a
and dword [ebp - 4], 0
cmp dword [0x428008], 0
mov ebx, eax
jne 0x4077ec
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40789d
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40789d
push eax
call fcn.004029a8
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x428008], eax
call esi
push eax
call fcn.004029a8
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x42800c], eax
call esi
push eax
call fcn.004029a8
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x428010], eax
call esi
push eax
call fcn.004029a8
pop ecx
mov dword [0x428018], eax
test eax, eax
je 0x4077ec
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004029a8
pop ecx
mov dword [0x428014], eax
mov eax, dword [0x428014]
cmp eax, ebx
je 0x407844
cmp dword [0x428018], ebx
je 0x407844
push eax
call fcn.00402a23
push dword [0x428018]
mov esi, eax
call fcn.00402a23
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x407844
test edi, edi
je 0x407844
call esi
test eax, eax
je 0x40783b
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40783b
test byte [ebp - 0xc], 1
jne 0x407844
or dword [ebp + 0x10], 0x200000
jmp 0x40787d
mov eax, dword [0x42800c]
cmp eax, ebx
je 0x40787d
push eax
call fcn.00402a23
pop ecx
test eax, eax
je 0x40787d
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40787d
mov eax, dword [0x428010]
cmp eax, ebx
je 0x40787d
push eax
call fcn.00402a23
pop ecx
test eax, eax
je 0x40787d
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x428008]
call fcn.00402a23
pop ecx
test eax, eax
je 0x40789d
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40789f
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x41eb60
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xc
cmp edi, 0x19f
jne 0x41eb79
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
xor edx, edx
test edi, edi
jle 0x41ebc2
nop
lea ecx, [esp + 8]
mov dword [esp], 5
mov dword [esp + 8], 0
call fcn.0041eb50
mov eax, dword [esp + 8]
add eax, 0x46
mov dword [esp], eax
nop
sub dword [esp], 0x46
movsx eax, byte [edx + esi]
mov dword [esp + 4], eax
mov eax, dword [esp]
xor dword [esp + 4], eax
mov cl, byte [esp + 4]
mov byte [edx + esi], cl
inc edx
cmp edx, edi
jl 0x41eb80
cmp edi, 0x2d
jne 0x41ebdb
mov dword [0x2b26220], 0xa62e7790
mov dword [0x2b26224], 0xffffffff
add esp, 0xc
ret
Function at 0x40bf90
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, edx
shr edi, 2
xor edx, edx
mov eax, edi
mov dword [ebp - 4], 1
shr eax, 1
add eax, 3
mov dword [ecx], eax
add ecx, 0x10
test edi, edi
je 0x40bfc5
mov eax, dword [esi]
lea esi, [esi + 4]
mov dword [ecx + edx*4], eax
inc edx
cmp edx, edi
jb 0x40bfb8
mov ebx, dword [ecx + edi*4 - 4]
lea eax, [edi + 0xe]
lea eax, [edi + eax*2]
lea esi, [ecx + eax*4]
mov dword [ebp + 8], esi
xor esi, esi
mov eax, dword [ebp + 8]
nop word [eax + eax]
test esi, esi
jne 0x40c041
movzx eax, bl
mov esi, dword [ebp - 4]
movzx edx, byte [eax + str.cw]
mov eax, ebx
shr eax, 0x18
shl edx, 8
movzx eax, byte [eax + str.cw]
or edx, eax
mov eax, ebx
shr eax, 0x10
movzx eax, al
shr ebx, 8
shl edx, 8
movzx eax, byte [eax + str.cw]
or edx, eax
movzx eax, bl
shl edx, 8
movzx ebx, byte [eax + str.cw]
mov eax, 0x1b
xor ebx, esi
add esi, esi
or ebx, edx
test esi, 0x100
cmovne esi, eax
mov dword [ebp - 4], esi
mov esi, edi
jmp 0x40c08e
cmp esi, 4
jne 0x40c091
cmp edi, 6
jbe 0x40c091
mov eax, ebx
shr eax, 0x10
movzx eax, al
movzx edx, byte [eax + str.cw]
mov eax, ebx
shr eax, 0x18
movzx eax, byte [eax + str.cw]
shl eax, 8
or edx, eax
mov eax, ebx
shr eax, 8
movzx eax, al
shl edx, 8
movzx eax, byte [eax + str.cw]
or edx, eax
movzx eax, bl
shl edx, 8
movzx ebx, byte [eax + str.cw]
or ebx, edx
mov eax, dword [ebp + 8]
xor ebx, dword [ecx]
dec esi
mov dword [ecx + edi*4], ebx
add ecx, 4
cmp ecx, eax
jne 0x40bfe0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40cda0
Capabilities:
Check os version
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2d4
mov eax, dword [0x479d24]
xor eax, ebp
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp ax, 6
je 0x40cde9
push str.SetDefaultDllDirectories
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40cde9
push 0xc00
call eax
test eax, eax
jne 0x40ce87
push 0x106
lea eax, [ebp - 0x2d4]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x40ce87
cmp eax, 0x104
ja 0x40ce87
cmp word [ebp + eax*2 - 0x2d6], 0x5c
je 0x40ce27
mov ecx, 0x5c
mov word [ebp + eax*2 - 0x2d4], cx
inc eax
cmp byte [str.userenv], 0
push esi
mov esi, str.userenv
je 0x40ce86
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push edi
lea edi, [ebp - 0x2d4]
lea edi, [edi + eax*2]
mov al, byte [esi]
mov ecx, edi
inc esi
test al, al
je 0x40ce60
movzx eax, al
mov word [ecx], ax
add ecx, 2
mov al, byte [esi]
inc esi
test al, al
jne 0x40ce50
xor eax, eax
mov dword [ecx], 0x64002e
push 8
push eax
mov word [ecx + 8], ax
lea eax, [ebp - 0x2d4]
push eax
mov dword [ecx + 4], 0x6c006c
call ebx
cmp byte [esi], 0
jne 0x40ce47
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004366be
mov esp, ebp
pop ebp
ret
Function at 0x412140
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edx, dword [esi + 8]
and edx, 0x3f
mov byte [edx + esi + 0x40], 0x80
inc edx
cmp edx, 0x38
jbe 0x412189
cmp edx, 0x40
je 0x41217b
mov ecx, 0x40
lea edi, [esi + 0x40]
sub ecx, edx
add edi, edx
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esi]
lea edx, [esi + 0x40]
push 1
lea ecx, [esi + 0x20]
call eax
xor edx, edx
mov eax, 0x38
sub eax, edx
push eax
lea eax, [esi + 0x40]
add eax, edx
push 0
push eax
call fcn.004380b0
mov ecx, dword [esi + 8]
lea edx, [esi + 0x40]
mov eax, dword [esi + 0xc]
add esp, 0xc
shld eax, ecx, 3
shl ecx, 3
bswap eax
bswap ecx
mov dword [esi + 0x78], eax
mov eax, dword [esi]
mov dword [esi + 0x7c], ecx
lea ecx, [esi + 0x20]
push 1
call eax
mov edi, dword [ebp + 0xc]
lea edx, [esi + 0x20]
mov ebx, 4
nop
mov ecx, dword [edx + 4]
lea edi, [edi + 8]
mov eax, dword [edx]
lea edx, [edx + 8]
bswap eax
mov dword [edi - 8], eax
bswap ecx
mov dword [edi - 4], ecx
sub ebx, 1
jne 0x4121d0
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
pop edi
mov dword [esi + 0x20], 0x6a09e667
mov dword [esi + 0x24], 0xbb67ae85
mov dword [esi + 0x28], 0x3c6ef372
mov dword [esi + 0x2c], 0xa54ff53a
mov dword [esi + 0x30], 0x510e527f
mov dword [esi + 0x34], 0x9b05688c
mov dword [esi + 0x38], 0x1f83d9ab
mov dword [esi + 0x3c], 0x5be0cd19
pop esi
pop ebx
pop ebp
ret 8

Function at 0x412230
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, dword [0x476020]
mov dword [ecx], eax
mov dword [ecx + 8], 0
mov dword [ecx + 0xc], 0
mov dword [ecx + 0x20], 0x6a09e667
mov dword [ecx + 0x24], 0xbb67ae85
mov dword [ecx + 0x28], 0x3c6ef372
mov dword [ecx + 0x2c], 0xa54ff53a
mov dword [ecx + 0x30], 0x510e527f
mov dword [ecx + 0x34], 0x9b05688c
mov dword [ecx + 0x38], 0x1f83d9ab
mov dword [ecx + 0x3c], 0x5be0cd19
pop ebp
ret 4

Function at 0x412670
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 0
push 0
call fcn.0043b897
mov ecx, dword [ebp + 8]
add esp, 0x18
mov dword [ecx], eax
test eax, eax
je 0x41269d
xor eax, eax
mov esp, ebp
pop ebp
ret 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
mov ecx, 1
cmovne ecx, eax
mov eax, ecx
mov esp, ebp
pop ebp
ret 0xc