joyce8/EMBER2024-capa huggingface dataset:
Function at 0x3f38cf7e
Capabilities:
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x64]
sub esp, 0x200
push ebx
push esi
push edi
push 0x80
lea eax, [ebp - 0x9c]
push eax
push dword [ebp + 0x6c]
call dword [sym.imp.ole32.dll_StringFromGUID2]
xor ebx, ebx
push ebx
push ebx
push 0x40
lea eax, [ebp - 0x1c]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x9c]
push eax
push ebx
push ebx
call dword [sym.imp.kernel32.dll_WideCharToMultiByte]
mov esi, 0x3f2ff05c
lea edi, [ebp + 0x24]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lea eax, [ebp - 0x1c]
movsb byte es:[edi], byte [esi]
mov edx, eax
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x3f38cfcd
lea edi, [ebp + 0x24]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
cmp cl, bl
jne 0x3f38cfda
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp + 0x74]
cmp edi, ebx
mov esi, 0x3f2ff054
je 0x3f38d015
push dword [ebp + 0x70]
mov eax, edi
push ebx
call fcn.3f39499c
lea eax, [ebp - 0x1c]
push eax
push esi
mov eax, edi
call fcn.3f39499c
mov eax, dword [ebp + 0x78]
cmp eax, ebx
je 0x3f38d040
push dword [ebp + 0x70]
push ebx
call fcn.3f39499c
mov eax, dword [ebp + 0x78]
push edi
push 0x3f2ff04c
call fcn.3f39499c
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp + 0x78]
push esi
call fcn.3f39499c
push dword [ebp + 0x70]
lea eax, [ebp + 0x24]
push ebx
call fcn.3f39499c
cmp edi, ebx
je 0x3f38d05e
push edi
push 0x3f2ff044
lea eax, [ebp + 0x24]
call fcn.3f39499c
cmp dword [ebp + 0x78], ebx
je 0x3f38d073
push dword [ebp + 0x78]
lea eax, [ebp + 0x24]
push 0x3f2ff028
call fcn.3f39499c
push ebx
push 0x3f2ff018
lea eax, [ebp + 0x24]
call fcn.3f39499c
push dword [ebp + 0x7c]
mov esi, 0x3f2ff008
push esi
lea eax, [ebp + 0x24]
call fcn.3f39499c
push esi
lea eax, [ebp + 0x24]
push eax
lea eax, [ebp - 0x19c]
push 0x3f2ff000
push eax
call fcn.3f39499c
add esp, 0x10
push ebx
lea eax, [ebp + 0x78]
push eax
push ebx
push 0xf003f
push ebx
push ebx
push ebx
lea eax, [ebp - 0x19c]
push eax
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x3f38d0ff
mov esi, 0x3f2feff4
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x3f38d0d9
sub eax, edx
inc eax
push eax
push esi
push 1
push ebx
push 0x3f2fefe4
push dword [ebp + 0x78]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp + 0x78]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
xor eax, eax
pop ebx
add ebp, 0x64
leave
ret 0x14
Function at 0x3f39499c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
pushal
call 0x3f3949ab
pop dword [ebp - 0x3c]
mov eax, 0x6498575d
sub eax, 0x255f0db2
sub dword [ebp - 0x3c], eax
push 0x40
push 0x1000
push 0x44a98
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x3c]
call dword [eax]
mov ecx, 0x4881
mov esi, eax
mov edx, 0x3f403000
add edx, dword [ebp - 0x3c]
mov ebx, 0xf2e70f5b
add ebx, 0x2f706945
sub dword [ebp - 0x14], 0x401121ce
mov edi, dword [edx]
sub dword [ebp - 0x18], esi
xor edi, ebx
mov dword [esi], edi
add dword [ebp - 0x10], 0x4bd34341
add esi, 0xcecdf6c6
add esi, 0x3132093e
add edx, 4
loop 0x3f3949f9
add eax, 0x7ef97e57
sub eax, 0x7ef86980
mov ebx, eax
add eax, 0xdef49568
add eax, 0x210b6a9d
mov ecx, 0x8e81dc20
add ecx, 0xb08e23e0
add ecx, dword [ebp - 0x3c]
call ebx
leave
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x401ca0
Capabilities:
Create thread

Disassembly:
push ebx
push ebp
push esi
push edi
push dword [esp + 0x14]
lea eax, [esp + 0x18]
mov edi, ecx
push eax
call fcn.00401d62
xor ebp, ebp
pop ecx
pop ecx
mov ebx, dword [eax]
mov dword [eax], ebp
cmp dword [esp + 0x14], ebp
je 0x401ccf
push 4
push dword [esp + 0x18]
call fcn.004071f6
pop ecx
pop ecx
lea esi, [edi + 4]
push esi
push ebp
push ebx
push 0x401b4c
push ebp
push ebp
call fcn.0040c903
add esp, 0x18
mov dword [edi], eax
test eax, eax
je 0x401cf1
pop edi
pop esi
pop ebp
pop ebx
ret 4
push 6
mov dword [esi], ebp
call fcn.00403e99
int3
Function at 0x405720
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
jg 0x405741
jl 0x405738
test edi, edi
jne 0x405741
xor eax, eax
xor edx, edx
jmp 0x405802
cmp dword [ebx + 0x38], 0
je 0x405756
push eax
push edi
push dword [ebp + 8]
call fcn.00405808
jmp 0x405802
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x40579d
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x40579d
cmp eax, edi
jb 0x405777
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.00407fa0
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, dword [ebp + 8]
sub esi, ecx
add eax, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x2c]
sub dword [eax], ecx
mov eax, dword [ebx + 0x1c]
add dword [eax], ecx
jmp 0x4057a3
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x4057f7
mov ecx, ebx
call fcn.00404fb7
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x4057e2
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.0040dfc3
mov ecx, dword [ebp - 4]
sub esi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, esi
cmp eax, 0xfff
jne 0x4057f7
jmp 0x4057b5
test edx, edx
je 0x4057f7
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.0040dfc3
add esp, 0x10
sub esi, eax
mov edx, dword [ebp + 0x10]
sub edi, esi
mov eax, edi
sbb edx, 0
pop esi
pop edi
pop ebx
leave
ret 0xc

Function at 0x407ddf
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x407e1e
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x407e1e
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x407e1e
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x407e1e
cmp dword [ecx + 0x74], 0xe
jbe 0x407e1e
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x412d66
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42366c
push 0x423664
push str.FlsAlloc
push 0x1e
call fcn.00412b93
mov esi, eax
add esp, 0x10
test esi, esi
je 0x412d9a
push dword [ebp + 8]
mov ecx, esi
call dword [0x42015c]
call esi
jmp 0x412da0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x412de4
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42367c
push 0x423674
push str.FlsGetValue
push 0x20
call fcn.00412b93
mov esi, eax
add esp, 0x10
test esi, esi
je 0x412e1b
push dword [ebp + 8]
mov ecx, esi
call dword [0x42015c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x41561a
Capabilities:
Read file on windows

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

Function at 0x415625
Capabilities:
Read file on windows

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

Function at 0x415a1f
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00407f50
mov eax, dword [0x490700]
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.004144b1
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x415a61
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x415bbd
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0041ebf0
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 + 0x492538]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00416bef
mov ecx, dword [esi*4 + 0x492538]
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 0x415bb6
cmp eax, dword [edi + ecx + 0x24]
jne 0x415bb6
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 0x415bb6
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00416bef
add esp, 0x14
test edx, edx
jl 0x415bb6
jg 0x415b2c
test eax, eax
jb 0x415bb6
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x415bb6
jl 0x415b46
cmp dword [ebp - 0x1008], eax
ja 0x415bb6
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x415b64
test ebx, ebx
je 0x415b9d
cmp ecx, edi
jae 0x415b9d
mov al, byte [ecx]
cmp al, 0xd
jne 0x415b7e
lea eax, [edi - 1]
cmp ecx, eax
jae 0x415b8a
cmp byte [ecx + 1], 0xa
jne 0x415b8a
inc ecx
jmp 0x415b8a
movzx eax, al
movsx eax, byte [eax + 0x4909d0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x415b64
cmp edx, ebx
jne 0x415b64
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x415bbb
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00407209
leave
ret
Function at 0x41608d
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 + 0x492538]
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 0x4160cd
cmp byte [ebx], 0xa
jne 0x4160cd
or byte [eax + edi + 0x28], 4
jmp 0x4160d2
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x4161d0
mov al, byte [edx]
cmp al, 0x1a
je 0x4161b2
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x416101
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x416126
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x416130
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 0x4160e3
jmp 0x4161d0
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 0x4161ad
cmp dword [ebp - 0xc], 0
je 0x4161ad
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x492538]
test byte [eax + edi + 0x28], 0x48
je 0x416187
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x416172
mov byte [esi], dl
jmp 0x416183
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x492538]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4161d0
cmp byte [ebp - 1], 0xa
jne 0x416196
cmp esi, ebx
jne 0x416196
mov byte [esi], 0xa
jmp 0x4161cf
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00416c0d
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4161d0
mov byte [esi], 0xd
jmp 0x4161cf
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x492538]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4161cc
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4161d0
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4161d9
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 + 0x492538]
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 0x41621c
cmp word [esi], dx
jne 0x41621c
or byte [edi + eax + 0x28], 4
jmp 0x416221
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 0x416374
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 0x416354
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x416263
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x416299
cmp eax, edx
jae 0x4162a5
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 0x41623b
jmp 0x416374
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 0x416350
cmp dword [ebp - 0x14], 0
je 0x416350
mov eax, dword [ebx*4 + 0x492538]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x416328
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x4162f1
mov word [esi], cx
jmp 0x416324
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x492538]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x492538]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x492538]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x416374
pop ebx
cmp word [ebp - 4], bx
jne 0x416339
cmp esi, dword [ebp + 0xc]
jne 0x416339
mov word [esi], bx
jmp 0x416371
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00416c0d
add esp, 0x10
cmp word [ebp - 4], bx
je 0x416374
push 0xd
jmp 0x41636d
mov ecx, dword [ebx*4 + 0x492538]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41636b
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x416374
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 0x418f82
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 0x41901f
push ebx
push esi
call fcn.00418f4b
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.00417bd0
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x418fcc
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41901e
push edi
push eax
call fcn.004134a0
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x418fec
call fcn.0041266b
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41901d
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00417bd0
add esp, 0x20
test eax, eax
jne 0x41900b
push edi
call fcn.0041266b
jmp 0x419013
push ebx
call fcn.0041266b
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 0x41ebb0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41ebdd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41ebdd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4014b0
Capabilities:
Encrypt data using des

Disassembly:
sub esp, 0xf4
xor ecx, ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x104]
push edi
xor eax, eax
mov al, byte [ecx + str.80_]
mov edx, eax
and eax, 7
sar edx, 3
mov bl, byte [eax*2 + 0x461178]
mov dl, byte [edx + esi]
test bl, dl
setne al
mov byte [esp + ecx + 0x4c], al
inc ecx
cmp ecx, 0x38
jl 0x4014c3
mov eax, 0x1e
xor edx, edx
mov dword [esp + 0x10], eax
cmp dword [esp + 0x10c], 1
je 0x401504
lea eax, [edx + edx]
lea edi, [esp + eax*4 + 0x88]
lea ebp, [esp + eax*4 + 0x84]
xor eax, eax
xor ecx, ecx
mov cl, byte [edx + 0x461220]
mov dword [edi], 0
mov dword [ebp], 0
mov esi, ecx
cmp ecx, 0x1c
jge 0x401536
mov bl, byte [esp + ecx + 0x4c]
jmp 0x40153a
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x1c
jl 0x40152b
mov eax, 0x1c
lea ecx, [esi + 0x1c]
cmp ecx, 0x38
jge 0x401558
mov bl, byte [esp + ecx + 0x4c]
jmp 0x40155c
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x38
jl 0x40154d
xor eax, eax
xor ecx, ecx
mov cl, byte [eax + 0x461230]
mov bl, byte [esp + ecx + 0x14]
test bl, bl
je 0x401588
mov ecx, dword [eax*4 + 0x461188]
mov esi, dword [ebp]
or esi, ecx
mov dword [ebp], esi
xor ecx, ecx
mov cl, byte [eax + 0x461248]
mov bl, byte [esp + ecx + 0x14]
test bl, bl
je 0x4015a5
mov ecx, dword [eax*4 + 0x461188]
mov esi, dword [edi]
or esi, ecx
mov dword [edi], esi
inc eax
cmp eax, 0x18
jl 0x401569
mov eax, dword [esp + 0x10]
inc edx
sub eax, 2
cmp eax, 0xfffffffe
mov dword [esp + 0x10], eax
jg 0x4014f7
lea edx, [esp + 0x84]
push edx
call fcn.004015e0
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xf4
ret
Function at 0x402210
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x248
push esi
push edi
lea eax, [esp + 0xc]
push 0x104
push eax
push 0
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x40230e
lea ecx, [esp + 0xc]
push 0x5c
push ecx
call fcn.0044a480
add esp, 8
test eax, eax
je 0x40230e
mov byte [eax], 0
lea edi, [esp + 0xc]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp byte [esp + ecx + 0xb], 0x5c
je 0x40227f
lea edi, [esp + 0xc]
or ecx, 0xffffffff
xor eax, eax
mov dx, word [0x461ae0]
repne scasb al, byte es:[edi]
mov word [edi - 1], dx
lea edi, [esp + 0xc]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x110]
repne scasb al, byte es:[edi]
mov eax, dword [str..dsm]
mov cx, word [0x461adc]
dec edi
push edx
mov dword [edi], eax
lea eax, [esp + 0x10]
push eax
mov word [edi + 4], cx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x40230e
mov edi, dword [esp + 0x254]
push ebx
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_FindNextFileA]
lea ecx, [esp + 0x144]
push ecx
push 0
push 0x143
push edi
call ebx
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x118]
inc ecx
push edx
push esi
mov dword [esp + 0x18], ecx
call ebp
test eax, eax
jne 0x4022cc
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 0x10]
pop ebp
pop ebx
pop edi
pop esi
add esp, 0x248
ret 4
pop edi
xor eax, eax
pop esi
add esp, 0x248
ret 4
Function at 0x402320
Capabilities:
Copy file
Delete file
Link many functions at runtime

Disassembly:
mov al, byte [esp + 8]
sub esp, 0xcc
test al, al
push ebx
push esi
push edi
mov esi, ecx
je 0x4023d5
push ebp
mov ebp, dword [esp + 0xe0]
lea edi, [esp + 0x18]
lea edx, [esp + 0x18]
sub edi, ebp
sub edx, 4
mov ebx, 1
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], edx
jmp 0x402363
mov edi, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov eax, ebp
mov cl, byte [eax]
mov byte [edi + eax], cl
inc eax
test cl, cl
jne 0x402365
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov byte [ecx + edx], al
mov eax, ebx
push eax
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x20]
push str._s_tmp.d_d
push ecx
inc ebx
call fcn.0044a04f
add esp, 0x10
lea edx, [esp + 0x18]
push 0
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
setne al
cmp ebx, 0x63
jg 0x4023b5
test al, al
je 0x40235b
lea ebx, [esi + 0x1c8]
lea ecx, [esp + 0x18]
mov edx, ebx
lea eax, [esp + 0x18]
sub edx, ecx
pop ebp
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4023c8
push ebx
jmp 0x4023ff
lea ebx, [esi + 0x1c8]
or ecx, 0xffffffff
mov edi, ebx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, ebx
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0xdc]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
mov dword [esi + 0x1c4], eax
je 0x40253d
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.Description
push eax
call edi
mov ecx, dword [esi + 0x1c4]
push str.Startup
push ecx
mov dword [esi + 0x28c], eax
call edi
mov edx, dword [esi + 0x1c4]
push str.Shutdown
push edx
mov dword [esi + 0x294], eax
call edi
mov dword [esi + 0x290], eax
mov eax, dword [esi + 0x1c4]
push str.SetParams
push eax
call edi
mov ecx, dword [esi + 0x1c4]
push str.GetParams
push ecx
mov dword [esi + 0x298], eax
call edi
mov edx, dword [esi + 0x1c4]
push str.TransformBuffer
push edx
mov dword [esi + 0x29c], eax
call edi
mov dword [esi + 0x2a0], eax
mov eax, dword [esi + 0x1c4]
push str.RestoreBuffer
push eax
call edi
mov ecx, dword [esi + 0x1c4]
push str.FreeBuffer
push ecx
mov dword [esi + 0x2a4], eax
call edi
mov edx, dword [esi + 0x1c4]
push str.Reset
push edx
mov dword [esi + 0x2a8], eax
call edi
mov dword [esi + 0x2ac], eax
mov eax, dword [esi + 0x294]
test eax, eax
je 0x402524
mov eax, dword [esi + 0x290]
test eax, eax
je 0x402524
mov eax, dword [esi + 0x298]
test eax, eax
je 0x402524
mov eax, dword [esi + 0x29c]
test eax, eax
je 0x402524
mov eax, dword [esi + 0x2a0]
test eax, eax
je 0x402524
mov eax, dword [esi + 0x2a4]
test eax, eax
je 0x402524
mov eax, dword [esi + 0x2a8]
test eax, eax
je 0x402524
push 1
mov ecx, esi
call fcn.00402130
pop edi
pop esi
mov al, 1
pop ebx
add esp, 0xcc
ret 8
mov eax, dword [esi + 0x1c4]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp byte [ebx], 0
je 0x40253d
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop edi
pop esi
xor al, al
pop ebx
add esp, 0xcc
ret 8
Function at 0x402550
Capabilities:
Delete file

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x2b0]
test eax, eax
je 0x402567
push eax
call dword [esi + 0x2a8]
add esp, 4
mov eax, dword [esi + 0x2b4]
test eax, eax
je 0x40257b
push eax
call dword [esi + 0x2a8]
add esp, 4
push 0
mov ecx, esi
mov dword [esi + 0x2b0], 0
mov dword [esi + 0x2b4], 0
call fcn.00402130
call dword [esi + 0x290]
test eax, eax
je 0x4025d1
mov eax, dword [esi + 0x1c4]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov cl, byte [esi + 0x1c8]
test eax, eax
lea eax, [esi + 0x1c8]
setne bl
test cl, cl
je 0x4025cc
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov al, bl
pop ebx
pop esi
ret
xor al, al
pop esi
ret
Function at 0x404610
Capabilities:
Find taskbar

Disassembly:
push ecx
call fcn.0042e290
cmp eax, 4
je 0x4046b8
call fcn.0042e290
cmp eax, 5
je 0x4046b8
call fcn.00436860
test eax, eax
jne 0x404656
push 0x46f3b4
push 0x10000000
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
neg eax
sbb eax, eax
and eax, 2
pop ecx
ret
push 0
push str.Shell_TrayWnd
call dword [sym.imp.USER32.dll_FindWindowA]
test eax, eax
jne 0x404669
pop ecx
ret
lea ecx, [esp]
mov dword [esp], 0
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov eax, dword [esp]
test eax, eax
jne 0x404687
pop ecx
ret
push eax
push 0
push 0x2000000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
test eax, eax
mov dword [0x46f3b8], eax
jne 0x4046a0
pop ecx
ret
push 0x46f3b4
push 0x2000000
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov eax, 2
pop ecx
ret
mov eax, 1
pop ecx
ret