joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403370
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x41ddeb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x218
push ebx
push esi
mov esi, dword [esp + 0x230]
push edi
mov edi, ecx
push 0x10000000
push ecx
mov ecx, esp
mov dword [esp + 0x14], esp
push esi
call fcn.00415879
mov ecx, edi
call fcn.004035d0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ebx, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
and al, 0xfe
push eax
push esi
call ebx
push esi
lea ecx, [esp + 0x10]
call fcn.00415879
push 0
mov dword [esp + 0x230], 0
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
jne 0x4034a6
lea eax, [esp + 0x14]
push eax
push 0x420ee8
push 1
push 0
push 0x420ed8
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jne 0x40346e
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x10]
push edx
push 0x420ef8
mov ecx, dword [eax]
push eax
call dword [ecx]
test eax, eax
jne 0x40346e
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x1c]
push 0x104
push eax
push 0xffffffffffffffff
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x1c]
push 2
push ecx
mov edx, dword [eax]
push eax
call dword [edx + 0x14]
test eax, eax
jne 0x40346e
mov ecx, dword [esp + 0x14]
mov eax, dword [edi + 0x90]
push eax
push ecx
mov edx, dword [ecx]
call dword [edx + 0x2c]
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x1c]
push 1
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
mov eax, dword [esp + 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [esp + 0x14]
push eax
mov edx, dword [eax]
call dword [edx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
push 1
push esi
call ebx
push 0x80000000
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push esi
call fcn.00415879
mov ecx, edi
call fcn.004035d0
lea ecx, [esp + 0xc]
mov dword [esp + 0x22c], 0xffffffff
call fcn.0041580b
mov ecx, dword [esp + 0x224]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x224
ret 4
Function at 0x4034e0
Capabilities:
Get user security identifier

Disassembly:
sub esp, 0x8c0
push esi
push edi
push 2
lea eax, [esp + 0xcc]
push 0x400
push eax
mov dword [esp + 0x14], 0x64
mov dword [esp + 0x18], 0x50
call dword [sym.imp.ADVAPI32.dll_InitializeAcl]
lea ecx, [esp + 0x10]
lea edx, [esp + 0xc]
push ecx
lea eax, [esp + 0x7c]
push edx
lea ecx, [esp + 0x10]
push eax
lea edx, [esp + 0x20]
push ecx
push edx
push str.Everyone
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameA]
mov ecx, dword [esp + 0x8d0]
lea eax, [esp + 0x14]
push eax
push ecx
lea edx, [esp + 0xd0]
push 2
push edx
call dword [sym.imp.ADVAPI32.dll_AddAccessAllowedAce]
mov edi, dword [esp + 0x8cc]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x4c8]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0
mov eax, ecx
mov esi, edi
mov edi, edx
push 0
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push 0
and ecx, 3
push 0
rep movsb byte es:[edi], byte [esi]
push 4
lea ecx, [esp + 0x4dc]
push 4
push ecx
call sub.ADVAPI32.dll_SetNamedSecurityInfoA
lea edx, [esp + 0xc8]
push 0
push edx
push 0
push 0
push 4
lea eax, [esp + 0x4dc]
push 4
push eax
call sub.ADVAPI32.dll_SetNamedSecurityInfoA
lea ecx, [esp + 0x8cc]
call fcn.0041580b
pop edi
pop esi
add esp, 0x8c0
ret 8

Function at 0x4036c0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x41de16
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x118
push esi
lea esi, [ecx + 0x90]
push esi
lea ecx, [esp + 8]
mov dword [esp + 0x10], 0x104
mov dword [esp + 0x18], 1
call fcn.00415580
mov eax, dword [0x426e28]
mov dword [esp + 0x124], 0
mov dword [esp + 8], eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x124], 1
push ecx
push 0x20019
push 0
push str.SOFTWAREMicrosoftAdvanced_INF_Setup
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x403798
lea edx, [esp + 0xc]
push edi
lea eax, [esp + 0x1c]
push edx
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x1c]
push eax
push ecx
push 0
push str.EnableJava
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edi, eax
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x10]
call fcn.00415948
test edi, edi
pop edi
jne 0x403798
mov ecx, dword [esp + 8]
mov eax, dword [ecx - 8]
test eax, eax
je 0x403798
push 0x426810
lea ecx, [esp + 8]
call fcn.00415b9b
lea edx, [esp + 8]
lea ecx, [esp + 4]
push edx
call fcn.00415bd7
jmp 0x4037a6
push 0x42680c
lea ecx, [esp + 8]
call fcn.00415b9b
lea eax, [esp + 4]
mov ecx, esi
push eax
call fcn.004158f8
lea ecx, [esp + 8]
mov byte [esp + 0x124], 0
call fcn.0041580b
lea ecx, [esp + 4]
mov dword [esp + 0x124], 0xffffffff
call fcn.0041580b
mov ecx, dword [esp + 0x11c]
pop esi
mov dword fs:[0], ecx
add esp, 0x124
ret
Function at 0x404330
Capabilities:
Accept command line arguments

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x41dfed
push eax
mov dword fs:[0], esp
sub esp, 0x128
push esi
xor esi, esi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call fcn.0041c815
test eax, eax
jne 0x4043ee
push str.Fatal_Error:_MFC_initialization_failed
push 0x42cda0
call fcn.00404760
add esp, 8
mov esi, eax
mov ecx, esi
push 0xa
call fcn.00404500
mov eax, dword [esi]
xor edi, edi
mov ecx, dword [eax + 4]
lea eax, [ecx + esi]
mov cl, byte [ecx + esi + 4]
test cl, 6
jne 0x4043b1
mov eax, dword [eax + 0x28]
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x2c]
cmp eax, 0xffffffff
jne 0x4043b1
mov edi, 4
mov eax, dword [esi]
mov ecx, dword [eax + 4]
add ecx, esi
test edi, edi
je 0x4043d2
mov eax, dword [ecx + 4]
mov edx, dword [ecx + 0x28]
or eax, edi
test edx, edx
jne 0x4043ca
or al, 4
push 0
push eax
call fcn.00410804
pop edi
mov eax, 1
pop esi
mov ecx, dword [esp + 0x128]
mov dword fs:[0], ecx
add esp, 0x134
ret
push 0
lea ecx, [esp + 0xc]
call fcn.00401150
mov ecx, 0x25
xor eax, eax
lea edi, [esp + 0x9c]
mov dword [esp + 0x138], 0
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x9c]
mov dword [esp + 0x9c], 0x9c
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [esp + 0xa0]
mov edi, 6
xor edx, edx
cmp eax, edi
sete dl
lea ecx, [esp + 8]
mov dword [esp + 0x7c], edx
call fcn.00401310
call fcn.00403cc0
lea ecx, [esp + 0x98]
mov dword [esp + 0x138], edi
call fcn.0041580b
lea ecx, [esp + 0x94]
mov byte [esp + 0x138], 5
call fcn.0041580b
lea ecx, [esp + 0x90]
mov byte [esp + 0x138], 4
call fcn.0041580b
lea ecx, [esp + 0x84]
mov byte [esp + 0x138], 3
call fcn.0041580b
lea ecx, [esp + 0x80]
mov byte [esp + 0x138], 2
call fcn.0041580b
lea ecx, [esp + 0x64]
mov byte [esp + 0x138], 1
call fcn.00414767
lea ecx, [esp + 8]
mov dword [esp + 0x138], 0xffffffff
call fcn.00414eab
mov ecx, dword [esp + 0x130]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x134
ret
Function at 0x4151a2
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x41e064
call fcn.00406498
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.0041cd89
cmp dword [esi + 0x40], 0
mov ebx, dword [eax + 0xc]
je 0x4151e1
call fcn.0041cd89
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 0x4151ef
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x4151fd
or eax, 0xffffffff
jmp 0x4152e5
mov ecx, esi
call fcn.00415118
mov dword [ebp - 0x14], eax
call fcn.004166b1
xor edi, edi
cmp dword [ebp - 0x14], edi
mov dword [ebp - 0x20], edi
je 0x415234
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x415234
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.00416665
push dword [ebp - 0x14]
call fcn.00416196
push ebx
push eax
push dword [ebp - 0x18]
mov ecx, esi
call fcn.00414ee9
cmp eax, edi
je 0x4152a7
test byte [esi + 0x24], 0x10
je 0x415275
push 4
mov ecx, esi
pop ebx
call fcn.0041875f
test ah, 1
je 0x41526d
push 5
pop ebx
push ebx
mov ecx, esi
call fcn.004181bc
cmp dword [esi + 0x1c], edi
je 0x4152a7
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.00418793
jmp 0x4152a7
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], edi
je 0x4152bb
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x4152d4
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x1c]
jne 0x4152d4
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.00415152
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 0x41806a
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 0x4180ac
call fcn.0041cd89
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4180ac
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4180a3
xor eax, eax
jmp 0x4180b4
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004180ba
pop edi
pop esi
pop ebx
ret 4
Function at 0x407e15
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42e180]
jne 0x407e1f
repz ret
jmp fcn.0040bc0c

Function at 0x41ff02
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
pushal
call 0x41ff11
pop dword [ebp - 0x28]
mov eax, 0x30c699a7
add eax, 0xcf7b656a
sub dword [ebp - 0x28], eax
mov dword [ebp - 0x38], 0xda344b3a
add dword [ebp - 0x38], 0x741dfa11
mov dword [ebp - 0x34], 0x46b84c78
add dword [ebp - 0x34], 0xeb7affcd
mov dword [ebp - 0x30], 0x319f83c5
sub dword [ebp - 0x30], 0xe5533f97
mov dword [ebp - 0x2c], 0x63fdf9d1
add dword [ebp - 0x2c], 0x9c02062f
lea eax, [ebp - 0x38]
push eax
mov eax, 0x76b9a491
add eax, 0x89888be3
add eax, dword [ebp - 0x28]
call dword [eax]
mov dword [ebp - 0x38], 0x1a000eb2
add dword [ebp - 0x38], 0x5a725aa4
mov dword [ebp - 0x34], 0x5c2c3421
sub dword [ebp - 0x34], 0x1abfd2ac
mov dword [ebp - 0x30], 0x7591bef3
sub dword [ebp - 0x30], 0x12225287
mov dword [ebp - 0x2c], 0x28483c4f
add dword [ebp - 0x2c], 0xd7b7c3b1
lea ebx, [ebp - 0x38]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x28]
call dword [eax]
push 0x40
push 0x1000
push 0x404e3
push 0
call eax
mov ecx, 0xbb3ac8db
add ecx, 0x44c58986
xor edx, edx
add edx, eax
mov ebx, 0x30e2f6af
add ebx, 0xcf604d51
add ebx, dword [ebp - 0x28]
mov edi, 0x93bf71f2
add edi, 0x6611a95e
add dword [ebp - 0x1c], 0xcb682b59
mov esi, dword [ebx]
xor dword [ebp - 0xc], edi
add esi, edi
xor dword [ebp - 0xc], edx
mov dword [edx], esi
sub dword [ebp - 0x18], 0x1e6cbb3b
add edx, 0xf9fe432
sub edx, 0xf9fe42e
add ebx, 0xc29ec5d2
add ebx, 0x3d613a32
loop 0x420030
add eax, 0x13c57
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x609f3318
add ecx, 0x9fa0cce8
add ecx, dword [ebp - 0x28]
call ebx
leave
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x4260f8
Capabilities:
Decompress data using aplib

Disassembly:
pushal
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
cld
mov dl, 0x80
xor ebx, ebx
movsb byte es:[edi], byte [esi]
mov bl, 2
call fcn.0042617b
jae 0x426106
xor ecx, ecx
call fcn.0042617b
jae 0x426135
xor eax, eax
call fcn.0042617b
jae 0x426145
mov bl, 2
inc ecx
mov al, 0x10
call fcn.0042617b
adc al, al
jae 0x426127
jne 0x426171
stosb byte es:[edi], al
jmp 0x426109
call fcn.00426187
sub ecx, ebx
jne 0x42614e
call fcn.00426185
jmp 0x42616d
lodsb al, byte [esi]
shr eax, 1
je 0x426197
adc ecx, ecx
jmp 0x42616a
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
call fcn.00426185
cmp eax, 0x7d00
jae 0x42616a
cmp ah, 5
jae 0x42616b
cmp eax, 0x7f
ja 0x42616c
inc ecx
inc ecx
xchg ebp, eax
mov eax, ebp
mov bl, 1
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x426109
sub edi, dword [esp + 0x28]
mov dword [esp + 0x1c], edi
popal
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x700345d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
pushal
call 0x700346c
pop dword [ebp - 0x28]
mov eax, 0x700346c
sub dword [ebp - 0x28], eax
mov dword [ebp - 0x38], 0xf5a770
sub dword [ebp - 0x38], 0xb2a36225
mov dword [ebp - 0x34], 0xdaa1753c
add dword [ebp - 0x34], 0x5791d709
mov dword [ebp - 0x30], 0x420eb732
add dword [ebp - 0x30], 0xa3d8cfc
mov dword [ebp - 0x2c], 0xfe39dc75
sub dword [ebp - 0x2c], 0xfe39dc75
lea eax, [ebp - 0x38]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x28]
call dword [eax]
mov dword [ebp - 0x38], 0xc8bb6b96
sub dword [ebp - 0x38], 0x54490240
mov dword [ebp - 0x34], 0x7dcbffd7
sub dword [ebp - 0x34], 0x3c5f9e62
mov dword [ebp - 0x30], 0xa45bc5fb
sub dword [ebp - 0x30], 0x40ec598f
mov dword [ebp - 0x2c], 0x21a2cada
add dword [ebp - 0x2c], 0xde5d3526
lea ebx, [ebp - 0x38]
push ebx
push eax
mov eax, 0xc3f9722c
sub eax, 0xbcf831f8
add eax, dword [ebp - 0x28]
call dword [eax]
push 0x40
push 0x1000
push 0x38207
push 0
call eax
mov ecx, 0xa79aca7c
sub ecx, 0xa79a8b43
xor edi, edi
add edi, eax
mov ebx, 0x7e05d166
sub ebx, 0x7703bd66
add ebx, dword [ebp - 0x28]
mov esi, 0x267fa1da
mov edx, dword [ebx]
xor edx, esi
xor dword [ebp - 0x20], 0xf32dd73d
mov dword [edi], edx
add dword [ebp - 0x10], ebx
add edi, 0xd386ff0c
sub edi, 0xd386ff08
add ebx, 0xaf553c08
sub ebx, 0xaf553c04
loop 0x7003580
add eax, 0x4037da9f
add eax, 0xbfc91518
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x77c4a591
add ecx, 0x8f3b5a6f
add ecx, dword [ebp - 0x28]
call ebx
leave
ret

Function at 0x700dc1f
Capabilities:
Set current directory

Disassembly:
push 8
mov eax, 0x7012b4c
call fcn.07001ce0
mov edi, ecx
mov dword [ebp - 0x14], edi
mov esi, dword [ebp + 8]
push esi
call fcn.0700de1f
xor ebx, ebx
mov dword [edi], vtable.FileSharedStream.0
mov dword [edi + 0xc], ebx
mov byte [edi + 0x10], bl
mov eax, dword [esi + 0x14]
mov dword [edi + 0x14], eax
lea eax, [edi + 0x18]
push eax
mov dword [ebp - 4], ebx
call dword [sym.imp.kernel32.dll_InitializeCriticalSection]
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.0700e7aa
lea ecx, [ebp - 0x10]
call fcn.0700dbbc
mov eax, dword [edi + 0x14]
mov byte [ebp - 4], 2
push dword [eax + 0x14]
call dword [sym.imp.kernel32.dll_SetCurrentDirectoryA]
mov eax, dword [edi + 0x14]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x700dc8c
mov eax, dword [eax + 0x14]
jmp 0x700dc91
mov eax, 0x70148c2
push 0x7016240
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov dword [edi + 0xc], eax
pop ecx
pop ecx
test eax, eax
je 0x700dcbf
mov ecx, edi
call fcn.07007930
lea ecx, [ebp - 0x10]
call fcn.0700345d
mov eax, edi
call fcn.07001e84
ret 4
push str.file_does_not_exist
push ebx
call fcn.0700345d
int3
Function at 0x45b9d0
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x10
movzx eax, byte [esi + 4]
push ebp
mov ebp, dword [esp + 0x18]
add eax, 0xfffffff7
push edi
mov dword [esp + 8], SysReAllocString
cmp eax, 8
ja case.0x45b9f1.12
jmp dword [eax*4 + 0x45baf0]
mov eax, dword [esi]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push 0
push 0x19f
push eax
call edi
cmp eax, 0xffffffff
je 0x45ba9e
mov edx, dword [esi]
lea ecx, [esp + 8]
push ecx
push eax
push 0x198
push edx
call edi
jmp 0x45ba9e
mov eax, dword [esi]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push 1
push 0xffffffffffffffff
push 0x100c
push eax
call edi
cmp eax, 0xffffffff
je 0x45ba9e
mov edx, dword [esi]
lea ecx, [esp + 8]
push ecx
push eax
push 0x100e
push edx
mov dword [esp + 0x18], 2
call edi
jmp 0x45ba9e
mov eax, dword [esi]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push 9
push 0x110a
push eax
call edi
test eax, eax
je 0x45ba9e
mov edx, dword [esi]
lea ecx, [esp + 8]
push ecx
push 1
push 0x1104
push edx
mov dword [esp + 0x18], eax
call edi
jmp 0x45ba9e
mov ecx, dword [esi]
lea eax, [esp + 8]
push eax
push 0
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
cmp dword [esp + 8], 0x80000000
jne 0x45bab8
mov eax, dword [esi]
lea edx, [esp + 8]
push edx
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
jmp 0x45baca
mov edx, dword [esi]
push 2
lea ecx, [esp + 0xc]
push ecx
push 0
push edx
call dword [sym.imp.USER32.dll_MapWindowPoints]
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov dword [ebp], eax
mov eax, dword [esp + 0x14]
sub eax, ecx
cdq
sub eax, edx
sar eax, 1
lea ecx, [eax + ecx + 2]
pop edi
mov dword [ebp + 4], ecx
pop ebp
add esp, 0x10
ret 4
Function at 0x460b80
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x1010c
call fcn.00488480
push esi
mov esi, ecx
test esi, esi
je 0x460b9c
cmp byte [esi], 0
jne 0x460ba1
mov esi, str.ERROR
push 0xfffe
lea eax, [esp + 0x115]
push 0
push eax
mov byte [esp + 0x11c], 0
call fcn.004812e0
mov eax, dword [ebp + 8]
add esp, 0xc
lea ecx, [esp + 4]
push ecx
lea edx, [esp + 0xc]
push edx
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
cmp byte [edi], 0
je 0x460c19
lea ecx, [esp + 8]
push ecx
push 0xffff
lea edx, [esp + 0x118]
push edx
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 1
push 0
push 0xffffffffffffffff
lea eax, [ebx]
fdiv st(6)
rcl dword [eax], 0x75
jge 0x460bfe
dec dword [ebp - 0x3e0927fd]
adc byte [ebp + 0x7d], dh
test byte [edi + 0xc], 0xa
inc edi
or al, 0xa
jne 0x460c84
mov eax, dword [edi + 0x20]
test eax, eax
jne 0x460c19
mov eax, 0x496928
lea edx, [eax + 0x100]
mov dword [esp + 0x34], edx
lea edx, [eax + 0x200]
mov dword [esp + 0x30], eax
add eax, 0x340
mov dword [esp + 0x3c], eax
xor eax, eax
mov dword [esp + 0x38], edx
mov edx, ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x30]
push eax
shr edx, 0xb
and edx, 1
push edx
and ecx, 1
push ecx
lea eax, [esp + 0x1c]
push eax
push ebx
call fcn.00460560
add esp, 0x14
lea esi, [eax - 1]
neg esi
ficomp word [ebx]
invalid
inc esi
mov ecx, dword [edi + 8]
push ecx
push ebx
push ebx
call 0x460020
add esp, 0xc
mov ebx, eax
test esi, esi
jne 0x460c9c
test ebx, ebx
js 0x460d0c
push 0x48
call dword [0x49d2d0]
add esp, 4
test eax, eax
jne 0x460cbd
mov dword [ebp], str.failed_to_get_memory
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x88
ret
lea edx, [eax + 0x1c]
mov dword [eax], 1
mov dword [eax + 4], edx
mov dword [edx], 0x2c
mov dword [edx + 4], 0
test esi, esi
je 0x460cef
lea edi, [edx + 8]
mov ecx, 8
lea esi, [esp + 0x10]
mov dword [edx + 4], 1
rep movsd dword es:[edi], dword [esi]
test ebx, ebx
js 0x460d0e
or dword [edx + 4], 2
mov dword [edx + 0x28], ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x88
ret
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x88
ret

Function at 0x462040
Capabilities:
Enumerate pe sections
Resolve function by parsing pe exports

Disassembly:
movzx edx, byte [edx + 0x474938]
jmp dword [edx*4 + 0x474930]
Function at 0x464ce0
Capabilities:
Get file attributes

Disassembly:
sub esp, 0x148
push edi
test esi, esi
je 0x464d60
cmp byte [esi], 0
je 0x464d60
push 4
push 0x49665c
push esi
call fcn.00478e34
add esp, 0xc
test eax, eax
mov eax, esi
jne 0x464d09
lea eax, [esi + 4]
mov edi, 0x495114
call fcn.00408bf0
test eax, eax
je 0x464d43
lea eax, [esp + 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x464d60
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
test ebx, ebx
je 0x464d39
mov ecx, dword [esp + 8]
mov dword [ebx], ecx
mov al, 1
pop edi
add esp, 0x148
ret
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test ebx, ebx
je 0x464d50
mov dword [ebx], eax
xor edx, edx
cmp eax, 0xffffffff
setne al
pop edi
add esp, 0x148
ret
xor al, al
pop edi
add esp, 0x148
ret

Function at 0x464f70
Capabilities:
Get file size

Disassembly:
sub esp, 0xc
xor eax, eax
mov dword [esp], eax
mov dword [esp + 4], eax
lea eax, [esp + 4]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esp], eax
cmp eax, 0xffffffff
jne 0x464fa7
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x464fa4
or eax, 0xffffffff
or edx, 0xffffffff
add esp, 0xc
ret
mov eax, dword [esp]
mov edx, dword [esp + 4]
add esp, 0xc
ret

Function at 0x465330
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x8000
call fcn.00488480
push esi
push 0x7fff
lea eax, [esp + 8]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov esi, eax
test esi, esi
je 0x46536e
lea edx, [esi + 1]
push edx
lea eax, [esp + 8]
push eax
push edi
call fcn.0047b470
add esp, 0xc
mov eax, esi
pop esi
add esp, 0x8000
ret
mov byte [edi], 0
pop esi
add esp, 0x8000
ret