joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4db410
Capabilities:
Delete file
Set file attributes

Disassembly:
cmp byte [edi], 0
jne 0x4db418
mov al, 1
ret
push esi
mov esi, dword [edi + 4]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x4db43d
xor al, al
test al, al
sete al
xor ecx, ecx
test al, al
sete cl
mov byte [edi], al
mov al, cl
pop esi
ret
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne al
test al, al
sete al
xor ecx, ecx
test al, al
sete cl
mov byte [edi], al
mov al, cl
pop esi
ret
Function at 0x4de510
Capabilities:
Check for peb beingdebugged flag
Check if file exists
Create directory
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x50f288
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x53a1a4]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebp
push esi
push edi
mov eax, dword [0x53a1a4]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov edi, dword [esp + 0x40]
xor eax, eax
mov word [esp + 0x14], ax
mov eax, edi
mov dword [esp + 0x28], 7
mov dword [esp + 0x24], 0
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4de561
sub eax, edx
sar eax, 1
push eax
mov eax, edi
lea esi, [esp + 0x14]
call fcn.004133e0
push edi
mov dword [esp + 0x3c], 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4de5a2
cmp dword [esp + 0x28], 8
jb 0x4de623
mov ecx, dword [esp + 0x14]
push ecx
jmp 0x4de61b
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0
push edi
call esi
test eax, eax
jne 0x4de60f
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebp
cmp eax, 0xb7
je 0x4de60f
lea edx, [esp + 0x10]
push edx
call fcn.004de3f0
add esp, 4
cmp dword [esp + 0x24], 0
jne 0x4de5e1
lea esi, [esp + 0x10]
call fcn.00426800
xor eax, eax
jmp 0x4de628
cmp dword [esp + 0x28], 8
mov eax, dword [esp + 0x14]
jae 0x4de5f0
lea eax, [esp + 0x14]
push eax
call fcn.004de510
add esp, 4
test eax, eax
je 0x4de5d4
push 0
push edi
call esi
test eax, eax
jne 0x4de60f
call ebp
cmp eax, 0xb7
jne 0x4de5d4
cmp dword [esp + 0x28], 8
jb 0x4de623
mov eax, dword [esp + 0x14]
push eax
call fcn.004ea0ff
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.004ea10a
add esp, 0x2c
ret
Function at 0x4de650
Capabilities:
Check if file exists
Delete file
Get common file path
Move file

Disassembly:
push 0xffffffffffffffff
push 0x50e0d7
mov eax, dword fs:[0]
push eax
sub esp, 0x224
mov eax, dword [0x53a1a4]
xor eax, esp
mov dword [esp + 0x220], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x53a1a4]
xor eax, esp
push eax
lea eax, [esp + 0x238]
mov dword fs:[0], eax
mov esi, dword [esp + 0x248]
xor eax, eax
test esi, esi
je 0x4de8b6
push 0x208
push eax
lea ecx, [esp + 0x2e]
push ecx
mov word [esp + 0x30], ax
call fcn.004f0190
add esp, 0xc
push 0x104
lea edx, [esp + 0x28]
push esi
push edx
call fcn.004efa98
add esp, 0xc
test eax, eax
je 0x4de8b4
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4de8b4
lea ecx, [esp + 0x24]
call fcn.004debc0
test al, al
je 0x4de8b4
inc dword [0x546754]
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x28]
call fcn.00406c40
mov esi, eax
lea edx, [esp + 0x1c]
push edx
mov ecx, 0x521f40
mov dword [esp + 0x244], 0
call fcn.00406c40
mov byte [esp + 0x240], 1
mov ecx, dword [esi]
mov edx, dword [eax]
push ecx
push edx
push 0x521f4c
mov ecx, 0x546980
call fcn.004df5a0
add esp, 0xc
lea ecx, [esp + 0x1c]
call fcn.00406cf0
lea ecx, [esp + 0x18]
mov dword [esp + 0x240], 0xffffffff
call fcn.00406cf0
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ebp, eax
test ebp, ebp
jne 0x4de8b0
cmp dword [esp + 0x24c], eax
je 0x4de8b0
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x28]
call fcn.00406c40
lea edx, [esp + 0x20]
push edx
lea eax, [ebp + 4]
lea ecx, [esp + 0x20]
mov dword [esp + 0x244], 2
call fcn.00417a00
push eax
mov ecx, str..tmp
call fcn.00417bc0
add esp, 4
lea ecx, [esp + 0x1c]
mov bl, al
call fcn.00406cf0
test bl, bl
je 0x4de896
lea esi, [esp + 0x18]
call fcn.00404e90
lea esi, [esp + 0x20]
mov byte [esp + 0x240], 3
call fcn.004179e0
lea ecx, [esp + 0x1c]
mov edx, esi
call fcn.00417a70
mov ecx, 0x104
lea esi, [esp + 0x18]
mov byte [esp + 0x240], 4
call fcn.00407660
push eax
mov eax, dword [esp + 0x20]
push ebp
push 0x51f6d4
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov edi, eax
call fcn.00418a60
test edi, edi
jne 0x4de83c
lea ecx, [esp + 0x24]
push ecx
push str._s.tmp
mov edi, esi
call fcn.00418bf0
mov esi, dword [esp + 0x20]
jmp 0x4de848
mov esi, dword [esp + 0x18]
push 1
push esi
call fcn.004de650
add esp, 8
lea edx, [esp + 0x24]
push esi
push edx
call fcn.004ec0ac
add esp, 8
push 4
push 0
test eax, eax
jne 0x4de86a
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
jmp 0x4de877
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov ebp, eax
lea ecx, [esp + 0x1c]
call fcn.00406cf0
lea ecx, [esp + 0x18]
call fcn.00406cf0
lea ecx, [esp + 0x20]
call fcn.00406cf0
mov eax, ebp
jmp 0x4de8b6
push 4
push 0
lea ecx, [esp + 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
lea ecx, [esp + 0x20]
mov ebp, eax
call fcn.00406cf0
mov eax, ebp
jmp 0x4de8b6
xor eax, eax
mov ecx, dword [esp + 0x238]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x220]
xor ecx, esp
call fcn.004ea10a
add esp, 0x230
ret
Function at 0x4debc0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x50dff6
mov eax, dword fs:[0]
push eax
sub esp, 0x250
mov eax, dword [0x53a1a4]
xor eax, esp
mov dword [esp + 0x24c], eax
push ebx
push esi
push edi
mov eax, dword [0x53a1a4]
xor eax, esp
push eax
lea eax, [esp + 0x260]
mov dword fs:[0], eax
mov esi, ecx
test esi, esi
je 0x4dec98
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4dec98
xor eax, eax
push 0x208
push eax
lea ecx, [esp + 0x56]
push ecx
mov word [esp + 0x58], ax
call fcn.004f0190
add esp, 0xc
push 0x104
lea edx, [esp + 0x50]
push esi
push edx
call fcn.004efa98
add esp, 0xc
test eax, eax
jne 0x4decc1
mov eax, esi
lea ecx, [esp + 0x14]
call fcn.004134d0
mov dword [esp + 0x268], 0
mov eax, dword [0x546948]
mov edx, dword [eax + 4]
lea edi, [eax + 4]
lea ecx, [esp + 0x14]
push ecx
push edx
push eax
call fcn.004dfe80
mov ecx, 0x546934
mov esi, eax
call fcn.004dee70
mov dword [edi], esi
mov eax, dword [esi + 4]
mov dword [eax], esi
cmp dword [esp + 0x2c], 8
jb 0x4dec98
mov ecx, dword [esp + 0x18]
push ecx
call fcn.004ea0ff
add esp, 4
xor al, al
mov ecx, dword [esp + 0x260]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x24c]
xor ecx, esp
call fcn.004ea10a
add esp, 0x25c
ret
lea edx, [esp + 0x4c]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test eax, 0x400
je 0x4ded04
lea eax, [esp + 0x4c]
lea ecx, [esp + 0x30]
call fcn.004134d0
lea eax, [esp + 0x30]
mov ebx, 0x546934
mov dword [esp + 0x268], 1
call fcn.004dee20
lea esi, [esp + 0x30]
call fcn.00426800
jmp 0x4dec98
mov al, 1
jmp 0x4dec9a

Function at 0x4ded10
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x410
mov eax, dword [0x53a1a4]
xor eax, esp
mov dword [esp + 0x40c], eax
lea eax, [esp]
push eax
push 0x201
push 0
push str.SoftwareBottleTechShuame
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4dedfb
xor ecx, ecx
push 0x400
push ecx
lea edx, [esp + 0x12]
push edx
mov word [esp + 0x14], cx
call fcn.004f0190
mov edx, dword [esp + 0xc]
add esp, 0xc
lea eax, [esp + 4]
push eax
lea ecx, [esp + 0xc]
push ecx
push 0
push 0
push str.InstallDir
push edx
mov dword [esp + 0x1c], 0x200
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4dedf1
lea eax, [esp + 8]
push eax
push 0x104
push esi
call fcn.004ee7b6
mov eax, esi
add esp, 0xc
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4deda3
sub eax, edx
sar eax, 1
cmp word [esi + eax*2 - 2], 0x5c
je 0x4dedcd
push 0x521f3c
push 0x104
push esi
call fcn.004efba6
add esp, 0xc
mov ecx, dword [esp]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
mov ecx, dword [esp + 0x40c]
xor ecx, esp
call fcn.004ea10a
add esp, 0x410
ret
mov edx, dword [esp]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x40c]
xor ecx, esp
xor eax, eax
call fcn.004ea10a
add esp, 0x410
ret
Function at 0x4df130
Capabilities:
Create thread

Disassembly:
sub esp, 0xf8
mov eax, dword [0x53a1a4]
xor eax, esp
mov dword [esp + 0xf0], eax
cmp dword [0x5469cc], 0
push ebp
push esi
push edi
mov esi, ecx
je 0x4df16f
mov eax, 1
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0xf0]
xor ecx, esp
call fcn.004ea10a
add esp, 0xf8
ret
call fcn.004dfa70
mov eax, esi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4df180
sub eax, edx
sar eax, 1
push eax
mov eax, esi
mov esi, 0x546990
call fcn.004133e0
xor eax, eax
push 0xc6
push eax
lea ecx, [esp + 0x3a]
push ecx
mov dword [0x5469cc], 1
mov byte [esp + 0x1c], 0
mov dword [esp + 0x1d], eax
mov dword [esp + 0x21], eax
mov dword [esp + 0x25], eax
mov dword [esp + 0x29], eax
mov word [esp + 0x2d], ax
mov byte [esp + 0x2f], al
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov word [esp + 0x3c], ax
call fcn.004f0190
add esp, 0xc
push 1
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
push 0
push 0
push 1
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
lea ecx, [esp + 0x10]
mov dword [esp + 0x24], 0xc
mov dword [esp + 0x28], ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push str.GlobalBFD88F2D_0990_4de4_AD0F_764F5894389A__d
lea edx, [esp + 0x38]
push 0x63
push edx
call fcn.004ec249
mov esi, dword [sym.imp.KERNEL32.dll_CreateEventW]
add esp, 0x10
lea eax, [esp + 0x30]
push eax
push 1
push 1
lea ecx, [esp + 0x30]
push ecx
call esi
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, eax
mov eax, dword [0x546984]
test eax, eax
je 0x4df25d
push eax
call ebp
push 0
push 0
push 0
push 0
mov dword [0x546984], edi
call esi
mov esi, eax
mov eax, dword [0x546988]
test eax, eax
je 0x4df27b
push eax
call ebp
cmp dword [0x546984], 0
mov dword [0x546988], esi
je 0x4df2db
test esi, esi
je 0x4df2db
push 0
push 0
push 0x546980
push 0x4df7a0
push 0
push 0
call fcn.004ef509
mov esi, eax
mov eax, dword [0x54698c]
add esp, 0x18
test eax, eax
je 0x4df2b6
push eax
call ebp
xor eax, eax
test esi, esi
mov dword [0x54698c], esi
setne al
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0xf0]
xor ecx, esp
call fcn.004ea10a
add esp, 0xf8
ret
mov ecx, dword [esp + 0xfc]
pop edi
pop esi
pop ebp
xor ecx, esp
xor eax, eax
call fcn.004ea10a
add esp, 0xf8
ret
Function at 0x4df9e0
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp dword [eax + 0x2c], 0
push esi
lea esi, [eax + 0x2c]
jne 0x4dfa60
cmp dword [eax + 0x28], 8
jb 0x4df9f6
mov eax, dword [eax + 0x14]
jmp 0x4df9f9
add eax, 0x14
push 0x522090
push eax
push esi
call fcn.004ef093
mov eax, dword [esi]
add esp, 0xc
test eax, eax
je 0x4dfa60
push edi
push 2
push 0
push eax
call fcn.004eb510
mov eax, dword [esi]
push eax
call fcn.004efa2a
mov ecx, dword [esi]
push 0
push 0
push ecx
mov edi, eax
call fcn.004eb510
add esp, 0x1c
test edi, edi
pop edi
jne 0x4dfa60
mov eax, dword [esi]
push eax
push 2
xor edx, edx
lea ecx, [esp + 0xc]
mov word [esp + 0xd], dx
push 1
push ecx
mov byte [esp + 0x14], 0xff
mov byte [esp + 0x15], 0xfe
mov byte [esp + 0x16], dl
call fcn.004eb404
add esp, 0x10
xor eax, eax
cmp dword [esi], eax
pop esi
setne al
pop ecx
ret

Function at 0x4dfa70
Capabilities:
Get file size
Move file
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x50f8d8
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x53a1a4]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov eax, dword [0x546994]
mov ebx, 8
cmp dword [0x5469a8], ebx
jae 0x4dfaad
mov eax, 0x546994
push 0
push 0x80
push 3
push 0
push 3
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4dfb86
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4dfae3
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, 0x80000
jb 0x4dfb86
mov ecx, dword [0x546994]
cmp dword [0x5469a8], ebx
jae 0x4dfb09
mov ecx, 0x546994
lea eax, [esp + 0x14]
push eax
call fcn.00406c40
lea esi, [esp + 0x14]
mov dword [esp + 0x20], 0
call fcn.004dfba0
mov edi, dword [0x546994]
cmp dword [0x5469a8], ebx
jae 0x4dfb37
mov edi, 0x546994
mov esi, dword [esp + 0x14]
mov ebx, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0
push esi
call ebx
push 1
push esi
call fcn.004de650
add esp, 8
push 0
push edi
call ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
mov dword [esp + 0x20], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4dfb86
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x14
ret
Function at 0x4e2d60
Capabilities:
Get common file path
Get startup folder

Disassembly:
push 0xffffffffffffffff
push 0x50df12
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x53a1a4]
xor eax, esp
mov dword [esp + 0x214], eax
push esi
push edi
mov eax, dword [0x53a1a4]
xor eax, esp
push eax
lea eax, [esp + 0x224]
mov dword fs:[0], eax
mov esi, ecx
xor edi, edi
mov dword [esp + 0xc], edi
xor eax, eax
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], edi
mov dword [esp + 0x10], esi
mov word [esi + 4], ax
push 0x208
lea edx, [esp + 0x1a]
mov dword [esp + 0x230], edi
xor ecx, ecx
push edi
push edx
mov dword [esp + 0x18], 1
mov word [esp + 0x20], cx
call fcn.004f0190
add esp, 0xc
push edi
push 0x10
lea eax, [esp + 0x1c]
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [esp + 0x14]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x4e2df4
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x18]
call fcn.004133e0
mov edi, esi
call fcn.004e3210
mov eax, esi
mov ecx, dword [esp + 0x224]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x214]
xor ecx, esp
call fcn.004ea10a
add esp, 0x224
ret

Function at 0x4e2e40
Capabilities:
Get common file path
Get startup folder

Disassembly:
push 0xffffffffffffffff
push 0x50df12
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x53a1a4]
xor eax, esp
mov dword [esp + 0x214], eax
push esi
push edi
mov eax, dword [0x53a1a4]
xor eax, esp
push eax
lea eax, [esp + 0x224]
mov dword fs:[0], eax
mov esi, ecx
xor edi, edi
mov dword [esp + 0xc], edi
xor eax, eax
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], edi
mov dword [esp + 0x10], esi
mov word [esi + 4], ax
push 0x208
lea edx, [esp + 0x1a]
mov dword [esp + 0x230], edi
xor ecx, ecx
push edi
push edx
mov dword [esp + 0x18], 1
mov word [esp + 0x20], cx
call fcn.004f0190
add esp, 0xc
push edi
push 0x19
lea eax, [esp + 0x1c]
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [esp + 0x14]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x4e2ed4
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x18]
call fcn.004133e0
mov edi, esi
call fcn.004e3210
mov eax, esi
mov ecx, dword [esp + 0x224]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x214]
xor ecx, esp
call fcn.004ea10a
add esp, 0x224
ret
Function at 0x4e2f20
Capabilities:
Get common file path
Get startup folder

Disassembly:
push 0xffffffffffffffff
push 0x50df12
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x53a1a4]
xor eax, esp
mov dword [esp + 0x214], eax
push esi
push edi
mov eax, dword [0x53a1a4]
xor eax, esp
push eax
lea eax, [esp + 0x224]
mov dword fs:[0], eax
mov esi, ecx
xor edi, edi
mov dword [esp + 0xc], edi
xor eax, eax
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], edi
mov dword [esp + 0x10], esi
mov word [esi + 4], ax
push 0x208
lea edx, [esp + 0x1a]
mov dword [esp + 0x230], edi
xor ecx, ecx
push edi
push edx
mov dword [esp + 0x18], 1
mov word [esp + 0x20], cx
call fcn.004f0190
add esp, 0xc
push edi
push 2
lea eax, [esp + 0x1c]
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [esp + 0x14]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x4e2fb4
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x18]
call fcn.004133e0
mov edi, esi
call fcn.004e3210
mov eax, esi
mov ecx, dword [esp + 0x224]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x214]
xor ecx, esp
call fcn.004ea10a
add esp, 0x224
ret

Function at 0x4e3000
Capabilities:
Get common file path
Get startup folder

Disassembly:
push 0xffffffffffffffff
push 0x50df12
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x53a1a4]
xor eax, esp
mov dword [esp + 0x214], eax
push esi
push edi
mov eax, dword [0x53a1a4]
xor eax, esp
push eax
lea eax, [esp + 0x224]
mov dword fs:[0], eax
mov esi, ecx
xor edi, edi
mov dword [esp + 0xc], edi
xor eax, eax
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], edi
mov dword [esp + 0x10], esi
mov word [esi + 4], ax
push 0x208
lea edx, [esp + 0x1a]
mov dword [esp + 0x230], edi
xor ecx, ecx
push edi
push edx
mov dword [esp + 0x18], 1
mov word [esp + 0x20], cx
call fcn.004f0190
add esp, 0xc
push edi
push 0x17
lea eax, [esp + 0x1c]
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [esp + 0x14]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x4e3094
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x18]
call fcn.004133e0
mov edi, esi
call fcn.004e3210
mov eax, esi
mov ecx, dword [esp + 0x224]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x214]
xor ecx, esp
call fcn.004ea10a
add esp, 0x224
ret
Function at 0x4e7bc0
Capabilities:
Connect to http server
Create http request

Disassembly:
push 0xffffffffffffffff
push 0x50cd18
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push edi
mov eax, dword [0x53a1a4]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov eax, dword [0x544fac]
mov edx, dword [eax + 0xc]
mov ecx, 0x544fac
xor ebx, ebx
call edx
lea edi, [eax + 0x10]
mov dword [esp + 0xc], edi
mov dword [esp + 0x1c], ebx
mov eax, dword [esi + 0x54e0]
test eax, eax
jne 0x4e7c10
lea ebx, [eax + 1]
jmp 0x4e7c43
cmp eax, 2
jne 0x4e7c43
lea ebx, [eax + 1]
lea eax, [esi + 0x54e4]
lea edi, [esp + 0xc]
call fcn.00404f20
mov eax, dword [esi + 0x54e8]
test eax, eax
jle 0x4e7c3f
push eax
push 0x522370
call fcn.004e8540
add esp, 8
mov edi, dword [esp + 0xc]
push 0x10000000
push 0
push edi
push ebx
push str.Mozilla_4.0__compatible__MSIE_6.0__Windows_NT_5.1__SV1__.NET_CLR_2.0.50727__.NET_CLR_3.0.04506.648__.NET_CLR_3.5.8888.8888__
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [esi + 8], eax
test eax, eax
jne 0x4e7c92
or ebx, 0xffffffff
lea eax, [edi - 0x10]
mov dword [esp + 0x1c], ebx
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebx
dec ebx
test ebx, ebx
jg 0x4e7c7e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
add esp, 0x14
ret
push 0x4e7b30
push eax
call dword [sym.imp.WININET.dll_InternetSetStatusCallbackW]
or ebx, 0xffffffff
cmp eax, ebx
je 0x4e7c61
mov edx, dword [esi + 8]
push 4
lea ecx, [esp + 0x14]
push ecx
push 2
push edx
mov dword [esp + 0x20], 0x7530
call dword [sym.imp.WININET.dll_InternetSetOptionW]
movzx eax, word [esi + 0x2014]
mov edx, dword [esi + 8]
push esi
push 0
push 3
push 0
push 0
push eax
lea ecx, [esi + 0x201c]
push ecx
push edx
mov dword [esi + 0x5480], 1
call dword [sym.imp.WININET.dll_InternetConnectW]
mov dword [esi + 0xc], eax
test eax, eax
lea eax, [edi - 0x10]
mov dword [esp + 0x1c], ebx
lea ecx, [eax + 0xc]
je 0x4e7c6b
lock xadd dword [ecx], ebx
dec ebx
test ebx, ebx
jg 0x4e7d14
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
add esp, 0x14
ret
Function at 0x4e85e0
Capabilities:
Parse url

Disassembly:
sub esp, 0x3c
push 0x3c
lea eax, [esp + 4]
push 0
push eax
call fcn.004f0190
push 0x5418
push 0
push esi
call fcn.004f0190
mov eax, 0x400
mov dword [esp + 0x2c], eax
mov dword [esp + 0x48], eax
lea eax, [esi + 0x3008]
lea edx, [esi + 0x2808]
mov dword [esp + 0x34], eax
mov eax, 0x104
lea ecx, [esi + 0x2008]
mov dword [esp + 0x44], edx
lea edx, [esi + 0x3418]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x38], eax
mov dword [esp + 0x40], eax
lea ecx, [esi + 0x3210]
mov eax, edi
mov dword [esp + 0x4c], edx
add esp, 0x18
mov dword [esp], 0x3c
mov dword [esp + 0x24], ecx
mov dword [esp + 0x38], 0x1000
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4e8661
lea ecx, [esp]
push ecx
sub eax, edx
push 0
sar eax, 1
push eax
push edi
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
je 0x4e86be
mov eax, dword [esp + 0xc]
cmp eax, 3
je 0x4e8690
cmp eax, 4
jne 0x4e86be
push edi
push 0x1000
push esi
call fcn.004ee7b6
mov eax, dword [esp + 0x18]
mov dx, word [esp + 0x24]
mov dword [esi + 0x2004], eax
add esp, 0xc
mov word [esi + 0x2000], dx
mov eax, 1
add esp, 0x3c
ret
xor eax, eax
add esp, 0x3c
ret

Function at 0x4e8b95
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x545000], 0
push esi
jne 0x4e8b08
call fcn.004e8a2e
test eax, eax
je 0x4e8b4b
mov eax, dword [0x545000]
cmp eax, 1
jne 0x4e8b29
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x4e8b4b
pop esi
ret
push eax
call dword [0x545008]
test eax, eax
jne 0x4e8b93
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x4e8b4f
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x545000]
call dword [0x545008]
mov edi, eax
test edi, edi
je 0x4e8b74
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x4e8b90
mov edi, esi
add esi, 0xff0
push edi
push dword [0x545000]
call dword [0x545004]
add edi, 0x10
cmp edi, esi
jb 0x4e8b7c
mov eax, edi
pop edi
pop esi
ret
jmp 0x4e8af5

Function at 0x4ea10a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x53a1a4]
jne 0x4ea114
repz ret
jmp fcn.004f53aa

Function at 0x4ef5b9
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x4ef5ea
call fcn.004f24b9
mov dword [eax], esi
call fcn.004f24a6
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.004ea2a1
add esp, 0x14
push 0x16
pop eax
jmp 0x4ef63f
test dword [ebp + 0xc], 0xfffffff9
jne 0x4ef5c6
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4ef617
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004f24cc
pop ecx
call fcn.004f24a6
mov eax, dword [eax]
jmp 0x4ef63f
test al, 0x10
jne 0x4ef63d
test al, 1
je 0x4ef63d
test byte [ebp + 0xc], 2
je 0x4ef63d
call fcn.004f24b9
mov dword [eax], 5
call fcn.004f24a6
mov dword [eax], 0xd
jmp 0x4ef60e
xor eax, eax
pop esi
pop ebp
ret