joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10004377
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
pushal
call 0x10004386
pop dword [ebp - 0x18]
mov eax, 0xde7c0e0a
sub eax, 0xce7bca84
sub dword [ebp - 0x18], eax
mov dword [ebp - 0x28], 0x9d90f10d
sub dword [ebp - 0x28], 0x4f3eabc2
mov dword [ebp - 0x24], 0x27c8af09
sub dword [ebp - 0x24], 0xf59562c4
mov dword [ebp - 0x20], 0xf0c9d63c
sub dword [ebp - 0x20], 0xa47d920e
mov dword [ebp - 0x1c], 0x36331cff
add dword [ebp - 0x1c], 0xc9cce301
lea eax, [ebp - 0x28]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x18]
call dword [eax]
mov dword [ebp - 0x28], 0x22c21291
sub dword [ebp - 0x28], 0xae4fa93b
mov dword [ebp - 0x24], 0x1a085e1f
sub dword [ebp - 0x24], 0xd89bfcaa
mov dword [ebp - 0x20], 0x6976a6ee
add dword [ebp - 0x20], 0xf9f8c57e
mov dword [ebp - 0x1c], 0x4380177f
add dword [ebp - 0x1c], 0xbc7fe881
lea ebx, [ebp - 0x28]
push ebx
push eax
mov eax, 0x2adf877d
sub eax, 0x1adf3701
add eax, dword [ebp - 0x18]
call dword [eax]
push 0x40
push 0x1000
push 0x32cfc
push 0
call eax
mov ecx, 0x87d04224
sub ecx, 0x87d00917
xor edx, edx
add edx, eax
mov edi, 0xad519ad4
add edi, 0x62af0d2c
add edi, dword [ebp - 0x18]
mov esi, 0x306d0ecf
sub esi, 0x926675f3
mov ebx, dword [edi]
mov dword [ebp - 0xc], 0x669b9a0c
xor ebx, esi
mov dword [edx], ebx
xor dword [ebp - 8], 0xea8baee7
add edx, 0x3066ec99
add edx, 0xcf99136b
add edi, 4
loop 0x100044a5
add eax, 0xf437f228
sub eax, 0xf4371b21
mov ebx, eax
add eax, 0xbd88ccc8
sub eax, 0xbd88ccc3
mov ecx, 0xf53aeac5
add ecx, 0x1ac5153b
add ecx, dword [ebp - 0x18]
call ebx
leave
ret
Function at 0x401982
Capabilities:
Clear file content
Get common file path
Get keyboard layout

Disassembly:
sub esp, 0x800
push esi
push edi
xor esi, esi
xor edi, edi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
cmp edi, 0x58ced85
jg 0x4019a8
inc edi
cmp edi, 0x1f6502b1
jl 0x40198e
cmp dword [0x28162fc], 0x400
jne 0x4019e8
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push esi
push esi
call dword [sym.imp.USER32.dll_DdeCmpStringHandles]
push esi
call dword [sym.imp.USER32.dll_GetKeyboardLayoutNameA]
push esi
call dword [sym.imp.KERNEL32.dll_CancelIo]
push esi
call fcn.00401de1
push esi
call fcn.00401f47
push esi
call fcn.00401f56
add esp, 0xc
xor edi, edi
cmp edi, 0xd036
jge 0x4019f9
push esi
call dword [sym.imp.USER32.dll_GetCaretPos]
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
cmp edi, 0xd2ced2
jg 0x401a21
inc edi
cmp edi, 0x263ff
jl 0x4019ea
mov eax, dword [0x42846c]
mov dword [0x28162fc], eax
call fcn.004016e4
mov edi, 0x3078f
cmp dword [0x28162fc], 0x51f
jne 0x401a4d
push esi
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
dec edi
jne 0x401a35
pop edi
xor eax, eax
pop esi
add esp, 0x800
ret 0x10
Function at 0x404ecb
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x40ca80]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.004032a5
and dword [ebp - 0x14], 0
cmp dword [0x432fc0], 0
mov dword [ebp - 0x18], eax
jne 0x404f7e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x405026
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x405026
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x432fc0], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x432fc4], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x432fc8], eax
call edi
push eax
call esi
mov dword [0x432fd0], eax
test eax, eax
je 0x404f7e
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x432fcc], eax
mov eax, dword [0x432fcc]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x404fd7
cmp dword [0x432fd0], ecx
je 0x404fd7
push eax
call esi
push dword [0x432fd0]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x404fd7
test ebx, ebx
je 0x404fd7
call edi
test eax, eax
je 0x404fce
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x404fce
test byte [ebp - 8], 1
jne 0x404fd7
or dword [ebp + 0x10], 0x200000
jmp 0x40500a
mov eax, dword [0x432fc4]
cmp eax, dword [ebp - 0x18]
je 0x40500a
push eax
call esi
test eax, eax
je 0x40500a
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40500a
mov eax, dword [0x432fc8]
cmp eax, dword [ebp - 0x18]
je 0x40500a
push eax
call esi
test eax, eax
je 0x40500a
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x432fc0]
call esi
test eax, eax
je 0x405026
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x405028
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00405236
leave
ret

Function at 0x405236
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40ca80]
jne 0x405240
repz ret
jmp fcn.00405fef
Function at 0x401ee4
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push edi
push ebx
sub esp, 0x920
mov eax, esp
mov ebx, eax
mov dword [ebp - 0x96], 0x330056
mov dword [ebp - 0x92], 0x530044
mov dword [ebp - 0x8e], 0x6f0043
mov dword [ebp - 0x8a], 0x46006d
mov dword [ebp - 0x86], 0x6e0069
mov dword [ebp - 0x82], 0x650064
mov dword [ebp - 0x7e], 0x430072
mov dword [ebp - 0x7a], 0x61006c
mov dword [ebp - 0x76], 0x730073
mov word [ebp - 0x72], 0
lea edx, [ebp - 0xc8]
mov eax, 0
mov ecx, 0xc
mov edi, edx
rep stosd dword es:[edi], eax
mov dword [ebp - 0xc8], 0x30
mov dword [ebp - 0xc4], 3
mov dword [ebp - 0xc0], 0x401520
mov dword [ebp - 0xbc], 0
mov dword [ebp - 0xb8], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0xb4], eax
mov dword [esp + 4], 0x7f89
mov dword [esp], 0
mov eax, dword [0x40d504]
call eax
sub esp, 8
mov dword [ebp - 0xac], eax
mov dword [ebp - 0xa8], 6
mov dword [ebp - 0xa4], 0
lea eax, [ebp - 0x96]
mov dword [ebp - 0xa0], eax
mov dword [esp + 4], 0x65
mov eax, dword [ebp + 8]
mov dword [esp], eax
mov eax, dword [0x40d508]
call eax
sub esp, 8
mov dword [ebp - 0x9c], eax
mov dword [esp + 4], 0x65
mov eax, dword [ebp + 8]
mov dword [esp], eax
mov eax, dword [0x40d508]
call eax
sub esp, 8
mov dword [ebp - 0xb0], eax
lea eax, [ebp - 0xc8]
mov dword [esp], eax
mov eax, dword [0x40d518]
call eax
sub esp, 4
test ax, ax
jne 0x40205f
mov dword [esp + 0xc], 0x30
mov dword [esp + 8], str.Error
mov dword [esp + 4], str.Window_Registration_Failed_
mov dword [esp], 0
mov eax, dword [0x40d50c]
call eax
sub esp, 0x10
mov eax, 0
jmp 0x402a05
mov dword [esp], 0
mov eax, dword [0x40d4f8]
call eax
sub esp, 4
mov dword [ebp - 0x34], eax
mov dword [esp], 1
mov eax, dword [0x40d4f8]
call eax
sub esp, 4
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x3c], 0x1d6
mov dword [ebp - 0x40], 0x10e
mov eax, dword [ebp - 0x34]
sub eax, dword [ebp - 0x3c]
mov edx, eax
shr edx, 0x1f
add eax, edx
sar eax, 1
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x38]
sub eax, dword [ebp - 0x40]
mov edx, eax
shr edx, 0x1f
add eax, edx
sar eax, 1
mov dword [ebp - 0x48], eax
jmp fcn.00683487
mov esp, ebx
lea esp, [ebp - 8]
pop ebx
pop edi
pop ebp
ret 0x10
Function at 0x46878c
Capabilities:
Get common file path
Set current directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00468603

Function at 0x4282a0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x17000]
push edi
jmp 0x4282ba
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4282c1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4282b0
mov eax, 1
add ebx, ebx
jne 0x4282d3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4282c8
jne 0x4282e4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4282c8
xor ecx, ecx
sub eax, 3
jb 0x4282f8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x42836a
mov ebp, eax
add ebx, ebx
jne 0x428303
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x428310
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x428334
inc ecx
add ebx, ebx
jne 0x428320
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x428315
jne 0x428331
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x428315
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x428354
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x428345
jmp 0x4282b6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x428354
add edi, ecx
jmp 0x4282b6
pop esi
mov edi, esi
mov ecx, 0x115
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x428372
cmp byte [edi], 3
jne 0x428372
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 al, bl
loop 0x428377
lea edi, [esi + 0x26000]
mov eax, dword [edi]
or eax, eax
je 0x4283e6
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x28000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x280c4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4283a4
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x280cc]
or eax, eax
je 0x4283e0
mov dword [ebx], eax
add ebx, 4
jmp 0x4283c1
call dword [esi + 0x280c8]
mov ebp, dword [esi + 0x280d0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1ef]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x42841a
sub esp, 0xffffff80
jmp 0x409ac0
Function at 0x433002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40de38
nop
mov ecx, 0x24855812
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43304e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x433024
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x4304d8
nop
mov ecx, 0x77803a19
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x433084
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x43306c
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x419f18
Capabilities:
Create directory

Disassembly:
push ebx
xor eax, eax
push eax
push eax
push eax
call fcn.0047d450
mov edx, dword [esp + 0x14]
lea ecx, [esp]
call fcn.0042e000
mov dword [0x587001], 0x1da
mov dword [0x587001], 0x1dc
push dword [esp]
push 0
call sub.SHELL32.DLL_SHCreateDirectory
mov dword [esp + 4], eax
mov dword [0x587001], 0x1dd
push dword [esp + 4]
mov dword [0x587001], 0x1de
xor ebx, ebx
cmp ebx, dword [esp]
jne 0x419f99
mov dword [0x587001], 0x1df
mov eax, 1
add esp, 4
jmp 0x41a06f
mov dword [0x587001], 0x1e0
mov ebx, 0xa1
cmp ebx, dword [esp]
jne 0x419fd1
mov dword [0x587001], 0x1e1
mov edx, 0x58fb94
lea ecx, [esp + 0xc]
call fcn.0042e008
mov dword [0x587001], 0x1e2
jmp 0x41a027
mov dword [0x587001], 0x1e2
mov ebx, 0xce
cmp ebx, dword [esp]
jne 0x41a009
mov dword [0x587001], 0x1e3
mov edx, 0x58bdea
lea ecx, [esp + 0xc]
call fcn.0042e008
mov dword [0x587001], 0x1e7
jmp 0x41a027
mov dword [0x587001], 0x1e7
mov dword [0x587001], 0x1e8
mov eax, 1
add esp, 4
jmp 0x41a06f
mov dword [0x587001], 0x1e9
pop eax
mov dword [0x587001], 0x1ea
push 0
push 0x10
push dword [esp + 0x10]
mov eax, 0x58e55c
push eax
call fcn.0041123c
mov dword [0x587001], 0x1eb
xor eax, eax
jmp 0x41a06f
push dword [esp + 8]
call fcn.0047d4b0
push dword [esp]
call fcn.0047d4b0
add esp, 0xc
pop ebx
ret 4

Function at 0x41e391
Capabilities:
Get common file path

Disassembly:
push ebx
xor eax, eax
push eax
push eax
call fcn.0047d450
push dword [esp + 0x14]
call fcn.0042e140
mov dword [0x587001], 0xa00003d
mov dword [0x587001], 0xa000040
lea eax, [esp]
push eax
push dword [esp + 0x14]
push 0
call sub.SHELL32.DLL_SHGetSpecialFolderLocation
mov ebx, eax
and ebx, ebx
jne 0x41e4ca
mov dword [0x587001], 0xa000041
push edx
call fcn.0047d2b0
pop edx
push eax
push edx
call fcn.0047d2b0
pop edx
push eax
push 0x208
call fcn.0047af80
lea eax, [esp + 8]
push eax
call fcn.0047d380
mov dword [0x587001], 0xa000042
mov eax, dword [esp + 4]
push eax
push dword [esp + 4]
call sub.SHELL32.DLL_SHGetPathFromIDListW
mov dword [0x587001], 0xa000043
mov edx, dword [esp + 4]
xor ecx, ecx
call fcn.0042e1a0
jne 0x41e4ae
mov dword [0x587001], 0xa000044
push edx
call fcn.0047d2b0
pop edx
push eax
push edx
call fcn.0047d2b0
pop edx
push eax
push 1
push dword [esp + 0x10]
call fcn.0047afd0
call fcn.0047d350
mov edx, 0x588aa4
pop ecx
push ecx
call fcn.0042e1e0
mov ecx, eax
call fcn.0042e1a0
jne 0x41e4a4
mov dword [0x587001], 0xa000045
mov edx, dword [esp + 4]
push edx
call fcn.0047d2b0
pop edx
push eax
push edx
call fcn.0047d2f0
mov edx, 0x588aa4
push edx
call fcn.0047d2f0
lea eax, [esp + 8]
push eax
call fcn.0047d380
mov dword [0x587001], 0xa000046
mov dword [0x587001], 0xa000047
mov dword [0x587001], 0xa000048
push dword [esp]
call sub.OLE32.DLL_CoTaskMemFree
mov dword [0x587001], 0xa000049
mov dword [0x587001], 0xa00004a
mov edx, dword [esp + 4]
push edx
call fcn.0047d2b0
pop edx
push eax
push edx
call fcn.0047d2f0
pop eax
push eax
call fcn.0042e110
pop edx
add eax, edx
jmp 0x41e510
push dword [esp + 4]
call fcn.0047d4b0
add esp, 8
pop ebx
ret 4
Function at 0x4308c3
Capabilities:
Get file size
Read file on windows

Disassembly:
push ecx
mov eax, dword [esp + 0xc]
push ebx
xor ebx, ebx
push esi
mov esi, ebx
test eax, eax
je 0x430a69
cmp word [eax], bx
je 0x430a69
push ebx
push pe_nt_image_headers32
push 3
push ebx
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esp + 8], eax
cmp eax, 0xffffffff
je 0x430a65
push ebp
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebp, eax
test ebp, ebp
jle 0x430a5a
push edi
push dword [esp + 0x20]
call fcn.0043269e
mov edi, eax
test edi, edi
je 0x430a59
cmp dword [esp + 0x20], 0xffffffff
mov ebx, dword [esp + 0x18]
jne 0x430939
push 2
jmp 0x43093d
push dword [esp + 0x20]
push ebx
call fcn.0042efa6
mov esi, eax
test esi, esi
je 0x430a52
cmp ebx, 0xffffffff
jne 0x430954
mov ebx, esi
mov eax, dword [esi + 4]
mov dword [esi + 0x30], ebx
lea ebx, [ebp + 8]
mov dword [esi + 0x38], eax
xor eax, eax
push ebx
push eax
mov dword [esi + 0x2c], edi
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], eax
mov dword [esi + 0x14], eax
push dword [0x5a8518]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esi + 0x28], eax
test eax, eax
je 0x430995
mov dword [eax + 4], ebx
mov eax, dword [esi + 0x28]
and dword [eax], 0
mov eax, dword [esi + 0x28]
add eax, 8
mov dword [esi + 0x44], eax
cmp dword [esp + 0x20], 0xffffffff
je 0x4309a3
mov dword [esi + 0x34], 1
push esi
push edi
call fcn.00484580
pop ecx
pop ecx
xor ebx, ebx
mov ecx, 0x4000
mov dword [esp + 0x20], ecx
test ebp, ebp
jle 0x430a4e
lea eax, [ecx + ebx]
cmp eax, ebp
jle 0x4309ce
mov ecx, ebp
sub ecx, ebx
mov dword [esp + 0x20], ecx
push ecx
push edi
call fcn.00483da0
mov dword [esp + 0x20], eax
pop ecx
pop ecx
test eax, eax
je 0x430a40
push 0
lea ecx, [esp + 0x20]
push ecx
push dword [esp + 0x28]
push eax
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x1c]
add ebx, eax
cmp dword [esi + 0x14], 0
jne 0x430a12
push eax
push dword [esp + 0x1c]
call fcn.00432749
mov dword [esi + 0x14], eax
mov eax, dword [esp + 0x1c]
cmp ebx, ebp
jl 0x430a1a
push 1
jmp 0x430a1c
push 0
push eax
push edi
call fcn.004841e0
add esp, 0xc
test eax, eax
je 0x430a34
mov ecx, dword [esp + 0x20]
cmp ebx, ebp
jl 0x4309bf
jmp 0x430a4e
push edi
call fcn.00484050
pop ecx
mov dword [esi + 0x18], eax
jmp 0x430a47
mov dword [esi + 0x18], 1
push edi
push esi
call fcn.00432803
and dword [esi + 0x2c], 0
push edi
call fcn.00484320
pop ecx
pop edi
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebp
mov eax, esi
jmp 0x430a6b
xor eax, eax
pop esi
pop ebx
pop ecx
ret 0xc

Function at 0x431299
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp + 8]
push edi
push 0
push eax
mov edi, 0x1000
mov eax, edi
sub eax, dword [esi + 4]
push eax
push dword [esi + 0x10]
push dword [esi + 0x14]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, edi
sub eax, dword [esi + 4]
cmp dword [ebp + 8], eax
jne 0x4312d5
mov eax, dword [esi + 0x10]
mov dword [esi], eax
xor eax, eax
mov dword [esi + 4], edi
inc eax
jmp 0x4312d7
xor eax, eax
pop edi
pop esi
pop ebp
ret
Function at 0x43324a
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x3c
push ebx
push ebp
push esi
push edi
push dword [esp + 0x50]
push dword [0x5aacb0]
call fcn.0047ce70
mov esi, eax
test esi, esi
je 0x433301
mov edi, dword [sym.imp.USER32.DLL_SendMessageW]
xor ebp, ebp
push ebp
push dword [esp + 0x58]
push 0x419
push dword [esi]
call edi
mov ebx, eax
cmp ebx, 0xffffffff
je 0x433301
lea eax, [esp + 0x10]
push eax
push ebx
push 0x41d
push dword [esi]
call edi
mov dword [esp + 0x20], 0x2c
mov dword [esp + 0x24], 0x10
mov eax, dword [esi]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x20]
push eax
push ebp
push 0x433
mov dword [esp + 0x38], ebx
mov dword [esp + 0x4c], ebp
push dword [esi + 4]
call edi
lea eax, [esp + 0x20]
push eax
push ebp
push 0x432
push dword [esi + 4]
call edi
xor eax, eax
inc eax
jmp 0x433303
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret 0xc

Function at 0x4333f7
Capabilities:
Create thread

Disassembly:
push ecx
push ebp
push esi
lea eax, [esp + 8]
xor esi, esi
push eax
push esi
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push 0x1000
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebp, eax
test ebp, ebp
je 0x43348f
push edi
push 0x5aacbc
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [0x5a8bb4]
test edi, edi
je 0x433463
push ebx
push esi
lea ebx, [edi + 8]
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x43345c
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [edi]
push ebx
push 0x5a8bb4
call fcn.0047d199
pop ecx
pop ecx
jmp 0x43345e
mov edi, dword [edi]
test edi, edi
jne 0x433433
pop ebx
mov eax, dword [0x5a3d00]
mov esi, eax
inc eax
push 0x10
push 0x5a8bb4
mov dword [0x5a3d00], eax
call fcn.0047d1d9
pop ecx
pop ecx
push 0x5aacbc
mov dword [eax], ebp
mov dword [eax + 4], esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov eax, esi
pop esi
pop ebp
pop ecx
ret 8
Function at 0x436fcf
Capabilities:
Enumerate gui resources

Disassembly:
cmp dword [esp + 4], 0
push ebx
push esi
push edi
je 0x437024
push dword [esp + 0x10]
push 0x436f4e
call dword [sym.imp.USER32.DLL_EnumWindows]
mov esi, dword [0x5a8e88]
test esi, esi
je 0x43707d
xor edi, edi
mov ebx, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [esi + 8], eax
jne 0x43701c
cmp byte [esi + 0x10], 0
je 0x43701c
push 3
push edi
push edi
push edi
push edi
push 0xfffffffffffffffe
push dword [esi + 0xc]
call dword [sym.imp.USER32.DLL_SetWindowPos]
mov esi, ebx
test ebx, ebx
jne 0x436ff8
jmp 0x43707d
mov esi, dword [0x5a8e88]
test esi, esi
je 0x43707d
xor edi, edi
push ebp
mov ebx, dword [esi]
lea ebp, [esi + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebp], eax
jne 0x437076
cmp byte [esi + 0x11], 0
je 0x437052
push 1
push dword [esi + 0xc]
call dword [sym.imp.USER32.DLL_EnableWindow]
cmp byte [esi + 0x10], 0
je 0x437069
push 3
push edi
push edi
push edi
push edi
push 0xffffffffffffffff
push dword [esi + 0xc]
call dword [sym.imp.USER32.DLL_SetWindowPos]
push ebp
push 0x5a8e88
call fcn.0047d199
pop ecx
pop ecx
mov esi, ebx
test ebx, ebx
jne 0x437031
pop ebp
pop edi
pop esi
pop ebx
ret 4
Function at 0x452cb0
Capabilities:
Delete file

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
xor edi, edi
test esi, esi
je 0x452d12
cmp word [esi], di
je 0x452d12
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
call fcn.004a2ac0
push dword [esp + 0x1c]
mov ebx, eax
push ebx
call dword [esp + 0x20]
push esi
push ebx
call fcn.004a2d70
add esp, 0x10
test eax, eax
jne 0x452d11
push 0x24
push 8
push dword [0x5a8518]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, eax
mov eax, dword [esp + 0x10]
mov dword [ecx + 0x14], edi
mov edi, ecx
mov dword [ecx], ebx
mov dword [ecx + 8], 1
mov dword [ecx + 0x20], eax
mov dword [eax + 4], ecx
pop ebx
mov eax, edi
pop edi
pop esi
ret 0x10

Function at 0x454d50
Capabilities:
Get thread local storage value

Disassembly:
cmp dword [0x5a90bc], 0
jne 0x454d5e
call fcn.00454cd0
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push edi
push dword [0x5a90c0]
call esi
test eax, eax
jne 0x454d81
call fcn.00454cd0
push dword [0x5a90c0]
call esi
mov edx, dword [esp + 0x14]
lea esi, [eax + 8]
mov edi, 0x11
lea ecx, [ecx]
imul ecx, edx, 0x53a9b4fb
lea esi, [esi + 4]
mov edx, 1
sub edx, ecx
imul ecx, edx, 0x53a9b4fb
mov dword [esi + 0x40], edx
mov edx, 1
sub edx, ecx
mov dword [esi - 4], edx
dec edi
jne 0x454d90
mov dword [eax], edi
lea ebp, [edi + 0x1f]
mov dword [eax + 4], 0xa
mov ebx, dword [eax]
mov edi, dword [eax + 4]
mov edx, dword [eax + ebx*4 + 8]
mov ecx, dword [eax + ebx*4 + 0x4c]
mov esi, dword [eax + edi*4 + 8]
ror ecx, 0xd
add ecx, dword [eax + edi*4 + 0x4c]
dec edi
ror edx, 5
add edx, esi
mov dword [eax + ebx*4 + 8], ecx
mov dword [eax + ebx*4 + 0x4c], edx
dec ebx
jns 0x454df0
mov ebx, 0x10
test edi, edi
jns 0x454df9
mov edi, 0x10
mov dword [eax], ebx
mov dword [eax + 4], edi
dec ebp
jne 0x454dc2
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x454e10
Capabilities:
Get thread local storage value

Disassembly:
cmp dword [0x5a90bc], 0
jne 0x454e1e
call fcn.00454cd0
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push edi
push dword [0x5a90c0]
call esi
mov edx, eax
test edx, edx
jne 0x454e45
call fcn.00454cd0
push dword [0x5a90c0]
call esi
mov edx, eax
mov ebx, dword [edx]
mov esi, dword [edx + 4]
mov ebp, dword [esp + 0x14]
inc ebp
mov edi, dword [edx + ebx*4 + 0x4c]
mov eax, dword [edx + ebx*4 + 8]
mov ecx, dword [edx + esi*4 + 8]
ror edi, 0xd
add edi, dword [edx + esi*4 + 0x4c]
dec esi
ror eax, 5
add eax, ecx
mov dword [edx + ebx*4 + 8], edi
mov dword [edx + ebx*4 + 0x4c], eax
dec ebx
jns 0x454e78
mov ebx, 0x10
test esi, esi
jns 0x454e81
mov esi, 0x10
mov dword [edx], ebx
mov eax, edi
mov dword [edx + 4], esi
test ebp, ebp
je 0x454e90
mul ebp
mov eax, edx
pop edi
pop esi
pop ebp
pop ebx
ret 4