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

Disassembly:
sub esp, 0x10
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], 0
cmp dword [esi + 0x50], 0xffffffff
je 0x401af7
mov eax, dword [esi + 0x54]
test eax, eax
je 0x4019e9
push eax
call fcn.00401e00
test eax, eax
jne 0x4019e9
call fcn.004149d5
test eax, eax
je 0x4019d9
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x74]
mov ecx, eax
call fcn.004010c0
pop edi
pop esi
pop ebx
add esp, 0x10
ret
xor eax, eax
mov ecx, eax
call fcn.004010c0
pop edi
pop esi
pop ebx
add esp, 0x10
ret
mov edx, dword [esi + 0x50]
mov ebx, dword [sym.imp.KERNEL32.dll_GetMailslotInfo]
lea eax, [esp + 0x18]
push 0
lea ecx, [esp + 0x10]
push eax
push ecx
push 0
push edx
call ebx
test eax, eax
je 0x401a72
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0xc]
cmp eax, 0xffffffff
je 0x401a72
cmp eax, 0x23c
ja 0x401a72
mov edx, dword [esi + 0x50]
lea ecx, [esp + 0x14]
push 0
push ecx
push eax
push 0x42d8d0
push edx
call edi
test eax, eax
je 0x401a72
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x14]
cmp ecx, eax
jne 0x401a72
lea ecx, [esp + 0x10]
push ecx
push eax
push 0x42d8d0
mov ecx, esi
call fcn.00401b00
test eax, eax
je 0x401af7
mov ecx, dword [esi + 0x50]
lea edx, [esp + 0x18]
push 0
lea eax, [esp + 0x10]
push edx
push eax
push 0
push ecx
call ebx
test eax, eax
jne 0x401a0d
mov eax, dword [esi + 0x60]
test eax, eax
jbe 0x401a9e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0x60]
cmp eax, ecx
jb 0x401a8d
sub eax, ecx
cmp eax, 0x64
jb 0x401a9e
mov dword [esi + 0x60], 0
mov dword [esp + 0x10], 1
jmp 0x401aa6
mov eax, dword [esp + 0x10]
test eax, eax
je 0x401af7
mov eax, dword [esi + 0x60]
test eax, eax
jne 0x401acc
call fcn.004149d5
test eax, eax
je 0x401abf
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x74]
jmp 0x401ac1
xor eax, eax
lea ecx, [esi + 0x54]
push ecx
mov ecx, eax
call fcn.004011e0
call fcn.004149d5
test eax, eax
je 0x401ade
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x74]
jmp 0x401ae0
xor eax, eax
mov eax, dword [eax + 0x1c]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
push 0
push 0
push 0
mov ecx, esi
call fcn.00418d47
pop edi
pop esi
pop ebx
add esp, 0x10
ret
Function at 0x406e29
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x42ae78
cmp edx, dword [eax]
je 0x406e4b
add eax, 8
inc ecx
cmp eax, 0x42af08
jl 0x406e3c
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x42ae78]
jne 0x406f79
mov eax, dword [0x42fbe8]
cmp eax, 1
je 0x406f53
test eax, eax
jne 0x406e7c
cmp dword [0x42a830], 1
je 0x406f53
cmp edx, 0xfc
je 0x406f79
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x406eb3
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004098d0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00404470
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x406ef6
lea eax, [ebp - 0x1a4]
push eax
call fcn.00404470
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x42547c
push edi
call fcn.0040a770
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004098d0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004098e0
lea eax, [ebp - 0xa0]
push 0x42545c
push eax
call fcn.004098e0
push dword [esi + 0x42ae7c]
lea eax, [ebp - 0xa0]
push eax
call fcn.004098e0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0040a6e7
add esp, 0x2c
pop edi
jmp 0x406f79
lea eax, [ebp + 8]
lea esi, [esi + 0x42ae7c]
push 0
push eax
push dword [esi]
call fcn.00404470
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]
pop esi
leave
ret
Function at 0x40fba0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.00404750
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x40fc6b
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x40fc6b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x40fc1e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x40fc29
or bh, 8
and edi, 0x8000000
je 0x40fc44
mov eax, dword [0x43137c]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x40fc6b
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x410040
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x41006b
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x41008f
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x4100aa
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20

Function at 0x4120fd
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x412135
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004154de
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004154b6
jmp 0x412141
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4
Function at 0x413b8e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x413bd0
call fcn.0041f243
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x413bd0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x413bc7
xor eax, eax
jmp 0x413bd8
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00413bde
pop edi
pop esi
pop ebx
ret 4

Function at 0x417148
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
mov ebx, ecx
xor edi, edi
call fcn.0041f243
mov esi, dword [eax + 0xc]
push 5
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x417179
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push esi
mov ecx, ebx
push dword [esp + 0x18]
push edi
call fcn.0041718c
pop edi
pop esi
pop ebx
ret 8
Function at 0x41747e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x4219c8
call fcn.004037a8
sub esp, 0x18
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], esi
mov eax, dword [esi + 0x48]
mov edi, dword [esi + 0x44]
mov dword [ebp - 0x18], eax
call fcn.0041f243
cmp dword [esi + 0x40], 0
mov ebx, dword [eax + 0xc]
je 0x4174bd
call fcn.0041f243
mov ebx, dword [eax + 0xc]
push 5
push dword [esi + 0x40]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x4174cb
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x4174d9
or eax, 0xffffffff
jmp 0x4175c1
mov ecx, esi
call fcn.004173f4
mov dword [ebp - 0x14], eax
call fcn.00411c4d
xor edi, edi
cmp dword [ebp - 0x14], edi
mov dword [ebp - 0x20], edi
je 0x417510
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x417510
push edi
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x20], 1
push esi
mov dword [ebp - 4], edi
call fcn.00411c01
push dword [ebp - 0x14]
call fcn.0041174f
push ebx
push eax
push dword [ebp - 0x18]
mov ecx, esi
call fcn.0041718c
cmp eax, edi
je 0x417583
test byte [esi + 0x24], 0x10
je 0x417551
push 4
mov ecx, esi
pop ebx
call fcn.004142c2
test ah, 1
je 0x417549
push 5
pop ebx
push ebx
mov ecx, esi
call fcn.00413ce0
cmp dword [esi + 0x1c], edi
je 0x417583
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.004143a8
jmp 0x417583
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], edi
je 0x417597
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x4175b0
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x1c]
jne 0x4175b0
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x58]
mov ecx, esi
call fcn.0041742e
mov eax, dword [esi + 0x2c]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret

Function at 0x41fd42
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x41fd70
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x41fd8e
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0041fca8
jmp 0x41fd8e
mov eax, dword [esi + 0x14]
test eax, eax
je 0x41fd8e
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0041fca8
test edi, edi
mov eax, edi
jne 0x41fd78
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401150
Capabilities:
Create directory

Disassembly:
sub esp, 0x108
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0xd]
mov byte [esp + 0xc], 0
rep stosd dword es:[edi], eax
mov esi, dword [esp + 0x114]
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
test esi, esi
je 0x4011f5
push ebp
mov edi, esi
or ecx, 0xffffffff
xor ebp, ebp
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x4011eb
lea edi, [esp + 0x10]
push ebx
sub edi, esi
mov ebx, esi
mov dword [esp + 0x10], edi
jmp 0x40119c
mov edi, dword [esp + 0x10]
mov al, byte [ebx]
cmp al, 0x5c
je 0x4011a6
cmp al, 0x2f
jne 0x4011d8
push ebp
lea eax, [esp + 0x18]
push esi
push eax
call dword [sym.imp.MSVCRT.dll_strncpy]
lea ecx, [esp + 0x20]
push 0
push ecx
mov byte [edi + ebx], 0
call dword [sym.imp.MSVCRT.dll__access]
add esp, 0x14
test eax, eax
je 0x4011d8
lea edx, [esp + 0x14]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
inc ebp
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
inc ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ebp, ecx
jb 0x401198
pop ebx
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
pop ebp
pop edi
pop esi
add esp, 0x108
ret

Function at 0x401200
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x22c
push ebx
push ebp
push esi
xor ebp, ebp
push edi
push ebp
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x139]
mov byte [esp + 0x138], 0
mov dword [esp + 0x10], 0x128
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x10]
push eax
push esi
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x4012a0
mov edi, dword [esp + 0x240]
mov ebx, dword [sym.imp.MSVCRT.dll__stricmp]
xor eax, eax
mov cl, byte [esp + eax + 0x34]
mov byte [esp + eax + 0x138], cl
inc eax
test cl, cl
jne 0x401257
lea ecx, [esp + 0x138]
push edi
push ecx
call ebx
add esp, 8
test eax, eax
je 0x40129c
lea edx, [esp + 0x10]
push edx
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x401255
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x22c
ret
mov ebp, dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x22c
ret

Function at 0x4012c0
Capabilities:
Create process on windows

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x54
test edx, edx
je 0x40131b
push edi
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
lea eax, [esp + 4]
lea ecx, [esp + 0x14]
push eax
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push edx
push 0
mov dword [esp + 0x3c], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
pop edi
je 0x40131b
mov edx, dword [esp]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [esp + 8]
push eax
call esi
pop esi
add esp, 0x54
ret
Function at 0x401620
Capabilities:
Download url
Receive data

Disassembly:
sub esp, 0x410
push ebx
push ebp
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x115]
mov byte [esp + 0x114], 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 + 0x219]
mov byte [esp + 0x218], 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 + 0x31d]
mov byte [esp + 0x31c], 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 + 0x11]
mov byte [esp + 0x10], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esp + 0x430]
push 0x407910
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov ebp, eax
add esp, 8
test ebp, ebp
jne 0x4016b7
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x410
ret
test byte [ebp + 0xc], 0x10
jne 0x4017b6
mov ebx, dword [esp + 0x42c]
mov esi, dword [sym.imp.MSVCRT.dll_sprintf]
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x10]
push ebp
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x14]
push 0x104
push ecx
call dword [sym.imp.MSVCRT.dll_fgets]
lea edi, [esp + 0x1c]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 1
jbe 0x4017ac
lea edi, [esp + 0x10]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edx, [esp + 0x10]
push edx
mov byte [esp + ecx + 0x13], al
mov eax, dword [esp + 0x428]
push eax
lea ecx, [esp + 0x11c]
push str._s__s
push ecx
call esi
mov eax, dword [esp + 0x438]
lea edx, [esp + 0x20]
push edx
push eax
lea ecx, [esp + 0x334]
push 0x407918
push ecx
call esi
lea edx, [esp + 0x30]
lea eax, [esp + 0x238]
push edx
push ebx
push 0x407918
push eax
call esi
add esp, 0x30
lea ecx, [esp + 0x114]
push ecx
call dword [sym.imp.WININET.dll_DeleteUrlCacheEntry]
push 0
lea edx, [esp + 0x21c]
push 0
lea eax, [esp + 0x11c]
push edx
push eax
push 0
call sub.urlmon.dll_URLDownloadToFileA
test eax, eax
jne 0x4017d0
lea ecx, [esp + 0x31c]
lea edx, [esp + 0x218]
push ecx
push edx
call dword [sym.imp.JCompress.dll_JDecompress2File]
add esp, 8
test byte [ebp + 0xc], 0x10
je 0x4016ce
push ebp
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x410
ret
push ebp
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x410
ret
Function at 0x4017f0
Capabilities:
Copy file
Move file

Disassembly:
sub esp, 0x514
push ebx
push ebp
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x421]
mov byte [esp + 0x420], 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 + 0x115]
mov byte [esp + 0x114], 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 + 0x219]
mov byte [esp + 0x218], 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 + 0x31d]
mov byte [esp + 0x31c], 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 + 0x11]
mov byte [esp + 0x10], 0
rep stosd dword es:[edi], eax
mov ebx, dword [esp + 0x52c]
mov esi, dword [sym.imp.MSVCRT.dll_sprintf]
stosw word es:[edi], ax
stosb byte es:[edi], al
push str.backup
push ebx
lea eax, [esp + 0x220]
push 0x407918
push eax
call esi
mov ecx, dword [esp + 0x540]
push 0x407910
push ecx
call dword [sym.imp.MSVCRT.dll_fopen]
mov ebp, eax
add esp, 0x18
test ebp, ebp
jne 0x4018c4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x514
ret
test byte [ebp + 0xc], 0x10
jne 0x40199d
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x10]
push ebp
lea edx, [esp + 0x14]
push 0x104
rep stosd dword es:[edi], eax
push edx
call dword [sym.imp.MSVCRT.dll_fgets]
lea edi, [esp + 0x1c]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x401993
lea edi, [esp + 0x10]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edx, [esp + 0x420]
mov byte [esp + ecx + 0xf], al
mov ecx, dword [esp + 0x528]
lea eax, [esp + 0x10]
push eax
push ecx
push 0x407918
push edx
call esi
lea eax, [esp + 0x20]
lea ecx, [esp + 0x124]
push eax
push ebx
push 0x407918
push ecx
call esi
lea edx, [esp + 0x30]
lea eax, [esp + 0x238]
push edx
push eax
lea ecx, [esp + 0x344]
push 0x407918
push ecx
call esi
add esp, 0x30
lea edx, [esp + 0x31c]
lea eax, [esp + 0x114]
push 1
push edx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
lea ecx, [esp + 0x114]
push 0
lea edx, [esp + 0x424]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test byte [ebp + 0xc], 0x10
je 0x4018ce
push ebp
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x514
ret
Function at 0x402ee3
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
lea eax, [ebp - 4]
push edi
push eax
mov eax, dword [0x449390]
or al, 8
xor ebx, ebx
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x402f5e
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov edi, 0x105
lea eax, [ebp - 0x10c]
push edi
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
jne 0x402f65
cmp dword [ebp + 0x10], ebx
jne 0x402f52
lea eax, [ebp - 0x10c]
push ebx
push eax
push dword [ebp - 4]
call fcn.00402ee3
test eax, eax
jne 0x402f65
lea eax, [ebp - 0x10c]
push edi
push eax
push ebx
push dword [ebp - 4]
jmp 0x402f25
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret 0xc
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 2
call fcn.0040655e
cmp eax, ebx
je 0x402f8a
push ebx
push dword [0x449390]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x402f5e
cmp dword [0x449390], ebx
jne 0x402f5b
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x402f5b
jmp 0x402f5e