joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4ba2b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
lea eax, [esp + 0xc]
push esi
mov esi, dword [esp + 0x18]
push eax
push 0x20019
push 0
push ecx
push edx
mov dword [esp + 0x2c], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4ba316
lea eax, [esp + 0xc]
lea ecx, [esp + 0x18]
push eax
mov eax, dword [esp + 0x18]
lea edx, [esp + 8]
push ecx
mov ecx, dword [esp + 0x18]
push edx
push 0
push eax
push ecx
mov dword [esp + 0x24], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x4ba30b
mov dword [esp + 0x18], esi
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x18]
pop esi
pop ecx
ret
Function at 0x4baf40
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x5ce55b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x404
mov eax, dword [ecx + 0x194]
push esi
xor esi, esi
cmp eax, esi
mov dword [esp + 4], esi
je 0x4baff0
mov eax, dword [ecx + 0x198]
mov ecx, dword [esp + 0x424]
mov edx, dword [esp + 0x420]
push eax
lea eax, [esp + 0xc]
push 0x400
push eax
mov eax, dword [esp + 0x428]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [esp + 8]
push ecx
lea ecx, [esp + 8]
call fcn.005980a0
push 0x621050
push str.nl
lea ecx, [esp + 0xc]
mov dword [esp + 0x418], esi
call fcn.0058f334
mov esi, dword [esp + 0x418]
lea edx, [esp + 4]
push edx
mov ecx, esi
call fcn.00597da7
lea ecx, [esp + 4]
mov dword [esp + 0x410], 0xffffffff
call fcn.00598032
jmp 0x4bb01f
call fcn.005b2355
mov ecx, dword [esp + 0x424]
mov edx, dword [esp + 0x420]
mov eax, dword [eax + 4]
mov esi, dword [esp + 0x418]
push ecx
mov ecx, dword [esp + 0x420]
push edx
push ecx
push esi
mov ecx, eax
call fcn.005b34bd
mov ecx, dword [esp + 0x408]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x410
ret 0x10

Function at 0x4bb040
Capabilities:
Read .ini file

Disassembly:
mov eax, dword [ecx + 0x194]
test eax, eax
je 0x4bb069
mov eax, dword [ecx + 0x198]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push eax
mov eax, dword [esp + 0x10]
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
ret 0xc
call fcn.005b2355
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
mov eax, dword [eax + 4]
push ecx
mov ecx, dword [esp + 8]
push edx
push ecx
mov ecx, eax
call fcn.005b3451
ret 0xc
Function at 0x4bb2a0
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x5ce5b8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov ebx, ecx
push 1
push 0
lea ecx, [esp + 0x18]
call fcn.0055e500
mov ebp, dword [esp + 0x48]
mov dword [esp + 0x34], 0
lea edi, [ebp + ebp]
push edi
call fcn.004f5323
mov esi, eax
mov eax, dword [ebx + 0x194]
add esp, 4
test eax, eax
je 0x4bb310
mov ebx, dword [ebx + 0x198]
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x3c]
push ebx
push edi
push esi
push 0x63df70
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
jmp 0x4bb349
call fcn.005b2355
mov edx, dword [esp + 0x40]
mov ecx, dword [esp + 0x3c]
mov eax, dword [eax + 4]
push 0x63df70
push edx
lea edx, [esp + 0x50]
push ecx
push edx
mov ecx, eax
call fcn.005b34bd
mov eax, dword [eax]
push edi
push eax
push esi
call fcn.004f7cc0
add esp, 0xc
lea ecx, [esp + 0x48]
call fcn.00598032
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
push 0xffffffffffffffff
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x18]
not ecx
dec ecx
push ecx
mov ecx, dword [eax + 4]
push esi
lea ecx, [esp + ecx + 0x20]
call fcn.0055d5e0
push esi
call fcn.004f5907
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x48]
add esp, 4
mov ecx, dword [eax + 4]
push ebp
push edx
lea ecx, [esp + ecx + 0x1c]
call fcn.0055d890
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
test ecx, ecx
mov dword [esp + 0x28], 0xffffffff
pop ebx
je 0x4bb3a2
mov edx, dword [ecx]
push 1
call dword [edx]
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
add esp, 0x28
ret 0x10
Function at 0x4bbb70
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
sub esp, 0xc
push esi
mov dword [esp + 8], ecx
push 1
call dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
jne 0x4bbb89
pop esi
add esp, 0xc
ret
mov eax, dword [0x64097c]
xor esi, esi
cmp eax, esi
je 0x4bbb9b
xor eax, eax
pop esi
add esp, 0xc
ret
push esi
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
jne 0x4bbbab
pop esi
add esp, 0xc
ret
push ebx
push ebp
push edi
push 1
mov dword [esp + 0x1c], esi
mov dword [0x64097c], 1
mov dword [esp + 0x14], esi
call dword [sym.imp.USER32.dll_GetClipboardData]
mov ebp, eax
cmp ebp, esi
je 0x4bbc19
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov esi, eax
or ecx, 0xffffffff
mov edi, esi
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
call fcn.004f5323
mov ebx, eax
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
add esp, 4
mov dword [esp + 0x10], ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push ebp
mov eax, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
jmp 0x4bbc1d
mov ebx, dword [esp + 0x18]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4bbd07
mov esi, dword [esp + 0x14]
xor edi, edi
push edi
push ebx
mov ecx, esi
call fcn.004bd3c0
test eax, eax
je 0x4bbc5f
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 1
push ecx
push ebx
mov ecx, esi
call fcn.004bd940
mov edi, eax
jmp 0x4bbccc
push str.PD:
push ebx
call fcn.004f6130
mov esi, eax
add esp, 8
test esi, esi
je 0x4bbccc
push str.EK:
push esi
call fcn.004f6130
add esp, 8
test eax, eax
je 0x4bbccc
sub eax, esi
push 1
add eax, 4
mov ebp, eax
lea ecx, [ebp + 0x10]
push ecx
call fcn.004f5c63
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x4bbccc
mov ecx, ebp
mov edi, ebx
mov edx, ecx
push 1
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push 1
and ecx, 3
push ebp
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x20]
push ebx
call fcn.004bd940
push ebx
mov edi, eax
call fcn.004f5907
add esp, 4
mov eax, dword [esp + 0x10]
push eax
call fcn.004f5907
add esp, 4
test edi, edi
je 0x4bbd07
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x4bbcf5
call dword [sym.imp.USER32.dll_EmptyClipboard]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x18], 1
mov dword [ecx + 0xfc], edi
mov eax, dword [esp + 0x18]
pop edi
pop ebp
pop ebx
mov dword [0x64097c], 0
pop esi
add esp, 0xc
ret
Function at 0x4c011a
Capabilities:
Get system information on windows

Disassembly:
push 0xffffffffffffffff
push 0x5cec61
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x14], esi
mov eax, dword [esp + 0x4c]
lea ebp, [esi + 4]
xor ebx, ebx
push eax
mov ecx, ebp
mov dword [esp + 0x48], ebx
call fcn.005980a0
mov ecx, dword [esp + 0x50]
push ebp
mov dword [esi + 0xc], ecx
mov edx, dword [str.COXInstanceManager_InstanceList_Mutex_]
lea eax, [esp + 0x54]
push edx
push eax
mov byte [esp + 0x50], 1
call fcn.0059833b
mov eax, dword [eax]
push ebx
push eax
push ebx
lea ecx, [esi + 0x10]
mov byte [esp + 0x50], 2
call fcn.004eda93
lea ecx, [esp + 0x50]
mov byte [esp + 0x44], 4
call fcn.00598032
mov ecx, dword [str.COXInstanceManager_Additional_Mutex_]
push ebp
lea edx, [esp + 0x14]
push ecx
push edx
call fcn.0059833b
mov eax, dword [eax]
push ebx
push eax
push ebx
lea ecx, [esi + 0x18]
mov byte [esp + 0x50], 5
call fcn.004eda93
lea ecx, [esp + 0x10]
mov byte [esp + 0x44], 7
call fcn.00598032
mov ecx, 9
xor eax, eax
lea edi, [esp + 0x18]
mov dword [esi + 0x20], ebx
rep stosd dword es:[edi], eax
lea eax, [esp + 0x18]
mov dword [esi + 0x24], ebx
push eax
mov dword [esi + 0x28], ebx
mov dword [esi], 0x5e5c50
mov dword [esi + 8], 0xfa8
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov edi, dword [esi + 8]
mov ecx, dword [esp + 0x34]
mov eax, edi
xor edx, edx
div ecx
mov eax, edi
test edx, edx
je 0x4c01f0
xor edx, edx
div ecx
add eax, ecx
jmp 0x4c01f4
xor edx, edx
div ecx
mov edi, dword [esi + 0xc]
mov dword [esi + 8], eax
mov eax, edi
xor edx, edx
div ecx
mov eax, edi
test edx, edx
je 0x4c020e
xor edx, edx
div ecx
add eax, ecx
jmp 0x4c0212
xor edx, edx
div ecx
mov ecx, dword [esi + 8]
mov edi, eax
mov dword [esi + 0xc], eax
add edi, ecx
mov ecx, dword [str.COXInstanceManager_FileMap_]
push ebp
lea edx, [esp + 0x50]
push ecx
push edx
call fcn.0059833b
mov eax, dword [esp + 0x4c]
mov byte [esp + 0x44], 8
push eax
push edi
push ebx
push 0x8000004
push ebx
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov dword [esi + 0x20], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
cmp eax, 0xb7
sete cl
mov eax, ecx
cmp eax, ebx
jne 0x4c0268
mov ecx, esi
call fcn.004c0570
cmp dword [esp + 0x54], ebx
je 0x4c027b
call sub.KERNEL32.dll_GetCurrentProcessId
push eax
mov ecx, esi
call fcn.004c05d0
lea ecx, [esp + 0x4c]
mov byte [esp + 0x44], 7
call fcn.00598032
mov ecx, dword [esp + 0x3c]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x38
ret 0xc

Function at 0x4c0400
Capabilities:
Enumerate gui resources

Disassembly:
sub esp, 8
mov eax, dword [esp + 0xc]
lea ecx, [esp]
push ecx
push 0x4c0760
mov dword [esp + 8], eax
mov dword [esp + 0xc], 0
call dword [sym.imp.USER32.dll_EnumWindows]
mov eax, dword [esp + 4]
add esp, 8
ret
Function at 0x4c0440
Capabilities:
Read file via mapping

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x28]
test eax, eax
jne 0x4c0469
mov eax, dword [esi + 0x20]
test eax, eax
jne 0x4c0453
pop esi
ret
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 8]
push ecx
push edx
push 0
push 6
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [esi + 0x28], eax
pop esi
ret

Function at 0x4c0520
Capabilities:
Read file via mapping

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x20]
test eax, eax
jne 0x4c052c
pop esi
ret
mov ecx, dword [esi + 8]
push ecx
push 0
push 0
push 6
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
xor edx, edx
mov dword [esi + 0x24], eax
test eax, eax
setne dl
mov eax, edx
pop esi
ret

Function at 0x4c1280
Capabilities:
Hash data with md5

Disassembly:
xor eax, eax
mov dword [ecx], 0x67452301
mov byte [ecx + 0x68], al
mov dword [ecx + 0x10], eax
mov dword [ecx + 0x14], eax
mov dword [ecx + 4], 0xefcdab89
mov dword [ecx + 8], 0x98badcfe
mov dword [ecx + 0xc], 0x10325476
ret
Function at 0x4c34e0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x4c34eb
xor eax, eax
ret
mov eax, dword [esp + 4]
push ebx
push esi
mov esi, dword [esp + 0x14]
cmp esi, 8
not eax
jb 0x4c35ee
push edi
mov edi, esi
shr edi, 3
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
mov ebx, eax
shr ebx, 8
mov eax, dword [edx*4 + 0x62de34]
sub esi, 8
xor eax, ebx
inc ecx
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x62de34]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x62de34]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x62de34]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x62de34]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x62de34]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x62de34]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x62de34]
xor eax, edx
inc ecx
dec edi
jne 0x4c3506
pop edi
test esi, esi
je 0x4c3610
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x62de34]
xor eax, edx
inc ecx
dec esi
jne 0x4c35f2
pop esi
pop ebx
not eax
ret

Function at 0x4c6ad0
Capabilities:
Log keystrokes via polling

Disassembly:
push ecx
push ebp
mov ebp, ecx
push 0x10
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
and eax, 0xffff8000
test ax, ax
je 0x4c6bb9
mov ecx, dword [esp + 0xc]
mov eax, dword [ebp + 0x9e8]
push ebx
push esi
push edi
mov edi, dword [ecx]
mov ebx, dword [ecx + 4]
mov ecx, dword [ebp + 0x9ec]
sub edi, eax
sub ebx, ecx
mov eax, edi
cdq
mov esi, eax
mov eax, ebx
xor esi, edx
sub esi, edx
cdq
mov ecx, eax
xor eax, eax
xor ecx, edx
sub ecx, edx
test edi, edi
setl al
dec eax
xor edx, edx
and eax, 2
dec eax
test ebx, ebx
setl dl
dec edx
mov dword [esp + 0x10], eax
and edx, 2
dec edx
mov edi, edx
mov edx, dword [ebp + 0x998]
cmp edx, 0xc
je 0x4c6b8d
cmp edx, 0xd
je 0x4c6b8d
cmp edx, 0xe
je 0x4c6b8d
cmp edx, 0xf
je 0x4c6b8d
cmp edx, 0x10
je 0x4c6b8d
cmp edx, 0x11
je 0x4c6b8d
cmp edx, 0x12
je 0x4c6b8d
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
cmp esi, eax
jle 0x4c6b75
mov eax, esi
cdq
sub eax, edx
sar eax, 1
cmp ecx, eax
jg 0x4c6b89
cmp esi, ecx
jle 0x4c6b81
mov eax, dword [esp + 0x10]
xor ecx, ecx
jmp 0x4c6b97
mov eax, dword [esp + 0x10]
xor esi, esi
jmp 0x4c6b97
mov eax, dword [esp + 0x10]
cmp esi, ecx
jle 0x4c6b95
mov esi, ecx
jmp 0x4c6b97
mov ecx, esi
imul eax, esi
imul edi, ecx
mov edx, dword [ebp + 0x9e8]
add eax, edx
mov edx, dword [esp + 0x18]
mov dword [edx], eax
mov eax, dword [ebp + 0x9ec]
add edi, eax
mov dword [edx + 4], edi
pop edi
pop esi
pop ebx
pop ebp
pop ecx
ret 4
Function at 0x4ca460
Capabilities:
Log keystrokes via polling
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x28
xor eax, eax
push esi
mov esi, ecx
cmp dword [esi + 0x78], eax
jne 0x4ca474
pop esi
add esp, 0x28
ret 8
mov ecx, dword [esi + 0xa74]
push ebx
push edi
mov edi, dword [esp + 0x38]
cmp ecx, eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
jbe 0x4ca55c
push ebp
call fcn.004f7022
cdq
mov ecx, 0x168
idiv ecx
mov dword [esp + 0x3c], edx
fild dword [esp + 0x3c]
fmul qword [0x5e6860]
fstp qword [esp + 0x20]
call fcn.004f7022
xor edx, edx
mov dword [esp + 0x1c], 0
div dword [esp + 0x40]
mov dword [esp + 0x18], edx
fild qword [esp + 0x18]
fld qword [esp + 0x20]
fcos
fmul st(1)
call fcn.004f6200
fld qword [esp + 0x20]
fsin
mov edx, dword [edi]
mov ebx, eax
add ebx, edx
fmul st(1)
call fcn.004f6200
mov ecx, dword [edi + 4]
mov ebp, eax
mov eax, dword [esi + 0x9c8]
add ebp, ecx
test eax, eax
fstp st(0)
jne 0x4ca50b
push 2
call dword [sym.imp.USER32.dll_GetKeyState]
test ah, 0x80
je 0x4ca513
mov eax, dword [esi + 0x9a8]
jmp 0x4ca519
mov eax, dword [esi + 0x9a0]
push 0
push eax
push 1
push ebp
push ebx
lea ecx, [esi + 0x5c]
call fcn.004e9a70
test eax, eax
je 0x4ca53c
mov eax, dword [esp + 0x10]
mov dword [esp + 0x10], 1
test eax, eax
jne 0x4ca544
mov dword [esp + 0x10], 0
mov eax, dword [esp + 0x14]
mov ecx, dword [esi + 0xa74]
inc eax
cmp eax, ecx
mov dword [esp + 0x14], eax
jb 0x4ca491
pop ebp
mov eax, dword [edi]
mov ebx, dword [esp + 0x3c]
mov dword [0x6409c8], eax
mov ecx, dword [edi + 4]
sub ecx, ebx
sub eax, ebx
mov dword [0x6409cc], ecx
push 0x6409c8
mov ecx, esi
mov dword [0x6409c8], eax
call fcn.004c4c30
push 0x6409c8
mov ecx, esi
call fcn.004c4df0
mov eax, dword [edi]
push 0x6409c0
mov dword [0x6409c0], eax
mov edi, dword [edi + 4]
add eax, ebx
add edi, ebx
mov ecx, esi
mov dword [0x6409c0], eax
mov dword [0x6409c4], edi
call fcn.004c4c30
push 0x6409c0
mov ecx, esi
call fcn.004c4df0
mov edx, dword [0x6409c8]
mov ecx, dword [0x6409c0]
mov eax, dword [0x6409cc]
mov dword [esp + 0x24], edx
mov edx, dword [0x6409c4]
mov dword [esp + 0x2c], ecx
lea ecx, [esp + 0x24]
mov dword [esp + 0x28], eax
mov dword [esp + 0x30], edx
call fcn.005aa0a2
push 1
push 1
push 1
push 1
lea ecx, [esp + 0x34]
call fcn.005aa0de
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x24]
push 0
push eax
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
mov eax, dword [esp + 0xc]
pop edi
pop ebx
pop esi
add esp, 0x28
ret 8
Function at 0x4cc830
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5cf808
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
push ebx
push esi
mov esi, ecx
push edi
push esi
lea ecx, [esp + 0x30]
call fcn.0059bebe
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0xc]
xor edi, edi
push eax
push ecx
mov dword [esp + 0x50], edi
call dword [sym.imp.USER32.dll_GetWindowRect]
lea edx, [esp + 0xc]
mov ecx, esi
push edx
call fcn.0059bc78
mov eax, dword [esi + 0x798]
mov ebx, dword [sym.imp.USER32.dll_OffsetRect]
cmp eax, edi
jle 0x4cc8c6
mov eax, dword [esi]
lea ecx, [esp + 0x1c]
push ecx
push edi
mov ecx, esi
call dword [eax + 0xe0]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
neg eax
neg ecx
push eax
lea edx, [esp + 0x20]
push ecx
push edx
call ebx
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x2c]
push eax
call fcn.0059bac2
mov eax, dword [esi + 0x798]
inc edi
cmp edi, eax
jl 0x4cc888
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
neg eax
neg ecx
push eax
push ecx
lea ecx, [esp + 0x14]
push ecx
call ebx
push 0xf
call dword [sym.imp.USER32.dll_GetSysColor]
lea edx, [esp + 0xc]
push eax
push edx
lea ecx, [esp + 0x34]
call fcn.005a9eb4
lea eax, [esp + 0xc]
lea ecx, [esp + 0x2c]
push eax
push ecx
mov ecx, esi
call fcn.005a210b
lea edx, [esp + 0x2c]
mov ecx, esi
push edx
call fcn.004cc940
lea ecx, [esp + 0x2c]
mov dword [esp + 0x48], 0xffffffff
call fcn.0059bf30
mov ecx, dword [esp + 0x40]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x40
ret

Function at 0x4ce4a0
Capabilities:
Capture webcam image

Disassembly:
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [esi + 0x1c]
push 0
push 0xce26
push 0x419
push eax
call edi
mov ecx, dword [esi + 0x1c]
push 0
push eax
push 0x416
push ecx
call edi
mov edx, dword [esi + 0x1c]
push 0
push 0xce28
push 0x419
push edx
call edi
push 0
push eax
mov eax, dword [esi + 0x1c]
push 0x416
push eax
call edi
mov ecx, dword [esi + 0x790]
mov edx, dword [esi + 0x1c]
dec ecx
push 0
and ecx, 0xffff
or ecx, 0x10000
push ecx
push 0x427
push edx
call edi
pop edi
pop esi
ret
Function at 0x4d1e40
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x7c
push ebx
push ebp
mov ebp, dword [esp + 0x8c]
push esi
push edi
xor edi, edi
lea eax, [esp + 0x4c]
push edi
push eax
mov esi, ecx
push ebp
mov dword [esp + 0x48], edi
mov dword [esp + 0x4c], edi
mov dword [esp + 0x50], edi
mov dword [esp + 0x54], edi
mov dword [esp + 0x20], 1
mov dword [esp + 0x78], 2
call fcn.00590a88
lea ecx, [esp + 0x5c]
push 2
push ecx
push ebp
mov ecx, esi
call fcn.00590a88
mov eax, dword [esp + 0x5c]
mov ebx, dword [esp + 0x4c]
mov edx, dword [esi + 0x1c]
push edi
push 2
sub eax, ebx
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
push 0x1002
push edx
mov dword [esp + 0x20], eax
call ebx
push eax
call fcn.0059100e
test eax, eax
mov dword [esp + 0x18], eax
je 0x4d1ef5
mov eax, dword [esi + 0x1c]
push 0xf000
push ebp
push 0x102c
push eax
call ebx
test ah, 0xf0
jne 0x4d1ef5
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x1c]
push ecx
push edi
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_GetImageInfo]
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x10]
sub eax, ecx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x50]
mov edx, dword [esp + 0x4c]
mov ecx, dword [esp + 0x54]
mov dword [esp + 0x20], eax
mov eax, dword [esi + 0x1c]
push 0
mov dword [esp + 0x20], edx
mov edx, dword [esp + 0x5c]
push 0
push 0x101d
push eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], edx
call ebx
mov ecx, dword [esp + 0x4c]
lea ebp, [eax + ecx]
mov eax, dword [esp + 0x9c]
test eax, eax
jne 0x4d1f4b
mov eax, dword [esi + 0x64]
test eax, eax
jne 0x4d1f4b
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x1c]
add eax, edx
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x98]
test eax, eax
je 0x4d1fca
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4d1fc1
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x6c]
inc edi
push eax
push edi
push 0x1019
push ecx
call ebx
test eax, eax
mov dword [esp + 0x14], eax
je 0x4d1faa
mov edx, dword [esi + 0x1c]
push 0
push edi
push 0x101d
push edx
mov dword [esp + 0x2c], ebp
call ebx
add ebp, eax
mov eax, dword [esp + 0x9c]
test eax, eax
jne 0x4d1faa
cmp dword [esi + 0x64], edi
jne 0x4d1faa
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x1c]
add ecx, eax
mov dword [esp + 0x1c], ecx
cmp edi, dword [esp + 0x98]
jne 0x4d1f56
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov esi, dword [esp + 0x28]
jmp 0x4d1fe8
cmp edi, dword [esp + 0x98]
jne 0x4d1fd8
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov esi, dword [esp + 0x28]
jmp 0x4d1fe8
mov ecx, dword [esp + 0x3c]
mov esi, dword [esp + 0x48]
mov edx, dword [esp + 0x40]
mov ebp, dword [esp + 0x44]
mov eax, dword [esp + 0x90]
mov edi, eax
mov dword [edi], ecx
mov dword [edi + 4], edx
mov dword [edi + 8], ebp
mov dword [edi + 0xc], esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x7c
ret 0x10
Function at 0x4d47a0
Capabilities:
Read file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [esp + 0x10]
push 0
push eax
lea ecx, [esp + 0x10]
push 2
push ecx
push esi
call edi
test eax, eax
jne 0x4d47c9
pop edi
or eax, 0xffffffff
pop esi
pop ecx
ret
cmp dword [esp + 0x10], 2
je 0x4d47d7
pop edi
or eax, 0xffffffff
pop esi
pop ecx
ret
cmp word [esp + 8], 0
je 0x4d47e6
pop edi
or eax, 0xffffffff
pop esi
pop ecx
ret
lea edx, [esp + 0x10]
push 0
push edx
lea eax, [esp + 0x10]
push 2
push eax
push esi
call edi
test eax, eax
jne 0x4d4802
pop edi
or eax, 0xffffffff
pop esi
pop ecx
ret
cmp dword [esp + 0x10], 2
je 0x4d4810
pop edi
or eax, 0xffffffff
pop esi
pop ecx
ret
cmp word [esp + 8], 1
je 0x4d481f
pop edi
or eax, 0xffffffff
pop esi
pop ecx
ret
lea ecx, [esp + 0x10]
push 0
push ecx
lea edx, [esp + 0x10]
push 2
push edx
push esi
call edi
test eax, eax
jne 0x4d483b
pop edi
or eax, 0xffffffff
pop esi
pop ecx
ret
cmp dword [esp + 0x10], 2
je 0x4d4849
pop edi
or eax, 0xffffffff
pop esi
pop ecx
ret
mov eax, dword [esp + 8]
pop edi
and eax, 0xffff
pop esi
pop ecx
ret
Function at 0x4d4cf0
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
lea eax, [esp + 0x10]
push 0
push eax
lea ecx, [esp + 0x10]
push 2
push ecx
push esi
mov dword [esp + 0x1c], 0
call edi
test eax, eax
jne 0x4d4d1e
pop edi
pop esi
pop ecx
ret
cmp dword [esp + 0x10], 2
je 0x4d4d2b
pop edi
xor eax, eax
pop esi
pop ecx
ret
lea edx, [esp + 0x10]
push 0
push edx
lea eax, [esp + 0x10]
push 2
push eax
push esi
mov dword [esp + 0x1c], 1
call edi
test eax, eax
jne 0x4d4d4c
pop edi
pop esi
pop ecx
ret
cmp dword [esp + 0x10], 2
je 0x4d4d59
pop edi
xor eax, eax
pop esi
pop ecx
ret
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x10]
push 0
push edx
lea eax, [esp + 0x10]
push 2
push eax
push esi
mov dword [esp + 0x1c], ecx
call edi
test eax, eax
jne 0x4d4d7a
pop edi
pop esi
pop ecx
ret
mov ecx, dword [esp + 0x10]
xor eax, eax
cmp ecx, 2
pop edi
sete al
pop esi
pop ecx
ret