joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4775d8
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffed4
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x124], ecx
mov dword [ebp - 0x120], ecx
mov dword [ebp - 0x11c], ecx
mov dword [ebp - 0x118], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x477749
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x477724
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x111], 0
push 0
push 0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0x105
lea eax, [ebp - 0x111]
push eax
lea eax, [ebp - 0x118]
mov edx, ebx
call fcn.00405468
lea eax, [ebp - 0x118]
mov edx, 0x477760
call fcn.0040554c
mov eax, dword [ebp - 0x118]
call fcn.00405710
push eax
call sub.kernel32.dll_GetVolumeInformationA
test eax, eax
je 0x477696
lea eax, [ebp - 0x111]
call fcn.0040a5d4
mov ecx, eax
lea edx, [ebp - 0x111]
mov eax, esi
call fcn.00405370
jmp 0x47769d
mov eax, esi
call fcn.00405280
cmp bl, 0x61
jae 0x4776be
lea edx, [ebp - 0x11c]
mov eax, dword [esi]
call fcn.0040e5c8
mov edx, dword [ebp - 0x11c]
mov eax, esi
call fcn.004052d4
jmp 0x4776d8
lea edx, [ebp - 0x120]
mov eax, dword [esi]
call fcn.0040e534
mov edx, dword [ebp - 0x120]
mov eax, esi
call fcn.004052d4
lea eax, [ebp - 0x124]
push eax
mov eax, dword [esi]
mov dword [ebp - 0x12c], eax
mov byte [ebp - 0x128], 0xb
lea edx, [ebp - 0x12c]
xor ecx, ecx
mov eax, 0x47776c
call fcn.0040ad04
mov edx, dword [ebp - 0x124]
mov eax, esi
call fcn.004052d4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47772b
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret

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

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov edi, eax
mov ecx, dword [edi + 0x170]
mov edx, ebx
mov eax, edi
call fcn.00480600
mov esi, eax
mov dword [edi + 0x170], esi
and esi, 0xff
add dword [edi + 0x174], esi
imul esi, dword [edi + 0x174], 0x8088405
inc esi
mov dword [edi + 0x174], esi
mov edx, esi
shr edx, 0x18
mov ecx, dword [edi + 0x178]
mov eax, edi
call fcn.00480600
mov dword [edi + 0x178], eax
pop edi
pop esi
pop ebx
ret

Function at 0x480438
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov edi, eax
mov esi, ecx
dec esi
test esi, esi
jl 0x48045e
inc esi
mov eax, edi
call fcn.0048041c
xor byte [ebx], al
movzx edx, byte [ebx]
mov eax, edi
call fcn.004803c4
inc ebx
dec esi
jne 0x480447
pop edi
pop esi
pop ebx
ret
Function at 0x4804f4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
mov esi, ecx
lea edi, [ebp - 0x14]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 4], edx
mov edi, eax
mov eax, dword [ebp - 4]
call fcn.00405700
xor eax, eax
push ebp
push 0x48056a
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 4]
mov eax, edi
call fcn.00480464
mov dword [ebp - 8], 0xc
lea esi, [ebp - 0x14]
mov eax, edi
call fcn.0048041c
mov ebx, eax
xor bl, byte [esi]
mov edx, ebx
mov eax, edi
call fcn.004803c4
mov byte [esi], bl
inc esi
dec dword [ebp - 8]
jne 0x480534
movzx ebx, byte [ebp - 9]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x480571
lea eax, [ebp - 4]
call fcn.00405280
ret
Function at 0x481204
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffac
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 8], ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4813ea
push dword fs:[eax]
mov dword fs:[eax], esp
cmp ebx, 0xffffffff
jle 0x4813a6
mov eax, dword [ebp - 4]
call fcn.00482bac
cmp ebx, eax
jge 0x4813a6
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x118]
mov edx, ebx
call fcn.00471c24
mov edx, dword [0x473790]
call fcn.00404604
mov esi, eax
mov eax, esi
call fcn.00474654
test al, al
je 0x48139c
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov edi, dword [esi + 0x44]
test edi, edi
jne 0x481390
xor eax, eax
push ebp
push 0x481389
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004817bc
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x130]
call fcn.0041c380
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
push dword [esi + 0x34]
push dword [esi + 0x30]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x130]
xor edx, edx
mov ecx, dword [eax]
call dword [ecx + 0x18]
lea edx, [ebp - 0x46]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x130]
mov ecx, 0x2e
mov esi, dword [eax]
call dword [esi + 0xc]
movzx eax, word [ebp - 0x2a]
movzx edx, word [ebp - 0x28]
add eax, edx
xor edx, edx
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x130]
mov dl, 1
mov ecx, dword [eax]
call dword [ecx + 0x18]
movzx esi, word [ebp - 0x26]
mov eax, dword [ebp - 8]
mov edx, esi
call fcn.004059a0
mov eax, dword [ebp - 8]
call fcn.00405770
mov edx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x130]
mov ecx, esi
mov esi, dword [eax]
call dword [esi + 0xc]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x158]
movzx eax, byte [eax + 0x28]
mov byte [ebp - 9], al
mov ecx, dword [ebp - 8]
mov ecx, dword [ecx]
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.00481580
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x158]
movzx edx, byte [ebp - 9]
mov byte [eax + 0x28], dl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4813d4
push dword [ebp - 0x14]
push dword [ebp - 0x18]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x130]
xor edx, edx
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x3c]
test al, al
jne 0x481388
mov eax, dword [ebp - 4]
call fcn.00481840
ret
mov edx, dword [ebp - 8]
mov eax, edi
call fcn.0040a814
jmp 0x4813d4
mov eax, dword [ebp - 8]
call fcn.00405280
jmp 0x4813d4
mov dword [ebp - 0x50], ebx
mov byte [ebp - 0x4c], 0
lea eax, [ebp - 0x50]
push eax
push 0
lea edx, [ebp - 0x54]
mov eax, 0xb3
call fcn.00409c4c
mov ecx, dword [ebp - 0x54]
mov dl, 1
mov eax, dword [0x4175fc]
call fcn.0040d798
call fcn.00404cc8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4813f1
lea eax, [ebp - 0x54]
call fcn.00405280
ret
Function at 0x486144
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbe8
push ebx
xor edx, edx
mov dword [ebp - 0x418], edx
mov dword [ebp - 0x414], edx
mov dword [ebp - 0x410], edx
mov dword [ebp - 0x40c], edx
mov dword [ebp - 0x408], edx
mov dword [ebp - 0x3f0], edx
mov dword [ebp - 0x3f4], edx
mov dword [ebp - 0x3f8], eax
xor eax, eax
push ebp
push 0x4863bb
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x3f4]
mov eax, 0x4863d0
call fcn.00485fac
lea eax, [ebp - 0x3f0]
call fcn.00405280
lea eax, [ebp - 0x3fc]
push eax
push 0x20019
push 0
mov eax, dword [ebp - 0x3f4]
call fcn.00405710
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x48637c
xor eax, eax
push ebp
push 0x486375
push dword fs:[eax]
mov dword fs:[eax], esp
mov ebx, 0x3e9
mov dword [ebp - 0x404], ebx
mov dword [ebp - 0x400], 7
lea eax, [ebp - 0x404]
push eax
lea eax, [ebp - 0x3e9]
push eax
lea eax, [ebp - 0x400]
push eax
push 0
lea edx, [ebp - 0x408]
mov eax, 0x486410
call fcn.00485fac
mov eax, dword [ebp - 0x408]
call fcn.00405710
push eax
mov eax, dword [ebp - 0x3fc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x486247
push ebp
mov eax, 0x48643c
call fcn.0048609c
pop ecx
mov dword [ebp - 0x404], ebx
mov dword [ebp - 0x400], 1
lea eax, [ebp - 0x404]
push eax
lea eax, [ebp - 0x3e9]
push eax
lea eax, [ebp - 0x400]
push eax
push 0
lea edx, [ebp - 0x40c]
mov eax, 0x486448
call fcn.00485fac
mov eax, dword [ebp - 0x40c]
call fcn.00405710
push eax
mov eax, dword [ebp - 0x3fc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x4862d1
push dword [ebp - 0x3f0]
push 0x486470
lea eax, [ebp - 0x410]
lea edx, [ebp - 0x3e9]
mov ecx, 0x3e9
call fcn.004054f0
push dword [ebp - 0x410]
lea eax, [ebp - 0x3f0]
mov edx, 3
call fcn.00405614
mov dword [ebp - 0x404], ebx
mov dword [ebp - 0x400], 1
lea eax, [ebp - 0x404]
push eax
lea eax, [ebp - 0x3e9]
push eax
lea eax, [ebp - 0x400]
push eax
push 0
lea edx, [ebp - 0x414]
mov eax, 0x48647c
call fcn.00485fac
mov eax, dword [ebp - 0x414]
call fcn.00405710
push eax
mov eax, dword [ebp - 0x3fc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x48635b
push dword [ebp - 0x3f0]
push 0x486470
lea eax, [ebp - 0x418]
lea edx, [ebp - 0x3e9]
mov ecx, 0x3e9
call fcn.004054f0
push dword [ebp - 0x418]
lea eax, [ebp - 0x3f0]
mov edx, 3
call fcn.00405614
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48637c
mov eax, dword [ebp - 0x3fc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
mov eax, dword [ebp - 0x3f8]
mov edx, dword [ebp - 0x3f0]
call fcn.004052d4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4863c2
lea eax, [ebp - 0x418]
mov edx, 5
call fcn.004052a4
lea eax, [ebp - 0x3f4]
mov edx, 2
call fcn.004052a4
ret
Function at 0x4870f0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeb8
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x140], edx
mov dword [ebp - 0x148], edx
mov dword [ebp - 0x144], edx
mov dword [ebp - 0x130], edx
mov dword [ebp - 0x13c], edx
mov dword [ebp - 0x134], edx
mov dword [ebp - 0x138], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405700
lea edi, [ebp - 0x12c]
xor eax, eax
push ebp
push 0x487258
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
mov eax, 2
call fcn.00486a74
mov esi, eax
mov dword [edi], 0x128
mov edx, edi
mov eax, esi
call fcn.00486a94
mov ebx, eax
jmp 0x48722a
lea eax, [ebp - 0x138]
lea edx, [edi + 0x24]
mov ecx, 0x104
call fcn.004054f0
mov eax, dword [ebp - 0x138]
lea edx, [ebp - 0x134]
call fcn.0040a404
mov eax, dword [ebp - 0x134]
lea edx, [ebp - 0x130]
call fcn.0040912c
mov eax, dword [ebp - 0x130]
push eax
lea edx, [ebp - 0x13c]
mov eax, dword [ebp - 4]
call fcn.0040912c
mov edx, dword [ebp - 0x13c]
pop eax
call fcn.004056a8
je 0x48720a
lea eax, [ebp - 0x144]
lea edx, [edi + 0x24]
mov ecx, 0x104
call fcn.004054f0
mov eax, dword [ebp - 0x144]
lea edx, [ebp - 0x140]
call fcn.0040912c
mov eax, dword [ebp - 0x140]
push eax
lea edx, [ebp - 0x148]
mov eax, dword [ebp - 4]
call fcn.0040912c
mov edx, dword [ebp - 0x148]
pop eax
call fcn.004056a8
jne 0x48721f
push 0
mov eax, dword [edi + 8]
push eax
push 0
push 1
call sub.kernel32.dll_OpenProcess
push eax
call sub.kernel32.dll_TerminateProcess
mov edx, edi
mov eax, esi
call fcn.00486ab4
mov ebx, eax
test ebx, ebx
jne 0x48716b
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48725f
lea eax, [ebp - 0x148]
mov edx, 7
call fcn.004052a4
lea eax, [ebp - 4]
call fcn.00405280
ret

Function at 0x48756c
Capabilities:
Log keystrokes via application hook

Disassembly:
xor eax, eax
mov dword [0x498f10], eax
push 0x4875ac
call sub.user32.dll_RegisterWindowMessageA
mov dword [0x498f10], eax
mov eax, dword [0x4932c0]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
mov dword [0x498f14], eax
push 0
mov eax, dword [0x4967f4]
push eax
push 0x487524
push 0xd
call sub.user32.dll_SetWindowsHookExA
mov dword [0x498f18], eax
ret
Function at 0x487dfc
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 dword [ebp - 0x108], edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x487ecd
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x104]
push eax
push 0xff
call sub.kernel32.dll_GetTempPathA
lea edx, [ebp - 4]
lea eax, [ebp - 0x104]
call fcn.0040a814
lea ecx, [ebp - 0x108]
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.00439db4
mov eax, dword [ebp - 0x108]
mov edx, 0x487ee4
call fcn.004056a8
je 0x487e9d
lea ecx, [ebp - 0x10c]
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.00439db4
mov eax, dword [ebp - 0x10c]
mov edx, 0x487ef0
call fcn.004056a8
je 0x487e9d
lea eax, [ebp - 4]
mov edx, 0x487ef0
call fcn.0040554c
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.004052d4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x487ed4
lea eax, [ebp - 0x10c]
mov edx, 2
call fcn.004052a4
lea eax, [ebp - 4]
call fcn.00405280
ret
Function at 0x489bf0
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x5c
push 0
push 0
dec ecx
jne 0x489bf8
push ecx
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405700
lea eax, [ebp - 0x168]
mov edx, dword [0x4083d4]
call fcn.00405d18
xor eax, eax
push ebp
push 0x489df4
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
mov edx, 0x489e08
call fcn.0040554c
lea eax, [ebp - 0x2a8]
push eax
lea eax, [ebp - 0x2ac]
mov ecx, 0x489e14
mov edx, dword [ebp - 4]
call fcn.00405598
mov eax, dword [ebp - 0x2ac]
call fcn.00405710
push eax
call sub.kernel32.dll_FindFirstFileA_1
mov ebx, eax
lea eax, [ebp - 0x2bc]
mov edx, ebx
mov cl, 4
call fcn.00415294
lea eax, [ebp - 0x2bc]
push eax
lea eax, [ebp - 0x2cc]
call fcn.00416668
lea edx, [ebp - 0x2cc]
pop eax
call fcn.00416670
je 0x489d83
jmp 0x489d68
mov eax, dword [ebp - 0x2a8]
sub eax, 0x10
jne 0x489d2d
lea edx, [ebp - 0x2d0]
lea eax, [ebp - 0x27c]
call fcn.0040a814
mov eax, dword [ebp - 0x2d0]
mov edx, 0x489e20
call fcn.004056a8
je 0x489d68
lea edx, [ebp - 0x2d4]
lea eax, [ebp - 0x27c]
call fcn.0040a814
mov eax, dword [ebp - 0x2d4]
mov edx, 0x489e2c
call fcn.004056a8
je 0x489d68
lea eax, [ebp - 0x2dc]
lea edx, [ebp - 0x27c]
mov ecx, 0x104
call fcn.004054f0
mov ecx, dword [ebp - 0x2dc]
lea eax, [ebp - 0x2d8]
mov edx, dword [ebp - 4]
call fcn.00405598
mov eax, dword [ebp - 0x2d8]
call fcn.00489bf0
jmp 0x489d68
lea eax, [ebp - 0x2e4]
lea edx, [ebp - 0x27c]
mov ecx, 0x104
call fcn.004054f0
mov ecx, dword [ebp - 0x2e4]
lea eax, [ebp - 0x2e0]
mov edx, dword [ebp - 4]
call fcn.00405598
mov eax, dword [ebp - 0x2e0]
call fcn.00405710
push eax
call sub.kernel32.dll_DeleteFileA
lea eax, [ebp - 0x2a8]
push eax
push ebx
call sub.kernel32.dll_FindNextFileA
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x489c9d
mov dword [ebp - 0x14c], ebx
lea eax, [ebp - 0x168]
call fcn.0040a18c
mov eax, dword [ebp - 4]
call fcn.0040a5bc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x489dfb
lea eax, [ebp - 0x2e4]
mov edx, 6
call fcn.004052a4
lea eax, [ebp - 0x2cc]
mov edx, dword [0x4010ac]
mov ecx, 2
call fcn.00405e34
lea eax, [ebp - 0x2ac]
call fcn.00405280
lea eax, [ebp - 0x168]
mov edx, dword [0x4083d4]
call fcn.00405de8
lea eax, [ebp - 4]
call fcn.00405280
ret
Function at 0x48c2c8
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe28
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x1d4], edx
mov dword [ebp - 0x1d8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405700
xor eax, eax
push ebp
push 0x48c403
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
push ebp
push 0x48c3d3
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 4]
call fcn.00405710
mov ebx, eax
push ebx
call sub.kernel32.dll_DeleteFileA
mov eax, dword [ebp - 4]
call fcn.00409e70
test al, al
jne 0x48c343
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
push ebx
call sub.kernel32.dll_CreateFileA_1
push eax
call sub.kernel32.dll_CloseHandle_1
mov edx, dword [ebp - 4]
lea eax, [ebp - 0x1d0]
call fcn.004037a4
lea eax, [ebp - 0x1d0]
call fcn.00403540
call fcn.00403020
push dword [0x498dd4]
push 0x48c41c
push dword [0x498dd8]
push 0x48c41c
push dword [0x498ddc]
lea eax, [ebp - 0x1d8]
mov edx, 5
call fcn.00405614
mov eax, dword [ebp - 0x1d8]
lea edx, [ebp - 0x1d4]
call fcn.004878d4
mov edx, dword [ebp - 0x1d4]
lea eax, [ebp - 0x1d0]
call fcn.00405a30
call fcn.00403e9c
call fcn.00403020
lea eax, [ebp - 0x1d0]
call fcn.0040386c
call fcn.00403020
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x48c3dd
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48c40a
lea eax, [ebp - 0x1d8]
mov edx, 2
call fcn.004052a4
lea eax, [ebp - 4]
call fcn.00405280
ret

Function at 0x40100b
Capabilities:
Query or enumerate registry value

Disassembly:
call 0x40100b
push eax
call sub.KERNEL32.dll_ExitProcess
push ebp
mov ebp, esp
add esp, 0xfffffef0
jmp 0x40109c
lea eax, [ebp - 0x104]
push eax
call fcn.004011ec
push 0x401019
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
jne 0x401165
lea eax, [ebp - 0x10c]
push eax
push 0x20019
push 0
push 0x401038
push 0x80000001
call sub.ADVAPI32.dll_RegOpenKeyExA
cmp eax, 0
jne 0x4011a5
mov dword [ebp - 0x110], 0x103
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x104]
push eax
push 0
push 0
push 0x401052
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegQueryValueExA
push eax
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegCloseKey
pop eax
cmp eax, 0
jne 0x4011a5
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrlenA
lea ebx, [ebp - 0x104]
add ebx, eax
dec ebx
cmp byte [ebx], 0x5c
je 0x40114a
mov word [ebx], 0x5c
push 0x401023
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
je 0x4011a5
mov dword [ebp - 0x108], eax
push 0x40102d
push eax
call sub.KERNEL32.dll_GetProcAddress
test eax, eax
je 0x40119a
push 0x3e8
call eax
test eax, eax
je 0x40119a
call 0x40118a
add dword [esp], 0x1e76
call eax
push 0
call sub.KERNEL32.dll_ExitProcess
push dword [ebp - 0x108]
call sub.KERNEL32.dll_FreeLibrary
push 0x10
push 0x401096
push 0x401057
push 0
call sub.USER32.dll_MessageBoxA
mov eax, 0xffffffff
leave
ret
Function at 0x4061e0
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x56d658
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push esi
push edi
mov eax, dword [0x641030]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov ecx, dword [esp + 0x40]
xor edi, edi
push 0xffffffffffffffff
push edi
xor eax, eax
push ecx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x18], edi
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], edi
mov word [esp + 0x20], ax
call fcn.004025f0
mov edx, dword [esp + 0x44]
mov eax, edx
mov dword [esp + 0x34], edi
lea esi, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x406240
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [esp + 0x18]
call fcn.00402d70
mov esi, dword [esp + 0x3c]
push 0xffffffffffffffff
push edi
xor edx, edx
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], edi
push eax
mov ecx, esi
mov word [esi + 4], dx
call fcn.004025f0
cmp dword [esp + 0x28], 8
jb 0x40628d
mov eax, dword [esp + 0x14]
push eax
call fcn.00554bd9
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x2c
ret
Function at 0x409a70
Capabilities:
Encode data using xor

Disassembly:
push 0xffffffffffffffff
push 0x56db88
mov eax, dword fs:[0]
push eax
sub esp, 0x448
mov eax, dword [0x641030]
xor eax, esp
mov dword [esp + 0x444], eax
push ebx
push ebp
push esi
mov eax, dword [0x641030]
xor eax, esp
push eax
lea eax, [esp + 0x458]
mov dword fs:[0], eax
xor ebx, ebx
mov esi, ecx
mov dword [esp + 0x1c], esi
mov dword [esp + 0x18], ebx
mov byte [esp + 0x444], bl
mov byte [esp + 0x445], bl
mov byte [esp + 0x446], bl
mov byte [esp + 0x447], bl
mov byte [esp + 0x448], bl
mov byte [esp + 0x449], bl
mov byte [esp + 0x44a], bl
mov byte [esp + 0x44b], bl
mov byte [esp + 0x44c], bl
mov byte [esp + 0x44d], bl
mov byte [esp + 0x44e], bl
mov byte [esp + 0x44f], bl
mov byte [esp + 0x450], bl
mov byte [esp + 0x451], bl
mov byte [esp + 0x452], bl
mov byte [esp + 0x453], bl
mov dword [esp + 0x440], 0xf
mov dword [esp + 0x43c], ebx
mov byte [esp + 0x42c], bl
push edi
mov dword [esp + 0x464], ebx
call fcn.005545e1
push edi
mov ebp, eax
call fcn.005545e1
add esp, 8
mov dword [esp + 0x14], eax
cmp eax, ebx
je 0x409c77
cmp ebp, ebx
je 0x409c77
cmp edi, ebx
jle 0x409b8b
mov esi, dword [esp + 0x470]
mov eax, ebp
sub esi, ebp
mov ecx, edi
lea esp, [esp]
mov dl, byte [esi + eax]
mov byte [eax], dl
inc eax
sub ecx, 1
jne 0x409b80
mov eax, dword [esp + 0x468]
xor ecx, ecx
lea edx, [esp + 0x444]
sub eax, edx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x18], eax
jmp 0x409bb4
mov ecx, dword [esp + 0x10]
xor eax, eax
mov edx, dword [esp + 0x18]
lea esi, [esp + eax + 0x444]
mov dl, byte [edx + esi]
xor dl, cl
inc eax
cmp eax, 0x10
mov byte [esi], dl
jl 0x409bb6
mov ecx, dword [esp + 0x46c]
lea eax, [esp + 0x444]
push eax
push ecx
lea edx, [esp + 0x28]
push edx
call fcn.0040b260
mov esi, dword [esp + 0x20]
push esi
push ebp
lea eax, [esp + 0x34]
push edi
push eax
call fcn.0040ae90
add esp, 0x1c
cmp edi, ebx
jle 0x409c11
mov eax, ebp
sub esi, ebp
mov ecx, edi
mov dl, byte [esi + eax]
mov byte [eax], dl
inc eax
sub ecx, 1
jne 0x409c06
mov eax, dword [esp + 0x10]
inc eax
cmp eax, 0x14
mov dword [esp + 0x10], eax
jl 0x409bb0
mov esi, dword [esp + 0x14]
push edi
push esi
lea ecx, [esp + 0x430]
call fcn.00403490
push esi
call fcn.005550a5
push ebp
call fcn.005550a5
mov esi, dword [esp + 0x24]
add esp, 8
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x430]
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], ebx
push eax
mov ecx, esi
mov byte [esi + 4], bl
call fcn.00402b40
cmp dword [esp + 0x440], 0x10
jb 0x409cb0
mov ecx, dword [esp + 0x42c]
push ecx
jmp 0x409ca8
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0x430]
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], ebx
push edx
mov ecx, esi
mov byte [esi + 4], bl
call fcn.00402b40
cmp dword [esp + 0x440], 0x10
jb 0x409cb0
mov eax, dword [esp + 0x42c]
push eax
call fcn.00554bd9
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x458]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x444]
xor ecx, esp
call fcn.005550b0
add esp, 0x454
ret
Function at 0x40a420
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x58], ecx
ret