joyce8/EMBER2024-capa huggingface dataset:
Function at 0x469bf4
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], esp
push dword [ebp + 8]
call dword [sym.imp.user32.dll_GetWindowTextLengthW]
nop
nop
nop
nop
cmp dword [ebp - 0xc], esp
je 0x469c2d
push 6
call fcn.004afa0c
add esp, 4
mov dword [ebp - 0x18], eax
fild dword [ebp - 0x18]
fstp qword [ebp - 0x18]
fld qword [ebp - 0x18]
fmul qword [0x5401ec]
fstp qword [ebp - 0x20]
fld qword [ebp - 0x20]
fadd qword [0x5401ec]
fstp qword [ebp - 0x28]
fld qword [ebp - 0x28]
call fcn.0046951a
mov dword [ebp - 4], eax
push 0x80000301
push 0
push dword [ebp - 4]
push 1
mov ebx, 0x1bc
call fcn.004b1900
add esp, 0x10
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x469c8c
push ebx
call fcn.004afa06
add esp, 4
pop eax
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], esp
push dword [ebp - 4]
mov eax, dword [ebp - 8]
test eax, eax
je 0x469ca0
add eax, 8
push eax
push dword [ebp + 8]
call dword [sym.imp.user32.dll_GetWindowTextW]
nop
nop
nop
nop
cmp dword [ebp - 0xc], esp
je 0x469cc0
push 6
call fcn.004afa0c
add esp, 4
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x469cd7
mov eax, 0x5401f4
jmp 0x469cf6
mov eax, dword [ebp - 8]
test eax, eax
je 0x469cf1
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.004afa00
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x469cf6
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x469d07
push ebx
call fcn.004afa06
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 4

Function at 0x46b1be
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 4], 0
cmp dword [ebp + 8], 0
jg 0x46b1e2
mov eax, 0x540184
jmp 0x46b2a4
push 0x80000301
push 0
push dword [ebp + 0xc]
push 1
mov ebx, 0x1bc
call fcn.004b1900
add esp, 0x10
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x46b215
push ebx
call fcn.004afa06
add esp, 4
pop eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], esp
push 0
mov eax, 0
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0xc]
mov eax, dword [ebp - 4]
test eax, eax
je 0x46b23a
add eax, 8
push eax
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_ReadFile]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x46b25a
push 6
call fcn.004afa0c
add esp, 4
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x46b285
push 0
push 1
push 2
push dword [ebp + 8]
call fcn.0046b2bc
mov eax, 0x540184
jmp 0x46b2a4
mov eax, dword [ebp - 4]
test eax, eax
je 0x46b29f
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.004afa00
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x46b2a4
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x46b2b5
push ebx
call fcn.004afa06
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 8
Function at 0x46d025
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], esp
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
test eax, eax
je 0x46d03d
add eax, 8
push eax
call dword [sym.imp.shlwapi.dll_PathFileExistsW]
nop
nop
nop
nop
cmp dword [ebp - 4], esp
je 0x46d05a
push 6
call fcn.004afa0c
add esp, 4
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 1
mov eax, 0
sete al
jmp 0x46d06e
mov esp, ebp
pop ebp
ret 4
Function at 0x46f593
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [ebp + 0x14], 1
jne 0x46f5b2
mov dword [ebp + 0x14], 0
jmp 0x46f5cf
cmp dword [ebp + 0x14], 2
jne 0x46f5c8
mov dword [ebp + 0x14], 7
jmp 0x46f5cf
mov dword [ebp + 0x14], 1
mov dword [ebp - 4], esp
push dword [ebp + 0x14]
mov eax, 0x5401f4
test eax, eax
je 0x46f5e1
add eax, 8
push eax
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebx]
test eax, eax
je 0x46f5ee
add eax, 8
push eax
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
test eax, eax
je 0x46f5fb
add eax, 8
push eax
mov eax, 0x540450
test eax, eax
je 0x46f608
add eax, 8
push eax
push 0
call dword [sym.imp.shell32.dll_ShellExecuteW]
nop
nop
nop
nop
cmp dword [ebp - 4], esp
je 0x46f62a
push 6
call fcn.004afa0c
add esp, 4
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 2
jne 0x46f646
mov eax, 0
jmp 0x46f650
mov eax, 1
jmp 0x46f650
mov esp, ebp
pop ebp
ret 0x14
Function at 0x487da6
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
cmp dword [ebp + 8], 0
jle 0x487e2d
push dword [ebp + 0xc]
call fcn.0046ec35
mov dword [ebp - 4], eax
push reloc.WS2_32.dll_getpeername
push 0
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebx]
test eax, eax
jne 0x487dd9
mov eax, 0x540184
push eax
push 1
mov ebx, 0x194
call fcn.004b18f0
add esp, 0x10
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], esp
push 0
mov eax, 0
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 8]
push dword [ebp - 4]
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_WriteFile]
nop
nop
nop
nop
cmp dword [ebp - 0xc], esp
je 0x487e28
push 6
call fcn.004afa0c
add esp, 4
jmp 0x487e37
mov eax, 0
jmp 0x487e37
mov esp, ebp
pop ebp
ret 8
Function at 0x48f74b
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
push 0x80000301
push 0
push 0x104
push 1
mov ebx, 0x1bc
call fcn.004b1900
add esp, 0x10
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x48f79e
push ebx
call fcn.004afa06
add esp, 4
pop eax
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0
jne 0x48f7b3
mov dword [ebp + 8], 3
cmp dword [ebp + 8], 1
jl 0x48f7ce
cmp dword [ebp + 8], 8
jg 0x48f7ce
mov eax, 1
jmp 0x48f7d3
mov eax, 0
test eax, eax
je 0x48f89e
mov eax, dword [ebp + 8]
cmp eax, 1
jl 0x48f7e8
cmp eax, 9
jl 0x48f7f5
push 9
call fcn.004afa0c
add esp, 4
dec eax
call 0x48f7fb
pop ebx
add ebx, dword [eax*4 + 0x5404ad]
jmp ebx
cmp dword [ebp + 8], 9
jne 0x48f8ee
mov dword [ebp - 0x10], esp
push 0x104
mov eax, dword [ebp - 4]
test eax, eax
je 0x48f8ba
add eax, 8
push eax
call dword [sym.imp.kernel32.dll_GetWindowsDirectoryW]
nop
nop
nop
nop
cmp dword [ebp - 0x10], esp
je 0x48f8d7
push 6
call fcn.004afa0c
add esp, 4
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
mov eax, 0
setg al
mov dword [ebp - 0xc], eax
jmp 0x48f9e0
cmp dword [ebp + 8], 0xa
jne 0x48f93e
mov dword [ebp - 0x10], esp
push 0x104
mov eax, dword [ebp - 4]
test eax, eax
je 0x48f90a
add eax, 8
push eax
call dword [0x544d93]
nop
nop
nop
nop
cmp dword [ebp - 0x10], esp
je 0x48f927
push 6
call fcn.004afa0c
add esp, 4
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
mov eax, 0
setg al
mov dword [ebp - 0xc], eax
jmp 0x48f9e0
cmp dword [ebp + 8], 0xb
jne 0x48f98e
mov dword [ebp - 0x10], esp
mov eax, dword [ebp - 4]
test eax, eax
je 0x48f955
add eax, 8
push eax
push 0x104
call dword [sym.imp.kernel32.dll_GetTempPathW]
nop
nop
nop
nop
cmp dword [ebp - 0x10], esp
je 0x48f977
push 6
call fcn.004afa0c
add esp, 4
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
mov eax, 0
setg al
mov dword [ebp - 0xc], eax
jmp 0x48f9e0
cmp dword [ebp + 8], 0xc
jne 0x48f9e0
mov dword [ebp - 0x10], esp
push 0
push 0x20
mov eax, dword [ebp - 4]
test eax, eax
je 0x48f9af
add eax, 8
push eax
push 0
call dword [sym.imp.shell32.dll_SHGetSpecialFolderPathW]
nop
nop
nop
nop
cmp dword [ebp - 0x10], esp
je 0x48f9d1
push 6
call fcn.004afa0c
add esp, 4
test eax, eax
je 0x48f9e0
mov dword [ebp - 0xc], 1
mov eax, 0x5401f4
jmp 0x48f9ea
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x48f9fb
push ebx
call fcn.004afa06
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 8
Function at 0x49d470
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 4], 0
mov dword [ebp - 4], 0
mov dword [ebp - 8], esp
push 0x11
call dword [sym.imp.user32.dll_GetAsyncKeyState]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x49d4ab
push 6
call fcn.004afa0c
add esp, 4
mov dword [ebp - 0xc], eax
push 0x80000301
push 0
push 0x8000
push 0x80000301
push 0
push dword [ebp - 0xc]
push 2
mov ebx, 0xc4
call fcn.004b1ec0
add esp, 0x1c
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x49d50e
push 0x80000301
push 0
push 1
push 0x80000301
push 0
push dword [ebp - 4]
push 2
mov ebx, 0xc8
call fcn.004b1ea0
add esp, 0x1c
mov dword [ebp - 4], eax
mov dword [ebp - 8], esp
push 0x10
call dword [sym.imp.user32.dll_GetAsyncKeyState]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x49d532
push 6
call fcn.004afa0c
add esp, 4
mov dword [ebp - 0xc], eax
push 0x80000301
push 0
push 0x8000
push 0x80000301
push 0
push dword [ebp - 0xc]
push 2
mov ebx, 0xc4
call fcn.004b1ec0
add esp, 0x1c
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x49d595
push 0x80000301
push 0
push 2
push 0x80000301
push 0
push dword [ebp - 4]
push 2
mov ebx, 0xc8
call fcn.004b1ea0
add esp, 0x1c
mov dword [ebp - 4], eax
mov dword [ebp - 8], esp
push 0x12
call dword [sym.imp.user32.dll_GetAsyncKeyState]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x49d5b9
push 6
call fcn.004afa0c
add esp, 4
mov dword [ebp - 0xc], eax
push 0x80000301
push 0
push 0x8000
push 0x80000301
push 0
push dword [ebp - 0xc]
push 2
mov ebx, 0xc4
call fcn.004b1ec0
add esp, 0x1c
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x49d61c
push 0x80000301
push 0
push 4
push 0x80000301
push 0
push dword [ebp - 4]
push 2
mov ebx, 0xc8
call fcn.004b1ea0
add esp, 0x1c
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
jmp 0x49d624
mov esp, ebp
pop ebp
ret
Function at 0x4a0863
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx]
add ebx, 4
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], esp
mov ebx, dword [ebp - 0xc]
push dword [ebx]
call dword [sym.imp.user32.dll_GetWindowTextLengthW]
nop
nop
nop
nop
cmp dword [ebp - 0x10], esp
je 0x4a08a9
push 6
call fcn.004afa0c
add esp, 4
mov dword [ebp - 0x1c], eax
fild dword [ebp - 0x1c]
fstp qword [ebp - 0x1c]
fld qword [ebp - 0x1c]
fmul qword [0x5401ec]
fstp qword [ebp - 0x24]
fld qword [ebp - 0x24]
fadd qword [0x5401ec]
fstp qword [ebp - 0x2c]
fld qword [ebp - 0x2c]
call fcn.0046951a
mov dword [ebp - 4], eax
push 0x80000301
push 0
push dword [ebp - 4]
push 1
mov ebx, 0x1bc
call fcn.004b1900
add esp, 0x10
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x4a0908
push ebx
call fcn.004afa06
add esp, 4
pop eax
mov dword [ebp - 8], eax
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx]
add ebx, 4
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], esp
push dword [ebp - 4]
mov eax, dword [ebp - 8]
test eax, eax
je 0x4a0927
add eax, 8
push eax
mov ebx, dword [ebp - 0xc]
push dword [ebx]
call dword [sym.imp.user32.dll_GetWindowTextW]
nop
nop
nop
nop
cmp dword [ebp - 0x10], esp
je 0x4a0949
push 6
call fcn.004afa0c
add esp, 4
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x4a0960
mov eax, 0x5401f4
jmp 0x4a097f
mov eax, dword [ebp - 8]
test eax, eax
je 0x4a097a
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.004afa00
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x4a097f
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x4a0990
push ebx
call fcn.004afa06
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 4

Function at 0x4c340c
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 0x4c344e
call fcn.004c64dc
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.kernel32.dll_FindResourceA]
cmp eax, edi
je 0x4c344e
push eax
push esi
call dword [sym.imp.kernel32.dll_LoadResource]
cmp eax, edi
jne 0x4c3445
xor eax, eax
jmp 0x4c3456
push eax
call dword [sym.imp.kernel32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004c345c
pop edi
pop esi
pop ebx
ret 4
Function at 0x4c415e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x4c7dc4
call fcn.004b6160
sub esp, 0x18
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], esi
mov eax, dword [esi + 0x48]
mov edi, dword [esi + 0x44]
mov dword [ebp - 0x18], eax
call fcn.004c64dc
cmp dword [esi + 0x40], 0
mov ebx, dword [eax + 0xc]
je 0x4c419d
call fcn.004c64dc
mov ebx, dword [eax + 0xc]
push 5
push dword [esi + 0x40]
push ebx
call dword [sym.imp.kernel32.dll_FindResourceA]
push eax
push ebx
call dword [sym.imp.kernel32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x4c41ab
push edi
call dword [sym.imp.kernel32.dll_LockResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x4c41b9
or eax, 0xffffffff
jmp 0x4c42a1
mov ecx, esi
call fcn.004c40d4
mov dword [ebp - 0x14], eax
call fcn.004c1a57
xor edi, edi
cmp dword [ebp - 0x14], edi
mov dword [ebp - 0x20], edi
je 0x4c41f0
push dword [ebp - 0x14]
call dword [sym.imp.user32.dll_IsWindowEnabled]
test eax, eax
je 0x4c41f0
push edi
push dword [ebp - 0x14]
call dword [sym.imp.user32.dll_EnableWindow]
mov dword [ebp - 0x20], 1
push esi
mov dword [ebp - 4], edi
call fcn.004c1a0b
push dword [ebp - 0x14]
call fcn.004c153d
push ebx
push eax
push dword [ebp - 0x18]
mov ecx, esi
call fcn.004c3e6c
cmp eax, edi
je 0x4c4263
test byte [esi + 0x24], 0x10
je 0x4c4231
push 4
mov ecx, esi
pop ebx
call fcn.004c0f3d
test ah, 1
je 0x4c4229
push 5
pop ebx
push ebx
mov ecx, esi
call fcn.004c355e
cmp dword [esi + 0x1c], edi
je 0x4c4263
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.004c0f71
jmp 0x4c4263
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], edi
je 0x4c4277
push 1
push dword [ebp - 0x14]
call dword [sym.imp.user32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x4c4290
call dword [sym.imp.user32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x1c]
jne 0x4c4290
push dword [ebp - 0x14]
call dword [sym.imp.user32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x58]
mov ecx, esi
call fcn.004c410e
mov eax, dword [esi + 0x2c]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x4cac40
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x5921fc]
xor edx, edx
cmp eax, edx
jne 0x4cac66
xor eax, eax
mov byte [eax + 0x5920fc], al
inc eax
cmp eax, 0x100
jl 0x4cac4e
mov dword [0x5921fc], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x5920fc
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x4cacf7
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 0x4cacca
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 0x4cac98
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x4cad00
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 0x4cad53
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 0x4cad3a
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 0x4d1700
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4fe25e
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.004d2020
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0x5234b4
call fcn.004efbbb
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x4d1793
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.004efbbb
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x4d178c
push 0
mov ecx, eax
call fcn.004c8870
mov dword [esi + 0xc], eax
jmp 0x4d1795
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x4d1795
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 0x4f2221
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4f2259
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.004f02d5
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA_1]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004f02ad
jmp 0x4f2265
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4f390f
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 0x4f3951
call fcn.004f93ce
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA_1]
cmp eax, edi
je 0x4f3951
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource_1]
cmp eax, edi
jne 0x4f3948
xor eax, eax
jmp 0x4f3959
push eax
call dword [sym.imp.KERNEL32.dll_LockResource_1]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004f395f
pop edi
pop esi
pop ebx
ret 4

Function at 0x4f98fe
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_1]
cmp dword [esp + 0x10], 0
jne 0x4f992c
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue_1]
test eax, eax
je 0x4f994a
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004f9864
jmp 0x4f994a
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4f994a
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004f9864
test edi, edi
mov eax, edi
jne 0x4f9934
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection_1]
pop esi
pop ebx
ret 8
Function at 0x402706
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 0xc]
push esi
imul eax, eax, 0x61c88647
mov esi, dword [esp + 0xc]
test eax, eax
mov edx, dword [esi]
mov ecx, dword [esi + 4]
je 0x40276e
mov esi, dword [esp + 8]
push ebx
push edi
mov edi, edx
mov ebx, edx
sar edi, 5
shl ebx, 4
xor edi, ebx
mov ebx, eax
sar ebx, 0xb
and ebx, 3
add edi, dword [esi + ebx*4]
mov ebx, eax
xor ebx, edx
add eax, 0x61c88647
add edi, ebx
sub ecx, edi
mov edi, ecx
mov ebx, ecx
sar edi, 5
shl ebx, 4
xor edi, ebx
mov ebx, eax
and ebx, 3
add edi, dword [esi + ebx*4]
mov ebx, eax
xor ebx, ecx
add edi, ebx
sub edx, edi
test eax, eax
jne 0x402724
mov esi, dword [esp + 0x14]
pop edi
pop ebx
mov dword [esi], edx
mov dword [esi + 4], ecx
pop esi
ret

Function at 0x438860
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x22000]
push edi
or ebp, 0xffffffff
jmp 0x438882
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x438889
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x438878
pushfd
xor eax, eax
inc eax
popfd
add ebx, ebx
jne 0x43889b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x438890
jne 0x4388ac
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x438890
xor ecx, ecx
sub eax, 3
jb 0x4388c0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x438932
mov ebp, eax
add ebx, ebx
jne 0x4388cb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x4388d8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x4388fc
inc ecx
add ebx, ebx
jne 0x4388e8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4388dd
jne 0x4388f9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4388dd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x43891c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x43890d
jmp 0x43887e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x43891c
add edi, ecx
jmp 0x43887e
pop esi
mov edi, esi
mov ecx, 0xe0e
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x43893a
cmp byte [edi], 0xa
jne 0x43893a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x43893f
lea edi, [esi + 0x36000]
mov eax, dword [edi]
test eax, eax
je 0x4389b7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x3820c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x382ac]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x43896c
push edi
pop ecx
jns 0x43899b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x382b0]
test eax, eax
je 0x4389b1
mov dword [ebx], eax
add ebx, 4
jmp 0x438989
call dword [esi + 0x382b4]
popal
jmp 0x41be59
Function at 0x401822
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x401861
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x401861
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x401861
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x401861
cmp dword [ecx + 0x74], 0xe
jbe 0x401861
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x40bf90
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40bfbd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40bfbd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret