joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49f6f0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x78
push ebx
xor eax, eax
xor ebx, ebx
test dword [edi + 0x1a4], 0xfffffffe
push esi
mov dword [esp + 8], eax
jbe 0x49f844
fld1
fldz
mov ecx, dword [edi + 0x1a0]
mov dword [esp + 0xc], ebx
mov esi, dword [ecx + eax*4]
cmp esi, ebx
je 0x49f825
mov edx, dword [esi]
fxch st(1)
mov edx, dword [edx + 0xc]
fst dword [esp + 0x38]
fst dword [esp + 0x48]
lea eax, [esp + 0xc]
fstp dword [esp + 0x58]
push eax
lea ecx, [esp + 0x14]
fst dword [esp + 0x40]
push ecx
fst dword [esp + 0x48]
push edi
fst dword [esp + 0x50]
mov ecx, esi
fst dword [esp + 0x58]
mov dword [esp + 0x1c], vtable.ytUIEvent.0
fst dword [esp + 0x5c]
mov byte [esp + 0x68], 1
fst dword [esp + 0x60]
mov dword [esp + 0x84], ebx
fst dword [esp + 0x70]
mov dword [esp + 0x40], ebx
fst dword [esp + 0x74]
mov byte [esp + 0x88], bl
fst dword [esp + 0x78]
mov byte [esp + 0x89], bl
fstp dword [esp + 0x7c]
mov byte [esp + 0x80], bl
fldz
mov dword [esp + 0x6c], ebx
fstp qword [esp + 0x2c]
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x24], 0x20
call edx
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov ecx, esi
call edx
mov eax, dword [esp + 0x78]
cmp eax, ebx
mov dword [esp + 0x10], vtable.ytUIEvent.0
je 0x49f81f
movzx ecx, byte [eax]
cmp ecx, 0x80
mov esi, eax
jae 0x49f81f
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
and eax, 0xff
cmp eax, 0x7f
jne 0x49f80e
movzx edx, byte [esi]
cmp edx, 0x80
jae 0x49f809
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
and eax, 0xff
jmp 0x49f80e
mov eax, 0xff
cmp eax, ebx
jne 0x49f81f
mov eax, dword [esp + 0x78]
push eax
call fcn.0045da90
add esp, 4
fldz
fld1
fxch st(1)
mov eax, dword [esp + 8]
mov ecx, dword [edi + 0x1a4]
add eax, 1
shr ecx, 1
cmp eax, ecx
mov dword [esp + 8], eax
jb 0x49f717
fstp st(0)
fstp st(0)
mov eax, dword [edi + 0x1a0]
cmp eax, ebx
je 0x49f864
push eax
call fcn.0045da90
add esp, 4
and dword [edi + 0x1a4], 1
mov dword [edi + 0x1a0], ebx
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4a52a0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x2c
push ebp
mov ebp, dword [esp + 0x38]
push esi
xor esi, esi
cmp ebx, esi
push edi
mov byte [eax + 0x10], 0
je 0x4a5344
cmp byte [esp + 0x44], 0
mov dword [esp + 0x40], esi
lea eax, [esi + 0xe]
lea ecx, [esp + 0x40]
mov edi, str.lb_cancelpopup
jne 0x4a52d8
mov edi, str.lb_preendpopup
call fcn.00459750
mov eax, dword [esp + 0x40]
cmp eax, esi
mov dword [esp + 0x24], eax
mov byte [esp + 0x20], 0
mov dword [esp + 0x1c], esi
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], esi
je 0x4a5310
movzx ecx, byte [eax]
cmp ecx, 0x80
jae 0x4a5310
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
lea edi, [esp + 0x40]
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0x8000002
mov dword [esp + 0x34], ebx
call fcn.00401700
mov edx, dword [ebx]
mov edx, dword [edx + 0x70]
lea eax, [esp + 0x10]
push eax
mov ecx, ebx
call edx
lea edi, [esp + 0x24]
call fcn.00401700
mov eax, dword [esp + 0x3c]
mov eax, dword [eax + 8]
cmp eax, esi
je 0x4a5354
add eax, 4
jmp 0x4a5356
xor eax, eax
call fcn.0046a360
cmp byte [eax + 0x359], 0
je 0x4a538c
lea esi, [esp + 0x3c]
mov edi, eax
call fcn.004a0f70
mov eax, dword [eax]
test eax, eax
je 0x4a537a
add eax, 4
jmp 0x4a537c
xor eax, eax
call fcn.0046a670
lea edi, [esp + 0x3c]
call fcn.00401700
xor esi, esi
mov eax, ebp
call fcn.0049b700
mov ecx, dword [eax + 0x158]
cmp ecx, esi
je 0x4a53a7
mov edx, dword [eax]
push ecx
mov ecx, eax
mov eax, dword [edx + 0x78]
call eax
mov eax, ebp
call fcn.0049b700
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x68]
push esi
call eax
fldz
or dword [ebp + 8], 7
sub esp, 0x10
mov eax, esp
or ecx, 0xffffffff
mov dword [eax], ecx
push 1
or edx, ecx
mov dword [eax + 4], edx
push ecx
or edi, ecx
mov dword [eax + 8], edi
or esi, ecx
mov dword [eax + 0xc], esi
fstp dword [esp]
push 1
push 1
mov eax, ebp
call fcn.0049b700
push eax
call fcn.004af9d0
xor esi, esi
cmp ebx, esi
je 0x4a548c
cmp byte [esp + 0x44], 0
jne 0x4a548c
lea eax, [esi + 0xb]
mov edi, str.lb_endpopup
lea ecx, [esp + 0x44]
mov dword [esp + 0x44], esi
call fcn.00459750
mov eax, dword [esp + 0x44]
cmp eax, esi
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
mov byte [esp + 0x20], 0
mov dword [esp + 0x24], eax
je 0x4a544b
movzx ecx, byte [eax]
cmp ecx, 0x80
jae 0x4a544b
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
lea edi, [esp + 0x44]
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0x8000002
mov dword [esp + 0x34], ebx
call fcn.00401700
mov edx, dword [ebx]
mov edx, dword [edx + 0x70]
lea eax, [esp + 0x10]
push eax
mov ecx, ebx
call edx
lea edi, [esp + 0x24]
mov esi, eax
call fcn.00401700
mov eax, esi
pop edi
pop esi
pop ebp
add esp, 0x2c
ret 0xc
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x2c
ret 0xc
Function at 0x4c17c0
Capabilities:
Write clipboard data

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
mov esi, dword [esp + 0x18]
cmp byte [esi], 0
push edi
mov ebx, eax
jne 0x4c17df
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 4
mov dword [esp + 0x10], 0
call dword [sym.imp.USER32.dll_EmptyClipboard]
cmp dword [ebx + 0x10], 0
je 0x4c17d2
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push edi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ecx, dword [ebx + 8]
mov esi, eax
mov eax, dword [ebx + 0xc]
push eax
push ecx
push edi
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov ebp, eax
push ebp
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
or ecx, 0xffffffff
sub esp, 0x10
mov dword [esp + 0x24], eax
mov eax, esp
mov dword [eax], ecx
or edx, ecx
mov dword [eax + 4], edx
or ecx, ecx
mov dword [eax + 8], ecx
or ecx, 0xffffffff
mov dword [eax + 0xc], ecx
push ebx
mov eax, esi
call fcn.0047a6f0
push ebp
push 2
call dword [sym.imp.USER32.dll_SetClipboardData]
test eax, eax
jne 0x4c1859
or ebp, 0xffffffff
jmp 0x4c185d
mov ebp, dword [esp + 0x10]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov ecx, dword [esp + 0x14]
mov ebx, dword [esp + 0x1c]
push ecx
push esi
mov byte [ebx], 0
call dword [sym.imp.GDI32.dll_SelectObject]
push esi
call dword [sym.imp.GDI32.dll_DeleteDC]
mov edx, dword [ebx + 4]
push edi
push edx
call dword [sym.imp.USER32.dll_ReleaseDC]
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 8
ret 4

Function at 0x4c20f0
Capabilities:
Get token membership

Disassembly:
sub esp, 0x14
mov eax, dword [0x6d7160]
xor eax, esp
mov dword [esp + 0x10], eax
push ebx
xor ebx, ebx
lea eax, [esp + 8]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea ecx, [esp + 0x34]
push ecx
mov byte [esp + 0x38], bl
mov byte [esp + 0x39], bl
mov byte [esp + 0x3a], bl
mov byte [esp + 0x3b], bl
mov byte [esp + 0x3c], bl
mov byte [esp + 0x3d], 5
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
cmp eax, ebx
mov dword [esp + 4], eax
je 0x4c216b
mov eax, dword [esp + 8]
lea edx, [esp + 4]
push edx
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x4c215a
mov dword [esp + 4], ebx
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [esp + 4]
cmp eax, ebx
mov ecx, dword [esp + 0x14]
setne al
pop ebx
xor ecx, esp
call fcn.00607d6d
add esp, 0x14
ret
Function at 0x4c2c50
Capabilities:
Create thread

Disassembly:
push ecx
mov eax, dword [0x6fa11c]
push esi
lea ecx, [esp + 4]
push ecx
push 0
push eax
push 0x4c2c40
push 0
push 0
mov dword [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
test esi, esi
je 0x4c2c91
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop esi
pop ecx
ret
or eax, 0xffffffff
pop esi
pop ecx
ret

Function at 0x4c3470
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [0x6fa124]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
push 8
xor ebx, ebx
push ebx
push str.usp10.dll
call edi
cmp eax, ebx
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esi], eax
jne 0x4c349d
mov dword [esi + 4], ebx
jmp 0x4c34a8
push str.ScriptRecordDigitSubstitution
push eax
call ebp
mov dword [esi + 4], eax
push 8
push ebx
push str.usp10.dll
call edi
cmp eax, ebx
mov dword [esi + 8], eax
jne 0x4c34be
mov dword [esi + 0xc], ebx
jmp 0x4c34c9
push str.ScriptApplyDigitSubstitution
push eax
call ebp
mov dword [esi + 0xc], eax
push 8
push ebx
push str.usp10.dll
call edi
cmp eax, ebx
mov dword [esi + 0x10], eax
jne 0x4c34df
mov dword [esi + 0x14], ebx
jmp 0x4c34ea
push str.ScriptFreeCache
push eax
call ebp
mov dword [esi + 0x14], eax
push 8
push ebx
push str.usp10.dll
call edi
cmp eax, ebx
mov dword [esi + 0x18], eax
jne 0x4c3500
mov dword [esi + 0x1c], ebx
jmp 0x4c350b
push str.ScriptShape
push eax
call ebp
mov dword [esi + 0x1c], eax
push 8
push ebx
push str.usp10.dll
call edi
cmp eax, ebx
mov dword [esi + 0x20], eax
jne 0x4c3521
mov dword [esi + 0x24], ebx
jmp 0x4c352c
push str.ScriptPlace
push eax
call ebp
mov dword [esi + 0x24], eax
push 8
push ebx
push str.usp10.dll
call edi
cmp eax, ebx
mov dword [esi + 0x28], eax
jne 0x4c3542
mov dword [esi + 0x2c], ebx
jmp 0x4c354d
push str.ScriptBreak
push eax
call ebp
mov dword [esi + 0x2c], eax
push 8
push ebx
push str.usp10.dll
call edi
cmp eax, ebx
mov dword [esi + 0x30], eax
jne 0x4c3563
mov dword [esi + 0x34], ebx
jmp 0x4c356e
push str.ScriptItemize
push eax
call ebp
mov dword [esi + 0x34], eax
push 8
push ebx
push str.usp10.dll
call edi
cmp eax, ebx
mov dword [esi + 0x38], eax
jne 0x4c3584
mov dword [esi + 0x3c], ebx
jmp 0x4c358f
push str.ScriptLayout
push eax
call ebp
mov dword [esi + 0x3c], eax
push 8
push ebx
push str.usp10.dll
call edi
cmp eax, ebx
mov dword [esi + 0x40], eax
jne 0x4c35a5
mov dword [esi + 0x44], ebx
jmp 0x4c35b0
push str.ScriptGetProperties
push eax
call ebp
mov dword [esi + 0x44], eax
cmp dword [esi + 4], ebx
je 0x4c35e4
cmp dword [esi + 0xc], ebx
je 0x4c35e4
cmp dword [esi + 0x14], ebx
je 0x4c35e4
cmp dword [esi + 0x1c], ebx
je 0x4c35e4
cmp dword [esi + 0x24], ebx
je 0x4c35e4
cmp dword [esi + 0x2c], ebx
je 0x4c35e4
cmp dword [esi + 0x34], ebx
je 0x4c35e4
cmp dword [esi + 0x3c], ebx
je 0x4c35e4
cmp dword [esi + 0x44], ebx
je 0x4c35e4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret
Function at 0x4c6be0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
mov dword [ebp], 0
mov dword [ebp + 4], 0x67
push edi
mov ebx, 0xf9
add ebp, 0x3ec
call fcn.0060915b
mov edi, eax
shl edi, 0xc
call fcn.0060915b
mov esi, eax
xor esi, edi
shl esi, 0xc
call fcn.0060915b
xor eax, esi
mov dword [ebp], eax
sub ebx, 1
sub ebp, 4
test ebx, ebx
jge 0x4c6c01
mov esi, dword [esp + 0x14]
or edx, 0xffffffff
mov eax, SysReAllocString
lea ecx, [esi + 0x14]
lea ebx, [ebx]
mov edi, dword [ecx]
and edi, edx
or edi, eax
mov dword [ecx], edi
shr eax, 1
shr edx, 1
add ecx, 0x1c
test eax, eax
jne 0x4c6c40
lea ecx, [esi + 0x3f0]
lea esp, [esp]
add eax, 1
mov dword [ecx], eax
add ecx, 4
cmp eax, 0xfa
jl 0x4c6c60
pop edi
mov dword [esi + 0x7d4], 0
mov eax, esi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x4cb2a0
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x16b0]
shr ecx, 1
lea edx, [eax + 1]
cmp edx, ecx
push edi
lea edi, [eax*4]
jae 0x4cb2ca
mov eax, dword [esi + 0x16ac]
lea ecx, [eax + edi]
mov eax, dword [ecx + 4]
sub eax, dword [ecx]
jmp 0x4cb2d9
mov ecx, dword [esi + 0x16ac]
mov eax, dword [esi + 0x16c0]
sub eax, dword [ecx + edi]
push 0
mov ecx, ebx
call fcn.00487200
test eax, eax
jne 0x4cb322
mov edx, dword [esi + 0x16ac]
mov ecx, dword [esi + 0x1688]
push eax
mov eax, dword [edx + edi]
push eax
push ecx
call fcn.006081d8
mov esi, dword [esi + 0x1688]
add esp, 0xc
test esi, esi
je 0x4cb320
mov eax, dword [ebx + 4]
test eax, eax
je 0x4cb320
mov ecx, dword [ebx]
push esi
push ecx
push 1
push eax
call fcn.0060860a
add esp, 0x10
xor eax, eax
pop edi
pop esi
ret
Function at 0x4cb330
Capabilities:
Read file on windows
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x64
mov eax, dword [0x6d7160]
xor eax, esp
mov dword [esp + 0x5c], eax
push ebx
push ebp
mov ebp, dword [esp + 0x70]
push esi
push edi
xor edi, edi
push edi
push edi
xor ecx, ecx
lea esi, [esp + 0x38]
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], edi
call fcn.00479300
mov eax, dword [ebp + 0x16ac]
mov edx, dword [ebp + 0x1688]
push edi
mov edi, dword [esp + 0x80]
mov byte [esp + 0x5c], 0
mov ecx, dword [eax + edi*4]
push ecx
push edx
call fcn.006081d8
mov eax, dword [ebp + 0x1688]
add esp, 0xc
push eax
push 4
lea ecx, [esp + 0x6c]
push 2
push ecx
call fcn.0060860a
movsx edx, word [esp + 0x74]
movsx eax, word [esp + 0x76]
movsx ecx, word [esp + 0x78]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], edx
movsx edx, word [esp + 0x7a]
lea eax, [esp + 0x38]
push eax
mov eax, dword [ebp + 0x1688]
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], edx
call fcn.0048c7c0
mov eax, dword [ebp + 0x1688]
lea ecx, [esp + 0x27]
add esp, 0x14
push ecx
call fcn.0048c780
mov bl, byte [esp + 0x17]
add esp, 4
cmp bl, 2
mov dword [esp + 0x2c], 0xff00ff00
jne 0x4cb44e
mov eax, dword [ebp + 0x1688]
lea edx, [esp + 0x2c]
push edx
call fcn.0048c7c0
add esp, 4
lea eax, [esp + 0x18]
push eax
push edi
mov eax, ebp
call fcn.004cc750
test eax, eax
lea eax, [esp + 0x30]
jne 0x4cb500
call fcn.00479430
mov eax, 4
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x5c]
xor ecx, esp
call fcn.00607d6d
add esp, 0x64
ret 8
lea esi, [esp + 0x18]
lea eax, [esp + 0x30]
call fcn.0047a0b0
mov eax, dword [esp + 0x3c]
imul eax, dword [esp + 0x38]
test bl, bl
jne 0x4cb481
mov ecx, dword [ebp + 0x1688]
mov edx, dword [esp + 0x40]
push ecx
push eax
push 4
push edx
call fcn.0060860a
add esp, 0x10
jmp 0x4cb416
cmp bl, 1
jne 0x4cb416
mov esi, dword [esp + 0x40]
lea ebx, [esi + eax*4]
cmp esi, ebx
jae 0x4cb416
mov eax, dword [ebp + 0x1688]
push eax
call fcn.0060963d
mov ecx, dword [ebp + 0x1688]
add esp, 4
push ecx
push 1
lea edx, [esp + 0x1c]
push 4
push edx
mov edi, eax
call fcn.0060860a
add esp, 0x10
test edi, edi
je 0x4cb4d2
mov eax, dword [esp + 0x14]
sub edi, 1
cmp esi, ebx
jae 0x4cb4df
mov dword [esi], eax
add esi, 4
test edi, edi
jne 0x4cb4c2
cmp esi, ebx
jb 0x4cb491
mov edi, dword [esp + 0x7c]
jmp 0x4cb416
lea eax, [esp + 0x30]
call fcn.00479430
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x5c]
xor ecx, esp
call fcn.00607d6d
add esp, 0x64
ret 8
call fcn.00479430
mov ecx, dword [esp + 0x6c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
xor eax, eax
call fcn.00607d6d
add esp, 0x64
ret 8
Function at 0x4cf2f0
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push ecx
test edx, edx
je 0x4cf367
push edi
jmp 0x4cf300
mov eax, dword [0x6fd3b8]
mov ecx, dword [eax*4 + 0x6fd7a8]
mov dword [0x6fd3b8], ecx
mov ecx, dword [0x6fd3bc]
mov edi, dword [ecx*4 + 0x6fd7a8]
mov dword [0x6fd3bc], edi
mov ecx, dword [ecx*4 + 0x6fd3c0]
xor dword [eax*4 + 0x6fd3c0], ecx
lea eax, [eax*4 + 0x6fd3c0]
mov eax, dword [eax]
mov dword [esp + 4], eax
and dword [esp + 4], 0x70307
sub edx, 1
mov eax, dword [esp + 0xc]
movd mm0, dword [eax]
movd mm1, dword [esp + 4]
paddusb mm0, mm1
movd dword [eax], mm0
add dword [esp + 0xc], 4
test edx, edx
jne 0x4cf300
pop edi
emms
pop ecx
ret

Function at 0x4d30b0
Capabilities:
Hash data with md5

Disassembly:
xor ecx, ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
ret

Function at 0x4d39f0
Capabilities:
Parse url

Disassembly:
push ecx
test ebx, ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
push edi
jne 0x4d3a06
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ecx
ret 4
mov eax, ebx
mov dword [esp + 0x14], 0
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4d3a13
sub eax, edx
mov edi, ebx
lea ecx, [esp + 0x14]
call fcn.00459750
mov esi, dword [esp + 0x14]
cmp dword [ebp], esi
je 0x4d3a64
mov edi, ebp
call fcn.00401700
test esi, esi
mov dword [ebp], esi
je 0x4d3a64
movzx eax, byte [esi]
cmp eax, 0x80
jae 0x4d3a5d
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
and eax, 0xff
cmp eax, 0xff
jne 0x4d3a64
mov eax, ebp
call fcn.00459380
lea edi, [esp + 0x14]
call fcn.00401700
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4d3a72
add ebp, 4
push ebp
push 0
sub eax, edx
push eax
push ebx
call dword [sym.imp.WININET.dll_InternetCrackUrlA]
neg eax
sbb eax, eax
pop edi
and eax, 0xfffffffc
pop esi
add eax, 4
pop ebp
pop ecx
ret 4
Function at 0x4d4090
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x2c
push ebx
push ebp
push esi
mov esi, eax
lea eax, [esi + 0xc]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x40]
xor ebx, ebx
push edi
mov dword [esi], eax
lea eax, [ebx + 0x20]
lea edi, [esp + 0x20]
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esi + 4], ecx
mov dword [esi + 8], edx
call fcn.004d4df0
cmp eax, ebx
jl 0x4d41f3
mov ebx, dword [esp + 0x20]
mov eax, dword [ebx]
mov ebp, dword [esp + 0x24]
mov dword [eax + ebp], 0x504d444d
mov ecx, dword [ebx]
lea edx, [esp + 0x18]
push edx
mov dword [ecx + ebp + 4], 0xa793
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
push eax
push ecx
call fcn.004d4050
mov edx, dword [ebx]
mov dword [edx + ebp + 0x14], eax
lea eax, [esi + 0xc]
mov dword [esp + 0x28], eax
xor eax, eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
add esp, 8
mov eax, 0x48
lea edi, [esp + 0x20]
call fcn.004d4df0
xor edi, edi
cmp eax, edi
jl 0x4d41f3
mov eax, dword [ebx]
mov edx, dword [esp + 0x24]
mov dword [eax + ebp + 8], 6
mov ecx, dword [ebx]
mov dword [ecx + ebp + 0xc], edx
mov dword [esp + 0x44], edi
lea esp, [esp]
mov edx, dword [edi + 0x6e9df4]
lea eax, [esp + 0x2c]
push eax
mov ecx, esi
call edx
test eax, eax
jl 0x4d41f3
cmp eax, 1
jne 0x4d4179
mov eax, dword [ebx]
add dword [eax + ebp + 8], 0xffffffff
lea eax, [eax + ebp + 8]
jmp 0x4d4192
mov ecx, dword [esp + 0x20]
mov edx, dword [ecx]
add edx, dword [esp + 0x44]
push 0xc
add edx, dword [esp + 0x28]
lea ecx, [esp + 0x30]
call fcn.004d4ec0
add dword [esp + 0x44], 0xc
add edi, 4
cmp edi, 0x18
jb 0x4d4150
mov eax, dword [esi + 0x14]
mov ecx, dword [esi + 0xc]
push 0
lea edx, [esp + 0x18]
push edx
push eax
mov eax, dword [esp + 0x4c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4d41eb
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x4d41d5
call esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret 8
call esi
and eax, 0xffff
or eax, 0x80070000
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret 8
mov dword [esi], 0
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret 8
Function at 0x4d4370
Capabilities:
Get file version info

Disassembly:
sub esp, 0xc
push ebp
mov ebp, dword [esp + 0x14]
push edi
xor edi, edi
cmp dword [esp + 0x1c], edi
jne 0x4d438c
pop edi
mov eax, 0x80004005
pop ebp
add esp, 0xc
ret
push esi
lea eax, [esp + 0x14]
push eax
push ebp
mov dword [esp + 0x1c], edi
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
cmp esi, edi
jne 0x4d43ae
pop esi
pop edi
mov eax, 0x80004005
pop ebp
add esp, 0xc
ret
push ebx
push esi
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
cmp ebx, edi
jne 0x4d43cb
pop ebx
pop esi
pop edi
mov eax, 0x80004005
pop ebp
add esp, 0xc
ret
push ebx
push esi
push edi
push ebp
call sub.VERSION.dll_GetFileVersionInfoA
cmp eax, edi
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], edi
je 0x4d4413
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x14]
push edx
push 0x6a8b4c
push ebx
call sub.VERSION.dll_VerQueryValueA
cmp eax, edi
je 0x4d4413
mov esi, dword [esp + 0x10]
cmp esi, edi
je 0x4d4413
cmp dword [esp + 0x14], 0x34
jb 0x4d4413
mov edi, dword [esp + 0x24]
mov ecx, 0xd
rep movsd dword es:[edi], dword [esi]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop ebx
pop esi
pop edi
xor eax, eax
pop ebp
add esp, 0xc
ret
Function at 0x4d4430
Capabilities:
Get system information on windows
Read file via mapping

Disassembly:
sub esp, 0x30
push esi
mov esi, ecx
mov ecx, dword [esi + 0xac]
push edi
mov edi, eax
mov eax, 0x24924925
mul ecx
sub ecx, edx
shr ecx, 1
add ecx, edx
mov edx, dword [esi + 0xa8]
add edx, dword [esp + 0x44]
shr ecx, 4
xor eax, eax
test ecx, ecx
jbe 0x4d4470
lea esi, [edx + 0xc]
cmp dword [esi], edi
je 0x4d447d
add eax, 1
add esi, 0x1c
cmp eax, ecx
jb 0x4d4462
pop edi
mov eax, 0x80004005
pop esi
add esp, 0x30
ret 0x10
push ebx
push ebp
push 0
push 0
push 3
lea ecx, [eax*8]
push 0
sub ecx, eax
mov ebx, dword [edx + ecx*4 + 0x10]
mov esi, dword [edx + ecx*4 + 0x18]
lea eax, [edx + ecx*4]
mov edx, dword [esp + 0x58]
push 1
push SysReAllocString
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x4d44ce
push 0
push 0
push 0
push 2
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
cmp eax, 0xffffffff
mov dword [esp + 0x4c], eax
jne 0x4d44db
or eax, 0xffffffff
pop ebp
pop ebx
pop edi
pop esi
add esp, 0x30
ret 0x10
xor eax, eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x1c]
push eax
mov dword [esp + 0x20], 0
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
xor edx, edx
mov eax, esi
div dword [esp + 0x38]
mov edi, edx
mov edx, dword [esp + 0x4c]
lea ecx, [edi + ebx]
push ecx
sub esi, edi
push esi
push 0
push 4
push edx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
mov eax, dword [esp + 0x44]
add eax, 0xc
mov dword [esp + 0x10], eax
xor eax, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
add esi, edi
mov eax, ebx
lea edi, [esp + 0x10]
call fcn.004d4df0
test eax, eax
jl 0x4d44d1
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx]
mov edi, dword [esp + 0x14]
add edx, edi
push ebx
mov ecx, esi
call fcn.004d4ec0
test eax, eax
jl 0x4d44d1
mov eax, dword [esp + 0x50]
mov edx, dword [esp + 0x4c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
mov dword [eax + 4], edi
mov dword [eax], ebx
call esi
push ebp
call esi
pop ebp
pop ebx
pop edi
xor eax, eax
pop esi
add esp, 0x30
ret 0x10