joyce8/EMBER2024-capa huggingface dataset:
Function at 0x54aa90
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
push edi
cmp dword [ebp + 8], 0
je 0x54aaa9
mov eax, dword [ebp + 8]
movsx ecx, byte [eax]
test ecx, ecx
jne 0x54aaad
xor al, al
jmp 0x54ab14
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
je 0x54aac8
mov eax, dword [ebp - 4]
and eax, 0x10
je 0x54aacc
xor al, al
jmp 0x54ab14
movzx eax, byte [ebp + 0xc]
test eax, eax
je 0x54aaeb
mov eax, dword [ebp - 4]
and eax, 1
je 0x54aae0
mov al, 1
jmp 0x54ab14
mov eax, dword [ebp - 4]
or eax, 1
mov dword [ebp - 4], eax
jmp 0x54ab00
mov eax, dword [ebp - 4]
and eax, 1
jne 0x54aaf7
mov al, 1
jmp 0x54ab14
mov eax, dword [ebp - 4]
and eax, 0xfffffffe
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
neg eax
sbb eax, eax
neg eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x550dd0
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
push ebx
push esi
push edi
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
cmp dword [ebp + 8], 0
je 0x550e11
push 0
push 0
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
test eax, eax
je 0x550e11
mov edx, dword [ebp - 8]
mov dword [ebp - 0x50], edx
mov eax, dword [ebp - 4]
mov dword [ebp - 0x4c], eax
jmp 0x550e1f
mov dword [ebp - 0x50], accept
mov dword [ebp - 0x4c], 0
mov eax, dword [ebp - 0x50]
mov edx, dword [ebp - 0x4c]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x553020
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
movzx ecx, byte [eax + 0x99]
test ecx, ecx
je 0x5530b5
mov ecx, dword [ebp - 4]
add ecx, 0x78
call fcn.005134c0
movzx eax, al
test eax, eax
jne 0x5530b5
mov ecx, dword [ebp - 4]
add ecx, 0x38
call fcn.00507ad0
push eax
call fcn.0054aa40
add esp, 4
movzx eax, al
test eax, eax
je 0x5530b5
mov ecx, dword [ebp - 4]
add ecx, 0x78
call fcn.00507ad0
push eax
mov ecx, dword [ebp - 4]
add ecx, 0x38
call fcn.00507ad0
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
je 0x5530b5
mov eax, dword [ebp - 4]
mov byte [eax + 0x99], 0
mov eax, dword [ebp - 4]
add eax, 0x78
push eax
mov ecx, dword [ebp - 4]
add ecx, 0x38
call fcn.00514650
push 0x606d46
mov ecx, dword [ebp - 4]
add ecx, 0x78
call fcn.00512790
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x558f80
Capabilities:
Get networking parameters

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1294
call fcn.005890a0
mov eax, dword [0x632e20]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov byte [ebp - 0x1004], 0
push 0xfff
push 0
lea eax, [ebp - 0x1003]
push eax
call fcn.00588e10
add esp, 0xc
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push str.ErrCode_:___lu__Host_:___s_
lea edx, [ebp - 0x1004]
push edx
call fcn.00588fcd
add esp, 0x10
mov dword [ebp - 0x1250], 0x248
lea eax, [ebp - 0x1250]
push eax
lea ecx, [ebp - 0x124c]
push ecx
call sub.IPHLPAPI.DLL_GetNetworkParams
test eax, eax
jne 0x55909b
push 0x606d46
lea eax, [ebp - 0x113c]
push eax
call fcn.00589200
add esp, 8
test eax, eax
je 0x55907e
lea eax, [ebp - 0x113c]
push eax
lea ecx, [ebp - 0x1004]
push ecx
push str._s__DNS_:___s_
lea edx, [ebp - 0x1004]
push edx
call fcn.00588fcd
add esp, 0x10
mov eax, dword [ebp - 0x1140]
mov dword [ebp - 0x1254], eax
cmp dword [ebp - 0x1254], 0
je 0x55907c
mov eax, dword [ebp - 0x1254]
add eax, 4
push eax
lea ecx, [ebp - 0x1004]
push ecx
push str._s_
lea edx, [ebp - 0x1004]
push edx
call fcn.00588fcd
add esp, 0x10
mov eax, dword [ebp - 0x1254]
mov ecx, dword [eax]
mov dword [ebp - 0x1254], ecx
jmp 0x55903e
jmp 0x559099
lea eax, [ebp - 0x1004]
push eax
push str._s__no_DNS
lea ecx, [ebp - 0x1004]
push ecx
call fcn.00588fcd
add esp, 0xc
jmp 0x5590b6
lea eax, [ebp - 0x1004]
push eax
push str._s__no_DNS
lea ecx, [ebp - 0x1004]
push ecx
call fcn.00588fcd
add esp, 0xc
push 0
lea eax, [ebp - 0x1004]
push eax
push str.11500106
call fcn.00507520
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0058841d
mov esp, ebp
pop ebp
ret
Function at 0x56a180
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b43e2
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
push ebx
push esi
push edi
mov eax, dword [0x632e20]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 0x10]
add ecx, 4
call fcn.00575b30
mov ecx, dword [ebp - 0x10]
add ecx, 0x18
call fcn.0052ce50
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x10]
add ecx, 0x30
call fcn.0056cd20
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x10]
add ecx, 0x50
call fcn.0056a3b0
push 0x10
call fcn.0044f661
add esp, 4
mov dword [ebp - 0x70], eax
mov byte [ebp - 4], 2
cmp dword [ebp - 0x70], 0
je 0x56a206
mov ecx, dword [ebp - 0x70]
call fcn.0050a7d0
mov dword [ebp - 0x78], eax
jmp 0x56a20d
mov dword [ebp - 0x78], 0
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x74], eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x74]
mov dword [ecx], edx
mov ecx, dword [ebp - 0x10]
add ecx, 4
call fcn.00575d40
push 0xac
mov ecx, dword [ebp - 0x10]
add ecx, 0x18
call fcn.0056c9e0
push 0x48
call fcn.0044f661
add esp, 4
mov dword [ebp - 0x64], eax
mov byte [ebp - 4], 3
cmp dword [ebp - 0x64], 0
je 0x56a25e
mov ecx, dword [ebp - 0x64]
call fcn.0056a330
mov dword [ebp - 0x78], eax
jmp 0x56a265
mov dword [ebp - 0x78], 0
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x68], eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x68]
mov dword [ebp - 0x6c], ecx
lea edx, [ebp - 0x6c]
push edx
mov ecx, dword [ebp - 0x10]
add ecx, 0x18
call fcn.0056cbc0
push 0x68
call fcn.0044f661
add esp, 4
mov dword [ebp - 0x5c], eax
mov byte [ebp - 4], 4
cmp dword [ebp - 0x5c], 0
je 0x56a2a8
mov ecx, dword [ebp - 0x5c]
call fcn.0056a3e0
mov dword [ebp - 0x78], eax
jmp 0x56a2af
mov dword [ebp - 0x78], 0
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x60], eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x60]
mov dword [ecx + 0x68], edx
push 0x68
call fcn.0044f661
add esp, 4
mov dword [ebp - 0x54], eax
mov byte [ebp - 4], 5
cmp dword [ebp - 0x54], 0
je 0x56a2e6
mov ecx, dword [ebp - 0x54]
call fcn.0056a3e0
mov dword [ebp - 0x78], eax
jmp 0x56a2ed
mov dword [ebp - 0x78], 0
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x58], eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x58]
mov dword [ecx + 0x6c], edx
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x70], 0
push 1
mov ecx, dword [ebp - 0x10]
call fcn.0056c330
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x57e4b0
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
push esi
push edi
mov eax, dword [ebp + 8]
mov dword [eax + 0x14], 0
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x10], 0
mov eax, dword [ebp + 8]
mov dword [eax], 0x67452301
mov eax, dword [ebp + 8]
mov dword [eax + 4], 0xefcdab89
mov eax, dword [ebp + 8]
mov dword [eax + 8], 0x98badcfe
mov eax, dword [ebp + 8]
mov dword [eax + 0xc], 0x10325476
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x57f6d0
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
push esi
push edi
cmp dword [ebp + 8], 0
jne 0x57f6e6
mov eax, 1
jmp 0x57f74a
mov eax, dword [ebp + 8]
mov dword [eax + 0x14], 0
mov eax, dword [ebp + 8]
mov dword [eax + 0x18], 0
xor eax, eax
mov ecx, dword [ebp + 8]
mov word [ecx + 0x1c], ax
mov eax, dword [ebp + 8]
mov dword [eax], 0x67452301
mov eax, dword [ebp + 8]
mov dword [eax + 4], 0xefcdab89
mov eax, dword [ebp + 8]
mov dword [eax + 8], 0x98badcfe
mov eax, dword [ebp + 8]
mov dword [eax + 0xc], 0x10325476
mov eax, dword [ebp + 8]
mov dword [eax + 0x10], 0xc3d2e1f0
mov eax, dword [ebp + 8]
mov dword [eax + 0x60], 0
mov eax, dword [ebp + 8]
mov dword [eax + 0x64], 0
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x58841d
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x632e20]
jne 0x588427
repz ret
jmp fcn.00594f6c

Function at 0x58a7d7
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x58a808
call fcn.0058d9e8
mov dword [eax], esi
call fcn.0058d9d5
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.0058ab1c
add esp, 0x14
push 0x16
pop eax
jmp 0x58a85d
test dword [ebp + 0xc], 0xfffffff9
jne 0x58a7e4
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x58a835
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0058d9fb
pop ecx
call fcn.0058d9d5
mov eax, dword [eax]
jmp 0x58a85d
test al, 0x10
jne 0x58a85b
test al, 1
je 0x58a85b
test byte [ebp + 0xc], 2
je 0x58a85b
call fcn.0058d9e8
mov dword [eax], 5
call fcn.0058d9d5
mov dword [eax], 0xd
jmp 0x58a82c
xor eax, eax
pop esi
pop ebp
ret

Function at 0x5a3277
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.005948aa
and dword [ebp - 4], 0
cmp dword [0x63c0dc], 0
mov ebx, eax
jne 0x5a3328
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x5a33d9
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x604bd0
push edi
call esi
test eax, eax
je 0x5a33d9
push eax
call fcn.00594838
mov dword [esp], 0x604bc0
push edi
mov dword [0x63c0dc], eax
call esi
push eax
call fcn.00594838
mov dword [esp], 0x604bac
push edi
mov dword [0x63c0e0], eax
call esi
push eax
call fcn.00594838
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x63c0e4], eax
call esi
push eax
call fcn.00594838
pop ecx
mov dword [0x63c0ec], eax
test eax, eax
je 0x5a3328
push 0x604b78
push edi
call esi
push eax
call fcn.00594838
pop ecx
mov dword [0x63c0e8], eax
mov eax, dword [0x63c0e8]
cmp eax, ebx
je 0x5a3380
cmp dword [0x63c0ec], ebx
je 0x5a3380
push eax
call fcn.005948b3
push dword [0x63c0ec]
mov esi, eax
call fcn.005948b3
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x5a3380
test edi, edi
je 0x5a3380
call esi
test eax, eax
je 0x5a3377
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x5a3377
test byte [ebp - 0xc], 1
jne 0x5a3380
or dword [ebp + 0x10], 0x200000
jmp 0x5a33b9
mov eax, dword [0x63c0e0]
cmp eax, ebx
je 0x5a33b9
push eax
call fcn.005948b3
pop ecx
test eax, eax
je 0x5a33b9
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x5a33b9
mov eax, dword [0x63c0e4]
cmp eax, ebx
je 0x5a33b9
push eax
call fcn.005948b3
pop ecx
test eax, eax
je 0x5a33b9
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x63c0dc]
call fcn.005948b3
pop ecx
test eax, eax
je 0x5a33d9
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x5a33db
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x5aa3d8
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x5aa409
call fcn.0058d9e8
mov dword [eax], esi
call fcn.0058d9d5
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.0058ab1c
add esp, 0x14
push 0x16
pop eax
jmp 0x5aa45e
test dword [ebp + 0xc], 0xfffffff9
jne 0x5aa3e5
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x5aa436
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0058d9fb
pop ecx
call fcn.0058d9d5
mov eax, dword [eax]
jmp 0x5aa45e
test al, 0x10
jne 0x5aa45c
test al, 1
je 0x5aa45c
test byte [ebp + 0xc], 2
je 0x5aa45c
call fcn.0058d9e8
mov dword [eax], 5
call fcn.0058d9d5
mov dword [eax], 0xd
jmp 0x5aa42d
xor eax, eax
pop esi
pop ebp
ret

Function at 0x5abed3
Capabilities:
Write file on windows

Disassembly:
push 0x48
mov eax, 0x5b54cd
call fcn.0058d7b8
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x3c], ebx
je 0x5abfe5
cmp byte [esi + 0x42], bl
je 0x5abfe5
mov eax, dword [esi]
mov edi, 0xffff
push edi
call dword [eax + 4]
movzx eax, ax
cmp di, ax
jne 0x5abf0f
xor al, al
jmp 0x5abfe7
push ebx
push 8
lea ecx, [ebp - 0x2c]
call fcn.0042c040
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0x2c]
call fcn.0040cf10
mov ecx, eax
call fcn.00526b30
mov edi, dword [ebp - 0x18]
mov ebx, eax
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x2c]
call fcn.0040cf10
mov ecx, eax
call fcn.00526b30
mov ecx, dword [esi + 0x3c]
mov edx, dword [ecx]
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x30]
push eax
add edi, ebx
push edi
push dword [ebp - 0x34]
lea eax, [esi + 0x44]
push eax
call dword [edx + 0x18]
sub eax, 0
je 0x5abf7f
dec eax
je 0x5abf83
dec eax
dec eax
je 0x5abfe1
xor bl, bl
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.004117b0
mov al, bl
jmp 0x5abfe7
mov byte [esi + 0x42], 0
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x2c]
call fcn.0040cf10
mov ecx, eax
call fcn.00526b30
mov edi, dword [ebp - 0x30]
sub edi, eax
je 0x5abfc3
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x2c]
call fcn.0040cf10
mov ecx, eax
call fcn.00526b30
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.0058fa40
add esp, 0x10
cmp edi, eax
jne 0x5abf6d
cmp byte [esi + 0x42], 0
je 0x5abfe1
test edi, edi
jne 0x5abf1d
push edi
push 8
lea ecx, [ebp - 0x2c]
call fcn.00423070
jmp 0x5abf1d
mov bl, 1
jmp 0x5abf6f
mov al, 1
call fcn.0058d83b
ret
Function at 0xd68b83
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0xd68886
dec esi
call fcn.00d68bc6
sub edx, esi
xor dword [ebx], eax
and edx, edx
mov edx, 0xbee466a8
and esi, edx
add ebx, 2
add edx, 1
cmp ebx, edi
jl fcn.00d68b83
inc edx
push 0xb2ec9f98
mov edx, dword [esp]
add esp, 4
sub esi, 0xcbbb10a8
ret

Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x407ef8
nop
mov ecx, 0x242e14c9
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x42e04e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x42e024
nop
nop
mov eax, section..rsrc
mov ebx, 0x42cd70
nop
mov ecx, 0x1a271d90
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x42e084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x42e06c
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219

Function at 0x430004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
call 0x43000c
nop
nop
pop eax
nop
nop
nop
add eax, 0x403d6f
nop
nop
sub eax, 0x403d15
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
popal
nop
jmp loc.00401219
Function at 0x404e92
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
mov dword [ebp + 8], 0x404f45
mov eax, dword [ebp + 8]
leave
sub esp, 0x60
pushfd
pushal
push dword [esp + 0x84]
push 0
push eax
fnsave dword [esp + 0x30]
wait
push dword fs:[0]
mov dword fs:[0], esp
mov eax, 1
jmp dword [esp + 0xc]
Function at 0x409879
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 0
push 0
push dword [ebp - 4]
call fcn.00404e92
test eax, eax
je 0x4098bc
xor eax, eax
xchg dword [ebp + 8], eax
cmp eax, 0xffff
jle 0x4098bc
cmp word [eax], 0x5a4d
jne 0x4098bc
add eax, dword [eax + 0x3c]
cmp dword [eax], 0x4550
jne 0x4098bc
mov dword [ebp + 8], eax
mov dword [ebp - 4], 0
push 0
push dword [ebp - 4]
call fcn.004098db
mov eax, dword [ebp + 8]
jmp 0x4098d5
mov esp, ebp
pop ebp
ret 4

Function at 0x409a77
Capabilities:
Execute syscall

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
cmp dword [ebp + 8], 0
jge 0x409a99
mov eax, 0xfffffffd
jmp 0x409b79
mov ebx, dword [0x4d9d80]
add ebx, 0x1c
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 4]
cmp dword [ebx], 0
je 0x409b47
mov ebx, dword [0x4d9d80]
add ebx, 4
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 4]
cmp dword [ebx], 6
jne 0x409ae8
mov ebx, dword [0x4d9d80]
add ebx, 8
mov dword [ebp - 0xc], ebx
mov ebx, dword [ebp - 0xc]
cmp dword [ebx], 2
jne 0x409ae8
mov eax, 1
jmp 0x409aed
mov eax, 0
test eax, eax
je 0x409b19
mov eax, dword [ebp]
add eax, 0x80
mov ecx, 0x20
push dword [eax]
sub eax, 4
loop 0x409b02
mov eax, dword [ebp + 8]
call dword fs:[0xc0]
nop
nop
leave
ret 4
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0xffff
shr ecx, 0x10
and ecx, 0xffff
mov edx, dword [ebp]
lea edx, [edx + 8]
call dword fs:[0xc0]
nop
nop
nop
nop
nop
leave
ret 4
mov ebx, dword [0x4d9d80]
add ebx, 0x1c
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 4]
cmp dword [ebx], 0
jne 0x409b6f
mov eax, dword [ebp + 8]
mov edx, dword [ebp]
lea edx, [edx + 8]
int 0x2e
nop
leave
ret 4
mov eax, 0
jmp 0x409b79
mov esp, ebp
pop ebp
ret 4
Function at 0x417d80
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x4a56db
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.0049a43f
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x417e02
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.004981b9
mov eax, dword [eax]
push 0x4c4ce0
push eax
call fcn.0048a2a4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0049a6ca
test bl, bl
je 0x417e02
push 0x4c4ce0
lea ecx, [esp + 0xc]
call fcn.0049aa5a
push 0x4c4cec
lea ecx, [esp + 0xc]
call fcn.0049aa5a
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 0x417e3e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0049a6ca
jmp 0x417f09
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 0x417ec2
lea edx, [esp + 0x7c]
push 0x4c4ce8
push edx
call fcn.0048a2a4
add esp, 8
test eax, eax
je 0x417ec2
lea eax, [esp + 0x7c]
push 0x4c4ce4
push eax
call fcn.0048a2a4
add esp, 8
test eax, eax
je 0x417ec2
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 0x417e52
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.0049a6ca
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 0x418700
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 0x418762
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 0x418770
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x4a575b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x4d5cf8]
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 0x4188a8
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x4187d6
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0049a6ca
xor eax, eax
jmp 0x41891f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.0049a807
push esi
lea ecx, [esp + 0xc]
call fcn.0049aa96
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 0x4188fd
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push accept
call fcn.00418700
test eax, eax
jne 0x4188fd
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 accept
mov ecx, edi
call fcn.00418700
test eax, eax
jne 0x4188fd
lea eax, [esp + 0x14]
push 0x4c4cfc
push eax
call fcn.0048b360
mov esi, eax
add esp, 8
test esi, esi
jne 0x4188dc
lea ecx, [esp + 0x14]
push 0x4c4cf8
push ecx
call fcn.0048b2e0
mov esi, eax
add esp, 8
test esi, esi
jne 0x4188dc
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x4188df
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.0049a7b7
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x4187ee
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0049a6ca
xor eax, eax
jmp 0x41891f
mov byte [esi], 0
push 0x4c4cf4
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.0049a6ca
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