joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100eaae0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x102514b8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov edi, edx
mov dword [ebp - 0x14], ebx
mov edx, dword [esi + 0x3c]
cmp dword [edx], ebx
jne 0x100eab2a
mov eax, dword [esi + 0x78]
mov ecx, dword [esi]
or eax, 0x1e
push ebx
and eax, 0x87f7f
push eax
mov eax, dword [ecx + 0x18]
push edx
push ebx
push ecx
call eax
mov ebx, eax
add esp, 0x14
mov dword [ebp - 0x14], ebx
test ebx, ebx
jne 0x100eac07
mov ecx, dword [esi + 0x18]
cmp ecx, dword [esi + 0x24]
jbe 0x100eab63
mov eax, dword [esi + 0x80]
push 0
cdq
push ecx
push edx
push eax
call fcn.101670d0
mov dword [ebp - 0x10], eax
mov eax, dword [esi + 0x3c]
mov dword [ebp - 0xc], edx
lea edx, [ebp - 0x10]
push edx
push 5
mov ecx, dword [eax]
push eax
mov eax, dword [ecx + 0x28]
call eax
mov eax, dword [esi + 0x18]
add esp, 0xc
mov dword [esi + 0x24], eax
test edi, edi
je 0x100eac05
mov ebx, dword [edi + 0x14]
cmp ebx, dword [esi + 0x18]
ja 0x100eabf7
test byte [edi + 0x18], 0x20
jne 0x100eabf7
mov eax, dword [esi + 0x80]
lea ecx, [ebx - 1]
cdq
push edx
push eax
push 0
push ecx
call fcn.101670d0
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
cmp ebx, 1
jne 0x100eaba3
mov ecx, edi
call fcn.100e9dd0
push dword [ebp - 0x14]
mov eax, dword [esi + 0x3c]
push dword [ebp - 0x18]
mov edx, dword [edi + 4]
push dword [esi + 0x80]
mov ecx, dword [eax]
push edx
push eax
mov dword [ebp - 0xc], edx
mov eax, dword [ecx + 0xc]
call eax
add esp, 0x14
mov dword [ebp - 0x14], eax
cmp ebx, 1
jne 0x100eabd9
mov eax, dword [ebp - 0xc]
movdqu xmm0, xmmword [eax + 0x18]
movdqu xmmword [esi + 0x64], xmm0
cmp ebx, dword [esi + 0x20]
jbe 0x100eabe1
mov dword [esi + 0x20], ebx
inc dword [esi + 0xa8]
mov edx, ebx
push dword [edi + 4]
mov ecx, dword [esi + 0x58]
call fcn.100f9b00
add esp, 4
mov ebx, dword [ebp - 0x14]
mov edi, dword [edi + 0xc]
test ebx, ebx
je 0x100eab63
mov eax, ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1016198b
mov esp, ebp
pop ebp
ret
Function at 0x10114b00
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
xor eax, eax
mov dword [ebp - 0x10], edx
mov dword [ebp - 8], eax
mov esi, ecx
mov dword [ebp - 0xc], esi
mov ebx, edx
push edi
test edx, edx
je 0x10114b2d
cmp byte [edx], al
je 0x10114b25
inc ebx
cmp byte [ebx], al
jne 0x10114b20
sub ebx, edx
and ebx, 0x3fffffff
xor edi, edi
cmp dword [esi + 0x14], eax
jle 0x10114bcf
mov ecx, edi
cmp edi, 2
jge 0x10114b47
xor ecx, 1
mov dword [ebp - 4], ecx
jmp 0x10114b4a
mov dword [ebp - 4], edi
mov eax, dword [ebp + 8]
test eax, eax
je 0x10114b9e
mov edx, ecx
mov ecx, dword [esi + 0x10]
add edx, edx
mov esi, dword [ecx + edx*8]
mov ecx, eax
mov cl, byte [ecx]
test cl, cl
je 0x10114b80
movzx edx, byte [esi]
movzx ecx, cl
mov cl, byte [ecx + 0x1021f820]
cmp cl, byte [edx + 0x1021f820]
jne 0x10114b80
mov cl, byte [eax + 1]
inc eax
inc esi
test cl, cl
jne 0x10114b63
movzx ecx, byte [esi]
movzx eax, byte [eax]
mov esi, dword [ebp - 0xc]
movzx ecx, byte [ecx + 0x1021f820]
movzx eax, byte [eax + 0x1021f820]
sub eax, ecx
jne 0x10114bbf
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
mov eax, dword [esi + 0x10]
add ecx, ecx
push ebx
mov ecx, dword [eax + ecx*8 + 0xc]
add ecx, 8
call fcn.100e2db0
add esp, 4
mov dword [ebp - 8], eax
test eax, eax
jne 0x10114bcf
jmp 0x10114bc2
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x10]
inc edi
cmp edi, dword [esi + 0x14]
jl 0x10114b38
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10114cf0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
xor eax, eax
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov ebx, edx
push esi
push edi
test edx, edx
je 0x10114d1d
cmp byte [edx], al
je 0x10114d15
jmp 0x10114d10
inc ebx
cmp byte [ebx], al
jne 0x10114d10
sub ebx, edx
and ebx, 0x3fffffff
mov esi, dword [ecx + 0x14]
xor edi, edi
mov dword [ebp - 0x10], esi
test esi, esi
jle 0x10114dc3
mov ecx, dword [ecx + 0x10]
mov dword [ebp - 0x14], ecx
mov eax, edi
cmp edi, 2
jge 0x10114d3d
xor eax, 1
add eax, eax
lea esi, [ecx + eax*8]
mov ecx, dword [ebp + 8]
mov eax, dword [esi + 0xc]
mov dword [ebp - 0xc], eax
test ecx, ecx
je 0x10114d9b
mov esi, dword [esi]
mov eax, ecx
mov cl, byte [ecx]
test cl, cl
je 0x10114d80
lea esp, [esp]
movzx edx, byte [esi]
movzx ecx, cl
mov cl, byte [ecx + 0x1021f820]
cmp cl, byte [edx + 0x1021f820]
jne 0x10114d7d
mov cl, byte [eax + 1]
inc eax
inc esi
test cl, cl
jne 0x10114d60
mov edx, dword [ebp - 8]
movzx eax, byte [eax]
movzx ecx, byte [esi]
movzx eax, byte [eax + 0x1021f820]
movzx ecx, byte [ecx + 0x1021f820]
sub eax, ecx
jne 0x10114db0
mov eax, dword [ebp - 0xc]
push ebx
lea ecx, [eax + 0x18]
call fcn.100e2db0
add esp, 4
mov dword [ebp - 4], eax
test eax, eax
jne 0x10114dc3
jmp 0x10114db3
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
inc edi
mov ecx, dword [ebp - 0x14]
cmp edi, dword [ebp - 0x10]
jl 0x10114d33
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10116e30
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x102514b8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
add edx, edx
push ebx
mov ebx, ecx
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x40], eax
push esi
mov eax, dword [ebx]
push edi
mov dword [ebp - 0x24], ebx
mov eax, dword [eax + 0x10]
mov esi, dword [eax + edx*8]
mov eax, 1
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x2c], eax
lea esp, [esp]
push eax
push 0x1022c66c
lea eax, [ebp - 0x1c]
push eax
push 0x18
call fcn.100e0e10
mov ecx, dword [ebx]
lea eax, [ebp - 0x1c]
add esp, 0x10
mov dword [ebp - 0x34], ecx
cmp byte [ebp - 0x1c], 0
mov dword [ebp - 0x28], 0
je 0x10116ea6
lea esp, [esp]
inc eax
cmp byte [eax], 0
jne 0x10116ea0
lea edx, [ebp - 0x1c]
xor edi, edi
sub eax, edx
mov edx, dword [ecx + 0x14]
and eax, 0x3fffffff
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x30], eax
test edx, edx
jle 0x10116f8c
mov ebx, edi
cmp edi, 2
jge 0x10116ecd
xor ebx, 1
test esi, esi
je 0x10116f2e
mov ecx, dword [ecx + 0x10]
mov edx, ebx
add edx, edx
mov eax, esi
mov esi, dword [ecx + edx*8]
mov ecx, dword [ebp - 0x20]
mov cl, byte [ecx]
test cl, cl
je 0x10116f0d
jmp 0x10116ef0
movzx edx, byte [esi]
movzx ecx, cl
mov cl, byte [ecx + 0x1021f820]
cmp cl, byte [edx + 0x1021f820]
jne 0x10116f0d
mov cl, byte [eax + 1]
inc eax
inc esi
test cl, cl
jne 0x10116ef0
movzx eax, byte [eax]
movzx ecx, byte [esi]
movzx eax, byte [eax + 0x1021f820]
movzx ecx, byte [ecx + 0x1021f820]
sub eax, ecx
jne 0x10116f51
mov eax, dword [ebp - 0x30]
mov esi, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x34]
push eax
mov eax, dword [ecx + 0x10]
lea edx, [ebp - 0x1c]
add ebx, ebx
mov ecx, dword [eax + ebx*8 + 0xc]
add ecx, 8
call fcn.100e2db0
mov ebx, eax
add esp, 4
mov dword [ebp - 0x28], ebx
test ebx, ebx
jne 0x10116f6b
jmp 0x10116f54
mov ebx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x30]
inc edi
mov esi, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x34]
cmp edi, dword [ebp - 0x38]
jl 0x10116ec3
test ebx, ebx
je 0x10116f89
push dword [ebp - 0x40]
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x1c]
push dword [ebp - 0x3c]
push eax
push esi
push 0x1022c04c
push ebx
call fcn.10114a50
add esp, 0x18
jmp 0x10116f8c
mov ebx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x2c]
inc eax
mov dword [ebp - 0x2c], eax
cmp eax, 3
jle 0x10116e70
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1016198b
mov esp, ebp
pop ebp
ret
Function at 0x101480f7
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1019c987
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x102514b8]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
push esi
push edi
mov eax, dword [0x102514b8]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
mov dword [esp + 0x18], edx
mov ebx, ecx
sub esp, 0x18
mov ecx, esp
mov dword [esp + 0x2c], esp
push ebx
call fcn.1007a76f
xor edi, edi
mov dword [esp + 0x70], edi
or dword [esp + 0x70], 0xffffffff
call fcn.10147d09
push 0x38
mov dword [esp + 0x30], eax
call fcn.10161b47
mov esi, eax
add esp, 0x1c
mov dword [esp + 0x24], esi
mov dword [esp + 0x58], 1
push 7
pop ecx
test esi, esi
je 0x10148197
xor eax, eax
mov dword [esi + 0x14], ecx
mov dword [esi + 0x10], edi
mov word [esi], ax
mov byte [esp + 0x58], 2
mov dword [esi + 0x2c], ecx
mov dword [esi + 0x28], edi
mov word [esi + 0x18], ax
mov byte [esp + 0x58], 1
jmp 0x10148199
mov esi, edi
or dword [esp + 0x58], 0xffffffff
mov eax, dword [esp + 0x14]
mov dword [esi + 0x34], eax
mov eax, dword [ebp + 8]
mov dword [esi + 0x30], eax
cmp esi, ebx
je 0x101481ba
push 0xffffffffffffffff
push edi
push ebx
mov ecx, esi
call fcn.1007ac75
mov eax, dword [esp + 0x18]
lea ecx, [esi + 0x18]
cmp ecx, eax
je 0x101481ce
push 0xffffffffffffffff
push edi
push eax
call fcn.1007ac75
call fcn.10147143
sub esp, 0x20
mov dword [esp + 0x3c], 0x10147da4
mov ebx, esp
mov dword [esp + 0x44], esp
lea eax, [esp + 0x3c]
mov dword [esp + 0x38], ebx
mov dword [esp + 0x40], esi
push eax
mov dword [ebx], edi
call fcn.1007eef0
pop ecx
test al, al
jne 0x1014821d
lea ecx, [ebx + 8]
test ecx, ecx
je 0x10148211
mov eax, dword [esp + 0x3c]
mov dword [ecx], eax
mov eax, dword [esp + 0x40]
mov dword [ecx + 4], eax
mov eax, 0x1022eb64
or eax, 1
mov dword [ebx], eax
jmp 0x1014821f
mov dword [ebx], edi
mov dword [esp + 0x78], 5
lea eax, [esp + 0x50]
push eax
call fcn.101482a0
mov byte [esp + 0x78], 6
push 1
mov byte [esp + 0x7c], 7
mov edx, eax
lea ecx, [esp + 0x4c]
call fcn.1008e00e
add esp, 0x24
mov byte [esp + 0x58], 9
lea ecx, [esp + 0x30]
push edi
push 1
call fcn.1007ade9
cmp dword [esp + 0x28], 0
jne 0x1014826a
call fcn.10147226
jmp 0x1014826e
mov edi, dword [esp + 0x14]
or dword [esp + 0x58], 0xffffffff
mov ecx, dword [esp + 0x2c]
test ecx, ecx
je 0x10148280
call fcn.10077252
mov eax, edi
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.1016198b
mov esp, ebp
pop ebp
ret
Function at 0x1017d380
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x1019e940
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x102514b8]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
mov edi, dword [esp + 0x20]
push edi
call fcn.10161c98
mov dword [esi], 0x101a86f4
lea ecx, [esi + 0x14]
mov eax, dword [edi + 0xc]
mov dword [esi + 0xc], eax
mov eax, dword [edi + 0x10]
mov dword [esi + 0x10], eax
lea eax, [edi + 0x14]
push 0xffffffffffffffff
push 0
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push eax
mov dword [esp + 0x24], 0
mov byte [ecx], 0
call fcn.1007a9db
mov dword [esi], 0x101a870c
mov dword [esi + 0x2c], 0x101a86a0
mov ecx, dword [edi + 0x30]
mov dword [esp + 0x18], 1
mov dword [esi + 0x30], ecx
test ecx, ecx
je 0x1017d412
mov eax, dword [ecx]
call dword [eax + 0xc]
mov eax, dword [edi + 0x34]
mov dword [esi + 0x34], eax
mov eax, dword [edi + 0x38]
mov dword [esi + 0x38], eax
mov eax, dword [edi + 0x3c]
mov dword [esi + 0x3c], eax
mov eax, esi
mov dword [esi], 0x101a88c0
mov dword [esi + 0x2c], 0x101a88cc
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 4

Function at 0x1017d450
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x1019e968
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x102514b8]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0xc], edi
mov esi, dword [esp + 0x20]
push esi
call fcn.10161c98
mov dword [edi], 0x101a86f4
lea ecx, [edi + 0x14]
mov eax, dword [esi + 0xc]
mov dword [edi + 0xc], eax
mov eax, dword [esi + 0x10]
mov dword [edi + 0x10], eax
lea eax, [esi + 0x14]
push 0xffffffffffffffff
push 0
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push eax
mov dword [esp + 0x24], 0
mov byte [ecx], 0
call fcn.1007a9db
mov dword [edi + 0x2c], 0x101a86a0
mov eax, edi
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 0xffffffff
mov dword [edi], 0x101a88c0
mov dword [edi + 0x2c], 0x101a88cc
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 4

Function at 0x1017e470
Capabilities:
Create thread

Disassembly:
push ebx
push esi
mov esi, ecx
mov edx, dword [esi]
lea eax, [edx + 0x18]
push eax
push 4
push edx
push 0x1017e4e0
push 0
push 0
call fcn.10183986
mov ebx, eax
add esp, 0x18
test ebx, ebx
jne 0x1017e499
pop esi
xor al, al
pop ebx
ret
mov ecx, dword [esi]
mov eax, 1
push edi
add ecx, 4
lock xadd dword [ecx], eax
mov edi, dword [esi]
mov eax, dword [edi + 8]
test eax, eax
je 0x1017e4bd
cmp eax, 0xffffffff
je 0x1017e4bd
push eax
call dword [0x101a133c]
mov dword [edi + 8], ebx
mov eax, dword [esi]
push dword [eax + 8]
call dword [0x101a1268]
pop edi
pop esi
mov al, 1
pop ebx
ret
Function at 0x10182a10
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x1019f4b0
mov eax, dword fs:[0]
push eax
push ebx
push ebp
mov eax, dword [0x102514b8]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov dword [esp + 0x14], 3
lea ebx, [ebx]
mov ebp, dword [esp + 0x34]
mov edx, dword [esp + 0x98]
mov ebx, dword [esp + 0x74]
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x38]
cmp ebp, dword [esp + 0x54]
jne 0x10182a61
cmp ecx, eax
je 0x10182adc
cmp ebx, dword [esp + 0x94]
jne 0x10182a70
cmp dword [esp + 0x78], edx
je 0x10182adc
cmp dword [esp + 0x70], 8
lea eax, [esp + 0x5c]
push dword [esp + 0x6c]
cmovae eax, dword [esp + 0x60]
lea ecx, [esp + 0x20]
push eax
push dword [esp + 0x34]
push 0
call fcn.100826f5
test eax, eax
js 0x10182b2b
cmp dword [esp + 0x30], 8
lea eax, [esp + 0x1c]
push dword [esp + 0x2c]
cmovae eax, dword [esp + 0x20]
lea ecx, [esp + 0x60]
push eax
push dword [esp + 0x74]
push 0
call fcn.100826f5
test eax, eax
js 0x10182b24
lea eax, [esp + 0x1c]
push eax
call fcn.10182cd0
lea eax, [esp + 0x60]
push eax
call fcn.10182cd0
add esp, 8
jmp 0x10182a40
cmp ebp, dword [esp + 0x54]
jne 0x10182b12
cmp ecx, eax
jne 0x10182b12
cmp ebx, dword [esp + 0x94]
jne 0x10182af9
cmp dword [esp + 0x78], edx
jne 0x10182af9
xor ebx, ebx
jmp 0x10182b2e
cmp ecx, eax
jne 0x10182b12
xor ebx, ebx
mov eax, 1
test al, al
sete bl
lea ebx, [ebx*2 - 1]
jmp 0x10182b2e
xor ebx, ebx
xor eax, eax
test al, al
sete bl
lea ebx, [ebx*2 - 1]
jmp 0x10182b2e
mov ebx, 1
jmp 0x10182b2e
or ebx, 0xffffffff
cmp dword [esp + 0x30], 8
jb 0x10182b41
push dword [esp + 0x1c]
call fcn.10144fd2
add esp, 4
xor eax, eax
mov dword [esp + 0x30], 7
cmp dword [esp + 0x50], 8
mov dword [esp + 0x2c], 0
mov word [esp + 0x1c], ax
jb 0x10182b6b
push dword [esp + 0x3c]
call fcn.10144fd2
add esp, 4
xor eax, eax
mov dword [esp + 0x50], 7
cmp dword [esp + 0x70], 8
mov dword [esp + 0x4c], 0
mov word [esp + 0x3c], ax
jb 0x10182b95
push dword [esp + 0x5c]
call fcn.10144fd2
add esp, 4
xor eax, eax
mov dword [esp + 0x70], 7
cmp dword [esp + 0x90], 8
mov dword [esp + 0x6c], 0
mov word [esp + 0x5c], ax
jb 0x10182bc2
push dword [esp + 0x7c]
call fcn.10144fd2
add esp, 4
mov eax, ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x405c49
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, ebx
and eax, 4
push edi
mov dword [ebp - 4], eax
call fcn.00405f14
test bl, 8
mov dword [ebp - 8], eax
je 0x405c88
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
inc eax
add dword [0x434f88], eax
jmp 0x405e05
mov dword [ebp + 8], ebx
and dword [ebp + 8], 1
je 0x405ca2
test eax, eax
je 0x405db3
test bl, 2
je 0x405db3
mov esi, 0x42f270
push edi
push esi
call fcn.0040653d
cmp dword [ebp + 8], 0
je 0x405cc1
push str..
push esi
call sub.KERNEL32.dll_lstrcatW
jmp 0x405cc7
push edi
call fcn.00405e58
cmp word [edi], 0
jne 0x405cd7
cmp word [0x42f270], 0x5c
jne 0x405ce2
push 0x40a014
push edi
call sub.KERNEL32.dll_lstrcatW
push edi
call sub.KERNEL32.dll_lstrlenW
lea ebx, [edi + eax*2]
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x405da8
cmp word [ebp - 0x22c], 0x2e
jne 0x405d2c
cmp word [ebp - 0x22a], 0
je 0x405d8b
cmp word [ebp - 0x22a], 0x2e
jne 0x405d2c
cmp word [ebp - 0x228], 0
je 0x405d8b
lea eax, [ebp - 0x22c]
push eax
push ebx
call fcn.0040653d
test byte [ebp - 0x258], 0x10
je 0x405d57
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x405d8b
push dword [ebp + 0xc]
push edi
call fcn.00405c49
jmp 0x405d8b
push dword [ebp - 4]
push edi
call fcn.00405c01
test eax, eax
jne 0x405d83
cmp dword [ebp - 4], eax
je 0x405d7b
push edi
push 0xfffffffffffffff1
call fcn.0040559f
push 0
push edi
call fcn.004062fd
jmp 0x405d8b
inc dword [0x434f88]
jmp 0x405d8b
push edi
push 0xfffffffffffffff2
call fcn.0040559f
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x405d04
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x405db3
and word [ebx - 2], 0
xor esi, esi
cmp dword [ebp + 8], esi
je 0x405e05
cmp dword [ebp - 8], esi
jne 0x405dc7
inc dword [0x434f88]
jmp 0x405e05
push edi
call fcn.00406873
test eax, eax
je 0x405e05
push edi
call fcn.00405e0c
mov eax, dword [ebp - 4]
or al, 1
push eax
push edi
call fcn.00405c01
test eax, eax
jne 0x405dfd
cmp dword [ebp - 4], esi
je 0x405dbf
push edi
push 0xfffffffffffffff1
jmp section..htext
push edi
push 0xffffffffffffffe5
call fcn.0040559f
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x405f14
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x42fa70
push esi
call fcn.0040653d
push esi
call fcn.00405eb7
mov edi, eax
test edi, edi
jne 0x405f35
xor eax, eax
jmp 0x405f8d
push edi
call fcn.004067c4
test byte [0x434f18], 0x80
je 0x405f52
mov ax, word [edi]
test ax, ax
je 0x405f31
cmp ax, 0x5c
je 0x405f31
sub edi, esi
sar edi, 1
jmp 0x405f6c
jmp 0x475426
push esi
call sub.KERNEL32.dll_lstrlenW
cmp eax, edi
push esi
jg 0x405f58
call fcn.00405e0c
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4
Function at 0x406008
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
je 0x406027
and al, 0xfe
push eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, esi
pop esi
ret 4

Function at 0x40602d
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, eax
push 0
inc ecx
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
ret 0xc

Function at 0x40605c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
mov eax, dword [0x40a578]
dec edi
mov dword [ebp - 8], eax
mov eax, dword [0x40a57c]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
xor edx, edx
pop ecx
div ecx
push esi
lea eax, [ebp - 8]
push 0
push eax
push dword [ebp + 0xc]
add word [ebp - 4], dx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x4060ac
test edi, edi
jne 0x406069
and word [esi], di
pop edi
pop esi
leave
ret 8
mov eax, esi
jmp 0x4060a6
Function at 0x432004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
call 0x43200c
nop
nop
nop
pop eax
nop
nop
add eax, 0x40729f
nop
nop
sub eax, 0x407245
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
jl 0x432030
nop
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
jne 0x43201e
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x10005bc0
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov esi, eax
cmp esi, 0xffffffff
jne 0x10005c78
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword fs:[0x2c]
mov edi, eax
mov edx, dword [0x10227880]
mov edx, dword [ecx + edx*4]
mov ecx, dword [0x1022b680]
cmp ecx, dword [edx + 4]
jle 0x10005c26
push 0x1022b680
call fcn.1016716f
add esp, 4
cmp dword [0x1022b680], esi
jne 0x10005c26
call fcn.10004d60
push 0x1022b680
call fcn.10167130
add esp, 4
mov ecx, dword [0x1022b6a8]
mov eax, dword [0x1022b6ac]
mov dword [ebp - 0xc], edi
cmp ecx, 0x25c5e09b
jne 0x10005c43
cmp eax, 0x8fafd21e
je 0x10005c52
cmp ecx, 0x257edf0d
jne 0x10005c59
cmp eax, 0xb2ab117a
jne 0x10005c59
test edi, edi
setne al
jmp 0x10005c69
mov eax, dword [0x1022b6a0]
mov ecx, 0x1022b6a0
push edi
mov eax, dword [eax + 0x18]
call eax
mov byte [ebp - 8], al
mov dword [ebp - 4], 0x1022b6a0
pop edi
test al, al
jne 0x10005c7f
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
mov edx, 0x101f443c
lea ecx, [ebp - 0xc]
call fcn.10005a10
int3

Function at 0x10005c90
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x198
mov eax, dword [0x1021afe8]
xor eax, esp
mov dword [esp + 0x194], eax
push 0x1022b678
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
cmp eax, 1
jne 0x10005cd2
lea eax, [esp]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
push eax
push 0x1022b67c
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov ecx, dword [esp + 0x194]
xor ecx, esp
call fcn.1016700d
mov esp, ebp
pop ebp
ret

Function at 0x10006020
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
xor esi, esi
push 0
push 0xff
call fcn.10005e80
mov byte [esi + edi], al
add esp, 8
inc esi
cmp esi, 8
jb 0x10006031
xor esi, esi
nop dword [eax + eax]
xor byte [esi + ebx], 0x40
mov eax, esi
and eax, 7
mov ecx, esi
and ecx, 0x1ff
mov dl, byte [eax + edi]
xor dl, byte [esi + ebx]
mov byte [esi + ebx], dl
mov al, byte [eax + edi]
add al, dl
xor al, byte [ecx + 0x101f4028]
sub al, byte [ecx + 0x101f3c28]
add al, byte [ecx + 0x101f3428]
xor al, byte [ecx + 0x101f3a28]
add al, byte [ecx + 0x101f3828]
xor al, byte [ecx + 0x101f3220]
sub al, byte [ecx + 0x101f3628]
sub al, byte [ecx + 0x101f3e28]
mov byte [esi + ebx], al
inc esi
cmp esi, 0x40
jl 0x10006050
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret