joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4011f0
Capabilities:
Check for time delay via gettickcount
Check http status code
Download and write a file
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x408c58
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
mov eax, dword [0x40c06c]
mov ecx, dword [0x40c070]
mov edx, dword [0x40c074]
push ebx
push ebp
push esi
mov dword [esp + 0x20], eax
mov eax, dword [0x40c078]
push edi
push 0x4000
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
xor edi, edi
add esp, 4
cmp esi, edi
setne byte [esp + 0x1c]
push edi
lea ecx, [esp + 0x28]
push 0x84000100
push ecx
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], 4
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [esp + 0x4c]
push eax
mov eax, dword [esp + 0x54]
lea edx, [esp + 0x30]
push edx
push eax
push ecx
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov ebx, eax
cmp ebx, edi
mov dword [esp + 0x48], ebx
je 0x401357
mov edx, dword [esp + 0x4c]
push 0x40c068
push edx
call dword [sym.imp.MSVCRT.dll_fopen]
mov ebp, eax
add esp, 8
cmp ebp, edi
je 0x401357
lea eax, [esp + 0x18]
push edi
lea ecx, [esp + 0x18]
push eax
push ecx
push 0x20000013
push ebx
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
je 0x40134d
mov eax, dword [esp + 0x14]
cmp eax, 0xc8
jb 0x4013aa
cmp eax, 0x12c
jae 0x4013aa
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebx
lea edx, [esp + 0x10]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x48]
push edx
push 0x4000
push esi
push eax
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x40134d
mov eax, dword [esp + 0x10]
push ebp
test eax, eax
je 0x401369
push eax
push 1
push esi
call dword [sym.imp.MSVCRT.dll_fwrite]
mov eax, dword [esp + 0x20]
add esp, 0x10
add edi, eax
call ebx
mov edx, dword [esp + 0x44]
mov ecx, dword [esp + 0x50]
sub eax, edx
cmp eax, ecx
ja 0x40134d
mov edx, dword [esp + 0x48]
lea ecx, [esp + 0x10]
push ecx
push 0x4000
push esi
push edx
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x401307
push ebp
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov al, byte [esp + 0x1c]
mov dword [esp + 0x3c], 0xffffffff
test al, al
je 0x4013cd
jmp 0x4013c4
call dword [sym.imp.MSVCRT.dll_fflush]
push ebp
call dword [sym.imp.MSVCRT.dll_fclose]
mov al, byte [esp + 0x24]
add esp, 8
test al, al
mov dword [esp + 0x3c], 0xffffffff
je 0x401392
push esi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
add esp, 0x30
ret
push ebp
call dword [sym.imp.MSVCRT.dll_fclose]
mov al, byte [esp + 0x20]
add esp, 4
test al, al
mov dword [esp + 0x3c], 0xffffffff
je 0x4013cd
push esi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov ecx, dword [esp + 0x34]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x30
ret
Function at 0x4017f0
Capabilities:
Check if file exists
Create directory

Disassembly:
sub esp, 0x20c
push ebp
mov ebp, ecx
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x111]
mov byte [esp + 0x110], 0
mov byte [esp + 0xc], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0xd]
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x114]
push eax
call fcn.00401a00
add esp, 8
test eax, eax
jne 0x40184c
pop edi
pop ebp
add esp, 0x20c
ret
push esi
lea esi, [esp + 0x114]
lea ecx, [esp + 0x10]
mov edx, 0x104
lea eax, [esp + 0x10]
sub esi, ecx
mov cl, byte [esi + eax]
test cl, cl
je 0x401872
mov byte [eax], cl
inc eax
dec edx
jne 0x401863
jmp 0x401876
test edx, edx
jne 0x401877
dec eax
lea edx, [esp + 0xc]
mov byte [eax], 0
push edx
lea eax, [esp + 0x14]
push 0x104
push eax
call fcn.00402090
test eax, eax
jl 0x4018ad
mov eax, dword [esp + 0xc]
mov ecx, 0x104
sub ecx, eax
push 0x40f3e0
lea edx, [esp + eax + 0x14]
push ecx
push edx
call fcn.00402040
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
lea eax, [esp + 0x10]
push eax
call edi
test eax, eax
jne 0x4018ca
lea ecx, [esp + 0x10]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov edx, 0x104
lea eax, [esp + 0x10]
mov cl, byte [esi + eax]
test cl, cl
je 0x4018e2
mov byte [eax], cl
inc eax
dec edx
jne 0x4018d3
jmp 0x4018e6
test edx, edx
jne 0x4018e7
dec eax
push 1
lea edx, [esp + 0x14]
push 1
push edx
mov ecx, ebp
mov byte [eax], 0
call fcn.00401af0
lea eax, [esp + 0x10]
push eax
call edi
test eax, eax
jne 0x401911
lea ecx, [esp + 0x10]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov edx, 0x104
lea eax, [esp + 0x10]
mov cl, byte [esi + eax]
test cl, cl
je 0x401929
mov byte [eax], cl
inc eax
dec edx
jne 0x40191a
jmp 0x40192d
test edx, edx
jne 0x40192e
dec eax
push 1
lea edx, [esp + 0x14]
push 2
push edx
mov ecx, ebp
mov byte [eax], 0
call fcn.00401af0
lea eax, [esp + 0x10]
push eax
call edi
test eax, eax
jne 0x401958
lea ecx, [esp + 0x10]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov edx, 0x104
lea eax, [esp + 0x10]
mov cl, byte [esi + eax]
test cl, cl
je 0x401970
mov byte [eax], cl
inc eax
dec edx
jne 0x401961
jmp 0x401974
test edx, edx
jne 0x401975
dec eax
push 1
lea edx, [esp + 0x14]
push 3
push edx
mov ecx, ebp
mov byte [eax], 0
call fcn.00401af0
lea eax, [esp + 0x10]
push eax
call edi
test eax, eax
jne 0x40199f
lea ecx, [esp + 0x10]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov edx, 0x104
lea eax, [esp + 0x10]
mov cl, byte [esi + eax]
test cl, cl
je 0x4019b7
mov byte [eax], cl
inc eax
dec edx
jne 0x4019a8
jmp 0x4019bb
test edx, edx
jne 0x4019bc
dec eax
push 1
lea edx, [esp + 0x14]
push 4
push edx
mov ecx, ebp
mov byte [eax], 0
call fcn.00401af0
lea eax, [esp + 0x10]
push eax
call edi
test eax, eax
pop esi
jne 0x4019e7
lea ecx, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
pop edi
mov eax, 1
pop ebp
add esp, 0x20c
ret
Function at 0x401c30
Capabilities:
Check mutex and terminate process on windows
Check mutex on windows
Create process on windows
Terminate process

Disassembly:
sub esp, 0x158
push esi
mov esi, ecx
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x5d]
mov byte [esp + 0x5c], 0
push 0x40f478
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 1
push 0
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x401c91
push 0x1000
push 0x40f468
push 0x40f450
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
lea eax, [esp + 0x5c]
push 0x104
push eax
mov ecx, esi
call fcn.00401d00
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x18]
lea edx, [esp + 8]
rep stosd dword es:[edi], eax
xor ecx, ecx
lea eax, [esp + 0x18]
mov dword [esp + 8], ecx
push edx
mov dword [esp + 0x10], ecx
push eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x20], 0x44
push ecx
push ecx
push ecx
push ecx
push ecx
mov dword [esp + 0x30], ecx
push ecx
lea ecx, [esp + 0x7c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
pop edi
pop esi
test eax, eax
jne 0x401cf3
add esp, 0x158
ret
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x402260
Capabilities:
Check if file exists
Get common file path

Disassembly:
sub esp, 0x104
push esi
push edi
push 0x40f59c
call fcn.00402760
mov ecx, dword [esp + 0x118]
mov esi, dword [esp + 0x114]
mov edx, ecx
xor eax, eax
mov edi, esi
add esp, 4
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea eax, [esp + 8]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push esi
push 0x3048
lea ecx, [esp + 0x10]
push 0x40f594
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push esi
call fcn.00402760
push 0x40f590
call fcn.00402760
add esp, 8
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x4022fb
call fcn.00402760
push 0x40f570
call fcn.00402760
add esp, 4
mov eax, 1
pop edi
pop esi
add esp, 0x104
ret 8
push 0x493e0
push esi
push 0x40f544
call fcn.00401180
add esp, 0xc
neg eax
sbb eax, eax
xor edx, edx
and eax, 2
pop edi
dec eax
pop esi
cmp eax, 1
sete dl
mov eax, edx
add esp, 0x104
ret 8
Function at 0x402330
Capabilities:
Get common file path
Move file
Read .ini file
Terminate process

Disassembly:
sub esp, 0x414
push ebx
push ebp
push esi
mov ebp, ecx
push edi
xor ebx, ebx
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x21d]
mov byte [esp + 0x21c], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x321]
mov byte [esp + 0x320], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x119]
mov byte [esp + 0x118], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x15]
mov byte [esp + 0x14], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x40f694
stosb byte es:[edi], al
call fcn.00402760
add esp, 4
lea eax, [esp + 0x118]
push 0x104
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x118]
lea ecx, [esp + 0x14]
mov esi, 0x104
lea eax, [esp + 0x14]
sub edx, ecx
mov cl, byte [edx + eax]
cmp cl, bl
je 0x4023e6
mov byte [eax], cl
inc eax
dec esi
jne 0x4023d7
jmp 0x4023ea
cmp esi, ebx
jne 0x4023eb
dec eax
mov byte [eax], bl
mov ecx, 0x104
lea eax, [esp + 0x14]
cmp byte [eax], bl
je 0x402400
inc eax
dec ecx
jne 0x4023f6
jmp 0x402443
cmp ecx, ebx
je 0x402443
lea edx, [esp + 0x10]
test edx, edx
je 0x402415
mov eax, 0x104
sub eax, ecx
jmp 0x402419
mov eax, dword [esp + 0x10]
mov edx, 0x104
sub edx, eax
lea eax, [esp + eax + 0x14]
je 0x402443
mov esi, 0x40f68c
sub esi, eax
mov cl, byte [esi + eax]
cmp cl, bl
je 0x40243c
mov byte [eax], cl
inc eax
dec edx
jne 0x40242d
jmp 0x402440
cmp edx, ebx
jne 0x402441
dec eax
mov byte [eax], bl
lea eax, [esp + 0x14]
push 1
lea ecx, [esp + 0x11c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
jne 0x40247c
push 0x40f678
call fcn.00402760
add esp, 4
call fcn.00402760
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x414
ret
lea edx, [esp + 0x21c]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [esp + 0x320]
lea ecx, [esp + 0x21c]
push eax
push 0x3048
push 0x40f594
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
lea edx, [esp + 0x320]
lea eax, [esp + 0x21c]
push edx
push 0x104
push eax
push ebx
push 0x40f674
push 0x40f660
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [esp + 0x118]
push 0x493e0
lea edx, [esp + 0x220]
push ecx
push edx
call fcn.00401180
add esp, 0xc
test eax, eax
jne 0x4024fd
push 0x40f630
jmp 0x40252e
push 0x40f5f8
call fcn.00402760
add esp, 4
mov ecx, ebp
call fcn.004026e0
test eax, eax
je 0x402529
push 0x40f5d4
call fcn.00402760
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 0x40f5b4
call fcn.00402760
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x414
ret
Function at 0x402550
Capabilities:
Check if file exists
Delete file
Get common file path
Read .ini file
Terminate process

Disassembly:
sub esp, 0x208
push ebp
push esi
mov esi, ecx
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x111]
mov byte [esp + 0x110], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0xd]
mov byte [esp + 0xc], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x110]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea ecx, [esp + 0xc]
lea edx, [esp + 0x110]
push ecx
push 0x3048
push 0x40f594
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
mov ebp, dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov edi, dword [sym.imp.USER32.dll_MessageBoxA]
test eax, eax
je 0x40260e
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x40260e
push 0x1004
push 0x40f468
push 0x40f6e4
push eax
call edi
cmp eax, 6
jne 0x402603
call fcn.004020d0
jmp 0x40260e
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call ebp
lea edx, [esp + 0xc]
push 0x104
push edx
mov ecx, esi
call fcn.00402260
test eax, eax
jne 0x402630
pop edi
pop esi
or eax, 0xffffffff
pop ebp
add esp, 0x208
ret
lea eax, [esp + 0xc]
push eax
push 0
push 0x40f6dc
push 0x40f660
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
lea ecx, [esp + 0xc]
lea edx, [esp + 0x110]
push ecx
push 0x104
push edx
push 0
push 0x40f6d8
push 0x40f660
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [esp + 0x110]
push 0x40f6cc
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jle 0x4026be
push 0x1024
push 0x40f468
push 0x40f6b4
push 0
call edi
cmp eax, 7
jne 0x4026ca
test esi, esi
je 0x4026be
push 0x1000
push 0x40f468
push 0x40f6a4
push 0
call edi
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call ebp
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x208
ret
cmp eax, 6
jne 0x4026be
pop edi
pop esi
mov eax, 1
pop ebp
add esp, 0x208
ret

Function at 0x4026e0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x158
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x59]
mov byte [esp + 0x58], 0
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x5c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x14]
lea edx, [esp + 4]
rep stosd dword es:[edi], eax
xor ecx, ecx
lea eax, [esp + 0x14]
mov dword [esp + 4], ecx
push edx
mov dword [esp + 0xc], ecx
push eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x1c], 0x44
push ecx
push ecx
push ecx
push ecx
push ecx
mov dword [esp + 0x2c], ecx
push ecx
lea ecx, [esp + 0x78]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
neg eax
sbb eax, eax
pop edi
neg eax
add esp, 0x158
ret
Function at 0x4027b0
Capabilities:
Delete file

Disassembly:
sub esp, 0x130
push ebx
push esi
mov esi, dword [esp + 0x140]
push edi
mov ebx, dword [esp + 0x140]
mov ecx, 0x4b
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x10]
lea ecx, [esp + 0xc]
push eax
push ecx
push 1
push esi
push ebx
mov dword [esp + 0x20], 0xffffffff
call fcn.00408830
mov edx, dword [esp + 0x20]
add esp, 0x14
mov edi, eax
push edx
push 0x40f80c
call fcn.00402760
add esp, 8
test edi, edi
jne 0x4028a0
push 0x40f7f0
call fcn.00402760
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [esp + 0xc]
push 2
push edi
push esi
push eax
push ebx
call fcn.00408880
add esp, 0x14
test eax, eax
jne 0x402887
push 0x40f7d4
call fcn.00402760
push 4
push esi
call dword [sym.imp.MSVCRT.dll__access]
add esp, 0xc
test eax, eax
jne 0x40286e
push 0x40f7b8
call fcn.00402760
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebx
add esp, 0x130
ret
push 0x40f78c
call fcn.00402760
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x130
ret
push 0x40f76c
call fcn.00402760
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x130
ret
push 0x40f74c
call fcn.00402760
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x130
ret
Function at 0x407d10
Capabilities:
Get common file path

Disassembly:
push ecx
push ebp
mov ebp, ecx
push esi
push edi
cmp dword [ebp], 0
jne 0x407dc8
cmp dword [ebp + 4], 0xffffffff
jne 0x407dc8
push ebx
lea ebx, [ebp + 0x138]
push ebx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov edi, 0x40f3f0
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
pop ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x14]
cmp esi, 1
jne 0x407d8d
push edi
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
je 0x407d8d
pop edi
pop esi
mov eax, 0x2000000
pop ebp
pop ecx
ret 0xc
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0xc]
push eax
push esi
push ecx
push edi
call fcn.00406910
add esp, 0x10
test eax, eax
jne 0x407db0
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebp
pop ecx
ret 0xc
push eax
call fcn.00406f00
add esp, 4
mov dword [ebp], eax
mov eax, dword [0x4112fc]
pop edi
pop esi
pop ebp
pop ecx
ret 0xc
pop edi
pop esi
mov eax, 0x1000000
pop ebp
pop ecx
ret 0xc

Function at 0x4082c0
Capabilities:
Create directory

Disassembly:
sub esp, 0x208
push ebx
mov ebx, dword [esp + 0x214]
test ebx, ebx
je 0x408388
mov al, byte [ebx]
test al, al
je 0x408388
push esi
push edi
mov esi, ebx
mov ecx, ebx
cmp al, 0x2f
je 0x4082ee
cmp al, 0x5c
jne 0x4082f0
mov esi, ecx
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x4082e6
mov edi, dword [esp + 0x218]
cmp esi, ebx
je 0x408325
sub esi, ebx
lea eax, [esp + 0xc]
push esi
push ebx
push eax
call dword [sym.imp.MSVCRT.dll__mbsnbcpy]
lea ecx, [esp + 0x18]
mov byte [esp + esi + 0x18], 0
push ecx
push edi
call fcn.004082c0
add esp, 0x14
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x110]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x110]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x114]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
pop edi
pop esi
pop ebx
add esp, 0x208
ret
Function at 0x40b860
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x466aeb
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.0045ba18
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x40b8e2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.00459967
mov eax, dword [eax]
push 0x6eb1c0
push eax
call fcn.0044c864
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0045bca3
test bl, bl
je 0x40b8e2
push 0x6eb1c0
lea ecx, [esp + 0xc]
call fcn.0045c033
push 0x6eed08
lea ecx, [esp + 0xc]
call fcn.0045c033
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 0x40b91e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0045bca3
jmp 0x40b9e9
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 0x40b9a2
lea edx, [esp + 0x7c]
push 0x6eed04
push edx
call fcn.0044c864
add esp, 8
test eax, eax
je 0x40b9a2
lea eax, [esp + 0x7c]
push 0x6eed00
push eax
call fcn.0044c864
add esp, 8
test eax, eax
je 0x40b9a2
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 0x40b932
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.0045bca3
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 0x40c1e0
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 0x40c242
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 0x40c250
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x466b6b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x6f51a8]
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 0x40c388
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x40c2b6
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0045bca3
xor eax, eax
jmp 0x40c3ff
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.0045bde0
push esi
lea ecx, [esp + 0xc]
call fcn.0045c06f
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 0x40c3dd
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push 0x80000000
call fcn.0040c1e0
test eax, eax
jne 0x40c3dd
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.0040c1e0
test eax, eax
jne 0x40c3dd
lea eax, [esp + 0x14]
push str.__1_
push eax
call fcn.0044d8a0
mov esi, eax
add esp, 8
test esi, esi
jne 0x40c3bc
lea ecx, [esp + 0x14]
push 0x6eed18
push ecx
call fcn.0044d820
mov esi, eax
add esp, 8
test esi, esi
jne 0x40c3bc
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x40c3bf
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.0045bd90
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x40c2ce
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0045bca3
xor eax, eax
jmp 0x40c3ff
mov byte [esi], 0
push 0x6eed14
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.0045bca3
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