joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4525cc
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x480bb4]
cmp dword [eax + 0x30], 0
je 0x452676
cmp dword [ebx + 0x94], 0
jne 0x452670
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x45255c
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x452670
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x452636
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x452670
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.00414934
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x452645
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x4531d8
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x45320d
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00403ff4
jmp 0x45321a
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00403f58
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x454284
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x4542c5
mov eax, esi
call fcn.0043aaf8
test al, al
je 0x4542c5
mov eax, dword [ebx + 0x84]
call fcn.0043a7f4
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4542c5
push 0
mov eax, dword [ebx + 0x84]
call fcn.0043a7f4
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x460ec4
Capabilities:
Link many functions at runtime

Disassembly:
mov byte [0x47e644], 0
mov eax, dword [0x47f62c]
cmp dword [eax], 2
jne 0x46109d
mov eax, dword [0x47f1c8]
cmp dword [eax], 5
jl 0x46109d
call fcn.0045e060
test al, al
jne 0x460ef5
call fcn.0045e06c
call fcn.0045e058
mov dword [0x47e64c], eax
push 0x4610a0
mov eax, dword [0x47e64c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x47e610], eax
cmp dword [0x47e610], 0
jne 0x460f50
mov edx, 0x8000
mov eax, 0x4610b4
call fcn.0040db7c
mov dword [0x47e648], eax
mov eax, dword [0x47e648]
mov dword [0x47e64c], eax
push 0x4610a0
mov eax, dword [0x47e64c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x47e610], eax
cmp dword [0x47e610], 0
je 0x461098
push 0x4610c0
mov eax, dword [0x47e64c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x47e614], eax
cmp dword [0x47e614], 0
je 0x461098
push 0x4610cc
mov eax, dword [0x47e64c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x47e618], eax
cmp dword [0x47e618], 0
je 0x461098
mov byte [0x47e644], 1
push 0x4610dc
mov eax, dword [0x47e64c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x47e61c], eax
push 0x4610e8
mov eax, dword [0x47e64c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x47e620], eax
push 0x4610f4
mov eax, dword [0x47e64c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x47e624], eax
push 0x461104
mov eax, dword [0x47e64c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x47e628], eax
push 0x461114
mov eax, dword [0x47e64c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x47e62c], eax
mov edx, 0x8000
mov eax, 0x46112c
call fcn.0040db7c
mov dword [0x47e650], eax
cmp dword [0x47e650], 0
je 0x46109d
push 0x46113c
mov eax, dword [0x47e650]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x47e630], eax
push 0x461158
mov eax, dword [0x47e650]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x47e634], eax
push 0x461178
mov eax, dword [0x47e650]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x47e638], eax
push 0x461194
mov eax, dword [0x47e650]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x47e63c], eax
push 0x4611ac
mov eax, dword [0x47e650]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x47e640], eax
ret
call fcn.00460e44
ret
Function at 0x463784
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 8], ebx
mov esi, ecx
mov dword [ebp - 4], edx
mov edi, eax
xor eax, eax
push ebp
push 0x4638ac
push dword fs:[eax]
mov dword fs:[eax], esp
mov ax, word [ebp + 8]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 4]
mov eax, edi
call fcn.00463670
mov eax, dword [esi]
call fcn.00404f28
add eax, 0x28
push eax
lea eax, [ebp - 8]
mov ecx, 1
mov edx, dword [0x45553c]
call fcn.004050e4
add esp, 4
mov edx, dword [ebp - 8]
lea eax, [ebp - 0x1c]
mov ecx, 0x1c
call fcn.004028fc
mov ebx, 0x1c
mov eax, dword [ebp - 8]
lea edx, [eax + ebx]
lea eax, [ebp - 0x2c]
mov ecx, 0x1c
call fcn.004028fc
add ebx, 0x1c
mov eax, dword [esi]
call fcn.00404f28
mov dword [ebp - 0xc], eax
mov eax, dword [0x47f54c]
mov eax, dword [eax]
mov edx, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x30]
lea edx, [ebp - 8]
mov ecx, ebx
call fcn.00456924
add ebx, 4
mov eax, dword [ebp - 8]
add eax, ebx
xor ecx, ecx
mov edx, 3
call fcn.00402b44
add ebx, 3
mov eax, dword [ebp - 8]
mov byte [eax + ebx], 0x3a
inc ebx
mov eax, dword [esi]
mov byte [eax + 2], 0
mov eax, dword [esi]
mov byte [eax + 3], 0
push ebx
mov eax, dword [esi]
call fcn.00404f28
push eax
lea ecx, [ebp - 8]
mov eax, dword [esi]
xor edx, edx
call fcn.0045684c
mov edx, dword [ebp - 8]
mov eax, edi
mov ecx, dword [eax]
call dword [ecx + 0x94]
mov ebx, eax
mov eax, ebx
call fcn.004566d4
mov edx, esi
mov ecx, dword [ebp + 0x10]
call fcn.0045691c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4638b3
lea eax, [ebp - 8]
mov edx, dword [0x45553c]
call fcn.004051e4
ret

Function at 0x4766b8
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
push edi
mov eax, 8
test byte [edx + 1], 0x80
setne bl
mov si, word [edx]
add esi, esi
mov edi, ecx
and edi, 0xff
shr edi, 7
or si, di
mov word [edx], si
test bl, bl
je 0x4766e6
xor word [edx], 0x1021
add ecx, ecx
and cl, 0xff
dec eax
jne 0x4766c0
pop edi
pop esi
pop ebx
ret

Function at 0x47b028
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [0x47f40c]
mov eax, dword [eax]
call fcn.00452fec
cmp byte [ebx + 0x290], 0
je 0x47b05c
cmp byte [ebx + 0x298], 0
je 0x47b05c
push 0
mov eax, dword [0x47f40c]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
call sub.user32.dll_ShowWindow
mov eax, ebx
mov si, 0xffe7
call fcn.00403324
pop esi
pop ebx
ret
Function at 0x4368b5
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x50
push ebp
lea eax, [esp + 0x28]
push edi
push eax
call fcn.00436a65
mov ecx, dword [esp + 0x5c]
xor edx, edx
xor ebp, ebp
mov dword [esp + 0xc], 1
mov edi, dword [ecx]
mov dword [esp + 0x10], 8
mov dword [esp + 0x14], 2
mov dword [esp + 0x18], 4
mov dx, word [edi + 0x14]
cmp word [edi + 6], bp
mov dword [esp + 0x1c], 0x10
mov dword [esp + 0x20], 0x80
mov dword [esp + 0x24], 0x20
mov dword [esp + 0x28], 0x40
lea eax, [edx + edi + 0x18]
jbe 0x4369b3
push ebx
push esi
lea ebx, [eax + 0x24]
mov eax, dword [ebx]
mov ecx, eax
mov edx, eax
shr ecx, 0x1d
shr edx, 0x1e
mov esi, eax
and ecx, 1
and edx, 1
shr esi, 0x1f
test eax, 0x2000000
je 0x436956
mov eax, dword [ebx - 0x14]
mov ecx, dword [ebx - 0x1c]
push 0x4000
push eax
push ecx
call dword [esp + 0x4c]
jmp 0x436999
lea edx, [edx + ecx*2]
test eax, 0x4000000
lea ecx, [esi + edx*2]
mov esi, dword [esp + ecx*4 + 0x14]
je 0x43696d
or esi, 0x200
mov edx, dword [ebx - 0x14]
mov ecx, edx
test ecx, ecx
jne 0x436988
test al, 0x40
je 0x43697f
mov ecx, dword [edi + 0x20]
jmp 0x436986
test al, 0x80
je 0x436999
mov ecx, dword [edi + 0x24]
test ecx, ecx
jbe 0x436999
mov ecx, dword [ebx - 0x1c]
lea eax, [esp + 0x10]
push eax
push esi
push edx
push ecx
call dword [esp + 0x44]
mov edx, dword [esp + 0x64]
xor eax, eax
inc ebp
add ebx, 0x28
mov edi, dword [edx]
mov ax, word [edi + 6]
cmp ebp, eax
jl 0x436925
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x50
ret
Function at 0x47abb0
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5228d8
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
push esi
mov esi, ecx
call fcn.004753f0
test eax, eax
je 0x47acb8
lea ecx, [esp + 0xc]
call fcn.0044ee10
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
push eax
mov eax, dword [esp + 0x34]
push ecx
push edx
lea ecx, [esp + 0x18]
push eax
push ecx
mov ecx, esi
mov dword [esp + 0x3c], 0
call fcn.004753f0
mov ecx, eax
call fcn.00472ae0
test eax, eax
je 0x47ac9f
mov eax, dword [esp + 0x1c]
test eax, eax
mov ebp, eax
je 0x47ac9f
push eax
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x47ac9f
mov esi, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
neg esi
push edi
push ebx
sbb esi, esi
and esi, edx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, ebp
mov edi, eax
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x10]
call fcn.0044f010
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
pop edi
jne 0x47ac81
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x47ac9f
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov eax, dword [0x1260048]
push ebx
and eax, 0xffff
push eax
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
lea ecx, [esp + 0xc]
mov dword [esp + 0x28], 0xffffffff
mov dword [esp + 0xc], 0x11d96a0
call fcn.0044f010
mov ecx, dword [esp + 0x20]
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0x10
Function at 0x47d9d0
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x522b68
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [esp + 0x30]
push esi
mov ebx, ecx
push edi
mov esi, dword [ebp]
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x10]
dec ecx
cmp eax, ecx
jge 0x47da09
inc eax
mov dword [esi + 0x10], eax
jmp 0x47db1c
mov eax, dword [ebx + 0x3c]
mov ecx, dword [esi + 8]
cmp ecx, eax
jne 0x47da1d
mov eax, 0xffffffc7
jmp 0x47db1e
mov esi, dword [esi]
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp edx, ecx
jl 0x47da2e
cmp dword [esi + 8], eax
jne 0x47da1d
cmp dword [esi + 8], eax
jne 0x47da47
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp eax, ecx
jl 0x47da47
mov eax, 0xffffffc7
jmp 0x47db1e
mov eax, dword [esi + 4]
xor edi, edi
cmp eax, edi
je 0x47da5b
push eax
mov ecx, ebx
call fcn.0047d200
mov dword [esi + 4], edi
mov dword [ebp], esi
mov ecx, dword [esi + 0x10]
inc ecx
mov dword [esi + 0x10], ecx
lea ecx, [esp + 0x10]
call fcn.0044ee10
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x3c]
test edi, edi
jne 0x47da8c
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + 8]
lea ecx, [esp + 0x10]
push edx
call fcn.0044ee30
mov edi, eax
mov eax, dword [esi + 8]
push edi
push eax
mov ecx, ebx
call fcn.0047c970
test eax, eax
mov dword [esp + 0x38], eax
je 0x47dabf
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x11d96d0
call fcn.0044f010
mov eax, dword [esp + 0x38]
jmp 0x47db1e
mov ecx, dword [esi + 0x10]
push ecx
push edi
mov ecx, ebx
call fcn.0047d830
mov dl, byte [edi]
and dl, 1
cmp dl, 1
jne 0x47db03
mov ecx, dword [esp + 0x34]
push ebp
push ecx
push edi
push eax
mov ecx, ebx
call fcn.0047d850
mov esi, eax
test esi, esi
jne 0x47db33
mov edx, dword [ebp]
push eax
push edi
mov ecx, ebx
mov dword [edx + 0x10], eax
call fcn.0047d830
mov cl, byte [edi]
and cl, 1
cmp cl, 1
je 0x47dad5
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x11d96d0
call fcn.0044f010
xor eax, eax
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0xc
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x11d96d0
call fcn.0044f010
mov eax, esi
jmp 0x47db1e

Function at 0x482660
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [ecx + 0xcc], 1
je 0x4826c0
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x4826c0
mov eax, dword [ecx + 0xb0]
test eax, eax
je 0x4826c0
push esi
mov edx, 5
mov esi, dword [ecx + 0xbc]
cmp esi, edx
pop esi
je 0x4826c0
mov dword [ecx + 0xb4], eax
mov dword [ecx + 0x94], 0
mov dword [ecx + 0xbc], edx
lea eax, [esp]
push eax
push 0
push ecx
push 0x482700
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
ret
Function at 0x4d7ce0
Capabilities:
Delete file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x524b78
push eax
mov dword fs:[0], esp
sub esp, 0x10
xor al, al
push ebx
push ebp
push esi
mov esi, ecx
mov cl, byte [esi + 0xc]
test cl, cl
je 0x4d7e04
mov ecx, dword [esi + 4]
xor ebp, ebp
sub ecx, ebp
je 0x4d7e16
dec ecx
je 0x4d7d5c
dec ecx
jne 0x4d7e04
mov eax, dword [esi + 8]
cmp eax, ebp
je 0x4d7e2b
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp eax, 1
jne 0x4d7e2b
mov dword [esi + 8], ebp
mov eax, dword [esi + 0x18]
cmp eax, ebp
je 0x4d7d55
mov eax, dword [0x11e1ec8]
lea ecx, [esi + 0x10]
push eax
push ebp
call fcn.004d8220
mov bl, 1
jmp 0x4d7df7
mov edx, dword [0x11e1ec8]
mov cl, byte [esi + 0x10]
push edi
lea edi, [esi + 0x10]
push edx
mov byte [esp + 0x14], cl
push ebp
push edi
lea ecx, [esp + 0x1c]
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], ebp
call fcn.004d8020
mov eax, dword [esi + 8]
mov dword [esp + 0x28], ebp
cmp eax, ebp
je 0x4d7de5
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp eax, 1
jne 0x4d7de5
mov dword [esi + 8], ebp
mov eax, dword [esi + 0x18]
cmp eax, ebp
je 0x4d7db4
mov eax, dword [0x11e1ec8]
mov ecx, edi
push eax
push ebp
call fcn.004d8220
mov eax, dword [esp + 0x14]
mov bl, 1
cmp eax, ebp
jne 0x4d7dc3
mov eax, 0x11e1ec4
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [esp + 0x14]
pop edi
cmp ecx, ebp
je 0x4d7df3
mov al, byte [ecx - 1]
test al, al
je 0x4d7de9
cmp al, 0xff
je 0x4d7de9
dec al
mov byte [ecx - 1], al
jmp 0x4d7df3
xor bl, bl
jmp 0x4d7dca
dec ecx
push ecx
call fcn.00514ad2
add esp, 4
test bl, bl
je 0x4d7e02
mov dword [esi + 4], 0xffffffff
mov byte [esi + 0xc], 0
mov al, bl
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret
mov eax, dword [esi]
cmp eax, ebp
je 0x4d7e2b
push eax
call fcn.004d8da0
add esp, 4
mov dword [esi], ebp
mov bl, 1
jmp 0x4d7df7
mov ecx, dword [esp + 0x1c]
pop esi
pop ebp
xor al, al
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret
Function at 0x4d86f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ecx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_FindResourceA]
push ebp
push esi
push edi
xor edi, edi
push 0x12466f4
push str.E2EE_IDR_DLL
push edi
call ebx
mov esi, eax
test esi, esi
jne 0x4d873f
call fcn.0051e8b2
mov edi, dword [eax + 0xc]
test edi, edi
jne 0x4d8724
pop edi
pop esi
pop ebp
xor al, al
pop ebx
pop ecx
ret
push 0x12466f4
push str.E2EE_IDR_DLL
push edi
call ebx
mov esi, eax
test esi, esi
jne 0x4d873f
pop edi
pop esi
pop ebp
xor al, al
pop ebx
pop ecx
ret
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
test ebx, ebx
jne 0x4d8755
pop edi
pop esi
pop ebp
xor al, al
pop ebx
pop ecx
ret
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4d8769
pop edi
pop esi
pop ebp
xor al, al
pop ebx
pop ecx
ret
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebp, eax
test ebp, ebp
mov dword [esp + 0x10], ebp
jne 0x4d8782
pop edi
pop esi
pop ebp
xor al, al
pop ebx
pop ecx
ret
mov edi, dword [esp + 0x18]
push edi
push ebx
push ebp
call fcn.004d8ea0
add esp, 0xc
test al, al
jne 0x4d8821
mov eax, dword [edi + 8]
cmp eax, ebx
jb 0x4d8829
mov esi, dword [0x11e1ed0]
jae 0x4d87b1
call fcn.0050fcd8
mov ecx, edi
call fcn.004d8a30
mov eax, dword [edi + 8]
mov ecx, eax
sub ecx, ebx
cmp ecx, esi
jae 0x4d87c5
mov esi, ecx
test esi, esi
jbe 0x4d8803
mov ecx, dword [edi + 4]
sub eax, esi
sub eax, ebx
push eax
lea eax, [ecx + esi]
add eax, ebx
add ecx, ebx
push eax
push ecx
call fcn.00500590
mov ebp, dword [edi + 8]
add esp, 0xc
sub ebp, esi
mov ecx, edi
push 0
push ebp
call fcn.004d8910
test al, al
je 0x4d87ff
mov ecx, dword [edi + 4]
mov dword [edi + 8], ebp
mov byte [ecx + ebp], 0
mov ebp, dword [esp + 0x10]
mov edi, dword [edi + 4]
test edi, edi
jne 0x4d880f
mov edi, 0x11e1ecc
mov ecx, ebx
mov esi, ebp
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
pop ecx
ret
mov edx, ebx
push 0
sub edx, eax
mov ecx, edi
push edx
call fcn.004d8840
jmp 0x4d8803
Function at 0x4eb050
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x129b7f8]
xor edx, edx
cmp eax, edx
jne 0x4eb076
xor eax, eax
mov byte [eax + 0x129b6f8], al
inc eax
cmp eax, 0x100
jl 0x4eb05e
mov dword [0x129b7f8], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x129b6f8
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x4eb107
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x4eb0da
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x4eb0a8
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x4eb180
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x4eb1d3
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x4eb1ba
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4f1b80
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x52540e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.004f24a0
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0x11e6914
call fcn.00514aa9
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x4f1c13
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.00514aa9
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x4f1c0c
push 0
mov ecx, eax
call fcn.004e8c80
mov dword [esi + 0xc], eax
jmp 0x4f1c15
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x4f1c15
xor esi, esi
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], 0
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8
Function at 0x503087
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x5030a7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0050174a
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x5030ca
test byte [esp + 8], 2
je 0x5030ca
call fcn.005017bd
mov dword [eax], 0xd
call fcn.005017c6
mov dword [eax], 5
jmp 0x5030a3
xor eax, eax
ret

Function at 0x517173
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x5171ab
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.005151c3
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0051519b
jmp 0x5171b7
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x518868
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x5188aa
call fcn.0051e8b2
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x5188aa
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x5188a1
xor eax, eax
jmp 0x5188b2
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.005188b8
pop edi
pop esi
pop ebx
ret 4

Function at 0x51ede2
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x51ee10
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x51ee2e
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0051ed48
jmp 0x51ee2e
mov eax, dword [esi + 0x14]
test eax, eax
je 0x51ee2e
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0051ed48
test edi, edi
mov eax, edi
jne 0x51ee18
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8