joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49d1a5
Capabilities:
Check os version

Disassembly:
push 0x34c
mov eax, 0x5dfca4
call fcn.00447fd9
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x330]
xor ebx, ebx
mov dword [ebp - 0x358], esi
push 0x118
push ebx
mov dword [ebp - 0x350], ebx
push eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0x334], 0x11c
call fcn.004a2e40
add esp, 0xc
lea eax, [ebp - 0x334]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
push 0x64a7dc
mov ecx, esi
call fcn.00401d40
mov eax, dword [ebp - 0x330]
mov dword [ebp - 0x34c], eax
movzx eax, byte [ebp - 0x21a]
mov dword [ebp - 0x354], eax
mov eax, dword [ebp - 0x328]
mov dword [ebp - 0x338], eax
mov eax, dword [ebp - 0x32c]
push str.ntdll.dll
mov dword [ebp - 4], ebx
mov dword [ebp - 0x350], 1
mov dword [ebp - 0x340], ebx
mov dword [ebp - 0x344], ebx
mov dword [ebp - 0x33c], ebx
mov dword [ebp - 0x348], eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
test edi, edi
je 0x49d29c
push str.RtlGetNtVersionNumbers
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x49d295
lea ecx, [ebp - 0x33c]
push ecx
lea ecx, [ebp - 0x344]
push ecx
lea ecx, [ebp - 0x340]
push ecx
call eax
movzx eax, word [ebp - 0x33c]
mov dword [ebp - 0x33c], eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 0x34c]
cmp eax, 5
jne 0x49d2ce
mov eax, dword [ebp - 0x348]
test eax, eax
je 0x49d39a
cmp eax, 1
jne 0x49d2c4
mov edi, str.WindowsXP
jmp 0x49d38a
mov edi, str.WindowsServer2003
jmp 0x49d38a
cmp eax, 6
jne 0x49d39a
mov eax, dword [ebp - 0x348]
sub eax, ebx
je 0x49d377
sub eax, 1
je 0x49d370
mov edi, dword [ebp - 0x338]
sub eax, 1
jne 0x49d3a0
cmp edi, 0x1ebb
jne 0x49d30c
mov edi, str.Windows8
jmp 0x49d38a
lea eax, [edi - 0x1ee6]
cmp eax, 0x25
jbe 0x49d305
cmp edi, 0x1f13
je 0x49d305
cmp dword [ebp - 0x340], 0xa
jne 0x49d344
cmp dword [ebp - 0x344], 0
jne 0x49d3a0
push str.Windows10
call fcn.004a6baf
pop ecx
push eax
push str.Windows10
jmp 0x49d367
cmp dword [ebp - 0x340], 6
jne 0x49d3a0
cmp dword [ebp - 0x344], 3
jne 0x49d3a0
push str.Windows8.1
call fcn.004a6baf
pop ecx
push eax
push str.Windows8.1
mov ecx, esi
call fcn.00401ea0
jmp 0x49d3a0
mov edi, str.Windows7
jmp 0x49d38a
cmp dword [ebp - 0x354], 1
mov edi, str.WindowsVista
je 0x49d38a
mov edi, str.WindowsServer2008
push edi
call fcn.004a6baf
pop ecx
push eax
push edi
mov ecx, esi
call fcn.00401ea0
mov edi, dword [ebp - 0x338]
push 0x64a7dc
mov ecx, esi
call fcn.00421654
test eax, eax
jne 0x49d40e
push 0x208
lea eax, [ebp - 0x218]
push ebx
push eax
call fcn.004a2e40
mov eax, dword [ebp - 0x34c]
push edi
push dword [ebp - 0x348]
push eax
lea eax, [ebp - 0x218]
push str.Windows_d._d._d
push eax
call fcn.00405710
add esp, 0x20
cmp word [ebp - 0x218], 0
jne 0x49d3f2
mov eax, ebx
jmp 0x49d3ff
lea eax, [ebp - 0x218]
push eax
call fcn.004a6baf
pop ecx
push eax
lea eax, [ebp - 0x218]
mov ecx, esi
push eax
call fcn.00401ea0
cmp dword [ebp + 0xc], 0
je 0x49d43c
cmp word [ebp - 0x320], 0
je 0x49d42d
lea eax, [ebp - 0x320]
push eax
call fcn.004a6baf
pop ecx
mov ebx, eax
push ebx
lea eax, [ebp - 0x320]
mov ecx, esi
push eax
call fcn.00403b60
mov eax, esi
call fcn.00447f83
ret
Function at 0x49d444
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x6610e4]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x210], 0
lea eax, [ebp - 0x20c]
push esi
mov esi, dword [ebp + 8]
push 0x208
push 0
push eax
call fcn.004a2e40
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
call fcn.00401d40
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00447f5d
mov esp, ebp
pop ebp
ret

Function at 0x49d6f8
Capabilities:
Check if file exists
Copy file
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x620
mov eax, dword [0x6610e4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x61c]
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, 0x208
push esi
push 0
push eax
mov dword [ebp - 0x620], ebx
call fcn.004a2e40
push esi
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.004a2e40
lea eax, [ebp - 0x61c]
push ebx
push eax
call fcn.004a6b8d
lea eax, [ebp - 0x414]
push edi
push eax
call fcn.004a6b8d
lea eax, [ebp - 0x61c]
push eax
call fcn.004b4db2
lea eax, [ebp - 0x414]
push eax
call fcn.004b4db2
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x61c]
push eax
call fcn.004ab16b
add esp, 0x38
test eax, eax
je 0x49d84c
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x49d84c
mov ebx, dword [sym.imp.KERNEL32.dll_MoveFileExW]
xor esi, esi
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.004a2e40
add esp, 0xc
lea eax, [ebp - 0x20c]
test esi, esi
jne 0x49d7d5
push edi
push str._s.bak
push eax
call fcn.00405710
add esp, 0xc
jmp 0x49d7e5
push esi
push edi
push str._s.bak_d
push eax
call fcn.00405710
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x49d803
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x20c]
push eax
push edi
call fcn.004b1242
pop ecx
pop ecx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push edi
push dword [ebp - 0x620]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
push 5
test eax, eax
lea eax, [ebp - 0x20c]
push 0
push eax
jne 0x49d84a
call ebx
cmp esi, 0xa
jge 0x49d84c
inc esi
jmp 0x49d7a4
call ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00447f5d
mov esp, ebp
pop ebp
ret
Function at 0x49dcb1
Capabilities:
Enumerate files on windows

Disassembly:
push 0x67c
mov eax, 0x5dfd35
call fcn.00447fd9
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x420]
mov ebx, dword [ebp + 0xc]
push 0x208
push 0
push eax
call fcn.004a2e40
push edi
lea eax, [ebp - 0x420]
push str._s.
push eax
call fcn.00421690
add esp, 0x18
lea eax, [ebp - 0x688]
push eax
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x49ddf1
lea eax, [ebp - 0x688]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x49ddf1
push 0x2e
pop eax
cmp word [ebp - 0x65c], ax
je 0x49dd0d
cmp word [ebp - 0x65a], 0
je 0x49dd0d
cmp word [ebp - 0x65a], ax
jne 0x49dd4c
cmp word [ebp - 0x658], 0
je 0x49dd0d
test byte [ebp - 0x688], 0x10
je 0x49dd0d
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004a2e40
lea eax, [ebp - 0x65c]
push eax
push edi
lea eax, [ebp - 0x218]
push 0x5e2820
push eax
call fcn.00421690
and dword [ebp - 0x428], 0
xor eax, eax
add esp, 0x1c
mov dword [ebp - 0x424], 7
mov word [ebp - 0x438], ax
cmp word [ebp - 0x218], ax
je 0x49ddb4
lea eax, [ebp - 0x218]
push eax
call fcn.004a6baf
pop ecx
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x438]
call fcn.00401ea0
and dword [ebp - 4], 0
lea eax, [ebp - 0x438]
push eax
mov ecx, ebx
call fcn.0042a543
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x438]
push 0
push 1
call fcn.00401de0
jmp 0x49dd0d
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
call fcn.00447f83
ret
Function at 0x49e35f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [0x671860], 0
mov dword [ebp - 8], ecx
je 0x49e4b2
add ecx, 8
cmp dword [ecx + 0x14], 8
jb 0x49e380
mov ecx, dword [ecx]
push esi
push 0x5f2b44
push ecx
push dword [0x661428]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x49e4b1
push ebx
push edi
push esi
push dword [0x661428]
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push dword [0x661428]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
push esi
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push esi
push edi
push eax
call fcn.004a2340
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea eax, [ebp - 4]
push eax
push 1
push ebx
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
xor esi, esi
push esi
push dword [ebp - 4]
call fcn.0045c3f0
pop ecx
pop ecx
test eax, eax
je 0x49e4af
mov ebx, dword [ebp - 8]
mov ecx, 0x671864
mov dword [ebx + 4], eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.0049e21f
mov eax, dword [ebp - 0xc]
push esi
mov dword [eax + 0x14], ebx
push dword [0x661428]
push esi
push dword [ebp + 8]
push esi
push esi
push esi
push connect
push 0x80880000
push esi
push dword [0x66142c]
push 0x80020
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov esi, dword [sym.imp.USER32.dll_GetWindowLongW]
push 0xfffffffffffffff0
push dword [ebp + 8]
mov dword [ebx + 0x20], eax
call esi
test eax, 0x10000000
jne 0x49e46f
mov byte [ebx + 0x28], 1
jmp 0x49e495
test eax, 0x21000000
je 0x49e47c
mov byte [ebx + 0x28], 5
jmp 0x49e495
push 8
push dword [ebx + 0x20]
mov byte [ebx + 0x28], 7
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [ebp + 8]
mov ecx, ebx
call fcn.0049ee0a
push 0xfffffffffffffffc
push dword [ebp + 8]
call esi
push 0x49ec19
push 0xfffffffffffffffc
push dword [ebp + 8]
mov dword [ebx + 0x24], eax
call dword [sym.imp.USER32.dll_SetWindowLongW]
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x49f4ce
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x6610e4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push edi
push 0x208
xor edi, edi
push edi
push eax
call fcn.004a2e40
add esp, 0xc
lea eax, [ebp - 0x20c]
push edi
push 0x19
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x210]
mov dword [ebp - 0x210], edi
push eax
call dword [sym.imp.SHELL32.dll_SHGetDesktopFolder]
test eax, eax
js 0x49f59c
mov eax, dword [ebp - 0x210]
lea edx, [ebp - 0x218]
push edi
push edx
push edi
lea edx, [ebp - 0x20c]
mov dword [ebp - 0x214], edi
push edx
push edi
mov dword [ebp - 0x218], edi
mov ecx, dword [eax]
push edi
push eax
call dword [ecx + 0xc]
test eax, eax
js 0x49f59c
mov eax, dword [ebp - 0x210]
lea edx, [ebp - 0x214]
push edx
push 0x5e7698
push edi
push dword [ebp - 0x218]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
test eax, eax
js 0x49f59c
mov eax, dword [ebp - 0x210]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
push esi
push dword [ebp - 0x214]
call fcn.0049f357
mov eax, dword [ebp - 0x214]
pop ecx
pop ecx
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00447f5d
mov esp, ebp
pop ebp
ret

Function at 0x49f75b
Capabilities:
Get common file path
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x6610e4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x208
xor esi, esi
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.004a2e40
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push esi
push esi
push 0x25
push esi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x49f828
push 0x5e80b4
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x49f828
push ebx
push esi
lea eax, [ebp - 0x20c]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x49f827
push edi
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x49f826
push edi
push ebx
push esi
lea eax, [ebp - 0x20c]
push eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x49f81f
lea eax, [ebp - 0x214]
mov dword [ebp - 0x214], esi
push eax
lea eax, [ebp - 0x210]
mov dword [ebp - 0x210], esi
push eax
push 0x64a880
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x49f81f
mov eax, dword [ebp - 0x210]
mov esi, dword [eax + 8]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop ebx
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00447f5d
mov esp, ebp
pop ebp
ret
Function at 0x49f839
Capabilities:
Get common file path
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2bc
mov eax, dword [0x6610e4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x2bc]
push eax
xor ebx, ebx
push ebx
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x2bc], ebx
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderLocation]
test eax, eax
jne 0x49f8ca
push edi
mov edi, 0x2b4
lea eax, [ebp - 0x2b8]
push edi
push ebx
push eax
call fcn.004a2e40
add esp, 0xc
lea eax, [ebp - 0x2b8]
push 0x208
push edi
push eax
push ebx
push dword [ebp - 0x2bc]
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test eax, eax
pop edi
setne bl
test bl, bl
je 0x49f8be
push 0x208
lea eax, [ebp - 0x2ac]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
push dword [ebp - 0x2bc]
call dword [sym.imp.SHELL32.dll_ILFree]
mov ecx, dword [ebp - 4]
mov al, bl
pop esi
xor ecx, ebp
pop ebx
call fcn.00447f5d
mov esp, ebp
pop ebp
ret 8

Function at 0x49f8de
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x6610e4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push edi
push 0x208
xor edi, edi
push edi
push eax
call fcn.004a2e40
add esp, 0xc
lea eax, [ebp - 0x20c]
push edi
push 0x10
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x210]
mov dword [ebp - 0x210], edi
push eax
call dword [sym.imp.SHELL32.dll_SHGetDesktopFolder]
test eax, eax
js 0x49f9ac
mov eax, dword [ebp - 0x210]
lea edx, [ebp - 0x218]
push edi
push edx
push edi
lea edx, [ebp - 0x20c]
mov dword [ebp - 0x214], edi
push edx
push edi
mov dword [ebp - 0x218], edi
mov ecx, dword [eax]
push edi
push eax
call dword [ecx + 0xc]
test eax, eax
js 0x49f9ac
mov eax, dword [ebp - 0x210]
lea edx, [ebp - 0x214]
push edx
push 0x5e7698
push edi
push dword [ebp - 0x218]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
test eax, eax
js 0x49f9ac
mov eax, dword [ebp - 0x210]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
push esi
push dword [ebp - 0x214]
call fcn.0049f357
mov eax, dword [ebp - 0x214]
pop ecx
pop ecx
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00447f5d
mov esp, ebp
pop ebp
ret
Function at 0x4a1c80
Capabilities:
Create process on windows
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe64
mov eax, dword [0x6610e4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push edi
mov word [ebp - 0xe10], ax
lea edi, [ebp - 0xe0e]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0xe10]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov ebx, 0x208
lea eax, [ebp - 0x630]
push ebx
xor edi, edi
push edi
push eax
call fcn.004a2e40
push str.UseVestige.ini
push str.Config
push 0x671fb0
lea eax, [ebp - 0x630]
push 0x5e1a1c
push eax
call fcn.00421690
add esp, 0x20
lea eax, [ebp - 0x630]
push eax
push 0xffffffffffffffff
push str.UpDmpLastDay
push str.Setting
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
movzx ecx, word [ebp - 0xe0a]
cmp eax, ecx
je 0x4a1e91
push ebx
lea eax, [ebp - 0x220]
push edi
push eax
call fcn.004a2e40
push ebx
lea eax, [ebp - 0x428]
push edi
push eax
call fcn.004a2e40
lea eax, [ebp - 0x428]
push 0x671da8
push eax
call fcn.004a6b8d
lea eax, [ebp - 0x428]
push str.WnCore.exe
push eax
call fcn.004b0beb
lea eax, [ebp - 0x220]
push 0x5e463c
push eax
call fcn.004a6b8d
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x220]
push eax
call fcn.004b0beb
lea eax, [ebp - 0x220]
push str.__UpDmpInfo
push eax
call fcn.004b0beb
add esp, 0x40
lea eax, [ebp - 0x220]
push esi
push eax
call fcn.004b0beb
mov esi, 0x6721b8
push esi
call fcn.004a6baf
add esp, 0xc
test eax, eax
je 0x4a1dd0
lea eax, [ebp - 0x220]
push 0x5e9f18
push eax
call fcn.004b0beb
lea eax, [ebp - 0x220]
push esi
push eax
call fcn.004b0beb
add esp, 0x10
push 0x44
pop esi
push esi
lea eax, [ebp - 0xe64]
push edi
push eax
call fcn.004a2e40
push 0x10
lea eax, [ebp - 0xe20]
mov dword [ebp - 0xe64], esi
push edi
push eax
call fcn.004a2e40
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0xe00]
push 0x64a88c
push eax
call fcn.00421690
add esp, 0x24
lea eax, [ebp - 0xe20]
push eax
lea eax, [ebp - 0xe64]
push eax
push edi
push edi
push edi
push 1
push edi
push edi
lea eax, [ebp - 0xe00]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x4a1e4e
push dword [ebp - 0xe20]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0xe1c]
call esi
xor eax, eax
lea edi, [ebp - 0x16]
mov word [ebp - 0x18], ax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
movzx eax, word [ebp - 0xe0a]
push eax
lea eax, [ebp - 0x18]
push 0x64a9a0
push eax
call fcn.00421690
add esp, 0xc
lea eax, [ebp - 0x630]
push eax
lea eax, [ebp - 0x18]
push eax
push str.UpDmpLastDay
push str.Setting
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00447f5d
mov esp, ebp
pop ebp
ret

Function at 0x4b8d67
Capabilities:
Read file on windows

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

Function at 0x4bc2bd
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004bbf7d
Function at 0x4d0a60
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
xor edx, edx
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, 0x1505
add eax, esi
mov ecx, eax
sub ecx, esi
push edi
xor edi, edi
cmp esi, eax
cmova ecx, edx
mov dword [ebp + 8], ecx
test ecx, ecx
je 0x4d0aa9
mov al, byte [esi]
push eax
call fcn.004dcbf0
movsx ecx, al
lea esi, [esi + 1]
mov eax, ebx
inc edi
shl eax, 5
add esp, 4
add eax, ebx
xor ecx, eax
mov ebx, ecx
cmp edi, dword [ebp + 8]
jb 0x4d0a87
pop edi
pop esi
movzx eax, bl
pop ebx
pop ebp
ret

Function at 0x4d1e70
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x4d1e91
cmp dword [esi + 0x8c], 0
je 0x4d1e91
push 2
push 3
push esi
call fcn.004dd1c0
add esp, 0xc
push dword [ebp + 0xc]
call fcn.004ded80
add esp, 4
test esi, esi
je 0x4d1eb4
cmp dword [esi + 0x8c], 0
je 0x4d1eb4
push 3
push esi
call fcn.004dd200
add esp, 8
pop esi
pop ebp
ret

Function at 0x4d2b40
Capabilities:
Create udp socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp dword [eax + 0x2b0], 2
jne 0x4d2b55
pop ebp
jmp fcn.004d2af0
mov al, 1
pop ebp
ret
Function at 0x4d9f70
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 8]
cmp dword [edi + 0x608], 0
je 0x4d9fb4
push esi
push 1
push edi
call fcn.004cd1c0
push dword [edi + 0x59c]
mov eax, dword [edi + 0x608]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call eax
push 0
push edi
mov esi, eax
call fcn.004cd1c0
add esp, 0x24
mov eax, esi
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp + 0xc]
cmp eax, 2
ja 0x4d9fea
push dword [edi + 0x598]
lea eax, [eax + eax*2]
push 1
add eax, 0x5fb578
push 2
push eax
call fcn.004a7d8e
push dword [edi + 0x598]
push 1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.004a7d8e
add esp, 0x20
xor eax, eax
pop edi
pop ebp
ret

Function at 0x4da430
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
mov eax, dword [0x6610e4]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x18]
push esi
mov esi, dword [ecx + eax*4 + 0x1a8]
push edi
mov edi, dword [ebp + 0x10]
push eax
push ecx
mov dword [ebp - 0x88], ecx
call fcn.004da970
add esp, 8
push 0
push dword [ebp + 0x14]
push edi
push esi
call dword [sym.imp.WS2_32.dll_send]
mov esi, eax
mov dword [ebx], 0
cmp esi, 0xffffffff
jne 0x4da4ea
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
cmp edi, 0x2733
jne 0x4da4ac
pop edi
pop esi
mov dword [ebx], 0x51
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00447f5d
mov esp, ebp
pop ebp
ret
push 0x80
lea eax, [ebp - 0x84]
push eax
push edi
call fcn.00503980
push eax
mov eax, dword [ebp - 0x88]
push str.Send_failure:__s
push dword [eax]
call fcn.004d9ff0
mov eax, dword [ebp - 0x88]
add esp, 0x18
mov eax, dword [eax]
mov dword [eax + 0xcac], edi
mov eax, esi
mov dword [ebx], 0x37
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00447f5d
mov esp, ebp
pop ebp
ret
Function at 0x4da970
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
mov eax, ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
shl eax, 4
push edi
mov edx, dword [ebx + ecx*4 + 0x1a8]
lea esi, [ebx + 0x1cc]
add esi, eax
mov dword [ebp + 8], edx
mov eax, dword [ebx + 0x2a8]
mov edi, dword [esi + 4]
sub edi, dword [esi + 8]
test byte [eax + 0x40], 3
je 0x4daa2d
cmp dword [ebx + ecx*4 + 0x1bc], 0x4da340
jne 0x4daa2d
cmp dword [esi], 0
je 0x4da9bf
test edi, edi
je 0x4daa2d
push 0
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push edx
call fcn.004d9b20
add esp, 0x14
cmp eax, 0xffffffff
je 0x4daa2d
test al, 1
je 0x4daa2d
cmp dword [esi], 0
jne 0x4daa14
mov eax, dword [ebx]
mov eax, dword [eax + 0x8e4]
add eax, eax
push eax
mov dword [esi + 4], eax
call dword [0x661dc4]
mov edi, dword [esi + 4]
add esp, 4
mov dword [esi], eax
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
test eax, eax
jne 0x4daa14
pop edi
mov dword [esi + 4], eax
pop esi
pop ebx
pop ebp
ret
mov eax, dword [esi]
add eax, dword [esi + 8]
push 0
push edi
push eax
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x4daa2d
add dword [esi + 8], eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4dab20
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test byte [eax + 0x1f8], 1
je 0x4dab40
push eax
call fcn.004d3510
add esp, 4
test eax, eax
jne 0x4dab62
xor al, al
pop ebp
ret
mov eax, dword [eax + 0x1a8]
cmp eax, 0xffffffff
je 0x4dab3c
push 2
push 1
lea ecx, [ebp + 0xb]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jne 0x4dab62
xor al, al
pop ebp
ret
mov al, 1
pop ebp
ret

Function at 0x4db350
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x673028]
mov dword [ebp - 8], 0x4020
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 4
test eax, eax
jne 0x4db3a1
push 3
push 2
push eax
push 6
call fcn.004dc8c0
add esp, 0x10
test al, al
je 0x4db395
mov dword [0x673028], 2
mov esp, ebp
pop ebp
ret
mov dword [0x673028], 1
jmp 0x4db3a6
cmp eax, 2
je 0x4db3e6
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push 0x1001
push 0xffff
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x4db3cd
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
jg 0x4db3e6
push 4
lea eax, [ebp - 8]
push eax
push 0x1001
push 0xffff
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_setsockopt]
mov esp, ebp
pop ebp
ret