joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46d9cc
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov esi, eax
mov ebx, dword [ebp - 4]
inc ebx
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov ecx, ebx
mov edx, esi
call fcn.00425770
cmp ebx, dword [ebp - 8]
jge 0x46da2f
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov ecx, ebx
mov edx, esi
call fcn.00425b6c
mov edi, eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov ecx, ebx
mov edx, esi
call fcn.00425b6c
xor edi, eax
push edi
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov ecx, ebx
mov edx, esi
call fcn.00425b98
add ebx, 2
cmp ebx, dword [ebp - 8]
jl 0x46d9f5
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x48562c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef8
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x108], edx
mov edi, eax
xor eax, eax
push ebp
push 0x485802
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 1], 0
cmp dword [edi + 0x38], 0
jne 0x4857e9
mov eax, dword [edi + 0x30]
call fcn.004043f8
test eax, eax
jne 0x485682
mov eax, dword [edi + 0x34]
call fcn.004043f8
test eax, eax
jne 0x485682
mov eax, edi
call fcn.004858a0
jmp 0x4857e9
cmp dword [edi + 0xa0], 0
jne 0x4856b9
lea eax, [ebp - 0x101]
mov edx, dword [edi + 0x30]
call fcn.00408fd8
push 0x3ec
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x4adcd4]
mov eax, dword [eax + 0x44]
push eax
call sub.user32.dll_DdeCreateStringHandleA
mov dword [edi + 0xa0], eax
cmp dword [edi + 0xa4], 0
jne 0x4856f0
lea eax, [ebp - 0x101]
mov edx, dword [edi + 0x34]
call fcn.00408fd8
push 0x3ec
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x4adcd4]
mov eax, dword [eax + 0x44]
push eax
call sub.user32.dll_DdeCreateStringHandleA
mov dword [edi + 0xa4], eax
mov ecx, dword [edi + 0xa4]
mov edx, dword [edi + 0xa0]
mov eax, edi
call fcn.004858e0
mov ebx, eax
test bl, bl
jne 0x48579e
mov eax, dword [edi + 0x30]
call fcn.004043f8
test eax, eax
jne 0x485728
mov eax, dword [edi + 0xc0]
call fcn.004043f8
test eax, eax
je 0x48579e
mov eax, dword [edi + 0xc0]
call fcn.004043f8
test eax, eax
je 0x48574a
lea eax, [ebp - 0x101]
mov edx, dword [edi + 0xc0]
call fcn.00408fd8
jmp 0x485776
push dword [edi + 0x30]
push 0x48581c
push dword [edi + 0x34]
lea eax, [ebp - 0x108]
mov edx, 3
call fcn.004044b8
mov edx, dword [ebp - 0x108]
lea eax, [ebp - 0x101]
call fcn.00408fd8
push 7
lea eax, [ebp - 0x101]
push eax
call sub.kernel32.dll_WinExec
cmp eax, 0x20
jb 0x48579e
mov ecx, dword [edi + 0xa4]
mov edx, dword [edi + 0xa0]
mov eax, edi
call fcn.004858e0
mov ebx, eax
test bl, bl
jne 0x4857ab
mov eax, edi
call fcn.004858a0
jmp 0x4857e9
mov eax, dword [edi + 0x58]
test eax, eax
je 0x4857ba
mov dword [edi + 0xa8], eax
jmp 0x4857c4
mov dword [edi + 0xa8], 1
mov eax, edi
call fcn.00485958
test al, al
je 0x4857e9
mov eax, edi
mov si, 0xffee
call fcn.004035e4
xor ecx, ecx
xor edx, edx
mov eax, edi
call fcn.00485a90
mov byte [ebp - 1], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x485809
lea eax, [ebp - 0x108]
call fcn.00404138
ret
Function at 0x49c568
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef4
push ebx
xor edx, edx
mov dword [ebp - 0x10c], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x49c5d7
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x105
lea eax, [ebp - 0x105]
push eax
call sub.kernel32.dll_GetSystemDirectoryA
lea edx, [ebp - 0x10c]
lea eax, [ebp - 0x105]
call fcn.0040912c
mov edx, dword [ebp - 0x10c]
mov eax, ebx
mov ecx, 0x49c5ec
call fcn.00404444
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49c5de
lea eax, [ebp - 0x10c]
call fcn.00404138
ret

Function at 0x4a5efc
Capabilities:
Copy file
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffcc
push ebx
xor ebx, ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.004045e8
mov eax, dword [ebp - 8]
call fcn.004045e8
xor eax, eax
push ebp
push 0x4a5ff1
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x26], ebx
lea eax, [ebp - 0x2c]
mov ecx, 0x4a6008
mov edx, dword [ebp - 8]
call fcn.00404444
mov eax, dword [ebp - 0x2c]
call fcn.004045f8
mov dword [ebp - 0x1a], eax
mov word [ebp - 0x16], 0x210
xor eax, eax
mov dword [ebp - 0x14], eax
xor eax, eax
mov dword [ebp - 0x10], eax
xor eax, eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
call fcn.00408c1c
test al, al
je 0x4a5f9e
mov dword [ebp - 0x22], 3
lea eax, [ebp - 0x30]
mov ecx, 0x4a6008
mov edx, dword [ebp - 8]
call fcn.00404444
mov eax, dword [ebp - 0x30]
call fcn.004045f8
mov dword [ebp - 0x1e], eax
lea eax, [ebp - 0x26]
push eax
call sub.shell32.dll_SHFileOperationA
mov dword [ebp - 0x22], 2
lea eax, [ebp - 0x34]
mov ecx, 0x4a6008
mov edx, dword [ebp - 4]
call fcn.00404444
mov eax, dword [ebp - 0x34]
call fcn.004045f8
mov dword [ebp - 0x1e], eax
lea eax, [ebp - 0x26]
push eax
call sub.shell32.dll_SHFileOperationA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a5ff8
lea eax, [ebp - 0x34]
mov edx, 3
call fcn.0040415c
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040415c
ret
Function at 0x4a7234
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x10
push 0
push 0
dec ecx
jne 0x4a723c
push ecx
push ebx
push esi
push edi
mov dword [ebp - 0x14], eax
xor eax, eax
push ebp
push 0x4a750a
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x4a7492
push dword fs:[eax]
mov dword fs:[eax], esp
lea ecx, [ebp - 0x18]
mov edx, 0x4a7520
mov eax, 0x4a7540
call fcn.0049cc98
cmp dword [ebp - 0x18], 0
je 0x4a7292
mov ecx, 0x4a7558
mov edx, 0x4a7520
mov eax, 0x4a7540
call fcn.0049ccb4
lea edx, [ebp - 0x20]
mov eax, 0x4a7564
call fcn.00468000
mov edx, dword [ebp - 0x20]
lea eax, [ebp - 0x10]
call fcn.004141fc
push 0x4a7578
push 0x4a7580
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.0040f9d8
add esp, 0xc
lea eax, [ebp - 0x30]
push eax
push 0
call fcn.0040f9d8
add esp, 0xc
push ebp
call fcn.004a70fc
pop ecx
test al, al
je 0x4a73da
push 0x4a7590
push 0x4a75a0
push 0x4a75ac
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
push eax
call fcn.0040f9d8
add esp, 0x10
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.0040f9d8
add esp, 0xc
lea edx, [ebp - 0x44]
lea eax, [ebp - 0x34]
call fcn.00413050
mov eax, dword [ebp - 0x34]
lea edx, [ebp - 0x1c]
call fcn.0040824c
lea edx, [ebp - 0x58]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x408]
call fcn.0040824c
mov edx, dword [ebp - 0x58]
mov eax, dword [ebp - 0x1c]
call fcn.00404544
je 0x4a741c
xor eax, eax
push ebp
push 0x4a736d
push dword fs:[eax]
mov dword fs:[eax], esp
xor ecx, ecx
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x14]
call fcn.004a4ff8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4a7377
xor eax, eax
push ebp
push 0x4a73ce
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
lea eax, [ebp - 0x5c]
mov ecx, 0x4a75c0
mov edx, dword [ebp - 0x1c]
call fcn.00404444
mov eax, dword [ebp - 0x5c]
call fcn.004045f8
push eax
mov eax, dword [ebp - 0x14]
mov edx, dword [eax + 0x408]
lea eax, [ebp - 0x60]
mov ecx, 0x4a75c0
call fcn.00404444
mov eax, dword [ebp - 0x60]
call fcn.004045f8
push eax
call sub.kernel32.dll_CopyFileA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4a741c
mov eax, dword [ebp - 0x14]
mov edx, dword [eax + 0x408]
lea eax, [ebp - 0x64]
mov ecx, 0x4a75c0
call fcn.00404444
mov eax, dword [ebp - 0x64]
push eax
push 0x4a75d0
push 0x4a75d8
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x74]
push eax
call fcn.0040f9d8
add esp, 0xc
lea eax, [ebp - 0x74]
push eax
push 0
call fcn.0040f9d8
add esp, 0x10
push 0xffffffffffffffff
push 0x4a75e4
push 0x4a75a0
push 0x4a75ac
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x84]
push eax
call fcn.0040f9d8
add esp, 0x10
lea eax, [ebp - 0x84]
push eax
push 0
call fcn.0040f9d8
add esp, 0x10
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a7499
push 0x4a75f4
lea eax, [ebp - 0x10]
push eax
push 0
call fcn.0040f9d8
add esp, 0xc
lea eax, [ebp - 0x10]
call fcn.00416c4c
cmp dword [ebp - 0x18], 0
je 0x4a7491
mov ecx, dword [ebp - 0x18]
mov edx, 0x4a7520
mov eax, 0x4a7540
call fcn.0049ccb4
ret
Function at 0x4a7694
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x11c], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 4], ecx
mov edi, edx
xor eax, eax
push ebp
push 0x4a781b
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
push eax
mov eax, edi
call fcn.004045f8
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x4a77f5
mov eax, ebx
call fcn.0040278c
mov esi, eax
xor eax, eax
push ebp
push 0x4a77ee
push dword fs:[eax]
mov dword fs:[eax], esp
push esi
push ebx
mov eax, dword [ebp - 8]
push eax
mov eax, edi
call fcn.004045f8
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x4a77e0
xor eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x4a782c
push esi
call sub.version.dll_VerQueryValueA
cmp dword [ebp - 0xc], 0
je 0x4a774e
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
call fcn.00406fa4
mov edx, dword [ebp - 0xc]
mov dx, word [edx]
call fcn.00406f98
lea ecx, [ebp - 0x14]
mov edx, 8
call fcn.00408818
mov eax, dword [ebp + 8]
call fcn.00404138
mov eax, dword [ebp - 4]
mov edx, 0x4a7850
call fcn.00404544
jne 0x4a7774
lea eax, [ebp - 0x18]
mov edx, 0x4a785c
call fcn.004041d0
jmp 0x4a7790
mov eax, dword [ebp - 4]
mov edx, 0x4a7874
call fcn.00404544
jne 0x4a7790
lea eax, [ebp - 0x18]
mov edx, 0x4a7880
call fcn.004041d0
push 0x4a7898
push dword [ebp - 0x14]
push dword [ebp - 0x18]
lea eax, [ebp - 0x11c]
mov edx, 3
call fcn.004044b8
mov edx, dword [ebp - 0x11c]
lea eax, [ebp - 0x118]
call fcn.00408fd8
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x118]
push eax
push esi
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x4a77e0
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0xc]
call fcn.0040912c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a77f5
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a7822
lea eax, [ebp - 0x11c]
call fcn.00404138
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.0040415c
ret
Function at 0x4036c5
Capabilities:
Terminate process

Disassembly:
jmp 0x4556a9
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x4556ba
push 5
pop ecx
int 0x29
push esi
push 1
mov esi, 0xc0000417
push esi
push 2
call fcn.00405a97
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop esi
ret

Function at 0x4037f6
Capabilities:
Query environment variable

Disassembly:
jmp 0x49f202
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x49f213
pop esi
ret
push ebx
push edi
push esi
call fcn.0049f0e9
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.004040d4
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x49f23b
push ebx
push esi
push edi
call fcn.00405876
add esp, 0xc
push 0
call fcn.0040641a
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x405943
Capabilities:
Parse pe header

Disassembly:
jmp 0x44445f
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x44449e
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x44449e
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x44449e
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x44449e
cmp dword [ecx + 0x74], 0xe
jbe 0x44449e
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x496cdf
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00401dde
mov eax, dword [0x4d3034]
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.0040600f
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x496d21
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x496e7d
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0040616d
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 + 0x4d6f80]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00403319
mov ecx, dword [esi*4 + 0x4d6f80]
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 0x496e76
cmp eax, dword [edi + ecx + 0x24]
jne 0x496e76
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 0x496e76
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00403319
add esp, 0x14
test edx, edx
jl 0x496e76
jg 0x496dec
test eax, eax
jb 0x496e76
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x496e76
jl 0x496e06
cmp dword [ebp - 0x1008], eax
ja 0x496e76
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x496e24
test ebx, ebx
je 0x496e5d
cmp ecx, edi
jae 0x496e5d
mov al, byte [ecx]
cmp al, 0xd
jne 0x496e3e
lea eax, [edi - 1]
cmp ecx, eax
jae 0x496e4a
cmp byte [ecx + 1], 0xa
jne 0x496e4a
inc ecx
jmp 0x496e4a
movzx eax, al
movsx eax, byte [eax + 0x4d3370]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x496e24
cmp edx, ebx
jne 0x496e24
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x496e7b
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004030f8
leave
ret
Function at 0x4975bc
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 + 0x4d6f80]
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 0x4975fc
cmp byte [ebx], 0xa
jne 0x4975fc
or byte [eax + edi + 0x28], 4
jmp 0x497601
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x4976ff
mov al, byte [edx]
cmp al, 0x1a
je 0x4976e1
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x497630
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x497655
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x49765f
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 0x497612
jmp 0x4976ff
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 0x4976dc
cmp dword [ebp - 0xc], 0
je 0x4976dc
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x4d6f80]
test byte [eax + edi + 0x28], 0x48
je 0x4976b6
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4976a1
mov byte [esi], dl
jmp 0x4976b2
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4d6f80]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4976ff
cmp byte [ebp - 1], 0xa
jne 0x4976c5
cmp esi, ebx
jne 0x4976c5
mov byte [esi], 0xa
jmp 0x4976fe
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0040196f
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4976ff
mov byte [esi], 0xd
jmp 0x4976fe
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x4d6f80]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4976fb
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4976ff
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x49775b
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 + 0x4d6f80]
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 0x49779e
cmp word [esi], dx
jne 0x49779e
or byte [edi + eax + 0x28], 4
jmp 0x4977a3
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 0x4978f6
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 0x4978d6
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x4977e5
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x49781b
cmp eax, edx
jae 0x497827
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 0x4977bd
jmp 0x4978f6
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 0x4978d2
cmp dword [ebp - 0x14], 0
je 0x4978d2
mov eax, dword [ebx*4 + 0x4d6f80]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x4978aa
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x497873
mov word [esi], cx
jmp 0x4978a6
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x4d6f80]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x4d6f80]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x4d6f80]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x4978f6
pop ebx
cmp word [ebp - 4], bx
jne 0x4978bb
cmp esi, dword [ebp + 0xc]
jne 0x4978bb
mov word [esi], bx
jmp 0x4978f3
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0040196f
add esp, 0x10
cmp word [ebp - 4], bx
je 0x4978f6
push 0xd
jmp 0x4978ef
mov ecx, dword [ebx*4 + 0x4d6f80]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4978ed
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4978f6
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 0x49d7a1
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x4d3034]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x49d7ec
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0049dc63
test al, al
jne 0x49d7e6
sub edx, 2
cmp edx, edi
jne 0x49d7cc
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x49d80e
lea eax, [edi + 2]
cmp edx, eax
je 0x49d80e
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0049d39a
add esp, 0x10
jmp 0x49d908
push esi
lea ecx, [ebp - 0x255]
call fcn.0049dc63
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x49d851
push dword [ebp - 0x25c]
jmp 0x49d7fe
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x49d88e
cmp word [ebp - 0x226], 0
je 0x49d8af
cmp word [ebp - 0x226], ax
jne 0x49d88e
cmp word [ebp - 0x224], 0
je 0x49d8af
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0049d39a
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x49d8fb
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x49d868
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x49d8e3
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x49d908
push 0x49cd82
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.004056aa
add esp, 0x10
jmp 0x49d8d8
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004030f8
leave
ret
Function at 0x418bb0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x482d9b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.00477315
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x418c32
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0047485d
mov eax, dword [eax]
push 0x4a0230
push eax
call fcn.004669f4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.004775a0
test bl, bl
je 0x418c32
push 0x4a0230
lea ecx, [esp + 0xc]
call fcn.00477930
push 0x4a3dac
lea ecx, [esp + 0xc]
call fcn.00477930
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x418c6e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.004775a0
jmp 0x418d39
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x418cf2
lea edx, [esp + 0x7c]
push 0x4a3da8
push edx
call fcn.004669f4
add esp, 8
test eax, eax
je 0x418cf2
lea eax, [esp + 0x7c]
push 0x4a3da4
push eax
call fcn.004669f4
add esp, 8
test eax, eax
je 0x418cf2
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x418c82
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.004775a0
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x419530
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x419592
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc