joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4f2970
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 4], edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], esi
mov esi, dword [edi + 0xc]
test esi, esi
je 0x4f2a02
mov eax, dword [0x53e0d0]
test eax, eax
je 0x4f29f6
mov ebx, dword [eax + 0x30]
test ebx, ebx
js 0x4f2a71
mov ecx, dword [eax + 0x30]
test ecx, ecx
jne 0x4f2a17
mov eax, dword [eax + 0x28]
mov dword [ebp - 0x10], eax
lea edx, [ebp - 0x14]
mov dword [ebp - 0x14], eax
mov eax, edi
call fcn.004f25c0
cmp eax, 7
jne 0x4f2a8f
mov eax, dword [0x53e0d0]
mov ebx, dword [ebp - 0x14]
test eax, eax
je 0x4f2a62
mov edx, dword [eax + 0x30]
test edx, edx
js 0x4f2a80
mov edi, dword [eax + 0x30]
test edi, edi
jne 0x4f2a43
mov dword [eax + 0x28], ebx
mov eax, dword [ebp - 0x14]
lea edx, [eax + 0x20]
mov ecx, dword [edx + 4]
mov ebp, dword [eax + 0x20]
mov esp, dword [edx + 8]
jmp ecx
call fcn.004f1dd0
mov eax, dword [0x53e0d0]
jmp 0x4f2992
mov dword [esp], edi
call fcn.004f2430
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov ebx, dword [eax + 0x2c]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, ebx
sub esp, 4
jmp 0x4f29a7
mov eax, dword [eax + 0x2c]
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
test eax, eax
jne 0x4f29e5
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4f29e5
call fcn.004f1dd0
mov eax, dword [0x53e0d0]
jmp 0x4f29d0
call fcn.004f20a0
mov eax, dword [0x53e0d0]
jmp 0x4f299d
call fcn.004f20a0
mov eax, dword [0x53e0d0]
jmp 0x4f29db
call sub.msvcrt.dll_abort
lea esi, [esi]
lea edi, [edi]

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

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
push 4
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x430072
nop
nop
nop
mov ebx, 0x408ecc
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
mov esi, 0x307900db
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
loop 0x430060
nop
nop
nop
nop
nop
mov eax, section..data
cmp eax, 0
nop
nop
nop
nop
nop
nop
nop
je 0x4300d2
nop
mov ebx, 0x42e1d0
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
push eax
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
nop
mov esi, 0x3c9445fb
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x4300c0
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x47ede4
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x417008], 0x8088405
inc edx
mov dword [ebx + 0x417008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x481134
Capabilities:
Hash data with md5

Disassembly:
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
xor edx, edx
mov dword [eax + 0x10], edx
xor edx, edx
mov dword [eax + 0x14], edx
add eax, 0x18
mov edx, 0x40
call fcn.004807ec
ret

Function at 0x481c44
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov ebx, ecx
mov esi, eax
xor eax, eax
mov dword [edx], esi
mov ecx, dword [edx]
cmp word [ecx], 0x5a4d
jne 0x481c92
mov edx, dword [edx]
mov edx, dword [edx + 0x3c]
add edx, esi
mov dword [ebx], edx
mov edx, dword [ebx]
cmp dword [edx], 0x4550
jne 0x481c92
mov edx, dword [ebx]
mov edi, dword [edx + 0xa0]
test edi, edi
je 0x481c92
mov edx, dword [ebx]
test byte [edx + 0x16], 1
jne 0x481c92
mov edx, edi
mov eax, esi
call fcn.00481c3c
mov edx, dword [ebp + 8]
mov dword [edx], eax
mov al, 1
pop edi
pop esi
pop ebx
pop ebp
ret 4

Function at 0x485cc8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov ecx, 4
push 0
push 0
dec ecx
jne 0x485cd0
push ecx
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0047fc6c
xor eax, eax
push ebp
push 0x409de6
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x485d0a
mov eax, dword [ebp - 8]
call fcn.0047f8e8
jmp 0x485dc3
lea eax, [ebp - 0xc]
mov edx, 0x409dfc
call fcn.0047f980
lea eax, [ebp - 0x10]
mov edx, 0x409e08
call fcn.0047f980
lea eax, [ebp - 0x14]
mov edx, 0x409e14
call fcn.0047f980
lea eax, [ebp - 0x18]
mov edx, 0x409e20
call fcn.0047f980
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push dword [ebp - 0x18]
lea eax, [ebp - 0x1c]
mov edx, 4
call fcn.0047fb3c
lea eax, [ebp - 0x20]
call fcn.0047f8e8
mov eax, dword [ebp - 4]
call fcn.0047fa7c
mov esi, eax
test esi, esi
jle 0x485db8
mov ebx, 1
mov eax, dword [ebp - 0x1c]
call fcn.0047fa7c
push eax
mov eax, ebx
pop edx
mov ecx, edx
cdq
idiv ecx
mov edi, edx
inc edi
mov eax, dword [ebp - 0x1c]
movzx eax, byte [eax + edi - 1]
mov ecx, 0xa
xor edx, edx
div ecx
mov eax, dword [ebp - 4]
movzx eax, byte [eax + ebx - 1]
xor edx, eax
lea eax, [ebp - 0x24]
call fcn.0047fa24
mov edx, dword [ebp - 0x24]
lea eax, [ebp - 0x20]
call fcn.0047fa84
inc ebx
dec esi
jne 0x485d72
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x20]
call fcn.0047f93c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409ded
lea eax, [ebp - 0x24]
mov edx, 7
call fcn.0047f90c
lea eax, [ebp - 4]
call fcn.0047f8e8
ret
Function at 0x48c5e0
Capabilities:
Acquire debug privileges

Disassembly:
add esp, 0xffffffd0
push esp
push 0xf00ff
call fcn.0048067c
push eax
call fcn.00480564
lea eax, [esp + 8]
push eax
push 0x410654
push 0
call fcn.0048055c
test eax, eax
je 0x48c646
mov dword [esp + 0x20], 1
mov dword [esp + 0x2c], 2
mov eax, dword [esp + 8]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0xc]
mov dword [esp + 0x28], eax
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x14]
push eax
push 0x10
lea eax, [esp + 0x2c]
push eax
push 0
mov eax, dword [esp + 0x14]
push eax
call fcn.00480554
mov eax, dword [esp]
push eax
call fcn.004805b4
add esp, 0x30
ret

Function at 0x4a1938
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x409008], 0x8088405
inc edx
mov dword [ebx + 0x409008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x4ab538
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x409008], 0x8088405
inc edx
mov dword [ebx + 0x409008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x4b5338
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x409008], 0x8088405
inc edx
mov dword [ebx + 0x409008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x4bef38
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x409008], 0x8088405
inc edx
mov dword [ebx + 0x409008], edx
mul edx
mov eax, edx
pop ebx
ret
Function at 0x4061e4
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
push esi
mov dword [ebp - 4], 0x407be4
push 0x20000000
push 0x100000
push 0
call dword [sym.imp.KERNEL32.dll_HeapCreate]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x40659a
mov dword [ebp - 0xc], 0x409380
push 0x290
push 8
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x406591
and dword [ebp - 0x1c], 0
mov eax, dword [0x4093d8]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 4]
mov dword [ebp - 0x24], eax
push dword [ebp - 0x24]
push 8
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x406591
and dword [ebp - 0x2c], 0
push 0x40
push 8
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 8]
mov dword [eax], ecx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x24]
mov dword [eax + 0x60], ecx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
mov dword [eax + 0x64], ecx
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 4]
mov dword [eax + 0x70], ecx
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x18]
add ecx, dword [eax]
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x68], ecx
mov eax, dword [ebp - 0xc]
add eax, 8
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x6c], eax
pushfd
mov eax, dword [esp]
popfd
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x1c]
mov dword [eax + 0x58], ecx
push ecx
lea eax, [0x40631d]
lea ecx, [0x40630d]
sub eax, ecx
pop ecx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x20]
mov dword [eax + 0x5c], ecx
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x461d80], eax
push dword [ebp - 0x10]
push dword [0x461d80]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push 0x4083e4
push 0
call dword [0x45f964]
mov dword [ebp - 0x2c], eax
int3
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_HeapDestroy]
xor eax, eax
pop esi
leave
ret 0x10
Function at 0x4075e4
Capabilities:
Encode data using xor
Manually build aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x808
push ebx
xor ebx, ebx
xor ecx, ecx
push esi
inc ebx
push edi
mov eax, ebx
mov dl, al
add dl, dl
movzx esi, al
mov dword [ebp + ecx*4 - 0x808], eax
mov dword [ebp + eax*4 - 0x408], ecx
and al, 0x80
movzx edx, dl
xor edx, esi
neg al
sbb eax, eax
and eax, 0x1b
xor eax, edx
inc ecx
cmp ecx, 0x100
jl 0x4075f7
mov eax, ebx
mov ecx, 0x460424
mov edx, eax
and dl, 0x80
neg dl
mov dword [ecx], eax
sbb edx, edx
add al, al
movzx eax, al
and edx, 0x1b
add ecx, 4
xor eax, edx
cmp ecx, 0x46044c
jl 0x40762c
mov byte [0x45fb24], 0x63
mov byte [0x461caf], 0
mov eax, dword [ebp + ebx*4 - 0x408]
shl eax, 2
lea ecx, [ebp - 0x40c]
sub ecx, eax
mov edx, dword [ecx]
mov cl, dl
add cl, cl
movzx ecx, cl
mov eax, edx
sar eax, 7
movzx eax, al
or eax, ecx
xor edx, eax
mov ecx, eax
sar ecx, 7
add al, al
movzx ecx, cl
movzx eax, al
or ecx, eax
xor edx, ecx
mov eax, ecx
add cl, cl
sar eax, 7
movzx ecx, cl
movzx eax, al
or eax, ecx
xor edx, eax
mov ecx, eax
sar ecx, 7
add al, al
movzx ecx, cl
movzx eax, al
or ecx, eax
xor ecx, 0x63
xor edx, ecx
mov byte [ebx + 0x45fb24], dl
mov byte [edx + 0x461c4c], bl
inc ebx
cmp ebx, 0x100
jl 0x40765a
xor edi, edi
movzx edx, byte [edi + 0x45fb24]
mov ecx, edx
and cl, 0x80
neg cl
mov al, dl
movzx esi, dl
sbb ecx, ecx
add al, al
movzx eax, al
and ecx, 0x1b
xor ecx, eax
movzx eax, cl
xor eax, esi
movzx esi, byte [edi + 0x461c4c]
shl eax, 8
xor eax, edx
shl eax, 8
xor eax, edx
shl eax, 8
xor eax, ecx
mov ecx, edi
shl ecx, 2
mov dword [ecx + 0x46184c], eax
rol eax, 8
mov dword [ecx + 0x46144c], eax
rol eax, 8
mov dword [ecx + 0x46104c], eax
rol eax, 8
test esi, esi
mov dword [ecx + 0x460c4c], eax
je 0x407753
mov eax, dword [ebp + esi*4 - 0x408]
add eax, dword [ebp - 0x3d0]
mov ebx, 0xff
cdq
idiv ebx
mov eax, dword [ebp + edx*4 - 0x808]
mov dword [ebp - 4], eax
jmp 0x407757
and dword [ebp - 4], 0
test esi, esi
je 0x40777c
mov eax, dword [ebp + esi*4 - 0x408]
add eax, dword [ebp - 0x3e4]
mov ebx, 0xff
cdq
idiv ebx
mov eax, dword [ebp + edx*4 - 0x808]
mov dword [ebp - 8], eax
jmp 0x407780
and dword [ebp - 8], 0
test esi, esi
je 0x4077a2
mov eax, dword [ebp + esi*4 - 0x408]
add eax, dword [ebp - 0x3d4]
mov ebx, 0xff
cdq
idiv ebx
mov ebx, dword [ebp + edx*4 - 0x808]
jmp 0x4077a4
xor ebx, ebx
test esi, esi
je 0x4077c6
mov eax, dword [ebp + esi*4 - 0x408]
add eax, dword [ebp - 0x3dc]
mov esi, 0xff
cdq
idiv esi
mov edx, dword [ebp + edx*4 - 0x808]
jmp 0x4077c8
xor edx, edx
shl edx, 8
xor edx, ebx
shl edx, 8
xor edx, dword [ebp - 8]
shl edx, 8
xor edx, dword [ebp - 4]
inc edi
mov dword [ecx + 0x46084c], edx
rol edx, 8
mov eax, edx
mov dword [ecx + 0x46044c], eax
rol eax, 8
mov dword [ecx + 0x460024], eax
rol eax, 8
cmp edi, 0x100
mov dword [ecx + 0x45fc24], eax
jl 0x4076ce
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401c79
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [0x994170]
mov eax, dword [ecx + 0x3c]
sub esp, 0x2c
add eax, ecx
movzx edx, word [eax + 0x14]
push ebx
push esi
movzx esi, word [eax + 6]
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
lea eax, [edx + eax + 0x18]
xor edx, edx
cmp dword [eax + 4], ebx
jne 0x401caf
cmp dword [eax], 0x7373622e
jne 0x401caf
mov edx, eax
add eax, 0x28
dec esi
je 0x401cb9
test edx, edx
je 0x401ca0
test edx, edx
je 0x401cd7
mov eax, dword [edx + 0xc]
test eax, eax
je 0x401cd3
mov edx, dword [edx + 0x10]
test edx, edx
je 0x401cd3
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x10], edx
jmp 0x401cda
push 0xb
jmp 0x401cd9
push 2
pop ebx
mov dword [ebp - 0x14], ebx
test ebx, ebx
jne 0x401de7
mov esi, dword [ebp - 0x10]
mov eax, dword [ebp - 0x10]
and esi, 0xfff
neg esi
sbb esi, esi
shr eax, 0xc
neg esi
add esi, eax
mov eax, dword [ebp - 0x18]
add eax, ecx
mov dword [ebp - 0xc], eax
mov eax, esi
shl eax, 0xc
push eax
call 0x4026b9
mov ebx, eax
mov dword [ebp - 0x2c], ebx
test ebx, ebx
je 0x401de0
lea edx, [edi - 1]
and edx, 1
cmp edx, esi
jae 0x401db6
sub eax, dword [ebp - 0xc]
mov ecx, edx
lea edi, [eax + edi + 0x99505b]
mov eax, dword [ebp - 0xc]
shl ecx, 0xc
add ecx, ebx
sub eax, ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x18]
mov ebx, dword [ebp + 8]
sub eax, edx
and dword [ebp - 0x1c], 0
lea eax, [eax + ebx - 0x7e47c834]
mov dword [ebp - 0x24], eax
mov dword [ebp - 4], ecx
mov dword [ebp - 8], 0x400
mov eax, dword [ebp - 0x20]
mov ebx, dword [ebp - 4]
mov eax, dword [eax + ebx]
mov dword [ebp - 0x28], eax
test eax, eax
je 0x401d8c
mov ebx, dword [ebp - 0x1c]
sub ebx, dword [ebp - 0x24]
add eax, ebx
mov ebx, dword [ebp - 0x28]
mov dword [ebp - 0x1c], ebx
mov ebx, dword [ebp - 4]
add dword [ebp - 4], 4
mov dword [ebx], eax
jmp 0x401d93
mov dword [ebp - 8], 1
dec dword [ebp - 8]
jne 0x401d63
mov eax, dword [edi + 4]
sub eax, dword [edi + 8]
add ecx, 0x1000
add eax, dword [edi + 0xc]
inc edx
mov dword [0x994180], eax
cmp edx, esi
jb 0x401d43
mov ebx, dword [ebp - 0x2c]
jmp 0x401dbb
mov eax, dword [0x994180]
cmp eax, 0x14625bc8
jne 0x401dd1
push dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
mov edx, ebx
call 0x402be7
jmp 0x401dd8
mov dword [ebp - 0x14], 0x15
push ebx
call fcn.00401df1
jmp 0x401de7
mov dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x14]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x4054c6
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
push esi
push edi
mov edi, dword [ebp + 8]
push edi
call fcn.00405775
test byte [ebp + 0xc], 8
mov dword [ebp - 8], eax
je 0x4054fa
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x42ecc8], eax
jmp 0x40568e
push ebx
mov ebx, dword [ebp + 0xc]
and ebx, 1
mov dword [ebp - 4], ebx
je 0x405518
test eax, eax
je 0x405639
test byte [ebp + 0xc], 2
je 0x405639
mov esi, 0x42b0c8
push edi
push esi
call fcn.00405ba1
test ebx, ebx
je 0x405535
push 0x4093fc
push esi
call sub.KERNEL32.dll_lstrcatA
jmp 0x40553b
push edi
call fcn.004056db
cmp byte [edi], 0
jne 0x405549
cmp byte [0x42b0c8], 0x5c
jne 0x405554
push 0x409010
push edi
call sub.KERNEL32.dll_lstrcatA
push edi
call sub.KERNEL32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x148]
push eax
push esi
add ebx, edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
je 0x40562f
lea eax, [ebp - 0x11c]
push 0x3f
push eax
lea esi, [ebp - 0x11c]
call fcn.004056bf
cmp byte [eax], 0
je 0x40559a
cmp byte [ebp - 0x18], 0
je 0x40559a
lea esi, [ebp - 0x18]
cmp byte [esi], 0x2e
jne 0x4055b0
mov al, byte [esi + 1]
test al, al
je 0x40560e
cmp al, 0x2e
jne 0x4055b0
cmp byte [esi + 2], 0
je 0x40560e
push esi
push ebx
call fcn.00405ba1
test byte [ebp - 0x148], 0x10
je 0x4055d5
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x40560e
push dword [ebp + 0xc]
push edi
call fcn.004054c6
jmp 0x40560e
push edi
call fcn.00405859
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x405606
test byte [ebp + 0xc], 4
je 0x4055fe
push edi
push 0xfffffffffffffff1
call fcn.00404e8d
push 0
push edi
call fcn.004058ef
jmp 0x40560e
inc dword [0x42ecc8]
jmp 0x40560e
push edi
push 0xfffffffffffffff2
call fcn.00404e8d
lea eax, [ebp - 0x148]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x405578
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 4], 0
je 0x405639
and byte [ebx - 1], 0
xor esi, esi
pop ebx
cmp dword [ebp - 4], esi
je 0x40568e
cmp dword [ebp - 8], esi
jne 0x40564e
inc dword [0x42ecc8]
jmp 0x40568e
push edi
call fcn.00405e9c
test eax, eax
je 0x40568e
push edi
call fcn.00405694
push edi
call fcn.00405859
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x405686
test byte [ebp + 0xc], 4
je 0x405646
push edi
push 0xfffffffffffffff1
call fcn.00404e8d
push esi
push edi
call fcn.004058ef
jmp 0x40568e
push edi
push 0xffffffffffffffe5
call fcn.00404e8d
pop edi
pop esi
leave
ret 8
Function at 0x3a57b4
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
push edi
push dword [esp + 0x2c]
push dword [esp + 0x2c]
push dword [esp + 0x2c]
push edx
push ecx
call fcn.003aaa7d
mov dword [esp + 0x28], 0xe59a27
lea edi, [ecx + 4]
shl dword [esp + 0x28], 0xc
xor dword [esp + 0x28], 0x59a35371
mov dword [esp + 0x24], 0xbf2298
or dword [esp + 0x24], 0x43da2daf
shr dword [esp + 0x24], 6
shr dword [esp + 0x24], 1
xor dword [esp + 0x24], 0x85b67f
mov eax, dword [ecx]
mov ebp, dword [edi]
add edi, 4
xor ebp, eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], ebp
lea esi, [ebp + 1]
mov eax, esi
mov ecx, esi
and eax, 0xfffffffc
add eax, 4
and cl, 3
cmovne esi, eax
mov eax, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
add esp, 0x10
lea ecx, [esi + esi]
call fcn.003bf6a3
mov ebx, eax
mov dword [esp + 0x18], ebx
pop ecx
test ebx, ebx
je 0x3a58af
shr esi, 2
xor eax, eax
lea ecx, [edi + esi*4]
mov esi, ebx
mov edx, ecx
sub edx, edi
add edx, 3
shr edx, 2
cmp edi, ecx
cmova edx, eax
test edx, edx
je 0x3a58a9
mov ebx, dword [esp + 0x18]
xor ebp, ebp
mov ecx, dword [edi]
lea edi, [edi + 4]
xor ecx, ebx
movzx eax, cl
mov word [esi], ax
mov eax, ecx
shr eax, 8
lea esi, [esi + 8]
movzx eax, al
mov word [esi - 6], ax
shr ecx, 0x10
movzx eax, cl
shr ecx, 8
inc ebp
mov word [esi - 4], ax
movzx eax, cl
mov word [esi - 2], ax
cmp ebp, edx
jb 0x3a586c
mov ebx, dword [esp + 0x14]
mov ebp, dword [esp + 0x1c]
xor eax, eax
mov word [ebx + ebp*2], ax
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x10
ret
Function at 0x3abc99
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push dword [ebp + 0x10]
mov ebx, dword [ebp + 8]
push dword [ebp + 0xc]
push ebx
push edx
push ecx
call fcn.003aaa7d
and dword [ebp - 8], 0
add esp, 0x14
mov dword [ebp - 0x10], 0x3be52f
xor edx, edx
mov dword [ebp - 0xc], 0x1d2c41
mov dword [ebp + 8], 0xeadf60
add dword [ebp + 8], 0x5fa9
mov eax, dword [ebp + 8]
push 0x25
pop ecx
div ecx
mov dword [ebp + 8], eax
add dword [ebp + 8], 0xffffd8b5
xor dword [ebp + 8], 0x6345b
mov dword [ebp - 4], 0xbf24c0
imul eax, dword [ebp - 4], 0x15
mov dword [ebp - 4], eax
shl dword [ebp - 4], 2
xor dword [ebp - 4], 0x3eb80f06
mov dword [ebp - 4], 0x286c39
xor dword [ebp - 4], 0x9b091a3d
xor dword [ebp - 4], 0x9b217614
cmp byte [ebx], 0
je 0x3abd7c
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], 0xbf24c0
imul eax, dword [ebp - 4], 0x15
mov dword [ebp - 4], eax
shl dword [ebp - 4], 2
xor dword [ebp - 4], 0x3eb80f06
mov cl, byte [ebp - 4]
mov esi, dword [ebp + 8]
mov dword [ebp - 4], 0x286c39
xor dword [ebp - 4], 0x9b091a3d
xor dword [ebp - 4], 0x9b217614
shl esi, cl
mov cl, byte [ebp - 4]
mov edx, dword [ebp + 8]
movsx eax, byte [ebx]
mov dword [ebp + 8], eax
add dword [ebp + 8], esi
shl edx, cl
add dword [ebp + 8], edx
sub dword [ebp + 8], edi
inc ebx
cmp byte [ebx], 0
jne 0x3abd24
pop edi
pop esi
mov eax, dword [ebp + 8]
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x3b0101
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push dword [ebp + 8]
push edx
push ecx
call fcn.003aaa7d
and dword [ebp - 8], 0
add esp, 0xc
mov dword [ebp - 0xc], 0x1709c5
mov dword [ebp - 4], 0x534f4d
xor dword [ebp - 4], 0xcb28e746
xor dword [ebp - 4], 0xcb7ba900
cmp dword [edx + 4], 0x40
jae 0x3b013e
xor eax, eax
jmp 0x3b0167
mov ecx, dword [edx]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x3b013a
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x3b013a
movzx edx, word [eax + 0x18]
mov ecx, dword [ebp - 4]
push esi
xor esi, esi
cmp edx, ecx
cmovne eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x3b1a0b
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x14
push ebx
push ebp
push esi
push edi
push dword [esp + 0x30]
mov ebx, edx
push dword [esp + 0x30]
push dword [esp + 0x30]
push ebx
push ecx
call fcn.003aaa7d
mov dword [esp + 0x24], 0x7402d9
add esp, 0x14
add dword [esp + 0x10], 0xfffff275
shr dword [esp + 0x10], 0xb
xor dword [esp + 0x10], 0x175e81f2
xor dword [esp + 0x10], 0x175e8f8d
mov dword [esp + 0x20], 0xc553f
add dword [esp + 0x20], 0xffff8c50
xor dword [esp + 0x20], 0x2d175
mov dword [esp + 0x18], 0xb67b77
shr dword [esp + 0x18], 7
add dword [esp + 0x18], 0xda89
xor dword [esp + 0x18], 0x1782
mov dword [esp + 0x14], 0x4e9af1
imul eax, dword [esp + 0x14], 0x2c
mov dword [esp + 0x14], eax
imul eax, dword [esp + 0x14], 0x7b
mov dword [esp + 0x14], eax
shr dword [esp + 0x14], 1
xor dword [esp + 0x14], 0x3ee1f993
mov dword [esp + 0x1c], 0x4776bc
or dword [esp + 0x1c], 0xc1b7ea3e
shr dword [esp + 0x1c], 0xb
xor dword [esp + 0x1c], 0x1d8ae3
mov eax, dword [ebx + 0x3c]
mov ecx, dword [esp + 0x10]
add eax, ebx
mov edx, dword [eax + ecx*8 + 0x78]
test edx, edx
je 0x3b1b48
cmp dword [eax + ecx*8 + 0x7c], 0
je 0x3b1b48
lea esi, [edx + ebx]
jmp 0x3b1b41
mov edx, dword [esp + 0x18]
add eax, ebx
mov ecx, dword [esp + 0x20]
push eax
call fcn.003bf5a4
pop ecx
mov ecx, eax
mov dword [esp + 0x10], ecx
test ecx, ecx
je 0x3b1b53
mov edi, dword [esi]
mov ebp, dword [esi + 0x10]
add edi, ebx
add ebp, ebx
jmp 0x3b1b38
jns 0x3b1b11
movzx eax, ax
jmp 0x3b1b16
add eax, 2
add eax, ebx
mov edx, dword [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x18]
push eax
call fcn.003a4055
pop ecx
pop ecx
test eax, eax
je 0x3b1b53
mov ecx, dword [esp + 0x10]
add edi, 4
mov dword [ebp], eax
add ebp, 4
mov eax, dword [edi]
test eax, eax
jne 0x3b1b0a
add esi, 0x14
mov eax, dword [esi + 0xc]
test eax, eax
jne 0x3b1ae4
xor eax, eax
inc eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
xor eax, eax
jmp 0x3b1b4b