joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4034fc
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x409014]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403594
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403574
xor eax, eax
push ebp
push 0x40356d
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x4035b0
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403574
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x409014]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x409014], ax
mov esp, ebp
pop ebp
ret

Function at 0x403e60
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x40a044], 0
je 0x403ec1
cmp word [0x40a218], 0xd7b2
jne 0x403e89
cmp dword [0x40a220], 0
jbe 0x403e89
mov eax, 0x40a214
call dword [0x40a230]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x409060
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x403ee8
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x409020], 0
jne 0x403edd
push 0
push 0x409058
push 0x409060
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x404c7c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x404ce2
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.00404238
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402f88
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x404ccc
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x404ce9
lea eax, [ebp - 0x10]
call fcn.00403fe4
ret

Function at 0x406ac4
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x406afd
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004040d4
jmp 0x406b06
mov eax, ebx
mov edx, esi
call fcn.00404038
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x406b10
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x406b31
mov al, byte [esp]
jmp 0x406b33
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x4071c8
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x407030
mov eax, dword [0x4093fc]
cmp byte [eax], 0
je 0x407244
mov eax, dword [0x409350]
call fcn.00402d48
call fcn.004029a8
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00405f98
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40728c
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40727a
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x409330]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x40a660]
call fcn.0040464c
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret
Function at 0x407c68
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x407ccc
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.00404238
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00405e60
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407cd3
lea eax, [ebp - 0xc]
call fcn.00403fe4
ret
Function at 0x4041ac
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [0x410064]
test eax, eax
je 0x4041eb
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4041eb
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4041eb
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4041eb
cmp dword [ecx + 0x74], 0xe
jbe 0x4041eb
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x401000
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x25c
push ebx
push esi
push edi
push 0x250
lea eax, [esp + 0x1c]
push 0
push eax
mov byte [esp + 0x1b], 1
call fcn.00405420
mov edi, dword [ebp + 8]
add esp, 0xc
lea eax, [esp + 0x18]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esp + 0x10], eax
cmp eax, 6
je 0x40119f
cmp eax, 0xffffffff
je 0x40119f
push 0x2a
pop ebx
cmp dword [esp + 0x44], 0x2e002e
jne 0x401065
cmp dword [esp + 0x48], 0
je 0x40117c
cmp dword [esp + 0x44], 0x2e
je 0x40117c
cmp byte [esp + 0x44], 0
je 0x40117c
test byte [esp + 0x18], 0x10
push ebx
push edi
je 0x401108
call fcn.0040503a
mov esi, eax
sub eax, edi
sar eax, 1
mov ecx, 0x104
sub ecx, eax
push ecx
lea eax, [esp + 0x50]
push eax
push esi
mov dword [esp + 0x28], esi
call fcn.0040534b
push esi
call fcn.004053d5
lea esi, [esi + eax*2]
push 0x5c
pop eax
push edi
mov word [esi], ax
mov dword [esi + 2], 0x2e002a
mov dword [esi + 6], ebx
call section..text
add esp, 0x1c
xor eax, eax
push edi
mov word [esi], ax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x4010f9
push 0x30
push 0x414db8
push edi
push str.Cannot_delete_directory_:__s
call fcn.00404f29
pop ecx
pop ecx
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
mov eax, dword [esp + 0x14]
mov dword [eax], 0x2e002a
mov dword [eax + 4], ebx
jmp 0x40117c
mov byte [esp + 0x17], 0
call fcn.0040503a
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x401193
sub eax, edi
sar eax, 1
mov ecx, 0x104
sub ecx, eax
push ecx
lea eax, [esp + 0x48]
push eax
push esi
call fcn.0040534b
add esp, 0xc
push 0x80
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x401173
push 0x30
push 0x414db8
push edi
push str.Cannot_delete_file__s._nYou_can_delete_it_manualy.
call fcn.00404f29
pop ecx
pop ecx
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
push 4
push 0
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov dword [esi], 0x2e002a
mov dword [esi + 4], ebx
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x401050
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x4011a4
call fcn.004036e2
mov al, byte [esp + 0xf]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4012f5
Capabilities:
Delete directory
Delete file
Read .ini file
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
push str.init
push dword [ebp + 8]
call fcn.004054a0
pop ecx
pop ecx
test eax, eax
jne 0x40131d
mov dword [0x41a810], 1
leave
ret
push str.daemon
push dword [ebp + 8]
call fcn.004054a0
pop ecx
pop ecx
test eax, eax
jne 0x40133c
mov dword [0x41a810], 3
leave
ret
push str.uninstall
push dword [ebp + 8]
call fcn.004054a0
pop ecx
pop ecx
test eax, eax
jne 0x4014fb
mov esi, 0x104
push esi
lea eax, [ebp - 0x208]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x208]
push 0x5c
push eax
call fcn.004053ef
pop ecx
pop ecx
test eax, eax
jne 0x401397
push 0x10
push str.ANSAV
push str.Self_deleter_cant_do_the_job
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_ExitProcess]
inc eax
inc eax
mov ecx, eax
lea edx, [ebp - 0x208]
sub ecx, edx
sar ecx, 1
sub esi, ecx
push esi
push str.ansav_install.ini
push eax
call fcn.0040534b
push 0x384
call fcn.0040559d
add esp, 0x10
test eax, eax
je 0x4013d6
lea ecx, [ebp - 0x208]
push ecx
mov esi, eax
call fcn.00403fe4
mov esi, eax
jmp 0x4013d8
xor esi, esi
mov edi, 0x200
push edi
lea ebx, [esi + 0x184]
push 0
push ebx
call fcn.00405420
add esp, 0xc
lea eax, [esi + 0x80]
push eax
push edi
push ebx
push str.error
push str.main
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [esi + 0x80]
push eax
push 0
push str.hostpid
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push eax
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push 0x15f90
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov edi, dword [sym.imp.USER32.dll_MessageBoxA]
test eax, eax
jne 0x40146d
push 0x10
push str.ANSAV
push ebx
push str.Uninstall_cannot_delete_file__s._nYou_can_delete_it_manualy.
call fcn.00404eee
pop ecx
pop ecx
push eax
push 0
call edi
push 0x104
lea eax, [ebp - 0x410]
push ebx
push eax
call fcn.00405288
lea eax, [ebp - 0x410]
push 0x5c
push eax
call fcn.004053ef
mov ebx, eax
add esp, 0x14
test ebx, ebx
jne 0x4014ac
push 0x10
push str.ANSAV
push str.Self_deleter_cant_do_the_job
push eax
call edi
push 0xfffffffffffffffe
jmp 0x401391
push 4
inc ebx
inc ebx
push 0x414fa4
push ebx
call fcn.0040534b
lea eax, [ebp - 0x410]
push eax
call section..text
xor eax, eax
mov word [ebx - 2], ax
add esp, 0x10
lea eax, [ebp - 0x410]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
push esi
call fcn.00405528
pop ecx
push 0x40
push str.ANSAV
push str.Uninstall_completed
push 0
call edi
push 0
jmp 0x401391
mov dword [0x41a810], 2
leave
ret
Function at 0x4019f2
Capabilities:
Read file via mapping

Disassembly:
push ebx
push esi
push edi
call fcn.00404b77
mov edi, str.andaemonex
push edi
xor ebx, ebx
push ebx
push 6
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov dword [0x41b630], eax
mov esi, 0x230
cmp eax, ebx
jne 0x401a49
push edi
push esi
push ebx
push 4
push ebx
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [0x41b630], eax
cmp eax, ebx
jne 0x401a49
call fcn.004036e2
push eax
push str.Unable_to_create_map_for_AnDaemonfMap_in_DaemonInit__.__s
call fcn.00404e57
pop ecx
pop ecx
xor al, al
jmp 0x401af9
push esi
push ebx
push ebx
push 6
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [0x41b6e0], eax
cmp eax, ebx
jne 0x401a7d
push dword [0x41b630]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x41b630], ebx
call fcn.004036e2
push eax
push str.Unable_to_map_for_AnDaemonInfo_in_DaemonInit__.__s
jmp 0x401a3b
push 8
mov byte [eax + 2], bl
mov byte [eax], 1
call fcn.0040559d
pop ecx
cmp eax, ebx
je 0x401a9a
mov esi, eax
call fcn.0040463a
mov esi, eax
jmp 0x401a9c
xor esi, esi
call fcn.004046bf
test al, al
je 0x401ab3
call fcn.004046e2
mov ecx, dword [0x41b6e0]
mov byte [ecx + 1], al
cmp esi, ebx
je 0x401abc
call fcn.004017dd
mov eax, dword [0x41b6e0]
push str.evt_self_detach
push ebx
push ebx
push ebx
mov byte [eax + 2], bl
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [0x41b634], eax
cmp eax, ebx
jne 0x401af0
push 0x10
push str.ANSAV
push str.Cannot_create_atom
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x401af7
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov al, 1
pop edi
pop esi
pop ebx
ret

Function at 0x401b43
Capabilities:
Get hostname

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x110
push esi
push edi
push 0x10
lea eax, [ebp + 0x64]
push 0
push eax
call fcn.00405420
add esp, 0xc
lea eax, [ebp + 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
lea eax, [ebp + 0x74]
push eax
lea eax, [ebp - 0x98]
push eax
mov dword [ebp + 0x74], 0x1e
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
push dword [ebp + 0x74]
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp - 0x98]
push eax
movzx eax, word [ebp + 0x6a]
push eax
movzx eax, word [ebp + 0x6c]
push eax
movzx eax, word [ebp + 0x64]
push eax
lea eax, [ebp - 0x1c]
push str._X_X_X__s_X
push eax
call esi
lea eax, [ebp - 0x1c]
push eax
call fcn.004052c0
lea edi, [ebp - 0x1c]
call fcn.00404f70
xor eax, 0x14ecfb2
push eax
push str.ADESID_08X
mov edi, 0x41b640
push edi
call esi
add esp, 0x2c
mov eax, edi
pop edi
pop esi
add ebp, 0x78
leave
ret
Function at 0x402085
Capabilities:
Enumerate processes
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push ebx
push esi
push edi
mov edi, 0x104
push edi
lea eax, [ebp - 0x238]
xor ebx, ebx
push eax
mov byte [ebp - 1], bl
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [ebp - 0x238]
push eax
call fcn.004052c0
pop ecx
lea ecx, [ebp - 0x238]
dec ecx
add eax, ecx
cmp byte [eax], 0x5c
je 0x4020c8
mov byte [eax + 1], 0x5c
mov byte [eax + 2], bl
lea eax, [ebp - 0x238]
push str.explorer.exe
push eax
call fcn.00405990
mov esi, 0x128
push esi
lea eax, [ebp - 0x130]
push ebx
push eax
call fcn.00405420
add esp, 0x14
push ebx
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 8], eax
mov dword [ebp - 0x130], esi
cmp eax, ebx
je 0x4021cb
lea ecx, [ebp - 0x130]
push ecx
push eax
call sub.KERNEL32.dll_Process32First
jmp 0x4021a2
cmp dword [ebp - 0x128], 4
jle 0x402193
push 0x324
call fcn.0040559d
pop ecx
cmp eax, ebx
je 0x40214b
mov ecx, dword [ebp - 0x128]
mov dword [eax + 0x30c], ecx
mov dword [eax + 0x310], ebx
mov esi, eax
jmp 0x40214d
xor esi, esi
mov eax, esi
call fcn.004043b0
cmp word [eax], bx
je 0x402168
push edi
push eax
push esi
call fcn.004062cf
add esp, 0xc
mov eax, esi
jmp 0x40216a
xor eax, eax
cmp eax, ebx
je 0x402181
lea ecx, [ebp - 0x238]
push ecx
push eax
call fcn.004065e3
pop ecx
pop ecx
test eax, eax
je 0x4021ac
cmp esi, ebx
je 0x402193
mov eax, esi
call fcn.00404395
push esi
call fcn.00405528
pop ecx
lea eax, [ebp - 0x130]
push eax
push dword [ebp - 8]
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x40211d
jmp 0x4021c2
mov byte [ebp - 1], 1
cmp esi, ebx
je 0x4021c2
mov eax, esi
call fcn.00404395
push esi
call fcn.00405528
pop ecx
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4021ef
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
xor edi, edi
lea eax, [ebp - 4]
push eax
push edi
push edi
push 0x4021d3
push edi
push edi
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
jmp 0x40221a
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [0x41b6f4]
test eax, eax
je 0x40220f
mov esi, 0x1fc
push esi
push edi
push 0x41b6f8
call fcn.00405420
add esp, 0xc
push 0x80
push dword [ebp + 8]
mov dword [0x41b6f8], esi
push 0x41b710
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov eax, dword [0x41b6f4]
push 0x1f5
push edi
mov dword [0x41b6fc], eax
mov dword [0x41b704], 7
mov dword [0x41b708], 0x8001
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
mov dword [0x41b70c], eax
call dword [sym.imp.USER32.dll_CreatePopupMenu]
mov dword [0x41b6f0], eax
cmp eax, edi
jne 0x402299
xor al, al
jmp 0x4022eb
mov esi, dword [sym.imp.USER32.dll_AppendMenuA]
push str.About
push 0x65
push edi
push eax
call esi
push edi
push edi
push 0x800
push dword [0x41b6f0]
call esi
push str.Check_for_update
push 0x68
push edi
push dword [0x41b6f0]
call esi
push str.Start_ANSAV_scanner
push 0x67
push edi
push dword [0x41b6f0]
call esi
push str.Pause_protection
push 0x66
push edi
push dword [0x41b6f0]
call esi
mov al, 1
pop edi
pop esi
leave
ret

Function at 0x4022ef
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 0x41b6f8
xor esi, esi
push esi
call dword [sym.imp.SHELL32.dll_Shell_NotifyIconA]
lea eax, [ebp - 4]
push eax
push esi
push esi
push 0x402375
push esi
push esi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x41b8f4], eax
pop esi
leave
ret

Function at 0x4028cf
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
xor eax, eax
lea ecx, [ebp - 4]
push ecx
push eax
push eax
push 0x402bcc
push eax
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
leave
ret
Function at 0x402f40
Capabilities:
Delete file

Disassembly:
push esi
mov esi, 0x41b908
push esi
call fcn.004049ad
pop ecx
test al, al
je 0x402f58
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0x64
call fcn.0040559d
pop ecx
test eax, eax
je 0x402f6e
push esi
call fcn.004037e1
mov esi, eax
jmp 0x402f70
xor esi, esi
push 0
mov dword [0x41b900], esi
call fcn.00403916
test al, al
jne 0x402faf
mov eax, dword [0x41b900]
mov esi, eax
test eax, eax
je 0x402f98
call fcn.00403836
push esi
call fcn.00405528
pop ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Cannot_create_ContentConfig_file_sys_err_code_:__d
call fcn.00404e57
pop ecx
pop ecx
xor al, al
pop esi
ret
push edi
push 0x1c
pop edi
push edi
call fcn.00405b55
mov esi, eax
pop ecx
test esi, esi
jne 0x402fd9
mov eax, dword [0x41b900]
mov esi, eax
test eax, eax
je 0x403015
call fcn.00403836
push esi
call fcn.00405528
pop ecx
jmp 0x403015
push edi
push 0
push esi
call fcn.00405420
mov eax, dword [0x41b900]
add esp, 0xc
push edi
push esi
mov dword [esi + 8], edi
call fcn.00403c98
test al, al
mov eax, dword [0x41b900]
mov esi, eax
jne 0x403019
test eax, eax
je 0x40300f
call fcn.00403836
push esi
call fcn.00405528
pop ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor al, al
jmp 0x403032
test eax, eax
je 0x403029
call fcn.00403836
push esi
call fcn.00405528
pop ecx
and dword [0x41b900], 0
mov al, 1
pop edi
pop esi
ret

Function at 0x403620
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
or eax, 0xffffffff
xor ecx, ecx
test edx, edx
jbe 0x40364a
push ebx
push edi
jmp 0x403630
movzx edi, byte [ecx + esi]
movzx ebx, al
xor edi, ebx
shr eax, 8
xor eax, dword [edi*4 + 0x4161c0]
inc ecx
cmp ecx, edx
jb 0x403630
pop edi
pop ebx
not eax
ret

Function at 0x403916
Capabilities:
Delete file

Disassembly:
push ebx
xor ebx, ebx
cmp byte [esi], bl
je 0x403954
mov eax, dword [esi + 0x50]
cmp eax, ebx
jne 0x403930
push 8
pop eax
call fcn.0040364d
xor al, al
jmp 0x403992
cmp byte [esp + 8], bl
je 0x40393d
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push ebx
push ebx
push 1
push ebx
push 3
push 0xc0000000
push dword [esi + 0x50]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
jmp 0x40397d
mov eax, dword [esi + 0x44]
cmp eax, ebx
je 0x403924
cmp byte [esp + 8], bl
je 0x403968
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push ebx
push ebx
push 1
push ebx
push 3
push 0xc0000000
push dword [esi + 0x44]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esi + 8], eax
cmp eax, ebx
je 0x40398b
mov eax, esi
call fcn.00403b4a
cmp dword [esi + 8], 0xffffffff
setne al
pop ebx
ret 4

Function at 0x403dcb
Capabilities:
Create http request

Disassembly:
push ebx
push esi
mov esi, dword [0x41c564]
xor ebx, ebx
cmp dword [esi + 0xc], ebx
je 0x403dde
mov al, 1
jmp 0x403dfe
push ebx
push ebx
push ebx
cmp byte [esi + 8], bl
je 0x403de9
push ebx
jmp 0x403deb
push 4
push str.2194_ANSAV_v2.0.7
call dword [sym.imp.WININET.dll_InternetOpenA]
cmp eax, ebx
mov dword [esi + 0xc], eax
setne al
pop esi
pop ebx
ret
Function at 0x403e01
Capabilities:
Check internet connectivity via wininet

Disassembly:
push esi
mov esi, dword [0x41c564]
push edi
push 0
lea edi, [esi + 4]
push edi
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
mov ecx, dword [edi]
test cl, 0x20
jne 0x403e2c
test eax, eax
je 0x403e2c
shr ecx, 2
mov al, 1
and cl, al
mov byte [esi + 8], cl
jmp 0x403e2e
xor al, al
pop edi
pop esi
ret

Function at 0x403f67
Capabilities:
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push edi
mov edi, dword [0x41c564]
xor eax, eax
cmp dword [edi + 0x10], eax
je 0x403fdf
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
lea eax, [esi + 0x400]
push ebx
push eax
call fcn.00405b55
push esi
mov ebx, eax
push 0
push ebx
call fcn.00405420
mov eax, dword [ebp + 8]
add esp, 0x10
mov dword [ebp + 8], eax
test esi, esi
jle 0x403fd7
lea eax, [ebp - 4]
push eax
push esi
push ebx
push dword [edi + 0x10]
call dword [sym.imp.WININET.dll_InternetReadFile]
cmp dword [ebp - 4], 0
je 0x403fd7
push dword [ebp - 4]
push ebx
push dword [ebp + 8]
call fcn.00405610
mov eax, dword [ebp - 4]
add dword [ebp - 8], eax
add dword [ebp + 8], eax
add esp, 0xc
cmp dword [ebp - 8], esi
jl 0x403fa5
push ebx
call fcn.00405a78
pop ecx
pop ebx
pop edi
leave
ret 4

Function at 0x4041c0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push esi
push edi
mov esi, eax
lea ecx, [ebp - 4]
lea eax, [esi + 0x28]
push ecx
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov edi, eax
test edi, edi
je 0x4042b1
push ebx
lea ebx, [edi + 1]
push ebx
call fcn.0040559d
push ebx
push 0
push eax
mov dword [esi], eax
call fcn.00405420
add esp, 0x10
push dword [esi]
lea eax, [esi + 0x28]
push edi
push dword [ebp - 4]
push eax
call sub.VERSION.dll_GetFileVersionInfoA
pop ebx
test eax, eax
je 0x4042b1
lea eax, [ebp - 0x38]
push eax
mov eax, esi
call fcn.004042d0
test eax, eax
je 0x4042b1
mov eax, dword [ebp - 0x30]
mov ecx, eax
shr ecx, 0x10
mov word [esi + 0xa], ax
mov eax, dword [ebp - 0x2c]
mov word [esi + 8], cx
mov ecx, eax
mov word [esi + 0xe], ax
mov eax, dword [ebp - 0x28]
shr ecx, 0x10
mov word [esi + 0xc], cx
mov ecx, eax
mov word [esi + 0x12], ax
mov eax, dword [ebp - 0x24]
shr ecx, 0x10
mov word [esi + 0x16], ax
mov word [esi + 0x10], cx
mov ecx, eax
mov eax, dword [ebp - 0x1c]
mov dword [esi + 0x18], eax
mov eax, dword [ebp - 0x18]
mov dword [esi + 0x1c], eax
mov eax, dword [ebp - 0x14]
mov dword [esi + 0x20], eax
mov eax, dword [ebp - 0x10]
shr ecx, 0x10
lea edi, [esi + 0x230]
push 0x4167c0
mov word [esi + 0x14], cx
mov dword [esi + 0x24], eax
call fcn.00404310
lea edi, [esi + 0x640]
push 0x4167cc
call fcn.00404310
lea edi, [esi + 0x438]
push 0x4167dc
call fcn.00404310
xor eax, eax
inc eax
jmp 0x4042b3
xor eax, eax
pop edi
pop esi
leave
ret