joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4deda0
Capabilities:
Check if file exists
Delete file
Get common file path
Move file

Disassembly:
push 0xffffffffffffffff
push 0x50e937
mov eax, dword fs:[0]
push eax
sub esp, 0x224
mov eax, dword [0x53c1a4]
xor eax, esp
mov dword [esp + 0x220], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x53c1a4]
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 0x4df006
push 0x208
push eax
lea ecx, [esp + 0x2e]
push ecx
mov word [esp + 0x30], ax
call fcn.004f08c0
add esp, 0xc
push 0x104
lea edx, [esp + 0x28]
push esi
push edx
call fcn.004f01c8
add esp, 0xc
test eax, eax
je 0x4df004
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4df004
lea ecx, [esp + 0x24]
call fcn.004df310
test al, al
je 0x4df004
inc dword [0x548754]
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x28]
call fcn.00406d70
mov esi, eax
lea edx, [esp + 0x1c]
push edx
mov ecx, 0x523218
mov dword [esp + 0x244], 0
call fcn.00406d70
mov byte [esp + 0x240], 1
mov ecx, dword [esi]
mov edx, dword [eax]
push ecx
push edx
push 0x523224
mov ecx, 0x548980
call fcn.004dfcf0
add esp, 0xc
lea ecx, [esp + 0x1c]
call fcn.00406e40
lea ecx, [esp + 0x18]
mov dword [esp + 0x240], 0xffffffff
call fcn.00406e40
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ebp, eax
test ebp, ebp
jne 0x4df000
cmp dword [esp + 0x24c], eax
je 0x4df000
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x28]
call fcn.00406d70
lea edx, [esp + 0x20]
push edx
lea eax, [ebp + 4]
lea ecx, [esp + 0x20]
mov dword [esp + 0x244], 2
call fcn.00417f60
push eax
mov ecx, str..tmp
call fcn.00418120
add esp, 4
lea ecx, [esp + 0x1c]
mov bl, al
call fcn.00406e40
test bl, bl
je 0x4defe6
lea esi, [esp + 0x18]
call fcn.00404fc0
lea esi, [esp + 0x20]
mov byte [esp + 0x240], 3
call fcn.00417f40
lea ecx, [esp + 0x1c]
mov edx, esi
call fcn.00417fd0
mov ecx, 0x104
lea esi, [esp + 0x18]
mov byte [esp + 0x240], 4
call fcn.004076c0
push eax
mov eax, dword [esp + 0x20]
push ebp
push 0x5209ac
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov edi, eax
call fcn.00418f40
test edi, edi
jne 0x4def8c
lea ecx, [esp + 0x24]
push ecx
push str._s.tmp
mov edi, esi
call fcn.004190d0
mov esi, dword [esp + 0x20]
jmp 0x4def98
mov esi, dword [esp + 0x18]
push 1
push esi
call fcn.004deda0
add esp, 8
lea edx, [esp + 0x24]
push esi
push edx
call fcn.004ec7dc
add esp, 8
push 4
push 0
test eax, eax
jne 0x4defba
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
jmp 0x4defc7
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov ebp, eax
lea ecx, [esp + 0x1c]
call fcn.00406e40
lea ecx, [esp + 0x18]
call fcn.00406e40
lea ecx, [esp + 0x20]
call fcn.00406e40
mov eax, ebp
jmp 0x4df006
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.00406e40
mov eax, ebp
jmp 0x4df006
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.004ea83a
add esp, 0x230
ret
Function at 0x4df310
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x50e0f6
mov eax, dword fs:[0]
push eax
sub esp, 0x250
mov eax, dword [0x53c1a4]
xor eax, esp
mov dword [esp + 0x24c], eax
push ebx
push esi
push edi
mov eax, dword [0x53c1a4]
xor eax, esp
push eax
lea eax, [esp + 0x260]
mov dword fs:[0], eax
mov esi, ecx
test esi, esi
je 0x4df3e8
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4df3e8
xor eax, eax
push 0x208
push eax
lea ecx, [esp + 0x56]
push ecx
mov word [esp + 0x58], ax
call fcn.004f08c0
add esp, 0xc
push 0x104
lea edx, [esp + 0x50]
push esi
push edx
call fcn.004f01c8
add esp, 0xc
test eax, eax
jne 0x4df411
mov eax, esi
lea ecx, [esp + 0x14]
call fcn.00408b00
mov dword [esp + 0x268], 0
mov eax, dword [0x548948]
mov edx, dword [eax + 4]
lea edi, [eax + 4]
lea ecx, [esp + 0x14]
push ecx
push edx
push eax
call fcn.004e05e0
mov ecx, 0x548934
mov esi, eax
call fcn.004df5c0
mov dword [edi], esi
mov eax, dword [esi + 4]
mov dword [eax], esi
cmp dword [esp + 0x2c], 8
jb 0x4df3e8
mov ecx, dword [esp + 0x18]
push ecx
call fcn.004ea82f
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.004ea83a
add esp, 0x25c
ret
lea edx, [esp + 0x4c]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test eax, 0x400
je 0x4df454
lea eax, [esp + 0x4c]
lea ecx, [esp + 0x30]
call fcn.00408b00
lea eax, [esp + 0x30]
mov ebx, 0x548934
mov dword [esp + 0x268], 1
call fcn.004df570
lea esi, [esp + 0x30]
call fcn.0040efa0
jmp 0x4df3e8
mov al, 1
jmp 0x4df3ea

Function at 0x4df460
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x410
mov eax, dword [0x53c1a4]
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 0x4df54b
xor ecx, ecx
push 0x400
push ecx
lea edx, [esp + 0x12]
push edx
mov word [esp + 0x14], cx
call fcn.004f08c0
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 0x4df541
lea eax, [esp + 8]
push eax
push 0x104
push esi
call fcn.004eeee6
mov eax, esi
add esp, 0xc
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4df4f3
sub eax, edx
sar eax, 1
cmp word [esi + eax*2 - 2], 0x5c
je 0x4df51d
push 0x523214
push 0x104
push esi
call fcn.004f02d6
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.004ea83a
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.004ea83a
add esp, 0x410
ret
Function at 0x4df880
Capabilities:
Create thread

Disassembly:
sub esp, 0xf8
mov eax, dword [0x53c1a4]
xor eax, esp
mov dword [esp + 0xf0], eax
cmp dword [0x5489cc], 0
push ebp
push esi
push edi
mov esi, ecx
je 0x4df8bf
mov eax, 1
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0xf0]
xor ecx, esp
call fcn.004ea83a
add esp, 0xf8
ret
call fcn.004e01c0
mov eax, esi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4df8d0
sub eax, edx
sar eax, 1
push eax
mov eax, esi
mov esi, 0x548990
call fcn.00408a10
xor eax, eax
push 0xc6
push eax
lea ecx, [esp + 0x3a]
push ecx
mov dword [0x5489cc], 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.004f08c0
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.004ec979
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 [0x548984]
test eax, eax
je 0x4df9ad
push eax
call ebp
push 0
push 0
push 0
push 0
mov dword [0x548984], edi
call esi
mov esi, eax
mov eax, dword [0x548988]
test eax, eax
je 0x4df9cb
push eax
call ebp
cmp dword [0x548984], 0
mov dword [0x548988], esi
je 0x4dfa2b
test esi, esi
je 0x4dfa2b
push 0
push 0
push 0x548980
push 0x4dfef0
push 0
push 0
call fcn.004efc39
mov esi, eax
mov eax, dword [0x54898c]
add esp, 0x18
test eax, eax
je 0x4dfa06
push eax
call ebp
xor eax, eax
test esi, esi
mov dword [0x54898c], esi
setne al
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0xf0]
xor ecx, esp
call fcn.004ea83a
add esp, 0xf8
ret
mov ecx, dword [esp + 0xfc]
pop edi
pop esi
pop ebp
xor ecx, esp
xor eax, eax
call fcn.004ea83a
add esp, 0xf8
ret
Function at 0x4e0130
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp dword [eax + 0x2c], 0
push esi
lea esi, [eax + 0x2c]
jne 0x4e01b0
cmp dword [eax + 0x28], 8
jb 0x4e0146
mov eax, dword [eax + 0x14]
jmp 0x4e0149
add eax, 0x14
push 0x523368
push eax
push esi
call fcn.004ef7c3
mov eax, dword [esi]
add esp, 0xc
test eax, eax
je 0x4e01b0
push edi
push 2
push 0
push eax
call fcn.004ebc40
mov eax, dword [esi]
push eax
call fcn.004f015a
mov ecx, dword [esi]
push 0
push 0
push ecx
mov edi, eax
call fcn.004ebc40
add esp, 0x1c
test edi, edi
pop edi
jne 0x4e01b0
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.004ebb34
add esp, 0x10
xor eax, eax
cmp dword [esi], eax
pop esi
setne al
pop ecx
ret

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

Disassembly:
push 0xffffffffffffffff
push 0x50eae8
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x53c1a4]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov eax, dword [0x548994]
mov ebx, 8
cmp dword [0x5489a8], ebx
jae 0x4e01fd
mov eax, 0x548994
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 0x4e02d6
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4e0233
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, 0x80000
jb 0x4e02d6
mov ecx, dword [0x548994]
cmp dword [0x5489a8], ebx
jae 0x4e0259
mov ecx, 0x548994
lea eax, [esp + 0x14]
push eax
call fcn.00406d70
lea esi, [esp + 0x14]
mov dword [esp + 0x20], 0
call fcn.004e02f0
mov edi, dword [0x548994]
cmp dword [0x5489a8], ebx
jae 0x4e0287
mov edi, 0x548994
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.004deda0
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 0x4e02d6
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 0x4e3470
Capabilities:
Get common file path
Get startup folder

Disassembly:
push 0xffffffffffffffff
push 0x50d5d2
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x53c1a4]
xor eax, esp
mov dword [esp + 0x214], eax
push esi
push edi
mov eax, dword [0x53c1a4]
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.004f08c0
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 0x4e3504
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x18]
call fcn.00408a10
mov edi, esi
call fcn.004e3920
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.004ea83a
add esp, 0x224
ret

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

Disassembly:
push 0xffffffffffffffff
push 0x50d5d2
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x53c1a4]
xor eax, esp
mov dword [esp + 0x214], eax
push esi
push edi
mov eax, dword [0x53c1a4]
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.004f08c0
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 0x4e35e4
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x18]
call fcn.00408a10
mov edi, esi
call fcn.004e3920
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.004ea83a
add esp, 0x224
ret
Function at 0x4e3630
Capabilities:
Get common file path
Get startup folder

Disassembly:
push 0xffffffffffffffff
push 0x50d5d2
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x53c1a4]
xor eax, esp
mov dword [esp + 0x214], eax
push esi
push edi
mov eax, dword [0x53c1a4]
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.004f08c0
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 0x4e36c4
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x18]
call fcn.00408a10
mov edi, esi
call fcn.004e3920
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.004ea83a
add esp, 0x224
ret

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

Disassembly:
push 0xffffffffffffffff
push 0x50d5d2
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x53c1a4]
xor eax, esp
mov dword [esp + 0x214], eax
push esi
push edi
mov eax, dword [0x53c1a4]
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.004f08c0
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 0x4e37a4
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x18]
call fcn.00408a10
mov edi, esi
call fcn.004e3920
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.004ea83a
add esp, 0x224
ret
Function at 0x4e82f0
Capabilities:
Connect to http server
Create http request

Disassembly:
push 0xffffffffffffffff
push 0x50d4b8
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push edi
mov eax, dword [0x53c1a4]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov eax, dword [0x546fac]
mov edx, dword [eax + 0xc]
mov ecx, 0x546fac
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 0x4e8340
lea ebx, [eax + 1]
jmp 0x4e8373
cmp eax, 2
jne 0x4e8373
lea ebx, [eax + 1]
lea eax, [esi + 0x54e4]
lea edi, [esp + 0xc]
call fcn.00405050
mov eax, dword [esi + 0x54e8]
test eax, eax
jle 0x4e836f
push eax
push 0x523648
call fcn.004e8c70
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 0x4e83c2
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 0x4e83ae
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 0x4e8260
push eax
call dword [sym.imp.WININET.dll_InternetSetStatusCallbackW]
or ebx, 0xffffffff
cmp eax, ebx
je 0x4e8391
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 0x4e839b
lock xadd dword [ecx], ebx
dec ebx
test ebx, ebx
jg 0x4e8444
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 0x4e8d10
Capabilities:
Parse url

Disassembly:
sub esp, 0x3c
push 0x3c
lea eax, [esp + 4]
push 0
push eax
call fcn.004f08c0
push 0x5418
push 0
push esi
call fcn.004f08c0
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 0x4e8d91
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 0x4e8dee
mov eax, dword [esp + 0xc]
cmp eax, 3
je 0x4e8dc0
cmp eax, 4
jne 0x4e8dee
push edi
push 0x1000
push esi
call fcn.004eeee6
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 0x4e92c5
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x547000], 0
push esi
jne 0x4e9238
call fcn.004e915e
test eax, eax
je 0x4e927b
mov eax, dword [0x547000]
cmp eax, 1
jne 0x4e9259
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x4e927b
pop esi
ret
push eax
call dword [0x547008]
test eax, eax
jne 0x4e92c3
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 0x4e927f
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x547000]
call dword [0x547008]
mov edi, eax
test edi, edi
je 0x4e92a4
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x4e92c0
mov edi, esi
add esi, 0xff0
push edi
push dword [0x547000]
call dword [0x547004]
add edi, 0x10
cmp edi, esi
jb 0x4e92ac
mov eax, edi
pop edi
pop esi
ret
jmp 0x4e9225

Function at 0x4ea83a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x53c1a4]
jne 0x4ea844
repz ret
jmp fcn.004f5ada

Function at 0x4efce9
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 0x4efd1a
call fcn.004f2be9
mov dword [eax], esi
call fcn.004f2bd6
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.004ea9d1
add esp, 0x14
push 0x16
pop eax
jmp 0x4efd6f
test dword [ebp + 0xc], 0xfffffff9
jne 0x4efcf6
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4efd47
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004f2bfc
pop ecx
call fcn.004f2bd6
mov eax, dword [eax]
jmp 0x4efd6f
test al, 0x10
jne 0x4efd6d
test al, 1
je 0x4efd6d
test byte [ebp + 0xc], 2
je 0x4efd6d
call fcn.004f2be9
mov dword [eax], 5
call fcn.004f2bd6
mov dword [eax], 0xd
jmp 0x4efd3e
xor eax, eax
pop esi
pop ebp
ret
Function at 0x501850
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.004f543e
and dword [ebp - 4], 0
cmp dword [0x547de8], 0
mov ebx, eax
jne 0x501901
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x5019b2
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x5019b2
push eax
call fcn.004f53cc
mov dword [esp], 0x516590
push edi
mov dword [0x547de8], eax
call esi
push eax
call fcn.004f53cc
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x547dec], eax
call esi
push eax
call fcn.004f53cc
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x547df0], eax
call esi
push eax
call fcn.004f53cc
pop ecx
mov dword [0x547df8], eax
test eax, eax
je 0x501901
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004f53cc
pop ecx
mov dword [0x547df4], eax
mov eax, dword [0x547df4]
cmp eax, ebx
je 0x501959
cmp dword [0x547df8], ebx
je 0x501959
push eax
call fcn.004f5447
push dword [0x547df8]
mov esi, eax
call fcn.004f5447
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x501959
test edi, edi
je 0x501959
call esi
test eax, eax
je 0x501950
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x501950
test byte [ebp - 0xc], 1
jne 0x501959
or dword [ebp + 0x10], 0x200000
jmp 0x501992
mov eax, dword [0x547dec]
cmp eax, ebx
je 0x501992
push eax
call fcn.004f5447
pop ecx
test eax, eax
je 0x501992
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x501992
mov eax, dword [0x547df0]
cmp eax, ebx
je 0x501992
push eax
call fcn.004f5447
pop ecx
test eax, eax
je 0x501992
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x547de8]
call fcn.004f5447
pop ecx
test eax, eax
je 0x5019b2
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x5019b4
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4011c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4011db
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401212
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x40120e
jmp 0x401200
cmp esi, eax
jae 0x401212
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401200
cmp esi, eax
jb 0x401219
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret