joyce8/EMBER2024-capa huggingface dataset:
Function at 0x444c8a
Capabilities:
Terminate process

Disassembly:
push 0x364
mov eax, 0x4ffd69
call fcn.004da01f
mov esi, ecx
call fcn.00454aba
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
call edi
push eax
push str._INFO___d___OnCreate_1
push 3
push dword [0x54eec8]
call fcn.0045449e
add esp, 0x10
push 0xfffffffffffffff0
mov ecx, esi
call fcn.004d4c8c
push eax
call dword [sym.imp.USER32.dll_GetWindowLongW]
and eax, 0xff3fffff
or eax, 0x6000000
push eax
push 0xfffffffffffffff0
mov ecx, esi
call fcn.004d4c8c
push eax
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov eax, dword [esi]
mov ecx, esi
lea ebx, [esi + 0x30]
call dword [eax + 0x30]
push eax
push dword [esi + 4]
mov ecx, ebx
call fcn.0043f4eb
lea eax, [esi + 0x24]
push eax
mov ecx, ebx
call fcn.0043c10e
lea ecx, [ebp - 0x36c]
call fcn.00471db4
mov eax, dword [esi]
and dword [ebp - 4], 0
lea ecx, [ebp - 0x118]
push ecx
mov ecx, esi
call dword [eax + 0x28]
lea ecx, [ebp - 0x118]
mov byte [ebp - 4], 1
call fcn.0043ac70
test al, al
jne 0x444da6
call edi
push eax
push str._INFO___d___OnCreate_2
push 3
push dword [0x54eec8]
call fcn.0045449e
mov eax, dword [esi]
add esp, 0x10
lea ecx, [ebp - 0x94]
push ecx
mov ecx, esi
call dword [eax + 0x2c]
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.0043ab5c
push eax
call fcn.004d8a1b
pop ecx
lea ecx, [ebp - 0x94]
movzx edi, ax
mov byte [ebp - 4], 1
call fcn.0043ab42
push 0
lea eax, [esi + 0x28]
push ebx
push eax
lea ecx, [ebp - 0x118]
call fcn.0043ab5c
push eax
push edi
lea ecx, [ebp - 0x36c]
call fcn.00472d75
mov edi, eax
jmp 0x444e07
call edi
push eax
push str._INFO___d___OnCreate_3
push 3
push dword [0x54eec8]
call fcn.0045449e
mov eax, dword [esi]
add esp, 0x10
lea ecx, [ebp - 0x19c]
push ecx
mov ecx, esi
lea edi, [esi + 0x28]
call dword [eax + 0x2c]
push 0
push ebx
push edi
push 0
mov ecx, eax
mov byte [ebp - 4], 3
call fcn.0043ab5c
push ecx
mov ecx, esp
mov dword [ecx], eax
lea ecx, [ebp - 0x36c]
mov dword [ebp - 0x370], esp
call fcn.00472d75
lea ecx, [ebp - 0x19c]
mov edi, eax
mov byte [ebp - 4], 1
call fcn.0043ab42
test edi, edi
jne 0x444e70
push 0xffffffffffffffff
push 0x50b02c
lea ecx, [ebp - 0x94]
call fcn.0043af60
mov eax, dword [esi]
lea ecx, [ebp - 0x220]
push ecx
mov ecx, esi
mov byte [ebp - 4], 4
call dword [eax + 0x2c]
push eax
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 5
call fcn.0043acec
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 4
call fcn.0043ab42
push 0x10
push str.Duilib
lea ecx, [ebp - 0x94]
call fcn.0043ab5c
push eax
push edi
call dword [sym.imp.USER32.dll_MessageBoxW]
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push edi
mov ecx, ebx
call fcn.004422c7
lea eax, [esi + 0x20]
push eax
mov ecx, ebx
call fcn.0043c0be
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x1c]
lea ecx, [ebp - 0x118]
mov byte [ebp - 4], 0
call fcn.0043ab42
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x36c]
call fcn.0047131a
xor eax, eax
call fcn.004da0a2
ret 0x10
Function at 0x44eafa
Capabilities:
Log keystrokes via polling

Disassembly:
sub ecx, 0x6c0
jmp fcn.00449f05

Function at 0x44ee85
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x54b3f0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
cmp byte [esi + 0x18], bl
je 0x44ef11
cmp dword [esi + 0x10], ebx
je 0x44ef11
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea edi, [eax + 1]
lea eax, [edi + edi]
call fcn.004d98c0
mov dword [ebp - 8], esp
cmp esp, ebx
je 0x44ef11
push edi
push dword [ebp - 8]
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [esi + 0x10]
push dword [ebp - 8]
add ecx, 0x1cc
call fcn.0043acc8
mov ecx, dword [esi + 0x10]
mov eax, dword [ecx]
push ebx
push ebx
push ebx
push str.textchanged
push ecx
call dword [eax + 0x1c]
mov ecx, eax
call fcn.0043f57f
mov ecx, dword [esi + 0x10]
mov eax, dword [ecx]
call dword [eax + 0x1c]
mov ecx, eax
call fcn.0043bb9e
test al, al
je 0x44ef11
mov ecx, dword [esi + 0x10]
call fcn.00446b24
xor eax, eax
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d5ddb
leave
ret 0x10
Function at 0x4542cb
Capabilities:
Create thread

Disassembly:
push 8
mov eax, 0x50095c
call fcn.004d9fb6
mov esi, ecx
lea eax, [esi + 0x10]
xor ebx, ebx
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], bl
call fcn.004282fd
push ebx
push ebx
push dword [ebp + 0xc]
mov dword [ebp - 4], ebx
push dword [ebp + 8]
push ebx
push ebx
call fcn.004d8e68
add esp, 0x18
mov dword [ebp + 0xc], eax
cmp eax, ebx
jne 0x45431c
cmp byte [ebp - 0x10], bl
je 0x454318
mov eax, dword [ebp - 0x14]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
xor al, al
jmp 0x454339
lea eax, [ebp + 0xc]
push eax
mov ecx, esi
call fcn.0042844b
cmp byte [ebp - 0x10], bl
je 0x454337
mov eax, dword [ebp - 0x14]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov al, 1
call fcn.004da08e
ret 8

Function at 0x454aba
Capabilities:
Get common file path

Disassembly:
push 0x244
mov eax, 0x500ac3
call fcn.004da01f
lea eax, [ebp - 0x218]
push eax
push 0x103
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
cmp word [ebp + eax*2 - 0x21a], 0x5c
je 0x454af8
push 0x50ab24
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x234]
call fcn.00404526
mov esi, str.wsduilib.log
xor ebx, ebx
push esi
mov dword [ebp - 4], ebx
call fcn.004d9771
pop ecx
push eax
push esi
lea ecx, [ebp - 0x234]
call fcn.00412163
test byte [0x54ef5c], 1
mov esi, 0x54eee8
jne 0x454b7f
or dword [0x54ef5c], 1
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x250]
push eax
mov byte [ebp - 4], 1
call fcn.00454672
pop ecx
pop ecx
push ebx
push eax
mov ecx, esi
mov byte [ebp - 4], 2
call fcn.00454341
push ebx
push 1
lea ecx, [ebp - 0x250]
call fcn.00402566
push 0x50998e
call fcn.004d82f9
pop ecx
mov byte [ebp - 4], bl
mov ecx, esi
mov dword [0x54eec8], esi
call fcn.00454a81
push ebx
push 1
lea ecx, [ebp - 0x234]
call fcn.0040482f
xor eax, eax
call fcn.004da0a2
ret
Function at 0x45a2e9
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, eax
mov eax, dword [edi + 8]
mov esi, eax
and esi, 7
je 0x45a30e
cmp eax, esi
jge 0x45a306
mov eax, edi
call fcn.00459d3d
mov ecx, esi
shr dword [edi + 0xc], cl
sub dword [edi + 8], esi
mov esi, dword [edi + 8]
xor ecx, ecx
test esi, esi
jle 0x45a33b
mov eax, dword [edi + 0xc]
push ebx
mov dl, byte [edi + 0xc]
sub esi, 8
mov byte [ebp + ecx - 4], dl
shr eax, 8
mov ebx, esi
inc ecx
mov dword [edi + 0xc], eax
test ebx, ebx
jg 0x45a31b
mov dword [edi + 8], ebx
pop ebx
cmp ecx, 4
jge 0x45a357
mov esi, dword [edi + 4]
mov eax, dword [edi]
cmp eax, esi
jb 0x45a348
xor dl, dl
jmp 0x45a34d
mov dl, byte [eax]
inc eax
mov dword [edi], eax
mov byte [ebp + ecx - 4], dl
inc ecx
cmp ecx, 4
jl 0x45a33e
movzx esi, byte [ebp - 3]
movzx eax, byte [ebp - 4]
movzx ecx, byte [ebp - 2]
shl esi, 8
add esi, eax
movzx eax, byte [ebp - 1]
shl eax, 8
add eax, ecx
mov ecx, esi
xor ecx, 0xffff
cmp eax, ecx
je 0x45a38a
push str.zlib_corrupt
call fcn.00454e92
pop ecx
jmp 0x45a3c6
mov eax, dword [edi]
add eax, esi
cmp eax, dword [edi + 4]
jbe 0x45a39a
push str.read_past_buffer
jmp 0x45a382
mov eax, dword [edi + 0x10]
lea ecx, [eax + esi]
cmp ecx, dword [edi + 0x18]
jbe 0x45a3b0
push esi
call fcn.00459e1a
pop ecx
test eax, eax
je 0x45a3c6
push esi
push dword [edi]
push dword [edi + 0x10]
call fcn.004d9410
add dword [edi], esi
add dword [edi + 0x10], esi
xor eax, eax
add esp, 0xc
inc eax
pop edi
pop esi
leave
ret
Function at 0x4696e3
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x4696f1
xor eax, eax
pop ebp
ret
mov eax, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0x10]
not eax
mov ecx, 0xff
cmp edi, 8
jb 0x4697ac
mov esi, edi
shr esi, 3
push ebx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x510780]
movzx ebx, byte [edx + 1]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x510780]
movzx ebx, byte [edx + 2]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x510780]
movzx ebx, byte [edx + 3]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x510780]
movzx ebx, byte [edx + 4]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x510780]
movzx ebx, byte [edx + 5]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x510780]
movzx ebx, byte [edx + 6]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x510780]
movzx ebx, byte [edx + 7]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x510780]
add edx, 8
sub edi, 8
dec esi
jne 0x46970f
pop ebx
test edi, edi
je 0x4697c5
movzx esi, byte [edx]
xor esi, eax
and esi, ecx
shr eax, 8
xor eax, dword [esi*4 + 0x510780]
inc edx
dec edi
jne 0x4697b0
pop edi
not eax
pop esi
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
movsx edx, byte [ebp + 0xc]
xor edx, eax
push esi
mov esi, 0xff
and edx, esi
mov edx, dword [edx*4 + 0x510780]
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 + 0x510780]
pop esi
mov dword [ecx + 8], eax
pop ebp
ret

Function at 0x469c92
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0xc]
imul edi, dword [ebp + 0x10]
cmp byte [esi], 0
je 0x469cc6
push 0
lea eax, [ebp + 0x10]
push eax
push edi
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x469cc1
mov byte [esi + 8], 1
mov eax, dword [ebp + 0x10]
jmp 0x469cee
mov ecx, dword [esi + 0x1c]
mov eax, dword [esi + 0x18]
lea edx, [ecx + edi]
cmp edx, eax
jbe 0x469cd7
sub eax, ecx
mov edi, eax
mov eax, dword [esi + 0x14]
push edi
add eax, ecx
push eax
push dword [ebp + 8]
call fcn.004d9410
add esp, 0xc
add dword [esi + 0x1c], edi
mov eax, edi
xor edx, edx
div dword [ebp + 0xc]
pop edi
pop esi
pop ebp
ret
Function at 0x46ad02
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x54b3f0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
test ebx, ebx
je 0x46ad36
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x46ad36
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
movzx ecx, word [esi]
test cx, cx
je 0x46ade0
mov eax, esi
mov edx, esi
cmp cx, 0x2f
je 0x46ad52
cmp cx, 0x5c
jne 0x46ad54
mov eax, edx
add edx, 2
movzx ecx, word [edx]
test cx, cx
jne 0x46ad46
cmp eax, esi
je 0x46ad94
sub eax, esi
push edi
sar eax, 1
lea edi, [eax + eax]
push edi
lea eax, [ebp - 0x414]
push esi
push eax
call fcn.004d9410
xor eax, eax
mov word [ebp + edi - 0x414], ax
lea eax, [ebp - 0x414]
push eax
push ebx
call fcn.0046ad02
add esp, 0x14
pop edi
xor eax, eax
mov word [ebp - 0x20c], ax
test ebx, ebx
je 0x46adb0
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.004d97bd
pop ecx
pop ecx
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.004d978c
pop ecx
pop ecx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x46ade0
push 0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004d5ddb
leave
ret

Function at 0x46c37d
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x46c428
cmp dword [esi + 4], 0xffffffff
jne 0x46c428
push edi
lea edi, [esi + 0x244]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push edi
call fcn.004d9771
movzx eax, word [esi + eax*2 + 0x242]
pop ecx
cmp eax, 0x5c
je 0x46c3cf
cmp eax, 0x2f
je 0x46c3cf
push 0x50ab24
push edi
call fcn.004d978c
pop ecx
pop ecx
cmp dword [ebp + 0x10], 1
pop edi
jne 0x46c3f1
push 1
push 0
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x46c3f1
mov eax, 0x2000000
jmp 0x46c42d
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00469ab7
add esp, 0x10
test eax, eax
jne 0x46c40f
mov eax, dword [ebp + 0x10]
jmp 0x46c42d
push eax
call fcn.0046be52
mov dword [esi], eax
neg eax
sbb eax, eax
and eax, 0xfffffe00
pop ecx
add eax, 0x200
jmp 0x46c42d
mov eax, 0x1000000
pop esi
pop ebp
ret 0xc
Function at 0x46ea2e
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x69c], ebx
je 0x46ea96
cmp dword [ebp + 8], 0x100
jne 0x46ea85
cmp word [ebp + 0xc], 0xd
jne 0x46ea85
cmp byte [esi + 0x6a2], bl
je 0x46ea6c
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x46ea85
cmp byte [esi + 0x6a3], bl
jne 0x46ea85
mov ecx, dword [esi + 0x44]
cmp ecx, ebx
je 0x46ea81
push ebx
push ebx
push ebx
push str.return
push esi
call fcn.0043f57f
xor eax, eax
jmp 0x46ea99
mov eax, dword [esi + 0x69c]
mov ecx, dword [eax + 0xc]
mov eax, dword [ecx]
pop esi
pop ebx
pop ebp
jmp dword [eax + 0xc]
xor eax, eax
inc eax
pop esi
pop ebx
pop ebp
ret 0x10
Function at 0x47bc46
Capabilities:
Get keyboard layout
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x54b3f0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
push esi
mov dword [ebp - 0x210], esi
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
mov ebx, dword [ebp + 0xc]
push eax
push esi
push ebx
call dword [sym.imp.USER32.dll_MapVirtualKeyExW]
mov esi, eax
cmp ebx, 0x21
jb 0x47bc96
cmp ebx, 0x28
jbe 0x47bc90
cmp ebx, 0x2c
jbe 0x47bc96
cmp ebx, 0x2e
ja 0x47bc96
or esi, 0x100
cmp dword [ebp + 0x10], 0
je 0x47bca2
or esi, 0x1000000
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.004d92e0
add esp, 0xc
push 0x104
lea eax, [ebp - 0x20c]
push eax
shl esi, 0x10
push esi
call dword [sym.imp.USER32.dll_GetKeyNameTextW]
push 0xffffffffffffffff
lea eax, [ebp - 0x20c]
push eax
mov ecx, edi
call fcn.0043af60
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004d5ddb
leave
ret 0xc

Function at 0x485713
Capabilities:
Log keystrokes via polling

Disassembly:
sub ecx, 0x6c0
jmp method.DuiLib::CMenuUI.2.virtual_324

Function at 0x485cc1
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x54b3f0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
and dword [ebx + 0x774], 0
mov dword [ebx + 0x24], eax
mov eax, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 0x1c]
mov dword [ebx + 0x28], eax
mov eax, dword [ebp + 8]
mov dword [ebx + 0x2c], ecx
mov ecx, dword [ebp + 0x20]
push edi
mov edi, dword [ebp + 0x18]
mov dword [ebx + 0x770], eax
mov dword [ebx + 0x778], ecx
test eax, eax
jne 0x485d29
call fcn.00485bbf
mov edx, dword [eax]
push edi
mov ecx, eax
call dword [edx + 0xc]
test esi, esi
je 0x485d29
call fcn.00485bbf
mov edx, dword [eax]
push esi
mov ecx, eax
call dword [edx + 0x14]
lea esi, [ebx + 0x10]
call fcn.00485bbf
mov edx, dword [eax]
push esi
mov ecx, eax
call dword [edx]
mov ecx, dword [ebx + 0x770]
test ecx, ecx
jne 0x485d46
mov ecx, edi
jmp 0x485d4d
mov eax, dword [ecx]
call dword [eax + 0x1c]
mov ecx, eax
call fcn.0043b987
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x18], eax
call fcn.0043a82b
push 0
sub esp, 0x10
mov edi, esp
mov esi, eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 0x88
push 0x80000000
movsd dword es:[edi], dword [esi]
push 0
push dword [ebp - 0x18]
mov ecx, ebx
movsd dword es:[edi], dword [esi]
call fcn.0044342d
mov edi, dword [ebx + 4]
mov esi, dword [sym.imp.USER32.dll_GetParent]
jmp 0x485d90
push edi
call esi
mov edi, eax
push edi
call esi
test eax, eax
jne 0x485d8b
push 5
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 1
push 0x86
push edi
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004d5ddb
leave
ret 0x1c
Function at 0x4883dc
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x298
mov eax, dword [0x54b3f0]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x294]
push eax
push 0x202
call sub.WS2_32.dll_WSAStartup
test eax, eax
je 0x488408
xor eax, eax
jmp 0x488487
push 0xfe
lea eax, [ebp - 0x103]
push 0
push eax
mov byte [ebp - 0x104], 0
call fcn.004d92e0
add esp, 0xc
push 0xff
lea eax, [ebp - 0x104]
push eax
call sub.WS2_32.dll_gethostname
lea eax, [ebp - 0x104]
push eax
call sub.WS2_32.dll_gethostbyname
test eax, eax
je 0x488404
mov eax, dword [eax + 0xc]
push 4
push dword [eax]
lea eax, [ebp - 0x298]
push eax
call fcn.004d9410
movzx eax, byte [ebp - 0x298]
movzx ecx, byte [ebp - 0x297]
shl eax, 8
add eax, ecx
movzx ecx, byte [ebp - 0x296]
shl eax, 8
add eax, ecx
movzx ecx, byte [ebp - 0x295]
shl eax, 8
add esp, 0xc
add eax, ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d5ddb
leave
ret

Function at 0x489e2d
Capabilities:
Hide graphical window

Disassembly:
push 0x9c
mov eax, 0x50201a
call fcn.004da01f
mov eax, dword [ebp + 8]
mov ebx, ecx
xor esi, esi
mov dword [ebx + 0x10], eax
mov dword [eax + 0x598], esi
cmp dword [ebx + 4], esi
jne 0x489eb9
lea eax, [ebp - 0xa8]
push eax
call fcn.00489b2c
mov ecx, dword [ebx + 0x10]
mov eax, dword [ecx]
push esi
sub esp, 0x10
mov edi, esp
lea esi, [ebp - 0xa8]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 0
movsd dword es:[edi], dword [esi]
push 0x40000000
push 0
movsd dword es:[edi], dword [esi]
call dword [eax + 0x1c]
mov ecx, eax
call fcn.0043b987
push eax
mov ecx, ebx
call fcn.0044342d
mov esi, dword [ebx + 0x10]
mov ecx, esi
call fcn.0043c378
push eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x1c]
mov ecx, eax
call fcn.0043cb1b
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push 1
push dword [eax]
push 0x30
push dword [ebx + 4]
call esi
jmp 0x489ebf
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [ebx + 0x10]
mov eax, dword [ecx]
lea edx, [ebp - 0x94]
push edx
call dword [eax + 0x28]
and dword [ebp - 4], 0
mov ecx, eax
call fcn.0043ac70
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
mov byte [ebp - 0x95], al
call fcn.0043ab42
cmp byte [ebp - 0x95], 0
mov edi, 0x588
je 0x489f08
mov eax, dword [ebx + 0x10]
add eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov ecx, dword [ebx + 0x10]
call fcn.00489c65
test al, al
je 0x489f1b
push str.yyyy_MM_dd_HH:mm:ss
jmp 0x489f20
push str.yyyy_MM_dd
push 0
push 0x1032
push dword [ebx + 4]
call esi
mov eax, dword [ebx + 0x10]
add eax, edi
push 0x10
push eax
lea eax, [ebx + 0x1a]
push eax
call fcn.004d9410
mov eax, dword [ebx + 0x10]
add esp, 0xc
add eax, edi
push eax
push 0
push 0x1002
push dword [ebx + 4]
call esi
push 4
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_SetFocus]
mov byte [ebx + 0x18], 1
call fcn.004da0a2
ret 4
Function at 0x490560
Capabilities:
Get common file path

Disassembly:
push ecx
push ebp
push esi
push 0x518c38
xor ebp, ebp
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, eax
test esi, esi
jne 0x49057a
pop esi
pop ebp
pop ecx
ret
push ebx
push edi
push str.LoadLibraryExA
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, dword [esp + 0x18]
mov edi, eax
push 0x518c24
push ebx
mov dword [esp + 0x18], edi
call fcn.004ddbe0
add esp, 8
test eax, eax
je 0x4905c6
test edi, edi
je 0x4905b7
push 8
push 0
push ebx
call edi
pop edi
pop ebx
pop esi
mov ebp, eax
pop ebp
pop ecx
ret
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
pop edi
pop ebx
pop esi
mov ebp, eax
pop ebp
pop ecx
ret
test edi, edi
je 0x4905ec
push str.AddDllDirectory
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4905ec
push 0x800
push 0
push ebx
call edi
pop edi
pop ebx
pop esi
mov ebp, eax
pop ebp
pop ecx
ret
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edi, eax
test edi, edi
je 0x4906a0
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x490605
sub eax, edx
lea eax, [eax + edi + 1]
push eax
call dword [0x54ae68]
mov esi, eax
add esp, 4
test esi, esi
je 0x490696
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x490696
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x490633
sub eax, edx
mov ecx, 0x5c
mov word [eax + esi], cx
mov eax, esi
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x490650
sub eax, edx
lea edx, [eax + esi]
mov ecx, ebx
sub edx, ebx
mov al, byte [ecx]
mov byte [edx + ecx], al
inc ecx
test al, al
jne 0x490660
mov eax, dword [esp + 0x10]
test eax, eax
je 0x49068d
push 8
push 0
push esi
call eax
push esi
mov ebp, eax
call dword [0x54ae6c]
add esp, 4
pop edi
pop ebx
pop esi
mov eax, ebp
pop ebp
pop ecx
ret
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebp, eax
push esi
call dword [0x54ae6c]
add esp, 4
pop edi
pop ebx
pop esi
mov eax, ebp
pop ebp
pop ecx
ret

Function at 0x4906b0
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
test byte [esp + 0x194], 2
je 0x4906f3
lea eax, [esp]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x4906e7
mov eax, dword [esp]
cmp al, 2
jne 0x4906e1
shr eax, 8
cmp al, 2
je 0x4906f3
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 2
add esp, 0x190
ret
call fcn.004a4d70
test eax, eax
jne 0x49074f
push str.iphlpapi.dll
call fcn.00490560
add esp, 4
mov dword [0x54efc8], eax
test eax, eax
je 0x490727
push str.if_nametoindex
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x490727
mov dword [0x54efcc], eax
push 3
push 2
push 0
push 6
call fcn.004a4f40
add esp, 0x10
neg eax
sbb eax, eax
neg eax
push 0x551148
mov dword [0x551150], eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
xor eax, eax
add esp, 0x190
ret