joyce8/EMBER2024-capa huggingface dataset:
Function at 0x484150
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg
Hash data with crc32
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp byte [esi + 0x2d], 0
push edi
mov edi, dword [ebp + 0xc]
mov eax, ebx
je 0x48423b
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x484187
cmp dword [esi + 0x40], edi
jae 0x484187
push eax
call fcn.00495658
add esp, 4
mov dword [esi + 0x3c], 0
cmp dword [esi + 0x3c], 0
jne 0x48419f
lea eax, [edi + edi]
push eax
call fcn.0049564d
add esp, 4
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], edi
mov ecx, dword [esi + 0x3c]
push edi
push ebx
push ecx
call fcn.004a4600
add esp, 0xc
xor ebx, ebx
test edi, edi
jbe 0x484238
mov edx, dword [esi + 0x3c]
mov cl, byte [ebx + edx]
mov edi, dword [esi + 0x30]
mov byte [ebp + 8], cl
movsx ecx, cl
xor ecx, edi
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x4dabc0]
mov dword [ebp - 4], ecx
mov eax, dword [esi + 0x38]
shr edi, 8
xor dword [ebp - 4], edi
mov ecx, dword [ebp - 4]
mov dword [esi + 0x30], ecx
movzx ecx, cl
add ecx, dword [esi + 0x34]
mov edx, eax
imul ecx, ecx, 0x8088405
inc ecx
mov dword [esi + 0x34], ecx
shr ecx, 0x18
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x4dabc0]
and edx, 0xfffd
mov dword [esi + 0x38], eax
mov ecx, dword [esi + 0x3c]
or edx, 2
mov eax, edx
xor eax, 1
imul eax, edx
shr eax, 8
xor al, byte [ebp + 8]
inc ebx
mov byte [ebx + ecx - 1], al
cmp ebx, dword [ebp + 0xc]
jb 0x4841b7
mov edi, dword [ebp + 0xc]
mov eax, dword [esi + 0x3c]
mov edx, dword [esi + 0x20]
test edx, edx
je 0x48427a
mov ecx, dword [esi + 0x24]
lea ebx, [ecx + edi]
cmp ebx, dword [esi + 0x28]
jb 0x48425f
pop edi
mov dword [esi + 0x14], 0x30000
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8
push edi
push eax
add ecx, edx
push ecx
call fcn.004a4600
add esp, 0xc
add dword [esi + 0x24], edi
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x48429c
push 0
lea edx, [ebp + 0xc]
push edx
push edi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
pop edi
mov dword [esi + 0x14], 0x1000000
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4846f0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [esi + 0x84]
push edi
test ecx, ecx
je 0x484743
mov eax, dword [esi + 0x8c]
mov edi, dword [esi + 0x88]
cmp eax, edi
jae 0x484780
sub edi, eax
cmp edi, edx
jbe 0x484717
mov edi, edx
push edi
add eax, ecx
push eax
push ebx
call fcn.004a4600
mov eax, dword [esi + 0x78]
add dword [esi + 0x8c], edi
add dword [esi + 0x74], edi
add esp, 0xc
mov edx, edi
mov ecx, ebx
call fcn.00483c20
mov dword [esi + 0x78], eax
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x7c]
test eax, eax
je 0x484779
push 0
lea ecx, [ebp - 4]
push ecx
push edx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x484780
mov edi, dword [ebp - 4]
mov eax, dword [esi + 0x78]
add dword [esi + 0x74], edi
mov edx, edi
mov ecx, ebx
call fcn.00483c20
mov dword [esi + 0x78], eax
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret
mov dword [esi + 0x14], 0x1000000
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x485580
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bb258
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x4eec64]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 8]
push eax
push ecx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
jbe 0x485621
push esi
call fcn.0049564d
mov edi, eax
add esp, 4
test edi, edi
je 0x485621
mov edx, dword [ebp + 8]
push edi
push esi
push 0
push edx
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x485618
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x485605
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push edi
call fcn.00495658
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x485647
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x485920
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebx + 0x3c]
movzx ecx, word [eax + ebx + 0x14]
add eax, ebx
push esi
push edi
movzx edi, word [eax + 6]
lea edx, [ecx + eax + 0x18]
xor ecx, ecx
mov dword [ebp - 4], edx
test edi, edi
jle 0x485968
lea eax, [edx + 8]
mov edx, dword [eax]
mov esi, edx
test edx, edx
jne 0x48594f
mov esi, dword [eax + 8]
mov edx, dword [eax + 4]
cmp dword [ebp + 8], edx
jb 0x485960
add esi, edx
mov edx, dword [ebp + 8]
cmp edx, esi
jb 0x485970
inc ecx
add eax, 0x28
cmp ecx, edi
jl 0x485944
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
lea eax, [ecx + ecx*4]
mov ecx, dword [ebp - 4]
lea ecx, [ecx + eax*8]
mov eax, dword [ecx + 0x14]
sub eax, dword [ecx + 0xc]
pop edi
add eax, ebx
add eax, edx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x486480
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
xor eax, eax
lea ecx, [ebp - 4]
push ecx
xor ebx, ebx
push ebx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 8]
push 0x4c9c94
lea edx, [ebp - 0x28]
push edx
mov dword [ebp - 0x28], 0x14
mov dword [ebp - 0x24], 3
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], ebx
call dword [sym.imp.OLEAUT32.dll_OleCreateFontIndirect]
cmp eax, ebx
jl 0x48658d
push edi
lea eax, [ebp + 8]
push eax
push 1
push ebx
mov dword [ebp + 8], ebx
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
mov eax, dword [ebp - 4]
lea edx, [ebp - 0xc]
push edx
mov edx, dword [ebp + 8]
push 1
mov dword [ebp - 0xc], ebx
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x3c]
call eax
mov edi, eax
cmp edi, ebx
jl 0x486574
mov edx, dword [ebp + 8]
push esi
lea ecx, [ebp - 8]
push ecx
push edx
mov dword [ebp - 8], ebx
call dword [sym.imp.ole32.dll_GetHGlobalFromStream]
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, dword [ebp + 0xc]
push ebx
push ebx
push 2
push ebx
push ebx
push 0x40000000
push ecx
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, ebx
jne 0x48654b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x486547
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
jmp 0x486569
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
push ebx
lea edx, [ebp - 0x14]
push edx
push eax
push ecx
push esi
mov dword [ebp - 0x14], ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
pop esi
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, edi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x488850
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bedea
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x4eec64]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
push 0x4dda5c
xor esi, esi
push eax
mov dword [ebp - 0x18], esi
call fcn.004a823a
mov ebx, eax
add esp, 8
cmp ebx, esi
jne 0x4888b8
mov ecx, dword [0x4f3cb8]
mov eax, dword [ebp + 8]
mov dword [eax], ecx
cmp ecx, esi
je 0x4888a6
inc dword [ecx + 0x30]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 2
push esi
push ebx
call fcn.004a87da
add esp, 0xc
push ebx
call fcn.004a86ab
mov edi, eax
add esp, 4
mov dword [ebp - 0x10], esi
cmp edi, esi
jne 0x488909
push ebx
call fcn.004a88d6
mov edx, dword [0x4f3cb8]
mov eax, dword [ebp + 8]
mov ecx, edx
add esp, 4
mov dword [eax], edx
cmp ecx, esi
je 0x488a29
inc dword [ecx + 0x30]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
push esi
push ebx
call fcn.004a87da
lea eax, [edi + 4]
add esp, 0xc
push eax
call fcn.004a4a82
add esp, 4
push ebx
push edi
mov esi, eax
push 1
push esi
call fcn.004a84f1
push ebx
mov edi, eax
call fcn.004a88d6
add esp, 0x14
push 0
push edi
push esi
mov byte [esi + edi], 0
mov byte [esi + edi + 1], 0
mov byte [esi + edi + 2], 0
mov byte [esi + edi + 3], 0
call dword [sym.imp.ADVAPI32.dll_IsTextUnicode]
test al, al
jne 0x48899b
cmp byte [esi], 0xef
mov eax, 2
jne 0x488976
cmp byte [esi + 1], 0xbb
jne 0x488976
cmp byte [esi + 2], 0xbf
jne 0x488976
lea ecx, [eax + 1]
lea eax, [ecx - 2]
jmp 0x488979
mov ecx, dword [ebp - 0x10]
push eax
lea ebx, [esi + ecx]
call fcn.00486fe0
add esp, 4
push esi
mov edi, eax
call fcn.004a4965
add esp, 4
mov esi, edi
mov dword [ebp - 0x10], 0
jmp 0x4889bf
mov al, byte [esi]
cmp al, 0xef
jne 0x4889ae
cmp byte [esi + 1], 0xff
jne 0x4889ae
mov dword [ebp - 0x10], 2
cmp al, 0xff
jne 0x4889bf
cmp byte [esi + 1], 0xfe
jne 0x4889bf
mov dword [ebp - 0x10], 2
test esi, esi
jne 0x4889e7
mov ecx, dword [0x4f3cb8]
mov eax, dword [ebp + 8]
mov dword [eax], ecx
test ecx, ecx
je 0x488a29
inc dword [ecx + 0x30]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 0x14]
push 0
lea ecx, [esi + edx]
push eax
call fcn.00488670
push esi
call fcn.004a4965
mov eax, dword [ebp - 0x14]
mov esi, dword [ebp + 8]
add esp, 0xc
mov dword [esi], eax
test eax, eax
je 0x488a10
inc dword [eax + 0x30]
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 0
push ecx
mov dword [ebp - 0x18], 1
call fcn.004890c0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x48a300
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [edi + 8]
sub esp, 8
test eax, eax
je 0x48a3f3
mov ecx, dword [edi + 0x10]
push ebx
push esi
push 1
push ecx
push 0x30
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
movzx edx, word [edi]
mov eax, dword [edi + 4]
push 5
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ecx, dword [edi + 4]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
mov ecx, esi
mov dword [ebp - 8], esi
call fcn.00489d20
mov ebx, eax
mov eax, esi
mov dword [ebp - 4], 0
call fcn.00489d00
xor edx, edx
cmp dx, word [eax]
jae 0x48a3dc
mov esi, dword [ebp - 8]
lea ebx, [ebx]
cmp dword [ebp - 4], 0
jne 0x48a37e
mov eax, dword [edi + 8]
push 5
push eax
jmp 0x48a381
push 2
push esi
call dword [sym.imp.USER32.dll_GetWindow]
mov esi, eax
test esi, esi
je 0x48a3dc
lea ecx, [ecx]
push esi
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
cmp eax, dword [ebx + 0x14]
je 0x48a3ad
push 2
push esi
call dword [sym.imp.USER32.dll_GetWindow]
mov esi, eax
test esi, esi
jne 0x48a390
jmp 0x48a3dc
test esi, esi
je 0x48a3dc
mov ecx, dword [edi + 0x10]
push 1
push ecx
push 0x30
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, ebx
call fcn.00489dc0
inc dword [ebp - 4]
mov ebx, eax
mov eax, dword [ebp - 8]
call fcn.00489d00
movzx edx, word [eax]
cmp dword [ebp - 4], edx
jl 0x48a370
mov eax, dword [edi + 0xc]
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
xor eax, eax
pop esi
mov dword [edi + 8], eax
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x48c1f0
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bed68
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x4eec64]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
xor edi, edi
mov dword [ebp - 4], edi
mov eax, dword [esi + 0xc]
cmp eax, edi
jne 0x48c260
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x48c24b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp + 8]
push edi
push edi
push 0x84000000
push edi
push ecx
push eax
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
push ecx
mov edx, esp
mov dword [ebp - 0x14], esp
push eax
mov dword [esi + 0x10], eax
mov eax, dword [ebp + 8]
push eax
push str.CHttpRemoteFile::SetLocation:_InternetOpenUrl__s__d
push edx
call fcn.00461920
add esp, 0x10
call fcn.0048c180
mov esi, dword [esi + 0x10]
add esp, 4
cmp esi, edi
je 0x48c2d0
push edi
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x10]
push edx
push 0x20000013
push esi
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x14], 4
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
mov eax, dword [ebp - 0x10]
je 0x48c30b
cmp eax, 0xc8
jne 0x48c30b
mov edi, 1
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x48c2f6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
push ecx
mov ecx, esp
mov dword [ebp - 0x18], esp
push eax
push str.CHttpRemoteFile::SetLocation:_return_code:__d
push ecx
call fcn.00461920
add esp, 0xc
call fcn.0048c180
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
add esp, 4
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x48c23f

Function at 0x48c350
Capabilities:
Get http content length

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push 0
lea edx, [ebp - 4]
push edx
push eax
mov dword [eax], 0
mov eax, dword [ecx + 0x10]
push 0x20000005
push eax
mov dword [ebp - 4], 4
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x48c389
mov eax, 1
mov esp, ebp
pop ebp
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
mov esp, ebp
pop ebp
ret 4
Function at 0x48c440
Capabilities:
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor edi, edi
push 0x4000
mov ebx, ecx
mov dword [ebp - 4], edi
call fcn.004a4a82
mov ecx, dword [ebx + 0x10]
add esp, 4
mov esi, eax
lea eax, [ebp - 4]
push eax
push 0x4000
push esi
push ecx
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x48c4ce
mov eax, dword [ebp - 4]
add edi, eax
cmp eax, 0x4000
jne 0x48c4be
lea edx, [edi + 0x4000]
push edx
push esi
call fcn.004a4bf0
mov edx, dword [ebx + 0x10]
add esp, 8
mov esi, eax
lea eax, [ebp - 4]
push eax
push 0x4000
lea ecx, [esi + edi]
push ecx
push edx
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x48c475
mov eax, dword [ebp + 8]
mov dword [eax], esi
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp + 8]
mov eax, edi
pop edi
mov dword [ecx], esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov edx, dword [ebp + 8]
mov eax, edi
pop edi
mov dword [edx], esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x48c950
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bb408
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
mov eax, dword [0x4eec64]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
mov ecx, dword [ecx + 0xc]
push 0
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x48c9cb
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x48c9b7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x10]
push edx
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x18], esp
mov esi, esp
push eax
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
call fcn.00423f83
add eax, 0x10
add esp, 4
mov dword [esi], eax
call fcn.00464f30
add esp, 0xc
or edx, 0xffffffff
mov dword [ebp - 4], 0xffffffff
test eax, eax
mov eax, dword [ebp + 8]
jne 0x48ca41
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x48c9b7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x48ca5a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x490550
Capabilities:
Encode data using xor

Disassembly:
or edx, 0xffffffff
cmp dword [0x4f38b8], 0
jne 0x490561
call fcn.004904b0
xor eax, eax
test esi, esi
jle 0x49058b
jmp 0x490570
movzx ecx, byte [eax + edi]
xor ecx, edx
and ecx, 0xff
shr edx, 8
xor edx, dword [ecx*4 + 0x4f3460]
inc eax
cmp eax, esi
jl 0x490570
mov eax, edx
ret
Function at 0x492350
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x4eec64]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x110
xor esi, esi
lea eax, [ebp - 0x114]
push esi
push eax
call fcn.004a4b50
add esp, 0xc
lea ecx, [ebp - 0x118]
push ecx
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4923a2
cmp dword [ebp - 0x114], 6
lea eax, [esi + 1]
jae 0x4923a4
mov eax, esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004a3a81
mov esp, ebp
pop ebp
ret
Function at 0x4947e0
Capabilities:
Write clipboard data

Disassembly:
push ebx
push esi
xor ebx, ebx
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov eax, edi
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4947f0
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x494847
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x494847
mov edx, eax
mov ecx, edi
sub edx, edi
movzx eax, word [ecx]
mov word [edx + ecx], ax
add ecx, 2
test ax, ax
jne 0x494823
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
mov ebx, 1
call dword [sym.imp.USER32.dll_CloseClipboard]
pop esi
mov eax, ebx
pop ebx
ret
Function at 0x49769d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
test ebx, 0xffff0000
jne 0x4976c1
cmp dword [edi + 0x54], 0
jne 0x4976c1
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.00498094
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.0049765e
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x49d881
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x49d8c8
call fcn.00498094
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x49d8c8
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x49d8e4
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0049d3f9
mov esi, eax
test edi, edi
je 0x49d8e2
test ebx, ebx
je 0x49d8e2
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x4a3a81
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4eec64]
jne 0x4a3a8b
repz ret
jmp fcn.004aab9d
Function at 0x4b42f9
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.004aa501
and dword [ebp - 4], 0
cmp dword [0x4f3370], 0
mov ebx, eax
jne 0x4b43aa
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4b445b
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4c8b28
push edi
call esi
test eax, eax
je 0x4b445b
push eax
call fcn.004aa48f
mov dword [esp], 0x4c8b18
push edi
mov dword [0x4f3370], eax
call esi
push eax
call fcn.004aa48f
mov dword [esp], 0x4c8b04
push edi
mov dword [0x4f3374], eax
call esi
push eax
call fcn.004aa48f
mov dword [esp], 0x4c8ae8
push edi
mov dword [0x4f3378], eax
call esi
push eax
call fcn.004aa48f
pop ecx
mov dword [0x4f3380], eax
test eax, eax
je 0x4b43aa
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004aa48f
pop ecx
mov dword [0x4f337c], eax
mov eax, dword [0x4f337c]
cmp eax, ebx
je 0x4b4402
cmp dword [0x4f3380], ebx
je 0x4b4402
push eax
call fcn.004aa50a
push dword [0x4f3380]
mov esi, eax
call fcn.004aa50a
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4b4402
test edi, edi
je 0x4b4402
call esi
test eax, eax
je 0x4b43f9
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4b43f9
test byte [ebp - 0xc], 1
jne 0x4b4402
or dword [ebp + 0x10], 0x200000
jmp 0x4b443b
mov eax, dword [0x4f3374]
cmp eax, ebx
je 0x4b443b
push eax
call fcn.004aa50a
pop ecx
test eax, eax
je 0x4b443b
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4b443b
mov eax, dword [0x4f3378]
cmp eax, ebx
je 0x4b443b
push eax
call fcn.004aa50a
pop ecx
test eax, eax
je 0x4b443b
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4f3370]
call fcn.004aa50a
pop ecx
test eax, eax
je 0x4b445b
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4b445d
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret