joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10132ac0
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa4
mov eax, dword [0x101fd398]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x10132c93
push ebx
dec edi
lea ebx, [edx + 0xc]
add edx, 0x14
shr edi, 3
push esi
mov esi, dword [ebp + 0xc]
inc edi
mov dword [ebp - 0x94], ebx
mov dword [ebp - 0x90], edx
nop
movzx eax, byte [esi + 1]
lea esi, [esi + 8]
movzx ecx, byte [esi - 8]
shl eax, 8
or ecx, eax
movzx eax, byte [esi - 6]
shl eax, 0x10
or ecx, eax
movzx eax, byte [esi - 5]
shl eax, 0x18
or ecx, eax
movzx eax, byte [esi - 3]
shl eax, 8
mov dword [ebp - 0x88], ecx
mov dword [ebp - 0x9c], ecx
mov dword [ebp - 0xa4], ecx
movzx ecx, byte [esi - 4]
or ecx, eax
movzx eax, byte [esi - 2]
shl eax, 0x10
or ecx, eax
movzx eax, byte [esi - 1]
shl eax, 0x18
or ecx, eax
movzx eax, byte [ebx]
and al, 0xdf
mov dword [ebp - 0x8c], ecx
or al, 0x40
mov dword [ebp - 0x98], ecx
mov byte [ebx], al
movzx eax, byte [edx]
and al, 0xbf
mov dword [ebp - 0xa0], ecx
or al, 0x20
push ebx
mov byte [edx], al
call fcn.100eebc0
lea eax, [ebp - 0x84]
push eax
push ebx
call fcn.100ee980
push 1
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0xa4]
push eax
call fcn.10116110
mov ebx, dword [ebp - 0x90]
push ebx
call fcn.100eebc0
lea eax, [ebp - 0x84]
push eax
push ebx
call fcn.100ee980
push 1
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x9c]
push eax
call fcn.10116110
mov ecx, dword [ebp - 0x8c]
add esp, 0x30
mov edx, dword [ebp - 0x98]
mov eax, dword [ebp - 0x88]
xor edx, ecx
xor ecx, dword [ebp - 0xa0]
mov ebx, dword [ebp - 0x9c]
xor ebx, eax
mov dword [ebp - 0x8c], ecx
xor eax, dword [ebp - 0xa4]
mov ecx, dword [ebp - 0x94]
mov dword [ebp - 0x88], eax
mov byte [ecx], al
shr eax, 8
mov byte [ecx + 1], al
mov eax, dword [ebp - 0x88]
shr eax, 0x10
mov byte [ecx + 2], al
mov eax, dword [ebp - 0x88]
shr eax, 0x18
mov byte [ecx + 3], al
mov byte [ecx + 4], dl
mov eax, edx
shr eax, 8
mov byte [ecx + 5], al
mov eax, edx
shr eax, 0x10
mov byte [ecx + 6], al
mov eax, ebx
shr edx, 0x18
mov byte [ecx + 7], dl
mov ecx, dword [ebp - 0x90]
mov edx, dword [ebp - 0x8c]
shr eax, 8
mov byte [ecx], bl
mov byte [ecx + 1], al
mov eax, ebx
shr eax, 0x10
mov byte [ecx + 2], al
mov eax, edx
shr ebx, 0x18
mov byte [ecx + 3], bl
mov ebx, dword [ebp - 0x94]
mov byte [ecx + 4], dl
shr eax, 8
mov byte [ecx + 5], al
mov eax, edx
shr eax, 0x10
shr edx, 0x18
mov byte [ecx + 6], al
mov byte [ecx + 7], dl
mov edx, ecx
sub edi, 1
jne 0x10132b00
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.10153588
mov esp, ebp
pop ebp
ret
Function at 0x10139fc0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov ecx, dword [edx + 4]
mov esi, edx
push edi
cmp ecx, dword [ebx + 4]
mov edi, dword [ebp + 8]
cmovge esi, ebx
cmovge ebx, edx
mov dword [ebp + 0xc], esi
mov eax, dword [ebx + 4]
cmp eax, dword [edi + 8]
jg 0x10139fec
mov eax, edi
jmp 0x10139ff6
push eax
push edi
call fcn.10080b10
add esp, 8
test eax, eax
jne 0x10139fff
pop edi
pop esi
pop ebx
pop ebp
ret
mov eax, dword [ebp + 0xc]
xor esi, esi
cmp dword [eax + 4], esi
jle 0x1013a028
nop dword [eax]
mov eax, dword [eax]
mov ecx, dword [ebx]
mov edx, dword [eax + esi*4]
mov eax, dword [edi]
xor edx, dword [ecx + esi*4]
mov dword [eax + esi*4], edx
inc esi
mov eax, dword [ebp + 0xc]
cmp esi, dword [eax + 4]
jl 0x1013a010
mov eax, dword [ebx + 4]
cmp esi, eax
jge 0x1013a042
nop
mov eax, dword [ebx]
mov ecx, dword [edi]
mov eax, dword [eax + esi*4]
mov dword [ecx + esi*4], eax
inc esi
mov eax, dword [ebx + 4]
cmp esi, eax
jl 0x1013a030
mov dword [edi + 4], eax
test eax, eax
jle 0x1013a062
mov edx, dword [edi]
add edx, 0xfffffffc
lea edx, [edx + eax*4]
mov ecx, dword [edx]
lea edx, [edx - 4]
test ecx, ecx
jne 0x1013a05f
dec eax
test eax, eax
jg 0x1013a051
mov dword [edi + 4], eax
pop edi
pop esi
mov eax, 1
pop ebx
pop ebp
ret
Function at 0x10142520
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x101fd398]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0x14]
mov dword [ebp - 0x18], eax
mov eax, dword [ecx]
push ebx
mov ebx, dword [ebp + 0x18]
mov dword [ebp - 0xc], eax
mov eax, dword [ecx + 4]
mov dword [ebp - 8], eax
test ebx, ebx
jle 0x101425eb
mov eax, dword [ebp + 0x10]
push esi
push edi
lea esi, [edx + 2]
lea edi, [eax + 3]
sub eax, edx
mov dword [ebp + 0x10], eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x18]
call fcn.10142930
mov al, byte [edi - 3]
lea edi, [edi + 8]
xor al, byte [ebp - 0x14]
lea esi, [esi + 8]
mov byte [esi - 0xa], al
add esp, 0xc
mov byte [ebp - 0xc], al
mov al, byte [edi - 0xa]
xor al, byte [ebp - 0x13]
mov byte [esi - 9], al
mov byte [ebp - 0xb], al
mov eax, dword [ebp + 0x10]
mov al, byte [eax + esi - 8]
xor al, byte [ebp - 0x12]
mov byte [esi - 8], al
mov byte [ebp - 0xa], al
mov al, byte [edi - 8]
xor al, byte [ebp - 0x11]
mov byte [esi - 7], al
mov byte [ebp - 9], al
mov al, byte [edi - 7]
xor al, byte [ebp - 0x10]
mov byte [esi - 6], al
mov byte [ebp - 8], al
mov al, byte [edi - 6]
xor al, byte [ebp - 0xf]
mov byte [esi - 5], al
mov byte [ebp - 7], al
mov al, byte [edi - 5]
xor al, byte [ebp - 0xe]
mov byte [esi - 4], al
mov byte [ebp - 6], al
mov al, byte [edi - 4]
xor al, byte [ebp - 0xd]
mov byte [esi - 3], al
mov byte [ebp - 5], al
sub ebx, 1
jne 0x10142563
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.10153588
mov esp, ebp
pop ebp
ret
Function at 0x1017238a
Capabilities:
Read file on windows

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

Function at 0x101768ad
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1017656d
Function at 0x4045d0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
movzx eax, byte [0x4375ac]
test eax, eax
je 0x4045e6
jmp 0x404642
mov ecx, dword [0x4375a8]
shl ecx, 1
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
push edx
push 0x20
lea eax, [ebp - 0x108]
push eax
call sub.NTOSKRNL.EXE_memset
add esp, 0xc
mov ecx, 0x100
sub ecx, dword [ebp - 4]
sub ecx, 1
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 4]
lea ecx, [ebp + eax - 0x108]
push ecx
call dword [sym.imp.NTOSKRNL.EXE_strncpy]
add esp, 0xc
mov byte [ebp - 9], 0
lea edx, [ebp - 0x108]
push edx
push 0x401138
call sub.NTOSKRNL.EXE_DbgPrint
add esp, 8
mov esp, ebp
pop ebp
ret 4

Function at 0x404650
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
movzx eax, byte [0x4375ac]
test eax, eax
je 0x404666
jmp 0x4046dd
mov ecx, dword [0x4375a8]
shl ecx, 1
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
push edx
push 0x20
lea eax, [ebp - 0x108]
push eax
call sub.NTOSKRNL.EXE_memset
add esp, 0xc
mov ecx, dword [ebp - 4]
mov byte [ebp + ecx - 0x108], 0
lea edx, [ebp + 0xc]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, 0x100
sub edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 4]
lea ecx, [ebp + eax - 0x108]
push ecx
call dword [sym.imp.NTOSKRNL.EXE__vsnprintf]
add esp, 0x10
add eax, dword [ebp - 4]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0
lea edx, [ebp - 0x108]
push edx
push 0x401138
call sub.NTOSKRNL.EXE_DbgPrint
add esp, 8
mov esp, ebp
pop ebp
ret

Function at 0x4054c0
Capabilities:
Complete processing asynchronous io request

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov dword [eax + 0x18], ecx
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
mov dword [edx + 0x1c], eax
mov dl, byte [ebp + 0x14]
mov ecx, dword [ebp + 8]
call dword [sym.imp.NTOSKRNL.EXE_IofCompleteRequest]
mov eax, dword [ebp + 0xc]
pop ebp
ret 0x10
Function at 0x40db50
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x14], ecx
lea ecx, [ebp - 0xd]
call fcn.00405450
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x14]
mov eax, dword [edx + 4]
call eax
call fcn.0041e8b0
push 0x10001
push 0x10002
push 0x10000
push 0x100000
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0x128c14]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x128c14]
mov edx, dword [edx]
mov eax, dword [edx]
call eax
mov dword [ebp - 8], 0x3ef148
mov ecx, dword [ebp - 0x14]
add ecx, 0x100940
call fcn.0041c490
cmp eax, 2
jne 0x40dbc0
mov dword [ebp - 8], 0x16b4df
mov ecx, dword [ebp - 8]
push ecx
push 0x20000
push 0x110000
push 0x20001
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0x128c10]
mov ecx, dword [ebp - 0x14]
mov ecx, dword [ecx + 0x128c10]
mov edx, dword [eax]
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x14]
add ecx, 0x4c
push ecx
call dword [sym.imp.NTOSKRNL.EXE_KeClearEvent]
mov edx, dword [ebp - 0x14]
push edx
push 0x40ba00
push 0
push 0
push 0
push 0x1f03ff
lea eax, [ebp - 4]
push eax
call dword [sym.imp.NTOSKRNL.EXE_PsCreateSystemThread]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jge 0x40dc3b
push 0
push 1
mov ecx, dword [ebp - 0x14]
add ecx, 0x4c
push ecx
call dword [sym.imp.NTOSKRNL.EXE_KeSetEvent]
lea ecx, [ebp - 0xd]
call fcn.00405470
jmp 0x40dc4d
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.NTOSKRNL.EXE_ZwClose]
lea ecx, [ebp - 0xd]
call fcn.00405470
mov esp, ebp
pop ebp
ret
Function at 0x41e530
Capabilities:
Execute anti-debugging instructions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
call fcn.0041e720
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x14], 0x64
mov cl, 2
call dword [sym.imp.HAL.DLL_KfRaiseIrql]
mov byte [ebp - 0x35], al
push 0
call dword [sym.imp.HAL.DLL_KeQueryPerformanceCounter]
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], edx
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x48], eax
mov ecx, dword [ebp - 0x54]
mov dword [ebp - 0x44], ecx
rdtsc
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 0x34]
imul edx, dword [ebp - 0x14]
push edx
call fcn.0041e6a0
push 0
call dword [sym.imp.HAL.DLL_KeQueryPerformanceCounter]
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], edx
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x50], eax
mov ecx, dword [ebp - 0x5c]
mov dword [ebp - 0x4c], ecx
rdtsc
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x30], eax
mov cl, byte [ebp - 0x35]
call dword [sym.imp.HAL.DLL_KfLowerIrql]
lea edx, [ebp - 0x28]
push edx
call dword [sym.imp.HAL.DLL_KeQueryPerformanceCounter]
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x64], edx
mov eax, dword [ebp - 0x50]
sub eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x4c]
sbb ecx, dword [ebp - 0x44]
push 0
push 0xf4240
push ecx
push eax
call fcn.0041e9e0
mov dword [ebp - 8], eax
mov dword [ebp - 4], edx
mov edx, dword [ebp - 0x30]
sub edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x2c]
sbb eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x24]
push ecx
mov ecx, dword [ebp - 0x28]
push ecx
push eax
push edx
call fcn.0041e9e0
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], edx
cmp dword [ebp - 4], 0
jg 0x41e61d
jl 0x41e60c
cmp dword [ebp - 8], 0x3fffffff
jae 0x41e61d
cmp dword [ebp - 0x3c], 0
jl 0x41e64d
jg 0x41e61d
cmp dword [ebp - 0x40], 0x3fffffff
jb 0x41e64d
push 0
push 2
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 8]
push eax
call fcn.0041ea20
mov dword [ebp - 8], eax
mov dword [ebp - 4], edx
push 0
push 2
mov ecx, dword [ebp - 0x3c]
push ecx
mov edx, dword [ebp - 0x40]
push edx
call fcn.0041ea20
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], edx
jmp 0x41e5fb
mov eax, 1
test eax, eax
je 0x41e658
jmp 0x41e67b
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 0x3c]
push eax
mov ecx, dword [ebp - 0x40]
push ecx
call fcn.0041ea20
push eax
push 0x402a58
call fcn.00405490
add esp, 8
mov edx, dword [ebp - 8]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x18]
mov esp, ebp
pop ebp
ret
Function at 0x41e8e0
Capabilities:
Execute anti-debugging instructions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
rdtsc
mov dword [ebp - 4], edx
mov dword [ebp - 8], eax
mov eax, 1
test eax, eax
je 0x41e927
rdtsc
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
sub ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x14]
sbb edx, dword [ebp - 4]
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 0xc]
jl 0x41e925
jg 0x41e923
mov ecx, dword [ebp - 0x10]
cmp ecx, dword [ebp + 8]
jb 0x41e925
jmp 0x41e927
jmp 0x41e8ee
mov esp, ebp
pop ebp
ret 8
Function at 0x40690e
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x42f764], 0
jne 0x40694c
xor ecx, ecx
push esi
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
movzx edx, dl
neg edx
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406922
mov dword [ecx*4 + 0x42f760], eax
inc ecx
cmp ecx, 0x100
jl 0x40691d
pop esi
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp + 8]
not eax
jbe 0x406979
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
dec dword [ebp + 0x10]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x42f760]
inc ecx
cmp dword [ebp + 0x10], 0
ja 0x40695a
not eax
pop ebp
ret 0xc

Function at 0x28cc058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x28cc1a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, pe_nt_image_headers32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x28cc07e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x28cc06a
add dl, dl
jne 0x28cc089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x28cc0dc
xor eax, eax
add dl, dl
jne 0x28cc096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x28cc17d
add dl, dl
jne 0x28cc0a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x28cc0b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x28cc0bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x28cc0c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x28cc0d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x28cc075
mov eax, 1
add dl, dl
jne 0x28cc0ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x28cc0f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x28cc0e1
sub eax, ebx
mov ebx, 1
jne 0x28cc128
mov ecx, 1
add dl, dl
jne 0x28cc10e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x28cc119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x28cc105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x28cc075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x28cc13f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x28cc14a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x28cc136
cmp eax, 0x7d00
jae 0x28cc16d
cmp eax, 0x500
jb 0x28cc168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x28cc075
cmp eax, 0x7f
ja 0x28cc170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x28cc075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x28cc19e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x28cc075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x40129f
Capabilities:
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
and dword [ebp - 0x10], 0
push ebx
push esi
mov esi, ecx
lea ecx, [ebp - 0x10]
push edi
mov dword [ebp - 0x38], esi
mov eax, dword [esi + 4]
mov edi, dword [esi]
mov dword [ebp - 0x20], eax
mov eax, dword [0x41b5c0]
mov dword [ebp - 0x30], eax
mov eax, dword [0x41b5c4]
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x34], eax
call fcn.00401298
mov ebx, dword [ebp - 0x10]
mov eax, dword [0x41b5c8]
add ebx, 0x23f
mov esi, dword [ebp - 0x20]
mov dword [ebp - 0x28], eax
mov eax, dword [0x41b5cc]
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x24], 0x20
mov dword [ebp - 0x1c], 2
add dword [ebp - 0x1c], 3
mov ecx, dword [0xb07284]
mov eax, edi
shl eax, 4
mov dword [ebp - 4], eax
cmp ecx, 0xc
jne 0x40132c
push 0x418300
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov eax, dword [ebp - 4]
mov ecx, dword [0xb07284]
add eax, dword [ebp - 0x28]
mov edx, 0xedeb2e40
mov dword [ebp - 4], eax
cmp ecx, 0xfa9
mov eax, dword [0xb07280]
cmove eax, edx
xor edx, edx
mov dword [0xb07280], eax
cmp ecx, 0x3eb
mov eax, dword [0xb071d8]
cmove eax, edx
mov dword [0xb071d8], eax
lea eax, [ebx + edi]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x18]
shr eax, 5
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x2c]
add dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
and dword [ebp - 0x14], edx
mov dword [0xb0727c], 0xf4ea3dee
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x20]
add dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
xor dword [ebp - 0x18], eax
mov eax, dword [ebp - 0xc]
xor eax, dword [ebp - 0x18]
sub esi, eax
mov dword [ebp - 0xc], eax
mov eax, esi
mov dword [ebp - 0x18], esi
shl eax, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x30]
add dword [ebp - 4], eax
and dword [ebp - 8], edx
mov eax, dword [ebp - 0x10]
add dword [ebp - 8], eax
mov eax, dword [ebp - 0x18]
nop
add dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x1c]
mov edx, esi
mov eax, dword [ebp - 4]
add ebx, 0x61c88647
shr edx, cl
add edx, dword [ebp - 0x34]
mov dword [ebp - 0xc], edx
xor edx, dword [ebp - 0x20]
xor eax, edx
mov dword [ebp - 0x10], ebx
sub edi, eax
mov dword [ebp - 4], eax
dec dword [ebp - 0x24]
mov dword [ebp - 0x18], edi
jne 0x4012fa
mov dword [ebp - 0x20], esi
mov esi, dword [ebp - 0x38]
mov eax, dword [ebp - 0x20]
mov dword [esi], edi
pop edi
mov dword [esi + 4], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40d328
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41a35c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00405145
mov dword [ebp - 0x14], eax
cmp dword [0x462a38], esi
jne 0x40d41b
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40d3a8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40d4fb
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40d4fb
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40d4fb
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x462a38], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x462a3c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x462a40], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x462a48], eax
test eax, eax
je 0x40d418
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x462a44], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40d440
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40d433
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40d455
push 4
pop eax
jmp 0x40d4fd
cmp dword [ebp - 0x14], esi
je 0x40d455
push dword [0x462a38]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40d43a
mov eax, dword [0x462a44]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40d4b3
cmp dword [0x462a48], edi
je 0x40d4b3
push eax
call ebx
push dword [0x462a48]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40d4b3
test eax, eax
je 0x40d4b3
call ecx
test eax, eax
je 0x40d4a8
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x40d4a8
test byte [ebp - 8], 1
jne 0x40d4b3
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40d4e3
mov eax, dword [0x462a3c]
cmp eax, edi
je 0x40d4e0
push eax
call ebx
test eax, eax
je 0x40d4e0
call eax
mov esi, eax
test esi, esi
je 0x40d4e0
mov eax, dword [0x462a40]
cmp eax, edi
je 0x40d4e0
push eax
call ebx
test eax, eax
je 0x40d4e0
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x462a38]
call ebx
test eax, eax
je 0x40d4fb
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40d4fd
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00404457
mov esp, ebp
pop ebp
ret
Function at 0x403150
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x1c
mov eax, dword [esp + 0x20]
push ebx
push ebp
push esi
mov edx, 1
push edi
mov edi, ecx
mov byte [esp + 0x18], 0x70
mov byte [esp + 0x19], 0x68
mov byte [esp + 0x1a], 0x64
mov byte [esp + 0x1b], 0x62
mov byte [esp + 0x1c], 0x58
mov byte [esp + 0x1d], 0x4c
mov byte [esp + 0x1e], 0x46
mov byte [esp + 0x1f], 0x54
mov byte [esp + 0x20], 0x52
mov byte [esp + 0x21], 0x4a
mov byte [esp + 0x22], 0xe
mov byte [esp + 0x23], 0x16
mov byte [esp + 0x24], 0x1a
mov byte [esp + 0x25], 0x1c
mov byte [esp + 0x26], 0x26
mov byte [esp + 0x27], 0x32
mov byte [esp + 0x28], 0x38
mov byte [esp + 0x29], 0x2a
mov byte [esp + 0x2a], 0x2c
mov byte [esp + 0x2b], 0x34
mov ebp, 3
mov byte [eax], 0x5f
mov dword [esp + 0x14], edx
xor ecx, ecx
xor eax, eax
mov cl, byte [edi + 0x13]
mov al, byte [edi + 0xc]
mov ebx, 0x80
lea esi, [esp + ecx + 0x18]
mov ecx, edx
lea eax, [eax + eax*4]
sar ebx, cl
test byte [esi + eax*2], bl
jne 0x4031ff
xor eax, eax
mov al, byte [edi + edx + 0xc]
mov cl, byte [eax + 0x437560]
jmp 0x40320b
xor eax, eax
mov al, byte [edi + edx + 0xc]
mov cl, byte [eax + 0x43756c]
mov byte [esp + 0x10], cl
xor esi, esi
mov ebx, dword [esp + 0x10]
and ebx, 0xff
mov eax, 0x80
mov ecx, esi
sar eax, cl
test ebx, eax
jne 0x403239
mov ecx, dword [esp + 0x30]
push ebp
push ecx
mov ecx, edi
call fcn.004026f0
mov edx, dword [esp + 0x14]
inc ebp
inc esi
cmp esi, 7
jl 0x40321b
inc edx
cmp edx, 7
mov dword [esp + 0x14], edx
jl 0x4031d2
mov edx, dword [esp + 0x30]
push 0x2e
push edx
mov ecx, edi
call fcn.004026f0
mov esi, dword [esp + 0x30]
push 0x30
push esi
mov ecx, edi
call fcn.004026f0
push 0x32
push esi
mov ecx, edi
call fcn.004026f0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 4

Function at 0x4034e0
Capabilities:
Link many functions at runtime

Disassembly:
push esi
push 0
push str.MAPI
mov esi, ecx
push str.MAIL
call dword [sym.imp.KERNEL32.dll_GetProfileIntA]
test eax, eax
je 0x40359e
push 0
push 0
push 0
push 0
push str.MAPI32.DLL
push 0
call dword [sym.imp.KERNEL32.dll_SearchPathA]
test eax, eax
je 0x40359e
push str.MAPI32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
mov dword [esi + 8], eax
je 0x40359e
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MAPILogon
push eax
call edi
mov dword [esi + 0xc], eax
mov eax, dword [esi + 8]
push str.MAPILogoff
push eax
call edi
mov ecx, dword [esi + 8]
push str.MAPISendMail
push ecx
mov dword [esi + 0x10], eax
call edi
mov edx, dword [esi + 8]
push str.MAPIResolveName
push edx
mov dword [esi + 0x14], eax
call edi
mov dword [esi + 0x18], eax
mov eax, dword [esi + 8]
push str.MAPIFreeBuffer
push eax
call edi
mov ecx, dword [esi + 0xc]
mov dword [esi + 0x1c], eax
test ecx, ecx
pop edi
je 0x403597
mov ecx, dword [esi + 0x10]
test ecx, ecx
je 0x403597
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x403597
mov ecx, dword [esi + 0x18]
test ecx, ecx
je 0x403597
test eax, eax
jne 0x40359e
mov ecx, esi
call fcn.004035a0
pop esi
ret