joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5537cc
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov ebx, eax
xor eax, eax
push ebp
push 0x553898
push dword fs:[eax]
mov dword fs:[eax], esp
mov ecx, 0x5538ac
mov dl, 4
mov eax, ebx
call fcn.00553990
mov byte [ebx + 0x10298], 0
mov si, word [ebx + 0x10290]
cmp si, 0xffff
je 0x553882
movzx eax, si
push eax
call sub.wsock32.dll_closesocket
test eax, eax
jne 0x553874
test byte [ebx + 0x1c], 8
jne 0x553831
cmp word [ebx + 0x10052], 0
je 0x553831
mov edx, ebx
mov eax, dword [ebx + 0x10054]
call dword [ebx + 0x10050]
cmp byte [ebx + 0x10091], 0
jne 0x553882
push 0
push 1
push 2
call sub.wsock32.dll_socket
mov esi, eax
cmp esi, 0xffff
jbe 0x553854
call fcn.00403d88
mov word [ebx + 0x10290], si
push 0x3d
push 0x465
mov eax, dword [ebx + 0x10294]
push eax
movzx eax, si
push eax
call sub.wsock32.dll_WSAAsyncSelect
jmp 0x553882
lea ecx, [ebp - 4]
mov dx, 0x2733
mov eax, ebx
call fcn.005538c4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x55389f
lea eax, [ebp - 4]
call fcn.00404c74
ret

Function at 0x553a38
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebx
mov ebx, eax
mov ecx, 0x553a74
mov dl, 8
mov eax, ebx
call fcn.00553990
push 2
push 1
lea eax, [ebx + 0x30]
push eax
movzx eax, word [ebx + 0x10290]
push eax
call sub.wsock32.dll_recv
test eax, eax
jle 0x553a66
mov al, 1
pop ebx
ret
xor eax, eax
pop ebx
ret

Function at 0x559574
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push 0
push ebx
push esi
push edi
test dl, dl
je 0x55958e
add esp, 0xfffffff0
call fcn.004041ac
mov esi, ecx
mov ebx, edx
mov edi, eax
xor eax, eax
push ebp
push 0x55962b
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
mov eax, edi
call fcn.00403e18
mov dword [edi + 0x20], esi
mov dl, 1
mov eax, dword [0x4293c0]
call fcn.0042ace8
mov esi, eax
mov dword [edi + 0x10], esi
mov eax, edi
call fcn.005599b4
mov edx, eax
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [edi + 0x10]
mov dword [eax + 0xc], edi
mov dword [eax + 8], 0x559858
mov dl, 1
mov eax, dword [0x41a338]
call fcn.00403e18
mov dword [edi + 4], eax
lea eax, [ebp - 0x10]
call fcn.00417350
lea edx, [ebp - 0x10]
lea eax, [edi + 0x30]
call fcn.00405d18
mov byte [edi + 0x28], 1
mov dl, byte [0x559650]
mov ax, 0x2e
call fcn.0046be14
mov word [edi + 0x26], ax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x559632
lea eax, [ebp - 0x10]
call fcn.00405e78
ret

Function at 0x55a5b8
Capabilities:
Hide graphical window

Disassembly:
push ebx
mov ebx, eax
test dl, dl
je 0x55a5d0
push 5
mov eax, ebx
call fcn.00460c6c
push eax
call sub.user32.dll_ShowWindow
pop ebx
ret
push 0
mov eax, ebx
call fcn.00460c6c
push eax
call sub.user32.dll_ShowWindow
pop ebx
ret
Function at 0x59e89c
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x59ea0d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x14]
mov eax, dword [eax + 0x98]
mov edx, dword [ebp + 8]
mov edx, dword [edx - 0x14]
add eax, dword [edx + 0xc8]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x14]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0xc]
call fcn.0042b118
mov ebx, eax
neg ebx
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x14]
fild dword [eax + 0x11c]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x14]
fmul qword [eax + 0x80]
call fcn.00402c28
add ebx, eax
mov dword [ebp - 8], ebx
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x14]
xor edx, edx
mov dword [eax + 0x100], edx
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x14]
mov eax, dword [eax + 0x108]
mov dword [ebp - 0xc], eax
cmp byte [0x5dba94], 0
jne 0x59e9a6
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x14]
mov eax, dword [eax + 0x44]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
jne 0x59e9a6
lea ecx, [ebp - 0x10]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x14]
mov eax, dword [eax + 0x44]
xor edx, edx
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x14]
mov eax, dword [eax + 0x30]
call fcn.0042c634
mov edx, dword [ebp + 8]
mov edx, dword [edx - 8]
mov ecx, dword [ebp + 8]
sub edx, dword [ecx - 0x10]
cmp eax, edx
jle 0x59e9a6
lea ecx, [ebp - 0x14]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x14]
mov eax, dword [eax + 0x44]
xor edx, edx
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 0x14]
cmp byte [eax], 0x5b
jne 0x59e9a6
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x14]
mov dword [eax + 0x108], 1
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x14]
mov eax, dword [eax + 0x44]
mov edx, dword [eax]
call dword [edx + 0x14]
mov ebx, eax
dec ebx
test ebx, ebx
jl 0x59e9e3
inc ebx
xor esi, esi
push ebp
lea ecx, [ebp - 0x18]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x14]
mov eax, dword [eax + 0x44]
mov edx, esi
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x18]
call fcn.0059e4bc
pop ecx
test al, al
jne 0x59e9e3
inc esi
dec ebx
jne 0x59e9be
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x14]
mov edx, dword [ebp - 0xc]
mov dword [eax + 0x108], edx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x59ea14
lea eax, [ebp - 0x18]
mov edx, 3
call fcn.00404c98
ret
Function at 0x59ec50
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x14], eax
xor eax, eax
push ebp
push 0x59ed68
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x14]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0xc]
call fcn.00598828
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x14]
mov eax, dword [eax + 0x30]
call fcn.0042c898
push eax
call sub.gdi32.dll_SelectObject
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x14]
mov eax, dword [eax + 0x94]
mov edx, dword [ebp + 8]
mov edx, dword [edx - 0x14]
add eax, dword [edx + 0xc4]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x14]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0xc]
call fcn.0042b118
mov ebx, eax
neg ebx
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x14]
fild dword [eax + 0x11c]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x14]
fmul qword [eax + 0x78]
call fcn.00402c28
add ebx, eax
mov dword [ebp - 8], ebx
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x14]
xor edx, edx
mov dword [eax + 0x100], edx
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x14]
mov eax, dword [eax + 0x44]
mov edx, dword [eax]
call dword [edx + 0x14]
mov ebx, eax
dec ebx
test ebx, ebx
jl 0x59ed31
inc ebx
xor esi, esi
push ebp
lea ecx, [ebp - 0x14]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x14]
mov eax, dword [eax + 0x44]
mov edx, esi
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x14]
call fcn.0059ea1c
pop ecx
inc esi
dec ebx
jne 0x59ed10
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x14]
mov eax, dword [eax + 0x30]
call fcn.0042c898
push eax
call sub.gdi32.dll_SelectObject
mov eax, dword [ebp - 0xc]
push eax
call sub.gdi32.dll_DeleteObject
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x59ed6f
lea eax, [ebp - 0x14]
call fcn.00404c74
ret
Function at 0x59f010
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x59f150
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebx + 0xa0]
push eax
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebx + 0x9c]
xor edx, edx
xor eax, eax
call fcn.0041af48
lea edx, [ebp - 4]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov esi, 1
mov edx, dword [ebp - 4]
mov eax, 0x59f168
call fcn.00405268
test eax, eax
je 0x59f093
jmp 0x59f087
mov eax, dword [ebp - 4]
cmp byte [eax + esi - 1], 1
jne 0x59f086
lea eax, [ebp - 4]
mov ecx, 1
mov edx, esi
call fcn.004051c4
jmp 0x59f087
inc esi
mov eax, dword [ebp - 4]
call fcn.00404f2c
cmp esi, eax
jl 0x59f06b
mov eax, dword [ebp - 4]
call fcn.00404f2c
cmp eax, 2
jle 0x59f0c1
mov edx, dword [ebp - 4]
cmp byte [edx + eax - 2], 0xd
jne 0x59f0c1
mov edx, dword [ebp - 4]
cmp byte [edx + eax - 1], 0xa
jne 0x59f0c1
mov edx, eax
sub edx, 2
lea eax, [ebp - 4]
call fcn.004052b0
mov edx, dword [ebx + 0x30]
mov eax, ebx
call fcn.0059d948
fild dword [ebx + 0x120]
fmul qword [ebx + 0x78]
call fcn.00402c28
push eax
mov eax, dword [ebx + 0x30]
call fcn.0042c898
push eax
call sub.gdi32.dll_SetTextCharacterExtra
push 0x400
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 4]
call fcn.00404f2c
push eax
mov eax, dword [ebp - 4]
call fcn.00405124
push eax
mov eax, dword [ebx + 0x30]
call fcn.0042c898
push eax
call sub.user32.dll_DrawTextA
fild dword [ebp - 0xc]
fdiv qword [ebx + 0x78]
fadd dword [ebx + 0xa8]
mov eax, dword [ebx + 0xc4]
add eax, eax
mov dword [ebp - 0x18], eax
fild dword [ebp - 0x18]
faddp st(1)
fadd dword [0x59f16c]
call fcn.00402c28
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x59f157
lea eax, [ebp - 4]
call fcn.00404c74
ret
Function at 0x5b98b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00405114
xor eax, eax
push ebp
push 0x5b9a24
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
push ebp
push 0x5b99de
push dword fs:[edx]
mov dword fs:[edx], esp
test ebx, ebx
jne 0x5b98f8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x5b9a06
mov eax, ebx
call fcn.005b9880
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
call fcn.00404f2c
push eax
mov eax, dword [ebp - 4]
push eax
push ebx
call sub.kernel32.dll_WriteFile_1
mov eax, dword [0x5d9014]
add eax, eax
lea eax, [eax + eax*2]
mov edx, dword [0x5d91bc]
mov edx, dword [edx]
lea eax, [edx + eax*8 + 0x14]
call fcn.00404c74
mov eax, dword [0x5d9014]
add eax, eax
lea eax, [eax + eax*2]
mov edx, dword [0x5d91bc]
mov edx, dword [edx]
lea eax, [edx + eax*8 + 0x24]
mov edx, dword [ebp - 4]
call fcn.00404cc8
mov eax, dword [ebp - 4]
call fcn.00404f2c
add eax, 8
mov dword [ebp - 0xc], eax
fild dword [ebp - 0xc]
fdiv dword [0x5b9a34]
fmul dword [0x5b9a38]
fstp xword [ebp - 0x18]
wait
call sub.kernel32.dll_GetTickCount
mov dword [ebp - 0x20], eax
xor eax, eax
mov dword [ebp - 0x1c], eax
fild qword [ebp - 0x20]
fld xword [ebp - 0x18]
faddp st(1)
mov eax, dword [0x5d9014]
add eax, eax
lea eax, [eax + eax*2]
mov edx, dword [0x5d91bc]
mov edx, dword [edx]
fstp qword [edx + eax*8 + 0x28]
wait
mov eax, dword [0x5d9014]
add eax, eax
lea eax, [eax + eax*2]
mov edx, dword [0x5d91bc]
mov edx, dword [edx]
mov ecx, dword [edx + eax*8 + 0xc]
lea eax, [ebp - 0x24]
mov edx, 0x5b9a44
call fcn.00404f78
mov ecx, dword [ebp - 0x24]
mov edx, dword [0x5d9554]
mov edx, dword [edx]
mov eax, dword [ebp - 4]
call fcn.005d33f0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x5b9a06
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5b9a2b
lea eax, [ebp - 0x24]
call fcn.00404c74
lea eax, [ebp - 4]
call fcn.00404c74
ret
Function at 0x5b9a80
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x5b9b82
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.00404c74
xor edx, edx
push ebp
push 0x5b9b44
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebp - 4]
mov edx, 0x5b9b98
call fcn.00404d0c
test ebx, ebx
jne 0x5b9ad3
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x5b9b6c
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
call sub.kernel32.dll_ClearCommError
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x5b9af4
pop dword fs:[0]
add esp, 8
jmp 0x5b9b6c
cmp eax, 0x1000
jbe 0x5b9b0d
push 8
push ebx
call sub.kernel32.dll_PurgeComm
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x5b9b6c
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 5]
push eax
push ebx
call sub.kernel32.dll_ReadFile_1
test eax, eax
je 0x5b9b3a
lea eax, [ebp - 4]
call fcn.0040517c
mov dl, byte [ebp - 5]
mov byte [eax], dl
mov eax, esi
mov edx, dword [ebp - 4]
call fcn.00404cc8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x5b9b6c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5b9b89
lea eax, [ebp - 4]
call fcn.00404c74
ret

Function at 0x5d311c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405114
xor eax, eax
push ebp
push 0x5d320e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00404f2c
add eax, 8
mov dword [ebp - 0xc], eax
fild dword [ebp - 0xc]
fdiv dword [0x5d321c]
fmul dword [0x5d3220]
fstp xword [ebp - 0x18]
wait
call sub.kernel32.dll_GetTickCount
mov dword [ebp - 0x20], eax
xor eax, eax
mov dword [ebp - 0x1c], eax
fild qword [ebp - 0x20]
fld xword [ebp - 0x18]
faddp st(1)
fstp qword [0x5dc594]
wait
mov eax, dword [ebp - 4]
call fcn.00404f2c
add eax, 8
mov dword [ebp - 0xc], eax
fild dword [ebp - 0xc]
fdiv dword [0x5d321c]
fmul dword [0x5d3220]
fadd qword [0x5d90e4]
fstp qword [0x5dc58c]
wait
mov edx, 5
mov eax, dword [0x5dc544]
call fcn.0054ff94
cmp al, 1
je 0x5d31f8
cmp dword [0x5dc540], 0
je 0x5d31f8
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
call fcn.00404f2c
push eax
mov eax, dword [ebp - 4]
push eax
mov eax, dword [0x5dc540]
push eax
call sub.kernel32.dll_WriteFile_1
cmp dword [0x5dc570], 0
je 0x5d31f8
mov ecx, 0x5d322c
mov edx, dword [0x5dc570]
mov eax, dword [ebp - 4]
call fcn.005d33f0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5d3215
lea eax, [ebp - 4]
call fcn.00404c74
ret
Function at 0x5d3230
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x5d32f4
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.00404c74
mov edx, 5
mov eax, dword [0x5dc544]
call fcn.0054ff94
cmp al, 1
je 0x5d32de
lea eax, [ebp - 4]
mov edx, 0x5d3308
call fcn.00404d0c
cmp dword [0x5dc540], 0
je 0x5d32de
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [0x5dc540]
push eax
call sub.kernel32.dll_ClearCommError
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x5d32de
cmp eax, 0x1000
jbe 0x5d32ac
push 8
mov eax, dword [0x5dc540]
push eax
call sub.kernel32.dll_PurgeComm
jmp 0x5d32de
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 5]
push eax
mov eax, dword [0x5dc540]
push eax
call sub.kernel32.dll_ReadFile_1
test eax, eax
je 0x5d32de
lea eax, [ebp - 4]
call fcn.0040517c
mov dl, byte [ebp - 5]
mov byte [eax], dl
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00404cc8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5d32fb
lea eax, [ebp - 4]
call fcn.00404c74
ret

Function at 0x5d34f4
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
push edi
mov esi, eax
xor eax, eax
push ebp
push 0x5d36af
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
call fcn.00404c74
call sub.kernel32.dll_GetTickCount
mov edi, eax
Function at 0x4072e0
Capabilities:
Packed with generic packer

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffffc
pushal
mov byte [ebp - 1], 0
mov esi, dword [ebp + 8]
or esi, esi
je 0x40734e
push esi
call fcn.00406d74
or eax, eax
je 0x40734e
mov ebx, eax
push 0
call 0x40a776
cmp eax, 1
jne 0x40734e
add ebx, 2
push ebx
push 0x2042
call 0x40a7b8
or eax, eax
je 0x407349
mov ebx, eax
push ebx
call 0x40a7be
or eax, eax
je 0x407349
mov edi, eax
push esi
push edi
call fcn.00406d6e
call 0x40a770
cmp eax, 1
jne 0x407349
push edi
call 0x40a7c4
push ebx
push 1
call 0x40a77c
call 0x40a76a
popal
movzx eax, byte [ebp - 1]
leave
ret 4

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 0x408cd1
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x50
push ebp
lea eax, [esp + 0x28]
push edi
push eax
call fcn.00408e81
mov ecx, dword [esp + 0x5c]
xor edx, edx
xor ebp, ebp
mov dword [esp + 0xc], 1
mov edi, dword [ecx]
mov dword [esp + 0x10], 8
mov dword [esp + 0x14], 2
mov dword [esp + 0x18], 4
mov dx, word [edi + 0x14]
cmp word [edi + 6], bp
mov dword [esp + 0x1c], 0x10
mov dword [esp + 0x20], 0x80
mov dword [esp + 0x24], 0x20
mov dword [esp + 0x28], 0x40
lea eax, [edx + edi + 0x18]
jbe 0x408dcf
push ebx
push esi
lea ebx, [eax + 0x24]
mov eax, dword [ebx]
mov ecx, eax
mov edx, eax
shr ecx, 0x1d
shr edx, 0x1e
mov esi, eax
and ecx, 1
and edx, 1
shr esi, 0x1f
test eax, 0x2000000
je 0x408d72
mov eax, dword [ebx - 0x14]
mov ecx, dword [ebx - 0x1c]
push 0x4000
push eax
push ecx
call dword [esp + 0x4c]
jmp 0x408db5
lea edx, [edx + ecx*2]
test eax, 0x4000000
lea ecx, [esi + edx*2]
mov esi, dword [esp + ecx*4 + 0x14]
je 0x408d89
or esi, 0x200
mov edx, dword [ebx - 0x14]
mov ecx, edx
test ecx, ecx
jne 0x408da4
test al, 0x40
je 0x408d9b
mov ecx, dword [edi + 0x20]
jmp 0x408da2
test al, 0x80
je 0x408db5
mov ecx, dword [edi + 0x24]
test ecx, ecx
jbe 0x408db5
mov ecx, dword [ebx - 0x1c]
lea eax, [esp + 0x10]
push eax
push esi
push edx
push ecx
call dword [esp + 0x44]
mov edx, dword [esp + 0x64]
xor eax, eax
inc ebp
add ebx, 0x28
mov edi, dword [edx]
mov ax, word [edi + 6]
cmp ebp, eax
jl 0x408d41
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x50
ret
Function at 0x415580
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x47b75b
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.0046fff8
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x415602
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0046d7b0
mov eax, dword [eax]
push 0x4be240
push eax
call fcn.004601c4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.00470283
test bl, bl
je 0x415602
push 0x4be240
lea ecx, [esp + 0xc]
call fcn.00470613
push 0x4c1dbc
lea ecx, [esp + 0xc]
call fcn.00470613
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 0x41563e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.00470283
jmp 0x415709
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 0x4156c2
lea edx, [esp + 0x7c]
push 0x4c1db8
push edx
call fcn.004601c4
add esp, 8
test eax, eax
je 0x4156c2
lea eax, [esp + 0x7c]
push 0x4c1db4
push eax
call fcn.004601c4
add esp, 8
test eax, eax
je 0x4156c2
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 0x415652
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.00470283
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 0x415f00
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 0x415f62
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