joyce8/EMBER2024-capa huggingface dataset:
Function at 0x415c0b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4228b4]
jne 0x415c15
repz ret
jmp fcn.00418d2a

Function at 0x416008
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.004135ce
and dword [ebp - 4], 0
cmp dword [0x423e3c], 0
mov ebx, eax
jne 0x4160b9
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x41616a
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x41616a
push eax
call fcn.0041355c
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x423e3c], eax
call esi
push eax
call fcn.0041355c
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x423e40], eax
call esi
push eax
call fcn.0041355c
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x423e44], eax
call esi
push eax
call fcn.0041355c
pop ecx
mov dword [0x423e4c], eax
test eax, eax
je 0x4160b9
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0041355c
pop ecx
mov dword [0x423e48], eax
mov eax, dword [0x423e48]
cmp eax, ebx
je 0x416111
cmp dword [0x423e4c], ebx
je 0x416111
push eax
call fcn.004135d7
push dword [0x423e4c]
mov esi, eax
call fcn.004135d7
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x416111
test edi, edi
je 0x416111
call esi
test eax, eax
je 0x416108
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x416108
test byte [ebp - 0xc], 1
jne 0x416111
or dword [ebp + 0x10], 0x200000
jmp 0x41614a
mov eax, dword [0x423e40]
cmp eax, ebx
je 0x41614a
push eax
call fcn.004135d7
pop ecx
test eax, eax
je 0x41614a
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x41614a
mov eax, dword [0x423e44]
cmp eax, ebx
je 0x41614a
push eax
call fcn.004135d7
pop ecx
test eax, eax
je 0x41614a
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x423e3c]
call fcn.004135d7
pop ecx
test eax, eax
je 0x41616a
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x41616c
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x401000
Capabilities:
Create process on windows

Disassembly:
mov edx, dword [esp + 0xc]
mov eax, edx
push esi
lea esi, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x401010
push 1
push 0
sub eax, esi
mov esi, dword [sym.imp.SHELL32.dll_ShellExecuteA]
push 0
je 0x40102c
push edx
jmp 0x401031
push str.Autorun_autorun.hta
push str.open
push 0
call esi
cmp eax, 0x20
jg 0x40105c
push 1
push 0
push 0
push 0x4020d8
push str.explore
push 0
call esi
mov eax, 1
pop esi
ret 0x10
xor eax, eax
pop esi
ret 0x10
Function at 0x4052e5
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
mov dword [0x4224a0], 0x44
push eax
xor eax, eax
push 0x4224a0
push eax
push eax
push eax
push eax
push eax
push eax
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x405320
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4

Function at 0x4053aa
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
push esi
push edi
mov edi, dword [ebp + 8]
push edi
call fcn.00405659
test byte [ebp + 0xc], 8
mov dword [ebp - 8], eax
je 0x4053de
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x423f28], eax
jmp 0x405572
push ebx
mov ebx, dword [ebp + 0xc]
and ebx, 1
mov dword [ebp - 4], ebx
je 0x4053fc
test eax, eax
je 0x40551d
test byte [ebp + 0xc], 2
je 0x40551d
mov esi, 0x4214a0
push edi
push esi
call fcn.00405a85
test ebx, ebx
je 0x405419
push 0x409340
push esi
call sub.KERNEL32.dll_lstrcatA
jmp 0x40541f
push edi
call fcn.004055bf
cmp byte [edi], 0
jne 0x40542d
cmp byte [0x4214a0], 0x5c
jne 0x405438
push 0x40900c
push edi
call sub.KERNEL32.dll_lstrcatA
push edi
call sub.KERNEL32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x148]
push eax
push esi
add ebx, edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
je 0x405513
lea eax, [ebp - 0x11c]
push 0x3f
push eax
lea esi, [ebp - 0x11c]
call fcn.004055a3
cmp byte [eax], 0
je 0x40547e
cmp byte [ebp - 0x18], 0
je 0x40547e
lea esi, [ebp - 0x18]
cmp byte [esi], 0x2e
jne 0x405494
mov al, byte [esi + 1]
test al, al
je 0x4054f2
cmp al, 0x2e
jne 0x405494
cmp byte [esi + 2], 0
je 0x4054f2
push esi
push ebx
call fcn.00405a85
test byte [ebp - 0x148], 0x10
je 0x4054b9
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x4054f2
push dword [ebp + 0xc]
push edi
call fcn.004053aa
jmp 0x4054f2
push edi
call fcn.0040573d
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x4054ea
test byte [ebp + 0xc], 4
je 0x4054e2
push edi
push 0xfffffffffffffff1
call fcn.00404e23
push 0
push edi
call fcn.004057d3
jmp 0x4054f2
inc dword [0x423f28]
jmp 0x4054f2
push edi
push 0xfffffffffffffff2
call fcn.00404e23
lea eax, [ebp - 0x148]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40545c
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 4], 0
je 0x40551d
and byte [ebx - 1], 0
xor esi, esi
pop ebx
cmp dword [ebp - 4], esi
je 0x405572
cmp dword [ebp - 8], esi
jne 0x405532
inc dword [0x423f28]
jmp 0x405572
push edi
call fcn.00405d7c
test eax, eax
je 0x405572
push edi
call fcn.00405578
push edi
call fcn.0040573d
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x40556a
test byte [ebp + 0xc], 4
je 0x40552a
push edi
push 0xfffffffffffffff1
call fcn.00404e23
push esi
push edi
call fcn.004057d3
jmp 0x405572
push edi
push 0xffffffffffffffe5
call fcn.00404e23
pop edi
pop esi
leave
ret 8
Function at 0x4057d3
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebx
push ebp
push esi
push edi
push 1
call fcn.00405da3
test eax, eax
mov esi, dword [esp + 0x18]
je 0x4057f7
push 5
push esi
push dword [esp + 0x1c]
call eax
test eax, eax
jne 0x405930
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov dword [0x422628], 0x4c554e
test esi, esi
mov edi, 0x400
mov ebp, 0x422628
je 0x40583b
push 1
push 0
push esi
call fcn.0040575c
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x405936
cmp eax, edi
jg 0x405936
mov esi, 0x4220a0
push edi
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x405936
cmp eax, edi
jg 0x405936
push esi
push ebp
push 0x40934c
push 0x421ca0
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x423eb0]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.00405aa7
push 4
push 0xc0000000
push esi
call fcn.0040575c
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x14], ebp
je 0x405930
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x405929
lea eax, [esp + 0x18]
push 0
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x405929
cmp edi, dword [esp + 0x18]
jne 0x405929
push str._Rename__r_n
push esi
call fcn.004056d1
test eax, eax
jne 0x40593d
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call fcn.00405a85
add edi, 0xa
mov eax, edi
push ebx
add eax, esi
push 0x421ca0
push eax
call fcn.0040571d
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [esp + 0x18]
push 0
add edi, ebx
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [0x423f30]
pop edi
pop esi
pop ebp
pop ebx
ret 8
add eax, 0xa
push 0x409348
push eax
call fcn.004056d1
test eax, eax
je 0x4058f4
inc eax
lea ecx, [esi + edi]
cmp eax, ecx
mov ebp, eax
jae 0x405964
mov dl, byte [ebp]
mov byte [ebx + ebp], dl
inc ebp
cmp ebp, ecx
jb 0x405959
mov ebp, dword [esp + 0x14]
sub eax, esi
jmp 0x4058f6
Function at 0x40118e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4011e7
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4011d8
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [ebp + 8]
lea ecx, [esi + eax]
and edx, 0xf
jbe 0x4011d4
cmp esi, ecx
jae 0x4011d8
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
dec edx
jne 0x4011c4
cmp esi, ecx
jb 0x4011dc
xor eax, eax
jmp 0x4011e6
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x40126f
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x4976c0
push 0x4227b0
mov eax, dword fs:[0]
push eax
push ecx
push ecx
sub esp, 0x38
push ebx
push esi
push edi
mov eax, dword [0x49d2e0]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x2c], ecx
and dword [ebp - 0x24], 0
and dword [ebp - 0x50], 0
push 8
pop ecx
xor eax, eax
lea edi, [ebp - 0x4c]
rep stosd dword es:[edi], eax
and dword [ebp - 0x28], 0
and dword [ebp - 0x20], 0
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
push 0x40
push 0x3000
push dword [ebp - 0x4c]
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x4012ed
xor al, al
jmp 0x40136d
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
mov byte [eax], 0xc3
lea eax, [ebp - 0x28]
push eax
push 0x140
push dword [ebp - 0x4c]
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x401316
xor al, al
jmp 0x40136d
and dword [ebp - 4], 0
mov eax, dword [ebp - 0x20]
push 0x40135b
jmp eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40144f
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x138
mov eax, dword [0x49d2e0]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, 0x128
mov dword [ebp - 0x138], ebx
mov ecx, edi
lea eax, [ebp - 0x134]
mov byte [eax], 0
inc eax
dec ecx
jne 0x40147b
push ecx
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
je 0x4014fd
lea eax, [ebp - 0x134]
push eax
push esi
mov dword [ebp - 0x134], edi
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x4014f6
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
push ebx
lea eax, [ebp - 0x110]
push eax
call edi
test eax, eax
jne 0x4014cd
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x12c]
jmp 0x4014ff
mov ebx, dword [sym.imp.KERNEL32.dll_Process32Next]
jmp 0x4014e8
push dword [ebp - 0x138]
lea eax, [ebp - 0x110]
push eax
call edi
test eax, eax
je 0x4014be
lea eax, [ebp - 0x134]
push eax
push esi
call ebx
test eax, eax
jne 0x4014d5
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041dde3
leave
ret 4
Function at 0x405b2d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x476b08
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x49d2e0]
xor eax, esp
mov dword [esp + 0x30], eax
push ebx
push esi
push edi
mov eax, dword [0x49d2e0]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x14], esi
or ebx, 0xffffffff
cmp dword [ebp + 8], ebx
jne 0x405b79
xor eax, eax
jmp 0x405cfb
mov eax, dword [esi + 0x20]
mov ecx, dword [eax]
test ecx, ecx
je 0x405ba7
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x405ba7
mov eax, dword [ebp + 8]
lea ecx, [edi - 1]
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], al
jmp 0x405cfb
cmp dword [esi + 0x50], 0
je 0x405cf9
mov ecx, esi
call fcn.00406d3f
mov eax, dword [ebp + 8]
xor ecx, ecx
cmp dword [esi + 0x40], ecx
jne 0x405bdb
push dword [esi + 0x50]
movsx eax, al
push eax
call fcn.0041ee27
pop ecx
cmp eax, ebx
cmovne ebx, dword [ebp + 8]
pop ecx
jmp 0x405cf9
push ecx
mov dword [esp + 0x3c], ecx
mov byte [esp + 0x2c], cl
push 8
lea ecx, [esp + 0x30]
mov byte [esp + 0x1b], al
mov dword [esp + 0x44], 0xf
call fcn.004067b5
and dword [esp + 0x50], 0
lea eax, [esi + 0x48]
mov dword [esp + 0x24], eax
mov edi, dword [esp + 0x3c]
mov esi, dword [esi + 0x40]
cmp edi, 0x10
mov edi, dword [esi]
lea eax, [esp + 0x18]
push eax
mov eax, dword [esp + 0x3c]
lea ecx, [esp + 0x2c]
cmovae ecx, dword [esp + 0x2c]
lea edx, [esp + 0x2c]
cmovae edx, dword [esp + 0x2c]
add eax, ecx
push eax
push edx
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x27]
push eax
push dword [esp + 0x3c]
mov ecx, esi
call dword [edi + 0x1c]
test eax, eax
js 0x405cf0
cmp eax, 1
jg 0x405cd1
mov edi, dword [esp + 0x3c]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
cmp edi, 0x10
lea eax, [esp + 0x28]
cmovae eax, ecx
sub edx, eax
mov dword [esp + 0x1c], edx
je 0x405c9e
push dword [esi + 0x50]
lea eax, [esp + 0x2c]
push edx
cmp edi, 0x10
cmovae eax, ecx
push 1
push eax
call fcn.0041fbd9
mov edx, dword [esp + 0x2c]
add esp, 0x10
cmp edx, eax
jne 0x405cf0
mov edi, dword [esp + 0x3c]
lea eax, [esp + 0x13]
mov byte [esi + 0x45], 1
cmp dword [esp + 0x20], eax
jne 0x405ccc
test edx, edx
jne 0x405c0b
cmp dword [esp + 0x38], 0x20
jae 0x405cf0
push edx
push 8
lea ecx, [esp + 0x30]
call fcn.004066c7
jmp 0x405c07
mov ebx, dword [ebp + 8]
jmp 0x405cf0
cmp eax, 3
jne 0x405cf0
mov eax, dword [esp + 0x14]
push dword [eax + 0x50]
movsx eax, byte [esp + 0x17]
push eax
call fcn.0041ee27
pop ecx
cmp eax, ebx
cmovne ebx, dword [ebp + 8]
pop ecx
lea ecx, [esp + 0x28]
call fcn.00401647
mov eax, ebx
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.0041dde3
mov esp, ebp
pop ebp
ret 4
Function at 0x406ba7
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x476a90
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x49d2e0]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
push esi
push edi
mov eax, dword [0x49d2e0]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x14], esi
xor ebx, ebx
cmp dword [esi + 0x40], ebx
je 0x406cf4
cmp byte [esi + 0x45], bl
je 0x406cf4
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
jne 0x406c0b
xor al, al
jmp 0x406cf6
push ebx
push 8
lea ecx, [esp + 0x28]
mov dword [esp + 0x3c], 0xf
mov dword [esp + 0x38], ebx
mov byte [esp + 0x28], bl
call fcn.004067b5
lea eax, [esi + 0x48]
mov dword [esp + 0x48], ebx
mov dword [esp + 0x18], eax
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x34]
cmp ecx, 0x10
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x1c]
mov ecx, dword [ecx + 0x40]
push eax
mov eax, dword [esp + 0x34]
lea edi, [esp + 0x24]
cmovae edi, edx
lea esi, [esp + 0x24]
cmovae esi, edx
mov edx, dword [ecx]
add eax, edi
push eax
push esi
push dword [esp + 0x24]
call dword [edx + 0x20]
sub eax, ebx
je 0x406c75
dec eax
jne 0x406cda
mov esi, dword [esp + 0x14]
jmp 0x406c7c
mov esi, dword [esp + 0x14]
mov byte [esi + 0x45], bl
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x20]
mov edi, dword [esp + 0x1c]
cmp ecx, 0x10
lea eax, [esp + 0x20]
cmovae eax, edx
sub edi, eax
je 0x406cbb
push dword [esi + 0x50]
cmp ecx, 0x10
push edi
lea eax, [esp + 0x28]
cmovae eax, edx
push 1
push eax
call fcn.0041fbd9
add esp, 0x10
cmp edi, eax
jne 0x406ce3
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x20]
cmp byte [esi + 0x45], 0
je 0x406ce1
test edi, edi
jne 0x406c3a
push ebx
push 8
lea ecx, [esp + 0x28]
call fcn.004066c7
jmp 0x406c32
dec eax
dec eax
jne 0x406ce7
inc eax
jmp 0x406ce5
mov bl, 1
mov al, bl
mov bl, al
lea ecx, [esp + 0x20]
call fcn.00401647
mov al, bl
jmp 0x406cf6
mov al, 1
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.0041dde3
mov esp, ebp
pop ebp
ret

Function at 0x407f92
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
mov eax, dword [0x49d2e0]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
xor ebx, ebx
push 0x124
lea eax, [ebp - 0x130]
push ebx
push eax
mov dword [ebp - 0x134], ebx
call fcn.00423400
add esp, 0xc
push ebx
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
lea eax, [ebp - 0x134]
push eax
push esi
mov dword [ebp - 0x134], 0x128
call dword [sym.imp.KERNEL32.dll_Process32First]
jmp 0x40800a
lea eax, [ebp - 0x110]
push eax
lea ecx, [ebp + 8]
call fcn.00409b23
test eax, eax
je 0x408010
lea eax, [ebp - 0x134]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x407fe9
jmp 0x408012
mov bl, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
call fcn.00401253
mov ecx, dword [ebp - 8]
pop esi
movzx eax, bl
xor ecx, ebp
pop ebx
call fcn.0041dde3
leave
ret
Function at 0x40ab6b
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x49d2e0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, 0x103
push esi
lea eax, [ebp - 0x107]
push 0
push eax
mov ebx, ecx
mov byte [ebp - 0x108], 0
call fcn.00423400
add esp, 0xc
lea eax, [ebp - 0x108]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea eax, [ebp - 0x108]
push eax
mov edi, 0x48851c
lea eax, [ebx + 0x14]
push edi
push eax
call fcn.00403011
push esi
lea eax, [ebp - 0x107]
push 0
push eax
mov byte [ebp - 0x108], 0
call fcn.00423400
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
add esp, 0x18
lea eax, [ebp - 0x108]
push 0x104
push eax
push 0
call esi
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
push eax
lea eax, [ebx + 0x18]
push edi
push eax
call fcn.00403011
push 0x103
lea eax, [ebp - 0x107]
push 0
push eax
mov byte [ebp - 0x108], 0
call fcn.00423400
add esp, 0x18
lea eax, [ebp - 0x108]
push 0x104
push eax
push 0
call esi
lea eax, [ebp - 0x108]
push eax
lea eax, [ebx + 0x1c]
push edi
push eax
call fcn.00403011
mov esi, 0x103
push esi
lea eax, [ebp - 0x107]
push 0
push eax
mov byte [ebp - 0x108], 0
call fcn.00423400
add esp, 0x18
mov ecx, ebx
push 0x486b73
call fcn.00401712
mov edi, dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0x108]
push eax
push 0x104
call edi
lea eax, [ebp - 0x108]
push eax
push str._sfsi
push ebx
call fcn.00403011
push esi
lea eax, [ebp - 0x107]
push 0
push eax
mov byte [ebp - 0x108], 0
call fcn.00423400
add esp, 0x18
lea esi, [ebx + 0xc]
push 0x486b73
mov ecx, esi
call fcn.00401712
lea eax, [ebp - 0x108]
push eax
push 0x104
call edi
push str.3399
lea eax, [ebp - 0x108]
push eax
push str._sfsi_s.exe
push esi
call fcn.00403011
mov esi, str.3399
push esi
lea eax, [ebx + 4]
push str._s.exe
push eax
call fcn.00403011
push esi
lea eax, [ebx + 8]
push 0x48851c
push eax
call fcn.00403011
push 0x103
lea eax, [ebp - 0x107]
push 0
push eax
mov byte [ebp - 0x108], 0
call fcn.00423400
add esp, 0x34
lea esi, [ebx + 0x10]
push 0x486b73
mov ecx, esi
call fcn.00401712
lea eax, [ebp - 0x108]
push eax
push 0x104
call edi
lea eax, [ebp - 0x108]
push eax
push str._sfsiconfig.ini
push esi
call fcn.00403011
add esp, 0xc
push dword [ebx]
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
test eax, eax
jne 0x40ad72
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ecx, ebx
call fcn.0040b34a
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.0041dde3
leave
ret
Function at 0x40cfe1
Capabilities:
Reference http user-agent string

Disassembly:
push 0xc
mov eax, 0x477547
call fcn.004696a8
mov esi, 0x49e1e8
push esi
lea ecx, [ebp - 0x14]
call fcn.00401743
and dword [ebp - 4], 0
push esi
lea ecx, [ebp - 0x10]
call fcn.00401743
mov byte [ebp - 4], 1
call fcn.00438850
mov ebx, eax
test ebx, ebx
je 0x40d0cc
push ecx
mov ecx, dword [0x4a234c]
add ecx, 0xfffffff0
mov esi, esp
call fcn.00401f3d
add eax, 0x10
mov dword [esi], eax
lea eax, [ebp - 0x18]
push eax
call fcn.0040cf77
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 3
call fcn.00401dc6
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
call fcn.00401253
push str.User_Agent:_Mozilla_5.0__Windows_NT_10.0__WOW64__Trident_7.0__rv:11.0__like_Gecko
push 0
call fcn.00438790
push str.Content_Type:_application_x_www_form_urlencoded
push eax
call fcn.00438790
push eax
push 0x2727
push ebx
call fcn.004388b0
mov esi, dword [ebp - 0x10]
add esp, 0x1c
push esi
push 0x2712
push ebx
call fcn.004388b0
add esp, 0xc
push ebx
call fcn.00438890
pop ecx
mov edi, eax
push edi
push edi
call fcn.00438cd0
pop ecx
push eax
lea eax, [ebp - 0x14]
push str._s___d_
push eax
call fcn.00403011
add esp, 0x10
test edi, edi
jne 0x40d0c3
lea eax, [ebp - 0x10]
push eax
mov ecx, 0x4a233c
call fcn.00401dc6
push ebx
call fcn.00438830
pop ecx
jmp 0x40d0cf
mov esi, dword [ebp - 0x10]
lea ecx, [esi - 0x10]
call fcn.00401253
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.00401253
call fcn.00469676
ret

Function at 0x40d0e8
Capabilities:
Reference http user-agent string

Disassembly:
push 0xc
mov eax, 0x4776be
call fcn.004696a8
and dword [ebp - 4], 0
push 3
call fcn.004388e0
call fcn.00438850
lea ecx, [ebp - 0x10]
mov esi, eax
mov dword [esp], 0x486b73
call fcn.00401668
mov byte [ebp - 4], 1
test esi, esi
je 0x40d1e9
push 0x488c6c
mov edx, 0x4a233c
lea ecx, [ebp - 0x18]
call fcn.00401e69
lea ecx, [ebp + 8]
push ecx
mov edx, eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.00401e14
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 3
call fcn.00401dc6
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.00401253
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
call fcn.00401253
push str.User_Agent:_Mozilla_5.0__Windows_NT_10.0__WOW64__Trident_7.0__rv:11.0__like_Gecko
push 0
call fcn.00438790
push str.Content_Type:_application_x_www_form_urlencoded
push eax
call fcn.00438790
push eax
push 0x2727
push esi
call fcn.004388b0
add esp, 0x1c
cmp dword [ebp + 0xc], 0
jne 0x40d1a9
push dword [ebp - 0x10]
push 0x2712
push esi
call fcn.004388b0
add esp, 0xc
jmp 0x40d1db
cmp dword [ebp + 0xc], 1
jne 0x40d1db
push dword [0x4a233c]
push 0x2712
push esi
call fcn.004388b0
push dword [ebp + 8]
push 0x271f
push esi
call fcn.004388b0
push 1
push 0x2f
push esi
call fcn.004388b0
add esp, 0x24
push esi
call fcn.00438890
push esi
call fcn.00438830
pop ecx
pop ecx
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.00401253
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
call fcn.00401253
xor eax, eax
call fcn.00469676
ret 0xc