joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40916f
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push edi
mov edi, edx
test ecx, ecx
jne 0x40917a
xor eax, eax
pop edi
ret
push esi
not eax
mov edx, 0xff
cmp edi, 8
jb 0x40922e
mov esi, edi
shr esi, 3
push ebx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x422458]
movzx ebx, byte [ecx + 1]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x422458]
movzx ebx, byte [ecx + 2]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x422458]
movzx ebx, byte [ecx + 3]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x422458]
movzx ebx, byte [ecx + 4]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x422458]
movzx ebx, byte [ecx + 5]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x422458]
movzx ebx, byte [ecx + 6]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x422458]
movzx ebx, byte [ecx + 7]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x422458]
add ecx, 8
sub edi, 8
dec esi
jne 0x409191
pop ebx
test edi, edi
je 0x409247
movzx esi, byte [ecx]
xor esi, eax
and esi, edx
shr eax, 8
xor eax, dword [esi*4 + 0x422458]
inc ecx
dec edi
jne 0x409232
pop esi
not eax
pop edi
ret

Function at 0x40924c
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov eax, dword [ecx]
movsx edx, dl
xor edx, eax
push esi
mov esi, 0xff
and edx, esi
mov edx, dword [edx*4 + 0x422458]
shr eax, 8
xor edx, eax
mov eax, dword [ecx + 8]
mov dword [ecx], edx
movzx edx, dl
add edx, dword [ecx + 4]
imul edx, edx, 0x8088405
inc edx
mov dword [ecx + 4], edx
shr edx, 0x18
xor edx, eax
and edx, esi
shr eax, 8
xor eax, dword [edx*4 + 0x422458]
pop esi
mov dword [ecx + 8], eax
ret

Function at 0x4098af
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 0xc]
imul edi, dword [ebp + 0x10]
cmp byte [esi], 0
je 0x4098df
push 0
lea eax, [ebp + 8]
push eax
push edi
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4098da
mov byte [esi + 8], 1
mov eax, dword [ebp + 8]
jmp 0x409907
mov ecx, dword [esi + 0x1c]
mov eax, dword [esi + 0x18]
lea edx, [ecx + edi]
cmp edx, eax
jbe 0x4098f0
sub eax, ecx
mov edi, eax
mov eax, dword [esi + 0x14]
push edi
add eax, ecx
push eax
push dword [ebp + 8]
call fcn.0040e660
add esp, 0xc
add dword [esi + 0x1c], edi
mov eax, edi
xor edx, edx
div dword [ebp + 0xc]
pop edi
pop ebp
ret 0xc
Function at 0x40a692
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebx], 0
push esi
push edi
jne 0x40a738
cmp dword [ebx + 4], 0xffffffff
jne 0x40a738
lea esi, [ebx + 0x244]
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40a6c2
sub eax, edx
sar eax, 1
movzx eax, word [ebx + eax*2 + 0x242]
cmp eax, 0x5c
je 0x40a6fa
cmp eax, 0x2f
je 0x40a6fa
sub esi, 2
mov ax, word [esi + 2]
add esi, 2
test ax, ax
jne 0x40a6e6
mov edi, esi
mov esi, 0x421094
movsd dword es:[edi], dword [esi]
push 0x20
call fcn.0040c203
and dword [eax + 0x1c], 0
and dword [eax + 0xc], 0
pop ecx
mov ecx, dword [ebp + 8]
push eax
mov word [eax], 0x100
mov byte [eax + 0x10], 0
mov dword [eax + 0x14], ecx
mov dword [eax + 0x18], 0x1ae9b
call fcn.00409b24
mov dword [ebx], eax
neg eax
sbb eax, eax
and eax, 0xfffffe00
add eax, 0x200
jmp 0x40a73d
mov eax, 0x1000000
pop edi
pop esi
pop ecx
pop ebp
ret 4

Function at 0x40bbb2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4255d4]
jne 0x40bbbc
repz ret
jmp fcn.004105b9
Function at 0x41c033
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4255d4]
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.0041124e
and dword [ebp - 0x14], 0
cmp dword [0x4282b4], 0
mov dword [ebp - 0x18], eax
jne 0x41c0e6
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x41c18e
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x420fcc
push ebx
call edi
test eax, eax
je 0x41c18e
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x4282b4], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x4282b8], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x4282bc], eax
call edi
push eax
call esi
mov dword [0x4282c4], eax
test eax, eax
je 0x41c0e6
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x4282c0], eax
mov eax, dword [0x4282c0]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x41c13f
cmp dword [0x4282c4], ecx
je 0x41c13f
push eax
call esi
push dword [0x4282c4]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x41c13f
test ebx, ebx
je 0x41c13f
call edi
test eax, eax
je 0x41c136
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x41c136
test byte [ebp - 8], 1
jne 0x41c13f
or dword [ebp + 0x10], 0x200000
jmp 0x41c172
mov eax, dword [0x4282b8]
cmp eax, dword [ebp - 0x18]
je 0x41c172
push eax
call esi
test eax, eax
je 0x41c172
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x41c172
mov eax, dword [0x4282bc]
cmp eax, dword [ebp - 0x18]
je 0x41c172
push eax
call esi
test eax, eax
je 0x41c172
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4282b4]
call esi
test eax, eax
je 0x41c18e
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x41c190
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040bbb2
leave
ret
Function at 0x40bc6d
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push 1
pop eax
test eax, eax
je 0x40c18d
lea eax, [ebp - 0x230]
mov dword [ebp - 0x3a0], eax
cmp dword [ebp - 0x6fc], 0
jne 0x40bc62
and byte [ebp - 0x77c], 0
and byte [ebp - 0x77b], 0
mov byte [ebp - 0x77a], 4
and byte [ebp - 0x779], 0
mov byte [ebp - 0x778], 0xb8
mov byte [ebp - 0x777], 0xc1
mov byte [ebp - 0x776], 0xa7
mov byte [ebp - 0x775], 0xab
mov byte [ebp - 0x774], 0x89
mov byte [ebp - 0x773], 0x94
mov byte [ebp - 0x772], 0x9c
mov byte [ebp - 0x771], 0x89
mov byte [ebp - 0x770], 0x9a
mov byte [ebp - 0x76f], 0x96
mov byte [ebp - 0x76e], 0xdb
mov byte [ebp - 0x76d], 0xbd
mov byte [ebp - 0x76c], 0x92
mov byte [ebp - 0x76b], 0x97
mov byte [ebp - 0x76a], 0x9e
mov byte [ebp - 0x769], 0x88
mov byte [ebp - 0x768], 0xa7
mov byte [ebp - 0x767], 0xb8
mov byte [ebp - 0x766], 0x94
mov byte [ebp - 0x765], 0x96
mov byte [ebp - 0x764], 0x96
mov byte [ebp - 0x763], 0x94
mov byte [ebp - 0x762], 0x95
mov byte [ebp - 0x761], 0xdb
mov byte [ebp - 0x760], 0xbd
mov byte [ebp - 0x75f], 0x92
mov byte [ebp - 0x75e], 0x97
mov byte [ebp - 0x75d], 0x9e
mov byte [ebp - 0x75c], 0x88
mov byte [ebp - 0x75b], 0xa7
cmpsd dword [esi], dword es:[edi]
mov byte [ebp - 0x75a], 0xa8
mov byte [ebp - 0x759], 0x82
mov byte [ebp - 0x758], 0x88
mov byte [ebp - 0x757], 0x8f
mov byte [ebp - 0x756], 0x9e
mov byte [ebp - 0x755], 0x96
mov byte [ebp - 0x754], 0xa7
mov byte [ebp - 0x753], 0x88
mov byte [ebp - 0x752], 0x82
mov byte [ebp - 0x751], 0x96
xchg esi, eax
mov byte [ebp - 0x750], 0x88
mov byte [ebp - 0x74f], 0x89
mov byte [ebp - 0x74e], 0x8d
mov byte [ebp - 0x74d], 0xd5
mov byte [ebp - 0x74c], 0x9f
mov byte [ebp - 0x74b], 0x97
mov byte [ebp - 0x74a], 0x97
mov byte [ebp - 0x749], 0xfb
lea eax, [ebp - 0x77c]
push eax
call fcn.0040a0f7
pop ecx
mov al, byte [ebp - 0x12c]
mov byte [ebp - 0x778], al
push 0x30
lea eax, [ebp - 0x77c]
push eax
call fcn.0040a0f7
pop ecx
push eax
lea eax, [ebp - 0x504]
push eax
call fcn.0040a058
add esp, 0xc
lea eax, [ebp - 0x504]
mov dword [ebp - 0x3a0], eax
cmp dword [ebp - 0x6fc], 1
jne 0x40bd13
add byte [eax], al
and byte [ebp - 0x78c], 0
and byte [ebp - 0x78b], 0
mov byte [ebp - 0x78a], 0xa0
and byte [ebp - 0x789], 0
mov byte [ebp - 0x788], 3
mov byte [ebp - 0x787], 0x3b
mov byte [ebp - 0x786], 0x33
invalid
Function at 0x4066b1
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
mov ebx, dword [ebp + 8]
cmp dword [ebx], 0x24
je 0x4066c7
xor eax, eax
jmp 0x4067ce
push esi
push edi
xor edi, edi
cmp dword [0x443380], edi
jne 0x40672f
push 0x2c
lea eax, [ebp - 0x3c]
push edi
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [ebp - 0x40], 0x30
mov dword [ebp - 0x18], str.ColorChooserClass
mov dword [ebp - 0x20], 5
push 0x7f00
push edi
call dword [sym.imp.USER32.dll_LoadCursorW]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x40]
push eax
mov dword [ebp - 0x3c], 3
mov dword [ebp - 0x38], 0x405a26
mov dword [ebp - 0x30], 0x38
call dword [sym.imp.USER32.dll_RegisterClassExW]
mov dword [0x443380], 1
push edi
mov esi, 0xc80000
mov dword [ebp - 0xc], edi
push esi
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], edi
push eax
mov dword [ebp - 8], 0x15f
mov dword [ebp - 4], 0xd1
call dword [sym.imp.USER32.dll_AdjustWindowRect]
mov eax, dword [ebp - 4]
sub eax, dword [ebp - 0xc]
push edi
push edi
push edi
push dword [ebx + 4]
push eax
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0x10]
push eax
mov eax, 0x80000000
push eax
push eax
push esi
push str.Choose_Color
push str.ColorChooserClass
push 1
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov esi, eax
push edi
push esi
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov edi, eax
push 5
push esi
mov dword [edi], ebx
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [ebx + 0xc]
push esi
call fcn.00406b40
pop ecx
pop ecx
push 0
push 0
push esi
call dword [sym.imp.USER32.dll_InvalidateRect]
push dword [edi + 0x10]
call dword [sym.imp.USER32.dll_SetFocus]
push esi
call fcn.0043b5f7
mov esi, dword [edi + 0x44]
push edi
call dword [sym.imp.msvcrt.dll_free]
pop ecx
pop ecx
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40879c
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0x30]
push ebx
push esi
push edi
mov eax, dword [eax + 0xc]
xor edi, edi
add eax, 0x14
mov ebx, edi
mov edx, edi
mov ecx, dword [eax]
lea esi, [eax - 8]
cmp ecx, eax
je 0x4087db
mov edi, dword [ebp + 8]
cmp dword [esi + 0x18], ebx
jbe 0x4087d0
cmp dword [esi + 0x18], edi
jae 0x4087d0
mov ebx, dword [esi + 0x18]
mov edx, dword [esi + 0x28]
lea esi, [ecx - 8]
mov ecx, dword [ecx]
cmp ecx, eax
jne 0x4087c0
xor edi, edi
movzx ecx, word [edx]
or eax, 0xffffffff
mov esi, edx
jmp 0x4087f3
cmp cx, 0x5c
lea esi, [esi + 2]
movzx ecx, word [esi]
cmove eax, edi
inc edi
test cx, cx
jne 0x4087e5
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x408801
mov dword [ecx], ebx
inc eax
pop edi
pop esi
pop ebx
lea eax, [edx + eax*2]
pop ebp
ret
Function at 0x430a5f
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push esi
mov esi, dword [sym.imp.USER32.dll_PeekMessageW]
push edi
xor edi, edi
jmp 0x430a85
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push 1
push edi
push edi
push edi
lea eax, [ebp - 0x34]
push eax
call esi
test eax, eax
jne 0x430a71
mov dword [ebp - 0x18], edi
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor edi, edi
push edi
push edi
push 1
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
or dword [ebp - 0x10], 0xffffffff
or dword [ebp - 0xc], 0xffffffff
mov dword [ebp - 8], eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 4]
mov dword [ebp - 4], edi
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edi, eax
test edi, edi
jne 0x430b46
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x430b46
mov edi, dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
jmp 0x430b10
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push 1
xor eax, eax
push eax
push eax
push eax
lea eax, [ebp - 0x34]
push eax
call esi
test eax, eax
jne 0x430aeb
push 0x4ff
push 0xffffffffffffffff
push 1
lea eax, [ebp - 8]
push eax
push 1
call edi
test eax, eax
jne 0x430aff
push 1
push dword [ebp + 0x14]
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
push dword [ebp - 8]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
jmp 0x430b59
mov ecx, dword [ebp + 0x14]
mov eax, dword [ebp - 4]
push dword [ebp - 8]
mov dword [ecx], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x433944
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
lea eax, [ebp - 8]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
push esi
call dword [sym.imp.msvcrt.dll_malloc]
pop ecx
push 0
mov edi, eax
lea eax, [ebp - 4]
push eax
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 4]
push edi
call fcn.004338ea
push edi
mov esi, eax
call dword [sym.imp.msvcrt.dll_free]
add esp, 0xc
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x435352
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
lea eax, [ebp - 0x214]
push edi
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
test edi, edi
je 0x4353f3
push esi
push edi
push 1
call dword [sym.imp.msvcrt.dll_calloc]
pop ecx
pop ecx
mov esi, eax
lea eax, [ebp - 0x214]
push esi
push edi
push dword [ebp - 8]
push eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x4353ea
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push 0x440390
push esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x4353ea
mov eax, dword [ebp - 4]
mov edx, dword [eax + 8]
mov ecx, dword [eax + 0xc]
movzx eax, cx
push eax
shr ecx, 0x10
push ecx
movzx eax, dx
push eax
shr edx, 0x10
push edx
push str._d._d._d._d
push dword [ebp + 8]
call dword [sym.imp.msvcrt.dll_sprintf]
add esp, 0x18
push esi
call dword [sym.imp.msvcrt.dll_free]
pop ecx
pop esi
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x43562c
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x435651
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x435651
xor eax, eax
jmp 0x43567a
push 0
push 0x435683
push 0x43567d
push 0x4356e6
push dword [ebp + 8]
mov dword [0x443404], esi
call fcn.00437328
add esp, 0x14
and dword [0x443404], 0
pop esi
pop ebp
ret
Function at 0x437328
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x66c
push esi
mov esi, dword [ebp + 8]
xor edx, edx
mov dword [ebp - 8], edx
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
cmp ax, dx
jne 0x43733d
xor eax, eax
sub esi, ecx
push 0x20a
mov word [ebp - 0x214], ax
lea eax, [ebp - 0x212]
push edx
push eax
sar esi, 1
call sub.msvcrt.dll_memset
lea eax, [esi*2 + 2]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x214]
push eax
call sub.msvcrt.dll_memcpy
add esp, 0x18
push 0x5c
pop eax
test esi, esi
je 0x437392
cmp word [ebp + esi*2 - 0x216], ax
je 0x43739b
mov word [ebp + esi*2 - 0x214], ax
inc esi
push 0x2a
pop eax
mov word [ebp + esi*2 - 0x214], ax
lea eax, [ebp - 0x66c]
push eax
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
jne 0x4373ca
xor eax, eax
inc eax
jmp 0x437505
push edi
xor edi, edi
inc edi
lea eax, [ebp - 0x640]
push 0x440a8c
push eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
je 0x4374d4
lea eax, [ebp - 0x640]
push 0x440a90
push eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
je 0x4374d4
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x41c], ax
lea eax, [ebp - 0x41a]
push eax
call sub.msvcrt.dll_memset
lea eax, [esi*2]
push eax
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x41c]
push eax
call sub.msvcrt.dll_memcpy
lea ecx, [ebp - 0x640]
add esp, 0x18
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 8]
jne 0x437448
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
lea eax, [ebp - 0x640]
push eax
lea eax, [ebp - 0x41c]
lea eax, [eax + esi*2]
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
test byte [ebp - 0x66c], 0x10
je 0x4374b6
cmp dword [ebp + 0x14], 0
je 0x437499
push dword [ebp + 0x18]
lea eax, [ebp - 0x41c]
push eax
call dword [ebp + 0x14]
test eax, eax
je 0x4374d4
push dword [ebp + 0x18]
lea eax, [ebp - 0x41c]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
call fcn.00437328
add esp, 0x14
jmp 0x4374c3
push dword [ebp + 0x18]
lea eax, [ebp - 0x41c]
push eax
call dword [ebp + 0xc]
test eax, eax
je 0x4374d0
test edi, edi
je 0x4374d0
xor edi, edi
inc edi
jmp 0x4374d4
xor eax, eax
mov edi, eax
lea eax, [ebp - 0x66c]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4373ce
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindClose]
test edi, edi
je 0x437502
push dword [ebp + 0x18]
push dword [ebp + 8]
call dword [ebp + 0x10]
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x43a225
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push 0x58
push 1
call dword [sym.imp.msvcrt.dll_calloc]
mov esi, eax
movss xmm0, dword [ebp + 0x1c]
mov eax, dword [ebp + 0x18]
xor edi, edi
mov dword [0x4433fc], edi
pop ecx
mov dword [esi + 0x10], eax
mov eax, dword [ebp + 0x20]
mov dword [esi + 0x18], eax
mov eax, dword [ebp + 0x24]
mov dword [esi + 0x1c], eax
mov eax, dword [ebp + 0x30]
mov dword [esi + 0x28], eax
mov eax, dword [ebp + 0x34]
mov dword [esi + 0x2c], eax
mov eax, dword [ebp + 0x38]
mov dword [esi + 0x30], eax
mov eax, dword [ebp + 0x3c]
pop ecx
mov ecx, dword [ebp + 8]
mov dword [esi], ecx
mov ecx, dword [ebp + 0xc]
mov dword [esi + 0x34], eax
mov eax, dword [ebp + 0x44]
mov dword [esi + 4], ecx
mov ecx, dword [ebp + 0x10]
mov dword [esi + 0x38], eax
mov eax, dword [ebp + 0x48]
mov dword [esi + 8], ecx
mov ecx, dword [ebp + 0x14]
mov dword [esi + 0x3c], eax
mov eax, dword [ebp + 0x4c]
mov dword [esi + 0xc], ecx
xor ecx, ecx
mov dword [esi + 0x40], eax
mov eax, dword [ebp + 0x28]
test eax, eax
movss dword [esi + 0x14], xmm0
cmovne ecx, dword [ebp + 0x2c]
mov dword [esi + 0x24], ecx
mov ecx, dword [ebp + 0x40]
mov dword [esi + 0x20], eax
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x43a2b4
sub ecx, edx
lea eax, [ecx + 1]
push eax
push dword [ebp + 0x40]
lea eax, [esi + 0x44]
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
push edi
push edi
push esi
push 0x43a2e4
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop edi
pop esi
pop ebp
ret
Function at 0x43b7f0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
lea eax, [ebp - 0x40]
push eax
push 0x20
push 0xd
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageW]
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.msvcrt.dll__wtol]
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x401000
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x100]
push dword [ebp + 8]
push 0x100
push eax
call dword [sym.imp.msvcrt.dll__vsnprintf]
add esp, 0x10
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
leave
ret

Function at 0x40104b
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
lea eax, [ebp - 4]
push eax
push str.Softwarehskp
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x4010dc
lea eax, [ebp - 8]
mov dword [ebp - 8], 0xc
push eax
push 0x403008
push 0
push 0
push str.Config
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [0x403010], 0
je 0x4010dc
lea eax, [ebp - 0x34]
mov dword [ebp - 0x34], 0x2c
push eax
push dword [section..data]
call dword [sym.imp.USER32.dll_GetWindowPlacement]
lea eax, [ebp - 0x18]
mov ecx, 0x403008
push eax
call fcn.004010de
movsx eax, byte [0x403010]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x34]
push eax
push dword [section..data]
call dword [sym.imp.USER32.dll_SetWindowPlacement]
leave
ret

Function at 0x4010ff
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], 0x2c
push eax
push dword [section..data]
call dword [sym.imp.USER32.dll_GetWindowPlacement]
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x401154
mov cx, word [ebp - 0x14]
mov byte [0x403010], al
mov word [0x403008], cx
mov cx, word [ebp - 0x10]
mov word [0x40300a], cx
mov cx, word [ebp - 0xc]
mov word [0x40300c], cx
mov cx, word [ebp - 8]
mov word [0x40300e], cx
lea eax, [ebp - 4]
push eax
push str.Softwarehskp
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x4011b6
push esi
lea eax, [ebp - 0x70]
push 0x40
push eax
push 1
push dword [0x403018]
call dword [sym.imp.USER32.dll_LoadStringA]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push eax
lea eax, [ebp - 0x70]
push eax
push 1
push 0
push 0
push dword [ebp - 4]
call esi
push 0xc
push 0x403008
push 3
push 0
push str.Config
push dword [ebp - 4]
call esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
leave
ret