joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403680
Capabilities:
Read .ini file

Disassembly:
sub esp, 8
push ebx
push esi
xor eax, eax
push 0x406aec
lea ecx, [esp + 0xc]
push 8
mov dword [esp + 0x11], eax
push ecx
push 0x4065a0
mov word [esp + 0x1d], ax
push str.Uninst
push str.ICGAUTHCLIENT
mov byte [esp + 0x20], 0
mov byte [esp + 0x27], al
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov esi, 0x4065a0
lea eax, [esp + 8]
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x4036eb
test cl, cl
je 0x4036e7
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x4036eb
add eax, 2
add esi, 2
test cl, cl
jne 0x4036c3
xor eax, eax
jmp 0x4036f0
sbb eax, eax
sbb eax, 0xffffffff
pop esi
pop ebx
test eax, eax
jne 0x403709
push str.UninstallRunState:0
call fcn.00403e50
add esp, 4
xor eax, eax
add esp, 8
ret
push str.UninstallRunState:1
call fcn.00403e50
add esp, 4
mov eax, 1
add esp, 8
ret

Function at 0x403720
Capabilities:
Read .ini file

Disassembly:
sub esp, 8
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
xor eax, eax
push 0x4069e8
lea ecx, [esp + 0x10]
push 8
mov dword [esp + 0x15], eax
push ecx
push 0x4065a0
mov word [esp + 0x21], ax
push str.UpdateState
push str.ICGAUTHCLIENT
mov byte [esp + 0x24], 0
mov byte [esp + 0x2b], al
call edi
mov esi, 0x40657c
lea eax, [esp + 0xc]
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x40378e
test cl, cl
je 0x40378a
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x40378e
add eax, 2
add esi, 2
test cl, cl
jne 0x403766
xor eax, eax
jmp 0x403793
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x403806
push str.UpdateState:1
call fcn.00403e50
add esp, 4
push 0x4069e8
push 0x80
push 0x406bf0
push str.http:__211.100.26.34:44565_
push str.UpdateUrl
push str.ICGAUTHCLIENT
call edi
mov al, byte [0x406bf0]
test al, al
jne 0x4037e3
push str.Get_UpdateUrl_Failed
call fcn.00403e50
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 8
ret
push str.Update_URL:
call fcn.00403e50
push 0x406bf0
call fcn.00403e50
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebx
add esp, 8
ret
push str.UpdateState:0
call fcn.00403e50
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 8
ret
Function at 0x403890
Capabilities:
Create http request
Download and write a file
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
sub esp, 0x410
push ebp
push esi
xor esi, esi
mov dword [esp + 0xc], 1
push esi
push esi
push esi
push esi
push str.RookIE_1.0
call dword [sym.imp.WININET.dll_InternetOpenA]
mov ebp, eax
cmp ebp, esi
mov dword [esp + 0x10], ebp
je 0x4039cf
mov eax, dword [esp + 0x41c]
push ebx
push esi
push 2
push esi
push esi
push eax
push ebp
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp ebx, esi
je 0x4039ab
push edi
mov ecx, 0x100
xor eax, eax
lea edi, [esp + 0x1d]
mov byte [esp + 0x1c], 0
push 0x4066b0
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x42c]
mov dword [esp + 0x14], 1
push ecx
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x403986
mov eax, dword [esp + 0x10]
test eax, eax
jbe 0x40395f
mov edi, dword [sym.imp.WININET.dll_InternetReadFile]
mov ebp, dword [sym.imp.MSVCRT.dll_fwrite]
lea edx, [esp + 0x10]
lea eax, [esp + 0x1c]
push edx
push 0x400
push eax
push ebx
call edi
mov ecx, dword [esp + 0x10]
push esi
push ecx
lea edx, [esp + 0x24]
push 1
push edx
call ebp
mov eax, dword [esp + 0x20]
add esp, 0x10
test eax, eax
ja 0x40392f
mov ebp, dword [esp + 0x18]
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
push ebx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
pop edi
push ebp
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [esp + 0x10]
pop ebx
pop esi
pop ebp
add esp, 0x410
ret
push ebx
mov dword [esp + 0x18], 0
call dword [sym.imp.WININET.dll_InternetCloseHandle]
pop edi
push ebp
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [esp + 0x10]
pop ebx
pop esi
pop ebp
add esp, 0x410
ret
push str.InternetOpenUrl_Failed_
mov dword [esp + 0x14], esi
call fcn.00403e50
add esp, 4
push ebp
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, esi
pop ebx
pop esi
pop ebp
add esp, 0x410
ret
push str.InternetOpen_Failed_
call fcn.00403e50
add esp, 4
mov eax, esi
pop esi
pop ebp
add esp, 0x410
ret
Function at 0x403d20
Capabilities:
Check os version

Disassembly:
sub esp, 0x9c
lea eax, [esp]
push esi
push eax
xor esi, esi
mov dword [esp + 8], 0x9c
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x403e32
mov eax, dword [esp + 0x14]
dec eax
je 0x403dfd
dec eax
jne 0x403e24
mov eax, dword [esp + 8]
sub eax, 4
je 0x403dea
dec eax
je 0x403da2
dec eax
jne 0x403e24
mov eax, dword [esp + 0xc]
sub eax, esi
je 0x403d8f
dec eax
jne 0x403e24
mov esi, 7
mov dword [0x4069e4], esi
pop esi
add esp, 0x9c
ret
mov esi, 6
mov dword [0x4069e4], esi
pop esi
add esp, 0x9c
ret
mov eax, dword [esp + 0xc]
sub eax, 0
je 0x403dd7
dec eax
je 0x403dc4
dec eax
jne 0x403e24
mov esi, 5
mov dword [0x4069e4], esi
pop esi
add esp, 0x9c
ret
mov esi, 4
mov dword [0x4069e4], esi
pop esi
add esp, 0x9c
ret
mov esi, 3
mov dword [0x4069e4], esi
pop esi
add esp, 0x9c
ret
mov esi, 2
mov dword [0x4069e4], esi
pop esi
add esp, 0x9c
ret
mov eax, dword [esp + 8]
test eax, eax
je 0x403e22
cmp eax, 0xa
je 0x403e0f
cmp eax, 0x5a
jne 0x403e24
mov esi, 1
mov dword [0x4069e4], esi
pop esi
add esp, 0x9c
ret
xor esi, esi
mov dword [0x4069e4], esi
pop esi
add esp, 0x9c
ret
push 0x406708
call fcn.00403e50
add esp, 4
pop esi
add esp, 0x9c
ret

Function at 0x403eb0
Capabilities:
Check if file exists

Disassembly:
sub esp, 0x408
push esi
push edi
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x11]
mov byte [esp + 0x10], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, 0x4068e0
or ecx, 0xffffffff
xor eax, eax
mov dword [esp + 8], 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, 0x406c74
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.00403e70
test eax, eax
mov edi, str.FMonDrv_x64.sys
jne 0x403f0d
mov edi, str.FMonDrv.sys
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, 0x406c74
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0xc]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0xc]
push ecx
push 0x406c74
push str.FMonDev
call fcn.00401160
add esp, 0x10
test eax, eax
jne 0x403f97
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 2
jne 0x403f74
push 0x406764
push 0xc00003eb
call fcn.00401f60
add esp, 8
push esi
lea edx, [esp + 0x14]
push str.ERROR::
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
lea eax, [esp + 0x1c]
push eax
push 0xc00003eb
call fcn.00401f60
add esp, 0x14
pop edi
pop esi
add esp, 0x408
ret
Function at 0x404150
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4051b0
push 0x404288
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
and dword [ebp - 4], 0
push 1
call dword [sym.imp.MSVCRT.dll___set_app_type]
pop ecx
or dword [0x406d9c], 0xffffffff
or dword [0x406da0], 0xffffffff
call dword [sym.imp.MSVCRT.dll___p__fmode]
mov ecx, dword [0x406d94]
mov dword [eax], ecx
call dword [sym.imp.MSVCRT.dll___p__commode]
mov ecx, dword [0x406d90]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCRT.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x406d98], eax
call fcn.00404287
cmp dword [0x4067c0], 0
jne 0x4041d3
push 0x404284
call dword [sym.imp.MSVCRT.dll___setusermatherr]
pop ecx
call fcn.00404272
push 0x406028
push 0x406024
call sub.MSVCRT.dll__initterm
mov eax, dword [0x406d8c]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push dword [0x406d88]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.MSVCRT.dll___getmainargs]
push 0x406020
push section..data
call sub.MSVCRT.dll__initterm
call dword [sym.imp.MSVCRT.dll___p___initenv]
mov ecx, dword [ebp - 0x20]
mov dword [eax], ecx
push dword [ebp - 0x20]
push dword [ebp - 0x2c]
push dword [ebp - 0x1c]
call fcn.00402410
add esp, 0x30
mov dword [ebp - 0x24], eax
push eax
call dword [sym.imp.MSVCRT.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x30], ecx
push eax
push ecx
call sub.MSVCRT.dll__XcptFilter
pop ecx
pop ecx
ret
Function at 0x4012f0
Capabilities:
Contain obfuscated stackstrings
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x84
push ebx
push esi
mov esi, eax
xor edx, edx
cmp byte [esi], 0x30
mov byte [esp + 0xc], 0x30
mov dword [esp + 0x10], 0
mov byte [esp + 0x14], 0x31
mov dword [esp + 0x18], 1
mov byte [esp + 0x1c], 0x32
mov dword [esp + 0x20], 2
mov byte [esp + 0x24], 0x33
mov dword [esp + 0x28], 3
mov byte [esp + 0x2c], 0x34
mov dword [esp + 0x30], 4
mov byte [esp + 0x34], 0x35
mov dword [esp + 0x38], 5
mov byte [esp + 0x3c], 0x36
mov dword [esp + 0x40], 6
mov byte [esp + 0x44], 0x37
mov dword [esp + 0x48], 7
mov byte [esp + 0x4c], 0x38
mov dword [esp + 0x50], 8
mov byte [esp + 0x54], 0x39
mov dword [esp + 0x58], 9
mov byte [esp + 0x5c], 0x41
mov dword [esp + 0x60], 0xa
mov byte [esp + 0x64], 0x42
mov dword [esp + 0x68], 0xb
mov byte [esp + 0x6c], 0x43
mov dword [esp + 0x70], 0xc
mov byte [esp + 0x74], 0x44
mov dword [esp + 0x78], 0xd
mov byte [esp + 0x7c], 0x45
mov dword [esp + 0x80], 0xe
mov byte [esp + 0x84], 0x46
mov dword [esp + 0x88], 0xf
jne 0x4013e3
cmp byte [esi + 1], 0x58
jne 0x4013e3
add esi, 2
mov cl, byte [esi]
test cl, cl
mov bl, 1
je 0x401419
jmp 0x4013f0
xor eax, eax
cmp cl, byte [esp + eax*8 + 0xc]
je 0x401402
add eax, 1
cmp eax, 0x10
jl 0x4013f2
jmp 0x401419
test bl, bl
jne 0x401409
shl edx, 4
mov cl, byte [esi + 1]
or edx, dword [esp + eax*8 + 0x10]
add esi, 1
xor bl, bl
test cl, cl
jne 0x4013f0
shl edx, 8
add edx, 0xff
mov eax, edx
shl eax, 0x10
mov ecx, edx
and ecx, 0xff00
add eax, ecx
xor ecx, ecx
mov dword [esp + 8], edx
mov ch, byte [esp + 0xa]
shl eax, 8
shr edx, 0x18
pop esi
pop ebx
add eax, ecx
add eax, edx
add esp, 0x84
ret
Function at 0x401620
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
jmp 0x401632
mov eax, dword [0x55c08b]
shl eax, 2
mov dword [0x55c08f], eax
push edx
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov edx, eax
call fcn.0054b9d0
pop edx
call fcn.0054b934
call fcn.0054ba10
push 0
call fcn.0054cec0
pop ecx
push 0x55c034
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov dword [0x55c093], eax
push 0
jmp fcn.00553574

Function at 0x416c04
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeb8
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, 0x566950
call fcn.0054c220
mov dword [ebp - 0xc], 1
lea edx, [ebp - 4]
lea eax, [ebp - 4]
call fcn.00557d90
inc dword [ebp - 0xc]
mov word [ebp - 0x18], 8
mov eax, dword [ebp - 4]
call fcn.004c36a0
test al, al
jne 0x416c67
mov al, 1
push eax
dec dword [ebp - 0xc]
lea eax, [ebp - 4]
mov edx, 2
call fcn.00557eb8
pop eax
mov edx, dword [ebp - 0x28]
mov dword fs:[0], edx
jmp 0x416d23
mov word [ebp - 0x18], 0x14
push 0x1e
push 0
lea ecx, [ebp - 0x148]
push ecx
call fcn.0054be80
add esp, 0xc
push 0x100
push 0
lea eax, [ebp - 0x128]
push eax
call fcn.0054be80
add esp, 0xc
cmp dword [ebp - 4], 0
je 0x416ca4
mov edx, dword [ebp - 4]
mov ecx, dword [edx - 4]
jmp 0x416ca6
xor ecx, ecx
push ecx
cmp dword [ebp - 4], 0
je 0x416cb2
mov eax, dword [ebp - 4]
jmp 0x416cb7
mov eax, 0x566238
push eax
lea edx, [ebp - 0x128]
push edx
call fcn.0054be10
add esp, 0xc
mov dword [ebp - 0x144], 3
lea ecx, [ebp - 0x128]
mov dword [ebp - 0x140], ecx
mov word [ebp - 0x138], 0x10
lea eax, [ebp - 0x148]
push eax
call sub.SHELL32.DLL_SHFileOperationA
mov word [ebp - 0x18], 8
jmp 0x416d05
mov al, 1
push eax
dec dword [ebp - 0xc]
lea eax, [ebp - 4]
mov edx, 2
call fcn.00557eb8
pop eax
mov edx, dword [ebp - 0x28]
mov dword fs:[0], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x44e5dc
Capabilities:
Inspect section memory permissions

Disassembly:
push ebx
push esi
add esp, 0xffffffac
mov ebx, eax
mov si, word [0x44e6f8]
mov eax, dword [ebx + 4]
call fcn.00528f0c
test al, al
je 0x44e6ee
cmp byte [ebx + 8], 0
je 0x44e6ee
mov edx, esp
mov eax, ebx
call sym.BaifenYJ.exe__Rxriched_TRxTextAttributes_InitFormat_qqrr12CHARFORMAT2A
mov eax, esp
push eax
xor eax, eax
mov al, byte [ebx + 8]
movzx eax, word [eax*2 + 0x579034]
push eax
push 0x43a
mov eax, dword [ebx + 4]
call fcn.00528c08
push eax
call sub.USER32.DLL_SendMessageA
mov ebx, dword [esp + 4]
test bl, 1
je 0x44e63e
or si, 1
test ebx, 0x40000000
je 0x44e64a
or si, 2
test ebx, 0x20000000
je 0x44e656
or si, 4
test bl, 2
je 0x44e65f
or si, 8
test ebx, 0x80000000
je 0x44e66b
or si, 0x10
test bl, 8
je 0x44e674
or si, 0x20
test bl, 4
je 0x44e67d
or si, 0x40
test bl, 0x10
je 0x44e687
or si, 0x80
test ebx, 0x10000000
je 0x44e694
or si, 0x100
test bh, 1
je 0x44e69e
or si, 0x200
cmp byte [sym.BaifenYJ.exe__Rxriched_RichEditVersion], 2
jb 0x44e6ee
test bl, 0x20
je 0x44e6b1
or si, 0x400
test ebx, 0x4000000
je 0x44e6be
or si, 0x800
test bh, 0x20
je 0x44e6c8
or si, 0x1000
test ebx, 0x400000
je 0x44e6d5
or si, 0x2000
test ebx, 0x30000
je 0x44e6e2
or si, 0x4000
test byte [esp + 5], 0x80
je 0x44e6ee
or si, 0x8000
mov eax, esi
add esp, 0x54
pop esi
pop ebx
ret
Function at 0x44ee10
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff6c
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x94], ecx
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x44ef92
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x90]
mov eax, esi
call sym.BaifenYJ.exe__Rxriched_TRxTextAttributes_InitFormat_qqrr12CHARFORMAT2A
mov eax, ebx
call fcn.00502614
dec al
je 0x44ee54
dec al
je 0x44ee5a
jmp 0x44ee60
mov byte [ebp - 0x77], 2
jmp 0x44ee64
mov byte [ebp - 0x77], 1
jmp 0x44ee64
mov byte [ebp - 0x77], 0
mov eax, dword [ebp - 0x8c]
or eax, 0x80000000
or eax, 1
or eax, 2
or eax, 4
or eax, 8
or eax, 0x20000000
or eax, 0x40000000
mov dword [ebp - 0x8c], eax
mov eax, ebx
call fcn.005025a0
shl eax, 2
lea eax, [eax + eax*4]
mov dword [ebp - 0x84], eax
mov eax, ebx
call fcn.005025dc
test al, 1
je 0x44eeb0
or dword [ebp - 0x88], 1
mov eax, ebx
call fcn.005025dc
test al, 2
je 0x44eec2
or dword [ebp - 0x88], 2
mov eax, ebx
call fcn.005025dc
test al, 4
je 0x44eed4
or dword [ebp - 0x88], 4
mov eax, ebx
call fcn.005025dc
test al, 8
je 0x44eee6
or dword [ebp - 0x88], 8
lea edx, [ebp - 0x94]
mov eax, ebx
call fcn.0050252c
mov edx, dword [ebp - 0x94]
lea eax, [ebp - 0x76]
mov ecx, 0x20
call fcn.004c3998
mov edi, dword [ebx + 0x18]
cmp edi, reloc.OLEAUT32.DLL_VariantClear
je 0x44ef19
cmp edi, 0x20000000
jne 0x44ef25
mov dword [ebp - 0x88], 0x40000000
jmp 0x44ef2f
mov eax, edi
call fcn.00501e5c
mov dword [ebp - 0x7c], eax
or dword [ebp - 0x8c], 0x8000000
mov eax, ebx
call fcn.00502644
mov byte [ebp - 0x78], al
lea eax, [ebp - 0x3c]
push eax
push 0x3c
mov eax, ebx
call fcn.00502330
push eax
call sub.GDI32.DLL_GetObjectA
test eax, eax
je 0x44ef6c
or dword [ebp - 0x8c], 0x400000
mov ax, word [ebp - 0x2c]
mov word [ebp - 0x56], ax
lea edx, [ebp - 0x90]
mov eax, esi
call sym.BaifenYJ.exe__Rxriched_TRxTextAttributes_SetAttributes_qqrr12CHARFORMAT2A
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44ef99
lea eax, [ebp - 0x94]
call fcn.004d74b8
ret
Function at 0x455914
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, 0x585aa8
sub dword [0x585a90], 1
jae 0x455a23
mov eax, 0x455894
call fcn.004d71ec
mov byte [sym.BaifenYJ.exe__Rxriched_RichEditVersion], 1
push 0x8000
call sub.KERNEL32.DLL_SetErrorMode
mov dword [0x585aa4], eax
xor eax, eax
push ebp
push 0x4559e0
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x455a28
call sub.KERNEL32.DLL_LoadLibraryA
mov dword [ebx], eax
cmp dword [ebx], 0
jbe 0x455972
cmp dword [ebx], 0x20
jae 0x455972
xor eax, eax
mov dword [ebx], eax
cmp dword [ebx], 0
jne 0x455993
push 0x455a38
call sub.KERNEL32.DLL_LoadLibraryA
mov dword [ebx], eax
cmp dword [ebx], 0
jbe 0x4559c7
cmp dword [ebx], 0x20
jae 0x4559c7
xor eax, eax
mov dword [ebx], eax
jmp 0x4559c7
mov byte [sym.BaifenYJ.exe__Rxriched_RichEditVersion], 2
mov dword [0x585aac], 0x94
push 0x585aac
call sub.KERNEL32.DLL_GetVersionExA
cmp dword [0x585abc], 2
jne 0x4559c7
cmp dword [0x585ab0], 5
jb 0x4559c7
mov byte [sym.BaifenYJ.exe__Rxriched_RichEditVersion], 3
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4559e7
mov eax, dword [0x585aa4]
push eax
call sub.KERNEL32.DLL_SetErrorMode
ret
pop ebx
pop ebp
ret

Function at 0x45793c
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
mov esi, eax
call sub.KERNEL32.DLL_GetTickCount
mov ebx, eax
mov eax, dword [0x58575c]
mov eax, dword [eax]
call fcn.00515f18
call sub.KERNEL32.DLL_GetTickCount
mov edx, eax
sub edx, ebx
cmp esi, edx
jle 0x457964
cmp ebx, eax
jle 0x457947
pop esi
pop ebx
ret

Function at 0x4586f4
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff7fc
push ebx
push esi
mov ebx, edx
mov esi, eax
push 0x800
lea eax, [ebp - 0x801]
push eax
mov eax, esi
call fcn.004d7968
push eax
call sub.KERNEL32.DLL_GetEnvironmentVariableA
test eax, eax
jbe 0x45872f
mov edx, ebx
lea eax, [ebp - 0x801]
call fcn.004c3ad4
jmp 0x458736
mov eax, ebx
call fcn.004d74b8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x458a8c
Capabilities:
Extract resource via kernel32 functions
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x21c], ecx
mov esi, eax
xor eax, eax
push ebp
push 0x458c43
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 4], eax
push 0x15
push edx
push esi
call sub.KERNEL32.DLL_FindResourceA
mov ebx, eax
test ebx, ebx
je 0x458c2a
lea eax, [ebp - 0x111]
push eax
push 0x104
call sub.KERNEL32.DLL_GetTempPathA
test eax, eax
setne al
neg al
sbb eax, eax
call fcn.004c84cc
lea eax, [ebp - 0x216]
push eax
push 0
push 0x458c54
lea eax, [ebp - 0x111]
push eax
call sub.KERNEL32.DLL_GetTempFileNameA
test eax, eax
setne al
neg al
sbb eax, eax
call fcn.004c84cc
xor eax, eax
push ebp
push 0x458c23
push dword fs:[eax]
mov dword fs:[eax], esp
push ebx
push esi
call sub.KERNEL32.DLL_LoadResource
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x458c02
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.DLL_LockResource
mov edi, eax
test edi, edi
je 0x458beb
xor eax, eax
push ebp
push 0x458be4
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xffff
lea edx, [ebp - 0x21c]
lea eax, [ebp - 0x216]
call fcn.004c3ad4
mov ecx, dword [ebp - 0x21c]
mov dl, 1
mov eax, dword [0x4b23f8]
call fcn.004b6dc0
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x458bb8
push dword fs:[eax]
mov dword fs:[eax], esp
push ebx
push esi
call sub.KERNEL32.DLL_SizeofResource
mov ecx, eax
mov edx, edi
mov eax, dword [ebp - 8]
call fcn.004b6b08
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x458bbf
mov eax, dword [ebp - 8]
call fcn.004d66a8
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x458c09
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.DLL_FreeResource
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x458c4a
lea eax, [ebp - 0x21c]
call fcn.004d74b8
ret
Function at 0x4593d8
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff38
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0xa0], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x459515
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x9c], 0x94
lea eax, [ebp - 0x9c]
push eax
call sub.KERNEL32.DLL_GetVersionExA
mov eax, dword [ebp - 0x8c]
sub eax, 1
jb 0x459424
je 0x45942d
dec eax
je 0x45946c
jmp 0x459477
mov dword [ebp - 5], 0x73323303
jmp 0x459477
and dword [ebp - 0x90], 0xffff
cmp dword [ebp - 0x98], 4
ja 0x459452
cmp dword [ebp - 0x98], 4
jne 0x45945f
cmp dword [ebp - 0x94], 0xa
jb 0x45945f
mov esi, 0x459524
lea edi, [ebp - 5]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
jmp 0x459477
mov esi, 0x459528
lea edi, [ebp - 5]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
jmp 0x459477
mov esi, 0x45952c
lea edi, [ebp - 5]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea eax, [ebp - 0xa0]
push eax
lea eax, [ebp - 5]
mov dword [ebp - 0xc8], eax
mov byte [ebp - 0xc4], 4
mov eax, dword [ebp - 0x98]
mov dword [ebp - 0xc0], eax
mov byte [ebp - 0xbc], 0
mov eax, dword [ebp - 0x94]
mov dword [ebp - 0xb8], eax
mov byte [ebp - 0xb4], 0
mov eax, dword [ebp - 0x90]
mov dword [ebp - 0xb0], eax
mov byte [ebp - 0xac], 0
lea eax, [ebp - 0x88]
mov dword [ebp - 0xa8], eax
mov byte [ebp - 0xa4], 6
lea edx, [ebp - 0xc8]
mov ecx, 4
mov eax, 0x459538
call fcn.004c4050
mov eax, dword [ebp - 0xa0]
mov edx, ebx
call fcn.004c2d80
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45951c
lea eax, [ebp - 0xa0]
call fcn.004d74b8
ret

Function at 0x45c19c
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov byte [ebp - 1], 1
lea eax, [ebp - 0xc]
push eax
push 0x5800c4
push 1
push 0
push 0x5800d4
call sub.OLE32.DLL_CoCreateInstance
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jl 0x45c221
push dword [ebp + 8]
mov edx, dword [ebp - 0xc]
push edx
mov ecx, dword [edx]
call dword [ecx + 0x50]
lea eax, [ebp - 0x10]
push eax
push 0x5800f4
mov edx, dword [ebp - 0xc]
push edx
mov ecx, dword [edx]
call dword [ecx]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jl 0x45c212
push 1
push dword [ebp + 0xc]
mov eax, dword [ebp - 0x10]
push eax
mov edx, dword [eax]
call dword [edx + 0x18]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jge 0x45c207
mov byte [ebp - 1], 0
mov ecx, dword [ebp - 0x10]
push ecx
mov eax, dword [ecx]
call dword [eax + 8]
jmp 0x45c216
mov byte [ebp - 1], 0
mov edx, dword [ebp - 0xc]
push edx
mov ecx, dword [edx]
call dword [ecx + 8]
jmp 0x45c225
mov byte [ebp - 1], 0
mov al, byte [ebp - 1]
mov esp, ebp
pop ebp
ret
Function at 0x4aaf74
Capabilities:
Check os version

Disassembly:
add esp, 0xffffff6c
mov dword [esp], 0x94
push esp
call sub.KERNEL32.DLL_GetVersionExA
cmp dword [esp + 0x10], 2
jne 0x4aaf99
cmp dword [esp + 4], 5
jb 0x4aaf99
mov al, 1
jmp 0x4aaf9b
xor eax, eax
add esp, 0x94
ret

Function at 0x4ad3f4
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
xor eax, eax
mov dword [ebp - 0x1c], eax
xor eax, eax
push ebp
push 0x4ad47d
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x585c84
push 0x101
call sub.WSOCK32.DLL_WSAStartup
mov ebx, eax
test ebx, ebx
je 0x4ad467
lea edx, [ebp - 0x1c]
mov eax, ebx
call fcn.004c6764
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x14], 0xb
mov dword [ebp - 0x10], ebx
mov byte [ebp - 0xc], 0
mov eax, 0x4ad494
mov dword [ebp - 8], eax
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0x18]
push eax
push 2
mov ecx, dword [0x5854d0]
mov dl, 1
mov eax, dword [0x4acb18]
call fcn.004c70b4
call fcn.004d6f38
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ad484
lea eax, [ebp - 0x1c]
call fcn.004d74b8
ret