joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405e33
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
push ebx
mov ebx, dword [ebp + 8]
push ebx
call fcn.00405968
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 8], eax
test cl, 8
je 0x405e68
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x423c88], eax
jmp 0x405ffa
mov dword [ebp + 8], ecx
and dword [ebp + 8], 1
push esi
je 0x405e83
test eax, eax
je 0x405fa5
test cl, 2
je 0x405fa5
push edi
push ebx
mov esi, 0x422358
push esi
call fcn.004057c7
cmp dword [ebp + 8], 0
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
je 0x405ea6
push 0x407638
push esi
call edi
jmp 0x405eac
push ebx
call fcn.00405941
cmp byte [ebx], 0
jne 0x405eba
cmp byte [0x422358], 0x5c
jne 0x405ec2
push 0x407290
push ebx
call edi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
lea eax, [ebp - 0x148]
push eax
push esi
add edi, ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
je 0x405f9a
lea esi, [ebp - 0x11c]
push 0x3f
mov eax, esi
push eax
call fcn.0040555c
cmp byte [eax], 0
je 0x405f05
cmp byte [ebp - 0x18], 0
je 0x405f05
lea esi, [ebp - 0x18]
cmp byte [esi], 0x2e
jne 0x405f1b
mov al, byte [esi + 1]
test al, al
je 0x405f79
cmp al, 0x2e
jne 0x405f1b
cmp byte [esi + 2], 0
je 0x405f79
push esi
push edi
call fcn.004057c7
test byte [ebp - 0x148], 0x10
je 0x405f40
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x405f79
push dword [ebp + 0xc]
push ebx
call fcn.00405e33
jmp 0x405f79
push ebx
call fcn.00405617
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x405f71
test byte [ebp + 0xc], 4
je 0x405f69
push ebx
push 0xfffffffffffffff1
call fcn.00404859
push 0
push ebx
call fcn.00405c9a
jmp 0x405f79
inc dword [0x423c88]
jmp 0x405f79
push ebx
push 0xfffffffffffffff2
call fcn.00404859
lea eax, [ebp - 0x148]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x405ee7
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x405fa4
mov byte [edi - 1], 0
pop edi
xor esi, esi
cmp dword [ebp + 8], esi
je 0x405ff9
cmp dword [ebp - 8], esi
je 0x405fe9
push ebx
call fcn.00405883
test eax, eax
je 0x405ff9
push ebx
call fcn.00405914
push ebx
call fcn.00405617
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x405ff1
test byte [ebp + 0xc], 4
je 0x405fe9
push ebx
push 0xfffffffffffffff1
call fcn.00404859
push esi
push ebx
call fcn.00405c9a
jmp 0x405ff9
inc dword [0x423c88]
jmp 0x405ff9
push ebx
push 0xffffffffffffffe5
call fcn.00404859
pop esi
pop ebx
leave
ret 8
Function at 0x405fff
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x42275c], 0
jne 0x40603d
xor ecx, ecx
push esi
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
movzx edx, dl
neg edx
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406013
mov dword [ecx*4 + 0x422758], eax
inc ecx
cmp ecx, 0x100
jl 0x40600e
pop esi
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp + 8]
not eax
jbe 0x40606a
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
dec dword [ebp + 0x10]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x422758]
inc ecx
cmp dword [ebp + 0x10], 0
ja 0x40604b
not eax
pop ebp
ret 0xc

Function at 0x41f1a0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x16000]
push edi
or ebp, 0xffffffff
jmp 0x41f1c2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x41f1c9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x41f1b8
mov eax, 1
add ebx, ebx
jne 0x41f1db
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x41f1d0
jne 0x41f1ec
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41f1d0
xor ecx, ecx
sub eax, 3
jb 0x41f200
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x41f272
mov ebp, eax
add ebx, ebx
jne 0x41f20b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x41f218
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x41f23c
inc ecx
add ebx, ebx
jne 0x41f228
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x41f21d
jne 0x41f239
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41f21d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x41f25c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x41f24d
jmp 0x41f1be
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x41f25c
add edi, ecx
jmp 0x41f1be
pop esi
mov edi, esi
mov ecx, 0x202
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x41f27a
cmp byte [edi], 6
jne 0x41f27a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x41f27f
lea edi, [esi + 0x1d000]
mov eax, dword [edi]
or eax, eax
je 0x41f2f7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1ffc4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x20000]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x41f2ac
mov ecx, edi
jns 0x41f2db
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x20004]
or eax, eax
je 0x41f2f1
mov dword [ebx], eax
add ebx, 4
jmp 0x41f2c9
call dword [esi + 0x20008]
popal
jmp 0x40290c
Function at 0x401399
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4b14c4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
push eax
lea edi, [ebp - 0x24]
call fcn.0040106b
mov eax, dword [eax]
xor esi, esi
cmp eax, esi
je 0x4013c3
mov eax, dword [eax]
jmp 0x4013c5
xor eax, eax
push eax
lea eax, [ebp - 0x20]
call fcn.00401556
lea edi, [ebp - 0x24]
call fcn.004010cb
cmp dword [ebp - 0xc], 8
mov eax, dword [ebp - 0x20]
jae 0x4013e2
lea eax, [ebp - 0x20]
push 1
push esi
push esi
push eax
push 0x4986d4
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push 1
xor edi, edi
lea esi, [ebp - 0x20]
call fcn.0040162a
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
xor eax, eax
pop esi
call fcn.00474c58
leave
ret 8
Function at 0x403282
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x4b14c4]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [ebp + 8]
mov eax, dword [edi + 4]
push ecx
push dword [edi]
xor esi, esi
or eax, 0x2001f
lea ebx, [ebp - 0x218]
mov dword [ebp - 0x220], ecx
mov dword [ebp - 0x218], esi
mov dword [ebp - 0x214], esi
mov dword [ebp - 0x210], esi
call fcn.00403230
mov ebx, eax
cmp ebx, esi
je 0x4032ee
cmp dword [ebp - 0x218], esi
je 0x4032e7
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x403386
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x403316
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x218]
call fcn.00403282
mov dword [ebp - 0x224], eax
cmp eax, esi
jne 0x403397
lea eax, [ebp - 0x22c]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x20c]
push eax
push esi
push dword [ebp - 0x218]
mov dword [ebp - 0x21c], 0x100
call ebx
test eax, eax
je 0x4032f6
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x218], esi
je 0x403361
push dword [ebp - 0x218]
call ebx
mov dword [ebp - 0x218], esi
push dword [ebp - 0x220]
mov dword [ebp - 0x214], esi
call fcn.00403451
mov edi, eax
cmp dword [ebp - 0x218], esi
je 0x403384
push dword [ebp - 0x218]
call ebx
mov eax, edi
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00474c58
leave
ret 4
cmp dword [ebp - 0x218], esi
je 0x4033ab
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x224]
jmp 0x403386
Function at 0x403d7e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x424
mov eax, 0x49045e
call fcn.0047ae8f
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
xor esi, esi
mov edi, edx
mov dword [ebp - 0x430], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], esi
mov dword [ebp - 0x418], esi
push 2
push esi
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [ebp - 0x41c], eax
cmp eax, esi
jne 0x403dd6
call fcn.00402766
mov esi, eax
jmp 0x403ee0
push ebx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
cmp edi, esi
jne 0x403def
call fcn.00402766
jmp 0x403ed2
push edi
push dword [ebp - 0x41c]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x420], eax
cmp eax, esi
je 0x403de5
push edi
push dword [ebp - 0x41c]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
lea eax, [edi + 1]
mov dword [ebp - 0x424], edi
cmp eax, edi
jae 0x403e2c
mov esi, 0x8007000e
jmp 0x403ed4
xor ecx, ecx
shld ecx, eax, 1
add eax, eax
mov byte [ebp - 4], 2
cmp ecx, esi
ja 0x403e41
cmp eax, 0xffffffff
jbe 0x403e4b
push 0x80070216
call fcn.004030f5
cmp eax, 0x400
jbe 0x403e78
push eax
lea eax, [ebp - 0x418]
push eax
call fcn.00402743
jmp 0x403e84
lea eax, [ebp - 0x414]
mov dword [ebp - 0x418], eax
mov dword [ebp - 4], 1
cmp dword [ebp - 0x418], esi
je 0x403e22
push edi
push dword [ebp - 0x418]
push edi
push dword [ebp - 0x420]
push esi
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, esi
je 0x403de5
mov edx, dword [ebp - 0x418]
push dword [ebp + 0x10]
xor ecx, ecx
mov word [edx + eax*2], cx
mov ecx, dword [ebp - 0x418]
lea edx, [ebp - 0x42c]
call fcn.00403c1e
mov esi, eax
push dword [ebp - 0x41c]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x403ef9
lea eax, [ebp - 0x418]
call fcn.00402cb7
mov eax, esi
call fcn.0047aeeb
ret 0xc
Function at 0x404b07
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x494400
mov eax, dword fs:[0]
push eax
sub esp, 0x64c
mov eax, dword [0x4b14c4]
xor eax, esp
mov dword [esp + 0x644], eax
push esi
push edi
mov eax, dword [0x4b14c4]
xor eax, esp
push eax
lea eax, [esp + 0x658]
mov dword fs:[0], eax
xor edi, edi
push edi
lea eax, [esp + 0x50]
lea esi, [ebx + 0x60]
push eax
mov ecx, 0x4b6598
mov dword [esi], edi
call fcn.0046cb5b
mov dword [esp + 0x660], edi
cmp dword [esp + 0x60], edi
jne 0x404b71
push edi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
lea edi, [esp + 0x4c]
call fcn.004048ce
lea esi, [ebx + 0x160]
push 0x49c198
mov dword [esp + 0x14], esi
call fcn.00401c1b
pop ecx
test al, al
jne 0x404b9e
push 0x49c154
call fcn.00401c1b
pop ecx
push 0x49c19c
lea eax, [esp + 0x34]
call fcn.00401556
lea eax, [esp + 0x30]
push eax
mov byte [esp + 0x664], 1
call fcn.00404533
mov ecx, eax
lea eax, [esp + 0x18]
call fcn.00404573
push 1
xor edi, edi
lea esi, [esp + 0x34]
mov byte [esp + 0x664], 3
call fcn.0040162a
push 0x49c154
lea esi, [esp + 0x18]
call fcn.00401c1b
pop ecx
test al, al
je 0x404bf8
mov esi, ebx
call fcn.00404e7e
lea ecx, [ebx + 0x64]
push ebx
call fcn.004056af
mov esi, dword [esp + 0x10]
push 0x49c1b0
call fcn.00401c1b
pop ecx
test al, al
je 0x404c50
push 0
lea eax, [esp + 0x350]
push eax
mov ecx, 0x4b6598
call fcn.0046cb5b
mov edi, eax
lea esi, [esp + 0x4c]
mov byte [esp + 0x660], 4
call fcn.004048ce
lea eax, [esp + 0x34c]
push eax
mov byte [esp + 0x664], 3
call fcn.00404757
push 1
xor edi, edi
lea esi, [esp + 0x18]
call fcn.0040162a
or dword [esp + 0x660], 0xffffffff
lea eax, [esp + 0x4c]
push eax
call fcn.00404757
xor eax, eax
mov ecx, dword [esp + 0x658]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x644]
xor ecx, esp
call fcn.00474c58
mov esp, ebp
pop ebp
ret
Function at 0x4058c1
Capabilities:
Terminate process

Disassembly:
push 0xb4
mov eax, 0x493a04
call fcn.0047ae8f
push str.PXFhF3lrcBxsc2xhH3VmdRxyXWdyGnBuHGp0a2scbWZfHGhqanRdZ2hacmNrbTsXKEpKUBlQPz9OSURFSj9BPSc
lea eax, [ebp - 0x30]
mov ebx, ecx
call fcn.00401556
and dword [ebp - 4], 0
lea eax, [ebp - 0x68]
push eax
lea ecx, [ebp - 0x30]
call fcn.0041fe3a
pop ecx
push 1
xor edi, edi
lea esi, [ebp - 0x30]
mov byte [ebp - 4], 2
call fcn.0040162a
cmp dword [ebp - 0x54], 8
mov eax, dword [ebp - 0x68]
jae 0x40590c
lea eax, [ebp - 0x68]
push 0x14
push 0x49bf80
push eax
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 6
jne 0x405af7
push str.T0ROTUVOUUFLUUNLTQ
lea eax, [ebp - 0xa0]
call fcn.00401556
lea eax, [ebp - 0xa0]
push eax
mov byte [ebp - 4], 3
call fcn.00404533
mov ecx, eax
lea eax, [ebp - 0x4c]
call fcn.00404573
push 1
xor edi, edi
lea esi, [ebp - 0xa0]
call fcn.0040162a
mov byte [ebp - 4], 6
cmp dword [ebp - 0x38], 8
mov eax, dword [ebp - 0x4c]
jae 0x40596f
lea eax, [ebp - 0x4c]
push eax
call fcn.004770c4
fstp dword [ebp - 0xc0]
fld1
pop ecx
fcomp dword [ebp - 0xc0]
fnstsw ax
test ah, 0x41
jp 0x4059eb
push str.offerid
lea eax, [ebp - 0x30]
call fcn.00401556
mov byte [ebp - 4], 7
mov eax, dword [0x4b65b0]
imul eax, eax, 0x31c
add eax, dword [0x4b65d0]
lea edx, [ebp - 0x30]
add eax, 0x24
push eax
lea ecx, [ebp - 0x84]
call fcn.0041abc7
pop ecx
push eax
mov byte [ebp - 4], 8
push dword [0x4b65b4]
call fcn.0041c47e
pop ecx
pop ecx
push 1
xor edi, edi
lea esi, [ebp - 0x84]
call fcn.0040162a
push 1
lea esi, [ebp - 0x30]
call fcn.0040162a
mov dword [ebp - 4], 5
mov eax, dword [0x4b616c]
xor ebx, ebx
push ebx
mov byte [0x4b6598], 1
push dword [eax + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
cmp byte [0x4b659b], bl
je 0x405a2f
push ebx
mov byte [0x4b6598], 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov eax, dword [0x4b65d4]
mov ecx, dword [0x4b65d0]
sub eax, ecx
cdq
mov esi, 0x31c
idiv esi
mov dword [ebp - 0xc0], ebx
test eax, eax
je 0x405aeb
lea esi, [ebx + ecx]
push 0x49c3e8
call fcn.00401c1b
pop ecx
test al, al
je 0x405ac2
mov eax, dword [0x4b65d0]
add eax, ebx
add eax, 0x24
push eax
lea esi, [ebp - 0x84]
call fcn.00405b15
push 0x49bf80
lea eax, [ebp - 0xbc]
mov byte [ebp - 4], 0xa
call fcn.00401556
mov eax, esi
push eax
mov byte [ebp - 4], 0xb
call fcn.00418e44
pop ecx
push 1
xor edi, edi
lea esi, [ebp - 0xbc]
call fcn.0040162a
push 1
lea esi, [ebp - 0x84]
mov byte [0x4b6598], 1
mov byte [ebp - 4], 5
call fcn.0040162a
mov eax, dword [0x4b65d4]
mov ecx, dword [0x4b65d0]
sub eax, ecx
mov esi, 0x31c
cdq
idiv esi
inc dword [ebp - 0xc0]
add ebx, esi
cmp dword [ebp - 0xc0], eax
jb 0x405a52
push 1
xor edi, edi
lea esi, [ebp - 0x4c]
call fcn.0040162a
push 1
xor edi, edi
lea esi, [ebp - 0x68]
call fcn.0040162a
xor eax, eax
call fcn.0047aeeb
ret
Function at 0x40605e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x138
mov eax, dword [0x4b14c4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, dword [0x4b4fc8]
mov dword [ebp - 0x110], eax
movzx eax, word [ebp + 0xc]
push 0xf0
push eax
push esi
mov dword [ebp - 0x10c], 1
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4061e5
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4061e5
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4061e5
push ebx
mov ebx, dword [sym.imp.USER32.dll_SendDlgItemMessageW]
push edi
movzx eax, word [esi]
xor ecx, ecx
cmp cx, ax
je 0x4061e3
mov ecx, dword [esi + 4]
mov edi, eax
movzx eax, word [esi + 2]
mov dword [ebp - 0x114], ecx
mov ecx, 0x403
add esi, 8
cmp cx, ax
jne 0x406157
lea eax, [ebp - 0x104]
push 3
mov dword [ebp - 0x108], eax
push esi
lea eax, [ebp - 0x108]
push eax
call fcn.00406755
push dword [ebp - 0x108]
mov eax, dword [ebp - 0x110]
push 0
push 0x143
push edi
push dword [eax + 4]
call ebx
cmp eax, 0xffffffff
jne 0x406137
and dword [ebp - 0x10c], 0
lea eax, [ebp - 0x104]
cmp dword [ebp - 0x108], eax
je 0x4061d0
push dword [ebp - 0x108]
call fcn.00474e9e
pop ecx
jmp 0x4061d0
mov ecx, 0x1234
cmp cx, ax
jne 0x4061d0
or dword [ebp - 0x134], 0xffffffff
lea eax, [ebp - 0x104]
push 3
mov dword [ebp - 0x108], eax
push esi
lea eax, [ebp - 0x108]
push eax
mov dword [ebp - 0x138], 1
call fcn.00406755
mov eax, dword [ebp - 0x108]
lea ecx, [ebp - 0x104]
mov dword [ebp - 0x130], eax
cmp eax, ecx
je 0x4061aa
push eax
call fcn.00474e9e
pop ecx
lea eax, [ebp - 0x138]
push eax
mov eax, dword [ebp - 0x110]
push 0
push 0x40b
push edi
push dword [eax + 4]
call ebx
cmp eax, 0xffffffff
jne 0x4061d0
and dword [ebp - 0x10c], 0
add esi, dword [ebp - 0x114]
cmp dword [ebp - 0x10c], 0
jne 0x4060cd
pop edi
pop ebx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x10c]
xor ecx, ebp
pop esi
call fcn.00474c58
leave
ret 8
Function at 0x40fb6c
Capabilities:
Write file on windows

Disassembly:
push 0x24
mov eax, 0x48ee27
call fcn.0047ae59
xor ebx, ebx
cmp dword [edi + 0x44], ebx
je 0x40fc54
cmp byte [edi + 0x4a], bl
je 0x40fc54
mov eax, dword [edi]
mov esi, 0xffff
push esi
mov ecx, edi
call dword [eax + 0xc]
movzx eax, ax
cmp si, ax
jne 0x40fba8
xor al, al
jmp 0x40fc56
lea esi, [ebp - 0x2c]
call fcn.0040f9df
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x40fbf6
lea eax, [ebp - 0x2c]
mov edx, eax
mov ecx, dword [edi + 0x44]
mov esi, dword [ecx]
lea ebx, [ebp - 0x30]
push ebx
mov ebx, dword [ebp - 0x1c]
add eax, ebx
push eax
push edx
lea eax, [edi + 0x4c]
push eax
call dword [esi + 0x18]
sub eax, 0
je 0x40fbfb
dec eax
je 0x40fbff
dec eax
dec eax
je 0x40fc50
xor bl, bl
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.00406268
mov al, bl
jmp 0x40fc56
mov edx, dword [ebp - 0x2c]
jmp 0x40fbc1
mov byte [edi + 0x4a], 0
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x40fc0b
lea eax, [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
sub esi, eax
je 0x40fc31
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x40fc1e
lea eax, [ebp - 0x2c]
push dword [edi + 0x54]
push esi
push 1
push eax
call fcn.004788bb
add esp, 0x10
cmp esi, eax
jne 0x40fbe4
cmp byte [edi + 0x4a], 0
je 0x40fc50
test esi, esi
jne 0x40fbb3
push esi
push 8
pop ebx
lea esi, [ebp - 0x2c]
call fcn.0040fa67
jmp 0x40fbb3
mov bl, 1
jmp 0x40fbe6
mov al, 1
call fcn.0047aedc
ret
Function at 0x4151c9
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48ed5b
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x2724
call fcn.00485c60
mov eax, dword [0x4b14c4]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
xor ebx, ebx
mov edi, edx
mov dword [ebp - 0x272c], ebx
mov dword [ebp - 0x2730], edi
mov dword [ebp - 4], ebx
cmp byte [ebp + 0x10], bl
je 0x415233
cmp dword [eax + 0x14], 8
jb 0x415225
mov eax, dword [eax]
lea edx, [ebp - 0x2728]
push edx
push 0x20019
jmp 0x415247
cmp dword [eax + 0x14], 8
jb 0x41523b
mov eax, dword [eax]
lea edx, [ebp - 0x2728]
push edx
push 0x20119
push ebx
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x4152e4
xor eax, eax
push 0x270e
mov word [ebp - 0x2724], ax
lea eax, [ebp - 0x2722]
push ebx
push eax
mov dword [ebp - 0x272c], 1
call fcn.00474d90
add esp, 0xc
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x2734], 0x2710
jb 0x415294
mov eax, dword [esi]
jmp 0x415296
mov eax, esi
lea ecx, [ebp - 0x2734]
push ecx
lea ecx, [ebp - 0x2724]
push ecx
lea ecx, [ebp - 0x272c]
push ecx
push ebx
push eax
push dword [ebp - 0x2728]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, ebx
jne 0x4152e8
push dword [ebp - 0x2728]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x2724]
push eax
jmp 0x4152ed
or dword [ebp - 4], 0xffffffff
push 0x49bf80
mov eax, edi
call fcn.00401556
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00474c58
leave
ret
Function at 0x4188ef
Capabilities:
Get mac address on windows

Disassembly:
push 0x30
mov eax, 0x48fb5b
call fcn.0047ae8f
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x34], ebx
push 0x11
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], 4
call fcn.00474e0a
mov edi, eax
mov dword [esp], 0x288
call fcn.00474e0a
mov esi, dword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
pop ecx
lea ecx, [ebp - 0x34]
push ecx
push eax
mov dword [ebp - 0x3c], eax
call esi
cmp eax, 0x6f
jne 0x418944
push dword [ebp - 0x34]
call fcn.00474e0a
pop ecx
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 0x3c]
call esi
test eax, eax
jne 0x418971
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 4], ebx
mov ecx, dword [eax + 0x1a0]
cmp ecx, 0x47
je 0x418991
cmp ecx, 6
je 0x418991
mov eax, dword [eax]
cmp eax, ebx
jne 0x418957
or dword [ebp - 4], 0xffffffff
push dword [ebp - 0x3c]
call fcn.00474e9e
mov eax, dword [ebp - 0x38]
mov dword [esp], 0x49bf80
call fcn.00401556
mov eax, dword [ebp - 0x38]
call fcn.0047aeeb
ret
movzx ecx, byte [eax + 0x199]
push ecx
movzx ecx, byte [eax + 0x198]
push ecx
movzx ecx, byte [eax + 0x197]
push ecx
movzx ecx, byte [eax + 0x196]
push ecx
movzx ecx, byte [eax + 0x195]
movzx eax, byte [eax + 0x194]
push ecx
push eax
push str._02X:_02X:_02X:_02X:_02X:_02X
push edi
call fcn.00478ec9
add esp, 0x20
push dword [ebp - 0x34]
xor eax, eax
mov word [ebp - 0x30], ax
lea eax, [edi + 0x11]
push eax
lea eax, [ebp - 0x30]
push eax
mov ecx, edi
mov dword [ebp - 0x1c], 7
mov dword [ebp - 0x20], ebx
call fcn.00410411
mov esi, dword [ebp - 0x38]
lea ebx, [ebp - 0x30]
mov byte [ebp - 4], 1
call fcn.00406bcb
push 1
xor edi, edi
mov esi, ebx
call fcn.0040162a
jmp 0x418988