joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40517b
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 4], 0
mov dword [ebp - 4], 0
mov dword [ebp - 8], esp
push 0x11
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x4051b6
push 6
call fcn.004160e6
add esp, 4
mov dword [ebp - 0xc], eax
push 0x80000301
push 0
push 0x8000
push 0x80000301
push 0
push dword [ebp - 0xc]
push 2
mov ebx, 0xc4
call fcn.0042f670
add esp, 0x1c
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x405219
push 0x80000301
push 0
push 1
push 0x80000301
push 0
push dword [ebp - 4]
push 2
mov ebx, 0xc8
call fcn.0042e250
add esp, 0x1c
mov dword [ebp - 4], eax
mov dword [ebp - 8], esp
push 0x10
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x40523d
push 6
call fcn.004160e6
add esp, 4
mov dword [ebp - 0xc], eax
push 0x80000301
push 0
push 0x8000
push 0x80000301
push 0
push dword [ebp - 0xc]
push 2
mov ebx, 0xc4
call fcn.0042f670
add esp, 0x1c
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x4052a0
push 0x80000301
push 0
push 2
push 0x80000301
push 0
push dword [ebp - 4]
push 2
mov ebx, 0xc8
call fcn.0042e250
add esp, 0x1c
mov dword [ebp - 4], eax
mov dword [ebp - 8], esp
push 0x12
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x4052c4
push 6
call fcn.004160e6
add esp, 4
mov dword [ebp - 0xc], eax
push 0x80000301
push 0
push 0x8000
push 0x80000301
push 0
push dword [ebp - 0xc]
push 2
mov ebx, 0xc4
call fcn.0042f670
add esp, 0x1c
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x405327
push 0x80000301
push 0
push 4
push 0x80000301
push 0
push dword [ebp - 4]
push 2
mov ebx, 0xc8
call fcn.0042e250
add esp, 0x1c
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
jmp 0x40532f
mov esp, ebp
pop ebp
ret
Function at 0x409236
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx]
add ebx, 4
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], esp
mov ebx, dword [ebp - 0xc]
push dword [ebx]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
nop
nop
nop
nop
cmp dword [ebp - 0x10], esp
je 0x40927c
push 6
call fcn.004160e6
add esp, 4
mov dword [ebp - 0x1c], eax
fild dword [ebp - 0x1c]
fstp qword [ebp - 0x1c]
fld qword [ebp - 0x1c]
fadd qword [0x43f2b2]
fstp qword [ebp - 0x24]
fld qword [ebp - 0x24]
call fcn.00401033
mov dword [ebp - 4], eax
push 0x80000301
push 0
push dword [ebp - 4]
push 1
mov ebx, 0x184
call fcn.0042e270
add esp, 0x10
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x4092cf
push ebx
call fcn.004160e0
add esp, 4
pop eax
mov dword [ebp - 8], eax
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx]
add ebx, 4
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], esp
push dword [ebp - 4]
push dword [ebp - 8]
mov ebx, dword [ebp - 0xc]
push dword [ebx]
call dword [sym.imp.USER32.dll_GetWindowTextA]
nop
nop
nop
nop
cmp dword [ebp - 0x10], esp
je 0x409308
push 6
call fcn.004160e6
add esp, 4
mov eax, dword [ebp - 8]
test eax, eax
je 0x409324
push eax
mov ebx, eax
call fcn.00401249
inc eax
push eax
call fcn.004160da
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x409329
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x40933a
push ebx
call fcn.004160e0
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 4
Function at 0x417a59
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp dword [ebp + 8], 0
jne 0x417a72
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
or eax, 0xffffffff
jmp 0x417ad1
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x110], 0
je 0x417abd
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x110]
mov dword [ebp - 8], eax
cmp dword [ebp + 0xc], 0
je 0x417a9f
mov ecx, dword [ebp + 0xc]
mov dword [ecx], 0
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x144]
mov ecx, dword [eax + 0xc]
shl ecx, 4
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x134]
mov eax, dword [eax + ecx + 8]
jmp 0x417ad1
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x144]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esp, ebp
pop ebp
ret 8
Function at 0x418b62
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
cmp dword [ebp + 8], 0
jne 0x418b7d
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x418c9b
mov eax, dword [ebp + 8]
movsx ecx, byte [eax]
test ecx, ecx
jne 0x418b96
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x418c9b
mov edx, dword [ebp + 8]
push edx
call fcn.004316d0
add esp, 4
add eax, 1
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x105
jbe 0x418bb8
xor eax, eax
jmp 0x418c9b
cmp dword [ebp - 0xc], 0x105
jne 0x418be6
mov eax, dword [ebp + 8]
movsx ecx, byte [eax + 0x103]
cmp ecx, 0x5c
je 0x418be6
mov edx, dword [ebp + 8]
movsx eax, byte [edx + 0x103]
cmp eax, 0x2f
je 0x418be6
xor eax, eax
jmp 0x418c9b
mov eax, dword [ebp - 0xc]
add eax, 4
and al, 0xfc
call fcn.00431750
mov dword [ebp - 0x14], esp
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.004317d0
add esp, 0xc
mov edx, dword [ebp - 0x10]
mov dword [ebp - 8], edx
jmp 0x418c21
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
movsx edx, byte [ecx]
test edx, edx
je 0x418c3e
mov eax, dword [ebp - 8]
movsx ecx, byte [eax]
cmp ecx, 0x2f
jne 0x418c3c
mov edx, dword [ebp - 8]
mov byte [edx], 0x5c
jmp 0x418c18
mov eax, dword [ebp - 8]
movsx ecx, byte [eax - 1]
cmp ecx, 0x5c
je 0x418c60
mov edx, dword [ebp - 8]
mov byte [edx], 0x5c
mov eax, dword [ebp - 8]
mov byte [eax + 1], 0
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
and eax, 0x10
test eax, eax
je 0x418c7d
cmp dword [ebp - 4], 0xffffffff
jne 0x418c81
xor eax, eax
jmp 0x418c9b
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0x10]
push edx
push 0x44796c
call fcn.004317d0
add esp, 0xc
mov eax, 1
lea esp, [ebp - 0x14]
mov esp, ebp
pop ebp
ret 4
Function at 0x41f05b
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
cmp dword [ebp + 8], 0
jne 0x41f077
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
or eax, 0xffffffff
jmp 0x41f130
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0xc], eax
mov eax, 0x20
call fcn.00431750
mov dword [ebp - 0x14], esp
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 4], ecx
mov dword [ebp - 0x10], 0
jmp 0x41f0ae
mov edx, dword [ebp - 0x10]
add edx, 0x200
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0xc]
jae 0x41f12d
push 0
push 0
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 8]
push eax
push 0x20
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x41f0e7
or eax, 0xffffffff
jmp 0x41f130
cmp dword [ebp - 8], 0x20
jae 0x41f0f2
or eax, 0xffffffff
jmp 0x41f130
push 4
mov eax, dword [0x440928]
push eax
mov ecx, dword [ebp - 4]
push ecx
call fcn.00431c10
add esp, 0xc
test eax, eax
je 0x41f123
push 4
mov edx, dword [0x44092c]
push edx
mov eax, dword [ebp - 4]
push eax
call fcn.00431c10
add esp, 0xc
test eax, eax
jne 0x41f128
mov eax, dword [ebp - 0x10]
jmp 0x41f130
jmp 0x41f0a2
or eax, 0xffffffff
lea esp, [ebp - 0x14]
mov esp, ebp
pop ebp
ret 4

Function at 0x4202ba
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], 0xeeeeeeee
mov ecx, dword [ebp + 0xc]
shr ecx, 2
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 0xc]
sub eax, 1
mov dword [ebp + 0xc], eax
test edx, edx
jbe 0x42034c
mov ecx, dword [ebp + 0x10]
and ecx, 0xff
mov edx, dword [ebp - 0xc]
add edx, dword [ecx*4 + 0x447568]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp + 0x10]
add eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
xor edx, eax
mov dword [ebp - 8], edx
mov eax, dword [ebp + 0x10]
not eax
shl eax, 0x15
add eax, 0x11111111
mov ecx, dword [ebp + 0x10]
shr ecx, 0xb
or eax, ecx
mov dword [ebp + 0x10], eax
mov edx, dword [ebp - 4]
mov eax, dword [edx]
add eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0xc]
shl ecx, 5
lea edx, [eax + ecx + 3]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
mov dword [eax], ecx
mov edx, dword [ebp - 4]
add edx, 4
mov dword [ebp - 4], edx
jmp 0x4202d6
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x420355
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], 0xeeeeeeee
mov ecx, dword [ebp + 0xc]
shr ecx, 2
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 0xc]
sub eax, 1
mov dword [ebp + 0xc], eax
test edx, edx
jbe 0x4203e5
mov ecx, dword [ebp + 0x10]
and ecx, 0xff
mov edx, dword [ebp - 0xc]
add edx, dword [ecx*4 + 0x447568]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp + 0x10]
add eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
xor edx, eax
mov dword [ebp - 8], edx
mov eax, dword [ebp + 0x10]
not eax
shl eax, 0x15
add eax, 0x11111111
mov ecx, dword [ebp + 0x10]
shr ecx, 0xb
or eax, ecx
mov dword [ebp + 0x10], eax
mov edx, dword [ebp - 8]
add edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0xc]
shl eax, 5
lea ecx, [edx + eax + 3]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
mov dword [edx], eax
mov ecx, dword [ebp - 4]
add ecx, 4
mov dword [ebp - 4], ecx
jmp 0x420371
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x42f5d0
Capabilities:
Read .ini file

Disassembly:
push ebx
push ebp
push esi
push edi
push 0x400
call fcn.00432a57
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x40]
mov ecx, dword [esp + 0x28]
add esp, 4
mov esi, eax
mov eax, dword [esp + 0x30]
push ebx
push 0x400
push esi
push ebp
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp eax, 0x3ff
jl 0x42f63a
push esi
lea edi, [eax + 0x400]
call fcn.00432a65
push edi
call fcn.00432a57
mov edx, dword [esp + 0x38]
add esp, 8
mov esi, eax
mov eax, dword [esp + 0x24]
push ebx
push edi
push esi
push ebp
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
dec edi
cmp eax, edi
jge 0x42f60a
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
xor ebx, ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x42f656
push ecx
push esi
call fcn.004309c0
add esp, 8
mov ebx, eax
push esi
call fcn.00432a65
add esp, 4
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x42f7b0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10
mov eax, dword [esp + 0x18]
push ebx
push ebp
push esi
push edi
push eax
call fcn.004310a0
mov esi, dword [esp + 0x38]
mov ebx, eax
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
add esp, 4
xor ebp, ebp
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x10], ebp
test ebx, ebx
je 0x42f900
test ecx, ecx
je 0x42f900
inc ecx
push ecx
call fcn.00432a57
mov ebp, eax
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x5c
mov edx, ecx
mov esi, edi
mov edi, ebp
push ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.00432a70
mov edi, eax
add esp, 0xc
test edi, edi
je 0x42f829
mov byte [edi], 0
inc edi
lea eax, [esp + 0x1c]
push eax
push ebp
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x42f8ed
push 0x400
mov dword [esp + 0x18], 0x400
mov dword [esp + 0x1c], 1
call fcn.00432a57
add esp, 4
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0x14]
mov esi, eax
mov eax, dword [esp + 0x1c]
push ecx
lea edx, [esp + 0x1c]
push esi
push edx
push 0
push edi
push eax
call ebx
test eax, eax
je 0x42f8b1
cmp eax, 0xea
jne 0x42f8d9
push esi
call fcn.00432a65
mov ecx, dword [esp + 0x18]
push ecx
call fcn.00432a57
mov ecx, dword [esp + 0x24]
add esp, 8
lea edx, [esp + 0x14]
mov esi, eax
push edx
lea eax, [esp + 0x1c]
push esi
push eax
push 0
push edi
push ecx
call ebx
test eax, eax
jne 0x42f87c
mov eax, dword [esp + 0x18]
cmp eax, 1
je 0x42f8bf
cmp eax, 2
jne 0x42f8d9
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push esi
call fcn.004309c0
add esp, 8
mov dword [esp + 0x10], eax
push esi
call fcn.00432a65
mov edx, dword [esp + 0x20]
add esp, 4
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebp
call fcn.00432a65
mov eax, dword [esp + 0x14]
add esp, 4
test eax, eax
jne 0x42f92e
mov ebp, eax
mov eax, dword [esp + 0x48]
test eax, eax
je 0x42f93a
mov edx, dword [esp + 0x40]
test edx, edx
je 0x42f93a
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
call fcn.004309c0
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x4301d0
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x10]
push edi
push 0
push 0x20
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x430262
mov eax, dword [esp + 0x10]
push ebx
mov ebx, 1
push ebp
cmp eax, ebx
push esi
mov dword [esp + 0x10], ebx
jle 0x430254
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
lea esi, [esp + 0x2c]
mov eax, dword [esi]
lea edx, [esp + 0x14]
push 0
push edx
lea ecx, [eax + 8]
mov eax, dword [eax + 4]
push eax
push ecx
push edi
call ebp
test eax, eax
je 0x43024c
mov eax, dword [esp + 0x1c]
inc ebx
add esi, 0xc
cmp ebx, eax
jl 0x430215
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret
mov dword [esp + 0x10], 0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret
Function at 0x1005765
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x10]
test esi, esi
jbe 0x100578f
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push ebx
movzx dx, byte [eax + 1]
xor ebx, ebx
mov bh, byte [eax]
xor edx, ebx
mov word [ecx], dx
inc ecx
inc ecx
inc eax
inc eax
dec esi
jne 0x1005779
pop ebx
pop esi
pop ebp
ret 0xc
Function at 0x42d880
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call dbg.__acrt_iob_func
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sym._fwrite
mov dword [esp], 2
call dbg.__acrt_iob_func
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x42d8e0
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x52906c]
test esi, esi
jle 0x42da00
mov eax, dword [0x529070]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp ebx, edx
jb 0x42d914
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x42d997
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x42d900
mov dword [esp], ebx
call dbg.__mingw_GetSectionForAddress
mov edi, eax
test eax, eax
je 0x42da27
mov eax, dword [0x529070]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call dbg._GetPEImageBase
mov edx, dword [0x529070]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.DLL_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x42da07
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x42d990
lea edx, [eax - 4]
and edx, 0xfffffffb
jne 0x42d9a0
add dword [0x52906c], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
cmp eax, 2
mov edx, 4
mov eax, 0x40
mov ecx, dword [esp + 0x20]
cmove eax, edx
mov edx, dword [esp + 0x14]
add ebx, dword [0x529070]
mov dword [ebx + 8], ecx
mov dword [ebx + 4], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call dword [sym.imp.KERNEL32.DLL_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x42d990
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call dbg.__report_error
lea esi, [esi]
lea esi, [esi]
xor esi, esi
jmp 0x42d91e
mov eax, dword [0x529070]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call dbg.__report_error
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call dbg.__report_error
lea esi, [esi]
nop
Function at 0x42df40
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x529088
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
mov ebx, dword [0x529080]
sub esp, 4
test ebx, ebx
je 0x42df95
mov ebp, dword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.DLL_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x42df8e
test esi, esi
je 0x42df8e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x42df70
mov dword [esp], 0x529088
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x42e2d0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [0x400000], 0x5a4d
jne 0x42e2f5
mov ecx, dword [0x40003c]
cmp dword [ecx + 0x400000], 0x4550
lea edx, [ecx + 0x400000]
je 0x42e300
ret
cmp word [ecx + 0x400018], 0x10b
jne 0x42e2f5
push esi
movzx eax, word [ecx + 0x400014]
push ebx
movzx esi, word [ecx + 0x400006]
mov ebx, dword [esp + 0xc]
lea eax, [edx + eax + 0x18]
sub ebx, 0x400000
test si, si
je 0x42e348
xor ecx, ecx
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x42e33e
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x42e34a
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x42e330
xor eax, eax
pop ebx
pop esi
ret
Function at 0x40f850
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x47a68b
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.0046d05a
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x40f8d2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0046a940
mov eax, dword [eax]
push 0x63a200
push eax
call fcn.0045d3b4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0046d2e5
test bl, bl
je 0x40f8d2
push 0x63a200
lea ecx, [esp + 0xc]
call fcn.0046d6c1
push 0x63dd7c
lea ecx, [esp + 0xc]
call fcn.0046d6c1
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 0x40f90e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0046d2e5
jmp 0x40f9d9
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 0x40f992
lea edx, [esp + 0x7c]
push 0x63dd78
push edx
call fcn.0045d3b4
add esp, 8
test eax, eax
je 0x40f992
lea eax, [esp + 0x7c]
push 0x63dd74
push eax
call fcn.0045d3b4
add esp, 8
test eax, eax
je 0x40f992
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 0x40f922
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.0046d2e5
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 0x4101d0
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 0x410232
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
Function at 0x410240
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x47a70b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x644cec]
push esi
push edi
mov edi, ecx
mov dword [esp + 8], eax
mov eax, dword [edi + 0x44]
mov dword [esp + 0x21c], 0
test eax, eax
jne 0x410378
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x4102a6
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0046d2e5
xor eax, eax
jmp 0x4103ef
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.0046d46e
push esi
lea ecx, [esp + 0xc]
call fcn.0046d6fd
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x4103cd
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push closesocket
call fcn.004101d0
test eax, eax
jne 0x4103cd
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x14]
push str._shellopencommand
push eax
call ebx
lea ecx, [esp + 0x14]
lea edx, [esp + 0x14]
push ecx
push edx
push closesocket
mov ecx, edi
call fcn.004101d0
test eax, eax
jne 0x4103cd
lea eax, [esp + 0x14]
push 0x63dd90
push eax
call fcn.0045e490
mov esi, eax
add esp, 8
test esi, esi
jne 0x4103ac
lea ecx, [esp + 0x14]
push 0x63dd8c
push ecx
call fcn.0045e410
mov esi, eax
add esp, 8
test esi, esi
jne 0x4103ac
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x4103af
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.0046d41e
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x4102be
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0046d2e5
xor eax, eax
jmp 0x4103ef
mov byte [esi], 0
push 0x63dd88
push esi
call ebx
mov eax, dword [esp + 0x10]
push eax
push esi
call ebx
lea ecx, [esp + 0x14]
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
mov esi, eax
xor edx, edx
cmp esi, 0x20
setg dl
lea ecx, [esp + 0x10]
mov esi, edx
mov dword [esp + 0x224], 0xffffffff
call fcn.0046d2e5
pop ebp
mov eax, esi
pop ebx
mov ecx, dword [esp + 0x214]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x218
ret 4