joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46320b
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
cmp dword [ebp + 0x10], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edx, ebx
je 0x4633e1
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x47e8c0]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x4633e1
test cl, 0x48
je 0x463276
cmp byte [eax + 5], 0xa
je 0x463276
mov eax, dword [edi]
mov al, byte [eax + esi + 5]
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea edx, [ebx + 1]
mov dword [ebp - 8], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push edx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4632c8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x4632b0
call fcn.00457015
mov dword [eax], 9
call fcn.0045701e
mov dword [eax], esi
jmp 0x4632c0
cmp eax, 0x6d
je 0x4633e1
push eax
call fcn.00457027
pop ecx
or eax, 0xffffffff
jmp 0x4633e3
mov eax, dword [ebp - 0xc]
mov ecx, dword [edi]
add dword [ebp - 8], eax
test byte [ecx + esi + 4], 0x80
je 0x4633dc
test eax, eax
je 0x4632ef
cmp byte [ebx], 0xa
jne 0x4632ef
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x4632f8
mov eax, dword [edi]
lea eax, [eax + esi + 4]
and byte [eax], 0xfb
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
add ecx, eax
cmp eax, ecx
mov dword [ebp + 0x10], eax
mov dword [ebp - 8], ecx
jae 0x4633d6
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x4633c6
cmp al, 0xd
je 0x46332a
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x4633b8
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x463344
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x46333f
add dword [ebp + 0x10], 2
jmp 0x463398
mov dword [ebp + 0x10], eax
jmp 0x4633b4
inc dword [ebp + 0x10]
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x46336c
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4633b4
cmp dword [ebp - 0xc], 0
je 0x4633b4
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x46338d
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x463398
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x4633b7
cmp ebx, dword [ebp + 0xc]
jne 0x46339d
cmp byte [ebp - 1], 0xa
jne 0x46339d
mov byte [ebx], 0xa
jmp 0x4633b7
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004618fe
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4633b8
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x46330e
jmp 0x4633d6
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x4633d6
lea esi, [eax + esi + 4]
or byte [esi], 2
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x4633e3
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4640e9
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
cmp eax, ebx
push edi
mov dword [ebp - 0x10], ebx
jne 0x464102
or eax, 0xffffffff
jmp 0x464163
push esi
mov esi, dword [eax]
cmp esi, ebx
mov dword [ebp - 8], esi
je 0x46415f
push 0x3d
push esi
call fcn.00464356
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
je 0x46415f
cmp esi, eax
je 0x46415f
xor ecx, ecx
cmp byte [eax + 1], cl
mov eax, dword [0x47e564]
sete cl
cmp eax, dword [0x47e568]
mov dword [ebp - 4], ecx
jne 0x464145
mov edi, eax
call fcn.00464088
mov dword [0x47e564], eax
cmp eax, ebx
jne 0x46419e
cmp dword [ebp + 0xc], ebx
je 0x464167
cmp dword [0x47e56c], ebx
je 0x464167
call fcn.00462f0e
test eax, eax
je 0x46419e
or eax, 0xffffffff
pop esi
pop edi
pop ebx
leave
ret
cmp dword [ebp - 4], ebx
je 0x464170
xor eax, eax
jmp 0x464162
push 4
call fcn.0045429c
cmp eax, ebx
pop ecx
mov dword [0x47e564], eax
je 0x46415f
mov dword [eax], ebx
cmp dword [0x47e56c], ebx
jne 0x46419e
push 4
call fcn.0045429c
cmp eax, ebx
pop ecx
mov dword [0x47e56c], eax
je 0x46415f
mov dword [eax], ebx
mov edi, dword [ebp - 0xc]
mov ebx, dword [0x47e564]
sub edi, esi
push esi
call fcn.0046403b
mov edi, eax
test edi, edi
pop ecx
jl 0x464205
cmp dword [ebx], 0
je 0x464205
lea esi, [ebx + edi*4]
push dword [esi]
call fcn.00453e4d
xor eax, eax
cmp dword [ebp - 4], eax
pop ecx
jne 0x4641e5
mov ecx, dword [ebp - 8]
mov dword [esi], ecx
mov ecx, dword [ebp + 8]
mov esi, dword [ebp - 8]
mov dword [ecx], eax
jmp 0x464246
mov ecx, dword [esi + 4]
inc edi
mov dword [esi], ecx
lea esi, [ebx + edi*4]
cmp dword [esi], eax
jne 0x4641dc
mov eax, edi
shl eax, 2
push eax
push dword [0x47e564]
call fcn.00458a75
test eax, eax
mov esi, dword [ebp - 8]
pop ecx
pop ecx
je 0x464246
jmp 0x464241
cmp dword [ebp - 4], 0
jne 0x4642ad
test edi, edi
jge 0x464215
neg edi
lea eax, [edi*4 + 8]
push eax
push dword [0x47e564]
call fcn.00458a75
test eax, eax
pop ecx
pop ecx
je 0x46415f
lea ecx, [eax + edi*4]
and dword [ecx + 4], 0
mov dword [ecx], esi
mov ecx, dword [ebp + 8]
and dword [ecx], 0
mov dword [0x47e564], eax
cmp dword [ebp + 0xc], 0
je 0x464298
push esi
call fcn.00454ef0
inc eax
inc eax
push eax
call fcn.0045429c
mov edi, eax
test edi, edi
pop ecx
pop ecx
je 0x464298
push esi
push edi
call fcn.00459080
mov eax, edi
sub eax, esi
add eax, dword [ebp - 0xc]
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
mov byte [eax], 0
inc eax
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
jne 0x464291
or dword [ebp - 0x10], 0xffffffff
push edi
call fcn.00453e4d
pop ecx
cmp dword [ebp - 4], 0
je 0x4642a5
push esi
call fcn.00453e4d
pop ecx
mov eax, dword [ebp - 0x10]
jmp 0x464162
push esi
call fcn.00453e4d
mov eax, dword [ebp + 8]
and dword [eax], 0
pop ecx
jmp 0x46416c
Function at 0x403dc5
Capabilities:
Delete directory
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x844
cmp dword [0x55e900], 0x594
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], eax
jne 0x403e01
push 0x4036ac
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
push 0x4036cc
call dword [sym.imp.KERNEL32.dll_GlobalAddAtomA]
mov eax, dword [0x4ae428]
mov dword [ebp - 0x20], eax
mov eax, dword [0x4ae42c]
xor esi, esi
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 8]
mov dword [ebp - 8], esi
call fcn.00403dbe
mov eax, dword [0x4ae430]
mov ebx, dword [ebp - 8]
mov dword [ebp - 0x28], eax
mov eax, dword [0x4ae434]
add ebx, 0x23f
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x18], 0x20
jmp 0x403e43
mov edi, dword [ebp - 0x10]
mov dword [ebp - 8], 2
add dword [ebp - 8], 3
mov eax, edi
shl eax, 4
cmp dword [0x55e900], 0xc
mov dword [ebp - 4], eax
jne 0x403e96
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x444]
push eax
push esi
push 0x4036ec
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SearchPathA]
push esi
call dword [sym.imp.KERNEL32.dll_DebugActiveProcess]
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
lea eax, [ebp - 0x30]
push eax
push esi
lea eax, [ebp - 0x44]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadConsoleInputW]
mov eax, dword [ebp - 0x28]
add dword [ebp - 4], eax
mov eax, dword [0x55e900]
cmp eax, 0xfa9
jne 0x403eb2
mov dword [0x55de9c], 0xedeb2e40
cmp eax, 0x3eb
jne 0x403ebf
mov dword [0x55d84c], esi
mov ecx, dword [ebp - 8]
mov edx, edi
shr edx, cl
lea eax, [ebx + edi]
mov dword [ebp - 0x14], eax
mov dword [0x55de98], 0xf4ea3dee
add edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x14]
xor dword [ebp - 4], eax
xor edx, dword [ebp - 4]
cmp dword [0x55e900], 0x213
mov dword [ebp - 0x14], edx
jne 0x403efc
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetGeoInfoW]
mov eax, dword [ebp - 0x14]
add dword [ebp - 0xc], 0x64
sub dword [ebp - 0xc], eax
sub dword [ebp - 0xc], 0x64
cmp dword [0x55e900], 0xc
jne 0x403f39
push esi
lea eax, [ebp - 0x444]
push eax
push 0x403710
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeMountPointA]
push esi
lea eax, [ebp - 0x844]
push eax
push 0x40376c
call dword [sym.imp.KERNEL32.dll_GetVolumePathNameA]
mov eax, dword [ebp - 0xc]
shl eax, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x20]
add dword [ebp - 4], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
mov edi, eax
shr edi, cl
lea edx, [ebx + eax]
xor dword [ebp - 4], edx
add edi, dword [ebp - 0x1c]
cmp dword [0x55e900], 0x121
jne 0x403f74
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SetCalendarInfoA]
mov eax, dword [ebp - 0xc]
xor dword [ebp - 4], edi
mov ecx, dword [ebp - 4]
sub dword [ebp - 0x10], ecx
add ebx, 0x61c88647
dec dword [ebp - 0x18]
jne 0x403e40
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
pop edi
pop esi
mov dword [ecx], edx
mov dword [ecx + 4], eax
pop ebx
leave
ret 4
Function at 0x403f9e
Capabilities:
Create pipe
Get common file path
Get system information on windows
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x55e900]
mov ecx, dword [0x55d850]
sub esp, 0x84c
push ebx
push esi
shr eax, 3
xor esi, esi
push edi
cmp eax, esi
jbe 0x404086
mov edi, ecx
mov ebx, eax
cmp dword [0x55e900], 0x959
jne 0x404076
lea eax, [ebp - 0xc]
push eax
push esi
lea eax, [ebp - 0x20]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadConsoleInputA]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateJobObjectW]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_EnumDateFormatsExW]
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push 0x403790
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
push 0x4036f4
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SetConsoleWindowInfo]
push esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push 0x4037e0
push esi
push esi
call dword [sym.imp.KERNEL32.dll_OpenWaitableTimerA]
push esi
push esi
push esi
push esi
push esi
push esi
push 0x4037ec
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push esi
lea eax, [ebp - 0x848]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
lea eax, [ebp - 8]
push eax
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_InitializeSListHead]
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push edi
call fcn.00403dc5
add edi, 8
dec ebx
jne 0x403fc6
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40415a
Capabilities:
Get common file path
Get hostname

Disassembly:
mov eax, 0x4abbd4
call fcn.004abad8
mov eax, 0x1c30
call fcn.004102f0
push ebx
push esi
xor esi, esi
cmp dword [0x55e900], 0x5b1
push edi
jne 0x4041dd
push esi
call dword [sym.imp.KERNEL32.dll_SetLocalTime]
lea eax, [ebp - 0x3c]
call fcn.00404480
push esi
mov dword [ebp - 4], esi
call fcn.00405b4a
pop ecx
call fcn.00404fb3
push 0x403848
lea ecx, [ebp - 0x20]
call fcn.00403c50
lea ecx, [ebp - 0x20]
call fcn.00403c6c
push esi
push esi
call fcn.004056c0
push esi
call fcn.00405691
add esp, 0xc
call fcn.00404fb8
push esi
call fcn.00405bc6
mov dword [esp], esi
call fcn.00403d9f
fstp st(0)
push esi
call fcn.00405e76
add dword [0x55e900], 0x1134b
push dword [0x55e900]
push esi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [0x55d850], eax
call fcn.004040a5
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
call ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp edi, 0x206d47
jg 0x404226
inc edi
cmp edi, 0x4f6a4
jl 0x404206
xor edi, edi
cmp dword [0x55e900], esi
jbe 0x404261
cmp dword [0x55e900], 0xa8
mov eax, dword [0x55e904]
mov al, byte [eax + edi + 0x1134b]
mov ecx, dword [0x55d850]
mov byte [ecx + edi], al
jne 0x404258
push esi
call dword [sym.imp.KERNEL32.dll_SetComputerNameW]
inc edi
cmp edi, dword [0x55e900]
jb 0x404230
xor edi, edi
mov eax, dword [0x55e900]
add eax, edi
cmp eax, 0xe
jne 0x4042a6
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_AddConsoleAliasA]
push esi
lea eax, [ebp - 0x103c]
push eax
push esi
push 0x403858
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetNumberFormatW]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push esi
push esi
lea eax, [ebp - 0x43c]
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesA]
inc edi
cmp edi, 0x39621
jl 0x404263
call fcn.00403f9e
xor edi, edi
call ebx
cmp edi, 0x26
jne 0x4042c2
call fcn.0040408b
inc edi
cmp edi, 0x6753f
jl 0x4042b6
push 0x7b
pop edi
cmp dword [0x55e900], 0x86
jne 0x40430f
push esi
push esi
call dword [sym.imp.KERNEL32.dll_EndUpdateResourceA]
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x143c]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
push esi
lea eax, [ebp - 0x83c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryA]
push esi
lea eax, [ebp - 0x1c3c]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
cmp dword [0x55e900], 0xf
jne 0x40431e
call dword [sym.imp.KERNEL32.dll_GetConsoleWindow]
dec edi
jne 0x4042ce
push 0x403878
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x40433b
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x80c
push ebx
push esi
push edi
mov edi, 0x5d744c
xor esi, esi
push esi
push esi
push esi
call dword [sym.imp.USER32.dll_CharToOemBuffA]
call dword [sym.imp.USER32.dll_GetMessageExtraInfo]
push esi
push esi
push esi
push esi
call dword [sym.imp.GDI32.dll_GetCharWidth32A]
lea eax, [esp + 0xc]
push eax
push esi
push esi
push esi
call dword [sym.imp.GDI32.dll_GetCharABCWidthsFloatW]
dec edi
jne 0x404351
xor ebx, ebx
mov edi, 0x2b259d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetNamedPipeInfo]
cmp ebx, edi
jle 0x4043a1
cmp dword [esp + 0x10], 0x785074d5
jne 0x4043aa
inc ebx
cmp ebx, 0x1c1b
jl 0x404382
cmp dword [0x55e900], 0x400
jne 0x4043f8
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasExesLengthW]
push esi
push esi
call fcn.00405637
mov eax, esp
mov dword [eax], esi
mov dword [eax + 4], esi
call fcn.00403d59
fstp st(0)
push ecx
push ecx
mov eax, esp
mov dword [eax], esi
mov dword [eax + 4], esi
call fcn.00403d7c
fstp st(0)
push esi
call fcn.00405ac3
pop ecx
push esi
call fcn.00405913
pop ecx
push esi
push esi
call fcn.0040552b
pop ecx
pop ecx
mov eax, dword [0x4ae7fc]
mov dword [0x55e900], eax
mov eax, dword [0x4ae7d0]
mov dword [0x55e904], eax
call fcn.0040415a
xor ebx, ebx
push 0x403898
call dword [sym.imp.KERNEL32.dll_GlobalFindAtomW]
cmp ebx, edi
jle 0x40442c
cmp dword [esp + 0x10], 0x785074d5
jne 0x404435
inc ebx
cmp ebx, 0x11915
jl 0x404413
mov edi, 0x3078f
cmp dword [0x55e900], 0x51f
jne 0x404466
push 0x4038a0
push esi
lea eax, [esp + 0x20]
push eax
push 0x4038e0
push 0x4038f8
push 0x403918
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
dec edi
jne 0x40443a
mov eax, dword [0x55d850]
mov dword [0x55de94], eax
call eax
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x40660b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4ad178]
jne 0x406615
repz ret
jmp fcn.0040bb3c
Function at 0x40be3d
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.0040a2a7
and dword [ebp - 4], 0
cmp dword [0x4af3f0], 0
mov ebx, eax
jne 0x40beee
push 0x4024f0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40bf9f
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4024e4
push edi
call esi
test eax, eax
je 0x40bf9f
push eax
call fcn.0040a235
mov dword [esp], 0x4024d4
push edi
mov dword [0x4af3f0], eax
call esi
push eax
call fcn.0040a235
mov dword [esp], 0x4024c0
push edi
mov dword [0x4af3f4], eax
call esi
push eax
call fcn.0040a235
mov dword [esp], 0x4024a4
push edi
mov dword [0x4af3f8], eax
call esi
push eax
call fcn.0040a235
pop ecx
mov dword [0x4af400], eax
test eax, eax
je 0x40beee
push 0x40248c
push edi
call esi
push eax
call fcn.0040a235
pop ecx
mov dword [0x4af3fc], eax
mov eax, dword [0x4af3fc]
cmp eax, ebx
je 0x40bf46
cmp dword [0x4af400], ebx
je 0x40bf46
push eax
call fcn.0040a2b0
push dword [0x4af400]
mov esi, eax
call fcn.0040a2b0
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40bf46
test edi, edi
je 0x40bf46
call esi
test eax, eax
je 0x40bf3d
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40bf3d
test byte [ebp - 0xc], 1
jne 0x40bf46
or dword [ebp + 0x10], 0x200000
jmp 0x40bf7f
mov eax, dword [0x4af3f4]
cmp eax, ebx
je 0x40bf7f
push eax
call fcn.0040a2b0
pop ecx
test eax, eax
je 0x40bf7f
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40bf7f
mov eax, dword [0x4af3f8]
cmp eax, ebx
je 0x40bf7f
push eax
call fcn.0040a2b0
pop ecx
test eax, eax
je 0x40bf7f
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4af3f0]
call fcn.0040a2b0
pop ecx
test eax, eax
je 0x40bf9f
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40bfa1
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4144a5
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x50
push ebp
lea eax, [esp + 0x28]
push edi
push eax
call fcn.00414655
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 0x4145a3
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 0x414546
mov eax, dword [ebx - 0x14]
mov ecx, dword [ebx - 0x1c]
push 0x4000
push eax
push ecx
call dword [esp + 0x4c]
jmp 0x414589
lea edx, [edx + ecx*2]
test eax, 0x4000000
lea ecx, [esi + edx*2]
mov esi, dword [esp + ecx*4 + 0x14]
je 0x41455d
or esi, 0x200
mov edx, dword [ebx - 0x14]
mov ecx, edx
test ecx, ecx
jne 0x414578
test al, 0x40
je 0x41456f
mov ecx, dword [edi + 0x20]
jmp 0x414576
test al, 0x80
je 0x414589
mov ecx, dword [edi + 0x24]
test ecx, ecx
jbe 0x414589
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 0x414515
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x50
ret
Function at 0x4418a0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x4b0b9b
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.004a2f89
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x441922
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.004a0740
mov eax, dword [eax]
push 0x645250
push eax
call fcn.00492844
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.004a3214
test bl, bl
je 0x441922
push 0x645250
lea ecx, [esp + 0xc]
call fcn.004a35f0
push 0x648dcc
lea ecx, [esp + 0xc]
call fcn.004a35f0
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 0x44195e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.004a3214
jmp 0x441a29
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 0x4419e2
lea edx, [esp + 0x7c]
push 0x648dc8
push edx
call fcn.00492844
add esp, 8
test eax, eax
je 0x4419e2
lea eax, [esp + 0x7c]
push 0x648dc4
push eax
call fcn.00492844
add esp, 8
test eax, eax
je 0x4419e2
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 0x441972
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.004a3214
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 0x442220
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 0x442282
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 0x442290
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x4b0c1b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x650090]
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 0x4423c8
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x4422f6
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.004a3214
xor eax, eax
jmp 0x44243f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.004a339d
push esi
lea ecx, [esp + 0xc]
call fcn.004a362c
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 0x44241d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push 0x80000000
call fcn.00442220
test eax, eax
jne 0x44241d
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 0x80000000
mov ecx, edi
call fcn.00442220
test eax, eax
jne 0x44241d
lea eax, [esp + 0x14]
push str.__1_
push eax
call fcn.00493920
mov esi, eax
add esp, 8
test esi, esi
jne 0x4423fc
lea ecx, [esp + 0x14]
push 0x648ddc
push ecx
call fcn.004938a0
mov esi, eax
add esp, 8
test esi, esi
jne 0x4423fc
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x4423ff
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.004a334d
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x44230e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.004a3214
xor eax, eax
jmp 0x44243f
mov byte [esi], 0
push 0x648dd8
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.004a3214
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