joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41154b
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x4115e8
push ebx
push esi
call fcn.00411514
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0041145d
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x411595
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4115e7
push edi
push eax
call fcn.00410015
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x4115b5
call fcn.0040e2bb
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4115e6
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0041145d
add esp, 0x20
test eax, eax
jne 0x4115d4
push edi
call fcn.0040e2bb
jmp 0x4115dc
push ebx
call fcn.0040e2bb
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x412a25
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x49e280
push 0x49e278
push str.FlsAlloc
push 0x1e
call fcn.004128e6
mov esi, eax
add esp, 0x10
test esi, esi
je 0x412a59
push dword [ebp + 8]
mov ecx, esi
call dword [0x419124]
call esi
jmp 0x412a5f
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x412aa3
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x49e290
push 0x49e288
push str.FlsGetValue
push 0x20
call fcn.004128e6
mov esi, eax
add esp, 0x10
test esi, esi
je 0x412ada
push dword [ebp + 8]
mov ecx, esi
call dword [0x419124]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x414852
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x4a4078]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x414892
cmp byte [ebx], 0xa
jne 0x414892
or byte [eax + edi + 0x28], 4
jmp 0x414897
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x414995
mov al, byte [edx]
cmp al, 0x1a
je 0x414977
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x4148c6
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x4148eb
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x4148f5
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x4148a8
jmp 0x414995
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x414972
cmp dword [ebp - 0xc], 0
je 0x414972
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x4a4078]
test byte [eax + edi + 0x28], 0x48
je 0x41494c
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x414937
mov byte [esi], dl
jmp 0x414948
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4a4078]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x414995
cmp byte [ebp - 1], 0xa
jne 0x41495b
cmp esi, ebx
jne 0x41495b
mov byte [esi], 0xa
jmp 0x414994
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041464b
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x414995
mov byte [esi], 0xd
jmp 0x414994
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x4a4078]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x414991
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x414995
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41499e
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x4a4078]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4149e1
cmp word [esi], dx
jne 0x4149e1
or byte [edi + eax + 0x28], 4
jmp 0x4149e6
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x414b39
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x414b19
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x414a28
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x414a5e
cmp eax, edx
jae 0x414a6a
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x414a00
jmp 0x414b39
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x414b15
cmp dword [ebp - 0x14], 0
je 0x414b15
mov eax, dword [ebx*4 + 0x4a4078]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x414aed
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x414ab6
mov word [esi], cx
jmp 0x414ae9
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x4a4078]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x4a4078]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x4a4078]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x414b39
pop ebx
cmp word [ebp - 4], bx
jne 0x414afe
cmp esi, dword [ebp + 0xc]
jne 0x414afe
mov word [esi], bx
jmp 0x414b36
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0041464b
add esp, 0x10
cmp word [ebp - 4], bx
je 0x414b39
push 0xd
jmp 0x414b32
mov ecx, dword [ebx*4 + 0x4a4078]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x414b30
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x414b39
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x415eb5
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00415e31
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x41602d
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x41602d
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x415fdc
jg 0x415f0e
test eax, eax
je 0x415fd2
push 1
push 0x1000
call fcn.00410063
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x415f34
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x415fc9
push 0x8000
push ebx
call fcn.0040d303
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x415f60
jg 0x415f5b
cmp ecx, 0x1000
jb 0x415f60
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.0040fa98
add esp, 0x10
cmp eax, 0xffffffff
je 0x415fa5
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x415f5b
jl 0x415f8c
test ecx, ecx
jne 0x415f4d
push dword [ebp - 0xc]
push ebx
call fcn.0040d303
push esi
call fcn.0040e2bb
add esp, 0xc
xor edi, edi
jmp 0x41603e
cmp byte [edi + 0x24], 0
je 0x415fbc
cmp dword [edi + 0x20], 5
jne 0x415fbc
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x415fc7
mov edi, dword [edi + 0x18]
jmp 0x415fc9
xor edi, edi
push esi
call fcn.0040e2bb
pop ecx
jmp 0x41603e
test ecx, ecx
jg 0x415f9e
jl 0x415fdc
test eax, eax
jae 0x415f9e
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041464b
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x415fff
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x415f9e
jmp 0x416036
push ebx
call fcn.00411e0e
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x415f9e
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x41603e
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x41603b
mov edi, dword [edi + 0x18]
jmp 0x41603e
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.0041464b
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x418310
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41833d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41833d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4010f5
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x954
push esi
xor esi, esi
push 0x44
lea eax, [ebp - 0x54]
push esi
push eax
call fcn.0041b570
add esp, 0xc
mov dword [ebp - 0x54], 0x44
call fcn.00448451
mov eax, dword [eax + 4]
push dword [eax + 0x70]
lea eax, [ebp - 0x954]
push str.neuz.exe_sunkist__s
push 0x7ff
push eax
call fcn.0041b51d
add esp, 0x10
test eax, eax
jle 0x4011a6
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
push eax
push esi
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x954]
push esi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x40117c
call fcn.00401357
test eax, eax
je 0x4011a6
call fcn.00401357
push esi
push esi
push 0x10
push dword [eax + 0x1c]
call dword [sym.imp.USER32.dll_PostMessageA]
jmp 0x4011a6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x154]
push str.ErrorNumber:__d_Neuz.exe_Run_Error
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x154]
push esi
push esi
push eax
call fcn.0044221e
pop esi
leave
ret
Function at 0x402087
Capabilities:
Create process on windows
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push esi
push edi
push 0x44
xor esi, esi
pop edi
lea eax, [ebp - 0x54]
push edi
push esi
push eax
call fcn.0041b570
add esp, 0xc
lea eax, [ebp - 0x10]
mov dword [ebp - 0x54], edi
push eax
lea eax, [ebp - 0x54]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push str.Updater.exe_myunglang
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x4020e5
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0x469264
call edi
push 0x46911c
call edi
push esi
push esi
push str.Updater.exe_file_not_found
call fcn.0044221e
jmp 0x40212b
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push str.Updater
push str.Aeonsoft
call dword [sym.imp.USER32.dll_FindWindowA]
mov edi, eax
cmp edi, esi
je 0x4020e5
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push 0xffffffffffffffff
push esi
push 0x12
mov dword [ebp - 8], eax
call fcn.00442256
cmp eax, 1
jne 0x40212b
push esi
push dword [ebp - 8]
push 0x402
push edi
call dword [sym.imp.USER32.dll_SendMessageA]
push esi
call dword [sym.imp.USER32.dll_PostQuitMessage]
pop edi
pop esi
leave
ret

Function at 0x403299
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4032b5
and al, 0xfe
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
ret

Function at 0x403450
Capabilities:
Terminate thread

Disassembly:
mov eax, 0x4505e7
call fcn.0041b9c0
push ecx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
mov eax, dword [esi + 0x10]
and dword [ebp - 4], 0
test eax, eax
je 0x403473
push 0
push dword [eax + 0x28]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, esi
call fcn.00403bbf
mov ecx, esi
call fcn.004034f5
or dword [ebp - 4], 0xffffffff
lea ecx, [esi + 0xc]
call fcn.0043ca09
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x403493
Capabilities:
Connect to http server
Create http request

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov esi, ecx
call fcn.004034f5
xor edi, edi
push edi
push edi
push edi
push edi
push str.FlyffPatch
call dword [sym.imp.WININET.dll_InternetOpenA]
cmp eax, edi
mov dword [esi], eax
jne 0x4034bb
xor eax, eax
jmp 0x4034f1
lea ecx, [ebp - 4]
push 4
push ecx
push 6
push eax
mov dword [ebp - 4], 0xafc8
call dword [sym.imp.WININET.dll_InternetSetOptionA]
mov eax, dword [esi + 0xc]
push edi
push edi
push 3
push edi
push edi
push 0x50
push eax
push dword [esi]
call dword [sym.imp.WININET.dll_InternetConnectA]
xor ecx, ecx
cmp eax, edi
setne cl
mov dword [esi + 4], eax
mov eax, ecx
pop edi
pop esi
leave
ret

Function at 0x40352a
Capabilities:
Resume thread

Disassembly:
mov eax, dword [esp + 4]
push esi
push 0
push 0
mov esi, ecx
push 4
push 0
push esi
push 0x403562
mov dword [esi + 0x1c], eax
call fcn.004372ba
test eax, eax
mov dword [esi + 0x10], eax
je 0x40355e
and dword [eax + 0x24], 0
mov eax, dword [esi + 0x10]
push dword [eax + 0x28]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
pop esi
ret 4
Function at 0x403689
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4000
call fcn.0041be70
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, dword [ebp + 8]
mov esi, eax
cmp edi, 0x64
jb 0x4036bd
push str.ERROR:_UnCompress
lea eax, [ebp - 0x2000]
push eax
call fcn.0041b9df
pop ecx
pop ecx
jmp 0x403711
cmp edi, 8
jne 0x4036c9
push str.ERROR:_Disk_Full
jmp 0x4036ad
cmp edi, 4
jne 0x4036d5
push str.ERROR:_File_Not_Found
jmp 0x4036ad
push 0
lea eax, [ebp - 0x2000]
push 0x2000
push eax
cmp esi, 0x2ee0
push 0x400
push esi
jb 0x403704
push str.wininet.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
push 0x800
jmp 0x40370b
push 0
push 0x1000
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push edi
lea eax, [ebp - 0x2000]
push esi
push eax
lea eax, [ebp - 0x4000]
push str._s_nCODE:_d_RESULT:_d
push eax
call fcn.0041b9df
add esp, 0x14
lea eax, [ebp - 0x4000]
push eax
call fcn.00403372
pop ecx
lea eax, [ebp - 0x4000]
push 0
push 0x10
push eax
call fcn.0044221e
cmp edi, 8
pop edi
pop esi
jne 0x403759
push 1
call fcn.0041becc
leave
ret 4
Function at 0x4051c6
Capabilities:
Get common file path

Disassembly:
push esi
mov esi, 0x104
push edi
mov edi, ecx
push esi
push 0
push edi
call fcn.0041b570
add esp, 0xc
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
pop edi
pop esi
ret

Function at 0x4051e6
Capabilities:
Create directory
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x424
mov edx, ecx
push ebx
push esi
push edi
mov eax, dword [edx + 0x10c]
mov dword [ebp - 4], edx
mov dword [ebp - 0xc], eax
mov eax, dword [edx + 0x108]
mov ebx, dword [eax]
cmp ebx, eax
je 0x4052dc
and dword [ebp - 8], 0
jmp 0x405219
mov edx, dword [ebp - 4]
lea esi, [ebx + 8]
mov ecx, 0x86
lea edi, [ebp - 0x224]
rep movsd dword es:[edi], dword [esi]
cmp byte [ebp - 0x224], 0
je 0x405264
lea eax, [ebp - 0x214]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov eax, dword [ebx + 4]
mov esi, dword [ebx]
push ebx
mov dword [eax], esi
mov eax, dword [ebx]
mov ecx, dword [ebx + 4]
mov dword [eax + 4], ecx
call fcn.004380bd
mov eax, dword [ebp - 4]
pop ecx
mov ebx, esi
dec dword [eax + 0x10c]
jmp 0x4052a1
lea eax, [ebp - 0x224]
mov ecx, edx
push eax
call fcn.004052e1
test al, al
jne 0x405241
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x424]
push str.IsSameFile:__s_n
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x424]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ebx, dword [ebx]
mov ecx, dword [0x46ee70]
cmp dword [ecx + 0x60], 0
jne 0x4052dc
add dword [ebp - 8], 0x64
xor edx, edx
mov eax, dword [ebp - 8]
push 0
div dword [ebp - 0xc]
push eax
push 0x402
push dword [ecx + 0x5d0]
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [ebp - 4]
cmp ebx, dword [eax + 0x108]
jne 0x405216
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40806e
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
lea eax, [ebp + 0xc]
push esi
push eax
push 1
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x4080c7
lea eax, [ebp + 8]
mov dword [ebp + 8], 0x104
push eax
lea eax, [ebp - 0x104]
push eax
push esi
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
lea eax, [ebp - 0x104]
push eax
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret 0xc
Function at 0x4081f4
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push ebx
push esi
push edi
xor ebx, ebx
push dword [ebp + 0xc]
mov dword [ebp - 8], ecx
push ebx
push ebx
push dword [ebp + 8]
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x20
mov dword [ebp - 4], eax
ja 0x4082e1
mov ecx, dword [ebp - 8]
lea eax, [ebp - 0x210]
push eax
mov edi, SysReAllocString
push str..htm
push edi
call fcn.0040806e
test eax, eax
jne 0x4082e1
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x210]
push str._shellopencommand
push eax
call esi
mov ecx, dword [ebp - 8]
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x210]
push eax
push edi
call fcn.0040806e
test eax, eax
jne 0x4082e1
lea eax, [ebp - 0x210]
push str.__1_
push eax
call fcn.0041c91d
mov edi, eax
pop ecx
cmp edi, ebx
pop ecx
jne 0x4082be
lea eax, [ebp - 0x210]
push 0x469e74
push eax
call fcn.0041c91d
mov edi, eax
pop ecx
cmp edi, ebx
pop ecx
jne 0x4082be
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea edi, [ebp + eax - 0x211]
jmp 0x4082c0
mov byte [edi], bl
push 0x469e70
push edi
call esi
push dword [ebp + 8]
push edi
call esi
push dword [ebp + 0xc]
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x40885f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x450984
call fcn.0041b9c0
sub esp, 0x2c
push ebx
push esi
push edi
mov dword [ebp - 0x10], ecx
call fcn.00448451
mov esi, dword [eax + 0xc]
push 0x469e9c
movzx eax, word [ebp + 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
je 0x4088a7
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4088ab
xor eax, eax
jmp 0x4088d7
push 0
push ebx
push eax
lea ecx, [ebp - 0x38]
call fcn.00442e83
mov ecx, dword [ebp - 0x10]
and dword [ebp - 4], 0
lea eax, [ebp - 0x38]
push eax
call fcn.0040894d
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
mov esi, eax
call fcn.00442efc
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x431ae0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.0041be70
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x431bab
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x431bab
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x431b5e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x431b69
or bh, 8
and edi, 0x8000000
je 0x431b84
mov eax, dword [0x472a5c]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x431bab
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret