joyce8/EMBER2024-capa huggingface dataset:
Function at 0x498084
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, eax
mov eax, dword [esi + 8]
push edi
mov edi, eax
and edi, 7
je 0x4980a9
cmp eax, edi
jge 0x4980a1
mov eax, esi
call fcn.00497a78
mov ecx, edi
shr dword [esi + 0xc], cl
sub dword [esi + 8], edi
xor ecx, ecx
cmp dword [esi + 8], ecx
jle 0x4980cb
mov al, byte [esi + 0xc]
shr dword [esi + 0xc], 8
add dword [esi + 8], 0xfffffff8
mov byte [ebp + ecx - 4], al
inc ecx
cmp dword [esi + 8], 0
jg 0x4980b0
cmp ecx, 4
jge 0x4980ea
mov edi, dword [esi + 4]
mov eax, dword [esi]
cmp eax, edi
jb 0x4980d8
xor eax, eax
jmp 0x4980e0
mov dl, byte [eax]
inc eax
mov dword [esi], eax
movzx eax, dl
mov byte [ebp + ecx - 4], al
inc ecx
cmp ecx, 4
jl 0x4980ce
movzx edi, byte [ebp - 3]
movzx eax, byte [ebp - 4]
movzx ecx, byte [ebp - 2]
shl edi, 8
add edi, eax
movzx eax, byte [ebp - 1]
shl eax, 8
add eax, ecx
mov ecx, edi
xor ecx, 0xffff
cmp eax, ecx
je 0x49811c
mov eax, str.zlib_corrupt
call fcn.004956b2
jmp 0x498157
mov eax, dword [esi]
add eax, edi
cmp eax, dword [esi + 4]
jbe 0x49812c
mov eax, str.read_past_buffer
jmp 0x498115
mov eax, dword [esi + 0x10]
add eax, edi
cmp eax, dword [esi + 0x18]
jbe 0x498141
mov ecx, edi
call fcn.00497aa3
test eax, eax
je 0x498157
push edi
push dword [esi]
push dword [esi + 0x10]
call fcn.0041d320
add dword [esi], edi
add dword [esi + 0x10], edi
xor eax, eax
add esp, 0xc
inc eax
pop edi
pop esi
leave
ret

Function at 0x4a3cbf
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x507a30]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.004a3c54
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.0041d6a0
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x4a3d0e
cmp dword [ebp - 0x1c], 5
jb 0x4a3d26
jmp 0x4a3d22
cmp dword [ebp - 0x10], 1
jne 0x4a3d26
cmp dword [ebp - 0x1c], 4
ja 0x4a3d22
jne 0x4a3d26
cmp dword [ebp - 0x18], 0
jbe 0x4a3d26
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x4d7340
call fcn.0040f191
test eax, eax
jge 0x4a3d47
mov byte [0x50e664], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0041d685
add ebp, 0x78
leave
ret
Function at 0x407e15
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42e180]
jne 0x407e1f
repz ret
jmp fcn.0040bc0c

Function at 0x40e505
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
pushal
call 0x40e514
pop dword [ebp - 0x24]
mov eax, 0xe2249669
sub eax, 0xe1e3b155
sub dword [ebp - 0x24], eax
mov dword [ebp - 0x34], 0x6d457073
add dword [ebp - 0x34], 0xe10cd4d8
mov dword [ebp - 0x30], 0x3edce64e
sub dword [ebp - 0x30], 0xca99a09
mov dword [ebp - 0x2c], 0x1dbc3d49
add dword [ebp - 0x2c], 0x2e9006e5
mov dword [ebp - 0x28], 0xe0a697c3
add dword [ebp - 0x28], 0x1f59683d
lea eax, [ebp - 0x34]
push eax
mov eax, 0x1dc1da3d
add eax, 0xe2805637
add eax, dword [ebp - 0x24]
call dword [eax]
mov dword [ebp - 0x34], 0xdc481450
sub dword [ebp - 0x34], 0x67d5aafa
mov dword [ebp - 0x30], 0x1b19a9e9
add dword [ebp - 0x30], 0x2652b78c
mov dword [ebp - 0x2c], 0x1155a3f1
sub dword [ebp - 0x2c], 0xade63785
mov dword [ebp - 0x28], 0x356a9559
add dword [ebp - 0x28], 0xca956aa7
lea ebx, [ebp - 0x34]
push ebx
push eax
mov eax, 0x36d27732
sub eax, 0x3690460e
add eax, dword [ebp - 0x24]
call dword [eax]
push 0x40
push 0x1000
push 0x40434
push 0
call eax
mov ecx, 0x407a18f9
sub ecx, 0x4079c6d0
xor edi, edi
add edi, eax
mov esi, 0xda5118ae
sub esi, 0xda0dd4ae
add esi, dword [ebp - 0x24]
mov ebx, 0x9f2b2c
xor dword [ebp - 0xc], 0xa093ff96
mov edx, dword [esi]
xor dword [ebp - 0x18], 0x336e2023
add edx, ebx
sub dword [ebp - 0x10], esi
mov dword [edi], edx
add dword [ebp - 0x20], 0x2a74efb
add edi, 4
add esi, 0x258876cb
sub esi, 0x258876c7
loop 0x40e632
add eax, 0x13b77
mov ebx, eax
add eax, 5
mov ecx, 0x9ad38216
sub ecx, 0x9a938216
add ecx, dword [ebp - 0x24]
call ebx
leave
ret
Function at 0x70015de1
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x70054a46
call fcn.70046968
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov dword [ebp - 0x10], esi
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi], 0x700015dc
mov dword [ebp - 4], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
lea eax, [esi + 0x38]
mov dword [eax], ebx
lea edi, [esi + 0x3c]
mov dword [edi], ebx
fld qword [0x70001490]
fldln2
or dword [esi + 0x24], 0xffffffff
fxch st(1)
push ebx
push eax
mov byte [ebp - 4], 3
mov dword [esi + 0x14], ebx
fyl2x
mov byte [esi + 0x20], bl
fstp qword [esi + 0x18]
call fcn.7000d36c
push ebx
push edi
call fcn.7000d36c
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x700216bf
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov eax, 0x7005544c
call fcn.70046968
push ecx
push esi
push edi
mov edi, ecx
lea esi, [edi + 0x30]
push esi
lea ecx, [edi + 0x18]
mov dword [edi], 0x700019dc
call fcn.7000d36c
mov ecx, dword [ebp - 0xc]
xor eax, eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x7002181c
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x7005541b
call fcn.70046968
push ecx
mov eax, ecx
xor ecx, ecx
mov dword [eax], 0x700019c4
mov dword [eax + 0x24], ecx
mov dword [eax + 0x28], ecx
mov dword [eax + 0x2c], ecx
mov dword [eax + 0x3c], ecx
mov dword [eax + 0x40], ecx
mov dword [eax + 0x44], ecx
mov edx, dword [ebp + 0xc]
mov dword [eax + 0x54], ecx
mov dword [eax + 0x58], ecx
mov dword [eax + 0x5c], ecx
mov dword [eax + 0x60], ecx
mov dword [eax + 0x64], ecx
mov dword [eax + 0x68], ecx
or dword [eax + 0xc], 0xffffffff
or dword [eax + 0x30], 0xffffffff
mov dword [eax + 0x4c], edx
mov edx, dword [ebp + 8]
mov dword [eax + 8], ecx
mov dword [eax + 0x20], ecx
mov dword [eax + 0x10], ecx
mov dword [eax + 0x34], ecx
mov ecx, dword [ebp - 0xc]
mov dword [eax + 0x48], edx
dec eax

Function at 0x70021cde
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov eax, 0x7005544c
call fcn.70046968
push ecx
push esi
push edi
mov edi, ecx
lea esi, [edi + 0x30]
push esi
lea ecx, [edi + 0x18]
mov dword [edi], 0x700018f8
call fcn.7000d36c
mov ecx, dword [ebp - 0xc]
xor eax, eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x7002cdc1
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x70055d35
call fcn.70046968
push ecx
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [esi + 8]
mov dword [ebp - 0x10], esi
call fcn.7001c4da
xor edi, edi
lea ebx, [esi + 0x24]
mov dword [ebp - 4], edi
mov dword [ebx], edi
mov dword [esi + 0x50], edi
mov dword [esi + 0x5c], edi
mov dword [esi + 0x60], edi
mov dword [esi + 0x64], edi
lea ecx, [esi + 0x6c]
mov byte [ebp - 4], 3
call fcn.7001e4c6
lea eax, [esi + 0x84]
mov dword [eax + 4], edi
mov dword [eax + 8], edi
mov dword [eax + 0xc], edi
lea eax, [esi + 0x94]
mov dword [eax + 4], edi
mov dword [eax + 8], edi
mov dword [eax + 0xc], edi
push edi
push ebx
mov byte [ebp - 4], 6
call fcn.7000d36c
or dword [esi + 0x68], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x78], edi
mov dword [esi + 0x7c], edi
mov dword [esi + 0xa4], edi
mov dword [esi + 0xa8], edi
mov dword [esi + 0xac], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x44], edi
mov dword [esi + 0x48], edi
mov dword [esi + 0x80], edi
mov dword [esi + 0x4c], edi
mov dword [esi + 0x54], edi
pop edi
mov dword [esi + 0x2c], 3
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x7002fc42
Capabilities:
Get common file path

Disassembly:
mov eax, 0x70055e97
call fcn.70046968
push ecx
push esi
push edi
push dword [ebp + 0xc]
mov esi, ecx
push dword [ebp + 8]
mov dword [ebp - 0x10], esi
call fcn.70022245
fld dword [ebp + 0x14]
push ecx
fstp dword [esp]
push dword [ebp + 0x10]
xor edi, edi
mov ecx, esi
mov dword [ebp - 4], edi
mov dword [esi], 0x70001f14
call fcn.7000d36c
mov ecx, dword [esi + 8]
cmp ecx, edi
mov dword [esi + 4], eax
je 0x7002fc87
sub dword [ecx], eax
push ebx
lea eax, [esi + 0x60]
push eax
mov ebx, 0x104
push ebx
call dword [sym.imp.kernel32.dll_GetTempPathW]
cmp eax, ebx
jb 0x7002fca6
push 0x8000ffff
call fcn.70054690
lea ebx, [esi + 0x60]
push ebx
push edi
push 0x70001efc
push ebx
call dword [sym.imp.kernel32.dll_GetTempFileNameW]
test eax, eax
jne 0x7002fcc7
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
call fcn.70054690
push edi
push edi
push 2
push edi
push edi
push 0xc0000000
push ebx
mov dword [esi + 0x5c], edi
call dword [sym.imp.kernel32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [esi + 0x5c], eax
jne 0x7002fcf0
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
call fcn.70054690
mov ebx, dword [sym.imp.kernel32.dll_SetFilePointer]
push edi
push edi
push dword [esi + 4]
push dword [esi + 0x5c]
call ebx
cmp eax, 0xffffffff
jne 0x7002fd11
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
call fcn.70054690
push dword [esi + 0x5c]
call dword [sym.imp.kernel32.dll_SetEndOfFile]
test eax, eax
jne 0x7002fd2a
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
call fcn.70054690
push edi
push edi
push edi
push dword [esi + 0x5c]
call ebx
cmp eax, 0xffffffff
pop ebx
jne 0x7002fd44
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
call fcn.70054690
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x58], edi
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret 0x10

Function at 0x7002fdc9
Capabilities:
Delete file

Disassembly:
mov edi, edi
push esi
mov esi, ecx
mov eax, dword [esi + 0x5c]
test eax, eax
mov dword [esi], 0x70001f14
je 0x7002fdec
push eax
call dword [sym.imp.kernel32.dll_CloseHandle]
lea eax, [esi + 0x60]
push eax
call dword [sym.imp.kernel32.dll_DeleteFileW]
mov ecx, esi
pop esi
jmp fcn.70020a63

Function at 0x7002fe46
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov eax, 0x70055ed2
call fcn.70046968
push ecx
mov eax, ecx
mov dword [eax], 0x70001f34
xor edx, edx
lea ecx, [eax + 0x34]
mov dword [eax + 0x1c], 0x700012e8
mov dword [eax + 0x20], ecx
mov dword [eax + 0x28], edx
mov dword [eax + 0x24], edx
mov byte [eax + 0x2c], 1
mov dword [eax + 0x30], edx
mov dword [ecx + 4], edx
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], edx
mov ecx, dword [ebp - 0xc]
mov dword [eax + 0x18], edx
mov dword fs:[0], ecx
leave
ret
Function at 0x70048092
Capabilities:
Terminate process

Disassembly:
push 8
push 0x70003448
call fcn.700476b4
push 8
call fcn.7000d36c
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x70060920], esi
jne 0x700480c6
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.kernel32.dll_TerminateProcess]
mov dword [0x7006091c], esi
mov al, byte [ebp + 0x10]
mov byte [0x70060918], al
cmp dword [ebp + 0xc], edi
jne 0x70048110
cmp dword [0x70062128], edi
je 0x70048100
mov eax, dword [0x70062124]
sub eax, 4
mov dword [0x70062124], eax
cmp eax, dword [0x70062128]
jb 0x70048100
mov eax, dword [eax]
cmp eax, edi
je 0x700480e1
call eax
jmp 0x700480e1
push 0x7005d080
mov eax, 0x7005d078
call fcn.70048006
pop ecx
push 0x7005d08c
mov eax, 0x7005d084
call fcn.70048006
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x70048141
cmp dword [ebp + 0x10], edi
jne 0x7004814f
mov dword [0x70060920], esi
push dword [ebp + 8]
call fcn.70047fb5
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x7004814e
push 8
call fcn.7000d36c
pop ecx
ret
call fcn.700476ef
ret

Function at 0x70048ee9
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x7005f474]
mov ecx, dword [ebp + 0x98]
push ebx
push esi
mov dword [ebp + 0x8c], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x7005f558]
je 0x70048f1e
inc eax
cmp eax, 0x13
jb 0x70048f0f
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x7005f558]
jne 0x70049041
mov eax, dword [0x700608c8]
cmp eax, 1
je 0x7004901c
cmp eax, edx
jne 0x70048f4e
cmp dword [0x700608cc], 1
je 0x7004901c
cmp ecx, 0xfc
je 0x70049041
push 0x104
lea eax, [ebp - 0x7c]
push eax
push edx
mov byte [ebp + 0x88], dl
call dword [sym.imp.kernel32.dll_GetModuleFileNameA]
test eax, eax
jne 0x70048f84
lea eax, [ebp - 0x7c]
push 0x700038cc
push eax
call fcn.7004b070
pop ecx
pop ecx
lea edi, [ebp - 0x7c]
mov eax, edi
push eax
call fcn.7004b170
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x70048fb8
mov eax, edi
push eax
call fcn.7004b170
mov edi, eax
lea eax, [ebp - 0x7c]
sub eax, 0x3b
push 3
add edi, eax
push 0x700038c8
push edi
call fcn.7004fd70
add esp, 0x10
push edi
call fcn.7004b170
push dword [esi + 0x7005f55c]
mov ebx, eax
call fcn.7004b170
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.70047670
mov ebx, esp
push 0x700038ac
push ebx
call fcn.7004b070
push edi
push ebx
call fcn.7004b080
push 0x700038a8
push ebx
call fcn.7004b080
push dword [esi + 0x7005f55c]
push ebx
call fcn.7004b080
push 0x12010
push 0x70003880
push ebx
call fcn.7000d36c
add esp, 0x2c
jmp 0x70049041
push edx
lea eax, [ebp - 0x80]
push eax
lea esi, [esi + 0x7005f55c]
push dword [esi]
call fcn.7004b170
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.kernel32.dll_GetStdHandle]
push eax
call dword [sym.imp.kernel32.dll_WriteFile]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x8c]
call fcn.7004719b
pop edi
pop esi
pop ebx
add ebp, 0x90
leave
ret
Function at 0x7005088c
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a4]
sub esp, 0x424
mov eax, dword [0x7005f474]
xor ecx, ecx
cmp dword [ebp + 0x3b4], ecx
push edi
mov edi, dword [ebp + 0x3b0]
mov dword [ebp + 0x3a0], eax
mov dword [ebp - 0x7c], edi
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0x78], ecx
jne 0x700508c6
xor eax, eax
jmp 0x70050a30
mov eax, dword [ebp + 0x3ac]
push ebx
mov ebx, dword [ebp + 0x3ac]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x70062020]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x70050904
push 2
push ecx
push ecx
push dword [ebp + 0x3ac]
call fcn.7000d36c
add esp, 0x10
xor ecx, ecx
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x7005099e
cmp dword [ebp + 0x3b4], ecx
mov dword [ebp - 0x70], edi
mov dword [ebp - 0x68], ecx
jbe 0x70050a01
jmp 0x70050928
xor ecx, ecx
mov dword [ebp - 0x6c], ecx
mov ecx, dword [ebp - 0x70]
sub ecx, dword [ebp - 0x7c]
lea eax, [ebp - 0x64]
cmp ecx, dword [ebp + 0x3b4]
jae 0x70050963
mov edx, dword [ebp - 0x70]
inc dword [ebp - 0x70]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x70050954
inc dword [ebp - 0x78]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0x6c]
mov byte [eax], dl
inc eax
inc dword [ebp - 0x6c]
cmp dword [ebp - 0x6c], 0x400
jl 0x70050934
mov edi, eax
lea eax, [ebp - 0x64]
sub edi, eax
push 0
lea eax, [ebp - 0x80]
push eax
push edi
lea eax, [ebp - 0x64]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.kernel32.dll_WriteFile]
test eax, eax
je 0x700509c2
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x74], eax
cmp eax, edi
jl 0x700509cb
mov eax, dword [ebp - 0x70]
sub eax, dword [ebp - 0x7c]
cmp eax, dword [ebp + 0x3b4]
jb 0x70050926
jmp 0x700509cb
push ecx
lea ecx, [ebp - 0x80]
push ecx
push dword [ebp + 0x3b4]
push edi
push dword [eax]
call dword [sym.imp.kernel32.dll_WriteFile]
test eax, eax
je 0x700509c2
mov eax, dword [ebp - 0x80]
and dword [ebp - 0x68], 0
mov dword [ebp - 0x74], eax
jmp 0x700509cb
call dword [sym.imp.kernel32.dll_GetLastError]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x74]
test eax, eax
jne 0x70050a2b
cmp dword [ebp - 0x68], eax
je 0x700509fe
push 5
pop esi
cmp dword [ebp - 0x68], esi
jne 0x700509f3
call fcn.7004bd57
mov dword [eax], 9
call fcn.7004bd65
mov dword [eax], esi
jmp 0x70050a26
push dword [ebp - 0x68]
call fcn.7004bd73
pop ecx
jmp 0x70050a26
mov edi, dword [ebp - 0x7c]
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x70050a13
cmp byte [edi], 0x1a
jne 0x70050a13
xor eax, eax
jmp 0x70050a2e
call fcn.7004bd57
mov dword [eax], 0x1c
call fcn.7004bd65
and dword [eax], 0
or eax, 0xffffffff
jmp 0x70050a2e
sub eax, dword [ebp - 0x78]
pop esi
pop ebx
mov ecx, dword [ebp + 0x3a0]
pop edi
call fcn.7004719b
add ebp, 0x3a4
leave
ret
Function at 0x40b080
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x474e5b
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.00467576
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x40b102
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.00464f90
mov eax, dword [eax]
push 0x490210
push eax
call fcn.00457134
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.00467801
test bl, bl
je 0x40b102
push 0x490210
lea ecx, [esp + 0xc]
call fcn.00467bdd
push 0x493d8c
lea ecx, [esp + 0xc]
call fcn.00467bdd
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 0x40b13e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.00467801
jmp 0x40b209
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 0x40b1c2
lea edx, [esp + 0x7c]
push 0x493d88
push edx
call fcn.00457134
add esp, 8
test eax, eax
je 0x40b1c2
lea eax, [esp + 0x7c]
push 0x493d84
push eax
call fcn.00457134
add esp, 8
test eax, eax
je 0x40b1c2
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 0x40b152
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.00467801
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 0x40ba00
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 0x40ba62
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 0x40ba70
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x474edb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x49af8c]
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 0x40bba8
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x40bad6
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00467801
xor eax, eax
jmp 0x40bc1f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.0046798a
push esi
lea ecx, [esp + 0xc]
call fcn.00467c19
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 0x40bbfd
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push closesocket
call fcn.0040ba00
test eax, eax
jne 0x40bbfd
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.0040ba00
test eax, eax
jne 0x40bbfd
lea eax, [esp + 0x14]
push 0x493da0
push eax
call fcn.00458210
mov esi, eax
add esp, 8
test esi, esi
jne 0x40bbdc
lea ecx, [esp + 0x14]
push 0x493d9c
push ecx
call fcn.00458190
mov esi, eax
add esp, 8
test esi, esi
jne 0x40bbdc
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x40bbdf
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.0046793a
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x40baee
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00467801
xor eax, eax
jmp 0x40bc1f
mov byte [esi], 0
push 0x493d98
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.00467801
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